html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
63
141k
body
stringlengths
18
58.6k
comment_length
int64
16
10.8k
text
stringlengths
6
280
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
Thank you. It finally worked implementing your changes and leaving a white line between title and text in the description.
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
20
Readme info not being parsed to show on Dataset card page
[ -0.419086217880249, 0.0025025459472090006, -0.160580113530159, 0.32382914423942566, 0.3166182339191437, 0.2475099414587021, 0.3621514141559601, 0.03786052390933037, 0.15117011964321136, 0.13656315207481384, 0.19736453890800476, 0.42771115899086, 0.3871491253376007, 0.3772214651107788, 0.004336046986281872, 0.3524628281593323, -0.009997467510402203, 0.04647194594144821, 0.13074254989624023, -0.015135430730879307, -0.16591812670230865, 0.11465341597795486, -0.18892508745193481, -0.09396260231733322, -0.10585033893585205, -0.07797577232122421, 0.020357169210910797, 0.007114759646356106, -0.1310582160949707, -0.4361775815486908, 0.13207237422466278, 0.2831811308860779, 0.11320922523736954, 0.03988873213529587, -0.0001088660501409322, -0.0743815153837204, 0.23390237987041473, 0.07691670954227448, -0.26720762252807617, -0.0034477494191378355, -0.43134161829948425, -0.20844349265098572, 0.0982089564204216, -0.2694474756717682, -0.2002698928117752, -0.3765452206134796, 0.11073703318834305, -0.14406268298625946, -0.013175095431506634, 0.12737803161144257, 0.2021016627550125, -0.3430880904197693, 0.11738204210996628, 0.043330322951078415, 0.3519567847251892, 0.3912300765514374, -0.0415995791554451, -0.19095508754253387, 0.17034262418746948, 0.08474256843328476, -0.1925819367170334, 0.622481107711792, 0.11691208928823471, 0.18747203052043915, 0.14686773717403412, 0.2624674141407013, 0.7418277263641357, 0.07028669863939285, 0.35613957047462463, 0.2317480444908142, 0.4969826638698578, -0.2773958742618561, -0.17418812215328217, -0.5187067985534668, -0.19205015897750854, 0.04814742133021355, 0.1815669983625412, 0.06281270831823349, -0.00800116267055273, 0.22380776703357697, -0.14649748802185059, -0.15811006724834442, 0.05781112238764763, -0.1315651386976242, -0.18405961990356445, 0.5730370879173279, -0.2127290666103363, -0.008447513915598392, 0.11245250701904297, -0.15616478025913239, 0.7026041746139526, -0.008957893587648869, -0.266059011220932, 0.021475765854120255, 0.36807161569595337, 0.08193930238485336, 0.13666391372680664, 0.005471645388752222, 0.19537696242332458, -0.3710867762565613, -0.09664987027645111, 0.5126491189002991, 0.11301379650831223, 0.06225991249084473, 0.3839922845363617, -0.4387078583240509, 0.2408437430858612, 0.22391049563884735, 0.006174333393573761, 0.11301619559526443, -0.03800489380955696, -0.17000284790992737, -0.18661801517009735, 0.3990219533443451, -0.17683184146881104, -0.10409469902515411, -0.06820084899663925, -0.2991960644721985, -0.33613845705986023, 0.02443234808743, 0.1870453804731369, -0.3363153636455536, -0.01587807573378086, 0.37546730041503906, 0.026457371190190315, 0.18051622807979584, 0.20291566848754883, -0.14794230461120605, -0.11038745194673538, -0.24779169261455536, -0.18795934319496155, 0.007333712186664343, -0.24532920122146606, -0.09742116928100586, 0.07371249794960022, 0.2585979402065277, 0.1920451521873474, -0.243188738822937, -0.3046509921550751, -0.1722634732723236, 0.04178864508867264, -0.049061086028814316, 0.5511456727981567, 0.233298659324646, 0.30066654086112976, 0.10125342011451721, 0.10415065288543701, -0.11934482306241989, -0.11745164543390274, 0.27344831824302673, -0.35595330595970154, 0.20969252288341522, 0.04612581431865692, 0.26915833353996277, -0.09151466190814972, 0.0634809285402298, 0.0769462138414383, 0.17941723763942719, 0.41834574937820435, -0.2892236113548279, 0.06996375322341919, 0.025055138394236565, -0.26732194423675537, -0.03464030846953392, 0.2857433259487152, 0.34330883622169495, -0.2933409810066223, -0.16409820318222046, -0.11729568243026733, -0.061729125678539276, 0.28624266386032104, -0.05037390813231468, -0.16521526873111725, 0.17479075491428375, -0.14184890687465668, 0.2326115220785141, 0.5425142645835876, -0.44537433981895447, -0.22288671135902405, 0.42208725214004517, -0.049755729734897614, -0.149745911359787, -0.023860007524490356, -0.07128211855888367, -0.06308119744062424, 0.1269371509552002, 0.10855289548635483, -0.09599414467811584, -0.014456328004598618, 0.20405374467372894, -0.21261176466941833, -0.38712549209594727, 0.01468952652066946, 0.04161056876182556, -0.013534429483115673, -0.0642893984913826, 0.29116159677505493, 0.12416794151067734, 0.6924771666526794, 0.12170367687940598, 0.26298531889915466, 0.16555319726467133, 0.0945170447230339, -0.07913712412118912, 0.17368799448013306, 0.09428368508815765, -0.012456021271646023, -0.18039283156394958, 0.004427328240126371, 0.03696553781628609, 0.031066562980413437, -0.1592010259628296, -0.38161471486091614, -0.029284074902534485, -0.32218465209007263, -0.1753382533788681, 0.2126174122095108, 0.3064400851726532, -0.18347479403018951, 0.07511802017688751, 0.0227840393781662, 0.2852724492549896, -0.3811751902103424, -0.07637473195791245, -0.21325691044330597, 0.11831192672252655, 0.03804158419370651, -0.34135857224464417, 0.07943417131900787, 0.12826915085315704, 0.12139933556318283, 0.06260022521018982, 0.0283643901348114, 0.2675562798976898, 0.08033733069896698, 0.18564221262931824, -0.1188925951719284, -0.016100503504276276, 0.17196553945541382, -0.23837393522262573, 0.07501956820487976, -0.12509068846702576, 0.1603577435016632, 0.046585459262132645, -0.6727234125137329, 0.0003851020010188222, 0.18813303112983704, 0.06159088760614395, 0.15469470620155334, -0.024900037795305252, 0.13543958961963654, -0.00483429990708828, 0.1016896516084671, -0.6358630061149597, -0.2128160148859024, 0.035793762654066086, -0.03910067304968834, -0.18185576796531677, 0.005231800023466349, 0.6094300150871277, 0.7770427465438843, 0.36260706186294556, 0.06310843676328659, -0.23094016313552856, -0.18126210570335388, -0.11515746265649796, 0.4722098708152771, 0.3430480659008026, -0.053370583802461624, 0.3637395203113556, 0.3304121196269989, 0.1490488350391388, -0.09773655235767365, -0.13183589279651642, 0.09283015877008438, 0.12031976878643036, 0.1377066820859909, -0.019736547023057938, -0.1246785894036293, -0.04618385061621666, -0.15148618817329407, 0.28131046891212463, 0.07521719485521317, 0.1109597235918045, -0.4838540256023407, 0.07236780971288681, -0.15765255689620972, -0.25750815868377686, -0.005407032091170549, -0.023347757756710052, 0.1534704864025116, -0.5470789670944214, -0.11760018020868301, 0.10478159785270691, -0.03670021519064903, -0.007438354194164276, -0.39078059792518616, -0.2241026908159256, 0.09738382697105408, 0.13027305901050568, -0.22954204678535461, -0.14814014732837677, -0.20972639322280884, 0.11498131603002548, -0.0025936299934983253, 0.4516178071498871, 0.05529891327023506, -0.4292145073413849, 0.18585552275180817, -0.2562682628631592, -0.24180062115192413, 0.4040507674217224, -0.1166573241353035, 0.1641973853111267, 0.08658435940742493, 0.11363837867975235, -0.12140286713838577, -0.026389019563794136, 0.12522822618484497, -0.10534225404262543, -0.09453115612268448, -0.28098055720329285, 0.11050891876220703, -0.171147421002388, -0.39875465631484985, -0.5998811721801758, 0.05524742230772972, -0.2666042447090149, 0.03286443278193474, -0.057479310780763626, 0.1940273940563202, 0.20590269565582275, 0.06487829238176346, 0.13162395358085632, -0.18480588495731354, 0.01154484786093235, -0.3522602915763855, -0.3473900258541107, 0.17146381735801697, -0.23986415565013885, -0.38010454177856445, 0.309111624956131, 0.03914830461144447, 0.19104640185832977, 0.20373407006263733, -0.30242985486984253, 0.2572615444660187, -0.14581623673439026, -0.2311890423297882, 0.10082985460758209, 0.10237539559602737, 0.22088021039962769, 0.15268829464912415, -0.10168174654245377, -0.22540131211280823, -0.17800241708755493, 0.14417077600955963, -0.104772187769413, 0.1677219271659851, -0.06519008427858353, 0.27615582942962646, 0.11233304440975189, -0.11356478184461594, -0.27126237750053406, -0.04290863499045372, 0.11380625516176224, -0.21395735442638397, 0.3155632019042969, 0.15027961134910583, -0.020521681755781174, -0.007665772922337055, 0.15892237424850464, 0.17803524434566498, 0.26203271746635437, 0.010667435824871063, -0.054255951195955276, -0.005446900147944689, 0.18907025456428528, -0.5104591250419617, -0.39810577034950256, -0.13204585015773773, 0.21534202992916107, 0.14775682985782623, 0.1280757635831833, 0.7173324227333069, 0.05447123199701309, -0.08392909169197083, -0.07075624912977219, 0.23684750497341156, 0.0570661686360836, -0.00038792029954493046, -0.23567801713943481, 0.04627930745482445, -0.0906090959906578, 0.01254561822861433, 0.0015608614776283503, 0.16334645450115204, -0.33134379982948303, -0.227220818400383, 0.1480192095041275, -0.3638617992401123, 0.09619855135679245, -0.3704288601875305, 0.3671700060367584, 0.273122638463974, 0.05073152109980583, -0.07708911597728729, 0.12335027009248734, -0.20873193442821503, -0.196839839220047, 0.13868477940559387, 0.058612193912267685, -0.32243362069129944, -0.3163810074329376, 0.19055968523025513, -0.44809985160827637, -0.022522583603858948, -0.032739490270614624, 0.13501198589801788, -0.21694301068782806, -0.2623642086982727, -0.14287331700325012, 0.19598238170146942, -0.05785558000206947, -0.06851346790790558, -0.28308677673339844, 0.07807129621505737, 0.07498281449079514, 0.14719446003437042, 0.410360187292099, 0.20922592282295227, 0.08470188826322556, 0.10454574972391129, 0.48308369517326355, 0.4035465717315674, 0.4220605790615082, 0.30229875445365906, 0.025732938200235367, -0.07272442430257797, 0.4046148657798767, -0.6266825199127197, 0.16751688718795776, 0.2744823098182678, 0.007850093767046928, 0.000793469836935401, 0.362539142370224, -0.15657661855220795, -0.200478196144104, 0.29755285382270813, -0.06433763355016708, -0.11299790441989899, -0.2920457720756531, -0.5721695423126221, 0.27978426218032837, 0.028650546446442604, -0.09615446627140045, 0.11310850828886032, 0.267482191324234, -0.5301425457000732, -0.20367002487182617, 0.24169906973838806, 0.7895457148551941, 0.17524172365665436, -0.010266094468533993, 0.023443320766091347, -0.24245597422122955, -0.045566413551568985, -0.2723430395126343, -0.016151312738656998, -0.3740864396095276, 0.179179847240448, -0.21152298152446747, 0.0993015319108963, 0.19626204669475555, 0.3189944326877594, -0.1698044389486313, -0.09847725182771683, 0.292114794254303, -0.328672856092453, 0.1763797104358673, 0.380837619304657, -0.2352474480867386, -0.15322186052799225, -0.10855201631784439, 0.13559702038764954, 0.04149279370903969, -0.0540926456451416, 0.1308649331331253, -0.3416995108127594, -0.09289180487394333, -0.03646967187523842, -0.025694262236356735, 0.13921736180782318, -0.3246925175189972, -0.1901894062757492, -0.23692531883716583, -0.24604998528957367, 0.10631667822599411, -0.14578354358673096, 0.08273697644472122, 0.20054863393306732, -0.43372464179992676, 0.2937312424182892, -0.17982585728168488, -0.082267627120018, -0.11582811176776886, -0.00918326061218977, 0.29842859506607056, -0.15680544078350067, -0.1987609714269638, -0.14475269615650177, -0.08523117750883102, -0.12663306295871735, 0.004696788731962442, 0.14157868921756744, 0.12489542365074158, -0.4008582532405853, 0.1334579586982727, 0.14567752182483673, -0.0958424061536789, -0.14608997106552124, 0.16884426772594452, 0.03289012610912323, 0.05835644528269768, 0.19294314086437225, 0.3582649827003479, -0.2618308663368225, -0.1672452986240387, 0.37267792224884033, -0.17609107494354248, -0.08827630430459976, 0.1638280749320984, 0.0021951680537313223, -0.2613433003425598, -0.378960520029068, -0.013354122638702393, 0.5003789067268372, 0.13477244973182678, -0.491067111492157, -0.21209736168384552, -0.3264754116535187, 0.3360269069671631, 0.2435658723115921, -0.11608707904815674, -0.10906852781772614, -0.23422102630138397, -0.2818220555782318, -0.39917510747909546, 0.2071363776922226, -0.20410111546516418, 0.008084775879979134, 0.18928350508213043, -0.03645941615104675, 0.26381853222846985, -0.15040777623653412, -0.38632339239120483, 0.02780109830200672, 0.21383172273635864, 0.06024830788373947, 0.14377662539482117, 0.044634561985731125, 0.2313130497932434, -0.15133926272392273, 0.15310138463974, 0.19295208156108856, -0.12365356087684631, -0.22470520436763763, -0.10047866404056549, 0.03508678823709488, 0.027226954698562622, -0.13479048013687134, -0.08813965320587158, -0.15243522822856903, -0.3209799528121948, -0.28765347599983215, 0.25130385160446167, 0.040274716913700104, 0.08037690818309784, 0.08320089429616928, -0.0945243239402771, 0.44064146280288696, -0.12587906420230865, 0.038049306720495224, 0.059330496937036514, 0.06966715306043625, -0.11572875082492828, -0.0563279427587986, -0.37902960181236267, 0.0988927036523819, 0.45357969403266907, 0.05924312770366669, 0.30436524748802185, -0.0033046009484678507, 0.3342951238155365, -0.20550870895385742, 0.015352074056863785, 0.33275365829467773, 0.010882527567446232, 0.3245542645454407, -0.06691233068704605, -0.3051404654979706, -0.031967893242836, 0.2545072138309479, -0.002628196496516466, 0.05560455471277237, 0.10989759117364883, -0.1309250295162201, 0.22772322595119476, 0.36033231019973755, 0.33177900314331055, -0.0640297532081604, -0.0707295686006546, 0.366319477558136, 0.6429952383041382, -0.3152548372745514, -0.21529723703861237, 0.4119018614292145, -0.25010281801223755, 0.23869957029819489, 0.11599177867174149, 0.22447165846824646, 0.0928729921579361, 0.6355944275856018, 0.31235983967781067, 0.39415571093559265, 0.5453960299491882, 0.1750766932964325, -0.3109181523323059, -0.195047065615654, 0.14362722635269165, 0.22135847806930542, -0.11945705115795135, 0.13339731097221375, 0.034715257585048676, -0.11394766718149185, 0.1513858437538147, 0.07316219061613083, -0.024402663111686707, -0.0894729420542717, -0.2525067925453186, -0.03454428166151047, -0.017287708818912506, -0.15781183540821075, -0.17856472730636597, -0.2662707269191742, 0.08996361494064331, -0.17213185131549835, 0.09421910345554352, -0.44519561529159546, -0.063892662525177, 0.002837738487869501, 0.009167434647679329, 0.10449180006980896, 0.15854166448116302, -0.3273650109767914, 0.2587597370147705, -0.2797079384326935, -0.026380449533462524, 0.28620731830596924, 0.20371876657009125, 0.33454442024230957, 0.1418786346912384, 0.14274196326732635, -0.30946463346481323, 0.0011365534737706184, -0.3045975863933563, -0.1856108456850052, 0.19348545372486115, 0.125397726893425, 0.21594493091106415, 0.23404066264629364, 0.23146918416023254, -0.24603760242462158, -0.1899322122335434, 0.24855363368988037, 0.07724291831254959, 0.09575142711400986, -0.1909877359867096, -0.11584882438182831, -0.11950300633907318, 0.12546977400779724, -0.36677342653274536, -0.2558038830757141, -0.11292020231485367, 0.551288366317749, -0.11514981836080551, 0.22108055651187897, -0.03603537380695343, 0.11095189303159714, 0.27876466512680054, -0.001214552205055952, 0.18164528906345367, -0.2275976538658142, 0.1063513457775116, -0.1536758691072464, -0.6459055542945862, -0.06970622390508652, 0.02049502544105053, -0.25028303265571594, 0.02863464131951332, 0.28352510929107666, 0.13107654452323914, -0.017715169116854668, 0.17200542986392975, -0.16774684190750122, 0.27928274869918823, 0.10687267035245895, -0.08466150611639023, -0.3372972011566162, 0.16394618153572083, 0.0971035361289978, 0.026235755532979965, -0.18551892042160034, 0.1773134022951126, 0.17273321747779846, 0.10987141728401184, -0.20286668837070465, 0.06349960714578629, -0.05151324346661568, 0.17556120455265045, 0.3808182179927826, -0.07363317906856537, 0.46899715065956116, -0.30774229764938354, 0.0035889260470867157, -0.3574783205986023, 0.0783880427479744, 0.1564231961965561, 0.5593142509460449, 0.052688539028167725, 0.27600207924842834, -0.0038080746307969093, -0.09246595203876495, -0.1603153645992279, 0.007445485331118107, -0.0002644002961460501, 0.14212483167648315, -0.1350039392709732, 0.2454381287097931, -0.137724831700325, 0.0066441441886126995, -0.01210489310324192, -0.0718834176659584, 0.09351083636283875, -0.21895307302474976, -0.07761967927217484, -0.4501889944076538, 0.10707934200763702, -0.06384637206792831, -0.3448825776576996, -0.3178422152996063, -0.06864432245492935, -0.014112381264567375, 0.06391549855470657, -0.7575870156288147, 0.07114119082689285, 0.3208197355270386, -0.21424318850040436, -0.07872448861598969, -0.15248499810695648, -0.0406702384352684, 0.09652604907751083, -0.140260249376297, 0.48447322845458984, 0.26528871059417725, -0.19811294972896576, -0.1950332671403885, -0.0752185508608818 ]
https://github.com/huggingface/datasets/issues/3597
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
Hi! The `cd` command in Jupyer/Colab needs to start with `%`, so this should work: ``` !git clone https://github.com/huggingface/datasets.git %cd datasets !pip install -e ".[streaming]" ```
## Bug The install of streaming dataset is giving following error. ## Steps to reproduce the bug ```python ! git clone https://github.com/huggingface/datasets.git ! cd datasets ! pip install -e ".[streaming]" ``` ## Actual results Cloning into 'datasets'... remote: Enumerating objects: 50816, done. remote: Counting objects: 100% (2356/2356), done. remote: Compressing objects: 100% (1606/1606), done. remote: Total 50816 (delta 834), reused 1741 (delta 525), pack-reused 48460 Receiving objects: 100% (50816/50816), 72.47 MiB | 27.68 MiB/s, done. Resolving deltas: 100% (22541/22541), done. Checking out files: 100% (6722/6722), done. ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
26
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
[ -0.1519402414560318, -0.0791003406047821, -0.23715613782405853, -0.16312552988529205, 0.19602420926094055, 0.13040393590927124, -0.03047245368361473, 0.20141831040382385, -0.11471182107925415, 0.058270689100027084, 0.07487614452838898, 0.2661174535751343, -0.09861937165260315, 0.05587219446897507, -0.11695199459791183, -0.0690675750374794, -0.17075379192829132, 0.23635224997997284, -0.029846135526895523, 0.16061054170131683, -0.08343002200126648, 0.21582099795341492, -0.10909624397754669, -0.08422601968050003, -0.3279832899570465, -0.3417139947414398, -0.140396848320961, 0.31366419792175293, -0.3242167532444, -0.3825928270816803, 0.1783350259065628, 0.2557787001132965, -0.25661662220954895, 0.4284093379974365, -0.00009378648974234238, 0.054123859852552414, 0.25212234258651733, -0.07197247445583344, -0.16325314342975616, 0.05551043897867203, -0.09745094180107117, -0.09253117442131042, -0.04036867246031761, 0.06478731334209442, 0.10724876075983047, 0.05555787310004234, -0.0019602293614298105, 0.2762475311756134, 0.21621578931808472, 0.20387767255306244, 0.40520644187927246, 0.02230037748813629, 0.2800987958908081, -0.17632219195365906, -0.07067329436540604, 0.09927692264318466, -0.12085484713315964, 0.3578580617904663, 0.19872143864631653, -0.1993737816810608, 0.20900413393974304, 0.09867654740810394, -0.11886701732873917, -0.22898708283901215, 0.1375196874141693, -0.2983034551143646, 0.07443210482597351, -0.4093575179576874, 0.21322444081306458, -0.16849462687969208, 0.02641100063920021, -0.14106933772563934, -0.197208970785141, -0.07702875882387161, 0.24767962098121643, -0.14413407444953918, 0.2967703938484192, 0.1423073709011078, -0.1478388011455536, 0.18556787073612213, -0.03118356689810753, -0.5220814943313599, -0.13081811368465424, 0.049327511340379715, 0.18982073664665222, 0.08416025340557098, -0.07210355252027512, -0.1310444474220276, -0.06655219197273254, 0.03739716857671738, 0.05802690610289574, 0.024021612480282784, -0.1725100725889206, 0.146275132894516, 0.12419844418764114, 0.06558023393154144, 0.010636485181748867, -0.06882283091545105, -0.13606475293636322, 0.09930448979139328, -0.22560904920101166, -0.07919586449861526, 0.011486516334116459, 0.3287559449672699, -0.31913113594055176, 0.37015777826309204, -0.16919690370559692, 0.4390231668949127, 0.19755588471889496, 0.32732582092285156, 0.17148390412330627, 0.08942978829145432, -0.27548110485076904, -0.3680678606033325, -0.4146793484687805, 0.007934403605759144, 0.025597263127565384, 0.20159094035625458, -0.21131174266338348, -0.15795420110225677, 0.32586902379989624, 0.12796354293823242, 0.04916628822684288, 0.3712821900844574, 0.029438644647598267, -0.05089692771434784, 0.20649905502796173, 0.38735243678092957, -0.16597364842891693, 0.3055560886859894, -0.041377827525138855, 0.5151009559631348, -0.17564822733402252, -0.23866745829582214, 0.2308306097984314, -0.14306651055812836, 0.36846378445625305, 0.022558199241757393, 0.129691481590271, -0.016852831467986107, 0.1039012223482132, 0.18405166268348694, -0.10110332816839218, 0.5061845779418945, -0.06833888590335846, 0.11614418029785156, 0.1344575732946396, -0.1072218120098114, -0.13622896373271942, -0.08372816443443298, -0.22388997673988342, -0.37201204895973206, 0.07555869221687317, 0.35205480456352234, 0.31994014978408813, 0.08057016134262085, 0.11061091721057892, -0.2800176441669464, 0.1766514778137207, -0.013671587221324444, 0.030929166823625565, -0.13093510270118713, 0.25671491026878357, -0.2647229731082916, 0.2053655982017517, 0.30021893978118896, 0.0060968222096562386, 0.0728699266910553, 0.09346029907464981, -0.03151748701930046, -0.09740590304136276, 0.16546334326267242, 0.037054214626550674, 0.12772631645202637, -0.18832139670848846, -0.17112690210342407, 0.33848699927330017, -0.5692780613899231, -0.2718373239040375, 0.17661961913108826, -0.06442476809024811, -0.12650327384471893, 0.06470643728971481, -0.03853955492377281, -0.12031900137662888, -0.06231232360005379, 0.21991227567195892, 0.0822734460234642, 0.15084102749824524, 0.04715092107653618, -0.2614302933216095, -0.3859395384788513, -0.05844806507229805, -0.08883937448263168, 0.2733076810836792, 0.09404435008764267, -0.021922288462519646, -0.20083577930927277, 0.07824621349573135, 0.07734359800815582, -0.0028221500106155872, 0.2448936104774475, 0.30682045221328735, 0.15364190936088562, -0.09047698229551315, 0.03913121297955513, 0.2532389461994171, 0.07828817516565323, -0.0852288156747818, 0.30063360929489136, -0.24445058405399323, 0.05594507232308388, -0.3038614094257355, 0.042088624089956284, -0.43160542845726013, -0.5546261072158813, 0.34240683913230896, 0.18050386011600494, 0.2931012213230133, -0.015299327671527863, -0.25446367263793945, 0.24962469935417175, -0.1673746407032013, 0.1502522975206375, -0.011950460262596607, -0.17429304122924805, -0.5104565620422363, -0.18772245943546295, 0.18001054227352142, 0.002294116886332631, 0.08919841051101685, -0.135575070977211, -0.08754094690084457, 0.3950999975204468, -0.2906726896762848, 0.12016316503286362, 0.029078898951411247, -0.018640566617250443, 0.008500722236931324, -0.3273561894893646, 0.0842035785317421, 0.03147955611348152, 0.09869246929883957, 0.0617271363735199, 0.3599981665611267, -0.18549910187721252, -0.010410447604954243, -0.00027919645071960986, 0.3463462293148041, 0.03142090141773224, 0.11224722117185593, 0.25755932927131653, 0.1048077717423439, -0.29361656308174133, 0.18415102362632751, 0.3715939223766327, 0.15399841964244843, -0.3771992623806, 0.2768065631389618, -0.09823683649301529, -0.026919571682810783, 0.13534583151340485, 0.1038987785577774, 0.05084041878581047, 0.16936908662319183, 0.03231031820178032, -0.1884070187807083, 0.07891135662794113, 0.0413932241499424, 0.11180232465267181, -0.22384986281394958, 0.13282513618469238, -0.16043098270893097, -0.18930363655090332, 0.3263015151023865, -0.10537058115005493, -0.011159664019942284, 0.17945824563503265, 0.04821239784359932, -0.036925364285707474, -0.14625860750675201, -0.3021378815174103, -0.23744027316570282, 0.10510323941707611, -0.18374302983283997, 0.03369032219052315, -0.11295700073242188, -0.05964763090014458, 0.10982710123062134, 0.08132045716047287, -0.06636185944080353, -0.15748825669288635, 0.29047971963882446, 0.03922344744205475, 0.12883572280406952, 0.20924928784370422, -0.1808619350194931, -0.1045261099934578, 0.07318105548620224, 0.1392638385295868, 0.06952279061079025, -0.07654942572116852, 0.06899508833885193, 0.23344333469867706, 0.12843544781208038, -0.07311300188302994, 0.3158762454986572, -0.25820741057395935, 0.016185613349080086, 0.009537800215184689, -0.18806344270706177, 0.10912694782018661, -0.09841523319482803, 0.2528482675552368, 0.18931497633457184, 0.1875080168247223, 0.2995554804801941, -0.24851356446743011, 0.25154268741607666, -0.10961013287305832, 0.0646364688873291, -0.09624190628528595, -0.04736919328570366, -0.38699421286582947, -0.0320393443107605, -0.4340458810329437, -0.11968621611595154, -0.2615851163864136, 0.08049409836530685, 0.24443167448043823, -0.04446839913725853, 0.47374171018600464, 0.28688472509384155, 0.006253859959542751, -0.07328557223081589, 0.42882707715034485, 0.056001923978328705, -0.2607176601886749, 0.19739356637001038, -0.4392327666282654, -0.18705955147743225, 0.10037952661514282, -0.20114515721797943, 0.2658030092716217, -0.10847403109073639, 0.04301735758781433, 0.31146541237831116, -0.16798505187034607, 0.08589541912078857, -0.0659274309873581, 0.263070672750473, 0.24669399857521057, 0.12629367411136627, -0.14760753512382507, -0.05691264197230339, 0.07357578724622726, -0.15035708248615265, 0.10796183347702026, 0.044173531234264374, -0.20379751920700073, -0.026755372062325478, -0.08539456129074097, 0.3288387060165405, 0.07086966186761856, 0.46932315826416016, 0.26735061407089233, -0.15319138765335083, 0.48796916007995605, -0.36341243982315063, -0.27518296241760254, 0.0773526132106781, 0.16861538589000702, -0.027135945856571198, 0.1114642322063446, 0.2740110158920288, -0.024890674278140068, -0.2724892199039459, -0.09904539585113525, -0.3798435628414154, 0.15445904433727264, -0.21234998106956482, 0.26154765486717224, 0.36855703592300415, 0.040971409529447556, -0.0016019170871004462, 0.14901769161224365, 0.06586205214262009, 0.17615872621536255, 0.6263492703437805, -0.2809063196182251, 0.032094601541757584, -0.20535944402217865, -0.4335080683231354, -0.10420352220535278, -0.06394120305776596, 0.12252294272184372, 0.10206782817840576, -0.15623493492603302, -0.05716763809323311, 0.08843757957220078, -0.09232353419065475, 0.2607634961605072, -0.36169829964637756, -0.25513502955436707, 0.2863408029079437, 0.2233116328716278, 0.05948726460337639, -0.12265980988740921, -0.04534844309091568, 0.24071359634399414, 0.03607210889458656, -0.01164788007736206, 0.02348107285797596, 0.2659880518913269, -0.15668268501758575, 0.10212910175323486, -0.048507917672395706, 0.013496407307684422, -0.2871108949184418, -0.2774815261363983, -0.5448222160339355, -0.14426037669181824, 0.05736149102449417, -0.08040964603424072, 0.047604408115148544, 0.06755542010068893, 0.173787921667099, -0.001249621738679707, 0.000048997004341799766, 0.31794634461402893, 0.11101820319890976, -0.10328677296638489, -0.1250157356262207, -0.008067661896348, -0.035336993634700775, 0.3942320942878723, 0.08382932841777802, -0.0620834082365036, 0.36923518776893616, 0.029506715014576912, -0.02007194049656391, 0.1628987044095993, 0.2579961121082306, -0.20760482549667358, -0.08473889529705048, -0.025943119078874588, 0.06596823036670685, -0.022311560809612274, -0.05126597732305527, 0.34118810296058655, -0.1649620682001114, -0.30571675300598145, -0.43129050731658936, -0.08799600601196289, -0.24796989560127258, -0.03364807367324829, 0.214845210313797, 0.20849913358688354, -0.18758834898471832, 0.17263491451740265, -0.1976751685142517, 0.7339140772819519, -0.012950044125318527, 0.11038205772638321, 0.3131590485572815, -0.0006749759777449071, 0.07754136621952057, -0.2616194486618042, 0.4506232738494873, -0.16499876976013184, 0.07973213493824005, 0.12082000821828842, -0.1260802149772644, 0.2590547800064087, -0.06572722643613815, -0.3460368812084198, 0.2611188292503357, -0.31926000118255615, -0.1944669932126999, -0.13976092636585236, 0.08320692926645279, -0.39406633377075195, 0.06123426929116249, -0.2585962414741516, 0.3695172071456909, 0.2414269745349884, 0.3388994634151459, -0.267255038022995, 0.31745338439941406, -0.14724929630756378, -0.2416764795780182, -0.2031192034482956, 0.036695510149002075, -0.10901433974504471, 0.37575605511665344, 0.03132151812314987, 0.08364267647266388, 0.038044799119234085, -0.11648288369178772, 0.08289513736963272, 0.31638041138648987, -0.12741203606128693, 0.13241639733314514, 0.30806809663772583, -0.6458858251571655, 0.029425662010908127, 0.2875818610191345, 0.1572210043668747, -0.23431235551834106, -0.19133219122886658, -0.00557794701308012, -0.1948801726102829, 0.035353753715753555, 0.02976241521537304, -0.24490751326084137, 0.29284796118736267, -0.00915416982024908, -0.3274625241756439, -0.127341628074646, -0.06807386130094528, -0.2658677399158478, 0.28428709506988525, -0.11898298561573029, 0.08778277039527893, 0.057328272610902786, 0.12380174547433853, -0.10312026739120483, -0.10350974649190903, -0.04581442102789879, -0.08497142791748047, -0.2690686285495758, 0.380554735660553, 0.014730299822986126, -0.3935786187648773, -0.360870361328125, 0.08648735284805298, -0.40092960000038147, 0.08938330411911011, 0.04551799222826958, 0.2267848700284958, -0.2935100793838501, -0.05374708026647568, 0.3151315152645111, 0.12850934267044067, 0.045403044670820236, -0.07267405092716217, -0.22007888555526733, -0.32379910349845886, 0.1549971103668213, 0.12466154992580414, 0.06964393705129623, -0.19372938573360443, 0.053317535668611526, 0.36410707235336304, -0.016853410750627518, -0.47939059138298035, -0.16131412982940674, -0.04490935429930687, -0.18267662823200226, 0.16587787866592407, 0.036257389932870865, 0.09675759077072144, 0.04694943502545357, 0.3641555905342102, -0.18507593870162964, -0.10826505720615387, -0.36362332105636597, -0.08836819231510162, -0.019785216078162193, -0.0885508731007576, -0.15114891529083252, 0.25937214493751526, -0.22397229075431824, -0.24295563995838165, 0.051836904138326645, 0.15828101336956024, 0.18989069759845734, 0.10409548133611679, 0.025052854791283607, -0.3586002588272095, -0.12998159229755402, 0.12951739132404327, 0.2353588044643402, -0.20570071041584015, 0.04636235162615776, 0.15485399961471558, -0.2460327446460724, -0.09478145837783813, -0.08949412405490875, 0.03144179657101631, 0.16092294454574585, -0.2389167845249176, 0.2561304569244385, 0.03959744796156883, -0.2362154722213745, 0.33040785789489746, -0.21902146935462952, 0.19248121976852417, 0.12399701029062271, -0.05585207790136337, 0.18061956763267517, 0.28532567620277405, 0.3359908163547516, -0.2386903315782547, 0.10667803883552551, -0.2211456149816513, -0.2697318196296692, 0.1914857029914856, 0.10249541699886322, -0.0399421751499176, -0.21790815889835358, -0.15479950606822968, 0.27194151282310486, 0.06780805438756943, -0.1004200279712677, 0.13865110278129578, 0.2296334058046341, 0.07461734861135483, -0.03472646698355675, -0.10610384494066238, 0.04012742266058922, 0.025660522282123566, 0.05647968500852585, -0.01332149375230074, 0.10235172510147095, 0.04164984077215195, -0.0059215351939201355, 0.0802975744009018, -0.1625450998544693, 0.057020995765924454, -0.3286028206348419, 0.21708333492279053, 0.07670700550079346, -0.07538366317749023, 0.307694673538208, -0.16847969591617584, 0.1522253155708313, -0.13346606492996216, 0.24736714363098145, -0.1413104236125946, -0.14644096791744232, 0.15084119141101837, -0.22085069119930267, -0.014143632724881172, -0.15651793777942657, 0.10321412980556488, -0.0802459567785263, -0.26636970043182373, 0.09723544865846634, -0.13098594546318054, -0.15648499131202698, 0.5156968832015991, -0.06274906545877457, 0.23172661662101746, -0.06855294108390808, 0.13321536779403687, 0.07103101909160614, 0.024701470509171486, -0.04156230390071869, 0.2651720345020294, 0.7083796858787537, 0.454818457365036, -0.19448718428611755, 0.00805182009935379, -0.1539411097764969, -0.16093795001506805, 0.03785121440887451, 0.10738541185855865, 0.15061457455158234, 0.3416881263256073, -0.0805894210934639, 0.31589075922966003, -0.36480337381362915, -0.19570152461528778, 0.06556424498558044, 0.10129845887422562, 0.12526269257068634, 0.09822028875350952, -0.14859545230865479, -0.10826019942760468, 0.006238902453333139, 0.11547083407640457, -0.5331671833992004, 0.1217518225312233, 0.3952144980430603, -0.11385336518287659, -0.03015262447297573, -0.044995903968811035, 0.1860368847846985, 0.05084419995546341, 0.3877023160457611, 0.24769258499145508, 0.04637443274259567, 0.12627486884593964, -0.19648493826389313, -0.1709369719028473, 0.0774623453617096, -0.182864710688591, -0.37043237686157227, -0.23898333311080933, -0.16345162689685822, -0.1648699939250946, 0.042654044926166534, 0.29092660546302795, 0.05718433856964111, 0.03102230280637741, 0.0011409805156290531, 0.004770987667143345, -0.012967083603143692, 0.024653954431414604, 0.0164475217461586, 0.0992131307721138, -0.36036229133605957, -0.20712754130363464, -0.05580395087599754, 0.2604765295982361, 0.010032035410404205, 0.17528654634952545, -0.024802371859550476, -0.03927795588970184, 0.2832683324813843, -0.07592631876468658, 0.2387850433588028, -0.29325076937675476, -0.3866157531738281, -0.22718553245067596, -0.28708428144454956, 0.1513471156358719, 0.2126494199037552, 0.2768855690956116, 0.29578524827957153, -0.21236369013786316, -0.2937418520450592, -0.26555392146110535, 0.11633830517530441, 0.1808670461177826, -0.047355249524116516, -0.1909559667110443, 0.13262028992176056, 0.06459127366542816, 0.18615305423736572, 0.1741257607936859, 0.017100181430578232, -0.06404805183410645, -0.04321637004613876, -0.16865941882133484, -0.3622063994407654, 0.2932785153388977, -0.0436779223382473, -0.30770519375801086, 0.05204853415489197, 0.05102713778614998, -0.05021354928612709, 0.10646943002939224, -0.28673532605171204, 0.22177909314632416, 0.0114573510363698, 0.13437336683273315, -0.2554188668727875, 0.11985541880130768, -0.41392961144447327, -0.1296212077140808, 0.13191276788711548, 0.2464594841003418, -0.0807524248957634, -0.11928002536296844, -0.2323465496301651, -0.08517757058143616 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
30
Loss of cast `Image` feature on certain dataset method
[ -0.480998158454895, 0.16673530638217926, -0.062663733959198, 0.1170124039053917, 0.6286566257476807, 0.05924025550484657, 0.5137909054756165, 0.2283857762813568, -0.07036574929952621, 0.272655189037323, -0.15054278075695038, 0.45898616313934326, 0.05235804617404938, -0.25577762722969055, 0.028898337855935097, 0.0020359158515930176, -0.04801211878657341, 0.01333598978817463, -0.4230197072029114, -0.2356913983821869, -0.17560486495494843, -0.09806089848279953, -0.13557790219783783, -0.13399629294872284, -0.2222621887922287, -0.017733978107571602, 0.04327472299337387, 0.12170026451349258, 0.05717233568429947, -0.02791464887559414, -0.09907706081867218, 0.049356572329998016, -0.17326581478118896, 0.15099754929542542, -0.00011160947906319052, 0.004205181263387203, 0.21400699019432068, 0.13563577830791473, -0.18254268169403076, 0.27781566977500916, -0.5661318302154541, 0.08853571116924286, 0.04647010192275047, -0.3768393397331238, 0.05198022350668907, 0.10595661401748657, 0.3006991147994995, -0.18745507299900055, -0.01812520995736122, 0.1225493922829628, 0.26927441358566284, 0.19435177743434906, -0.20308446884155273, -0.06884165853261948, -0.08225636929273605, 0.3425475060939789, -0.2349199801683426, -0.017486900091171265, 0.22215598821640015, 0.5245278477668762, -0.0728755071759224, 0.24366021156311035, 0.0002841358946170658, -0.1616939753293991, -0.14906851947307587, 0.13526667654514313, -0.16351068019866943, -0.004178609233349562, 0.25013116002082825, -0.07113249599933624, 0.5344966053962708, -0.1528564691543579, -0.1193448156118393, 0.0431542806327343, 0.10792896896600723, 0.09876969456672668, -0.06682395935058594, -0.07356905937194824, 0.11217296123504639, -0.11904231458902359, -0.676813006401062, -0.09483353793621063, -0.0066715627908706665, 0.05028371885418892, -0.18310962617397308, 0.04850810393691063, 0.05594402924180031, 0.2722988426685333, -0.24319545924663544, 0.04687380790710449, 0.034285567700862885, -0.12855829298496246, 0.12035948038101196, -0.17170396447181702, 0.30700844526290894, 0.07237155735492706, 0.37446093559265137, 0.1524258255958557, 0.03463234007358551, -0.05600898712873459, 0.08808388561010361, 0.25396883487701416, -0.11241152882575989, -0.06806538999080658, 0.3727845847606659, -0.12009654194116592, -0.24057379364967346, 0.030354704707860947, 0.30086368322372437, 0.2114609330892563, -0.5567505955696106, -0.2547369599342346, 0.1414065659046173, 0.11033965647220612, 0.44232913851737976, -0.15933997929096222, 0.15982742607593536, -0.22180375456809998, -0.10139605402946472, -0.06485842913389206, 0.18331845104694366, 0.2225085198879242, 0.14580318331718445, 0.09433196485042572, 0.13314834237098694, -0.05494444817304611, 0.4079737067222595, 0.17323125898838043, -0.10495680570602417, -0.29908329248428345, -0.417481005191803, -0.10984668135643005, -0.22316035628318787, -0.34898701310157776, 0.0127750588580966, 0.1627187281847, 0.15754152834415436, -0.2045522779226303, 0.19498099386692047, 0.12453818321228027, -0.10424216836690903, -0.18146497011184692, 0.25921523571014404, 0.06262680888175964, -0.09957876801490784, -0.03461064398288727, 0.06945077329874039, 0.04311411827802658, 0.0513111911714077, 0.04441137984395027, -0.1974545121192932, 0.12700775265693665, -0.016930725425481796, 0.1985890418291092, -0.13963061571121216, 0.10587198287248611, -0.09997779875993729, 0.15201020240783691, -0.030765468254685402, -0.2881537675857544, 0.07070008665323257, -0.33754003047943115, -0.2997242212295532, -0.0799536406993866, 0.10588766634464264, 0.3322983980178833, -0.21939121186733246, -0.030874283984303474, -0.43923431634902954, -0.2742772698402405, 0.1431281864643097, 0.03126849606633186, -0.20165883004665375, 0.3339180648326874, -0.3192364275455475, 0.2579538822174072, 0.4746330976486206, -0.15740740299224854, -0.49555081129074097, 0.041003480553627014, 0.05871497094631195, -0.016302455216646194, -0.2682911157608032, 0.18199960887432098, 0.3184257745742798, -0.36710479855537415, -0.36711403727531433, 0.2014239877462387, -0.2209363728761673, 0.10654203593730927, -0.018452897667884827, 0.11797764897346497, -0.2781525254249573, 0.17003284394741058, 0.21018391847610474, 0.3882053792476654, 0.47560903429985046, 0.3276004195213318, -0.02191031165421009, -0.1268233060836792, 0.2653462588787079, -0.04193512350320816, 0.14055167138576508, -0.29787468910217285, -0.11005030572414398, -0.27833566069602966, -0.06329207122325897, 0.07615252584218979, 0.41980233788490295, 0.04780561849474907, -0.35849329829216003, 0.07163897156715393, 0.03206939622759819, -0.005813289899379015, -0.07963410019874573, 0.17019592225551605, 0.19372375309467316, 0.057769548147916794, -0.2833108603954315, 0.05506659671664238, 0.1432197093963623, 0.03750654682517052, -0.08818008005619049, -0.058206956833601, -0.04960165545344353, 0.16273877024650574, 0.12765167653560638, -0.43295609951019287, -0.3254346251487732, 0.10375385731458664, -0.11645378172397614, -0.04331471398472786, -0.3281320631504059, 0.22095318138599396, 0.01263775210827589, 0.10762649774551392, -0.17595811188220978, 0.17295348644256592, -0.0066004348918795586, -0.4969000816345215, 0.1204879879951477, 0.07671301811933517, 0.3363322913646698, 0.09309931099414825, -0.18977966904640198, -0.04704662412405014, 0.057294171303510666, -0.12212149798870087, 0.27362260222435, 0.0458516925573349, 0.14881856739521027, -0.03093785047531128, 0.11134479194879532, -0.5236707329750061, -0.2075134515762329, 0.23150786757469177, 0.07626831531524658, 0.07395487278699875, -0.3914639949798584, 0.1626405566930771, 0.6265977621078491, 0.1688113510608673, 0.3763042688369751, 0.001301903510466218, -0.01792501099407673, 0.017032302916049957, 0.3104971945285797, 0.037533823400735855, 0.6504706144332886, 0.22507421672344208, 0.31300994753837585, 0.06362874805927277, -0.13615275919437408, -0.09265055507421494, 0.1313188076019287, 0.05600621551275253, 0.1366877257823944, 0.11586468666791916, 0.3765801191329956, 0.03178737685084343, -0.4399757385253906, 0.00518133956938982, 0.1865178644657135, 0.0280312430113554, -0.13855472207069397, 0.09789208322763443, -0.6367881298065186, -0.18257169425487518, -0.07667543739080429, 0.78955078125, 0.14649541676044464, -0.24488914012908936, 0.01972648873925209, 0.031179795041680336, -0.36977845430374146, 0.28986871242523193, -0.5398539304733276, -0.03541536256670952, -0.15150484442710876, -0.1931084245443344, -0.2064816951751709, 0.20588302612304688, -0.14758947491645813, 0.052446816116571426, -0.010882826521992683, 0.07010933011770248, 0.364359974861145, -0.01117227878421545, -0.026065506041049957, -0.5546948313713074, -0.41185206174850464, 0.27056562900543213, 0.12550236284732819, 0.17651741206645966, 0.4210669696331024, 0.04943707212805748, -0.0566294826567173, 0.10714411735534668, 0.36487072706222534, -0.2689850628376007, -0.2455855756998062, 0.05337991565465927, -0.2295331060886383, -0.12693427503108978, -0.40358343720436096, 0.13204006850719452, 0.11916322261095047, -0.170976921916008, -0.011644775047898293, -0.017762377858161926, -0.10090018063783646, 0.10064119845628738, 0.3049755096435547, -0.09217863529920578, 0.04523521289229393, 0.25079432129859924, -0.3586536645889282, 0.005026640836149454, 0.08233454078435898, 0.058005720376968384, -0.23290738463401794, -0.3402527868747711, -0.02680419571697712, 0.30812984704971313, 0.6274155378341675, -0.2748173475265503, -0.38935163617134094, -0.019440777599811554, 0.3389722406864166, -0.04467291757464409, 0.02210472896695137, 0.31130149960517883, 0.08356059342622757, -0.1516227275133133, -0.41613128781318665, -0.148448184132576, 0.19296258687973022, 0.15235768258571625, 0.22208403050899506, 0.06848469376564026, 0.5241257548332214, 0.04086361825466156, 0.0036177090369164944, -0.24001801013946533, -0.3598380982875824, 0.5305605530738831, -0.34457990527153015, 0.412524551153183, -0.35208195447921753, -0.20040017366409302, 0.5027255415916443, 0.10675361752510071, -0.09510958939790726, -0.18030551075935364, -0.1592794954776764, -0.3431100845336914, 0.03758356720209122, 0.05395220220088959, -0.34561359882354736, -0.2569538950920105, -0.022552061825990677, 0.21136340498924255, 0.18493053317070007, 0.1404426246881485, -0.002553278114646673, -0.07247108221054077, 0.08291096985340118, 0.20724330842494965, -0.13264088332653046, 0.1638091504573822, -0.27814728021621704, 0.057807229459285736, -0.02468029223382473, 0.052160780876874924, 0.1834128350019455, 0.02863250859081745, 0.05110941082239151, -0.18296732008457184, -0.14792858064174652, 0.21416044235229492, 0.05748726427555084, 0.7478786110877991, -0.3581560254096985, 0.2546868324279785, -0.009561934508383274, -0.016323503106832504, -0.13316753506660461, 0.10193507373332977, -0.13873644173145294, -0.1485442817211151, 0.10780362784862518, 0.2699344754219055, -0.3124059736728668, -0.009465834125876427, 0.39321717619895935, 0.15247780084609985, -0.14542095363140106, 0.23678220808506012, -0.05293362960219383, -0.37790143489837646, -0.055234428495168686, -0.005702319089323282, 0.017730334773659706, -0.03982413560152054, 0.26173242926597595, -0.047319021075963974, -0.3412887454032898, -0.0655372366309166, -0.43509289622306824, 0.13124866783618927, 0.30298134684562683, -0.22380895912647247, 0.3279070556163788, -0.08615279942750931, 0.005995180923491716, 0.12760679423809052, 0.5769458413124084, -0.1479337513446808, -0.14023305475711823, 0.23516754806041718, 0.023989515379071236, 0.21099932491779327, 0.3276231288909912, -0.0736008733510971, -0.2928028404712677, -0.07535895705223083, -0.021911215037107468, -0.09817352145910263, 0.18000684678554535, 0.38707593083381653, -0.24126961827278137, 0.19738323986530304, -0.08748651295900345, 0.24114872515201569, -0.05664582550525665, -0.0574369952082634, -0.07192487269639969, -0.05347537249326706, -0.48298555612564087, 0.07225148379802704, 0.43444880843162537, 0.8382105827331543, 0.05134035646915436, 0.21475750207901, 0.1564285010099411, -0.16364611685276031, 0.22837334871292114, 0.5367595553398132, -0.08016496896743774, -0.12716126441955566, -0.19141724705696106, -0.02424907498061657, -0.022465016692876816, 0.023119311779737473, 0.08739147335290909, -0.036904476583004, -0.16817858815193176, -0.13961301743984222, 0.22824281454086304, -0.10010115802288055, -0.2023584246635437, -0.0171413142234087, -0.24197329580783844, -0.04600745812058449, 0.23355261981487274, -0.01893523521721363, -0.3259686529636383, 0.030412448570132256, 0.03861549496650696, -0.04312989115715027, 0.020429641008377075, -0.083380788564682, 0.24797481298446655, 0.007354306988418102, 0.23717518150806427, 0.06948663294315338, -0.2887316346168518, 0.09329099208116531, 0.08964462578296661, 0.11276725679636002, 0.054069291800260544, -0.08680062741041183, 0.4313598871231079, 0.2087315320968628, 0.5137438774108887, 0.17659635841846466, -0.01886327937245369, 0.5915836095809937, -0.017514042556285858, 0.06672829389572144, -0.18142303824424744, 0.0352603979408741, -0.05479048565030098, -0.0882287472486496, 0.03489628806710243, -0.06915876269340515, -0.380960613489151, -0.2493772655725479, 0.0007054482703097165, 0.3194149136543274, -0.3391474783420563, 0.1665160059928894, 0.08889501541852951, 0.1919480860233307, 0.4604758322238922, -0.01270203571766615, -0.11996256560087204, 0.025838885456323624, 0.38157355785369873, -0.0018842489225789905, 0.2462882697582245, 0.3307346999645233, -0.2579004764556885, -0.15802627801895142, -0.2584191560745239, -0.19651901721954346, 0.24397417902946472, -0.622349202632904, 0.3455531597137451, -0.24233274161815643, -0.17954349517822266, -0.10135360807180405, -0.055699896067380905, -0.36774107813835144, -0.10043893754482269, -0.4546979069709778, 0.04494594410061836, -0.38940757513046265, 0.24092704057693481, 0.11347641050815582, 0.23713485896587372, -0.31483742594718933, 0.30575984716415405, -0.028871828690171242, -0.24396562576293945, -0.3705432713031769, 0.040219083428382874, -0.19785884022712708, 0.25564661622047424, 0.07155290246009827, 0.17711609601974487, -0.10603777319192886, -0.08746049553155899, 0.26045310497283936, 0.08611878752708435, -0.20721948146820068, -0.18905092775821686, -0.26830247044563293, 0.1270228922367096, 0.1469455361366272, -0.1509724259376526, 0.10074324905872345, -0.18957534432411194, -0.22466811537742615, -0.18942727148532867, 0.12891478836536407, 0.014993743039667606, -0.13537918031215668, -0.13496075570583344, 0.1677969992160797, -0.1686735451221466, 0.3168150782585144, -0.0174602959305048, -0.07928240299224854, 0.2203500121831894, 0.16061434149742126, 0.1963653713464737, -0.07978380471467972, -0.0684724971652031, 0.18898464739322662, -0.0526389554142952, 0.06621668487787247, 0.16356797516345978, 0.38102173805236816, 0.01329907588660717, 0.17928224802017212, 0.14789995551109314, 0.43324822187423706, -0.038429249078035355, -0.2603316903114319, -0.3761533200740814, -0.053474124521017075, 0.2426818460226059, -0.24485896527767181, -0.21866317093372345, 0.08043282479047775, -0.05100027844309807, 0.08669963479042053, 0.11861597746610641, -0.24979165196418762, 0.05073094367980957, -0.0838220864534378, -0.038355372846126556, 0.6735718250274658, -0.47792038321495056, -0.206797793507576, 0.2718885540962219, -0.017296606674790382, 0.33509373664855957, 0.20035696029663086, 0.17863573133945465, 0.04332305118441582, 0.5920479893684387, 0.05623972415924072, 0.1556752473115921, -0.10961929708719254, 0.14462660253047943, 0.20277896523475647, -0.0194384902715683, 0.2805846631526947, 0.1038077101111412, -0.36726030707359314, 0.34224921464920044, -0.11472266912460327, -0.35734158754348755, -0.16026532649993896, -0.10116692632436752, 0.07086553424596786, 0.40848076343536377, -0.2717081606388092, 0.04031960293650627, -0.3761434257030487, -0.1354130059480667, -0.004383568651974201, 0.1989971548318863, -0.07360764592885971, 0.20387999713420868, 0.254436194896698, -0.0872434452176094, -0.007966673001646996, -0.19183744490146637, -0.2205428034067154, -0.366616815328598, 0.14347471296787262, -0.2625257670879364, 0.34974101185798645, 0.0354929156601429, -0.05632568150758743, 0.5013312697410583, 0.5291560292243958, 0.15688909590244293, -0.042998429387807846, 0.47892704606056213, -0.22653764486312866, 0.07397495210170746, -0.24470604956150055, -0.4655073583126068, 0.17124108970165253, 0.4285459816455841, 0.16133995354175568, 0.10774780064821243, 0.13643889129161835, -0.1400350034236908, 0.060838352888822556, 0.2234194427728653, 0.02484254166483879, -0.22179298102855682, 0.2426774650812149, -0.053876690566539764, -0.3813125789165497, -0.04314389452338219, -0.14449568092823029, -0.0871058776974678, -0.15979142487049103, 0.26139432191848755, -0.37471169233322144, 0.17572060227394104, 0.07653742283582687, 0.08485368639230728, 0.031012507155537605, 0.14988195896148682, -0.03527474030852318, -0.08037710934877396, -0.048555709421634674, -0.11647281050682068, -0.4756653904914856, 0.2527582049369812, 0.2324332892894745, -0.5349693894386292, 0.11557850241661072, 0.14820750057697296, 0.07371018081903458, -0.31904101371765137, 0.3081514239311218, -0.17998065054416656, 0.47425469756126404, 0.09305492043495178, -0.13825121521949768, -0.3758857846260071, 0.08961892127990723, 0.0015562896151095629, -0.2710379958152771, -0.23068417608737946, 0.1824464499950409, 0.05089223012328148, 0.2753136157989502, 0.15612931549549103, -0.1727394312620163, -0.18577654659748077, -0.1122266873717308, 0.3160620629787445, 0.05154605954885483, 0.2096959948539734, -0.3406740427017212, 0.08680349588394165, 0.0512239970266819, -0.19614820182323456, -0.14505203068256378, 0.17414261400699615, 0.030146751552820206, 0.4845455586910248, 0.16662685573101044, 0.35313379764556885, -0.08573819696903229, -0.08409322798252106, 0.012663825415074825, 0.2070704847574234, -0.24174679815769196, 0.33441290259361267, -0.3048844039440155, -0.07436802983283997, 0.0392858125269413, 0.07583674788475037, 0.11336985975503922, -0.020045462995767593, -0.27024903893470764, -0.5007684826850891, 0.5428861975669861, -0.14534839987754822, -0.4530576169490814, -0.16782639920711517, 0.04492664709687233, -0.6495760083198547, -0.0831817165017128, -0.39955487847328186, -0.2507539987564087, 0.2938709855079651, -0.1646214723587036, -0.2513020634651184, 0.2915572226047516, 0.2225235402584076, -0.023539356887340546, 0.11287528276443481, 0.43482571840286255, 0.11421741545200348, -0.09829050302505493, 0.16734611988067627, 0.1593153178691864 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature. Thanks, I'll keep an eye out for #3575 getting merged. I managed to use `push_to_hub` sucesfully with images when they were loaded via `map` - something like `ds.map(lambda example: {"img": load_image_function(example['fname']})`, this only pushed the images to the hub if the `load_image_function` return a PIL Image without the filename attribute though. I guess this might often be the prefered behaviour though.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
92
Loss of cast `Image` feature on certain dataset method
[ -0.480998158454895, 0.16673530638217926, -0.062663733959198, 0.1170124039053917, 0.6286566257476807, 0.05924025550484657, 0.5137909054756165, 0.2283857762813568, -0.07036574929952621, 0.272655189037323, -0.15054278075695038, 0.45898616313934326, 0.05235804617404938, -0.25577762722969055, 0.028898337855935097, 0.0020359158515930176, -0.04801211878657341, 0.01333598978817463, -0.4230197072029114, -0.2356913983821869, -0.17560486495494843, -0.09806089848279953, -0.13557790219783783, -0.13399629294872284, -0.2222621887922287, -0.017733978107571602, 0.04327472299337387, 0.12170026451349258, 0.05717233568429947, -0.02791464887559414, -0.09907706081867218, 0.049356572329998016, -0.17326581478118896, 0.15099754929542542, -0.00011160947906319052, 0.004205181263387203, 0.21400699019432068, 0.13563577830791473, -0.18254268169403076, 0.27781566977500916, -0.5661318302154541, 0.08853571116924286, 0.04647010192275047, -0.3768393397331238, 0.05198022350668907, 0.10595661401748657, 0.3006991147994995, -0.18745507299900055, -0.01812520995736122, 0.1225493922829628, 0.26927441358566284, 0.19435177743434906, -0.20308446884155273, -0.06884165853261948, -0.08225636929273605, 0.3425475060939789, -0.2349199801683426, -0.017486900091171265, 0.22215598821640015, 0.5245278477668762, -0.0728755071759224, 0.24366021156311035, 0.0002841358946170658, -0.1616939753293991, -0.14906851947307587, 0.13526667654514313, -0.16351068019866943, -0.004178609233349562, 0.25013116002082825, -0.07113249599933624, 0.5344966053962708, -0.1528564691543579, -0.1193448156118393, 0.0431542806327343, 0.10792896896600723, 0.09876969456672668, -0.06682395935058594, -0.07356905937194824, 0.11217296123504639, -0.11904231458902359, -0.676813006401062, -0.09483353793621063, -0.0066715627908706665, 0.05028371885418892, -0.18310962617397308, 0.04850810393691063, 0.05594402924180031, 0.2722988426685333, -0.24319545924663544, 0.04687380790710449, 0.034285567700862885, -0.12855829298496246, 0.12035948038101196, -0.17170396447181702, 0.30700844526290894, 0.07237155735492706, 0.37446093559265137, 0.1524258255958557, 0.03463234007358551, -0.05600898712873459, 0.08808388561010361, 0.25396883487701416, -0.11241152882575989, -0.06806538999080658, 0.3727845847606659, -0.12009654194116592, -0.24057379364967346, 0.030354704707860947, 0.30086368322372437, 0.2114609330892563, -0.5567505955696106, -0.2547369599342346, 0.1414065659046173, 0.11033965647220612, 0.44232913851737976, -0.15933997929096222, 0.15982742607593536, -0.22180375456809998, -0.10139605402946472, -0.06485842913389206, 0.18331845104694366, 0.2225085198879242, 0.14580318331718445, 0.09433196485042572, 0.13314834237098694, -0.05494444817304611, 0.4079737067222595, 0.17323125898838043, -0.10495680570602417, -0.29908329248428345, -0.417481005191803, -0.10984668135643005, -0.22316035628318787, -0.34898701310157776, 0.0127750588580966, 0.1627187281847, 0.15754152834415436, -0.2045522779226303, 0.19498099386692047, 0.12453818321228027, -0.10424216836690903, -0.18146497011184692, 0.25921523571014404, 0.06262680888175964, -0.09957876801490784, -0.03461064398288727, 0.06945077329874039, 0.04311411827802658, 0.0513111911714077, 0.04441137984395027, -0.1974545121192932, 0.12700775265693665, -0.016930725425481796, 0.1985890418291092, -0.13963061571121216, 0.10587198287248611, -0.09997779875993729, 0.15201020240783691, -0.030765468254685402, -0.2881537675857544, 0.07070008665323257, -0.33754003047943115, -0.2997242212295532, -0.0799536406993866, 0.10588766634464264, 0.3322983980178833, -0.21939121186733246, -0.030874283984303474, -0.43923431634902954, -0.2742772698402405, 0.1431281864643097, 0.03126849606633186, -0.20165883004665375, 0.3339180648326874, -0.3192364275455475, 0.2579538822174072, 0.4746330976486206, -0.15740740299224854, -0.49555081129074097, 0.041003480553627014, 0.05871497094631195, -0.016302455216646194, -0.2682911157608032, 0.18199960887432098, 0.3184257745742798, -0.36710479855537415, -0.36711403727531433, 0.2014239877462387, -0.2209363728761673, 0.10654203593730927, -0.018452897667884827, 0.11797764897346497, -0.2781525254249573, 0.17003284394741058, 0.21018391847610474, 0.3882053792476654, 0.47560903429985046, 0.3276004195213318, -0.02191031165421009, -0.1268233060836792, 0.2653462588787079, -0.04193512350320816, 0.14055167138576508, -0.29787468910217285, -0.11005030572414398, -0.27833566069602966, -0.06329207122325897, 0.07615252584218979, 0.41980233788490295, 0.04780561849474907, -0.35849329829216003, 0.07163897156715393, 0.03206939622759819, -0.005813289899379015, -0.07963410019874573, 0.17019592225551605, 0.19372375309467316, 0.057769548147916794, -0.2833108603954315, 0.05506659671664238, 0.1432197093963623, 0.03750654682517052, -0.08818008005619049, -0.058206956833601, -0.04960165545344353, 0.16273877024650574, 0.12765167653560638, -0.43295609951019287, -0.3254346251487732, 0.10375385731458664, -0.11645378172397614, -0.04331471398472786, -0.3281320631504059, 0.22095318138599396, 0.01263775210827589, 0.10762649774551392, -0.17595811188220978, 0.17295348644256592, -0.0066004348918795586, -0.4969000816345215, 0.1204879879951477, 0.07671301811933517, 0.3363322913646698, 0.09309931099414825, -0.18977966904640198, -0.04704662412405014, 0.057294171303510666, -0.12212149798870087, 0.27362260222435, 0.0458516925573349, 0.14881856739521027, -0.03093785047531128, 0.11134479194879532, -0.5236707329750061, -0.2075134515762329, 0.23150786757469177, 0.07626831531524658, 0.07395487278699875, -0.3914639949798584, 0.1626405566930771, 0.6265977621078491, 0.1688113510608673, 0.3763042688369751, 0.001301903510466218, -0.01792501099407673, 0.017032302916049957, 0.3104971945285797, 0.037533823400735855, 0.6504706144332886, 0.22507421672344208, 0.31300994753837585, 0.06362874805927277, -0.13615275919437408, -0.09265055507421494, 0.1313188076019287, 0.05600621551275253, 0.1366877257823944, 0.11586468666791916, 0.3765801191329956, 0.03178737685084343, -0.4399757385253906, 0.00518133956938982, 0.1865178644657135, 0.0280312430113554, -0.13855472207069397, 0.09789208322763443, -0.6367881298065186, -0.18257169425487518, -0.07667543739080429, 0.78955078125, 0.14649541676044464, -0.24488914012908936, 0.01972648873925209, 0.031179795041680336, -0.36977845430374146, 0.28986871242523193, -0.5398539304733276, -0.03541536256670952, -0.15150484442710876, -0.1931084245443344, -0.2064816951751709, 0.20588302612304688, -0.14758947491645813, 0.052446816116571426, -0.010882826521992683, 0.07010933011770248, 0.364359974861145, -0.01117227878421545, -0.026065506041049957, -0.5546948313713074, -0.41185206174850464, 0.27056562900543213, 0.12550236284732819, 0.17651741206645966, 0.4210669696331024, 0.04943707212805748, -0.0566294826567173, 0.10714411735534668, 0.36487072706222534, -0.2689850628376007, -0.2455855756998062, 0.05337991565465927, -0.2295331060886383, -0.12693427503108978, -0.40358343720436096, 0.13204006850719452, 0.11916322261095047, -0.170976921916008, -0.011644775047898293, -0.017762377858161926, -0.10090018063783646, 0.10064119845628738, 0.3049755096435547, -0.09217863529920578, 0.04523521289229393, 0.25079432129859924, -0.3586536645889282, 0.005026640836149454, 0.08233454078435898, 0.058005720376968384, -0.23290738463401794, -0.3402527868747711, -0.02680419571697712, 0.30812984704971313, 0.6274155378341675, -0.2748173475265503, -0.38935163617134094, -0.019440777599811554, 0.3389722406864166, -0.04467291757464409, 0.02210472896695137, 0.31130149960517883, 0.08356059342622757, -0.1516227275133133, -0.41613128781318665, -0.148448184132576, 0.19296258687973022, 0.15235768258571625, 0.22208403050899506, 0.06848469376564026, 0.5241257548332214, 0.04086361825466156, 0.0036177090369164944, -0.24001801013946533, -0.3598380982875824, 0.5305605530738831, -0.34457990527153015, 0.412524551153183, -0.35208195447921753, -0.20040017366409302, 0.5027255415916443, 0.10675361752510071, -0.09510958939790726, -0.18030551075935364, -0.1592794954776764, -0.3431100845336914, 0.03758356720209122, 0.05395220220088959, -0.34561359882354736, -0.2569538950920105, -0.022552061825990677, 0.21136340498924255, 0.18493053317070007, 0.1404426246881485, -0.002553278114646673, -0.07247108221054077, 0.08291096985340118, 0.20724330842494965, -0.13264088332653046, 0.1638091504573822, -0.27814728021621704, 0.057807229459285736, -0.02468029223382473, 0.052160780876874924, 0.1834128350019455, 0.02863250859081745, 0.05110941082239151, -0.18296732008457184, -0.14792858064174652, 0.21416044235229492, 0.05748726427555084, 0.7478786110877991, -0.3581560254096985, 0.2546868324279785, -0.009561934508383274, -0.016323503106832504, -0.13316753506660461, 0.10193507373332977, -0.13873644173145294, -0.1485442817211151, 0.10780362784862518, 0.2699344754219055, -0.3124059736728668, -0.009465834125876427, 0.39321717619895935, 0.15247780084609985, -0.14542095363140106, 0.23678220808506012, -0.05293362960219383, -0.37790143489837646, -0.055234428495168686, -0.005702319089323282, 0.017730334773659706, -0.03982413560152054, 0.26173242926597595, -0.047319021075963974, -0.3412887454032898, -0.0655372366309166, -0.43509289622306824, 0.13124866783618927, 0.30298134684562683, -0.22380895912647247, 0.3279070556163788, -0.08615279942750931, 0.005995180923491716, 0.12760679423809052, 0.5769458413124084, -0.1479337513446808, -0.14023305475711823, 0.23516754806041718, 0.023989515379071236, 0.21099932491779327, 0.3276231288909912, -0.0736008733510971, -0.2928028404712677, -0.07535895705223083, -0.021911215037107468, -0.09817352145910263, 0.18000684678554535, 0.38707593083381653, -0.24126961827278137, 0.19738323986530304, -0.08748651295900345, 0.24114872515201569, -0.05664582550525665, -0.0574369952082634, -0.07192487269639969, -0.05347537249326706, -0.48298555612564087, 0.07225148379802704, 0.43444880843162537, 0.8382105827331543, 0.05134035646915436, 0.21475750207901, 0.1564285010099411, -0.16364611685276031, 0.22837334871292114, 0.5367595553398132, -0.08016496896743774, -0.12716126441955566, -0.19141724705696106, -0.02424907498061657, -0.022465016692876816, 0.023119311779737473, 0.08739147335290909, -0.036904476583004, -0.16817858815193176, -0.13961301743984222, 0.22824281454086304, -0.10010115802288055, -0.2023584246635437, -0.0171413142234087, -0.24197329580783844, -0.04600745812058449, 0.23355261981487274, -0.01893523521721363, -0.3259686529636383, 0.030412448570132256, 0.03861549496650696, -0.04312989115715027, 0.020429641008377075, -0.083380788564682, 0.24797481298446655, 0.007354306988418102, 0.23717518150806427, 0.06948663294315338, -0.2887316346168518, 0.09329099208116531, 0.08964462578296661, 0.11276725679636002, 0.054069291800260544, -0.08680062741041183, 0.4313598871231079, 0.2087315320968628, 0.5137438774108887, 0.17659635841846466, -0.01886327937245369, 0.5915836095809937, -0.017514042556285858, 0.06672829389572144, -0.18142303824424744, 0.0352603979408741, -0.05479048565030098, -0.0882287472486496, 0.03489628806710243, -0.06915876269340515, -0.380960613489151, -0.2493772655725479, 0.0007054482703097165, 0.3194149136543274, -0.3391474783420563, 0.1665160059928894, 0.08889501541852951, 0.1919480860233307, 0.4604758322238922, -0.01270203571766615, -0.11996256560087204, 0.025838885456323624, 0.38157355785369873, -0.0018842489225789905, 0.2462882697582245, 0.3307346999645233, -0.2579004764556885, -0.15802627801895142, -0.2584191560745239, -0.19651901721954346, 0.24397417902946472, -0.622349202632904, 0.3455531597137451, -0.24233274161815643, -0.17954349517822266, -0.10135360807180405, -0.055699896067380905, -0.36774107813835144, -0.10043893754482269, -0.4546979069709778, 0.04494594410061836, -0.38940757513046265, 0.24092704057693481, 0.11347641050815582, 0.23713485896587372, -0.31483742594718933, 0.30575984716415405, -0.028871828690171242, -0.24396562576293945, -0.3705432713031769, 0.040219083428382874, -0.19785884022712708, 0.25564661622047424, 0.07155290246009827, 0.17711609601974487, -0.10603777319192886, -0.08746049553155899, 0.26045310497283936, 0.08611878752708435, -0.20721948146820068, -0.18905092775821686, -0.26830247044563293, 0.1270228922367096, 0.1469455361366272, -0.1509724259376526, 0.10074324905872345, -0.18957534432411194, -0.22466811537742615, -0.18942727148532867, 0.12891478836536407, 0.014993743039667606, -0.13537918031215668, -0.13496075570583344, 0.1677969992160797, -0.1686735451221466, 0.3168150782585144, -0.0174602959305048, -0.07928240299224854, 0.2203500121831894, 0.16061434149742126, 0.1963653713464737, -0.07978380471467972, -0.0684724971652031, 0.18898464739322662, -0.0526389554142952, 0.06621668487787247, 0.16356797516345978, 0.38102173805236816, 0.01329907588660717, 0.17928224802017212, 0.14789995551109314, 0.43324822187423706, -0.038429249078035355, -0.2603316903114319, -0.3761533200740814, -0.053474124521017075, 0.2426818460226059, -0.24485896527767181, -0.21866317093372345, 0.08043282479047775, -0.05100027844309807, 0.08669963479042053, 0.11861597746610641, -0.24979165196418762, 0.05073094367980957, -0.0838220864534378, -0.038355372846126556, 0.6735718250274658, -0.47792038321495056, -0.206797793507576, 0.2718885540962219, -0.017296606674790382, 0.33509373664855957, 0.20035696029663086, 0.17863573133945465, 0.04332305118441582, 0.5920479893684387, 0.05623972415924072, 0.1556752473115921, -0.10961929708719254, 0.14462660253047943, 0.20277896523475647, -0.0194384902715683, 0.2805846631526947, 0.1038077101111412, -0.36726030707359314, 0.34224921464920044, -0.11472266912460327, -0.35734158754348755, -0.16026532649993896, -0.10116692632436752, 0.07086553424596786, 0.40848076343536377, -0.2717081606388092, 0.04031960293650627, -0.3761434257030487, -0.1354130059480667, -0.004383568651974201, 0.1989971548318863, -0.07360764592885971, 0.20387999713420868, 0.254436194896698, -0.0872434452176094, -0.007966673001646996, -0.19183744490146637, -0.2205428034067154, -0.366616815328598, 0.14347471296787262, -0.2625257670879364, 0.34974101185798645, 0.0354929156601429, -0.05632568150758743, 0.5013312697410583, 0.5291560292243958, 0.15688909590244293, -0.042998429387807846, 0.47892704606056213, -0.22653764486312866, 0.07397495210170746, -0.24470604956150055, -0.4655073583126068, 0.17124108970165253, 0.4285459816455841, 0.16133995354175568, 0.10774780064821243, 0.13643889129161835, -0.1400350034236908, 0.060838352888822556, 0.2234194427728653, 0.02484254166483879, -0.22179298102855682, 0.2426774650812149, -0.053876690566539764, -0.3813125789165497, -0.04314389452338219, -0.14449568092823029, -0.0871058776974678, -0.15979142487049103, 0.26139432191848755, -0.37471169233322144, 0.17572060227394104, 0.07653742283582687, 0.08485368639230728, 0.031012507155537605, 0.14988195896148682, -0.03527474030852318, -0.08037710934877396, -0.048555709421634674, -0.11647281050682068, -0.4756653904914856, 0.2527582049369812, 0.2324332892894745, -0.5349693894386292, 0.11557850241661072, 0.14820750057697296, 0.07371018081903458, -0.31904101371765137, 0.3081514239311218, -0.17998065054416656, 0.47425469756126404, 0.09305492043495178, -0.13825121521949768, -0.3758857846260071, 0.08961892127990723, 0.0015562896151095629, -0.2710379958152771, -0.23068417608737946, 0.1824464499950409, 0.05089223012328148, 0.2753136157989502, 0.15612931549549103, -0.1727394312620163, -0.18577654659748077, -0.1122266873717308, 0.3160620629787445, 0.05154605954885483, 0.2096959948539734, -0.3406740427017212, 0.08680349588394165, 0.0512239970266819, -0.19614820182323456, -0.14505203068256378, 0.17414261400699615, 0.030146751552820206, 0.4845455586910248, 0.16662685573101044, 0.35313379764556885, -0.08573819696903229, -0.08409322798252106, 0.012663825415074825, 0.2070704847574234, -0.24174679815769196, 0.33441290259361267, -0.3048844039440155, -0.07436802983283997, 0.0392858125269413, 0.07583674788475037, 0.11336985975503922, -0.020045462995767593, -0.27024903893470764, -0.5007684826850891, 0.5428861975669861, -0.14534839987754822, -0.4530576169490814, -0.16782639920711517, 0.04492664709687233, -0.6495760083198547, -0.0831817165017128, -0.39955487847328186, -0.2507539987564087, 0.2938709855079651, -0.1646214723587036, -0.2513020634651184, 0.2915572226047516, 0.2225235402584076, -0.023539356887340546, 0.11287528276443481, 0.43482571840286255, 0.11421741545200348, -0.09829050302505493, 0.16734611988067627, 0.1593153178691864 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ?
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
25
Loss of cast `Image` feature on certain dataset method
[ -0.480998158454895, 0.16673530638217926, -0.062663733959198, 0.1170124039053917, 0.6286566257476807, 0.05924025550484657, 0.5137909054756165, 0.2283857762813568, -0.07036574929952621, 0.272655189037323, -0.15054278075695038, 0.45898616313934326, 0.05235804617404938, -0.25577762722969055, 0.028898337855935097, 0.0020359158515930176, -0.04801211878657341, 0.01333598978817463, -0.4230197072029114, -0.2356913983821869, -0.17560486495494843, -0.09806089848279953, -0.13557790219783783, -0.13399629294872284, -0.2222621887922287, -0.017733978107571602, 0.04327472299337387, 0.12170026451349258, 0.05717233568429947, -0.02791464887559414, -0.09907706081867218, 0.049356572329998016, -0.17326581478118896, 0.15099754929542542, -0.00011160947906319052, 0.004205181263387203, 0.21400699019432068, 0.13563577830791473, -0.18254268169403076, 0.27781566977500916, -0.5661318302154541, 0.08853571116924286, 0.04647010192275047, -0.3768393397331238, 0.05198022350668907, 0.10595661401748657, 0.3006991147994995, -0.18745507299900055, -0.01812520995736122, 0.1225493922829628, 0.26927441358566284, 0.19435177743434906, -0.20308446884155273, -0.06884165853261948, -0.08225636929273605, 0.3425475060939789, -0.2349199801683426, -0.017486900091171265, 0.22215598821640015, 0.5245278477668762, -0.0728755071759224, 0.24366021156311035, 0.0002841358946170658, -0.1616939753293991, -0.14906851947307587, 0.13526667654514313, -0.16351068019866943, -0.004178609233349562, 0.25013116002082825, -0.07113249599933624, 0.5344966053962708, -0.1528564691543579, -0.1193448156118393, 0.0431542806327343, 0.10792896896600723, 0.09876969456672668, -0.06682395935058594, -0.07356905937194824, 0.11217296123504639, -0.11904231458902359, -0.676813006401062, -0.09483353793621063, -0.0066715627908706665, 0.05028371885418892, -0.18310962617397308, 0.04850810393691063, 0.05594402924180031, 0.2722988426685333, -0.24319545924663544, 0.04687380790710449, 0.034285567700862885, -0.12855829298496246, 0.12035948038101196, -0.17170396447181702, 0.30700844526290894, 0.07237155735492706, 0.37446093559265137, 0.1524258255958557, 0.03463234007358551, -0.05600898712873459, 0.08808388561010361, 0.25396883487701416, -0.11241152882575989, -0.06806538999080658, 0.3727845847606659, -0.12009654194116592, -0.24057379364967346, 0.030354704707860947, 0.30086368322372437, 0.2114609330892563, -0.5567505955696106, -0.2547369599342346, 0.1414065659046173, 0.11033965647220612, 0.44232913851737976, -0.15933997929096222, 0.15982742607593536, -0.22180375456809998, -0.10139605402946472, -0.06485842913389206, 0.18331845104694366, 0.2225085198879242, 0.14580318331718445, 0.09433196485042572, 0.13314834237098694, -0.05494444817304611, 0.4079737067222595, 0.17323125898838043, -0.10495680570602417, -0.29908329248428345, -0.417481005191803, -0.10984668135643005, -0.22316035628318787, -0.34898701310157776, 0.0127750588580966, 0.1627187281847, 0.15754152834415436, -0.2045522779226303, 0.19498099386692047, 0.12453818321228027, -0.10424216836690903, -0.18146497011184692, 0.25921523571014404, 0.06262680888175964, -0.09957876801490784, -0.03461064398288727, 0.06945077329874039, 0.04311411827802658, 0.0513111911714077, 0.04441137984395027, -0.1974545121192932, 0.12700775265693665, -0.016930725425481796, 0.1985890418291092, -0.13963061571121216, 0.10587198287248611, -0.09997779875993729, 0.15201020240783691, -0.030765468254685402, -0.2881537675857544, 0.07070008665323257, -0.33754003047943115, -0.2997242212295532, -0.0799536406993866, 0.10588766634464264, 0.3322983980178833, -0.21939121186733246, -0.030874283984303474, -0.43923431634902954, -0.2742772698402405, 0.1431281864643097, 0.03126849606633186, -0.20165883004665375, 0.3339180648326874, -0.3192364275455475, 0.2579538822174072, 0.4746330976486206, -0.15740740299224854, -0.49555081129074097, 0.041003480553627014, 0.05871497094631195, -0.016302455216646194, -0.2682911157608032, 0.18199960887432098, 0.3184257745742798, -0.36710479855537415, -0.36711403727531433, 0.2014239877462387, -0.2209363728761673, 0.10654203593730927, -0.018452897667884827, 0.11797764897346497, -0.2781525254249573, 0.17003284394741058, 0.21018391847610474, 0.3882053792476654, 0.47560903429985046, 0.3276004195213318, -0.02191031165421009, -0.1268233060836792, 0.2653462588787079, -0.04193512350320816, 0.14055167138576508, -0.29787468910217285, -0.11005030572414398, -0.27833566069602966, -0.06329207122325897, 0.07615252584218979, 0.41980233788490295, 0.04780561849474907, -0.35849329829216003, 0.07163897156715393, 0.03206939622759819, -0.005813289899379015, -0.07963410019874573, 0.17019592225551605, 0.19372375309467316, 0.057769548147916794, -0.2833108603954315, 0.05506659671664238, 0.1432197093963623, 0.03750654682517052, -0.08818008005619049, -0.058206956833601, -0.04960165545344353, 0.16273877024650574, 0.12765167653560638, -0.43295609951019287, -0.3254346251487732, 0.10375385731458664, -0.11645378172397614, -0.04331471398472786, -0.3281320631504059, 0.22095318138599396, 0.01263775210827589, 0.10762649774551392, -0.17595811188220978, 0.17295348644256592, -0.0066004348918795586, -0.4969000816345215, 0.1204879879951477, 0.07671301811933517, 0.3363322913646698, 0.09309931099414825, -0.18977966904640198, -0.04704662412405014, 0.057294171303510666, -0.12212149798870087, 0.27362260222435, 0.0458516925573349, 0.14881856739521027, -0.03093785047531128, 0.11134479194879532, -0.5236707329750061, -0.2075134515762329, 0.23150786757469177, 0.07626831531524658, 0.07395487278699875, -0.3914639949798584, 0.1626405566930771, 0.6265977621078491, 0.1688113510608673, 0.3763042688369751, 0.001301903510466218, -0.01792501099407673, 0.017032302916049957, 0.3104971945285797, 0.037533823400735855, 0.6504706144332886, 0.22507421672344208, 0.31300994753837585, 0.06362874805927277, -0.13615275919437408, -0.09265055507421494, 0.1313188076019287, 0.05600621551275253, 0.1366877257823944, 0.11586468666791916, 0.3765801191329956, 0.03178737685084343, -0.4399757385253906, 0.00518133956938982, 0.1865178644657135, 0.0280312430113554, -0.13855472207069397, 0.09789208322763443, -0.6367881298065186, -0.18257169425487518, -0.07667543739080429, 0.78955078125, 0.14649541676044464, -0.24488914012908936, 0.01972648873925209, 0.031179795041680336, -0.36977845430374146, 0.28986871242523193, -0.5398539304733276, -0.03541536256670952, -0.15150484442710876, -0.1931084245443344, -0.2064816951751709, 0.20588302612304688, -0.14758947491645813, 0.052446816116571426, -0.010882826521992683, 0.07010933011770248, 0.364359974861145, -0.01117227878421545, -0.026065506041049957, -0.5546948313713074, -0.41185206174850464, 0.27056562900543213, 0.12550236284732819, 0.17651741206645966, 0.4210669696331024, 0.04943707212805748, -0.0566294826567173, 0.10714411735534668, 0.36487072706222534, -0.2689850628376007, -0.2455855756998062, 0.05337991565465927, -0.2295331060886383, -0.12693427503108978, -0.40358343720436096, 0.13204006850719452, 0.11916322261095047, -0.170976921916008, -0.011644775047898293, -0.017762377858161926, -0.10090018063783646, 0.10064119845628738, 0.3049755096435547, -0.09217863529920578, 0.04523521289229393, 0.25079432129859924, -0.3586536645889282, 0.005026640836149454, 0.08233454078435898, 0.058005720376968384, -0.23290738463401794, -0.3402527868747711, -0.02680419571697712, 0.30812984704971313, 0.6274155378341675, -0.2748173475265503, -0.38935163617134094, -0.019440777599811554, 0.3389722406864166, -0.04467291757464409, 0.02210472896695137, 0.31130149960517883, 0.08356059342622757, -0.1516227275133133, -0.41613128781318665, -0.148448184132576, 0.19296258687973022, 0.15235768258571625, 0.22208403050899506, 0.06848469376564026, 0.5241257548332214, 0.04086361825466156, 0.0036177090369164944, -0.24001801013946533, -0.3598380982875824, 0.5305605530738831, -0.34457990527153015, 0.412524551153183, -0.35208195447921753, -0.20040017366409302, 0.5027255415916443, 0.10675361752510071, -0.09510958939790726, -0.18030551075935364, -0.1592794954776764, -0.3431100845336914, 0.03758356720209122, 0.05395220220088959, -0.34561359882354736, -0.2569538950920105, -0.022552061825990677, 0.21136340498924255, 0.18493053317070007, 0.1404426246881485, -0.002553278114646673, -0.07247108221054077, 0.08291096985340118, 0.20724330842494965, -0.13264088332653046, 0.1638091504573822, -0.27814728021621704, 0.057807229459285736, -0.02468029223382473, 0.052160780876874924, 0.1834128350019455, 0.02863250859081745, 0.05110941082239151, -0.18296732008457184, -0.14792858064174652, 0.21416044235229492, 0.05748726427555084, 0.7478786110877991, -0.3581560254096985, 0.2546868324279785, -0.009561934508383274, -0.016323503106832504, -0.13316753506660461, 0.10193507373332977, -0.13873644173145294, -0.1485442817211151, 0.10780362784862518, 0.2699344754219055, -0.3124059736728668, -0.009465834125876427, 0.39321717619895935, 0.15247780084609985, -0.14542095363140106, 0.23678220808506012, -0.05293362960219383, -0.37790143489837646, -0.055234428495168686, -0.005702319089323282, 0.017730334773659706, -0.03982413560152054, 0.26173242926597595, -0.047319021075963974, -0.3412887454032898, -0.0655372366309166, -0.43509289622306824, 0.13124866783618927, 0.30298134684562683, -0.22380895912647247, 0.3279070556163788, -0.08615279942750931, 0.005995180923491716, 0.12760679423809052, 0.5769458413124084, -0.1479337513446808, -0.14023305475711823, 0.23516754806041718, 0.023989515379071236, 0.21099932491779327, 0.3276231288909912, -0.0736008733510971, -0.2928028404712677, -0.07535895705223083, -0.021911215037107468, -0.09817352145910263, 0.18000684678554535, 0.38707593083381653, -0.24126961827278137, 0.19738323986530304, -0.08748651295900345, 0.24114872515201569, -0.05664582550525665, -0.0574369952082634, -0.07192487269639969, -0.05347537249326706, -0.48298555612564087, 0.07225148379802704, 0.43444880843162537, 0.8382105827331543, 0.05134035646915436, 0.21475750207901, 0.1564285010099411, -0.16364611685276031, 0.22837334871292114, 0.5367595553398132, -0.08016496896743774, -0.12716126441955566, -0.19141724705696106, -0.02424907498061657, -0.022465016692876816, 0.023119311779737473, 0.08739147335290909, -0.036904476583004, -0.16817858815193176, -0.13961301743984222, 0.22824281454086304, -0.10010115802288055, -0.2023584246635437, -0.0171413142234087, -0.24197329580783844, -0.04600745812058449, 0.23355261981487274, -0.01893523521721363, -0.3259686529636383, 0.030412448570132256, 0.03861549496650696, -0.04312989115715027, 0.020429641008377075, -0.083380788564682, 0.24797481298446655, 0.007354306988418102, 0.23717518150806427, 0.06948663294315338, -0.2887316346168518, 0.09329099208116531, 0.08964462578296661, 0.11276725679636002, 0.054069291800260544, -0.08680062741041183, 0.4313598871231079, 0.2087315320968628, 0.5137438774108887, 0.17659635841846466, -0.01886327937245369, 0.5915836095809937, -0.017514042556285858, 0.06672829389572144, -0.18142303824424744, 0.0352603979408741, -0.05479048565030098, -0.0882287472486496, 0.03489628806710243, -0.06915876269340515, -0.380960613489151, -0.2493772655725479, 0.0007054482703097165, 0.3194149136543274, -0.3391474783420563, 0.1665160059928894, 0.08889501541852951, 0.1919480860233307, 0.4604758322238922, -0.01270203571766615, -0.11996256560087204, 0.025838885456323624, 0.38157355785369873, -0.0018842489225789905, 0.2462882697582245, 0.3307346999645233, -0.2579004764556885, -0.15802627801895142, -0.2584191560745239, -0.19651901721954346, 0.24397417902946472, -0.622349202632904, 0.3455531597137451, -0.24233274161815643, -0.17954349517822266, -0.10135360807180405, -0.055699896067380905, -0.36774107813835144, -0.10043893754482269, -0.4546979069709778, 0.04494594410061836, -0.38940757513046265, 0.24092704057693481, 0.11347641050815582, 0.23713485896587372, -0.31483742594718933, 0.30575984716415405, -0.028871828690171242, -0.24396562576293945, -0.3705432713031769, 0.040219083428382874, -0.19785884022712708, 0.25564661622047424, 0.07155290246009827, 0.17711609601974487, -0.10603777319192886, -0.08746049553155899, 0.26045310497283936, 0.08611878752708435, -0.20721948146820068, -0.18905092775821686, -0.26830247044563293, 0.1270228922367096, 0.1469455361366272, -0.1509724259376526, 0.10074324905872345, -0.18957534432411194, -0.22466811537742615, -0.18942727148532867, 0.12891478836536407, 0.014993743039667606, -0.13537918031215668, -0.13496075570583344, 0.1677969992160797, -0.1686735451221466, 0.3168150782585144, -0.0174602959305048, -0.07928240299224854, 0.2203500121831894, 0.16061434149742126, 0.1963653713464737, -0.07978380471467972, -0.0684724971652031, 0.18898464739322662, -0.0526389554142952, 0.06621668487787247, 0.16356797516345978, 0.38102173805236816, 0.01329907588660717, 0.17928224802017212, 0.14789995551109314, 0.43324822187423706, -0.038429249078035355, -0.2603316903114319, -0.3761533200740814, -0.053474124521017075, 0.2426818460226059, -0.24485896527767181, -0.21866317093372345, 0.08043282479047775, -0.05100027844309807, 0.08669963479042053, 0.11861597746610641, -0.24979165196418762, 0.05073094367980957, -0.0838220864534378, -0.038355372846126556, 0.6735718250274658, -0.47792038321495056, -0.206797793507576, 0.2718885540962219, -0.017296606674790382, 0.33509373664855957, 0.20035696029663086, 0.17863573133945465, 0.04332305118441582, 0.5920479893684387, 0.05623972415924072, 0.1556752473115921, -0.10961929708719254, 0.14462660253047943, 0.20277896523475647, -0.0194384902715683, 0.2805846631526947, 0.1038077101111412, -0.36726030707359314, 0.34224921464920044, -0.11472266912460327, -0.35734158754348755, -0.16026532649993896, -0.10116692632436752, 0.07086553424596786, 0.40848076343536377, -0.2717081606388092, 0.04031960293650627, -0.3761434257030487, -0.1354130059480667, -0.004383568651974201, 0.1989971548318863, -0.07360764592885971, 0.20387999713420868, 0.254436194896698, -0.0872434452176094, -0.007966673001646996, -0.19183744490146637, -0.2205428034067154, -0.366616815328598, 0.14347471296787262, -0.2625257670879364, 0.34974101185798645, 0.0354929156601429, -0.05632568150758743, 0.5013312697410583, 0.5291560292243958, 0.15688909590244293, -0.042998429387807846, 0.47892704606056213, -0.22653764486312866, 0.07397495210170746, -0.24470604956150055, -0.4655073583126068, 0.17124108970165253, 0.4285459816455841, 0.16133995354175568, 0.10774780064821243, 0.13643889129161835, -0.1400350034236908, 0.060838352888822556, 0.2234194427728653, 0.02484254166483879, -0.22179298102855682, 0.2426774650812149, -0.053876690566539764, -0.3813125789165497, -0.04314389452338219, -0.14449568092823029, -0.0871058776974678, -0.15979142487049103, 0.26139432191848755, -0.37471169233322144, 0.17572060227394104, 0.07653742283582687, 0.08485368639230728, 0.031012507155537605, 0.14988195896148682, -0.03527474030852318, -0.08037710934877396, -0.048555709421634674, -0.11647281050682068, -0.4756653904914856, 0.2527582049369812, 0.2324332892894745, -0.5349693894386292, 0.11557850241661072, 0.14820750057697296, 0.07371018081903458, -0.31904101371765137, 0.3081514239311218, -0.17998065054416656, 0.47425469756126404, 0.09305492043495178, -0.13825121521949768, -0.3758857846260071, 0.08961892127990723, 0.0015562896151095629, -0.2710379958152771, -0.23068417608737946, 0.1824464499950409, 0.05089223012328148, 0.2753136157989502, 0.15612931549549103, -0.1727394312620163, -0.18577654659748077, -0.1122266873717308, 0.3160620629787445, 0.05154605954885483, 0.2096959948539734, -0.3406740427017212, 0.08680349588394165, 0.0512239970266819, -0.19614820182323456, -0.14505203068256378, 0.17414261400699615, 0.030146751552820206, 0.4845455586910248, 0.16662685573101044, 0.35313379764556885, -0.08573819696903229, -0.08409322798252106, 0.012663825415074825, 0.2070704847574234, -0.24174679815769196, 0.33441290259361267, -0.3048844039440155, -0.07436802983283997, 0.0392858125269413, 0.07583674788475037, 0.11336985975503922, -0.020045462995767593, -0.27024903893470764, -0.5007684826850891, 0.5428861975669861, -0.14534839987754822, -0.4530576169490814, -0.16782639920711517, 0.04492664709687233, -0.6495760083198547, -0.0831817165017128, -0.39955487847328186, -0.2507539987564087, 0.2938709855079651, -0.1646214723587036, -0.2513020634651184, 0.2915572226047516, 0.2225235402584076, -0.023539356887340546, 0.11287528276443481, 0.43482571840286255, 0.11421741545200348, -0.09829050302505493, 0.16734611988067627, 0.1593153178691864 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ? Thanks for checking. There is no longer an error when calling `select` but it appears the cast value isn't preserved. Before `select` ```python dataset.features {'url': Image(id=None)} ``` after select: ``` {'url': Value(dtype='string', id=None)} ``` Updated Colab example [here](https://colab.research.google.com/gist/davanstrien/4e88f55a3675c279b5c2f64299ae5c6f/potential_casting_bug.ipynb)
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
64
Loss of cast `Image` feature on certain dataset method
[ -0.480998158454895, 0.16673530638217926, -0.062663733959198, 0.1170124039053917, 0.6286566257476807, 0.05924025550484657, 0.5137909054756165, 0.2283857762813568, -0.07036574929952621, 0.272655189037323, -0.15054278075695038, 0.45898616313934326, 0.05235804617404938, -0.25577762722969055, 0.028898337855935097, 0.0020359158515930176, -0.04801211878657341, 0.01333598978817463, -0.4230197072029114, -0.2356913983821869, -0.17560486495494843, -0.09806089848279953, -0.13557790219783783, -0.13399629294872284, -0.2222621887922287, -0.017733978107571602, 0.04327472299337387, 0.12170026451349258, 0.05717233568429947, -0.02791464887559414, -0.09907706081867218, 0.049356572329998016, -0.17326581478118896, 0.15099754929542542, -0.00011160947906319052, 0.004205181263387203, 0.21400699019432068, 0.13563577830791473, -0.18254268169403076, 0.27781566977500916, -0.5661318302154541, 0.08853571116924286, 0.04647010192275047, -0.3768393397331238, 0.05198022350668907, 0.10595661401748657, 0.3006991147994995, -0.18745507299900055, -0.01812520995736122, 0.1225493922829628, 0.26927441358566284, 0.19435177743434906, -0.20308446884155273, -0.06884165853261948, -0.08225636929273605, 0.3425475060939789, -0.2349199801683426, -0.017486900091171265, 0.22215598821640015, 0.5245278477668762, -0.0728755071759224, 0.24366021156311035, 0.0002841358946170658, -0.1616939753293991, -0.14906851947307587, 0.13526667654514313, -0.16351068019866943, -0.004178609233349562, 0.25013116002082825, -0.07113249599933624, 0.5344966053962708, -0.1528564691543579, -0.1193448156118393, 0.0431542806327343, 0.10792896896600723, 0.09876969456672668, -0.06682395935058594, -0.07356905937194824, 0.11217296123504639, -0.11904231458902359, -0.676813006401062, -0.09483353793621063, -0.0066715627908706665, 0.05028371885418892, -0.18310962617397308, 0.04850810393691063, 0.05594402924180031, 0.2722988426685333, -0.24319545924663544, 0.04687380790710449, 0.034285567700862885, -0.12855829298496246, 0.12035948038101196, -0.17170396447181702, 0.30700844526290894, 0.07237155735492706, 0.37446093559265137, 0.1524258255958557, 0.03463234007358551, -0.05600898712873459, 0.08808388561010361, 0.25396883487701416, -0.11241152882575989, -0.06806538999080658, 0.3727845847606659, -0.12009654194116592, -0.24057379364967346, 0.030354704707860947, 0.30086368322372437, 0.2114609330892563, -0.5567505955696106, -0.2547369599342346, 0.1414065659046173, 0.11033965647220612, 0.44232913851737976, -0.15933997929096222, 0.15982742607593536, -0.22180375456809998, -0.10139605402946472, -0.06485842913389206, 0.18331845104694366, 0.2225085198879242, 0.14580318331718445, 0.09433196485042572, 0.13314834237098694, -0.05494444817304611, 0.4079737067222595, 0.17323125898838043, -0.10495680570602417, -0.29908329248428345, -0.417481005191803, -0.10984668135643005, -0.22316035628318787, -0.34898701310157776, 0.0127750588580966, 0.1627187281847, 0.15754152834415436, -0.2045522779226303, 0.19498099386692047, 0.12453818321228027, -0.10424216836690903, -0.18146497011184692, 0.25921523571014404, 0.06262680888175964, -0.09957876801490784, -0.03461064398288727, 0.06945077329874039, 0.04311411827802658, 0.0513111911714077, 0.04441137984395027, -0.1974545121192932, 0.12700775265693665, -0.016930725425481796, 0.1985890418291092, -0.13963061571121216, 0.10587198287248611, -0.09997779875993729, 0.15201020240783691, -0.030765468254685402, -0.2881537675857544, 0.07070008665323257, -0.33754003047943115, -0.2997242212295532, -0.0799536406993866, 0.10588766634464264, 0.3322983980178833, -0.21939121186733246, -0.030874283984303474, -0.43923431634902954, -0.2742772698402405, 0.1431281864643097, 0.03126849606633186, -0.20165883004665375, 0.3339180648326874, -0.3192364275455475, 0.2579538822174072, 0.4746330976486206, -0.15740740299224854, -0.49555081129074097, 0.041003480553627014, 0.05871497094631195, -0.016302455216646194, -0.2682911157608032, 0.18199960887432098, 0.3184257745742798, -0.36710479855537415, -0.36711403727531433, 0.2014239877462387, -0.2209363728761673, 0.10654203593730927, -0.018452897667884827, 0.11797764897346497, -0.2781525254249573, 0.17003284394741058, 0.21018391847610474, 0.3882053792476654, 0.47560903429985046, 0.3276004195213318, -0.02191031165421009, -0.1268233060836792, 0.2653462588787079, -0.04193512350320816, 0.14055167138576508, -0.29787468910217285, -0.11005030572414398, -0.27833566069602966, -0.06329207122325897, 0.07615252584218979, 0.41980233788490295, 0.04780561849474907, -0.35849329829216003, 0.07163897156715393, 0.03206939622759819, -0.005813289899379015, -0.07963410019874573, 0.17019592225551605, 0.19372375309467316, 0.057769548147916794, -0.2833108603954315, 0.05506659671664238, 0.1432197093963623, 0.03750654682517052, -0.08818008005619049, -0.058206956833601, -0.04960165545344353, 0.16273877024650574, 0.12765167653560638, -0.43295609951019287, -0.3254346251487732, 0.10375385731458664, -0.11645378172397614, -0.04331471398472786, -0.3281320631504059, 0.22095318138599396, 0.01263775210827589, 0.10762649774551392, -0.17595811188220978, 0.17295348644256592, -0.0066004348918795586, -0.4969000816345215, 0.1204879879951477, 0.07671301811933517, 0.3363322913646698, 0.09309931099414825, -0.18977966904640198, -0.04704662412405014, 0.057294171303510666, -0.12212149798870087, 0.27362260222435, 0.0458516925573349, 0.14881856739521027, -0.03093785047531128, 0.11134479194879532, -0.5236707329750061, -0.2075134515762329, 0.23150786757469177, 0.07626831531524658, 0.07395487278699875, -0.3914639949798584, 0.1626405566930771, 0.6265977621078491, 0.1688113510608673, 0.3763042688369751, 0.001301903510466218, -0.01792501099407673, 0.017032302916049957, 0.3104971945285797, 0.037533823400735855, 0.6504706144332886, 0.22507421672344208, 0.31300994753837585, 0.06362874805927277, -0.13615275919437408, -0.09265055507421494, 0.1313188076019287, 0.05600621551275253, 0.1366877257823944, 0.11586468666791916, 0.3765801191329956, 0.03178737685084343, -0.4399757385253906, 0.00518133956938982, 0.1865178644657135, 0.0280312430113554, -0.13855472207069397, 0.09789208322763443, -0.6367881298065186, -0.18257169425487518, -0.07667543739080429, 0.78955078125, 0.14649541676044464, -0.24488914012908936, 0.01972648873925209, 0.031179795041680336, -0.36977845430374146, 0.28986871242523193, -0.5398539304733276, -0.03541536256670952, -0.15150484442710876, -0.1931084245443344, -0.2064816951751709, 0.20588302612304688, -0.14758947491645813, 0.052446816116571426, -0.010882826521992683, 0.07010933011770248, 0.364359974861145, -0.01117227878421545, -0.026065506041049957, -0.5546948313713074, -0.41185206174850464, 0.27056562900543213, 0.12550236284732819, 0.17651741206645966, 0.4210669696331024, 0.04943707212805748, -0.0566294826567173, 0.10714411735534668, 0.36487072706222534, -0.2689850628376007, -0.2455855756998062, 0.05337991565465927, -0.2295331060886383, -0.12693427503108978, -0.40358343720436096, 0.13204006850719452, 0.11916322261095047, -0.170976921916008, -0.011644775047898293, -0.017762377858161926, -0.10090018063783646, 0.10064119845628738, 0.3049755096435547, -0.09217863529920578, 0.04523521289229393, 0.25079432129859924, -0.3586536645889282, 0.005026640836149454, 0.08233454078435898, 0.058005720376968384, -0.23290738463401794, -0.3402527868747711, -0.02680419571697712, 0.30812984704971313, 0.6274155378341675, -0.2748173475265503, -0.38935163617134094, -0.019440777599811554, 0.3389722406864166, -0.04467291757464409, 0.02210472896695137, 0.31130149960517883, 0.08356059342622757, -0.1516227275133133, -0.41613128781318665, -0.148448184132576, 0.19296258687973022, 0.15235768258571625, 0.22208403050899506, 0.06848469376564026, 0.5241257548332214, 0.04086361825466156, 0.0036177090369164944, -0.24001801013946533, -0.3598380982875824, 0.5305605530738831, -0.34457990527153015, 0.412524551153183, -0.35208195447921753, -0.20040017366409302, 0.5027255415916443, 0.10675361752510071, -0.09510958939790726, -0.18030551075935364, -0.1592794954776764, -0.3431100845336914, 0.03758356720209122, 0.05395220220088959, -0.34561359882354736, -0.2569538950920105, -0.022552061825990677, 0.21136340498924255, 0.18493053317070007, 0.1404426246881485, -0.002553278114646673, -0.07247108221054077, 0.08291096985340118, 0.20724330842494965, -0.13264088332653046, 0.1638091504573822, -0.27814728021621704, 0.057807229459285736, -0.02468029223382473, 0.052160780876874924, 0.1834128350019455, 0.02863250859081745, 0.05110941082239151, -0.18296732008457184, -0.14792858064174652, 0.21416044235229492, 0.05748726427555084, 0.7478786110877991, -0.3581560254096985, 0.2546868324279785, -0.009561934508383274, -0.016323503106832504, -0.13316753506660461, 0.10193507373332977, -0.13873644173145294, -0.1485442817211151, 0.10780362784862518, 0.2699344754219055, -0.3124059736728668, -0.009465834125876427, 0.39321717619895935, 0.15247780084609985, -0.14542095363140106, 0.23678220808506012, -0.05293362960219383, -0.37790143489837646, -0.055234428495168686, -0.005702319089323282, 0.017730334773659706, -0.03982413560152054, 0.26173242926597595, -0.047319021075963974, -0.3412887454032898, -0.0655372366309166, -0.43509289622306824, 0.13124866783618927, 0.30298134684562683, -0.22380895912647247, 0.3279070556163788, -0.08615279942750931, 0.005995180923491716, 0.12760679423809052, 0.5769458413124084, -0.1479337513446808, -0.14023305475711823, 0.23516754806041718, 0.023989515379071236, 0.21099932491779327, 0.3276231288909912, -0.0736008733510971, -0.2928028404712677, -0.07535895705223083, -0.021911215037107468, -0.09817352145910263, 0.18000684678554535, 0.38707593083381653, -0.24126961827278137, 0.19738323986530304, -0.08748651295900345, 0.24114872515201569, -0.05664582550525665, -0.0574369952082634, -0.07192487269639969, -0.05347537249326706, -0.48298555612564087, 0.07225148379802704, 0.43444880843162537, 0.8382105827331543, 0.05134035646915436, 0.21475750207901, 0.1564285010099411, -0.16364611685276031, 0.22837334871292114, 0.5367595553398132, -0.08016496896743774, -0.12716126441955566, -0.19141724705696106, -0.02424907498061657, -0.022465016692876816, 0.023119311779737473, 0.08739147335290909, -0.036904476583004, -0.16817858815193176, -0.13961301743984222, 0.22824281454086304, -0.10010115802288055, -0.2023584246635437, -0.0171413142234087, -0.24197329580783844, -0.04600745812058449, 0.23355261981487274, -0.01893523521721363, -0.3259686529636383, 0.030412448570132256, 0.03861549496650696, -0.04312989115715027, 0.020429641008377075, -0.083380788564682, 0.24797481298446655, 0.007354306988418102, 0.23717518150806427, 0.06948663294315338, -0.2887316346168518, 0.09329099208116531, 0.08964462578296661, 0.11276725679636002, 0.054069291800260544, -0.08680062741041183, 0.4313598871231079, 0.2087315320968628, 0.5137438774108887, 0.17659635841846466, -0.01886327937245369, 0.5915836095809937, -0.017514042556285858, 0.06672829389572144, -0.18142303824424744, 0.0352603979408741, -0.05479048565030098, -0.0882287472486496, 0.03489628806710243, -0.06915876269340515, -0.380960613489151, -0.2493772655725479, 0.0007054482703097165, 0.3194149136543274, -0.3391474783420563, 0.1665160059928894, 0.08889501541852951, 0.1919480860233307, 0.4604758322238922, -0.01270203571766615, -0.11996256560087204, 0.025838885456323624, 0.38157355785369873, -0.0018842489225789905, 0.2462882697582245, 0.3307346999645233, -0.2579004764556885, -0.15802627801895142, -0.2584191560745239, -0.19651901721954346, 0.24397417902946472, -0.622349202632904, 0.3455531597137451, -0.24233274161815643, -0.17954349517822266, -0.10135360807180405, -0.055699896067380905, -0.36774107813835144, -0.10043893754482269, -0.4546979069709778, 0.04494594410061836, -0.38940757513046265, 0.24092704057693481, 0.11347641050815582, 0.23713485896587372, -0.31483742594718933, 0.30575984716415405, -0.028871828690171242, -0.24396562576293945, -0.3705432713031769, 0.040219083428382874, -0.19785884022712708, 0.25564661622047424, 0.07155290246009827, 0.17711609601974487, -0.10603777319192886, -0.08746049553155899, 0.26045310497283936, 0.08611878752708435, -0.20721948146820068, -0.18905092775821686, -0.26830247044563293, 0.1270228922367096, 0.1469455361366272, -0.1509724259376526, 0.10074324905872345, -0.18957534432411194, -0.22466811537742615, -0.18942727148532867, 0.12891478836536407, 0.014993743039667606, -0.13537918031215668, -0.13496075570583344, 0.1677969992160797, -0.1686735451221466, 0.3168150782585144, -0.0174602959305048, -0.07928240299224854, 0.2203500121831894, 0.16061434149742126, 0.1963653713464737, -0.07978380471467972, -0.0684724971652031, 0.18898464739322662, -0.0526389554142952, 0.06621668487787247, 0.16356797516345978, 0.38102173805236816, 0.01329907588660717, 0.17928224802017212, 0.14789995551109314, 0.43324822187423706, -0.038429249078035355, -0.2603316903114319, -0.3761533200740814, -0.053474124521017075, 0.2426818460226059, -0.24485896527767181, -0.21866317093372345, 0.08043282479047775, -0.05100027844309807, 0.08669963479042053, 0.11861597746610641, -0.24979165196418762, 0.05073094367980957, -0.0838220864534378, -0.038355372846126556, 0.6735718250274658, -0.47792038321495056, -0.206797793507576, 0.2718885540962219, -0.017296606674790382, 0.33509373664855957, 0.20035696029663086, 0.17863573133945465, 0.04332305118441582, 0.5920479893684387, 0.05623972415924072, 0.1556752473115921, -0.10961929708719254, 0.14462660253047943, 0.20277896523475647, -0.0194384902715683, 0.2805846631526947, 0.1038077101111412, -0.36726030707359314, 0.34224921464920044, -0.11472266912460327, -0.35734158754348755, -0.16026532649993896, -0.10116692632436752, 0.07086553424596786, 0.40848076343536377, -0.2717081606388092, 0.04031960293650627, -0.3761434257030487, -0.1354130059480667, -0.004383568651974201, 0.1989971548318863, -0.07360764592885971, 0.20387999713420868, 0.254436194896698, -0.0872434452176094, -0.007966673001646996, -0.19183744490146637, -0.2205428034067154, -0.366616815328598, 0.14347471296787262, -0.2625257670879364, 0.34974101185798645, 0.0354929156601429, -0.05632568150758743, 0.5013312697410583, 0.5291560292243958, 0.15688909590244293, -0.042998429387807846, 0.47892704606056213, -0.22653764486312866, 0.07397495210170746, -0.24470604956150055, -0.4655073583126068, 0.17124108970165253, 0.4285459816455841, 0.16133995354175568, 0.10774780064821243, 0.13643889129161835, -0.1400350034236908, 0.060838352888822556, 0.2234194427728653, 0.02484254166483879, -0.22179298102855682, 0.2426774650812149, -0.053876690566539764, -0.3813125789165497, -0.04314389452338219, -0.14449568092823029, -0.0871058776974678, -0.15979142487049103, 0.26139432191848755, -0.37471169233322144, 0.17572060227394104, 0.07653742283582687, 0.08485368639230728, 0.031012507155537605, 0.14988195896148682, -0.03527474030852318, -0.08037710934877396, -0.048555709421634674, -0.11647281050682068, -0.4756653904914856, 0.2527582049369812, 0.2324332892894745, -0.5349693894386292, 0.11557850241661072, 0.14820750057697296, 0.07371018081903458, -0.31904101371765137, 0.3081514239311218, -0.17998065054416656, 0.47425469756126404, 0.09305492043495178, -0.13825121521949768, -0.3758857846260071, 0.08961892127990723, 0.0015562896151095629, -0.2710379958152771, -0.23068417608737946, 0.1824464499950409, 0.05089223012328148, 0.2753136157989502, 0.15612931549549103, -0.1727394312620163, -0.18577654659748077, -0.1122266873717308, 0.3160620629787445, 0.05154605954885483, 0.2096959948539734, -0.3406740427017212, 0.08680349588394165, 0.0512239970266819, -0.19614820182323456, -0.14505203068256378, 0.17414261400699615, 0.030146751552820206, 0.4845455586910248, 0.16662685573101044, 0.35313379764556885, -0.08573819696903229, -0.08409322798252106, 0.012663825415074825, 0.2070704847574234, -0.24174679815769196, 0.33441290259361267, -0.3048844039440155, -0.07436802983283997, 0.0392858125269413, 0.07583674788475037, 0.11336985975503922, -0.020045462995767593, -0.27024903893470764, -0.5007684826850891, 0.5428861975669861, -0.14534839987754822, -0.4530576169490814, -0.16782639920711517, 0.04492664709687233, -0.6495760083198547, -0.0831817165017128, -0.39955487847328186, -0.2507539987564087, 0.2938709855079651, -0.1646214723587036, -0.2513020634651184, 0.2915572226047516, 0.2225235402584076, -0.023539356887340546, 0.11287528276443481, 0.43482571840286255, 0.11421741545200348, -0.09829050302505493, 0.16734611988067627, 0.1593153178691864 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hmmm, if I re-run your google colab I'm getting the right type at the end: ``` sample.features # {'url': Image(id=None)} ```
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
21
Loss of cast `Image` feature on certain dataset method
[ -0.480998158454895, 0.16673530638217926, -0.062663733959198, 0.1170124039053917, 0.6286566257476807, 0.05924025550484657, 0.5137909054756165, 0.2283857762813568, -0.07036574929952621, 0.272655189037323, -0.15054278075695038, 0.45898616313934326, 0.05235804617404938, -0.25577762722969055, 0.028898337855935097, 0.0020359158515930176, -0.04801211878657341, 0.01333598978817463, -0.4230197072029114, -0.2356913983821869, -0.17560486495494843, -0.09806089848279953, -0.13557790219783783, -0.13399629294872284, -0.2222621887922287, -0.017733978107571602, 0.04327472299337387, 0.12170026451349258, 0.05717233568429947, -0.02791464887559414, -0.09907706081867218, 0.049356572329998016, -0.17326581478118896, 0.15099754929542542, -0.00011160947906319052, 0.004205181263387203, 0.21400699019432068, 0.13563577830791473, -0.18254268169403076, 0.27781566977500916, -0.5661318302154541, 0.08853571116924286, 0.04647010192275047, -0.3768393397331238, 0.05198022350668907, 0.10595661401748657, 0.3006991147994995, -0.18745507299900055, -0.01812520995736122, 0.1225493922829628, 0.26927441358566284, 0.19435177743434906, -0.20308446884155273, -0.06884165853261948, -0.08225636929273605, 0.3425475060939789, -0.2349199801683426, -0.017486900091171265, 0.22215598821640015, 0.5245278477668762, -0.0728755071759224, 0.24366021156311035, 0.0002841358946170658, -0.1616939753293991, -0.14906851947307587, 0.13526667654514313, -0.16351068019866943, -0.004178609233349562, 0.25013116002082825, -0.07113249599933624, 0.5344966053962708, -0.1528564691543579, -0.1193448156118393, 0.0431542806327343, 0.10792896896600723, 0.09876969456672668, -0.06682395935058594, -0.07356905937194824, 0.11217296123504639, -0.11904231458902359, -0.676813006401062, -0.09483353793621063, -0.0066715627908706665, 0.05028371885418892, -0.18310962617397308, 0.04850810393691063, 0.05594402924180031, 0.2722988426685333, -0.24319545924663544, 0.04687380790710449, 0.034285567700862885, -0.12855829298496246, 0.12035948038101196, -0.17170396447181702, 0.30700844526290894, 0.07237155735492706, 0.37446093559265137, 0.1524258255958557, 0.03463234007358551, -0.05600898712873459, 0.08808388561010361, 0.25396883487701416, -0.11241152882575989, -0.06806538999080658, 0.3727845847606659, -0.12009654194116592, -0.24057379364967346, 0.030354704707860947, 0.30086368322372437, 0.2114609330892563, -0.5567505955696106, -0.2547369599342346, 0.1414065659046173, 0.11033965647220612, 0.44232913851737976, -0.15933997929096222, 0.15982742607593536, -0.22180375456809998, -0.10139605402946472, -0.06485842913389206, 0.18331845104694366, 0.2225085198879242, 0.14580318331718445, 0.09433196485042572, 0.13314834237098694, -0.05494444817304611, 0.4079737067222595, 0.17323125898838043, -0.10495680570602417, -0.29908329248428345, -0.417481005191803, -0.10984668135643005, -0.22316035628318787, -0.34898701310157776, 0.0127750588580966, 0.1627187281847, 0.15754152834415436, -0.2045522779226303, 0.19498099386692047, 0.12453818321228027, -0.10424216836690903, -0.18146497011184692, 0.25921523571014404, 0.06262680888175964, -0.09957876801490784, -0.03461064398288727, 0.06945077329874039, 0.04311411827802658, 0.0513111911714077, 0.04441137984395027, -0.1974545121192932, 0.12700775265693665, -0.016930725425481796, 0.1985890418291092, -0.13963061571121216, 0.10587198287248611, -0.09997779875993729, 0.15201020240783691, -0.030765468254685402, -0.2881537675857544, 0.07070008665323257, -0.33754003047943115, -0.2997242212295532, -0.0799536406993866, 0.10588766634464264, 0.3322983980178833, -0.21939121186733246, -0.030874283984303474, -0.43923431634902954, -0.2742772698402405, 0.1431281864643097, 0.03126849606633186, -0.20165883004665375, 0.3339180648326874, -0.3192364275455475, 0.2579538822174072, 0.4746330976486206, -0.15740740299224854, -0.49555081129074097, 0.041003480553627014, 0.05871497094631195, -0.016302455216646194, -0.2682911157608032, 0.18199960887432098, 0.3184257745742798, -0.36710479855537415, -0.36711403727531433, 0.2014239877462387, -0.2209363728761673, 0.10654203593730927, -0.018452897667884827, 0.11797764897346497, -0.2781525254249573, 0.17003284394741058, 0.21018391847610474, 0.3882053792476654, 0.47560903429985046, 0.3276004195213318, -0.02191031165421009, -0.1268233060836792, 0.2653462588787079, -0.04193512350320816, 0.14055167138576508, -0.29787468910217285, -0.11005030572414398, -0.27833566069602966, -0.06329207122325897, 0.07615252584218979, 0.41980233788490295, 0.04780561849474907, -0.35849329829216003, 0.07163897156715393, 0.03206939622759819, -0.005813289899379015, -0.07963410019874573, 0.17019592225551605, 0.19372375309467316, 0.057769548147916794, -0.2833108603954315, 0.05506659671664238, 0.1432197093963623, 0.03750654682517052, -0.08818008005619049, -0.058206956833601, -0.04960165545344353, 0.16273877024650574, 0.12765167653560638, -0.43295609951019287, -0.3254346251487732, 0.10375385731458664, -0.11645378172397614, -0.04331471398472786, -0.3281320631504059, 0.22095318138599396, 0.01263775210827589, 0.10762649774551392, -0.17595811188220978, 0.17295348644256592, -0.0066004348918795586, -0.4969000816345215, 0.1204879879951477, 0.07671301811933517, 0.3363322913646698, 0.09309931099414825, -0.18977966904640198, -0.04704662412405014, 0.057294171303510666, -0.12212149798870087, 0.27362260222435, 0.0458516925573349, 0.14881856739521027, -0.03093785047531128, 0.11134479194879532, -0.5236707329750061, -0.2075134515762329, 0.23150786757469177, 0.07626831531524658, 0.07395487278699875, -0.3914639949798584, 0.1626405566930771, 0.6265977621078491, 0.1688113510608673, 0.3763042688369751, 0.001301903510466218, -0.01792501099407673, 0.017032302916049957, 0.3104971945285797, 0.037533823400735855, 0.6504706144332886, 0.22507421672344208, 0.31300994753837585, 0.06362874805927277, -0.13615275919437408, -0.09265055507421494, 0.1313188076019287, 0.05600621551275253, 0.1366877257823944, 0.11586468666791916, 0.3765801191329956, 0.03178737685084343, -0.4399757385253906, 0.00518133956938982, 0.1865178644657135, 0.0280312430113554, -0.13855472207069397, 0.09789208322763443, -0.6367881298065186, -0.18257169425487518, -0.07667543739080429, 0.78955078125, 0.14649541676044464, -0.24488914012908936, 0.01972648873925209, 0.031179795041680336, -0.36977845430374146, 0.28986871242523193, -0.5398539304733276, -0.03541536256670952, -0.15150484442710876, -0.1931084245443344, -0.2064816951751709, 0.20588302612304688, -0.14758947491645813, 0.052446816116571426, -0.010882826521992683, 0.07010933011770248, 0.364359974861145, -0.01117227878421545, -0.026065506041049957, -0.5546948313713074, -0.41185206174850464, 0.27056562900543213, 0.12550236284732819, 0.17651741206645966, 0.4210669696331024, 0.04943707212805748, -0.0566294826567173, 0.10714411735534668, 0.36487072706222534, -0.2689850628376007, -0.2455855756998062, 0.05337991565465927, -0.2295331060886383, -0.12693427503108978, -0.40358343720436096, 0.13204006850719452, 0.11916322261095047, -0.170976921916008, -0.011644775047898293, -0.017762377858161926, -0.10090018063783646, 0.10064119845628738, 0.3049755096435547, -0.09217863529920578, 0.04523521289229393, 0.25079432129859924, -0.3586536645889282, 0.005026640836149454, 0.08233454078435898, 0.058005720376968384, -0.23290738463401794, -0.3402527868747711, -0.02680419571697712, 0.30812984704971313, 0.6274155378341675, -0.2748173475265503, -0.38935163617134094, -0.019440777599811554, 0.3389722406864166, -0.04467291757464409, 0.02210472896695137, 0.31130149960517883, 0.08356059342622757, -0.1516227275133133, -0.41613128781318665, -0.148448184132576, 0.19296258687973022, 0.15235768258571625, 0.22208403050899506, 0.06848469376564026, 0.5241257548332214, 0.04086361825466156, 0.0036177090369164944, -0.24001801013946533, -0.3598380982875824, 0.5305605530738831, -0.34457990527153015, 0.412524551153183, -0.35208195447921753, -0.20040017366409302, 0.5027255415916443, 0.10675361752510071, -0.09510958939790726, -0.18030551075935364, -0.1592794954776764, -0.3431100845336914, 0.03758356720209122, 0.05395220220088959, -0.34561359882354736, -0.2569538950920105, -0.022552061825990677, 0.21136340498924255, 0.18493053317070007, 0.1404426246881485, -0.002553278114646673, -0.07247108221054077, 0.08291096985340118, 0.20724330842494965, -0.13264088332653046, 0.1638091504573822, -0.27814728021621704, 0.057807229459285736, -0.02468029223382473, 0.052160780876874924, 0.1834128350019455, 0.02863250859081745, 0.05110941082239151, -0.18296732008457184, -0.14792858064174652, 0.21416044235229492, 0.05748726427555084, 0.7478786110877991, -0.3581560254096985, 0.2546868324279785, -0.009561934508383274, -0.016323503106832504, -0.13316753506660461, 0.10193507373332977, -0.13873644173145294, -0.1485442817211151, 0.10780362784862518, 0.2699344754219055, -0.3124059736728668, -0.009465834125876427, 0.39321717619895935, 0.15247780084609985, -0.14542095363140106, 0.23678220808506012, -0.05293362960219383, -0.37790143489837646, -0.055234428495168686, -0.005702319089323282, 0.017730334773659706, -0.03982413560152054, 0.26173242926597595, -0.047319021075963974, -0.3412887454032898, -0.0655372366309166, -0.43509289622306824, 0.13124866783618927, 0.30298134684562683, -0.22380895912647247, 0.3279070556163788, -0.08615279942750931, 0.005995180923491716, 0.12760679423809052, 0.5769458413124084, -0.1479337513446808, -0.14023305475711823, 0.23516754806041718, 0.023989515379071236, 0.21099932491779327, 0.3276231288909912, -0.0736008733510971, -0.2928028404712677, -0.07535895705223083, -0.021911215037107468, -0.09817352145910263, 0.18000684678554535, 0.38707593083381653, -0.24126961827278137, 0.19738323986530304, -0.08748651295900345, 0.24114872515201569, -0.05664582550525665, -0.0574369952082634, -0.07192487269639969, -0.05347537249326706, -0.48298555612564087, 0.07225148379802704, 0.43444880843162537, 0.8382105827331543, 0.05134035646915436, 0.21475750207901, 0.1564285010099411, -0.16364611685276031, 0.22837334871292114, 0.5367595553398132, -0.08016496896743774, -0.12716126441955566, -0.19141724705696106, -0.02424907498061657, -0.022465016692876816, 0.023119311779737473, 0.08739147335290909, -0.036904476583004, -0.16817858815193176, -0.13961301743984222, 0.22824281454086304, -0.10010115802288055, -0.2023584246635437, -0.0171413142234087, -0.24197329580783844, -0.04600745812058449, 0.23355261981487274, -0.01893523521721363, -0.3259686529636383, 0.030412448570132256, 0.03861549496650696, -0.04312989115715027, 0.020429641008377075, -0.083380788564682, 0.24797481298446655, 0.007354306988418102, 0.23717518150806427, 0.06948663294315338, -0.2887316346168518, 0.09329099208116531, 0.08964462578296661, 0.11276725679636002, 0.054069291800260544, -0.08680062741041183, 0.4313598871231079, 0.2087315320968628, 0.5137438774108887, 0.17659635841846466, -0.01886327937245369, 0.5915836095809937, -0.017514042556285858, 0.06672829389572144, -0.18142303824424744, 0.0352603979408741, -0.05479048565030098, -0.0882287472486496, 0.03489628806710243, -0.06915876269340515, -0.380960613489151, -0.2493772655725479, 0.0007054482703097165, 0.3194149136543274, -0.3391474783420563, 0.1665160059928894, 0.08889501541852951, 0.1919480860233307, 0.4604758322238922, -0.01270203571766615, -0.11996256560087204, 0.025838885456323624, 0.38157355785369873, -0.0018842489225789905, 0.2462882697582245, 0.3307346999645233, -0.2579004764556885, -0.15802627801895142, -0.2584191560745239, -0.19651901721954346, 0.24397417902946472, -0.622349202632904, 0.3455531597137451, -0.24233274161815643, -0.17954349517822266, -0.10135360807180405, -0.055699896067380905, -0.36774107813835144, -0.10043893754482269, -0.4546979069709778, 0.04494594410061836, -0.38940757513046265, 0.24092704057693481, 0.11347641050815582, 0.23713485896587372, -0.31483742594718933, 0.30575984716415405, -0.028871828690171242, -0.24396562576293945, -0.3705432713031769, 0.040219083428382874, -0.19785884022712708, 0.25564661622047424, 0.07155290246009827, 0.17711609601974487, -0.10603777319192886, -0.08746049553155899, 0.26045310497283936, 0.08611878752708435, -0.20721948146820068, -0.18905092775821686, -0.26830247044563293, 0.1270228922367096, 0.1469455361366272, -0.1509724259376526, 0.10074324905872345, -0.18957534432411194, -0.22466811537742615, -0.18942727148532867, 0.12891478836536407, 0.014993743039667606, -0.13537918031215668, -0.13496075570583344, 0.1677969992160797, -0.1686735451221466, 0.3168150782585144, -0.0174602959305048, -0.07928240299224854, 0.2203500121831894, 0.16061434149742126, 0.1963653713464737, -0.07978380471467972, -0.0684724971652031, 0.18898464739322662, -0.0526389554142952, 0.06621668487787247, 0.16356797516345978, 0.38102173805236816, 0.01329907588660717, 0.17928224802017212, 0.14789995551109314, 0.43324822187423706, -0.038429249078035355, -0.2603316903114319, -0.3761533200740814, -0.053474124521017075, 0.2426818460226059, -0.24485896527767181, -0.21866317093372345, 0.08043282479047775, -0.05100027844309807, 0.08669963479042053, 0.11861597746610641, -0.24979165196418762, 0.05073094367980957, -0.0838220864534378, -0.038355372846126556, 0.6735718250274658, -0.47792038321495056, -0.206797793507576, 0.2718885540962219, -0.017296606674790382, 0.33509373664855957, 0.20035696029663086, 0.17863573133945465, 0.04332305118441582, 0.5920479893684387, 0.05623972415924072, 0.1556752473115921, -0.10961929708719254, 0.14462660253047943, 0.20277896523475647, -0.0194384902715683, 0.2805846631526947, 0.1038077101111412, -0.36726030707359314, 0.34224921464920044, -0.11472266912460327, -0.35734158754348755, -0.16026532649993896, -0.10116692632436752, 0.07086553424596786, 0.40848076343536377, -0.2717081606388092, 0.04031960293650627, -0.3761434257030487, -0.1354130059480667, -0.004383568651974201, 0.1989971548318863, -0.07360764592885971, 0.20387999713420868, 0.254436194896698, -0.0872434452176094, -0.007966673001646996, -0.19183744490146637, -0.2205428034067154, -0.366616815328598, 0.14347471296787262, -0.2625257670879364, 0.34974101185798645, 0.0354929156601429, -0.05632568150758743, 0.5013312697410583, 0.5291560292243958, 0.15688909590244293, -0.042998429387807846, 0.47892704606056213, -0.22653764486312866, 0.07397495210170746, -0.24470604956150055, -0.4655073583126068, 0.17124108970165253, 0.4285459816455841, 0.16133995354175568, 0.10774780064821243, 0.13643889129161835, -0.1400350034236908, 0.060838352888822556, 0.2234194427728653, 0.02484254166483879, -0.22179298102855682, 0.2426774650812149, -0.053876690566539764, -0.3813125789165497, -0.04314389452338219, -0.14449568092823029, -0.0871058776974678, -0.15979142487049103, 0.26139432191848755, -0.37471169233322144, 0.17572060227394104, 0.07653742283582687, 0.08485368639230728, 0.031012507155537605, 0.14988195896148682, -0.03527474030852318, -0.08037710934877396, -0.048555709421634674, -0.11647281050682068, -0.4756653904914856, 0.2527582049369812, 0.2324332892894745, -0.5349693894386292, 0.11557850241661072, 0.14820750057697296, 0.07371018081903458, -0.31904101371765137, 0.3081514239311218, -0.17998065054416656, 0.47425469756126404, 0.09305492043495178, -0.13825121521949768, -0.3758857846260071, 0.08961892127990723, 0.0015562896151095629, -0.2710379958152771, -0.23068417608737946, 0.1824464499950409, 0.05089223012328148, 0.2753136157989502, 0.15612931549549103, -0.1727394312620163, -0.18577654659748077, -0.1122266873717308, 0.3160620629787445, 0.05154605954885483, 0.2096959948539734, -0.3406740427017212, 0.08680349588394165, 0.0512239970266819, -0.19614820182323456, -0.14505203068256378, 0.17414261400699615, 0.030146751552820206, 0.4845455586910248, 0.16662685573101044, 0.35313379764556885, -0.08573819696903229, -0.08409322798252106, 0.012663825415074825, 0.2070704847574234, -0.24174679815769196, 0.33441290259361267, -0.3048844039440155, -0.07436802983283997, 0.0392858125269413, 0.07583674788475037, 0.11336985975503922, -0.020045462995767593, -0.27024903893470764, -0.5007684826850891, 0.5428861975669861, -0.14534839987754822, -0.4530576169490814, -0.16782639920711517, 0.04492664709687233, -0.6495760083198547, -0.0831817165017128, -0.39955487847328186, -0.2507539987564087, 0.2938709855079651, -0.1646214723587036, -0.2513020634651184, 0.2915572226047516, 0.2225235402584076, -0.023539356887340546, 0.11287528276443481, 0.43482571840286255, 0.11421741545200348, -0.09829050302505493, 0.16734611988067627, 0.1593153178691864 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Appolgies - I've just run again and also got this output. I have also sucesfully used the `push_to_hub` method. I think this is fixed now so will close this issue.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
30
Loss of cast `Image` feature on certain dataset method
[ -0.480998158454895, 0.16673530638217926, -0.062663733959198, 0.1170124039053917, 0.6286566257476807, 0.05924025550484657, 0.5137909054756165, 0.2283857762813568, -0.07036574929952621, 0.272655189037323, -0.15054278075695038, 0.45898616313934326, 0.05235804617404938, -0.25577762722969055, 0.028898337855935097, 0.0020359158515930176, -0.04801211878657341, 0.01333598978817463, -0.4230197072029114, -0.2356913983821869, -0.17560486495494843, -0.09806089848279953, -0.13557790219783783, -0.13399629294872284, -0.2222621887922287, -0.017733978107571602, 0.04327472299337387, 0.12170026451349258, 0.05717233568429947, -0.02791464887559414, -0.09907706081867218, 0.049356572329998016, -0.17326581478118896, 0.15099754929542542, -0.00011160947906319052, 0.004205181263387203, 0.21400699019432068, 0.13563577830791473, -0.18254268169403076, 0.27781566977500916, -0.5661318302154541, 0.08853571116924286, 0.04647010192275047, -0.3768393397331238, 0.05198022350668907, 0.10595661401748657, 0.3006991147994995, -0.18745507299900055, -0.01812520995736122, 0.1225493922829628, 0.26927441358566284, 0.19435177743434906, -0.20308446884155273, -0.06884165853261948, -0.08225636929273605, 0.3425475060939789, -0.2349199801683426, -0.017486900091171265, 0.22215598821640015, 0.5245278477668762, -0.0728755071759224, 0.24366021156311035, 0.0002841358946170658, -0.1616939753293991, -0.14906851947307587, 0.13526667654514313, -0.16351068019866943, -0.004178609233349562, 0.25013116002082825, -0.07113249599933624, 0.5344966053962708, -0.1528564691543579, -0.1193448156118393, 0.0431542806327343, 0.10792896896600723, 0.09876969456672668, -0.06682395935058594, -0.07356905937194824, 0.11217296123504639, -0.11904231458902359, -0.676813006401062, -0.09483353793621063, -0.0066715627908706665, 0.05028371885418892, -0.18310962617397308, 0.04850810393691063, 0.05594402924180031, 0.2722988426685333, -0.24319545924663544, 0.04687380790710449, 0.034285567700862885, -0.12855829298496246, 0.12035948038101196, -0.17170396447181702, 0.30700844526290894, 0.07237155735492706, 0.37446093559265137, 0.1524258255958557, 0.03463234007358551, -0.05600898712873459, 0.08808388561010361, 0.25396883487701416, -0.11241152882575989, -0.06806538999080658, 0.3727845847606659, -0.12009654194116592, -0.24057379364967346, 0.030354704707860947, 0.30086368322372437, 0.2114609330892563, -0.5567505955696106, -0.2547369599342346, 0.1414065659046173, 0.11033965647220612, 0.44232913851737976, -0.15933997929096222, 0.15982742607593536, -0.22180375456809998, -0.10139605402946472, -0.06485842913389206, 0.18331845104694366, 0.2225085198879242, 0.14580318331718445, 0.09433196485042572, 0.13314834237098694, -0.05494444817304611, 0.4079737067222595, 0.17323125898838043, -0.10495680570602417, -0.29908329248428345, -0.417481005191803, -0.10984668135643005, -0.22316035628318787, -0.34898701310157776, 0.0127750588580966, 0.1627187281847, 0.15754152834415436, -0.2045522779226303, 0.19498099386692047, 0.12453818321228027, -0.10424216836690903, -0.18146497011184692, 0.25921523571014404, 0.06262680888175964, -0.09957876801490784, -0.03461064398288727, 0.06945077329874039, 0.04311411827802658, 0.0513111911714077, 0.04441137984395027, -0.1974545121192932, 0.12700775265693665, -0.016930725425481796, 0.1985890418291092, -0.13963061571121216, 0.10587198287248611, -0.09997779875993729, 0.15201020240783691, -0.030765468254685402, -0.2881537675857544, 0.07070008665323257, -0.33754003047943115, -0.2997242212295532, -0.0799536406993866, 0.10588766634464264, 0.3322983980178833, -0.21939121186733246, -0.030874283984303474, -0.43923431634902954, -0.2742772698402405, 0.1431281864643097, 0.03126849606633186, -0.20165883004665375, 0.3339180648326874, -0.3192364275455475, 0.2579538822174072, 0.4746330976486206, -0.15740740299224854, -0.49555081129074097, 0.041003480553627014, 0.05871497094631195, -0.016302455216646194, -0.2682911157608032, 0.18199960887432098, 0.3184257745742798, -0.36710479855537415, -0.36711403727531433, 0.2014239877462387, -0.2209363728761673, 0.10654203593730927, -0.018452897667884827, 0.11797764897346497, -0.2781525254249573, 0.17003284394741058, 0.21018391847610474, 0.3882053792476654, 0.47560903429985046, 0.3276004195213318, -0.02191031165421009, -0.1268233060836792, 0.2653462588787079, -0.04193512350320816, 0.14055167138576508, -0.29787468910217285, -0.11005030572414398, -0.27833566069602966, -0.06329207122325897, 0.07615252584218979, 0.41980233788490295, 0.04780561849474907, -0.35849329829216003, 0.07163897156715393, 0.03206939622759819, -0.005813289899379015, -0.07963410019874573, 0.17019592225551605, 0.19372375309467316, 0.057769548147916794, -0.2833108603954315, 0.05506659671664238, 0.1432197093963623, 0.03750654682517052, -0.08818008005619049, -0.058206956833601, -0.04960165545344353, 0.16273877024650574, 0.12765167653560638, -0.43295609951019287, -0.3254346251487732, 0.10375385731458664, -0.11645378172397614, -0.04331471398472786, -0.3281320631504059, 0.22095318138599396, 0.01263775210827589, 0.10762649774551392, -0.17595811188220978, 0.17295348644256592, -0.0066004348918795586, -0.4969000816345215, 0.1204879879951477, 0.07671301811933517, 0.3363322913646698, 0.09309931099414825, -0.18977966904640198, -0.04704662412405014, 0.057294171303510666, -0.12212149798870087, 0.27362260222435, 0.0458516925573349, 0.14881856739521027, -0.03093785047531128, 0.11134479194879532, -0.5236707329750061, -0.2075134515762329, 0.23150786757469177, 0.07626831531524658, 0.07395487278699875, -0.3914639949798584, 0.1626405566930771, 0.6265977621078491, 0.1688113510608673, 0.3763042688369751, 0.001301903510466218, -0.01792501099407673, 0.017032302916049957, 0.3104971945285797, 0.037533823400735855, 0.6504706144332886, 0.22507421672344208, 0.31300994753837585, 0.06362874805927277, -0.13615275919437408, -0.09265055507421494, 0.1313188076019287, 0.05600621551275253, 0.1366877257823944, 0.11586468666791916, 0.3765801191329956, 0.03178737685084343, -0.4399757385253906, 0.00518133956938982, 0.1865178644657135, 0.0280312430113554, -0.13855472207069397, 0.09789208322763443, -0.6367881298065186, -0.18257169425487518, -0.07667543739080429, 0.78955078125, 0.14649541676044464, -0.24488914012908936, 0.01972648873925209, 0.031179795041680336, -0.36977845430374146, 0.28986871242523193, -0.5398539304733276, -0.03541536256670952, -0.15150484442710876, -0.1931084245443344, -0.2064816951751709, 0.20588302612304688, -0.14758947491645813, 0.052446816116571426, -0.010882826521992683, 0.07010933011770248, 0.364359974861145, -0.01117227878421545, -0.026065506041049957, -0.5546948313713074, -0.41185206174850464, 0.27056562900543213, 0.12550236284732819, 0.17651741206645966, 0.4210669696331024, 0.04943707212805748, -0.0566294826567173, 0.10714411735534668, 0.36487072706222534, -0.2689850628376007, -0.2455855756998062, 0.05337991565465927, -0.2295331060886383, -0.12693427503108978, -0.40358343720436096, 0.13204006850719452, 0.11916322261095047, -0.170976921916008, -0.011644775047898293, -0.017762377858161926, -0.10090018063783646, 0.10064119845628738, 0.3049755096435547, -0.09217863529920578, 0.04523521289229393, 0.25079432129859924, -0.3586536645889282, 0.005026640836149454, 0.08233454078435898, 0.058005720376968384, -0.23290738463401794, -0.3402527868747711, -0.02680419571697712, 0.30812984704971313, 0.6274155378341675, -0.2748173475265503, -0.38935163617134094, -0.019440777599811554, 0.3389722406864166, -0.04467291757464409, 0.02210472896695137, 0.31130149960517883, 0.08356059342622757, -0.1516227275133133, -0.41613128781318665, -0.148448184132576, 0.19296258687973022, 0.15235768258571625, 0.22208403050899506, 0.06848469376564026, 0.5241257548332214, 0.04086361825466156, 0.0036177090369164944, -0.24001801013946533, -0.3598380982875824, 0.5305605530738831, -0.34457990527153015, 0.412524551153183, -0.35208195447921753, -0.20040017366409302, 0.5027255415916443, 0.10675361752510071, -0.09510958939790726, -0.18030551075935364, -0.1592794954776764, -0.3431100845336914, 0.03758356720209122, 0.05395220220088959, -0.34561359882354736, -0.2569538950920105, -0.022552061825990677, 0.21136340498924255, 0.18493053317070007, 0.1404426246881485, -0.002553278114646673, -0.07247108221054077, 0.08291096985340118, 0.20724330842494965, -0.13264088332653046, 0.1638091504573822, -0.27814728021621704, 0.057807229459285736, -0.02468029223382473, 0.052160780876874924, 0.1834128350019455, 0.02863250859081745, 0.05110941082239151, -0.18296732008457184, -0.14792858064174652, 0.21416044235229492, 0.05748726427555084, 0.7478786110877991, -0.3581560254096985, 0.2546868324279785, -0.009561934508383274, -0.016323503106832504, -0.13316753506660461, 0.10193507373332977, -0.13873644173145294, -0.1485442817211151, 0.10780362784862518, 0.2699344754219055, -0.3124059736728668, -0.009465834125876427, 0.39321717619895935, 0.15247780084609985, -0.14542095363140106, 0.23678220808506012, -0.05293362960219383, -0.37790143489837646, -0.055234428495168686, -0.005702319089323282, 0.017730334773659706, -0.03982413560152054, 0.26173242926597595, -0.047319021075963974, -0.3412887454032898, -0.0655372366309166, -0.43509289622306824, 0.13124866783618927, 0.30298134684562683, -0.22380895912647247, 0.3279070556163788, -0.08615279942750931, 0.005995180923491716, 0.12760679423809052, 0.5769458413124084, -0.1479337513446808, -0.14023305475711823, 0.23516754806041718, 0.023989515379071236, 0.21099932491779327, 0.3276231288909912, -0.0736008733510971, -0.2928028404712677, -0.07535895705223083, -0.021911215037107468, -0.09817352145910263, 0.18000684678554535, 0.38707593083381653, -0.24126961827278137, 0.19738323986530304, -0.08748651295900345, 0.24114872515201569, -0.05664582550525665, -0.0574369952082634, -0.07192487269639969, -0.05347537249326706, -0.48298555612564087, 0.07225148379802704, 0.43444880843162537, 0.8382105827331543, 0.05134035646915436, 0.21475750207901, 0.1564285010099411, -0.16364611685276031, 0.22837334871292114, 0.5367595553398132, -0.08016496896743774, -0.12716126441955566, -0.19141724705696106, -0.02424907498061657, -0.022465016692876816, 0.023119311779737473, 0.08739147335290909, -0.036904476583004, -0.16817858815193176, -0.13961301743984222, 0.22824281454086304, -0.10010115802288055, -0.2023584246635437, -0.0171413142234087, -0.24197329580783844, -0.04600745812058449, 0.23355261981487274, -0.01893523521721363, -0.3259686529636383, 0.030412448570132256, 0.03861549496650696, -0.04312989115715027, 0.020429641008377075, -0.083380788564682, 0.24797481298446655, 0.007354306988418102, 0.23717518150806427, 0.06948663294315338, -0.2887316346168518, 0.09329099208116531, 0.08964462578296661, 0.11276725679636002, 0.054069291800260544, -0.08680062741041183, 0.4313598871231079, 0.2087315320968628, 0.5137438774108887, 0.17659635841846466, -0.01886327937245369, 0.5915836095809937, -0.017514042556285858, 0.06672829389572144, -0.18142303824424744, 0.0352603979408741, -0.05479048565030098, -0.0882287472486496, 0.03489628806710243, -0.06915876269340515, -0.380960613489151, -0.2493772655725479, 0.0007054482703097165, 0.3194149136543274, -0.3391474783420563, 0.1665160059928894, 0.08889501541852951, 0.1919480860233307, 0.4604758322238922, -0.01270203571766615, -0.11996256560087204, 0.025838885456323624, 0.38157355785369873, -0.0018842489225789905, 0.2462882697582245, 0.3307346999645233, -0.2579004764556885, -0.15802627801895142, -0.2584191560745239, -0.19651901721954346, 0.24397417902946472, -0.622349202632904, 0.3455531597137451, -0.24233274161815643, -0.17954349517822266, -0.10135360807180405, -0.055699896067380905, -0.36774107813835144, -0.10043893754482269, -0.4546979069709778, 0.04494594410061836, -0.38940757513046265, 0.24092704057693481, 0.11347641050815582, 0.23713485896587372, -0.31483742594718933, 0.30575984716415405, -0.028871828690171242, -0.24396562576293945, -0.3705432713031769, 0.040219083428382874, -0.19785884022712708, 0.25564661622047424, 0.07155290246009827, 0.17711609601974487, -0.10603777319192886, -0.08746049553155899, 0.26045310497283936, 0.08611878752708435, -0.20721948146820068, -0.18905092775821686, -0.26830247044563293, 0.1270228922367096, 0.1469455361366272, -0.1509724259376526, 0.10074324905872345, -0.18957534432411194, -0.22466811537742615, -0.18942727148532867, 0.12891478836536407, 0.014993743039667606, -0.13537918031215668, -0.13496075570583344, 0.1677969992160797, -0.1686735451221466, 0.3168150782585144, -0.0174602959305048, -0.07928240299224854, 0.2203500121831894, 0.16061434149742126, 0.1963653713464737, -0.07978380471467972, -0.0684724971652031, 0.18898464739322662, -0.0526389554142952, 0.06621668487787247, 0.16356797516345978, 0.38102173805236816, 0.01329907588660717, 0.17928224802017212, 0.14789995551109314, 0.43324822187423706, -0.038429249078035355, -0.2603316903114319, -0.3761533200740814, -0.053474124521017075, 0.2426818460226059, -0.24485896527767181, -0.21866317093372345, 0.08043282479047775, -0.05100027844309807, 0.08669963479042053, 0.11861597746610641, -0.24979165196418762, 0.05073094367980957, -0.0838220864534378, -0.038355372846126556, 0.6735718250274658, -0.47792038321495056, -0.206797793507576, 0.2718885540962219, -0.017296606674790382, 0.33509373664855957, 0.20035696029663086, 0.17863573133945465, 0.04332305118441582, 0.5920479893684387, 0.05623972415924072, 0.1556752473115921, -0.10961929708719254, 0.14462660253047943, 0.20277896523475647, -0.0194384902715683, 0.2805846631526947, 0.1038077101111412, -0.36726030707359314, 0.34224921464920044, -0.11472266912460327, -0.35734158754348755, -0.16026532649993896, -0.10116692632436752, 0.07086553424596786, 0.40848076343536377, -0.2717081606388092, 0.04031960293650627, -0.3761434257030487, -0.1354130059480667, -0.004383568651974201, 0.1989971548318863, -0.07360764592885971, 0.20387999713420868, 0.254436194896698, -0.0872434452176094, -0.007966673001646996, -0.19183744490146637, -0.2205428034067154, -0.366616815328598, 0.14347471296787262, -0.2625257670879364, 0.34974101185798645, 0.0354929156601429, -0.05632568150758743, 0.5013312697410583, 0.5291560292243958, 0.15688909590244293, -0.042998429387807846, 0.47892704606056213, -0.22653764486312866, 0.07397495210170746, -0.24470604956150055, -0.4655073583126068, 0.17124108970165253, 0.4285459816455841, 0.16133995354175568, 0.10774780064821243, 0.13643889129161835, -0.1400350034236908, 0.060838352888822556, 0.2234194427728653, 0.02484254166483879, -0.22179298102855682, 0.2426774650812149, -0.053876690566539764, -0.3813125789165497, -0.04314389452338219, -0.14449568092823029, -0.0871058776974678, -0.15979142487049103, 0.26139432191848755, -0.37471169233322144, 0.17572060227394104, 0.07653742283582687, 0.08485368639230728, 0.031012507155537605, 0.14988195896148682, -0.03527474030852318, -0.08037710934877396, -0.048555709421634674, -0.11647281050682068, -0.4756653904914856, 0.2527582049369812, 0.2324332892894745, -0.5349693894386292, 0.11557850241661072, 0.14820750057697296, 0.07371018081903458, -0.31904101371765137, 0.3081514239311218, -0.17998065054416656, 0.47425469756126404, 0.09305492043495178, -0.13825121521949768, -0.3758857846260071, 0.08961892127990723, 0.0015562896151095629, -0.2710379958152771, -0.23068417608737946, 0.1824464499950409, 0.05089223012328148, 0.2753136157989502, 0.15612931549549103, -0.1727394312620163, -0.18577654659748077, -0.1122266873717308, 0.3160620629787445, 0.05154605954885483, 0.2096959948539734, -0.3406740427017212, 0.08680349588394165, 0.0512239970266819, -0.19614820182323456, -0.14505203068256378, 0.17414261400699615, 0.030146751552820206, 0.4845455586910248, 0.16662685573101044, 0.35313379764556885, -0.08573819696903229, -0.08409322798252106, 0.012663825415074825, 0.2070704847574234, -0.24174679815769196, 0.33441290259361267, -0.3048844039440155, -0.07436802983283997, 0.0392858125269413, 0.07583674788475037, 0.11336985975503922, -0.020045462995767593, -0.27024903893470764, -0.5007684826850891, 0.5428861975669861, -0.14534839987754822, -0.4530576169490814, -0.16782639920711517, 0.04492664709687233, -0.6495760083198547, -0.0831817165017128, -0.39955487847328186, -0.2507539987564087, 0.2938709855079651, -0.1646214723587036, -0.2513020634651184, 0.2915572226047516, 0.2225235402584076, -0.023539356887340546, 0.11287528276443481, 0.43482571840286255, 0.11421741545200348, -0.09829050302505493, 0.16734611988067627, 0.1593153178691864 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
Hello! I have recently been involved with a medical image segmentation project myself and was going through the `The Medical Segmentation Decathlon Dataset` as well. I haven't yet had experience adding datasets to this repository yet but would love to get started. Should I take this issue? If yes, I've got two questions - 1. There are 10 different datasets available, so are all datasets to be added in a single PR, or one at a time? 2. Since it's a competition, masks for the test-set are not available. How is that to be tackled? Sorry if it's a silly question, I have recently started exploring `datasets`.
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
107
Add The Medical Segmentation Decathlon Dataset
[ -0.25434890389442444, -0.04546111822128296, -0.29126402735710144, -0.11950332671403885, -0.011819361709058285, 0.18612736463546753, 0.3203352689743042, 0.3811970353126526, -0.41176244616508484, 0.2187877893447876, -0.030878517776727676, 0.05767698958516121, -0.16335734724998474, 0.2795214056968689, 0.33034437894821167, -0.24061384797096252, 0.0772189050912857, 0.2013186812400818, 0.001652929000556469, -0.27724024653434753, -0.11208955943584442, 0.021182727068662643, -0.28623107075691223, -0.27494949102401733, 0.09637144953012466, 0.12924474477767944, 0.10382622480392456, 0.3422517478466034, -0.21459440886974335, -0.6525454521179199, -0.23067891597747803, -0.14142650365829468, 0.008214708417654037, 0.1998293250799179, -0.0001086476695491001, -0.18943531811237335, -0.16514238715171814, -0.20256036520004272, -0.35557207465171814, 0.17582689225673676, -0.28342482447624207, -0.12633004784584045, -0.1297416239976883, -0.30209994316101074, -0.3275338113307953, -0.04023178294301033, -0.20963506400585175, -0.15725485980510712, 0.1267247200012207, 0.2827560305595398, 0.24214337766170502, -0.03943793103098869, -0.1535424143075943, -0.3203597068786621, -0.06137431785464287, 0.34262964129447937, -0.2772082984447479, 0.01761811412870884, 0.35840508341789246, 0.056441958993673325, 0.12173092365264893, 0.42878293991088867, 0.16005951166152954, 0.08181169629096985, 0.05997145548462868, -0.09111637622117996, 0.3315286934375763, -0.3299275040626526, 0.35096296668052673, 0.33801183104515076, 0.38806307315826416, -0.1310778558254242, -0.10761995613574982, 0.1767980307340622, 0.17887476086616516, -0.35386574268341064, -0.1332980990409851, 0.3189014494419098, -0.05059147998690605, 0.057806819677352905, -0.13269197940826416, -0.20873558521270752, -0.2907505929470062, -0.14402249455451965, -0.12852559983730316, 0.30255013704299927, 0.11054491996765137, -0.13786134123802185, 0.17061825096607208, 0.006726026069372892, 0.04568637162446976, 0.20472952723503113, 0.03774690628051758, 0.23184701800346375, -0.32538801431655884, -0.3763394057750702, -0.36880844831466675, -0.028123941272497177, 0.10935119539499283, 0.32251855731010437, 0.09112352132797241, -0.07352423667907715, 0.39987072348594666, -0.2615307867527008, 0.14578138291835785, -0.45173484086990356, -0.309070885181427, 0.4699864983558655, -0.2377493977546692, -0.16955192387104034, 0.04981347545981407, 0.19399680197238922, 0.03794240206480026, 0.20508579909801483, 0.03019828349351883, -0.07439322024583817, -0.22824440896511078, -0.19875884056091309, -0.1815725415945053, 0.1900085210800171, -0.09902121871709824, -0.021523479372262955, -0.3365723192691803, 0.41134676337242126, -0.007792762015014887, -0.21628621220588684, -0.2340007722377777, 0.23021292686462402, -0.06169333681464195, -0.03172722086310387, -0.26781123876571655, 0.21768751740455627, -0.06582088768482208, 0.09435972571372986, 0.25401413440704346, -0.1521131694316864, -0.022642944008111954, -0.1181257888674736, 0.028679102659225464, -0.03842124715447426, 0.0036350868176668882, 0.021676121279597282, 0.45617055892944336, 0.369211882352829, 0.17323340475559235, -0.04534091055393219, -0.11168523132801056, 0.17212222516536713, -0.04003915563225746, -0.019676240161061287, -0.3058798015117645, -0.26117604970932007, -0.654729962348938, 0.25148075819015503, -0.08133753389120102, -0.10218960046768188, 0.5365859866142273, 0.23505358397960663, 0.011592353694140911, -0.2487185001373291, 0.02047361433506012, 0.13871830701828003, -0.13039639592170715, -0.25733813643455505, 0.2875826060771942, 0.06294312328100204, -0.5791753530502319, -0.09156777709722519, -0.1835763156414032, 0.17449098825454712, 0.2619244158267975, 0.13477563858032227, -0.09400635957717896, 0.0424601174890995, -0.0735291913151741, 0.41316962242126465, 0.7374370694160461, -0.0320584811270237, -0.4215787649154663, -0.466396689414978, -0.16068284213542938, -0.2636265158653259, 0.23697778582572937, 0.25692278146743774, 0.25312313437461853, 0.013006173074245453, -0.10404946655035019, 0.08272545039653778, -0.20136316120624542, -0.02630745805799961, -0.06596382707357407, -0.18566100299358368, 0.1648796945810318, 0.40360283851623535, 0.4004881680011749, -0.023957207798957825, 0.4063475728034973, 0.2739262878894806, 0.3524184226989746, -0.01447158120572567, -0.16442939639091492, -0.08036798238754272, 0.17809566855430603, -0.12109991908073425, 0.24418790638446808, -0.1680525839328766, -0.11714810132980347, -0.38773685693740845, 0.19406017661094666, 0.34010049700737, -0.04886627569794655, -0.12583765387535095, -0.3460802137851715, -0.003369702259078622, -0.07685885578393936, 0.08926178514957428, 0.23522649705410004, 0.14135606586933136, 0.08702897280454636, -0.00578034482896328, -0.27294254302978516, -0.12811705470085144, 0.32339733839035034, 0.040808044373989105, -0.007625466678291559, 0.615304172039032, -0.18816308677196503, -0.3486330211162567, 0.19307155907154083, 0.4730207920074463, 0.06690946221351624, -0.12277159839868546, 0.1969042718410492, -0.09192252904176712, -0.005577664822340012, 0.07382811605930328, 0.34273967146873474, 0.4921637177467346, 0.08323179930448532, -0.531349778175354, 0.0775783583521843, -0.13474541902542114, 0.02356821671128273, 0.023052223026752472, -0.08012315630912781, 0.12356796115636826, 0.3161131739616394, -0.0600171722471714, -0.0004202327399980277, 0.1998688131570816, 0.02097918651998043, -0.10388839989900589, -0.007408358156681061, -0.10706206411123276, 0.09830854088068008, -0.00003093947088927962, -0.1218058243393898, -0.16297224164009094, -0.468074768781662, 0.20609913766384125, 0.44002076983451843, -0.19798719882965088, 0.13916702568531036, -0.23933827877044678, -0.3182256519794464, -0.04365010932087898, 0.15937426686286926, -0.22025026381015778, 0.09802509099245071, 0.24780212342739105, 0.14754600822925568, -0.008052988909184933, 0.04596753418445587, -0.2416888177394867, 0.0011836892226710916, 0.10117067396640778, -0.023791830986738205, 0.34313011169433594, 0.08782681822776794, 0.05185980349779129, -0.19380038976669312, 0.036062855273485184, -0.004490253049880266, 0.06524484604597092, -0.06309830397367477, 0.020503025501966476, 0.06463488936424255, -0.2394886165857315, 0.11624757945537567, -0.242259219288826, 0.036358729004859924, -0.12368425726890564, 0.2578687071800232, -0.2448989301919937, 0.10961452126502991, 0.1289302408695221, -0.28573742508888245, 0.5989081859588623, -0.040663618594408035, -0.04985547438263893, 0.10529213398694992, 0.014103071764111519, 0.22637727856636047, 0.29959145188331604, -0.13754868507385254, 0.17105615139007568, 0.3103089928627014, -0.19651666283607483, 0.15387172996997833, 0.023105287924408913, -0.27650660276412964, 0.13566449284553528, 0.10218830406665802, -0.07629407942295074, 0.053282480686903, 0.18749304115772247, -0.14533554017543793, -0.40246355533599854, -0.12649329006671906, 0.012454137206077576, 0.030900590121746063, 0.0807197242975235, -0.22769175469875336, 0.13180826604366302, -0.043079957365989685, -0.5471240878105164, -0.3492589592933655, -0.19484290480613708, -0.14216439425945282, 0.4337424337863922, 0.13283267617225647, -0.0026384007651358843, 0.034533217549324036, -0.11200915277004242, -0.09023096412420273, -0.03166498988866806, -0.33064278960227966, 0.09405074268579483, 0.3690578043460846, -0.29672619700431824, -0.24233457446098328, -0.10765834897756577, -0.2668437659740448, 0.5512785911560059, 0.08851107954978943, -0.4276615381240845, 0.16359609365463257, 0.15961763262748718, -0.13650283217430115, -0.2266196608543396, 0.007337711285799742, 0.28505274653434753, -0.08372344821691513, -0.14038856327533722, -0.08382823318243027, 0.11052802950143814, 0.2158009111881256, 0.21853876113891602, -0.01705080084502697, -0.5569109916687012, 0.037288401275873184, 0.2040281891822815, 0.8591933250427246, 0.217731773853302, -0.07645300030708313, 0.05205976963043213, -0.02095547690987587, 0.0671294778585434, 0.10540930926799774, -0.11123188585042953, 0.4647722840309143, 0.31196409463882446, 0.26004549860954285, 0.35983145236968994, 0.013875236734747887, -0.34821492433547974, 0.07091151922941208, 0.272527813911438, -0.5509577393531799, -0.16247722506523132, 0.1638154685497284, 0.12005208432674408, 0.20985279977321625, -0.03288010507822037, -0.013844684697687626, -0.18982233107089996, -0.2404697984457016, 0.15734973549842834, 0.44980689883232117, 0.14470922946929932, 0.05196138471364975, -0.415205180644989, -0.11876656115055084, -0.19288529455661774, 0.20799989998340607, 0.030642352998256683, -0.005594757851213217, -0.42725473642349243, -0.15680943429470062, 0.16104918718338013, -0.024365616962313652, -0.07937400043010712, -0.3663758337497711, 0.1284056305885315, 0.1589398831129074, 0.004738406278192997, 0.2962169647216797, 0.051572710275650024, -0.15574605762958527, -0.14163966476917267, 0.5091166496276855, 0.14338518679141998, -0.18737244606018066, 0.11910659074783325, 0.6549932360649109, 0.09617764502763748, -0.1014295220375061, -0.16768303513526917, 0.14658914506435394, -0.1582922637462616, -0.2212575078010559, 0.09224230796098709, -0.07844352722167969, 0.23842746019363403, 0.14029556512832642, -0.37081044912338257, -0.00781610980629921, -0.3196209669113159, 0.19071832299232483, 0.15035706758499146, -0.05268055945634842, 0.1724298894405365, 0.021096674725413322, 0.33905187249183655, -0.1478249430656433, 0.41579824686050415, 0.4216550886631012, 0.06000850722193718, -0.0706011950969696, 0.3368685841560364, -0.21035529673099518, 0.3639995753765106, 0.30851441621780396, 0.13946183025836945, 0.16190999746322632, 0.04038204625248909, 0.0005784383392892778, -0.2993205487728119, 0.13685253262519836, 0.07074388116598129, -0.3030284345149994, -0.3838235139846802, -0.4366626739501953, 0.11120244115591049, -0.0269714817404747, -0.07882584631443024, -0.043168164789676666, 0.37573862075805664, -0.06209474802017212, 0.20306523144245148, 0.23294733464717865, 1.1297907829284668, -0.08642680197954178, 0.10070037841796875, 0.020083654671907425, 0.047687649726867676, 0.07238022238016129, -0.4370860457420349, -0.029975229874253273, -0.4612502157688141, -0.22786502540111542, -0.07707051187753677, -0.11001773178577423, 0.10796485841274261, 0.13573633134365082, -0.1406397521495819, 0.05398566648364067, -0.0550825297832489, 0.13232800364494324, -0.09463995695114136, 0.372124582529068, 0.2183866947889328, -0.10323797911405563, 0.24698376655578613, 0.2230796068906784, -0.0007021581404842436, 0.013333160430192947, 0.11578323692083359, -0.16213862597942352, -0.14986470341682434, -0.03773568570613861, -0.2738756239414215, 0.11748521029949188, -0.12306207418441772, -0.18166133761405945, -0.2112620323896408, -0.597235381603241, 0.21513456106185913, -0.0392184816300869, 0.29828330874443054, 0.11421104520559311, -0.12248869240283966, 0.2597409784793854, 0.10779929906129837, -0.17243416607379913, -0.09630999714136124, 0.04472641274333, 0.4332447946071625, -0.3113739788532257, -0.07844407111406326, 0.4121844172477722, 0.2649793326854706, -0.3988531827926636, -0.07179250568151474, 0.03811357170343399, 0.12312009185552597, -0.22337652742862701, 0.28186145424842834, 0.23068557679653168, -0.17387697100639343, -0.12757600843906403, 0.20258933305740356, 0.1519891619682312, -0.15882867574691772, 0.22276875376701355, 0.3647995889186859, -0.1179695799946785, -0.3036644756793976, 0.011820119805634022, 0.3929334878921509, -0.03740645572543144, 0.2610156834125519, -0.0976511612534523, -0.17432239651679993, -0.5528002977371216, -0.3178579807281494, 0.32781144976615906, -0.18060335516929626, -0.21552149951457977, -0.13948418200016022, -0.19445058703422546, 0.258187472820282, 0.2696900963783264, 0.08710067719221115, -0.06803452223539352, -0.433403879404068, -0.20336627960205078, -0.1047806367278099, 0.21625016629695892, -0.2562139928340912, 0.27400246262550354, 0.1820797324180603, 0.33683109283447266, -0.14081299304962158, 0.34165555238723755, -0.46177050471305847, -0.017870981246232986, -0.07758862525224686, 0.165223628282547, -0.23351232707500458, -0.23075933754444122, -0.10238157957792282, 0.025231018662452698, 0.2087053656578064, 0.029542377218604088, -0.3645484745502472, -0.31175151467323303, -0.024404920637607574, 0.07707937061786652, 0.08874978125095367, -0.19298233091831207, -0.18831706047058105, -0.07264692336320877, -0.22268719971179962, 0.17755506932735443, 0.054998598992824554, -0.44316479563713074, 0.19393010437488556, 0.06385745853185654, 0.2897097170352936, -0.242259681224823, 0.1603306531906128, 0.22479082643985748, -0.04634357988834381, 0.11584246903657913, 0.014108661562204361, 0.22493472695350647, -0.0997547060251236, -0.11871085315942764, 0.049152057617902756, 0.4007452130317688, 0.09926272183656693, 0.04159967601299286, 0.24331992864608765, -0.11555398255586624, -0.22768212854862213, -0.09378108382225037, 0.045839034020900726, -0.02810628153383732, -0.26780036091804504, 0.22556059062480927, -0.06516987085342407, 0.27988529205322266, -0.22382502257823944, -0.25057095289230347, -0.1211966872215271, 0.07110753655433655, 0.13860782980918884, 0.418642520904541, 0.6505960822105408, 0.13564234972000122, -0.0068098148331046104, -0.1034310907125473, 0.16730105876922607, 0.020463110879063606, 0.32112014293670654, 0.5246184468269348, -0.12323308736085892, -0.043429311364889145, -0.11584734916687012, 0.021494129672646523, -0.14200547337532043, 0.24704496562480927, -0.030881764367222786, 0.29644712805747986, 0.4337192475795746, -0.49498194456100464, 0.09896352887153625, 0.23507265746593475, 0.008731570094823837, 0.06904729455709457, -0.09636928141117096, 0.13735808432102203, 0.3129609525203705, -0.16252389550209045, 0.04985816031694412, -0.3429727554321289, -0.2975119948387146, -0.06445097923278809, -0.06549254059791565, 0.24579091370105743, -0.019040700048208237, -0.09807159751653671, -0.15502609312534332, -0.051697988063097, -0.04866202175617218, -0.2513750195503235, 0.25911930203437805, -0.15603959560394287, 0.07613877952098846, 0.31668728590011597, -0.14169716835021973, 0.4991302490234375, 0.05385226011276245, -0.1595512181520462, 0.04902763292193413, 0.20360355079174042, 0.06727008521556854, 0.333652138710022, 0.06808549910783768, 0.2764514982700348, -0.2833555042743683, -0.023394640535116196, -0.18873800337314606, 0.10576078295707703, -0.23496536910533905, 0.06719563901424408, 0.1134614422917366, 0.10289398580789566, 0.22624637186527252, 0.2745983898639679, 0.26048243045806885, -0.2105271965265274, -0.2226196527481079, 0.20539453625679016, 0.10260152816772461, -0.24790459871292114, -0.00942525826394558, 0.03663288801908493, -0.2695435881614685, -0.19486546516418457, -0.05041593313217163, -0.05341467633843422, 0.06279180943965912, -0.010015686973929405, -0.026486104354262352, 0.10893392562866211, -0.01883280836045742, 0.10190653055906296, 0.013768085278570652, 0.4661697447299957, 0.10107903182506561, 0.02148675173521042, -0.07183510065078735, -0.506820023059845, -0.177907332777977, -0.07875654101371765, -0.015624512918293476, 0.0312812365591526, 0.15336649119853973, 0.2895081341266632, 0.2607946991920471, 0.30219176411628723, 0.17250238358974457, 0.09900923073291779, 0.19222930073738098, 0.3067600429058075, -0.2165914624929428, 0.04312950000166893, 0.14626862108707428, 0.22203849256038666, -0.2528635263442993, 0.1511584222316742, 0.2361827939748764, -0.01322674099355936, 0.1908581405878067, -0.16761282086372375, -0.21955236792564392, -0.045350585132837296, 0.20433706045150757, 0.4012792706489563, -0.40899795293807983, 0.3997134566307068, -0.28524211049079895, -0.13945505023002625, -0.07186439633369446, -0.0776420459151268, -0.18134818971157074, 0.069429412484169, 0.2999666929244995, 0.5419017672538757, 0.046525828540325165, -0.08112083375453949, 0.2424755096435547, 0.0005908064194954932, -0.09793422371149063, 0.053722083568573, -0.1687723994255066, 0.3281921148300171, 0.17872411012649536, 0.21423014998435974, -0.04935133829712868, 0.0002983800950460136, 0.04170382022857666, -0.03170821815729141, -0.08138857781887054, -0.31859639286994934, 0.4944084584712982, -0.03381288796663284, -0.2770272493362427, -0.4187677800655365, 0.07288524508476257, 0.2987625300884247, 0.29345712065696716, -0.7868752479553223, 0.02463514357805252, 0.20228548347949982, -0.17288760840892792, -0.039043862372636795, 0.38025155663490295, -0.17583905160427094, -0.1289604902267456, -0.12847845256328583, 0.23931679129600525, -0.02312106266617775, -0.27198171615600586, -0.2890627384185791, -0.3630928099155426 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
Hi! Sure, feel free to take this issue. You can self-assign the issue by commenting `#self-assign`. To answer your questions: 1. It makes the most sense to add each one as a separate config, so one dataset script with 10 configs in a single PR. 2. Just set masks in the test set to `None`. Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that).
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
111
Add The Medical Segmentation Decathlon Dataset
[ -0.25434890389442444, -0.04546111822128296, -0.29126402735710144, -0.11950332671403885, -0.011819361709058285, 0.18612736463546753, 0.3203352689743042, 0.3811970353126526, -0.41176244616508484, 0.2187877893447876, -0.030878517776727676, 0.05767698958516121, -0.16335734724998474, 0.2795214056968689, 0.33034437894821167, -0.24061384797096252, 0.0772189050912857, 0.2013186812400818, 0.001652929000556469, -0.27724024653434753, -0.11208955943584442, 0.021182727068662643, -0.28623107075691223, -0.27494949102401733, 0.09637144953012466, 0.12924474477767944, 0.10382622480392456, 0.3422517478466034, -0.21459440886974335, -0.6525454521179199, -0.23067891597747803, -0.14142650365829468, 0.008214708417654037, 0.1998293250799179, -0.0001086476695491001, -0.18943531811237335, -0.16514238715171814, -0.20256036520004272, -0.35557207465171814, 0.17582689225673676, -0.28342482447624207, -0.12633004784584045, -0.1297416239976883, -0.30209994316101074, -0.3275338113307953, -0.04023178294301033, -0.20963506400585175, -0.15725485980510712, 0.1267247200012207, 0.2827560305595398, 0.24214337766170502, -0.03943793103098869, -0.1535424143075943, -0.3203597068786621, -0.06137431785464287, 0.34262964129447937, -0.2772082984447479, 0.01761811412870884, 0.35840508341789246, 0.056441958993673325, 0.12173092365264893, 0.42878293991088867, 0.16005951166152954, 0.08181169629096985, 0.05997145548462868, -0.09111637622117996, 0.3315286934375763, -0.3299275040626526, 0.35096296668052673, 0.33801183104515076, 0.38806307315826416, -0.1310778558254242, -0.10761995613574982, 0.1767980307340622, 0.17887476086616516, -0.35386574268341064, -0.1332980990409851, 0.3189014494419098, -0.05059147998690605, 0.057806819677352905, -0.13269197940826416, -0.20873558521270752, -0.2907505929470062, -0.14402249455451965, -0.12852559983730316, 0.30255013704299927, 0.11054491996765137, -0.13786134123802185, 0.17061825096607208, 0.006726026069372892, 0.04568637162446976, 0.20472952723503113, 0.03774690628051758, 0.23184701800346375, -0.32538801431655884, -0.3763394057750702, -0.36880844831466675, -0.028123941272497177, 0.10935119539499283, 0.32251855731010437, 0.09112352132797241, -0.07352423667907715, 0.39987072348594666, -0.2615307867527008, 0.14578138291835785, -0.45173484086990356, -0.309070885181427, 0.4699864983558655, -0.2377493977546692, -0.16955192387104034, 0.04981347545981407, 0.19399680197238922, 0.03794240206480026, 0.20508579909801483, 0.03019828349351883, -0.07439322024583817, -0.22824440896511078, -0.19875884056091309, -0.1815725415945053, 0.1900085210800171, -0.09902121871709824, -0.021523479372262955, -0.3365723192691803, 0.41134676337242126, -0.007792762015014887, -0.21628621220588684, -0.2340007722377777, 0.23021292686462402, -0.06169333681464195, -0.03172722086310387, -0.26781123876571655, 0.21768751740455627, -0.06582088768482208, 0.09435972571372986, 0.25401413440704346, -0.1521131694316864, -0.022642944008111954, -0.1181257888674736, 0.028679102659225464, -0.03842124715447426, 0.0036350868176668882, 0.021676121279597282, 0.45617055892944336, 0.369211882352829, 0.17323340475559235, -0.04534091055393219, -0.11168523132801056, 0.17212222516536713, -0.04003915563225746, -0.019676240161061287, -0.3058798015117645, -0.26117604970932007, -0.654729962348938, 0.25148075819015503, -0.08133753389120102, -0.10218960046768188, 0.5365859866142273, 0.23505358397960663, 0.011592353694140911, -0.2487185001373291, 0.02047361433506012, 0.13871830701828003, -0.13039639592170715, -0.25733813643455505, 0.2875826060771942, 0.06294312328100204, -0.5791753530502319, -0.09156777709722519, -0.1835763156414032, 0.17449098825454712, 0.2619244158267975, 0.13477563858032227, -0.09400635957717896, 0.0424601174890995, -0.0735291913151741, 0.41316962242126465, 0.7374370694160461, -0.0320584811270237, -0.4215787649154663, -0.466396689414978, -0.16068284213542938, -0.2636265158653259, 0.23697778582572937, 0.25692278146743774, 0.25312313437461853, 0.013006173074245453, -0.10404946655035019, 0.08272545039653778, -0.20136316120624542, -0.02630745805799961, -0.06596382707357407, -0.18566100299358368, 0.1648796945810318, 0.40360283851623535, 0.4004881680011749, -0.023957207798957825, 0.4063475728034973, 0.2739262878894806, 0.3524184226989746, -0.01447158120572567, -0.16442939639091492, -0.08036798238754272, 0.17809566855430603, -0.12109991908073425, 0.24418790638446808, -0.1680525839328766, -0.11714810132980347, -0.38773685693740845, 0.19406017661094666, 0.34010049700737, -0.04886627569794655, -0.12583765387535095, -0.3460802137851715, -0.003369702259078622, -0.07685885578393936, 0.08926178514957428, 0.23522649705410004, 0.14135606586933136, 0.08702897280454636, -0.00578034482896328, -0.27294254302978516, -0.12811705470085144, 0.32339733839035034, 0.040808044373989105, -0.007625466678291559, 0.615304172039032, -0.18816308677196503, -0.3486330211162567, 0.19307155907154083, 0.4730207920074463, 0.06690946221351624, -0.12277159839868546, 0.1969042718410492, -0.09192252904176712, -0.005577664822340012, 0.07382811605930328, 0.34273967146873474, 0.4921637177467346, 0.08323179930448532, -0.531349778175354, 0.0775783583521843, -0.13474541902542114, 0.02356821671128273, 0.023052223026752472, -0.08012315630912781, 0.12356796115636826, 0.3161131739616394, -0.0600171722471714, -0.0004202327399980277, 0.1998688131570816, 0.02097918651998043, -0.10388839989900589, -0.007408358156681061, -0.10706206411123276, 0.09830854088068008, -0.00003093947088927962, -0.1218058243393898, -0.16297224164009094, -0.468074768781662, 0.20609913766384125, 0.44002076983451843, -0.19798719882965088, 0.13916702568531036, -0.23933827877044678, -0.3182256519794464, -0.04365010932087898, 0.15937426686286926, -0.22025026381015778, 0.09802509099245071, 0.24780212342739105, 0.14754600822925568, -0.008052988909184933, 0.04596753418445587, -0.2416888177394867, 0.0011836892226710916, 0.10117067396640778, -0.023791830986738205, 0.34313011169433594, 0.08782681822776794, 0.05185980349779129, -0.19380038976669312, 0.036062855273485184, -0.004490253049880266, 0.06524484604597092, -0.06309830397367477, 0.020503025501966476, 0.06463488936424255, -0.2394886165857315, 0.11624757945537567, -0.242259219288826, 0.036358729004859924, -0.12368425726890564, 0.2578687071800232, -0.2448989301919937, 0.10961452126502991, 0.1289302408695221, -0.28573742508888245, 0.5989081859588623, -0.040663618594408035, -0.04985547438263893, 0.10529213398694992, 0.014103071764111519, 0.22637727856636047, 0.29959145188331604, -0.13754868507385254, 0.17105615139007568, 0.3103089928627014, -0.19651666283607483, 0.15387172996997833, 0.023105287924408913, -0.27650660276412964, 0.13566449284553528, 0.10218830406665802, -0.07629407942295074, 0.053282480686903, 0.18749304115772247, -0.14533554017543793, -0.40246355533599854, -0.12649329006671906, 0.012454137206077576, 0.030900590121746063, 0.0807197242975235, -0.22769175469875336, 0.13180826604366302, -0.043079957365989685, -0.5471240878105164, -0.3492589592933655, -0.19484290480613708, -0.14216439425945282, 0.4337424337863922, 0.13283267617225647, -0.0026384007651358843, 0.034533217549324036, -0.11200915277004242, -0.09023096412420273, -0.03166498988866806, -0.33064278960227966, 0.09405074268579483, 0.3690578043460846, -0.29672619700431824, -0.24233457446098328, -0.10765834897756577, -0.2668437659740448, 0.5512785911560059, 0.08851107954978943, -0.4276615381240845, 0.16359609365463257, 0.15961763262748718, -0.13650283217430115, -0.2266196608543396, 0.007337711285799742, 0.28505274653434753, -0.08372344821691513, -0.14038856327533722, -0.08382823318243027, 0.11052802950143814, 0.2158009111881256, 0.21853876113891602, -0.01705080084502697, -0.5569109916687012, 0.037288401275873184, 0.2040281891822815, 0.8591933250427246, 0.217731773853302, -0.07645300030708313, 0.05205976963043213, -0.02095547690987587, 0.0671294778585434, 0.10540930926799774, -0.11123188585042953, 0.4647722840309143, 0.31196409463882446, 0.26004549860954285, 0.35983145236968994, 0.013875236734747887, -0.34821492433547974, 0.07091151922941208, 0.272527813911438, -0.5509577393531799, -0.16247722506523132, 0.1638154685497284, 0.12005208432674408, 0.20985279977321625, -0.03288010507822037, -0.013844684697687626, -0.18982233107089996, -0.2404697984457016, 0.15734973549842834, 0.44980689883232117, 0.14470922946929932, 0.05196138471364975, -0.415205180644989, -0.11876656115055084, -0.19288529455661774, 0.20799989998340607, 0.030642352998256683, -0.005594757851213217, -0.42725473642349243, -0.15680943429470062, 0.16104918718338013, -0.024365616962313652, -0.07937400043010712, -0.3663758337497711, 0.1284056305885315, 0.1589398831129074, 0.004738406278192997, 0.2962169647216797, 0.051572710275650024, -0.15574605762958527, -0.14163966476917267, 0.5091166496276855, 0.14338518679141998, -0.18737244606018066, 0.11910659074783325, 0.6549932360649109, 0.09617764502763748, -0.1014295220375061, -0.16768303513526917, 0.14658914506435394, -0.1582922637462616, -0.2212575078010559, 0.09224230796098709, -0.07844352722167969, 0.23842746019363403, 0.14029556512832642, -0.37081044912338257, -0.00781610980629921, -0.3196209669113159, 0.19071832299232483, 0.15035706758499146, -0.05268055945634842, 0.1724298894405365, 0.021096674725413322, 0.33905187249183655, -0.1478249430656433, 0.41579824686050415, 0.4216550886631012, 0.06000850722193718, -0.0706011950969696, 0.3368685841560364, -0.21035529673099518, 0.3639995753765106, 0.30851441621780396, 0.13946183025836945, 0.16190999746322632, 0.04038204625248909, 0.0005784383392892778, -0.2993205487728119, 0.13685253262519836, 0.07074388116598129, -0.3030284345149994, -0.3838235139846802, -0.4366626739501953, 0.11120244115591049, -0.0269714817404747, -0.07882584631443024, -0.043168164789676666, 0.37573862075805664, -0.06209474802017212, 0.20306523144245148, 0.23294733464717865, 1.1297907829284668, -0.08642680197954178, 0.10070037841796875, 0.020083654671907425, 0.047687649726867676, 0.07238022238016129, -0.4370860457420349, -0.029975229874253273, -0.4612502157688141, -0.22786502540111542, -0.07707051187753677, -0.11001773178577423, 0.10796485841274261, 0.13573633134365082, -0.1406397521495819, 0.05398566648364067, -0.0550825297832489, 0.13232800364494324, -0.09463995695114136, 0.372124582529068, 0.2183866947889328, -0.10323797911405563, 0.24698376655578613, 0.2230796068906784, -0.0007021581404842436, 0.013333160430192947, 0.11578323692083359, -0.16213862597942352, -0.14986470341682434, -0.03773568570613861, -0.2738756239414215, 0.11748521029949188, -0.12306207418441772, -0.18166133761405945, -0.2112620323896408, -0.597235381603241, 0.21513456106185913, -0.0392184816300869, 0.29828330874443054, 0.11421104520559311, -0.12248869240283966, 0.2597409784793854, 0.10779929906129837, -0.17243416607379913, -0.09630999714136124, 0.04472641274333, 0.4332447946071625, -0.3113739788532257, -0.07844407111406326, 0.4121844172477722, 0.2649793326854706, -0.3988531827926636, -0.07179250568151474, 0.03811357170343399, 0.12312009185552597, -0.22337652742862701, 0.28186145424842834, 0.23068557679653168, -0.17387697100639343, -0.12757600843906403, 0.20258933305740356, 0.1519891619682312, -0.15882867574691772, 0.22276875376701355, 0.3647995889186859, -0.1179695799946785, -0.3036644756793976, 0.011820119805634022, 0.3929334878921509, -0.03740645572543144, 0.2610156834125519, -0.0976511612534523, -0.17432239651679993, -0.5528002977371216, -0.3178579807281494, 0.32781144976615906, -0.18060335516929626, -0.21552149951457977, -0.13948418200016022, -0.19445058703422546, 0.258187472820282, 0.2696900963783264, 0.08710067719221115, -0.06803452223539352, -0.433403879404068, -0.20336627960205078, -0.1047806367278099, 0.21625016629695892, -0.2562139928340912, 0.27400246262550354, 0.1820797324180603, 0.33683109283447266, -0.14081299304962158, 0.34165555238723755, -0.46177050471305847, -0.017870981246232986, -0.07758862525224686, 0.165223628282547, -0.23351232707500458, -0.23075933754444122, -0.10238157957792282, 0.025231018662452698, 0.2087053656578064, 0.029542377218604088, -0.3645484745502472, -0.31175151467323303, -0.024404920637607574, 0.07707937061786652, 0.08874978125095367, -0.19298233091831207, -0.18831706047058105, -0.07264692336320877, -0.22268719971179962, 0.17755506932735443, 0.054998598992824554, -0.44316479563713074, 0.19393010437488556, 0.06385745853185654, 0.2897097170352936, -0.242259681224823, 0.1603306531906128, 0.22479082643985748, -0.04634357988834381, 0.11584246903657913, 0.014108661562204361, 0.22493472695350647, -0.0997547060251236, -0.11871085315942764, 0.049152057617902756, 0.4007452130317688, 0.09926272183656693, 0.04159967601299286, 0.24331992864608765, -0.11555398255586624, -0.22768212854862213, -0.09378108382225037, 0.045839034020900726, -0.02810628153383732, -0.26780036091804504, 0.22556059062480927, -0.06516987085342407, 0.27988529205322266, -0.22382502257823944, -0.25057095289230347, -0.1211966872215271, 0.07110753655433655, 0.13860782980918884, 0.418642520904541, 0.6505960822105408, 0.13564234972000122, -0.0068098148331046104, -0.1034310907125473, 0.16730105876922607, 0.020463110879063606, 0.32112014293670654, 0.5246184468269348, -0.12323308736085892, -0.043429311364889145, -0.11584734916687012, 0.021494129672646523, -0.14200547337532043, 0.24704496562480927, -0.030881764367222786, 0.29644712805747986, 0.4337192475795746, -0.49498194456100464, 0.09896352887153625, 0.23507265746593475, 0.008731570094823837, 0.06904729455709457, -0.09636928141117096, 0.13735808432102203, 0.3129609525203705, -0.16252389550209045, 0.04985816031694412, -0.3429727554321289, -0.2975119948387146, -0.06445097923278809, -0.06549254059791565, 0.24579091370105743, -0.019040700048208237, -0.09807159751653671, -0.15502609312534332, -0.051697988063097, -0.04866202175617218, -0.2513750195503235, 0.25911930203437805, -0.15603959560394287, 0.07613877952098846, 0.31668728590011597, -0.14169716835021973, 0.4991302490234375, 0.05385226011276245, -0.1595512181520462, 0.04902763292193413, 0.20360355079174042, 0.06727008521556854, 0.333652138710022, 0.06808549910783768, 0.2764514982700348, -0.2833555042743683, -0.023394640535116196, -0.18873800337314606, 0.10576078295707703, -0.23496536910533905, 0.06719563901424408, 0.1134614422917366, 0.10289398580789566, 0.22624637186527252, 0.2745983898639679, 0.26048243045806885, -0.2105271965265274, -0.2226196527481079, 0.20539453625679016, 0.10260152816772461, -0.24790459871292114, -0.00942525826394558, 0.03663288801908493, -0.2695435881614685, -0.19486546516418457, -0.05041593313217163, -0.05341467633843422, 0.06279180943965912, -0.010015686973929405, -0.026486104354262352, 0.10893392562866211, -0.01883280836045742, 0.10190653055906296, 0.013768085278570652, 0.4661697447299957, 0.10107903182506561, 0.02148675173521042, -0.07183510065078735, -0.506820023059845, -0.177907332777977, -0.07875654101371765, -0.015624512918293476, 0.0312812365591526, 0.15336649119853973, 0.2895081341266632, 0.2607946991920471, 0.30219176411628723, 0.17250238358974457, 0.09900923073291779, 0.19222930073738098, 0.3067600429058075, -0.2165914624929428, 0.04312950000166893, 0.14626862108707428, 0.22203849256038666, -0.2528635263442993, 0.1511584222316742, 0.2361827939748764, -0.01322674099355936, 0.1908581405878067, -0.16761282086372375, -0.21955236792564392, -0.045350585132837296, 0.20433706045150757, 0.4012792706489563, -0.40899795293807983, 0.3997134566307068, -0.28524211049079895, -0.13945505023002625, -0.07186439633369446, -0.0776420459151268, -0.18134818971157074, 0.069429412484169, 0.2999666929244995, 0.5419017672538757, 0.046525828540325165, -0.08112083375453949, 0.2424755096435547, 0.0005908064194954932, -0.09793422371149063, 0.053722083568573, -0.1687723994255066, 0.3281921148300171, 0.17872411012649536, 0.21423014998435974, -0.04935133829712868, 0.0002983800950460136, 0.04170382022857666, -0.03170821815729141, -0.08138857781887054, -0.31859639286994934, 0.4944084584712982, -0.03381288796663284, -0.2770272493362427, -0.4187677800655365, 0.07288524508476257, 0.2987625300884247, 0.29345712065696716, -0.7868752479553223, 0.02463514357805252, 0.20228548347949982, -0.17288760840892792, -0.039043862372636795, 0.38025155663490295, -0.17583905160427094, -0.1289604902267456, -0.12847845256328583, 0.23931679129600525, -0.02312106266617775, -0.27198171615600586, -0.2890627384185791, -0.3630928099155426 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
> Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that). Gotcha, thanks. Will start working on the issue and let you know in case of any doubt.
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
74
Add The Medical Segmentation Decathlon Dataset
[ -0.25434890389442444, -0.04546111822128296, -0.29126402735710144, -0.11950332671403885, -0.011819361709058285, 0.18612736463546753, 0.3203352689743042, 0.3811970353126526, -0.41176244616508484, 0.2187877893447876, -0.030878517776727676, 0.05767698958516121, -0.16335734724998474, 0.2795214056968689, 0.33034437894821167, -0.24061384797096252, 0.0772189050912857, 0.2013186812400818, 0.001652929000556469, -0.27724024653434753, -0.11208955943584442, 0.021182727068662643, -0.28623107075691223, -0.27494949102401733, 0.09637144953012466, 0.12924474477767944, 0.10382622480392456, 0.3422517478466034, -0.21459440886974335, -0.6525454521179199, -0.23067891597747803, -0.14142650365829468, 0.008214708417654037, 0.1998293250799179, -0.0001086476695491001, -0.18943531811237335, -0.16514238715171814, -0.20256036520004272, -0.35557207465171814, 0.17582689225673676, -0.28342482447624207, -0.12633004784584045, -0.1297416239976883, -0.30209994316101074, -0.3275338113307953, -0.04023178294301033, -0.20963506400585175, -0.15725485980510712, 0.1267247200012207, 0.2827560305595398, 0.24214337766170502, -0.03943793103098869, -0.1535424143075943, -0.3203597068786621, -0.06137431785464287, 0.34262964129447937, -0.2772082984447479, 0.01761811412870884, 0.35840508341789246, 0.056441958993673325, 0.12173092365264893, 0.42878293991088867, 0.16005951166152954, 0.08181169629096985, 0.05997145548462868, -0.09111637622117996, 0.3315286934375763, -0.3299275040626526, 0.35096296668052673, 0.33801183104515076, 0.38806307315826416, -0.1310778558254242, -0.10761995613574982, 0.1767980307340622, 0.17887476086616516, -0.35386574268341064, -0.1332980990409851, 0.3189014494419098, -0.05059147998690605, 0.057806819677352905, -0.13269197940826416, -0.20873558521270752, -0.2907505929470062, -0.14402249455451965, -0.12852559983730316, 0.30255013704299927, 0.11054491996765137, -0.13786134123802185, 0.17061825096607208, 0.006726026069372892, 0.04568637162446976, 0.20472952723503113, 0.03774690628051758, 0.23184701800346375, -0.32538801431655884, -0.3763394057750702, -0.36880844831466675, -0.028123941272497177, 0.10935119539499283, 0.32251855731010437, 0.09112352132797241, -0.07352423667907715, 0.39987072348594666, -0.2615307867527008, 0.14578138291835785, -0.45173484086990356, -0.309070885181427, 0.4699864983558655, -0.2377493977546692, -0.16955192387104034, 0.04981347545981407, 0.19399680197238922, 0.03794240206480026, 0.20508579909801483, 0.03019828349351883, -0.07439322024583817, -0.22824440896511078, -0.19875884056091309, -0.1815725415945053, 0.1900085210800171, -0.09902121871709824, -0.021523479372262955, -0.3365723192691803, 0.41134676337242126, -0.007792762015014887, -0.21628621220588684, -0.2340007722377777, 0.23021292686462402, -0.06169333681464195, -0.03172722086310387, -0.26781123876571655, 0.21768751740455627, -0.06582088768482208, 0.09435972571372986, 0.25401413440704346, -0.1521131694316864, -0.022642944008111954, -0.1181257888674736, 0.028679102659225464, -0.03842124715447426, 0.0036350868176668882, 0.021676121279597282, 0.45617055892944336, 0.369211882352829, 0.17323340475559235, -0.04534091055393219, -0.11168523132801056, 0.17212222516536713, -0.04003915563225746, -0.019676240161061287, -0.3058798015117645, -0.26117604970932007, -0.654729962348938, 0.25148075819015503, -0.08133753389120102, -0.10218960046768188, 0.5365859866142273, 0.23505358397960663, 0.011592353694140911, -0.2487185001373291, 0.02047361433506012, 0.13871830701828003, -0.13039639592170715, -0.25733813643455505, 0.2875826060771942, 0.06294312328100204, -0.5791753530502319, -0.09156777709722519, -0.1835763156414032, 0.17449098825454712, 0.2619244158267975, 0.13477563858032227, -0.09400635957717896, 0.0424601174890995, -0.0735291913151741, 0.41316962242126465, 0.7374370694160461, -0.0320584811270237, -0.4215787649154663, -0.466396689414978, -0.16068284213542938, -0.2636265158653259, 0.23697778582572937, 0.25692278146743774, 0.25312313437461853, 0.013006173074245453, -0.10404946655035019, 0.08272545039653778, -0.20136316120624542, -0.02630745805799961, -0.06596382707357407, -0.18566100299358368, 0.1648796945810318, 0.40360283851623535, 0.4004881680011749, -0.023957207798957825, 0.4063475728034973, 0.2739262878894806, 0.3524184226989746, -0.01447158120572567, -0.16442939639091492, -0.08036798238754272, 0.17809566855430603, -0.12109991908073425, 0.24418790638446808, -0.1680525839328766, -0.11714810132980347, -0.38773685693740845, 0.19406017661094666, 0.34010049700737, -0.04886627569794655, -0.12583765387535095, -0.3460802137851715, -0.003369702259078622, -0.07685885578393936, 0.08926178514957428, 0.23522649705410004, 0.14135606586933136, 0.08702897280454636, -0.00578034482896328, -0.27294254302978516, -0.12811705470085144, 0.32339733839035034, 0.040808044373989105, -0.007625466678291559, 0.615304172039032, -0.18816308677196503, -0.3486330211162567, 0.19307155907154083, 0.4730207920074463, 0.06690946221351624, -0.12277159839868546, 0.1969042718410492, -0.09192252904176712, -0.005577664822340012, 0.07382811605930328, 0.34273967146873474, 0.4921637177467346, 0.08323179930448532, -0.531349778175354, 0.0775783583521843, -0.13474541902542114, 0.02356821671128273, 0.023052223026752472, -0.08012315630912781, 0.12356796115636826, 0.3161131739616394, -0.0600171722471714, -0.0004202327399980277, 0.1998688131570816, 0.02097918651998043, -0.10388839989900589, -0.007408358156681061, -0.10706206411123276, 0.09830854088068008, -0.00003093947088927962, -0.1218058243393898, -0.16297224164009094, -0.468074768781662, 0.20609913766384125, 0.44002076983451843, -0.19798719882965088, 0.13916702568531036, -0.23933827877044678, -0.3182256519794464, -0.04365010932087898, 0.15937426686286926, -0.22025026381015778, 0.09802509099245071, 0.24780212342739105, 0.14754600822925568, -0.008052988909184933, 0.04596753418445587, -0.2416888177394867, 0.0011836892226710916, 0.10117067396640778, -0.023791830986738205, 0.34313011169433594, 0.08782681822776794, 0.05185980349779129, -0.19380038976669312, 0.036062855273485184, -0.004490253049880266, 0.06524484604597092, -0.06309830397367477, 0.020503025501966476, 0.06463488936424255, -0.2394886165857315, 0.11624757945537567, -0.242259219288826, 0.036358729004859924, -0.12368425726890564, 0.2578687071800232, -0.2448989301919937, 0.10961452126502991, 0.1289302408695221, -0.28573742508888245, 0.5989081859588623, -0.040663618594408035, -0.04985547438263893, 0.10529213398694992, 0.014103071764111519, 0.22637727856636047, 0.29959145188331604, -0.13754868507385254, 0.17105615139007568, 0.3103089928627014, -0.19651666283607483, 0.15387172996997833, 0.023105287924408913, -0.27650660276412964, 0.13566449284553528, 0.10218830406665802, -0.07629407942295074, 0.053282480686903, 0.18749304115772247, -0.14533554017543793, -0.40246355533599854, -0.12649329006671906, 0.012454137206077576, 0.030900590121746063, 0.0807197242975235, -0.22769175469875336, 0.13180826604366302, -0.043079957365989685, -0.5471240878105164, -0.3492589592933655, -0.19484290480613708, -0.14216439425945282, 0.4337424337863922, 0.13283267617225647, -0.0026384007651358843, 0.034533217549324036, -0.11200915277004242, -0.09023096412420273, -0.03166498988866806, -0.33064278960227966, 0.09405074268579483, 0.3690578043460846, -0.29672619700431824, -0.24233457446098328, -0.10765834897756577, -0.2668437659740448, 0.5512785911560059, 0.08851107954978943, -0.4276615381240845, 0.16359609365463257, 0.15961763262748718, -0.13650283217430115, -0.2266196608543396, 0.007337711285799742, 0.28505274653434753, -0.08372344821691513, -0.14038856327533722, -0.08382823318243027, 0.11052802950143814, 0.2158009111881256, 0.21853876113891602, -0.01705080084502697, -0.5569109916687012, 0.037288401275873184, 0.2040281891822815, 0.8591933250427246, 0.217731773853302, -0.07645300030708313, 0.05205976963043213, -0.02095547690987587, 0.0671294778585434, 0.10540930926799774, -0.11123188585042953, 0.4647722840309143, 0.31196409463882446, 0.26004549860954285, 0.35983145236968994, 0.013875236734747887, -0.34821492433547974, 0.07091151922941208, 0.272527813911438, -0.5509577393531799, -0.16247722506523132, 0.1638154685497284, 0.12005208432674408, 0.20985279977321625, -0.03288010507822037, -0.013844684697687626, -0.18982233107089996, -0.2404697984457016, 0.15734973549842834, 0.44980689883232117, 0.14470922946929932, 0.05196138471364975, -0.415205180644989, -0.11876656115055084, -0.19288529455661774, 0.20799989998340607, 0.030642352998256683, -0.005594757851213217, -0.42725473642349243, -0.15680943429470062, 0.16104918718338013, -0.024365616962313652, -0.07937400043010712, -0.3663758337497711, 0.1284056305885315, 0.1589398831129074, 0.004738406278192997, 0.2962169647216797, 0.051572710275650024, -0.15574605762958527, -0.14163966476917267, 0.5091166496276855, 0.14338518679141998, -0.18737244606018066, 0.11910659074783325, 0.6549932360649109, 0.09617764502763748, -0.1014295220375061, -0.16768303513526917, 0.14658914506435394, -0.1582922637462616, -0.2212575078010559, 0.09224230796098709, -0.07844352722167969, 0.23842746019363403, 0.14029556512832642, -0.37081044912338257, -0.00781610980629921, -0.3196209669113159, 0.19071832299232483, 0.15035706758499146, -0.05268055945634842, 0.1724298894405365, 0.021096674725413322, 0.33905187249183655, -0.1478249430656433, 0.41579824686050415, 0.4216550886631012, 0.06000850722193718, -0.0706011950969696, 0.3368685841560364, -0.21035529673099518, 0.3639995753765106, 0.30851441621780396, 0.13946183025836945, 0.16190999746322632, 0.04038204625248909, 0.0005784383392892778, -0.2993205487728119, 0.13685253262519836, 0.07074388116598129, -0.3030284345149994, -0.3838235139846802, -0.4366626739501953, 0.11120244115591049, -0.0269714817404747, -0.07882584631443024, -0.043168164789676666, 0.37573862075805664, -0.06209474802017212, 0.20306523144245148, 0.23294733464717865, 1.1297907829284668, -0.08642680197954178, 0.10070037841796875, 0.020083654671907425, 0.047687649726867676, 0.07238022238016129, -0.4370860457420349, -0.029975229874253273, -0.4612502157688141, -0.22786502540111542, -0.07707051187753677, -0.11001773178577423, 0.10796485841274261, 0.13573633134365082, -0.1406397521495819, 0.05398566648364067, -0.0550825297832489, 0.13232800364494324, -0.09463995695114136, 0.372124582529068, 0.2183866947889328, -0.10323797911405563, 0.24698376655578613, 0.2230796068906784, -0.0007021581404842436, 0.013333160430192947, 0.11578323692083359, -0.16213862597942352, -0.14986470341682434, -0.03773568570613861, -0.2738756239414215, 0.11748521029949188, -0.12306207418441772, -0.18166133761405945, -0.2112620323896408, -0.597235381603241, 0.21513456106185913, -0.0392184816300869, 0.29828330874443054, 0.11421104520559311, -0.12248869240283966, 0.2597409784793854, 0.10779929906129837, -0.17243416607379913, -0.09630999714136124, 0.04472641274333, 0.4332447946071625, -0.3113739788532257, -0.07844407111406326, 0.4121844172477722, 0.2649793326854706, -0.3988531827926636, -0.07179250568151474, 0.03811357170343399, 0.12312009185552597, -0.22337652742862701, 0.28186145424842834, 0.23068557679653168, -0.17387697100639343, -0.12757600843906403, 0.20258933305740356, 0.1519891619682312, -0.15882867574691772, 0.22276875376701355, 0.3647995889186859, -0.1179695799946785, -0.3036644756793976, 0.011820119805634022, 0.3929334878921509, -0.03740645572543144, 0.2610156834125519, -0.0976511612534523, -0.17432239651679993, -0.5528002977371216, -0.3178579807281494, 0.32781144976615906, -0.18060335516929626, -0.21552149951457977, -0.13948418200016022, -0.19445058703422546, 0.258187472820282, 0.2696900963783264, 0.08710067719221115, -0.06803452223539352, -0.433403879404068, -0.20336627960205078, -0.1047806367278099, 0.21625016629695892, -0.2562139928340912, 0.27400246262550354, 0.1820797324180603, 0.33683109283447266, -0.14081299304962158, 0.34165555238723755, -0.46177050471305847, -0.017870981246232986, -0.07758862525224686, 0.165223628282547, -0.23351232707500458, -0.23075933754444122, -0.10238157957792282, 0.025231018662452698, 0.2087053656578064, 0.029542377218604088, -0.3645484745502472, -0.31175151467323303, -0.024404920637607574, 0.07707937061786652, 0.08874978125095367, -0.19298233091831207, -0.18831706047058105, -0.07264692336320877, -0.22268719971179962, 0.17755506932735443, 0.054998598992824554, -0.44316479563713074, 0.19393010437488556, 0.06385745853185654, 0.2897097170352936, -0.242259681224823, 0.1603306531906128, 0.22479082643985748, -0.04634357988834381, 0.11584246903657913, 0.014108661562204361, 0.22493472695350647, -0.0997547060251236, -0.11871085315942764, 0.049152057617902756, 0.4007452130317688, 0.09926272183656693, 0.04159967601299286, 0.24331992864608765, -0.11555398255586624, -0.22768212854862213, -0.09378108382225037, 0.045839034020900726, -0.02810628153383732, -0.26780036091804504, 0.22556059062480927, -0.06516987085342407, 0.27988529205322266, -0.22382502257823944, -0.25057095289230347, -0.1211966872215271, 0.07110753655433655, 0.13860782980918884, 0.418642520904541, 0.6505960822105408, 0.13564234972000122, -0.0068098148331046104, -0.1034310907125473, 0.16730105876922607, 0.020463110879063606, 0.32112014293670654, 0.5246184468269348, -0.12323308736085892, -0.043429311364889145, -0.11584734916687012, 0.021494129672646523, -0.14200547337532043, 0.24704496562480927, -0.030881764367222786, 0.29644712805747986, 0.4337192475795746, -0.49498194456100464, 0.09896352887153625, 0.23507265746593475, 0.008731570094823837, 0.06904729455709457, -0.09636928141117096, 0.13735808432102203, 0.3129609525203705, -0.16252389550209045, 0.04985816031694412, -0.3429727554321289, -0.2975119948387146, -0.06445097923278809, -0.06549254059791565, 0.24579091370105743, -0.019040700048208237, -0.09807159751653671, -0.15502609312534332, -0.051697988063097, -0.04866202175617218, -0.2513750195503235, 0.25911930203437805, -0.15603959560394287, 0.07613877952098846, 0.31668728590011597, -0.14169716835021973, 0.4991302490234375, 0.05385226011276245, -0.1595512181520462, 0.04902763292193413, 0.20360355079174042, 0.06727008521556854, 0.333652138710022, 0.06808549910783768, 0.2764514982700348, -0.2833555042743683, -0.023394640535116196, -0.18873800337314606, 0.10576078295707703, -0.23496536910533905, 0.06719563901424408, 0.1134614422917366, 0.10289398580789566, 0.22624637186527252, 0.2745983898639679, 0.26048243045806885, -0.2105271965265274, -0.2226196527481079, 0.20539453625679016, 0.10260152816772461, -0.24790459871292114, -0.00942525826394558, 0.03663288801908493, -0.2695435881614685, -0.19486546516418457, -0.05041593313217163, -0.05341467633843422, 0.06279180943965912, -0.010015686973929405, -0.026486104354262352, 0.10893392562866211, -0.01883280836045742, 0.10190653055906296, 0.013768085278570652, 0.4661697447299957, 0.10107903182506561, 0.02148675173521042, -0.07183510065078735, -0.506820023059845, -0.177907332777977, -0.07875654101371765, -0.015624512918293476, 0.0312812365591526, 0.15336649119853973, 0.2895081341266632, 0.2607946991920471, 0.30219176411628723, 0.17250238358974457, 0.09900923073291779, 0.19222930073738098, 0.3067600429058075, -0.2165914624929428, 0.04312950000166893, 0.14626862108707428, 0.22203849256038666, -0.2528635263442993, 0.1511584222316742, 0.2361827939748764, -0.01322674099355936, 0.1908581405878067, -0.16761282086372375, -0.21955236792564392, -0.045350585132837296, 0.20433706045150757, 0.4012792706489563, -0.40899795293807983, 0.3997134566307068, -0.28524211049079895, -0.13945505023002625, -0.07186439633369446, -0.0776420459151268, -0.18134818971157074, 0.069429412484169, 0.2999666929244995, 0.5419017672538757, 0.046525828540325165, -0.08112083375453949, 0.2424755096435547, 0.0005908064194954932, -0.09793422371149063, 0.053722083568573, -0.1687723994255066, 0.3281921148300171, 0.17872411012649536, 0.21423014998435974, -0.04935133829712868, 0.0002983800950460136, 0.04170382022857666, -0.03170821815729141, -0.08138857781887054, -0.31859639286994934, 0.4944084584712982, -0.03381288796663284, -0.2770272493362427, -0.4187677800655365, 0.07288524508476257, 0.2987625300884247, 0.29345712065696716, -0.7868752479553223, 0.02463514357805252, 0.20228548347949982, -0.17288760840892792, -0.039043862372636795, 0.38025155663490295, -0.17583905160427094, -0.1289604902267456, -0.12847845256328583, 0.23931679129600525, -0.02312106266617775, -0.27198171615600586, -0.2890627384185791, -0.3630928099155426 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
This is great! There is a first model on the HUb that uses this dataset! https://huggingface.co/MONAI/example_spleen_segmentation
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
16
Add The Medical Segmentation Decathlon Dataset
[ -0.25434890389442444, -0.04546111822128296, -0.29126402735710144, -0.11950332671403885, -0.011819361709058285, 0.18612736463546753, 0.3203352689743042, 0.3811970353126526, -0.41176244616508484, 0.2187877893447876, -0.030878517776727676, 0.05767698958516121, -0.16335734724998474, 0.2795214056968689, 0.33034437894821167, -0.24061384797096252, 0.0772189050912857, 0.2013186812400818, 0.001652929000556469, -0.27724024653434753, -0.11208955943584442, 0.021182727068662643, -0.28623107075691223, -0.27494949102401733, 0.09637144953012466, 0.12924474477767944, 0.10382622480392456, 0.3422517478466034, -0.21459440886974335, -0.6525454521179199, -0.23067891597747803, -0.14142650365829468, 0.008214708417654037, 0.1998293250799179, -0.0001086476695491001, -0.18943531811237335, -0.16514238715171814, -0.20256036520004272, -0.35557207465171814, 0.17582689225673676, -0.28342482447624207, -0.12633004784584045, -0.1297416239976883, -0.30209994316101074, -0.3275338113307953, -0.04023178294301033, -0.20963506400585175, -0.15725485980510712, 0.1267247200012207, 0.2827560305595398, 0.24214337766170502, -0.03943793103098869, -0.1535424143075943, -0.3203597068786621, -0.06137431785464287, 0.34262964129447937, -0.2772082984447479, 0.01761811412870884, 0.35840508341789246, 0.056441958993673325, 0.12173092365264893, 0.42878293991088867, 0.16005951166152954, 0.08181169629096985, 0.05997145548462868, -0.09111637622117996, 0.3315286934375763, -0.3299275040626526, 0.35096296668052673, 0.33801183104515076, 0.38806307315826416, -0.1310778558254242, -0.10761995613574982, 0.1767980307340622, 0.17887476086616516, -0.35386574268341064, -0.1332980990409851, 0.3189014494419098, -0.05059147998690605, 0.057806819677352905, -0.13269197940826416, -0.20873558521270752, -0.2907505929470062, -0.14402249455451965, -0.12852559983730316, 0.30255013704299927, 0.11054491996765137, -0.13786134123802185, 0.17061825096607208, 0.006726026069372892, 0.04568637162446976, 0.20472952723503113, 0.03774690628051758, 0.23184701800346375, -0.32538801431655884, -0.3763394057750702, -0.36880844831466675, -0.028123941272497177, 0.10935119539499283, 0.32251855731010437, 0.09112352132797241, -0.07352423667907715, 0.39987072348594666, -0.2615307867527008, 0.14578138291835785, -0.45173484086990356, -0.309070885181427, 0.4699864983558655, -0.2377493977546692, -0.16955192387104034, 0.04981347545981407, 0.19399680197238922, 0.03794240206480026, 0.20508579909801483, 0.03019828349351883, -0.07439322024583817, -0.22824440896511078, -0.19875884056091309, -0.1815725415945053, 0.1900085210800171, -0.09902121871709824, -0.021523479372262955, -0.3365723192691803, 0.41134676337242126, -0.007792762015014887, -0.21628621220588684, -0.2340007722377777, 0.23021292686462402, -0.06169333681464195, -0.03172722086310387, -0.26781123876571655, 0.21768751740455627, -0.06582088768482208, 0.09435972571372986, 0.25401413440704346, -0.1521131694316864, -0.022642944008111954, -0.1181257888674736, 0.028679102659225464, -0.03842124715447426, 0.0036350868176668882, 0.021676121279597282, 0.45617055892944336, 0.369211882352829, 0.17323340475559235, -0.04534091055393219, -0.11168523132801056, 0.17212222516536713, -0.04003915563225746, -0.019676240161061287, -0.3058798015117645, -0.26117604970932007, -0.654729962348938, 0.25148075819015503, -0.08133753389120102, -0.10218960046768188, 0.5365859866142273, 0.23505358397960663, 0.011592353694140911, -0.2487185001373291, 0.02047361433506012, 0.13871830701828003, -0.13039639592170715, -0.25733813643455505, 0.2875826060771942, 0.06294312328100204, -0.5791753530502319, -0.09156777709722519, -0.1835763156414032, 0.17449098825454712, 0.2619244158267975, 0.13477563858032227, -0.09400635957717896, 0.0424601174890995, -0.0735291913151741, 0.41316962242126465, 0.7374370694160461, -0.0320584811270237, -0.4215787649154663, -0.466396689414978, -0.16068284213542938, -0.2636265158653259, 0.23697778582572937, 0.25692278146743774, 0.25312313437461853, 0.013006173074245453, -0.10404946655035019, 0.08272545039653778, -0.20136316120624542, -0.02630745805799961, -0.06596382707357407, -0.18566100299358368, 0.1648796945810318, 0.40360283851623535, 0.4004881680011749, -0.023957207798957825, 0.4063475728034973, 0.2739262878894806, 0.3524184226989746, -0.01447158120572567, -0.16442939639091492, -0.08036798238754272, 0.17809566855430603, -0.12109991908073425, 0.24418790638446808, -0.1680525839328766, -0.11714810132980347, -0.38773685693740845, 0.19406017661094666, 0.34010049700737, -0.04886627569794655, -0.12583765387535095, -0.3460802137851715, -0.003369702259078622, -0.07685885578393936, 0.08926178514957428, 0.23522649705410004, 0.14135606586933136, 0.08702897280454636, -0.00578034482896328, -0.27294254302978516, -0.12811705470085144, 0.32339733839035034, 0.040808044373989105, -0.007625466678291559, 0.615304172039032, -0.18816308677196503, -0.3486330211162567, 0.19307155907154083, 0.4730207920074463, 0.06690946221351624, -0.12277159839868546, 0.1969042718410492, -0.09192252904176712, -0.005577664822340012, 0.07382811605930328, 0.34273967146873474, 0.4921637177467346, 0.08323179930448532, -0.531349778175354, 0.0775783583521843, -0.13474541902542114, 0.02356821671128273, 0.023052223026752472, -0.08012315630912781, 0.12356796115636826, 0.3161131739616394, -0.0600171722471714, -0.0004202327399980277, 0.1998688131570816, 0.02097918651998043, -0.10388839989900589, -0.007408358156681061, -0.10706206411123276, 0.09830854088068008, -0.00003093947088927962, -0.1218058243393898, -0.16297224164009094, -0.468074768781662, 0.20609913766384125, 0.44002076983451843, -0.19798719882965088, 0.13916702568531036, -0.23933827877044678, -0.3182256519794464, -0.04365010932087898, 0.15937426686286926, -0.22025026381015778, 0.09802509099245071, 0.24780212342739105, 0.14754600822925568, -0.008052988909184933, 0.04596753418445587, -0.2416888177394867, 0.0011836892226710916, 0.10117067396640778, -0.023791830986738205, 0.34313011169433594, 0.08782681822776794, 0.05185980349779129, -0.19380038976669312, 0.036062855273485184, -0.004490253049880266, 0.06524484604597092, -0.06309830397367477, 0.020503025501966476, 0.06463488936424255, -0.2394886165857315, 0.11624757945537567, -0.242259219288826, 0.036358729004859924, -0.12368425726890564, 0.2578687071800232, -0.2448989301919937, 0.10961452126502991, 0.1289302408695221, -0.28573742508888245, 0.5989081859588623, -0.040663618594408035, -0.04985547438263893, 0.10529213398694992, 0.014103071764111519, 0.22637727856636047, 0.29959145188331604, -0.13754868507385254, 0.17105615139007568, 0.3103089928627014, -0.19651666283607483, 0.15387172996997833, 0.023105287924408913, -0.27650660276412964, 0.13566449284553528, 0.10218830406665802, -0.07629407942295074, 0.053282480686903, 0.18749304115772247, -0.14533554017543793, -0.40246355533599854, -0.12649329006671906, 0.012454137206077576, 0.030900590121746063, 0.0807197242975235, -0.22769175469875336, 0.13180826604366302, -0.043079957365989685, -0.5471240878105164, -0.3492589592933655, -0.19484290480613708, -0.14216439425945282, 0.4337424337863922, 0.13283267617225647, -0.0026384007651358843, 0.034533217549324036, -0.11200915277004242, -0.09023096412420273, -0.03166498988866806, -0.33064278960227966, 0.09405074268579483, 0.3690578043460846, -0.29672619700431824, -0.24233457446098328, -0.10765834897756577, -0.2668437659740448, 0.5512785911560059, 0.08851107954978943, -0.4276615381240845, 0.16359609365463257, 0.15961763262748718, -0.13650283217430115, -0.2266196608543396, 0.007337711285799742, 0.28505274653434753, -0.08372344821691513, -0.14038856327533722, -0.08382823318243027, 0.11052802950143814, 0.2158009111881256, 0.21853876113891602, -0.01705080084502697, -0.5569109916687012, 0.037288401275873184, 0.2040281891822815, 0.8591933250427246, 0.217731773853302, -0.07645300030708313, 0.05205976963043213, -0.02095547690987587, 0.0671294778585434, 0.10540930926799774, -0.11123188585042953, 0.4647722840309143, 0.31196409463882446, 0.26004549860954285, 0.35983145236968994, 0.013875236734747887, -0.34821492433547974, 0.07091151922941208, 0.272527813911438, -0.5509577393531799, -0.16247722506523132, 0.1638154685497284, 0.12005208432674408, 0.20985279977321625, -0.03288010507822037, -0.013844684697687626, -0.18982233107089996, -0.2404697984457016, 0.15734973549842834, 0.44980689883232117, 0.14470922946929932, 0.05196138471364975, -0.415205180644989, -0.11876656115055084, -0.19288529455661774, 0.20799989998340607, 0.030642352998256683, -0.005594757851213217, -0.42725473642349243, -0.15680943429470062, 0.16104918718338013, -0.024365616962313652, -0.07937400043010712, -0.3663758337497711, 0.1284056305885315, 0.1589398831129074, 0.004738406278192997, 0.2962169647216797, 0.051572710275650024, -0.15574605762958527, -0.14163966476917267, 0.5091166496276855, 0.14338518679141998, -0.18737244606018066, 0.11910659074783325, 0.6549932360649109, 0.09617764502763748, -0.1014295220375061, -0.16768303513526917, 0.14658914506435394, -0.1582922637462616, -0.2212575078010559, 0.09224230796098709, -0.07844352722167969, 0.23842746019363403, 0.14029556512832642, -0.37081044912338257, -0.00781610980629921, -0.3196209669113159, 0.19071832299232483, 0.15035706758499146, -0.05268055945634842, 0.1724298894405365, 0.021096674725413322, 0.33905187249183655, -0.1478249430656433, 0.41579824686050415, 0.4216550886631012, 0.06000850722193718, -0.0706011950969696, 0.3368685841560364, -0.21035529673099518, 0.3639995753765106, 0.30851441621780396, 0.13946183025836945, 0.16190999746322632, 0.04038204625248909, 0.0005784383392892778, -0.2993205487728119, 0.13685253262519836, 0.07074388116598129, -0.3030284345149994, -0.3838235139846802, -0.4366626739501953, 0.11120244115591049, -0.0269714817404747, -0.07882584631443024, -0.043168164789676666, 0.37573862075805664, -0.06209474802017212, 0.20306523144245148, 0.23294733464717865, 1.1297907829284668, -0.08642680197954178, 0.10070037841796875, 0.020083654671907425, 0.047687649726867676, 0.07238022238016129, -0.4370860457420349, -0.029975229874253273, -0.4612502157688141, -0.22786502540111542, -0.07707051187753677, -0.11001773178577423, 0.10796485841274261, 0.13573633134365082, -0.1406397521495819, 0.05398566648364067, -0.0550825297832489, 0.13232800364494324, -0.09463995695114136, 0.372124582529068, 0.2183866947889328, -0.10323797911405563, 0.24698376655578613, 0.2230796068906784, -0.0007021581404842436, 0.013333160430192947, 0.11578323692083359, -0.16213862597942352, -0.14986470341682434, -0.03773568570613861, -0.2738756239414215, 0.11748521029949188, -0.12306207418441772, -0.18166133761405945, -0.2112620323896408, -0.597235381603241, 0.21513456106185913, -0.0392184816300869, 0.29828330874443054, 0.11421104520559311, -0.12248869240283966, 0.2597409784793854, 0.10779929906129837, -0.17243416607379913, -0.09630999714136124, 0.04472641274333, 0.4332447946071625, -0.3113739788532257, -0.07844407111406326, 0.4121844172477722, 0.2649793326854706, -0.3988531827926636, -0.07179250568151474, 0.03811357170343399, 0.12312009185552597, -0.22337652742862701, 0.28186145424842834, 0.23068557679653168, -0.17387697100639343, -0.12757600843906403, 0.20258933305740356, 0.1519891619682312, -0.15882867574691772, 0.22276875376701355, 0.3647995889186859, -0.1179695799946785, -0.3036644756793976, 0.011820119805634022, 0.3929334878921509, -0.03740645572543144, 0.2610156834125519, -0.0976511612534523, -0.17432239651679993, -0.5528002977371216, -0.3178579807281494, 0.32781144976615906, -0.18060335516929626, -0.21552149951457977, -0.13948418200016022, -0.19445058703422546, 0.258187472820282, 0.2696900963783264, 0.08710067719221115, -0.06803452223539352, -0.433403879404068, -0.20336627960205078, -0.1047806367278099, 0.21625016629695892, -0.2562139928340912, 0.27400246262550354, 0.1820797324180603, 0.33683109283447266, -0.14081299304962158, 0.34165555238723755, -0.46177050471305847, -0.017870981246232986, -0.07758862525224686, 0.165223628282547, -0.23351232707500458, -0.23075933754444122, -0.10238157957792282, 0.025231018662452698, 0.2087053656578064, 0.029542377218604088, -0.3645484745502472, -0.31175151467323303, -0.024404920637607574, 0.07707937061786652, 0.08874978125095367, -0.19298233091831207, -0.18831706047058105, -0.07264692336320877, -0.22268719971179962, 0.17755506932735443, 0.054998598992824554, -0.44316479563713074, 0.19393010437488556, 0.06385745853185654, 0.2897097170352936, -0.242259681224823, 0.1603306531906128, 0.22479082643985748, -0.04634357988834381, 0.11584246903657913, 0.014108661562204361, 0.22493472695350647, -0.0997547060251236, -0.11871085315942764, 0.049152057617902756, 0.4007452130317688, 0.09926272183656693, 0.04159967601299286, 0.24331992864608765, -0.11555398255586624, -0.22768212854862213, -0.09378108382225037, 0.045839034020900726, -0.02810628153383732, -0.26780036091804504, 0.22556059062480927, -0.06516987085342407, 0.27988529205322266, -0.22382502257823944, -0.25057095289230347, -0.1211966872215271, 0.07110753655433655, 0.13860782980918884, 0.418642520904541, 0.6505960822105408, 0.13564234972000122, -0.0068098148331046104, -0.1034310907125473, 0.16730105876922607, 0.020463110879063606, 0.32112014293670654, 0.5246184468269348, -0.12323308736085892, -0.043429311364889145, -0.11584734916687012, 0.021494129672646523, -0.14200547337532043, 0.24704496562480927, -0.030881764367222786, 0.29644712805747986, 0.4337192475795746, -0.49498194456100464, 0.09896352887153625, 0.23507265746593475, 0.008731570094823837, 0.06904729455709457, -0.09636928141117096, 0.13735808432102203, 0.3129609525203705, -0.16252389550209045, 0.04985816031694412, -0.3429727554321289, -0.2975119948387146, -0.06445097923278809, -0.06549254059791565, 0.24579091370105743, -0.019040700048208237, -0.09807159751653671, -0.15502609312534332, -0.051697988063097, -0.04866202175617218, -0.2513750195503235, 0.25911930203437805, -0.15603959560394287, 0.07613877952098846, 0.31668728590011597, -0.14169716835021973, 0.4991302490234375, 0.05385226011276245, -0.1595512181520462, 0.04902763292193413, 0.20360355079174042, 0.06727008521556854, 0.333652138710022, 0.06808549910783768, 0.2764514982700348, -0.2833555042743683, -0.023394640535116196, -0.18873800337314606, 0.10576078295707703, -0.23496536910533905, 0.06719563901424408, 0.1134614422917366, 0.10289398580789566, 0.22624637186527252, 0.2745983898639679, 0.26048243045806885, -0.2105271965265274, -0.2226196527481079, 0.20539453625679016, 0.10260152816772461, -0.24790459871292114, -0.00942525826394558, 0.03663288801908493, -0.2695435881614685, -0.19486546516418457, -0.05041593313217163, -0.05341467633843422, 0.06279180943965912, -0.010015686973929405, -0.026486104354262352, 0.10893392562866211, -0.01883280836045742, 0.10190653055906296, 0.013768085278570652, 0.4661697447299957, 0.10107903182506561, 0.02148675173521042, -0.07183510065078735, -0.506820023059845, -0.177907332777977, -0.07875654101371765, -0.015624512918293476, 0.0312812365591526, 0.15336649119853973, 0.2895081341266632, 0.2607946991920471, 0.30219176411628723, 0.17250238358974457, 0.09900923073291779, 0.19222930073738098, 0.3067600429058075, -0.2165914624929428, 0.04312950000166893, 0.14626862108707428, 0.22203849256038666, -0.2528635263442993, 0.1511584222316742, 0.2361827939748764, -0.01322674099355936, 0.1908581405878067, -0.16761282086372375, -0.21955236792564392, -0.045350585132837296, 0.20433706045150757, 0.4012792706489563, -0.40899795293807983, 0.3997134566307068, -0.28524211049079895, -0.13945505023002625, -0.07186439633369446, -0.0776420459151268, -0.18134818971157074, 0.069429412484169, 0.2999666929244995, 0.5419017672538757, 0.046525828540325165, -0.08112083375453949, 0.2424755096435547, 0.0005908064194954932, -0.09793422371149063, 0.053722083568573, -0.1687723994255066, 0.3281921148300171, 0.17872411012649536, 0.21423014998435974, -0.04935133829712868, 0.0002983800950460136, 0.04170382022857666, -0.03170821815729141, -0.08138857781887054, -0.31859639286994934, 0.4944084584712982, -0.03381288796663284, -0.2770272493362427, -0.4187677800655365, 0.07288524508476257, 0.2987625300884247, 0.29345712065696716, -0.7868752479553223, 0.02463514357805252, 0.20228548347949982, -0.17288760840892792, -0.039043862372636795, 0.38025155663490295, -0.17583905160427094, -0.1289604902267456, -0.12847845256328583, 0.23931679129600525, -0.02312106266617775, -0.27198171615600586, -0.2890627384185791, -0.3630928099155426 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Thanks for reporting ! I pushed a temporary fix on `master` that uses an URL from a previous commit to access the dataset for now, until we have a better solution
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
31
conll 2003 dataset source url is no longer valid
[ -0.2817074954509735, 0.3248070478439331, -0.00945182517170906, -0.04499819874763489, -0.12123390287160873, -0.08518344163894653, 0.3864741921424866, 0.002551503712311387, -0.7450023293495178, -0.13230639696121216, -0.08228202909231186, 0.14503897726535797, 0.10700909793376923, 0.1315167099237442, -0.18558363616466522, 0.49657776951789856, -0.12510134279727936, 0.01789056323468685, -0.017554571852087975, -0.12895958125591278, -0.3243786692619324, 0.1826307326555252, -0.2997956871986389, 0.07483343780040741, -0.42000630497932434, 0.02471247687935829, 0.09737436473369598, 0.19565723836421967, -0.236439511179924, -0.19039306044578552, 0.2234945297241211, 0.10382026433944702, 0.04883761703968048, -0.04204055294394493, -0.00010694623051676899, 0.034115131944417953, 0.30580082535743713, 0.006751699838787317, -0.4849247634410858, 0.22373329102993011, -0.6334680318832397, 0.17338606715202332, -0.0065767234191298485, -0.00807653833180666, -0.0712839663028717, 0.13767103850841522, -0.14702139794826508, 0.14585036039352417, 0.06364639848470688, 0.6782534122467041, 0.3048066198825836, 0.17799194157123566, 0.2158195823431015, -0.1614052951335907, 0.3501799702644348, -0.21340890228748322, 0.11910033971071243, 0.3875751793384552, 0.06752292811870575, -0.060620248317718506, 0.10601910948753357, 0.25796961784362793, 0.11961707472801208, -0.20759670436382294, -0.01145471353083849, -0.0231865756213665, -0.2478603571653366, 0.08476439863443375, 0.18245242536067963, 0.006998896133154631, 0.511846661567688, 0.016365554183721542, -0.32067450881004333, 0.2411525994539261, 0.015600132755935192, -0.19525443017482758, 0.2897627651691437, 0.0524604357779026, 0.10860075801610947, 0.3511998951435089, -0.08094154298305511, -0.3764619529247284, -0.1886242926120758, 0.12204539775848389, -0.499702513217926, 0.6808240413665771, -0.08302250504493713, -0.01892966218292713, 0.10646936297416687, 0.02617785334587097, 0.7953618764877319, 0.20677150785923004, -0.00035387364914640784, -0.17825612425804138, 0.03879085183143616, -0.22758305072784424, 0.019365448504686356, 0.17389324307441711, -0.03472748026251793, -0.010763648897409439, 0.012343755923211575, -0.17047955095767975, -0.35344451665878296, -0.03641819581389427, 0.0765341967344284, 0.033709004521369934, -0.06819705665111542, 0.2621423900127411, 0.3995135426521301, 0.10736754536628723, 0.093656525015831, -0.011358989402651787, 0.04884534329175949, -0.33004945516586304, -0.26632919907569885, 0.011178586632013321, 0.08688289672136307, -0.31881746649742126, -0.3670276701450348, 0.09662536531686783, 0.11346513032913208, 0.036370810121297836, 0.0665053129196167, 0.31587767601013184, -0.01297746505588293, 0.11425995081663132, 0.08401226252317429, 0.11893300712108612, 0.1686621457338333, -0.3932904303073883, -0.10880306363105774, -0.0740901380777359, -0.05298883840441704, -0.4305112957954407, 0.04754575714468956, 0.010231859982013702, 0.17595331370830536, 0.13627555966377258, -0.3891344964504242, 0.02728448435664177, -0.22532542049884796, 0.054305076599121094, 0.22048419713974, 0.06267981231212616, -0.02161695435643196, 0.010432850569486618, 0.0138469859957695, -0.03995312377810478, -0.02207843028008938, 0.07223567366600037, -0.46256348490715027, -0.31070730090141296, -0.5116788744926453, 0.2472122609615326, 0.12379680573940277, -0.28828001022338867, 0.5121811628341675, -0.2083456665277481, -0.167106032371521, -0.15726250410079956, -0.17471270263195038, -0.1547217071056366, -0.11720260977745056, -0.09920959174633026, 0.16648180782794952, 0.3249754011631012, -0.14119155704975128, 0.15438583493232727, -0.00602645194157958, -0.03553306683897972, 0.019600246101617813, 0.1227099597454071, -0.38008350133895874, 0.004291899502277374, -0.19854168593883514, -0.2353789210319519, 0.2733183205127716, -0.2596902847290039, -0.38507670164108276, 0.15953604876995087, -0.0697290226817131, -0.4205268323421478, -0.24469134211540222, -0.04081163927912712, 0.1622932404279709, -0.07647430896759033, 0.29021167755126953, 0.10167328268289566, 0.38095149397850037, -0.09808335453271866, -0.3455757796764374, -0.1507125198841095, -0.4740360677242279, -0.1169389933347702, 0.02983945794403553, 0.33660706877708435, 0.2871807813644409, 0.11054438352584839, 0.18004824221134186, 0.032201796770095825, -0.007930733263492584, 0.4143022298812866, 0.3862844705581665, -0.03134645149111748, -0.2519547641277313, 0.2708725333213806, -0.21379858255386353, -0.11669519543647766, 0.08540796488523483, 0.18144163489341736, -0.10271269828081131, -0.06612487882375717, -0.4374316930770874, 0.2388070970773697, -0.013188096694648266, -0.04533899202942848, 0.17652295529842377, 0.2331245243549347, -0.03081217035651207, 0.326463520526886, -0.12488153576850891, 0.1079075038433075, 0.15246812999248505, -0.05643603205680847, 0.06574889272451401, 0.15841130912303925, -0.11857345700263977, -0.05520237237215042, 0.29706114530563354, 0.04628100246191025, 0.32720237970352173, 0.02911076694726944, -0.0863492488861084, 0.5719228982925415, 0.06998041272163391, 0.13404691219329834, 0.31256386637687683, -0.0661853477358818, 0.2979390323162079, -0.1734291911125183, -0.003491821698844433, -0.12141681462526321, -0.1109643429517746, 0.4202499985694885, 0.05638589337468147, 0.023067213594913483, 0.18751737475395203, -0.2673247456550598, 0.24848240613937378, 0.3293568193912506, 0.42209646105766296, -0.26326319575309753, 0.19672034680843353, -0.45497390627861023, -0.18580299615859985, 0.3919382095336914, -0.10061895847320557, 0.3253158926963806, -0.34085118770599365, 0.14457662403583527, 0.17196272313594818, -0.058044373989105225, -0.01729508861899376, 0.17515817284584045, -0.20612415671348572, -0.11374152451753616, 0.11798499524593353, 0.7190247774124146, -0.01861194707453251, 0.03198515623807907, 0.09146270900964737, 0.06160692870616913, -0.4258471429347992, -0.33553218841552734, 0.3011032044887543, -0.18898354470729828, 0.21321074664592743, 0.11776266992092133, 0.13908632099628448, -0.07946261018514633, -0.289788156747818, -0.08767404407262802, 0.08784063160419464, 0.12820948660373688, -0.3338698744773865, 0.04015953466296196, -0.536593496799469, -0.04248964414000511, -0.2240448147058487, -0.03879253566265106, -0.264753133058548, -0.4469197690486908, 0.15770988166332245, 0.1980264037847519, -0.11039749532938004, 0.12199085205793381, -0.33426037430763245, 0.2111932635307312, 0.03306266665458679, 0.08882409334182739, 0.08451800048351288, -0.3925483226776123, -0.25115567445755005, 0.1347397118806839, -0.07706402987241745, -0.0929333046078682, -0.08182436972856522, -0.4842635989189148, -0.04540621489286423, -0.5208210945129395, -0.10481318086385727, 0.2654861807823181, 0.365025132894516, 0.27271702885627747, 0.1331583708524704, 0.04922451078891754, -0.14177702367305756, -0.18513400852680206, 0.08352431654930115, 0.13332360982894897, 0.21343670785427094, -0.005168036557734013, -0.042671144008636475, 0.08857320249080658, -0.012352765537798405, -0.2240993082523346, -0.03770621865987778, -0.090809665620327, -0.4736917316913605, -0.27506011724472046, -0.07651565968990326, 0.20243299007415771, 0.2168721854686737, -0.0848882868885994, -0.018731404095888138, 0.045743606984615326, -0.3781853914260864, -0.19702912867069244, 0.43821433186531067, -0.2855968177318573, -0.411140114068985, -0.09966309368610382, 0.07347872853279114, 0.2655012905597687, 0.266116738319397, -0.3544003963470459, -0.17006976902484894, -0.00465548736974597, -0.05987292528152466, -0.010614318773150444, -0.09754616767168045, 0.12046454101800919, 0.09311605244874954, -0.22957368195056915, -0.17324958741664886, -0.050892215222120285, 0.09198925644159317, -0.1014675572514534, 0.5540027618408203, 0.19442668557167053, 0.1834062784910202, 0.05385475233197212, 0.4854261875152588, -0.12013959884643555, -0.33904382586479187, 0.42066073417663574, -0.21690014004707336, 0.5057191252708435, 0.3042955994606018, -0.0968540608882904, 0.05308027192950249, 0.09422779828310013, 0.003063530195504427, 0.00017804627714212984, 0.04468990117311478, -0.00810931995511055, -0.15340662002563477, 0.18008819222450256, -0.4644331932067871, -0.3127829432487488, -0.3689796030521393, 0.23197534680366516, 0.6943620443344116, 0.3169688582420349, 0.016678586602211, -0.001983845140784979, -0.07916857302188873, 0.13030607998371124, 0.012599609792232513, 0.1484457105398178, -0.3363165557384491, -0.13374063372612, 0.18266937136650085, -0.2148372232913971, 0.3480679988861084, -0.1558336764574051, 0.49262943863868713, -0.07725585997104645, -0.057155169546604156, 0.007717331405729055, 0.025822194293141365, 0.6036132574081421, -0.34381458163261414, 0.27481091022491455, 0.018277937546372414, 0.3713470697402954, -0.11348620802164078, 0.019011471420526505, -0.005131784826517105, -0.2674611508846283, 0.6512150168418884, 0.33180105686187744, -0.12384015321731567, -0.1164219006896019, 0.4286883473396301, -0.28281480073928833, -0.09246589988470078, 0.24993588030338287, -0.21297000348567963, -0.5011613368988037, -0.04273498058319092, -0.24443461000919342, -0.038707245141267776, 0.0003072214894928038, 0.03723357617855072, -0.014317153953015804, -0.0397617481648922, -0.28796249628067017, -0.20870721340179443, 0.1633031964302063, 0.28704655170440674, 0.3092706501483917, -0.10477519035339355, 0.04213165119290352, 0.4423319399356842, 0.2717258632183075, 0.3449755311012268, -0.1861974447965622, -0.28168871998786926, 0.19920186698436737, 0.060917336493730545, 0.28277891874313354, 0.276254266500473, -0.08576730638742447, -0.17635886371135712, 0.08619280159473419, -0.10422074794769287, 0.12574900686740875, 0.23521491885185242, 0.35880860686302185, -0.09810274839401245, -0.18594515323638916, -0.04443124309182167, 0.01156377512961626, 0.012775866314768791, -0.09693033248186111, -0.20524649322032928, -0.045579396188259125, 0.0069171651266515255, -0.06860120594501495, 0.2036350518465042, 0.6786640286445618, -0.02585388347506523, -0.009334309957921505, 0.24570491909980774, -0.284273624420166, 0.09378395229578018, 0.2529810070991516, 0.18567673861980438, -0.15497009456157684, -0.10899999737739563, -0.10567117482423782, -0.08774348348379135, -0.16396646201610565, 0.055066414177417755, 0.10318976640701294, -0.020055361092090607, -0.04701811820268631, 0.11897820979356766, 0.34633395075798035, 0.31776881217956543, 0.013026171363890171, 0.27239951491355896, -0.008178260177373886, 0.21425434947013855, 0.07861582189798355, 0.10344704985618591, -0.12722907960414886, -0.13154256343841553, 0.08525435626506805, -0.24107515811920166, -0.1684737354516983, 0.20787134766578674, -0.21884070336818695, 0.21786008775234222, 0.021600231528282166, -0.46725910902023315, -0.22102385759353638, 0.29223376512527466, 0.10461091250181198, 0.1705138385295868, -0.22131483256816864, 0.4063745439052582, 0.12476427853107452, -0.19028551876544952, 0.14838044345378876, 0.21810299158096313, -0.010295229963958263, -0.24858354032039642, -0.21588225662708282, 0.3110769987106323, 0.1355922520160675, -0.4224214553833008, 0.30350592732429504, -0.11142156273126602, -0.23241043090820312, -0.12248265743255615, 0.16414347290992737, 0.14877474308013916, 0.1989748179912567, -0.4251740574836731, 0.18060921132564545, -0.23687706887722015, 0.32266148924827576, -0.2371135652065277, -0.0899580717086792, -0.3048660457134247, -0.17586234211921692, 0.25114214420318604, -0.25282004475593567, 0.3409295082092285, 0.18928542733192444, -0.08339203894138336, 0.019903337582945824, -0.2720509469509125, 0.11790361255407333, -0.5939001441001892, -0.32194221019744873, 0.2540663778781891, -0.07348383963108063, -0.09758268296718597, -0.17459461092948914, 0.20135457813739777, 0.046193379908800125, 0.53619384765625, -0.024164404720067978, -0.21490849554538727, 0.12196838110685349, 0.08918316662311554, -0.17149466276168823, 0.06721047312021255, -0.11059684306383133, 0.26433253288269043, 0.05446365103125572, -0.41827458143234253, -0.39401301741600037, 0.1918877512216568, -0.2047356516122818, 0.04089133441448212, -0.3063419759273529, -0.16103225946426392, 0.13553665578365326, -0.09393856674432755, 0.18000762164592743, -0.2709919810295105, 0.09561532735824585, -0.1882515251636505, -0.19080258905887604, 0.05682077258825302, 0.15724152326583862, -0.31370702385902405, -0.27697640657424927, -0.4237823784351349, -0.28057509660720825, 0.16405396163463593, -0.3203345835208893, 0.18177220225334167, 0.029145708307623863, 0.17110374569892883, -0.41494202613830566, -0.06334526836872101, 0.24188029766082764, 0.05918305367231369, 0.1489686816930771, 0.3923451900482178, 0.10801713913679123, 0.33133649826049805, -0.20116786658763885, 0.02884204126894474, -0.06642770022153854, 0.06795147061347961, -0.2497931569814682, 0.0017088362947106361, 0.16841314733028412, -0.15683424472808838, -0.24058210849761963, 0.3201541006565094, 0.29711881279945374, 0.04144664481282234, -0.1887761354446411, -0.22083014249801636, 0.23324310779571533, 0.21835733950138092, -0.3332248032093048, -0.14986178278923035, -0.2689236104488373, -0.0018931907834485173, 0.03182140737771988, -0.08888429403305054, 0.2037799209356308, -0.19949889183044434, 0.18255749344825745, 0.21252696216106415, 0.15336266160011292, 0.18136583268642426, 0.18797390162944794, 0.2147950828075409, 0.00899119395762682, 0.35487329959869385, 0.29240119457244873, -0.06767759472131729, 0.06454924494028091, -0.002809705678373575, 0.2578962743282318, -0.15851356089115143, 0.010522156953811646, 0.16984468698501587, 0.16787420213222504, -0.18798001110553741, 0.14718186855316162, -0.04502510279417038, -0.0965266227722168, 0.06711818277835846, -0.025572041049599648, 0.1040935069322586, -0.17075037956237793, 0.012733693234622478, -0.44958680868148804, 0.4069257974624634, -0.06364111602306366, -0.21089567244052887, -0.2788930833339691, -0.232728973031044, 0.13576827943325043, 0.21177592873573303, -0.09635399281978607, -0.07050621509552002, -0.030487680807709694, -0.08931763470172882, -0.1255052536725998, -0.380349725484848, 0.4664453864097595, -0.033523380756378174, 0.1915610134601593, 0.0104874512180686, 0.105141781270504, -0.13870058953762054, 0.025006117299199104, 0.22894322872161865, 0.4814006984233856, 0.2599702775478363, 0.19395993649959564, 0.3029431700706482, -0.2197113037109375, -0.015962697565555573, -0.06527633219957352, -0.050663452595472336, 0.170413076877594, 0.31400561332702637, -0.017260273918509483, 0.5584930777549744, 0.27037665247917175, -0.1660662144422531, 0.04336157441139221, -0.031004933640360832, 0.43957558274269104, 0.04893072322010994, 0.15455400943756104, 0.05521247535943985, -0.06287205219268799, -0.06841549277305603, 0.056236885488033295, -0.15860313177108765, 0.23985064029693604, 0.3649187982082367, -0.21985945105552673, 0.21866798400878906, -0.18212862312793732, 0.11704004555940628, 0.12036591023206711, 0.3333421051502228, 0.39678141474723816, 0.18740180134773254, -0.00645409943535924, -0.6302580237388611, -0.6233664155006409, 0.22379356622695923, -0.17825348675251007, -0.13507305085659027, -0.0402800589799881, -0.031381797045469284, -0.15702301263809204, 0.11662072688341141, 0.07992005348205566, -0.027200445532798767, -0.3382476270198822, -0.11746847629547119, -0.23063142597675323, 0.12121233344078064, 0.014589316211640835, 0.3349228501319885, -0.11647330969572067, -0.30592021346092224, 0.2679775059223175, -0.04053527116775513, 0.16562406718730927, 0.0841938704252243, -0.121118925511837, -0.1272619217634201, 0.05715596675872803, 0.33549773693084717, 0.2675974667072296, 0.13636991381645203, -0.17716622352600098, -0.041116196662187576, -0.41027572751045227, -0.29741743206977844, 0.12307097762823105, -0.10980541259050369, -0.01350659690797329, -0.17597725987434387, 0.16064372658729553, 0.16091445088386536, -0.15516597032546997, 0.3823259770870209, 0.0987410694360733, 0.13426253199577332, -0.16090553998947144, 0.04778782278299332, 0.03739103302359581, -0.16276095807552338, 0.10889077186584473, 0.08237677067518234, -0.15940341353416443, -0.010362538509070873, -0.033585075289011, -0.35203316807746887, 0.16199329495429993, -0.06365090608596802, -0.02936328575015068, -0.21210740506649017, 0.3104572594165802, -0.029942339286208153, 0.13463906943798065, 0.01900855451822281, 0.027143357321619987, 0.38030001521110535, 0.19798730313777924, -0.20943136513233185, 0.14630618691444397, 0.1625472754240036, -0.14969603717327118, 0.127195343375206, 0.5011720061302185, 0.24324271082878113, -0.683090329170227, -0.08995711803436279, 0.1577524095773697 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
I changed the URL again to use another host, the fix is available on `master` and we'll probably do a new release of `datasets` tomorrow. In the meantime, feel free to do `load_dataset(..., revision="master")` to use the fixed script
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
39
conll 2003 dataset source url is no longer valid
[ -0.2817074954509735, 0.3248070478439331, -0.00945182517170906, -0.04499819874763489, -0.12123390287160873, -0.08518344163894653, 0.3864741921424866, 0.002551503712311387, -0.7450023293495178, -0.13230639696121216, -0.08228202909231186, 0.14503897726535797, 0.10700909793376923, 0.1315167099237442, -0.18558363616466522, 0.49657776951789856, -0.12510134279727936, 0.01789056323468685, -0.017554571852087975, -0.12895958125591278, -0.3243786692619324, 0.1826307326555252, -0.2997956871986389, 0.07483343780040741, -0.42000630497932434, 0.02471247687935829, 0.09737436473369598, 0.19565723836421967, -0.236439511179924, -0.19039306044578552, 0.2234945297241211, 0.10382026433944702, 0.04883761703968048, -0.04204055294394493, -0.00010694623051676899, 0.034115131944417953, 0.30580082535743713, 0.006751699838787317, -0.4849247634410858, 0.22373329102993011, -0.6334680318832397, 0.17338606715202332, -0.0065767234191298485, -0.00807653833180666, -0.0712839663028717, 0.13767103850841522, -0.14702139794826508, 0.14585036039352417, 0.06364639848470688, 0.6782534122467041, 0.3048066198825836, 0.17799194157123566, 0.2158195823431015, -0.1614052951335907, 0.3501799702644348, -0.21340890228748322, 0.11910033971071243, 0.3875751793384552, 0.06752292811870575, -0.060620248317718506, 0.10601910948753357, 0.25796961784362793, 0.11961707472801208, -0.20759670436382294, -0.01145471353083849, -0.0231865756213665, -0.2478603571653366, 0.08476439863443375, 0.18245242536067963, 0.006998896133154631, 0.511846661567688, 0.016365554183721542, -0.32067450881004333, 0.2411525994539261, 0.015600132755935192, -0.19525443017482758, 0.2897627651691437, 0.0524604357779026, 0.10860075801610947, 0.3511998951435089, -0.08094154298305511, -0.3764619529247284, -0.1886242926120758, 0.12204539775848389, -0.499702513217926, 0.6808240413665771, -0.08302250504493713, -0.01892966218292713, 0.10646936297416687, 0.02617785334587097, 0.7953618764877319, 0.20677150785923004, -0.00035387364914640784, -0.17825612425804138, 0.03879085183143616, -0.22758305072784424, 0.019365448504686356, 0.17389324307441711, -0.03472748026251793, -0.010763648897409439, 0.012343755923211575, -0.17047955095767975, -0.35344451665878296, -0.03641819581389427, 0.0765341967344284, 0.033709004521369934, -0.06819705665111542, 0.2621423900127411, 0.3995135426521301, 0.10736754536628723, 0.093656525015831, -0.011358989402651787, 0.04884534329175949, -0.33004945516586304, -0.26632919907569885, 0.011178586632013321, 0.08688289672136307, -0.31881746649742126, -0.3670276701450348, 0.09662536531686783, 0.11346513032913208, 0.036370810121297836, 0.0665053129196167, 0.31587767601013184, -0.01297746505588293, 0.11425995081663132, 0.08401226252317429, 0.11893300712108612, 0.1686621457338333, -0.3932904303073883, -0.10880306363105774, -0.0740901380777359, -0.05298883840441704, -0.4305112957954407, 0.04754575714468956, 0.010231859982013702, 0.17595331370830536, 0.13627555966377258, -0.3891344964504242, 0.02728448435664177, -0.22532542049884796, 0.054305076599121094, 0.22048419713974, 0.06267981231212616, -0.02161695435643196, 0.010432850569486618, 0.0138469859957695, -0.03995312377810478, -0.02207843028008938, 0.07223567366600037, -0.46256348490715027, -0.31070730090141296, -0.5116788744926453, 0.2472122609615326, 0.12379680573940277, -0.28828001022338867, 0.5121811628341675, -0.2083456665277481, -0.167106032371521, -0.15726250410079956, -0.17471270263195038, -0.1547217071056366, -0.11720260977745056, -0.09920959174633026, 0.16648180782794952, 0.3249754011631012, -0.14119155704975128, 0.15438583493232727, -0.00602645194157958, -0.03553306683897972, 0.019600246101617813, 0.1227099597454071, -0.38008350133895874, 0.004291899502277374, -0.19854168593883514, -0.2353789210319519, 0.2733183205127716, -0.2596902847290039, -0.38507670164108276, 0.15953604876995087, -0.0697290226817131, -0.4205268323421478, -0.24469134211540222, -0.04081163927912712, 0.1622932404279709, -0.07647430896759033, 0.29021167755126953, 0.10167328268289566, 0.38095149397850037, -0.09808335453271866, -0.3455757796764374, -0.1507125198841095, -0.4740360677242279, -0.1169389933347702, 0.02983945794403553, 0.33660706877708435, 0.2871807813644409, 0.11054438352584839, 0.18004824221134186, 0.032201796770095825, -0.007930733263492584, 0.4143022298812866, 0.3862844705581665, -0.03134645149111748, -0.2519547641277313, 0.2708725333213806, -0.21379858255386353, -0.11669519543647766, 0.08540796488523483, 0.18144163489341736, -0.10271269828081131, -0.06612487882375717, -0.4374316930770874, 0.2388070970773697, -0.013188096694648266, -0.04533899202942848, 0.17652295529842377, 0.2331245243549347, -0.03081217035651207, 0.326463520526886, -0.12488153576850891, 0.1079075038433075, 0.15246812999248505, -0.05643603205680847, 0.06574889272451401, 0.15841130912303925, -0.11857345700263977, -0.05520237237215042, 0.29706114530563354, 0.04628100246191025, 0.32720237970352173, 0.02911076694726944, -0.0863492488861084, 0.5719228982925415, 0.06998041272163391, 0.13404691219329834, 0.31256386637687683, -0.0661853477358818, 0.2979390323162079, -0.1734291911125183, -0.003491821698844433, -0.12141681462526321, -0.1109643429517746, 0.4202499985694885, 0.05638589337468147, 0.023067213594913483, 0.18751737475395203, -0.2673247456550598, 0.24848240613937378, 0.3293568193912506, 0.42209646105766296, -0.26326319575309753, 0.19672034680843353, -0.45497390627861023, -0.18580299615859985, 0.3919382095336914, -0.10061895847320557, 0.3253158926963806, -0.34085118770599365, 0.14457662403583527, 0.17196272313594818, -0.058044373989105225, -0.01729508861899376, 0.17515817284584045, -0.20612415671348572, -0.11374152451753616, 0.11798499524593353, 0.7190247774124146, -0.01861194707453251, 0.03198515623807907, 0.09146270900964737, 0.06160692870616913, -0.4258471429347992, -0.33553218841552734, 0.3011032044887543, -0.18898354470729828, 0.21321074664592743, 0.11776266992092133, 0.13908632099628448, -0.07946261018514633, -0.289788156747818, -0.08767404407262802, 0.08784063160419464, 0.12820948660373688, -0.3338698744773865, 0.04015953466296196, -0.536593496799469, -0.04248964414000511, -0.2240448147058487, -0.03879253566265106, -0.264753133058548, -0.4469197690486908, 0.15770988166332245, 0.1980264037847519, -0.11039749532938004, 0.12199085205793381, -0.33426037430763245, 0.2111932635307312, 0.03306266665458679, 0.08882409334182739, 0.08451800048351288, -0.3925483226776123, -0.25115567445755005, 0.1347397118806839, -0.07706402987241745, -0.0929333046078682, -0.08182436972856522, -0.4842635989189148, -0.04540621489286423, -0.5208210945129395, -0.10481318086385727, 0.2654861807823181, 0.365025132894516, 0.27271702885627747, 0.1331583708524704, 0.04922451078891754, -0.14177702367305756, -0.18513400852680206, 0.08352431654930115, 0.13332360982894897, 0.21343670785427094, -0.005168036557734013, -0.042671144008636475, 0.08857320249080658, -0.012352765537798405, -0.2240993082523346, -0.03770621865987778, -0.090809665620327, -0.4736917316913605, -0.27506011724472046, -0.07651565968990326, 0.20243299007415771, 0.2168721854686737, -0.0848882868885994, -0.018731404095888138, 0.045743606984615326, -0.3781853914260864, -0.19702912867069244, 0.43821433186531067, -0.2855968177318573, -0.411140114068985, -0.09966309368610382, 0.07347872853279114, 0.2655012905597687, 0.266116738319397, -0.3544003963470459, -0.17006976902484894, -0.00465548736974597, -0.05987292528152466, -0.010614318773150444, -0.09754616767168045, 0.12046454101800919, 0.09311605244874954, -0.22957368195056915, -0.17324958741664886, -0.050892215222120285, 0.09198925644159317, -0.1014675572514534, 0.5540027618408203, 0.19442668557167053, 0.1834062784910202, 0.05385475233197212, 0.4854261875152588, -0.12013959884643555, -0.33904382586479187, 0.42066073417663574, -0.21690014004707336, 0.5057191252708435, 0.3042955994606018, -0.0968540608882904, 0.05308027192950249, 0.09422779828310013, 0.003063530195504427, 0.00017804627714212984, 0.04468990117311478, -0.00810931995511055, -0.15340662002563477, 0.18008819222450256, -0.4644331932067871, -0.3127829432487488, -0.3689796030521393, 0.23197534680366516, 0.6943620443344116, 0.3169688582420349, 0.016678586602211, -0.001983845140784979, -0.07916857302188873, 0.13030607998371124, 0.012599609792232513, 0.1484457105398178, -0.3363165557384491, -0.13374063372612, 0.18266937136650085, -0.2148372232913971, 0.3480679988861084, -0.1558336764574051, 0.49262943863868713, -0.07725585997104645, -0.057155169546604156, 0.007717331405729055, 0.025822194293141365, 0.6036132574081421, -0.34381458163261414, 0.27481091022491455, 0.018277937546372414, 0.3713470697402954, -0.11348620802164078, 0.019011471420526505, -0.005131784826517105, -0.2674611508846283, 0.6512150168418884, 0.33180105686187744, -0.12384015321731567, -0.1164219006896019, 0.4286883473396301, -0.28281480073928833, -0.09246589988470078, 0.24993588030338287, -0.21297000348567963, -0.5011613368988037, -0.04273498058319092, -0.24443461000919342, -0.038707245141267776, 0.0003072214894928038, 0.03723357617855072, -0.014317153953015804, -0.0397617481648922, -0.28796249628067017, -0.20870721340179443, 0.1633031964302063, 0.28704655170440674, 0.3092706501483917, -0.10477519035339355, 0.04213165119290352, 0.4423319399356842, 0.2717258632183075, 0.3449755311012268, -0.1861974447965622, -0.28168871998786926, 0.19920186698436737, 0.060917336493730545, 0.28277891874313354, 0.276254266500473, -0.08576730638742447, -0.17635886371135712, 0.08619280159473419, -0.10422074794769287, 0.12574900686740875, 0.23521491885185242, 0.35880860686302185, -0.09810274839401245, -0.18594515323638916, -0.04443124309182167, 0.01156377512961626, 0.012775866314768791, -0.09693033248186111, -0.20524649322032928, -0.045579396188259125, 0.0069171651266515255, -0.06860120594501495, 0.2036350518465042, 0.6786640286445618, -0.02585388347506523, -0.009334309957921505, 0.24570491909980774, -0.284273624420166, 0.09378395229578018, 0.2529810070991516, 0.18567673861980438, -0.15497009456157684, -0.10899999737739563, -0.10567117482423782, -0.08774348348379135, -0.16396646201610565, 0.055066414177417755, 0.10318976640701294, -0.020055361092090607, -0.04701811820268631, 0.11897820979356766, 0.34633395075798035, 0.31776881217956543, 0.013026171363890171, 0.27239951491355896, -0.008178260177373886, 0.21425434947013855, 0.07861582189798355, 0.10344704985618591, -0.12722907960414886, -0.13154256343841553, 0.08525435626506805, -0.24107515811920166, -0.1684737354516983, 0.20787134766578674, -0.21884070336818695, 0.21786008775234222, 0.021600231528282166, -0.46725910902023315, -0.22102385759353638, 0.29223376512527466, 0.10461091250181198, 0.1705138385295868, -0.22131483256816864, 0.4063745439052582, 0.12476427853107452, -0.19028551876544952, 0.14838044345378876, 0.21810299158096313, -0.010295229963958263, -0.24858354032039642, -0.21588225662708282, 0.3110769987106323, 0.1355922520160675, -0.4224214553833008, 0.30350592732429504, -0.11142156273126602, -0.23241043090820312, -0.12248265743255615, 0.16414347290992737, 0.14877474308013916, 0.1989748179912567, -0.4251740574836731, 0.18060921132564545, -0.23687706887722015, 0.32266148924827576, -0.2371135652065277, -0.0899580717086792, -0.3048660457134247, -0.17586234211921692, 0.25114214420318604, -0.25282004475593567, 0.3409295082092285, 0.18928542733192444, -0.08339203894138336, 0.019903337582945824, -0.2720509469509125, 0.11790361255407333, -0.5939001441001892, -0.32194221019744873, 0.2540663778781891, -0.07348383963108063, -0.09758268296718597, -0.17459461092948914, 0.20135457813739777, 0.046193379908800125, 0.53619384765625, -0.024164404720067978, -0.21490849554538727, 0.12196838110685349, 0.08918316662311554, -0.17149466276168823, 0.06721047312021255, -0.11059684306383133, 0.26433253288269043, 0.05446365103125572, -0.41827458143234253, -0.39401301741600037, 0.1918877512216568, -0.2047356516122818, 0.04089133441448212, -0.3063419759273529, -0.16103225946426392, 0.13553665578365326, -0.09393856674432755, 0.18000762164592743, -0.2709919810295105, 0.09561532735824585, -0.1882515251636505, -0.19080258905887604, 0.05682077258825302, 0.15724152326583862, -0.31370702385902405, -0.27697640657424927, -0.4237823784351349, -0.28057509660720825, 0.16405396163463593, -0.3203345835208893, 0.18177220225334167, 0.029145708307623863, 0.17110374569892883, -0.41494202613830566, -0.06334526836872101, 0.24188029766082764, 0.05918305367231369, 0.1489686816930771, 0.3923451900482178, 0.10801713913679123, 0.33133649826049805, -0.20116786658763885, 0.02884204126894474, -0.06642770022153854, 0.06795147061347961, -0.2497931569814682, 0.0017088362947106361, 0.16841314733028412, -0.15683424472808838, -0.24058210849761963, 0.3201541006565094, 0.29711881279945374, 0.04144664481282234, -0.1887761354446411, -0.22083014249801636, 0.23324310779571533, 0.21835733950138092, -0.3332248032093048, -0.14986178278923035, -0.2689236104488373, -0.0018931907834485173, 0.03182140737771988, -0.08888429403305054, 0.2037799209356308, -0.19949889183044434, 0.18255749344825745, 0.21252696216106415, 0.15336266160011292, 0.18136583268642426, 0.18797390162944794, 0.2147950828075409, 0.00899119395762682, 0.35487329959869385, 0.29240119457244873, -0.06767759472131729, 0.06454924494028091, -0.002809705678373575, 0.2578962743282318, -0.15851356089115143, 0.010522156953811646, 0.16984468698501587, 0.16787420213222504, -0.18798001110553741, 0.14718186855316162, -0.04502510279417038, -0.0965266227722168, 0.06711818277835846, -0.025572041049599648, 0.1040935069322586, -0.17075037956237793, 0.012733693234622478, -0.44958680868148804, 0.4069257974624634, -0.06364111602306366, -0.21089567244052887, -0.2788930833339691, -0.232728973031044, 0.13576827943325043, 0.21177592873573303, -0.09635399281978607, -0.07050621509552002, -0.030487680807709694, -0.08931763470172882, -0.1255052536725998, -0.380349725484848, 0.4664453864097595, -0.033523380756378174, 0.1915610134601593, 0.0104874512180686, 0.105141781270504, -0.13870058953762054, 0.025006117299199104, 0.22894322872161865, 0.4814006984233856, 0.2599702775478363, 0.19395993649959564, 0.3029431700706482, -0.2197113037109375, -0.015962697565555573, -0.06527633219957352, -0.050663452595472336, 0.170413076877594, 0.31400561332702637, -0.017260273918509483, 0.5584930777549744, 0.27037665247917175, -0.1660662144422531, 0.04336157441139221, -0.031004933640360832, 0.43957558274269104, 0.04893072322010994, 0.15455400943756104, 0.05521247535943985, -0.06287205219268799, -0.06841549277305603, 0.056236885488033295, -0.15860313177108765, 0.23985064029693604, 0.3649187982082367, -0.21985945105552673, 0.21866798400878906, -0.18212862312793732, 0.11704004555940628, 0.12036591023206711, 0.3333421051502228, 0.39678141474723816, 0.18740180134773254, -0.00645409943535924, -0.6302580237388611, -0.6233664155006409, 0.22379356622695923, -0.17825348675251007, -0.13507305085659027, -0.0402800589799881, -0.031381797045469284, -0.15702301263809204, 0.11662072688341141, 0.07992005348205566, -0.027200445532798767, -0.3382476270198822, -0.11746847629547119, -0.23063142597675323, 0.12121233344078064, 0.014589316211640835, 0.3349228501319885, -0.11647330969572067, -0.30592021346092224, 0.2679775059223175, -0.04053527116775513, 0.16562406718730927, 0.0841938704252243, -0.121118925511837, -0.1272619217634201, 0.05715596675872803, 0.33549773693084717, 0.2675974667072296, 0.13636991381645203, -0.17716622352600098, -0.041116196662187576, -0.41027572751045227, -0.29741743206977844, 0.12307097762823105, -0.10980541259050369, -0.01350659690797329, -0.17597725987434387, 0.16064372658729553, 0.16091445088386536, -0.15516597032546997, 0.3823259770870209, 0.0987410694360733, 0.13426253199577332, -0.16090553998947144, 0.04778782278299332, 0.03739103302359581, -0.16276095807552338, 0.10889077186584473, 0.08237677067518234, -0.15940341353416443, -0.010362538509070873, -0.033585075289011, -0.35203316807746887, 0.16199329495429993, -0.06365090608596802, -0.02936328575015068, -0.21210740506649017, 0.3104572594165802, -0.029942339286208153, 0.13463906943798065, 0.01900855451822281, 0.027143357321619987, 0.38030001521110535, 0.19798730313777924, -0.20943136513233185, 0.14630618691444397, 0.1625472754240036, -0.14969603717327118, 0.127195343375206, 0.5011720061302185, 0.24324271082878113, -0.683090329170227, -0.08995711803436279, 0.1577524095773697 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
We just released a new version of `datasets` with a working URL. Feel free to update `datasets` and try again :)
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
21
conll 2003 dataset source url is no longer valid
[ -0.2817074954509735, 0.3248070478439331, -0.00945182517170906, -0.04499819874763489, -0.12123390287160873, -0.08518344163894653, 0.3864741921424866, 0.002551503712311387, -0.7450023293495178, -0.13230639696121216, -0.08228202909231186, 0.14503897726535797, 0.10700909793376923, 0.1315167099237442, -0.18558363616466522, 0.49657776951789856, -0.12510134279727936, 0.01789056323468685, -0.017554571852087975, -0.12895958125591278, -0.3243786692619324, 0.1826307326555252, -0.2997956871986389, 0.07483343780040741, -0.42000630497932434, 0.02471247687935829, 0.09737436473369598, 0.19565723836421967, -0.236439511179924, -0.19039306044578552, 0.2234945297241211, 0.10382026433944702, 0.04883761703968048, -0.04204055294394493, -0.00010694623051676899, 0.034115131944417953, 0.30580082535743713, 0.006751699838787317, -0.4849247634410858, 0.22373329102993011, -0.6334680318832397, 0.17338606715202332, -0.0065767234191298485, -0.00807653833180666, -0.0712839663028717, 0.13767103850841522, -0.14702139794826508, 0.14585036039352417, 0.06364639848470688, 0.6782534122467041, 0.3048066198825836, 0.17799194157123566, 0.2158195823431015, -0.1614052951335907, 0.3501799702644348, -0.21340890228748322, 0.11910033971071243, 0.3875751793384552, 0.06752292811870575, -0.060620248317718506, 0.10601910948753357, 0.25796961784362793, 0.11961707472801208, -0.20759670436382294, -0.01145471353083849, -0.0231865756213665, -0.2478603571653366, 0.08476439863443375, 0.18245242536067963, 0.006998896133154631, 0.511846661567688, 0.016365554183721542, -0.32067450881004333, 0.2411525994539261, 0.015600132755935192, -0.19525443017482758, 0.2897627651691437, 0.0524604357779026, 0.10860075801610947, 0.3511998951435089, -0.08094154298305511, -0.3764619529247284, -0.1886242926120758, 0.12204539775848389, -0.499702513217926, 0.6808240413665771, -0.08302250504493713, -0.01892966218292713, 0.10646936297416687, 0.02617785334587097, 0.7953618764877319, 0.20677150785923004, -0.00035387364914640784, -0.17825612425804138, 0.03879085183143616, -0.22758305072784424, 0.019365448504686356, 0.17389324307441711, -0.03472748026251793, -0.010763648897409439, 0.012343755923211575, -0.17047955095767975, -0.35344451665878296, -0.03641819581389427, 0.0765341967344284, 0.033709004521369934, -0.06819705665111542, 0.2621423900127411, 0.3995135426521301, 0.10736754536628723, 0.093656525015831, -0.011358989402651787, 0.04884534329175949, -0.33004945516586304, -0.26632919907569885, 0.011178586632013321, 0.08688289672136307, -0.31881746649742126, -0.3670276701450348, 0.09662536531686783, 0.11346513032913208, 0.036370810121297836, 0.0665053129196167, 0.31587767601013184, -0.01297746505588293, 0.11425995081663132, 0.08401226252317429, 0.11893300712108612, 0.1686621457338333, -0.3932904303073883, -0.10880306363105774, -0.0740901380777359, -0.05298883840441704, -0.4305112957954407, 0.04754575714468956, 0.010231859982013702, 0.17595331370830536, 0.13627555966377258, -0.3891344964504242, 0.02728448435664177, -0.22532542049884796, 0.054305076599121094, 0.22048419713974, 0.06267981231212616, -0.02161695435643196, 0.010432850569486618, 0.0138469859957695, -0.03995312377810478, -0.02207843028008938, 0.07223567366600037, -0.46256348490715027, -0.31070730090141296, -0.5116788744926453, 0.2472122609615326, 0.12379680573940277, -0.28828001022338867, 0.5121811628341675, -0.2083456665277481, -0.167106032371521, -0.15726250410079956, -0.17471270263195038, -0.1547217071056366, -0.11720260977745056, -0.09920959174633026, 0.16648180782794952, 0.3249754011631012, -0.14119155704975128, 0.15438583493232727, -0.00602645194157958, -0.03553306683897972, 0.019600246101617813, 0.1227099597454071, -0.38008350133895874, 0.004291899502277374, -0.19854168593883514, -0.2353789210319519, 0.2733183205127716, -0.2596902847290039, -0.38507670164108276, 0.15953604876995087, -0.0697290226817131, -0.4205268323421478, -0.24469134211540222, -0.04081163927912712, 0.1622932404279709, -0.07647430896759033, 0.29021167755126953, 0.10167328268289566, 0.38095149397850037, -0.09808335453271866, -0.3455757796764374, -0.1507125198841095, -0.4740360677242279, -0.1169389933347702, 0.02983945794403553, 0.33660706877708435, 0.2871807813644409, 0.11054438352584839, 0.18004824221134186, 0.032201796770095825, -0.007930733263492584, 0.4143022298812866, 0.3862844705581665, -0.03134645149111748, -0.2519547641277313, 0.2708725333213806, -0.21379858255386353, -0.11669519543647766, 0.08540796488523483, 0.18144163489341736, -0.10271269828081131, -0.06612487882375717, -0.4374316930770874, 0.2388070970773697, -0.013188096694648266, -0.04533899202942848, 0.17652295529842377, 0.2331245243549347, -0.03081217035651207, 0.326463520526886, -0.12488153576850891, 0.1079075038433075, 0.15246812999248505, -0.05643603205680847, 0.06574889272451401, 0.15841130912303925, -0.11857345700263977, -0.05520237237215042, 0.29706114530563354, 0.04628100246191025, 0.32720237970352173, 0.02911076694726944, -0.0863492488861084, 0.5719228982925415, 0.06998041272163391, 0.13404691219329834, 0.31256386637687683, -0.0661853477358818, 0.2979390323162079, -0.1734291911125183, -0.003491821698844433, -0.12141681462526321, -0.1109643429517746, 0.4202499985694885, 0.05638589337468147, 0.023067213594913483, 0.18751737475395203, -0.2673247456550598, 0.24848240613937378, 0.3293568193912506, 0.42209646105766296, -0.26326319575309753, 0.19672034680843353, -0.45497390627861023, -0.18580299615859985, 0.3919382095336914, -0.10061895847320557, 0.3253158926963806, -0.34085118770599365, 0.14457662403583527, 0.17196272313594818, -0.058044373989105225, -0.01729508861899376, 0.17515817284584045, -0.20612415671348572, -0.11374152451753616, 0.11798499524593353, 0.7190247774124146, -0.01861194707453251, 0.03198515623807907, 0.09146270900964737, 0.06160692870616913, -0.4258471429347992, -0.33553218841552734, 0.3011032044887543, -0.18898354470729828, 0.21321074664592743, 0.11776266992092133, 0.13908632099628448, -0.07946261018514633, -0.289788156747818, -0.08767404407262802, 0.08784063160419464, 0.12820948660373688, -0.3338698744773865, 0.04015953466296196, -0.536593496799469, -0.04248964414000511, -0.2240448147058487, -0.03879253566265106, -0.264753133058548, -0.4469197690486908, 0.15770988166332245, 0.1980264037847519, -0.11039749532938004, 0.12199085205793381, -0.33426037430763245, 0.2111932635307312, 0.03306266665458679, 0.08882409334182739, 0.08451800048351288, -0.3925483226776123, -0.25115567445755005, 0.1347397118806839, -0.07706402987241745, -0.0929333046078682, -0.08182436972856522, -0.4842635989189148, -0.04540621489286423, -0.5208210945129395, -0.10481318086385727, 0.2654861807823181, 0.365025132894516, 0.27271702885627747, 0.1331583708524704, 0.04922451078891754, -0.14177702367305756, -0.18513400852680206, 0.08352431654930115, 0.13332360982894897, 0.21343670785427094, -0.005168036557734013, -0.042671144008636475, 0.08857320249080658, -0.012352765537798405, -0.2240993082523346, -0.03770621865987778, -0.090809665620327, -0.4736917316913605, -0.27506011724472046, -0.07651565968990326, 0.20243299007415771, 0.2168721854686737, -0.0848882868885994, -0.018731404095888138, 0.045743606984615326, -0.3781853914260864, -0.19702912867069244, 0.43821433186531067, -0.2855968177318573, -0.411140114068985, -0.09966309368610382, 0.07347872853279114, 0.2655012905597687, 0.266116738319397, -0.3544003963470459, -0.17006976902484894, -0.00465548736974597, -0.05987292528152466, -0.010614318773150444, -0.09754616767168045, 0.12046454101800919, 0.09311605244874954, -0.22957368195056915, -0.17324958741664886, -0.050892215222120285, 0.09198925644159317, -0.1014675572514534, 0.5540027618408203, 0.19442668557167053, 0.1834062784910202, 0.05385475233197212, 0.4854261875152588, -0.12013959884643555, -0.33904382586479187, 0.42066073417663574, -0.21690014004707336, 0.5057191252708435, 0.3042955994606018, -0.0968540608882904, 0.05308027192950249, 0.09422779828310013, 0.003063530195504427, 0.00017804627714212984, 0.04468990117311478, -0.00810931995511055, -0.15340662002563477, 0.18008819222450256, -0.4644331932067871, -0.3127829432487488, -0.3689796030521393, 0.23197534680366516, 0.6943620443344116, 0.3169688582420349, 0.016678586602211, -0.001983845140784979, -0.07916857302188873, 0.13030607998371124, 0.012599609792232513, 0.1484457105398178, -0.3363165557384491, -0.13374063372612, 0.18266937136650085, -0.2148372232913971, 0.3480679988861084, -0.1558336764574051, 0.49262943863868713, -0.07725585997104645, -0.057155169546604156, 0.007717331405729055, 0.025822194293141365, 0.6036132574081421, -0.34381458163261414, 0.27481091022491455, 0.018277937546372414, 0.3713470697402954, -0.11348620802164078, 0.019011471420526505, -0.005131784826517105, -0.2674611508846283, 0.6512150168418884, 0.33180105686187744, -0.12384015321731567, -0.1164219006896019, 0.4286883473396301, -0.28281480073928833, -0.09246589988470078, 0.24993588030338287, -0.21297000348567963, -0.5011613368988037, -0.04273498058319092, -0.24443461000919342, -0.038707245141267776, 0.0003072214894928038, 0.03723357617855072, -0.014317153953015804, -0.0397617481648922, -0.28796249628067017, -0.20870721340179443, 0.1633031964302063, 0.28704655170440674, 0.3092706501483917, -0.10477519035339355, 0.04213165119290352, 0.4423319399356842, 0.2717258632183075, 0.3449755311012268, -0.1861974447965622, -0.28168871998786926, 0.19920186698436737, 0.060917336493730545, 0.28277891874313354, 0.276254266500473, -0.08576730638742447, -0.17635886371135712, 0.08619280159473419, -0.10422074794769287, 0.12574900686740875, 0.23521491885185242, 0.35880860686302185, -0.09810274839401245, -0.18594515323638916, -0.04443124309182167, 0.01156377512961626, 0.012775866314768791, -0.09693033248186111, -0.20524649322032928, -0.045579396188259125, 0.0069171651266515255, -0.06860120594501495, 0.2036350518465042, 0.6786640286445618, -0.02585388347506523, -0.009334309957921505, 0.24570491909980774, -0.284273624420166, 0.09378395229578018, 0.2529810070991516, 0.18567673861980438, -0.15497009456157684, -0.10899999737739563, -0.10567117482423782, -0.08774348348379135, -0.16396646201610565, 0.055066414177417755, 0.10318976640701294, -0.020055361092090607, -0.04701811820268631, 0.11897820979356766, 0.34633395075798035, 0.31776881217956543, 0.013026171363890171, 0.27239951491355896, -0.008178260177373886, 0.21425434947013855, 0.07861582189798355, 0.10344704985618591, -0.12722907960414886, -0.13154256343841553, 0.08525435626506805, -0.24107515811920166, -0.1684737354516983, 0.20787134766578674, -0.21884070336818695, 0.21786008775234222, 0.021600231528282166, -0.46725910902023315, -0.22102385759353638, 0.29223376512527466, 0.10461091250181198, 0.1705138385295868, -0.22131483256816864, 0.4063745439052582, 0.12476427853107452, -0.19028551876544952, 0.14838044345378876, 0.21810299158096313, -0.010295229963958263, -0.24858354032039642, -0.21588225662708282, 0.3110769987106323, 0.1355922520160675, -0.4224214553833008, 0.30350592732429504, -0.11142156273126602, -0.23241043090820312, -0.12248265743255615, 0.16414347290992737, 0.14877474308013916, 0.1989748179912567, -0.4251740574836731, 0.18060921132564545, -0.23687706887722015, 0.32266148924827576, -0.2371135652065277, -0.0899580717086792, -0.3048660457134247, -0.17586234211921692, 0.25114214420318604, -0.25282004475593567, 0.3409295082092285, 0.18928542733192444, -0.08339203894138336, 0.019903337582945824, -0.2720509469509125, 0.11790361255407333, -0.5939001441001892, -0.32194221019744873, 0.2540663778781891, -0.07348383963108063, -0.09758268296718597, -0.17459461092948914, 0.20135457813739777, 0.046193379908800125, 0.53619384765625, -0.024164404720067978, -0.21490849554538727, 0.12196838110685349, 0.08918316662311554, -0.17149466276168823, 0.06721047312021255, -0.11059684306383133, 0.26433253288269043, 0.05446365103125572, -0.41827458143234253, -0.39401301741600037, 0.1918877512216568, -0.2047356516122818, 0.04089133441448212, -0.3063419759273529, -0.16103225946426392, 0.13553665578365326, -0.09393856674432755, 0.18000762164592743, -0.2709919810295105, 0.09561532735824585, -0.1882515251636505, -0.19080258905887604, 0.05682077258825302, 0.15724152326583862, -0.31370702385902405, -0.27697640657424927, -0.4237823784351349, -0.28057509660720825, 0.16405396163463593, -0.3203345835208893, 0.18177220225334167, 0.029145708307623863, 0.17110374569892883, -0.41494202613830566, -0.06334526836872101, 0.24188029766082764, 0.05918305367231369, 0.1489686816930771, 0.3923451900482178, 0.10801713913679123, 0.33133649826049805, -0.20116786658763885, 0.02884204126894474, -0.06642770022153854, 0.06795147061347961, -0.2497931569814682, 0.0017088362947106361, 0.16841314733028412, -0.15683424472808838, -0.24058210849761963, 0.3201541006565094, 0.29711881279945374, 0.04144664481282234, -0.1887761354446411, -0.22083014249801636, 0.23324310779571533, 0.21835733950138092, -0.3332248032093048, -0.14986178278923035, -0.2689236104488373, -0.0018931907834485173, 0.03182140737771988, -0.08888429403305054, 0.2037799209356308, -0.19949889183044434, 0.18255749344825745, 0.21252696216106415, 0.15336266160011292, 0.18136583268642426, 0.18797390162944794, 0.2147950828075409, 0.00899119395762682, 0.35487329959869385, 0.29240119457244873, -0.06767759472131729, 0.06454924494028091, -0.002809705678373575, 0.2578962743282318, -0.15851356089115143, 0.010522156953811646, 0.16984468698501587, 0.16787420213222504, -0.18798001110553741, 0.14718186855316162, -0.04502510279417038, -0.0965266227722168, 0.06711818277835846, -0.025572041049599648, 0.1040935069322586, -0.17075037956237793, 0.012733693234622478, -0.44958680868148804, 0.4069257974624634, -0.06364111602306366, -0.21089567244052887, -0.2788930833339691, -0.232728973031044, 0.13576827943325043, 0.21177592873573303, -0.09635399281978607, -0.07050621509552002, -0.030487680807709694, -0.08931763470172882, -0.1255052536725998, -0.380349725484848, 0.4664453864097595, -0.033523380756378174, 0.1915610134601593, 0.0104874512180686, 0.105141781270504, -0.13870058953762054, 0.025006117299199104, 0.22894322872161865, 0.4814006984233856, 0.2599702775478363, 0.19395993649959564, 0.3029431700706482, -0.2197113037109375, -0.015962697565555573, -0.06527633219957352, -0.050663452595472336, 0.170413076877594, 0.31400561332702637, -0.017260273918509483, 0.5584930777549744, 0.27037665247917175, -0.1660662144422531, 0.04336157441139221, -0.031004933640360832, 0.43957558274269104, 0.04893072322010994, 0.15455400943756104, 0.05521247535943985, -0.06287205219268799, -0.06841549277305603, 0.056236885488033295, -0.15860313177108765, 0.23985064029693604, 0.3649187982082367, -0.21985945105552673, 0.21866798400878906, -0.18212862312793732, 0.11704004555940628, 0.12036591023206711, 0.3333421051502228, 0.39678141474723816, 0.18740180134773254, -0.00645409943535924, -0.6302580237388611, -0.6233664155006409, 0.22379356622695923, -0.17825348675251007, -0.13507305085659027, -0.0402800589799881, -0.031381797045469284, -0.15702301263809204, 0.11662072688341141, 0.07992005348205566, -0.027200445532798767, -0.3382476270198822, -0.11746847629547119, -0.23063142597675323, 0.12121233344078064, 0.014589316211640835, 0.3349228501319885, -0.11647330969572067, -0.30592021346092224, 0.2679775059223175, -0.04053527116775513, 0.16562406718730927, 0.0841938704252243, -0.121118925511837, -0.1272619217634201, 0.05715596675872803, 0.33549773693084717, 0.2675974667072296, 0.13636991381645203, -0.17716622352600098, -0.041116196662187576, -0.41027572751045227, -0.29741743206977844, 0.12307097762823105, -0.10980541259050369, -0.01350659690797329, -0.17597725987434387, 0.16064372658729553, 0.16091445088386536, -0.15516597032546997, 0.3823259770870209, 0.0987410694360733, 0.13426253199577332, -0.16090553998947144, 0.04778782278299332, 0.03739103302359581, -0.16276095807552338, 0.10889077186584473, 0.08237677067518234, -0.15940341353416443, -0.010362538509070873, -0.033585075289011, -0.35203316807746887, 0.16199329495429993, -0.06365090608596802, -0.02936328575015068, -0.21210740506649017, 0.3104572594165802, -0.029942339286208153, 0.13463906943798065, 0.01900855451822281, 0.027143357321619987, 0.38030001521110535, 0.19798730313777924, -0.20943136513233185, 0.14630618691444397, 0.1625472754240036, -0.14969603717327118, 0.127195343375206, 0.5011720061302185, 0.24324271082878113, -0.683090329170227, -0.08995711803436279, 0.1577524095773697 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Hello! Unfortunately, this URL does not work for me. Could you please tell me how I can solve the problem? `>>> from datasets import load_dataset >>> dataset = load_dataset("conll2003") Downloading and preparing dataset conll2003/conll2003 (download: 4.63 MiB, generated: 9.78 MiB, post-processed: Unknown size, total: 14.41 MiB) to /home/dafedo/.cache/huggingface/datasets/conll2003/conll2003/1.0.0/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/load.py", line 745, in load_dataset builder_instance.download_and_prepare( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/builder.py", line 630, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/dafedo/.cache/huggingface/modules/datasets_modules/datasets/conll2003/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6/conll2003.py", line 196, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 287, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 218, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 281, in cached_path output_path = get_from_cache( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 621, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ` I receive the same error when I run "itrain run_configs/conll2003.json" from https://github.com/adapter-hub/efficient-task-transfer Thank you very much in advance! Regards, Daria
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
199
conll 2003 dataset source url is no longer valid
[ -0.2817074954509735, 0.3248070478439331, -0.00945182517170906, -0.04499819874763489, -0.12123390287160873, -0.08518344163894653, 0.3864741921424866, 0.002551503712311387, -0.7450023293495178, -0.13230639696121216, -0.08228202909231186, 0.14503897726535797, 0.10700909793376923, 0.1315167099237442, -0.18558363616466522, 0.49657776951789856, -0.12510134279727936, 0.01789056323468685, -0.017554571852087975, -0.12895958125591278, -0.3243786692619324, 0.1826307326555252, -0.2997956871986389, 0.07483343780040741, -0.42000630497932434, 0.02471247687935829, 0.09737436473369598, 0.19565723836421967, -0.236439511179924, -0.19039306044578552, 0.2234945297241211, 0.10382026433944702, 0.04883761703968048, -0.04204055294394493, -0.00010694623051676899, 0.034115131944417953, 0.30580082535743713, 0.006751699838787317, -0.4849247634410858, 0.22373329102993011, -0.6334680318832397, 0.17338606715202332, -0.0065767234191298485, -0.00807653833180666, -0.0712839663028717, 0.13767103850841522, -0.14702139794826508, 0.14585036039352417, 0.06364639848470688, 0.6782534122467041, 0.3048066198825836, 0.17799194157123566, 0.2158195823431015, -0.1614052951335907, 0.3501799702644348, -0.21340890228748322, 0.11910033971071243, 0.3875751793384552, 0.06752292811870575, -0.060620248317718506, 0.10601910948753357, 0.25796961784362793, 0.11961707472801208, -0.20759670436382294, -0.01145471353083849, -0.0231865756213665, -0.2478603571653366, 0.08476439863443375, 0.18245242536067963, 0.006998896133154631, 0.511846661567688, 0.016365554183721542, -0.32067450881004333, 0.2411525994539261, 0.015600132755935192, -0.19525443017482758, 0.2897627651691437, 0.0524604357779026, 0.10860075801610947, 0.3511998951435089, -0.08094154298305511, -0.3764619529247284, -0.1886242926120758, 0.12204539775848389, -0.499702513217926, 0.6808240413665771, -0.08302250504493713, -0.01892966218292713, 0.10646936297416687, 0.02617785334587097, 0.7953618764877319, 0.20677150785923004, -0.00035387364914640784, -0.17825612425804138, 0.03879085183143616, -0.22758305072784424, 0.019365448504686356, 0.17389324307441711, -0.03472748026251793, -0.010763648897409439, 0.012343755923211575, -0.17047955095767975, -0.35344451665878296, -0.03641819581389427, 0.0765341967344284, 0.033709004521369934, -0.06819705665111542, 0.2621423900127411, 0.3995135426521301, 0.10736754536628723, 0.093656525015831, -0.011358989402651787, 0.04884534329175949, -0.33004945516586304, -0.26632919907569885, 0.011178586632013321, 0.08688289672136307, -0.31881746649742126, -0.3670276701450348, 0.09662536531686783, 0.11346513032913208, 0.036370810121297836, 0.0665053129196167, 0.31587767601013184, -0.01297746505588293, 0.11425995081663132, 0.08401226252317429, 0.11893300712108612, 0.1686621457338333, -0.3932904303073883, -0.10880306363105774, -0.0740901380777359, -0.05298883840441704, -0.4305112957954407, 0.04754575714468956, 0.010231859982013702, 0.17595331370830536, 0.13627555966377258, -0.3891344964504242, 0.02728448435664177, -0.22532542049884796, 0.054305076599121094, 0.22048419713974, 0.06267981231212616, -0.02161695435643196, 0.010432850569486618, 0.0138469859957695, -0.03995312377810478, -0.02207843028008938, 0.07223567366600037, -0.46256348490715027, -0.31070730090141296, -0.5116788744926453, 0.2472122609615326, 0.12379680573940277, -0.28828001022338867, 0.5121811628341675, -0.2083456665277481, -0.167106032371521, -0.15726250410079956, -0.17471270263195038, -0.1547217071056366, -0.11720260977745056, -0.09920959174633026, 0.16648180782794952, 0.3249754011631012, -0.14119155704975128, 0.15438583493232727, -0.00602645194157958, -0.03553306683897972, 0.019600246101617813, 0.1227099597454071, -0.38008350133895874, 0.004291899502277374, -0.19854168593883514, -0.2353789210319519, 0.2733183205127716, -0.2596902847290039, -0.38507670164108276, 0.15953604876995087, -0.0697290226817131, -0.4205268323421478, -0.24469134211540222, -0.04081163927912712, 0.1622932404279709, -0.07647430896759033, 0.29021167755126953, 0.10167328268289566, 0.38095149397850037, -0.09808335453271866, -0.3455757796764374, -0.1507125198841095, -0.4740360677242279, -0.1169389933347702, 0.02983945794403553, 0.33660706877708435, 0.2871807813644409, 0.11054438352584839, 0.18004824221134186, 0.032201796770095825, -0.007930733263492584, 0.4143022298812866, 0.3862844705581665, -0.03134645149111748, -0.2519547641277313, 0.2708725333213806, -0.21379858255386353, -0.11669519543647766, 0.08540796488523483, 0.18144163489341736, -0.10271269828081131, -0.06612487882375717, -0.4374316930770874, 0.2388070970773697, -0.013188096694648266, -0.04533899202942848, 0.17652295529842377, 0.2331245243549347, -0.03081217035651207, 0.326463520526886, -0.12488153576850891, 0.1079075038433075, 0.15246812999248505, -0.05643603205680847, 0.06574889272451401, 0.15841130912303925, -0.11857345700263977, -0.05520237237215042, 0.29706114530563354, 0.04628100246191025, 0.32720237970352173, 0.02911076694726944, -0.0863492488861084, 0.5719228982925415, 0.06998041272163391, 0.13404691219329834, 0.31256386637687683, -0.0661853477358818, 0.2979390323162079, -0.1734291911125183, -0.003491821698844433, -0.12141681462526321, -0.1109643429517746, 0.4202499985694885, 0.05638589337468147, 0.023067213594913483, 0.18751737475395203, -0.2673247456550598, 0.24848240613937378, 0.3293568193912506, 0.42209646105766296, -0.26326319575309753, 0.19672034680843353, -0.45497390627861023, -0.18580299615859985, 0.3919382095336914, -0.10061895847320557, 0.3253158926963806, -0.34085118770599365, 0.14457662403583527, 0.17196272313594818, -0.058044373989105225, -0.01729508861899376, 0.17515817284584045, -0.20612415671348572, -0.11374152451753616, 0.11798499524593353, 0.7190247774124146, -0.01861194707453251, 0.03198515623807907, 0.09146270900964737, 0.06160692870616913, -0.4258471429347992, -0.33553218841552734, 0.3011032044887543, -0.18898354470729828, 0.21321074664592743, 0.11776266992092133, 0.13908632099628448, -0.07946261018514633, -0.289788156747818, -0.08767404407262802, 0.08784063160419464, 0.12820948660373688, -0.3338698744773865, 0.04015953466296196, -0.536593496799469, -0.04248964414000511, -0.2240448147058487, -0.03879253566265106, -0.264753133058548, -0.4469197690486908, 0.15770988166332245, 0.1980264037847519, -0.11039749532938004, 0.12199085205793381, -0.33426037430763245, 0.2111932635307312, 0.03306266665458679, 0.08882409334182739, 0.08451800048351288, -0.3925483226776123, -0.25115567445755005, 0.1347397118806839, -0.07706402987241745, -0.0929333046078682, -0.08182436972856522, -0.4842635989189148, -0.04540621489286423, -0.5208210945129395, -0.10481318086385727, 0.2654861807823181, 0.365025132894516, 0.27271702885627747, 0.1331583708524704, 0.04922451078891754, -0.14177702367305756, -0.18513400852680206, 0.08352431654930115, 0.13332360982894897, 0.21343670785427094, -0.005168036557734013, -0.042671144008636475, 0.08857320249080658, -0.012352765537798405, -0.2240993082523346, -0.03770621865987778, -0.090809665620327, -0.4736917316913605, -0.27506011724472046, -0.07651565968990326, 0.20243299007415771, 0.2168721854686737, -0.0848882868885994, -0.018731404095888138, 0.045743606984615326, -0.3781853914260864, -0.19702912867069244, 0.43821433186531067, -0.2855968177318573, -0.411140114068985, -0.09966309368610382, 0.07347872853279114, 0.2655012905597687, 0.266116738319397, -0.3544003963470459, -0.17006976902484894, -0.00465548736974597, -0.05987292528152466, -0.010614318773150444, -0.09754616767168045, 0.12046454101800919, 0.09311605244874954, -0.22957368195056915, -0.17324958741664886, -0.050892215222120285, 0.09198925644159317, -0.1014675572514534, 0.5540027618408203, 0.19442668557167053, 0.1834062784910202, 0.05385475233197212, 0.4854261875152588, -0.12013959884643555, -0.33904382586479187, 0.42066073417663574, -0.21690014004707336, 0.5057191252708435, 0.3042955994606018, -0.0968540608882904, 0.05308027192950249, 0.09422779828310013, 0.003063530195504427, 0.00017804627714212984, 0.04468990117311478, -0.00810931995511055, -0.15340662002563477, 0.18008819222450256, -0.4644331932067871, -0.3127829432487488, -0.3689796030521393, 0.23197534680366516, 0.6943620443344116, 0.3169688582420349, 0.016678586602211, -0.001983845140784979, -0.07916857302188873, 0.13030607998371124, 0.012599609792232513, 0.1484457105398178, -0.3363165557384491, -0.13374063372612, 0.18266937136650085, -0.2148372232913971, 0.3480679988861084, -0.1558336764574051, 0.49262943863868713, -0.07725585997104645, -0.057155169546604156, 0.007717331405729055, 0.025822194293141365, 0.6036132574081421, -0.34381458163261414, 0.27481091022491455, 0.018277937546372414, 0.3713470697402954, -0.11348620802164078, 0.019011471420526505, -0.005131784826517105, -0.2674611508846283, 0.6512150168418884, 0.33180105686187744, -0.12384015321731567, -0.1164219006896019, 0.4286883473396301, -0.28281480073928833, -0.09246589988470078, 0.24993588030338287, -0.21297000348567963, -0.5011613368988037, -0.04273498058319092, -0.24443461000919342, -0.038707245141267776, 0.0003072214894928038, 0.03723357617855072, -0.014317153953015804, -0.0397617481648922, -0.28796249628067017, -0.20870721340179443, 0.1633031964302063, 0.28704655170440674, 0.3092706501483917, -0.10477519035339355, 0.04213165119290352, 0.4423319399356842, 0.2717258632183075, 0.3449755311012268, -0.1861974447965622, -0.28168871998786926, 0.19920186698436737, 0.060917336493730545, 0.28277891874313354, 0.276254266500473, -0.08576730638742447, -0.17635886371135712, 0.08619280159473419, -0.10422074794769287, 0.12574900686740875, 0.23521491885185242, 0.35880860686302185, -0.09810274839401245, -0.18594515323638916, -0.04443124309182167, 0.01156377512961626, 0.012775866314768791, -0.09693033248186111, -0.20524649322032928, -0.045579396188259125, 0.0069171651266515255, -0.06860120594501495, 0.2036350518465042, 0.6786640286445618, -0.02585388347506523, -0.009334309957921505, 0.24570491909980774, -0.284273624420166, 0.09378395229578018, 0.2529810070991516, 0.18567673861980438, -0.15497009456157684, -0.10899999737739563, -0.10567117482423782, -0.08774348348379135, -0.16396646201610565, 0.055066414177417755, 0.10318976640701294, -0.020055361092090607, -0.04701811820268631, 0.11897820979356766, 0.34633395075798035, 0.31776881217956543, 0.013026171363890171, 0.27239951491355896, -0.008178260177373886, 0.21425434947013855, 0.07861582189798355, 0.10344704985618591, -0.12722907960414886, -0.13154256343841553, 0.08525435626506805, -0.24107515811920166, -0.1684737354516983, 0.20787134766578674, -0.21884070336818695, 0.21786008775234222, 0.021600231528282166, -0.46725910902023315, -0.22102385759353638, 0.29223376512527466, 0.10461091250181198, 0.1705138385295868, -0.22131483256816864, 0.4063745439052582, 0.12476427853107452, -0.19028551876544952, 0.14838044345378876, 0.21810299158096313, -0.010295229963958263, -0.24858354032039642, -0.21588225662708282, 0.3110769987106323, 0.1355922520160675, -0.4224214553833008, 0.30350592732429504, -0.11142156273126602, -0.23241043090820312, -0.12248265743255615, 0.16414347290992737, 0.14877474308013916, 0.1989748179912567, -0.4251740574836731, 0.18060921132564545, -0.23687706887722015, 0.32266148924827576, -0.2371135652065277, -0.0899580717086792, -0.3048660457134247, -0.17586234211921692, 0.25114214420318604, -0.25282004475593567, 0.3409295082092285, 0.18928542733192444, -0.08339203894138336, 0.019903337582945824, -0.2720509469509125, 0.11790361255407333, -0.5939001441001892, -0.32194221019744873, 0.2540663778781891, -0.07348383963108063, -0.09758268296718597, -0.17459461092948914, 0.20135457813739777, 0.046193379908800125, 0.53619384765625, -0.024164404720067978, -0.21490849554538727, 0.12196838110685349, 0.08918316662311554, -0.17149466276168823, 0.06721047312021255, -0.11059684306383133, 0.26433253288269043, 0.05446365103125572, -0.41827458143234253, -0.39401301741600037, 0.1918877512216568, -0.2047356516122818, 0.04089133441448212, -0.3063419759273529, -0.16103225946426392, 0.13553665578365326, -0.09393856674432755, 0.18000762164592743, -0.2709919810295105, 0.09561532735824585, -0.1882515251636505, -0.19080258905887604, 0.05682077258825302, 0.15724152326583862, -0.31370702385902405, -0.27697640657424927, -0.4237823784351349, -0.28057509660720825, 0.16405396163463593, -0.3203345835208893, 0.18177220225334167, 0.029145708307623863, 0.17110374569892883, -0.41494202613830566, -0.06334526836872101, 0.24188029766082764, 0.05918305367231369, 0.1489686816930771, 0.3923451900482178, 0.10801713913679123, 0.33133649826049805, -0.20116786658763885, 0.02884204126894474, -0.06642770022153854, 0.06795147061347961, -0.2497931569814682, 0.0017088362947106361, 0.16841314733028412, -0.15683424472808838, -0.24058210849761963, 0.3201541006565094, 0.29711881279945374, 0.04144664481282234, -0.1887761354446411, -0.22083014249801636, 0.23324310779571533, 0.21835733950138092, -0.3332248032093048, -0.14986178278923035, -0.2689236104488373, -0.0018931907834485173, 0.03182140737771988, -0.08888429403305054, 0.2037799209356308, -0.19949889183044434, 0.18255749344825745, 0.21252696216106415, 0.15336266160011292, 0.18136583268642426, 0.18797390162944794, 0.2147950828075409, 0.00899119395762682, 0.35487329959869385, 0.29240119457244873, -0.06767759472131729, 0.06454924494028091, -0.002809705678373575, 0.2578962743282318, -0.15851356089115143, 0.010522156953811646, 0.16984468698501587, 0.16787420213222504, -0.18798001110553741, 0.14718186855316162, -0.04502510279417038, -0.0965266227722168, 0.06711818277835846, -0.025572041049599648, 0.1040935069322586, -0.17075037956237793, 0.012733693234622478, -0.44958680868148804, 0.4069257974624634, -0.06364111602306366, -0.21089567244052887, -0.2788930833339691, -0.232728973031044, 0.13576827943325043, 0.21177592873573303, -0.09635399281978607, -0.07050621509552002, -0.030487680807709694, -0.08931763470172882, -0.1255052536725998, -0.380349725484848, 0.4664453864097595, -0.033523380756378174, 0.1915610134601593, 0.0104874512180686, 0.105141781270504, -0.13870058953762054, 0.025006117299199104, 0.22894322872161865, 0.4814006984233856, 0.2599702775478363, 0.19395993649959564, 0.3029431700706482, -0.2197113037109375, -0.015962697565555573, -0.06527633219957352, -0.050663452595472336, 0.170413076877594, 0.31400561332702637, -0.017260273918509483, 0.5584930777549744, 0.27037665247917175, -0.1660662144422531, 0.04336157441139221, -0.031004933640360832, 0.43957558274269104, 0.04893072322010994, 0.15455400943756104, 0.05521247535943985, -0.06287205219268799, -0.06841549277305603, 0.056236885488033295, -0.15860313177108765, 0.23985064029693604, 0.3649187982082367, -0.21985945105552673, 0.21866798400878906, -0.18212862312793732, 0.11704004555940628, 0.12036591023206711, 0.3333421051502228, 0.39678141474723816, 0.18740180134773254, -0.00645409943535924, -0.6302580237388611, -0.6233664155006409, 0.22379356622695923, -0.17825348675251007, -0.13507305085659027, -0.0402800589799881, -0.031381797045469284, -0.15702301263809204, 0.11662072688341141, 0.07992005348205566, -0.027200445532798767, -0.3382476270198822, -0.11746847629547119, -0.23063142597675323, 0.12121233344078064, 0.014589316211640835, 0.3349228501319885, -0.11647330969572067, -0.30592021346092224, 0.2679775059223175, -0.04053527116775513, 0.16562406718730927, 0.0841938704252243, -0.121118925511837, -0.1272619217634201, 0.05715596675872803, 0.33549773693084717, 0.2675974667072296, 0.13636991381645203, -0.17716622352600098, -0.041116196662187576, -0.41027572751045227, -0.29741743206977844, 0.12307097762823105, -0.10980541259050369, -0.01350659690797329, -0.17597725987434387, 0.16064372658729553, 0.16091445088386536, -0.15516597032546997, 0.3823259770870209, 0.0987410694360733, 0.13426253199577332, -0.16090553998947144, 0.04778782278299332, 0.03739103302359581, -0.16276095807552338, 0.10889077186584473, 0.08237677067518234, -0.15940341353416443, -0.010362538509070873, -0.033585075289011, -0.35203316807746887, 0.16199329495429993, -0.06365090608596802, -0.02936328575015068, -0.21210740506649017, 0.3104572594165802, -0.029942339286208153, 0.13463906943798065, 0.01900855451822281, 0.027143357321619987, 0.38030001521110535, 0.19798730313777924, -0.20943136513233185, 0.14630618691444397, 0.1625472754240036, -0.14969603717327118, 0.127195343375206, 0.5011720061302185, 0.24324271082878113, -0.683090329170227, -0.08995711803436279, 0.1577524095773697 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
@lhoestq Thank you very much for your answer! It works this way, but for my research I need datasets==1.6.3 or closest to it because otherwise the other package would not work as it is built on this version. Do you have any other suggestion? I would really appreciate it. Maybe which version of the datasets is without hard-coded link but closest to 1.6.3
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
63
conll 2003 dataset source url is no longer valid
[ -0.2817074954509735, 0.3248070478439331, -0.00945182517170906, -0.04499819874763489, -0.12123390287160873, -0.08518344163894653, 0.3864741921424866, 0.002551503712311387, -0.7450023293495178, -0.13230639696121216, -0.08228202909231186, 0.14503897726535797, 0.10700909793376923, 0.1315167099237442, -0.18558363616466522, 0.49657776951789856, -0.12510134279727936, 0.01789056323468685, -0.017554571852087975, -0.12895958125591278, -0.3243786692619324, 0.1826307326555252, -0.2997956871986389, 0.07483343780040741, -0.42000630497932434, 0.02471247687935829, 0.09737436473369598, 0.19565723836421967, -0.236439511179924, -0.19039306044578552, 0.2234945297241211, 0.10382026433944702, 0.04883761703968048, -0.04204055294394493, -0.00010694623051676899, 0.034115131944417953, 0.30580082535743713, 0.006751699838787317, -0.4849247634410858, 0.22373329102993011, -0.6334680318832397, 0.17338606715202332, -0.0065767234191298485, -0.00807653833180666, -0.0712839663028717, 0.13767103850841522, -0.14702139794826508, 0.14585036039352417, 0.06364639848470688, 0.6782534122467041, 0.3048066198825836, 0.17799194157123566, 0.2158195823431015, -0.1614052951335907, 0.3501799702644348, -0.21340890228748322, 0.11910033971071243, 0.3875751793384552, 0.06752292811870575, -0.060620248317718506, 0.10601910948753357, 0.25796961784362793, 0.11961707472801208, -0.20759670436382294, -0.01145471353083849, -0.0231865756213665, -0.2478603571653366, 0.08476439863443375, 0.18245242536067963, 0.006998896133154631, 0.511846661567688, 0.016365554183721542, -0.32067450881004333, 0.2411525994539261, 0.015600132755935192, -0.19525443017482758, 0.2897627651691437, 0.0524604357779026, 0.10860075801610947, 0.3511998951435089, -0.08094154298305511, -0.3764619529247284, -0.1886242926120758, 0.12204539775848389, -0.499702513217926, 0.6808240413665771, -0.08302250504493713, -0.01892966218292713, 0.10646936297416687, 0.02617785334587097, 0.7953618764877319, 0.20677150785923004, -0.00035387364914640784, -0.17825612425804138, 0.03879085183143616, -0.22758305072784424, 0.019365448504686356, 0.17389324307441711, -0.03472748026251793, -0.010763648897409439, 0.012343755923211575, -0.17047955095767975, -0.35344451665878296, -0.03641819581389427, 0.0765341967344284, 0.033709004521369934, -0.06819705665111542, 0.2621423900127411, 0.3995135426521301, 0.10736754536628723, 0.093656525015831, -0.011358989402651787, 0.04884534329175949, -0.33004945516586304, -0.26632919907569885, 0.011178586632013321, 0.08688289672136307, -0.31881746649742126, -0.3670276701450348, 0.09662536531686783, 0.11346513032913208, 0.036370810121297836, 0.0665053129196167, 0.31587767601013184, -0.01297746505588293, 0.11425995081663132, 0.08401226252317429, 0.11893300712108612, 0.1686621457338333, -0.3932904303073883, -0.10880306363105774, -0.0740901380777359, -0.05298883840441704, -0.4305112957954407, 0.04754575714468956, 0.010231859982013702, 0.17595331370830536, 0.13627555966377258, -0.3891344964504242, 0.02728448435664177, -0.22532542049884796, 0.054305076599121094, 0.22048419713974, 0.06267981231212616, -0.02161695435643196, 0.010432850569486618, 0.0138469859957695, -0.03995312377810478, -0.02207843028008938, 0.07223567366600037, -0.46256348490715027, -0.31070730090141296, -0.5116788744926453, 0.2472122609615326, 0.12379680573940277, -0.28828001022338867, 0.5121811628341675, -0.2083456665277481, -0.167106032371521, -0.15726250410079956, -0.17471270263195038, -0.1547217071056366, -0.11720260977745056, -0.09920959174633026, 0.16648180782794952, 0.3249754011631012, -0.14119155704975128, 0.15438583493232727, -0.00602645194157958, -0.03553306683897972, 0.019600246101617813, 0.1227099597454071, -0.38008350133895874, 0.004291899502277374, -0.19854168593883514, -0.2353789210319519, 0.2733183205127716, -0.2596902847290039, -0.38507670164108276, 0.15953604876995087, -0.0697290226817131, -0.4205268323421478, -0.24469134211540222, -0.04081163927912712, 0.1622932404279709, -0.07647430896759033, 0.29021167755126953, 0.10167328268289566, 0.38095149397850037, -0.09808335453271866, -0.3455757796764374, -0.1507125198841095, -0.4740360677242279, -0.1169389933347702, 0.02983945794403553, 0.33660706877708435, 0.2871807813644409, 0.11054438352584839, 0.18004824221134186, 0.032201796770095825, -0.007930733263492584, 0.4143022298812866, 0.3862844705581665, -0.03134645149111748, -0.2519547641277313, 0.2708725333213806, -0.21379858255386353, -0.11669519543647766, 0.08540796488523483, 0.18144163489341736, -0.10271269828081131, -0.06612487882375717, -0.4374316930770874, 0.2388070970773697, -0.013188096694648266, -0.04533899202942848, 0.17652295529842377, 0.2331245243549347, -0.03081217035651207, 0.326463520526886, -0.12488153576850891, 0.1079075038433075, 0.15246812999248505, -0.05643603205680847, 0.06574889272451401, 0.15841130912303925, -0.11857345700263977, -0.05520237237215042, 0.29706114530563354, 0.04628100246191025, 0.32720237970352173, 0.02911076694726944, -0.0863492488861084, 0.5719228982925415, 0.06998041272163391, 0.13404691219329834, 0.31256386637687683, -0.0661853477358818, 0.2979390323162079, -0.1734291911125183, -0.003491821698844433, -0.12141681462526321, -0.1109643429517746, 0.4202499985694885, 0.05638589337468147, 0.023067213594913483, 0.18751737475395203, -0.2673247456550598, 0.24848240613937378, 0.3293568193912506, 0.42209646105766296, -0.26326319575309753, 0.19672034680843353, -0.45497390627861023, -0.18580299615859985, 0.3919382095336914, -0.10061895847320557, 0.3253158926963806, -0.34085118770599365, 0.14457662403583527, 0.17196272313594818, -0.058044373989105225, -0.01729508861899376, 0.17515817284584045, -0.20612415671348572, -0.11374152451753616, 0.11798499524593353, 0.7190247774124146, -0.01861194707453251, 0.03198515623807907, 0.09146270900964737, 0.06160692870616913, -0.4258471429347992, -0.33553218841552734, 0.3011032044887543, -0.18898354470729828, 0.21321074664592743, 0.11776266992092133, 0.13908632099628448, -0.07946261018514633, -0.289788156747818, -0.08767404407262802, 0.08784063160419464, 0.12820948660373688, -0.3338698744773865, 0.04015953466296196, -0.536593496799469, -0.04248964414000511, -0.2240448147058487, -0.03879253566265106, -0.264753133058548, -0.4469197690486908, 0.15770988166332245, 0.1980264037847519, -0.11039749532938004, 0.12199085205793381, -0.33426037430763245, 0.2111932635307312, 0.03306266665458679, 0.08882409334182739, 0.08451800048351288, -0.3925483226776123, -0.25115567445755005, 0.1347397118806839, -0.07706402987241745, -0.0929333046078682, -0.08182436972856522, -0.4842635989189148, -0.04540621489286423, -0.5208210945129395, -0.10481318086385727, 0.2654861807823181, 0.365025132894516, 0.27271702885627747, 0.1331583708524704, 0.04922451078891754, -0.14177702367305756, -0.18513400852680206, 0.08352431654930115, 0.13332360982894897, 0.21343670785427094, -0.005168036557734013, -0.042671144008636475, 0.08857320249080658, -0.012352765537798405, -0.2240993082523346, -0.03770621865987778, -0.090809665620327, -0.4736917316913605, -0.27506011724472046, -0.07651565968990326, 0.20243299007415771, 0.2168721854686737, -0.0848882868885994, -0.018731404095888138, 0.045743606984615326, -0.3781853914260864, -0.19702912867069244, 0.43821433186531067, -0.2855968177318573, -0.411140114068985, -0.09966309368610382, 0.07347872853279114, 0.2655012905597687, 0.266116738319397, -0.3544003963470459, -0.17006976902484894, -0.00465548736974597, -0.05987292528152466, -0.010614318773150444, -0.09754616767168045, 0.12046454101800919, 0.09311605244874954, -0.22957368195056915, -0.17324958741664886, -0.050892215222120285, 0.09198925644159317, -0.1014675572514534, 0.5540027618408203, 0.19442668557167053, 0.1834062784910202, 0.05385475233197212, 0.4854261875152588, -0.12013959884643555, -0.33904382586479187, 0.42066073417663574, -0.21690014004707336, 0.5057191252708435, 0.3042955994606018, -0.0968540608882904, 0.05308027192950249, 0.09422779828310013, 0.003063530195504427, 0.00017804627714212984, 0.04468990117311478, -0.00810931995511055, -0.15340662002563477, 0.18008819222450256, -0.4644331932067871, -0.3127829432487488, -0.3689796030521393, 0.23197534680366516, 0.6943620443344116, 0.3169688582420349, 0.016678586602211, -0.001983845140784979, -0.07916857302188873, 0.13030607998371124, 0.012599609792232513, 0.1484457105398178, -0.3363165557384491, -0.13374063372612, 0.18266937136650085, -0.2148372232913971, 0.3480679988861084, -0.1558336764574051, 0.49262943863868713, -0.07725585997104645, -0.057155169546604156, 0.007717331405729055, 0.025822194293141365, 0.6036132574081421, -0.34381458163261414, 0.27481091022491455, 0.018277937546372414, 0.3713470697402954, -0.11348620802164078, 0.019011471420526505, -0.005131784826517105, -0.2674611508846283, 0.6512150168418884, 0.33180105686187744, -0.12384015321731567, -0.1164219006896019, 0.4286883473396301, -0.28281480073928833, -0.09246589988470078, 0.24993588030338287, -0.21297000348567963, -0.5011613368988037, -0.04273498058319092, -0.24443461000919342, -0.038707245141267776, 0.0003072214894928038, 0.03723357617855072, -0.014317153953015804, -0.0397617481648922, -0.28796249628067017, -0.20870721340179443, 0.1633031964302063, 0.28704655170440674, 0.3092706501483917, -0.10477519035339355, 0.04213165119290352, 0.4423319399356842, 0.2717258632183075, 0.3449755311012268, -0.1861974447965622, -0.28168871998786926, 0.19920186698436737, 0.060917336493730545, 0.28277891874313354, 0.276254266500473, -0.08576730638742447, -0.17635886371135712, 0.08619280159473419, -0.10422074794769287, 0.12574900686740875, 0.23521491885185242, 0.35880860686302185, -0.09810274839401245, -0.18594515323638916, -0.04443124309182167, 0.01156377512961626, 0.012775866314768791, -0.09693033248186111, -0.20524649322032928, -0.045579396188259125, 0.0069171651266515255, -0.06860120594501495, 0.2036350518465042, 0.6786640286445618, -0.02585388347506523, -0.009334309957921505, 0.24570491909980774, -0.284273624420166, 0.09378395229578018, 0.2529810070991516, 0.18567673861980438, -0.15497009456157684, -0.10899999737739563, -0.10567117482423782, -0.08774348348379135, -0.16396646201610565, 0.055066414177417755, 0.10318976640701294, -0.020055361092090607, -0.04701811820268631, 0.11897820979356766, 0.34633395075798035, 0.31776881217956543, 0.013026171363890171, 0.27239951491355896, -0.008178260177373886, 0.21425434947013855, 0.07861582189798355, 0.10344704985618591, -0.12722907960414886, -0.13154256343841553, 0.08525435626506805, -0.24107515811920166, -0.1684737354516983, 0.20787134766578674, -0.21884070336818695, 0.21786008775234222, 0.021600231528282166, -0.46725910902023315, -0.22102385759353638, 0.29223376512527466, 0.10461091250181198, 0.1705138385295868, -0.22131483256816864, 0.4063745439052582, 0.12476427853107452, -0.19028551876544952, 0.14838044345378876, 0.21810299158096313, -0.010295229963958263, -0.24858354032039642, -0.21588225662708282, 0.3110769987106323, 0.1355922520160675, -0.4224214553833008, 0.30350592732429504, -0.11142156273126602, -0.23241043090820312, -0.12248265743255615, 0.16414347290992737, 0.14877474308013916, 0.1989748179912567, -0.4251740574836731, 0.18060921132564545, -0.23687706887722015, 0.32266148924827576, -0.2371135652065277, -0.0899580717086792, -0.3048660457134247, -0.17586234211921692, 0.25114214420318604, -0.25282004475593567, 0.3409295082092285, 0.18928542733192444, -0.08339203894138336, 0.019903337582945824, -0.2720509469509125, 0.11790361255407333, -0.5939001441001892, -0.32194221019744873, 0.2540663778781891, -0.07348383963108063, -0.09758268296718597, -0.17459461092948914, 0.20135457813739777, 0.046193379908800125, 0.53619384765625, -0.024164404720067978, -0.21490849554538727, 0.12196838110685349, 0.08918316662311554, -0.17149466276168823, 0.06721047312021255, -0.11059684306383133, 0.26433253288269043, 0.05446365103125572, -0.41827458143234253, -0.39401301741600037, 0.1918877512216568, -0.2047356516122818, 0.04089133441448212, -0.3063419759273529, -0.16103225946426392, 0.13553665578365326, -0.09393856674432755, 0.18000762164592743, -0.2709919810295105, 0.09561532735824585, -0.1882515251636505, -0.19080258905887604, 0.05682077258825302, 0.15724152326583862, -0.31370702385902405, -0.27697640657424927, -0.4237823784351349, -0.28057509660720825, 0.16405396163463593, -0.3203345835208893, 0.18177220225334167, 0.029145708307623863, 0.17110374569892883, -0.41494202613830566, -0.06334526836872101, 0.24188029766082764, 0.05918305367231369, 0.1489686816930771, 0.3923451900482178, 0.10801713913679123, 0.33133649826049805, -0.20116786658763885, 0.02884204126894474, -0.06642770022153854, 0.06795147061347961, -0.2497931569814682, 0.0017088362947106361, 0.16841314733028412, -0.15683424472808838, -0.24058210849761963, 0.3201541006565094, 0.29711881279945374, 0.04144664481282234, -0.1887761354446411, -0.22083014249801636, 0.23324310779571533, 0.21835733950138092, -0.3332248032093048, -0.14986178278923035, -0.2689236104488373, -0.0018931907834485173, 0.03182140737771988, -0.08888429403305054, 0.2037799209356308, -0.19949889183044434, 0.18255749344825745, 0.21252696216106415, 0.15336266160011292, 0.18136583268642426, 0.18797390162944794, 0.2147950828075409, 0.00899119395762682, 0.35487329959869385, 0.29240119457244873, -0.06767759472131729, 0.06454924494028091, -0.002809705678373575, 0.2578962743282318, -0.15851356089115143, 0.010522156953811646, 0.16984468698501587, 0.16787420213222504, -0.18798001110553741, 0.14718186855316162, -0.04502510279417038, -0.0965266227722168, 0.06711818277835846, -0.025572041049599648, 0.1040935069322586, -0.17075037956237793, 0.012733693234622478, -0.44958680868148804, 0.4069257974624634, -0.06364111602306366, -0.21089567244052887, -0.2788930833339691, -0.232728973031044, 0.13576827943325043, 0.21177592873573303, -0.09635399281978607, -0.07050621509552002, -0.030487680807709694, -0.08931763470172882, -0.1255052536725998, -0.380349725484848, 0.4664453864097595, -0.033523380756378174, 0.1915610134601593, 0.0104874512180686, 0.105141781270504, -0.13870058953762054, 0.025006117299199104, 0.22894322872161865, 0.4814006984233856, 0.2599702775478363, 0.19395993649959564, 0.3029431700706482, -0.2197113037109375, -0.015962697565555573, -0.06527633219957352, -0.050663452595472336, 0.170413076877594, 0.31400561332702637, -0.017260273918509483, 0.5584930777549744, 0.27037665247917175, -0.1660662144422531, 0.04336157441139221, -0.031004933640360832, 0.43957558274269104, 0.04893072322010994, 0.15455400943756104, 0.05521247535943985, -0.06287205219268799, -0.06841549277305603, 0.056236885488033295, -0.15860313177108765, 0.23985064029693604, 0.3649187982082367, -0.21985945105552673, 0.21866798400878906, -0.18212862312793732, 0.11704004555940628, 0.12036591023206711, 0.3333421051502228, 0.39678141474723816, 0.18740180134773254, -0.00645409943535924, -0.6302580237388611, -0.6233664155006409, 0.22379356622695923, -0.17825348675251007, -0.13507305085659027, -0.0402800589799881, -0.031381797045469284, -0.15702301263809204, 0.11662072688341141, 0.07992005348205566, -0.027200445532798767, -0.3382476270198822, -0.11746847629547119, -0.23063142597675323, 0.12121233344078064, 0.014589316211640835, 0.3349228501319885, -0.11647330969572067, -0.30592021346092224, 0.2679775059223175, -0.04053527116775513, 0.16562406718730927, 0.0841938704252243, -0.121118925511837, -0.1272619217634201, 0.05715596675872803, 0.33549773693084717, 0.2675974667072296, 0.13636991381645203, -0.17716622352600098, -0.041116196662187576, -0.41027572751045227, -0.29741743206977844, 0.12307097762823105, -0.10980541259050369, -0.01350659690797329, -0.17597725987434387, 0.16064372658729553, 0.16091445088386536, -0.15516597032546997, 0.3823259770870209, 0.0987410694360733, 0.13426253199577332, -0.16090553998947144, 0.04778782278299332, 0.03739103302359581, -0.16276095807552338, 0.10889077186584473, 0.08237677067518234, -0.15940341353416443, -0.010362538509070873, -0.033585075289011, -0.35203316807746887, 0.16199329495429993, -0.06365090608596802, -0.02936328575015068, -0.21210740506649017, 0.3104572594165802, -0.029942339286208153, 0.13463906943798065, 0.01900855451822281, 0.027143357321619987, 0.38030001521110535, 0.19798730313777924, -0.20943136513233185, 0.14630618691444397, 0.1625472754240036, -0.14969603717327118, 0.127195343375206, 0.5011720061302185, 0.24324271082878113, -0.683090329170227, -0.08995711803436279, 0.1577524095773697 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
+1, here's the error I got: ``` >>> from datasets import load_dataset >>> >>> load_dataset("wiki_bio") Downloading: 7.58kB [00:00, 4.42MB/s] Downloading: 2.71kB [00:00, 1.30MB/s] Using custom data configuration default Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to /home/jxm3/.cache/huggingface/datasets/wiki_bio/default/1.1.0/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/load.py", line 1694, in load_dataset builder_instance.download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 595, in download_and_prepare self._download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 662, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jxm3/.cache/huggingface/modules/datasets_modules/datasets/wiki_bio/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9/wiki_bio.py", line 125, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 308, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download downloaded_path_or_paths = map_nested( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 251, in map_nested return function(data_struct) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://drive.google.com/uc?export=download&id=1L7aoUXzHPzyzQ0ns4ApBbYepsjFOtXil >>> ```
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
154
Bug in wiki bio load
[ 0.30840298533439636, -0.5624250769615173, -0.12597805261611938, -0.013644849881529808, 0.08347482234239578, 0.13847452402114868, 0.43073099851608276, 0.24938884377479553, 0.47189339995384216, 0.25346195697784424, 0.02254807949066162, -0.055451080203056335, 0.6842508912086487, 0.1790897697210312, 0.09426698833703995, 0.20373187959194183, 0.2671866714954376, 0.16921401023864746, 0.012761751189827919, -0.3011634647846222, -0.3844423294067383, 0.18699799478054047, -0.27112558484077454, 0.18317537009716034, 0.02034207619726658, 0.09148609638214111, 0.3470347821712494, 0.3104603588581085, 0.11730852723121643, -0.13871200382709503, 0.015801118686795235, -0.1594325304031372, 0.1108846440911293, -0.1276824176311493, -0.00010672632924979553, -0.05500847101211548, 0.3647199273109436, 0.12393384426832199, -0.2635716497898102, 0.3424321413040161, -0.1367318481206894, 0.1696062982082367, -0.02450854517519474, -0.405065655708313, 0.18080079555511475, 0.40673285722732544, -0.24929359555244446, 0.034957729279994965, -0.13750624656677246, -0.0664287880063057, 0.33052825927734375, -0.05778523162007332, -0.18689604103565216, 0.08142156898975372, 0.4675534963607788, 0.11571523547172546, 0.055036354809999466, -0.32542914152145386, 0.18861594796180725, -0.21050161123275757, -0.08559903502464294, 0.39675337076187134, -0.09960653632879257, -0.02812567912042141, 0.11512663215398788, 0.18517787754535675, 0.7302025556564331, -0.024359624832868576, 0.3561069071292877, 0.30669963359832764, 0.3489796817302704, 0.3227379620075226, 0.14027047157287598, 0.08590015769004822, -0.06639152765274048, 0.17811313271522522, 0.5097188353538513, 0.13864777982234955, -0.17348919808864594, -0.09530345350503922, 0.2488917112350464, -0.037515461444854736, 0.05191373452544212, -0.07936002314090729, -0.256780743598938, 0.7211172580718994, 0.07397834211587906, -0.017504770308732986, -0.017789466306567192, -0.11513161659240723, 0.38823068141937256, 0.025132566690444946, -0.2260921746492386, 0.32052353024482727, 0.015358208678662777, 0.03923423960804939, -0.147995263338089, 0.44300031661987305, 0.17758317291736603, -0.11992964893579483, 0.01722853071987629, 0.03267829120159149, 0.029213180765509605, -0.038133323192596436, 0.376260370016098, -0.20344623923301697, -0.04456658288836479, -0.15187549591064453, 0.33374449610710144, 0.36570340394973755, -0.182334303855896, 0.0857071653008461, 0.00861499086022377, -0.06453468650579453, 0.1282401978969574, -0.282154381275177, -0.2567256987094879, -0.35954129695892334, -0.0734788179397583, 0.2859939932823181, 0.08782694488763809, -0.02358522266149521, -0.3561066687107086, 0.19683939218521118, -0.20097766816616058, 0.2603253126144409, 0.5076432824134827, -0.082948237657547, -0.33506858348846436, 0.12082626670598984, -0.20253823697566986, -0.098695307970047, -0.08160121738910675, -0.015437527559697628, -0.25015029311180115, 0.4468240737915039, 0.3033715784549713, 0.1811048835515976, 0.13285008072853088, -0.30817291140556335, -0.1469319760799408, 0.2292756289243698, 0.07336155325174332, 0.39685317873954773, 0.1306169033050537, 0.13957910239696503, 0.01950252801179886, -0.2597525119781494, 0.1026618704199791, 0.26005086302757263, -0.369818776845932, 0.06309732794761658, -0.20082278549671173, 0.3313863277435303, 0.18858693540096283, 0.14395077526569366, 0.0703725591301918, -0.2612047493457794, 0.33008256554603577, -0.5336963534355164, 0.015142831951379776, 0.17362315952777863, -0.17073902487754822, -0.011842135339975357, 0.0940505862236023, 0.24433143436908722, 0.1495983600616455, -0.2138991504907608, -0.015042001381516457, 0.10404981672763824, 0.1490647941827774, -0.08719249069690704, -0.07158751785755157, 0.23211127519607544, -0.28313204646110535, 0.22158727049827576, -0.09670943021774292, -0.34785178303718567, -0.21374398469924927, -0.05640588700771332, 0.00854836031794548, 0.16136473417282104, -0.00046112044947221875, -0.07110967487096786, -0.2088882178068161, -0.11222666501998901, 0.3780834674835205, 0.43902498483657837, 0.1896011382341385, 0.18039678037166595, -0.3975749611854553, -0.20744843780994415, -0.22808723151683807, -0.10755391418933868, 0.15810830891132355, 0.12977179884910583, 0.27874305844306946, 0.5212618708610535, 0.4793907701969147, -0.20062771439552307, -0.16642728447914124, 0.15008240938186646, -0.1628766655921936, -0.09691024571657181, 0.2512495517730713, 0.29191625118255615, -0.32703959941864014, -0.03342476487159729, -0.3744894564151764, 0.1483440101146698, 0.2391805499792099, -0.1032814085483551, -0.21875283122062683, -0.11641653627157211, -0.29333171248435974, 0.005313386209309101, 0.23889607191085815, 0.16035346686840057, -0.22271728515625, 0.2792951166629791, 0.32291316986083984, -0.15448182821273804, -0.2283831387758255, -0.07410761713981628, -0.2569112181663513, 0.1971893012523651, -0.12804992496967316, 0.07396193593740463, 0.06812528520822525, 0.14894115924835205, 0.16606202721595764, 0.22348861396312714, -0.22077487409114838, -0.07042628526687622, -0.023595066741108894, 0.4113547205924988, -0.21722155809402466, -0.0713556557893753, 0.07111639529466629, -0.06501805782318115, -0.12233684211969376, 0.175719752907753, 0.2719097435474396, -0.34460538625717163, -0.16519217193126678, 0.1269792914390564, -0.16741052269935608, 0.15710125863552094, -0.10142043232917786, 0.13267776370048523, 0.16102497279644012, -0.02983798459172249, 0.18287278711795807, -0.30725499987602234, 0.122006356716156, 0.33037659525871277, -0.21835382282733917, -0.18063783645629883, -0.02361406944692135, -0.0012449544155970216, 0.18154779076576233, 0.00046726991422474384, 0.15430325269699097, -0.012253607623279095, -0.07090545445680618, -0.14934834837913513, 0.2833273112773895, -0.18745829164981842, 0.14623665809631348, 0.16488955914974213, -0.014446179382503033, 0.007180539425462484, 0.05274374783039093, -0.14324092864990234, 0.21595542132854462, -0.1608656644821167, 0.14361752569675446, 0.22835978865623474, -0.04225693270564079, -0.030568663030862808, -0.16366046667099, 0.4604262113571167, -0.12943875789642334, -0.06527125835418701, -0.33992481231689453, 0.13080939650535583, 0.12341167777776718, 0.18820738792419434, 0.10587368160486221, -0.2371627390384674, -0.010340157896280289, -0.36640840768814087, 0.09143810719251633, 0.10343474894762039, -0.024791309610009193, 0.16370685398578644, -0.13945676386356354, 0.26784825325012207, -0.005391956306993961, 0.0981324315071106, -0.216912180185318, -0.03755146637558937, -0.17155520617961884, 0.18151219189167023, 0.07584147155284882, 0.34163597226142883, 0.045257773250341415, -0.3695693910121918, -0.19131016731262207, -0.17028751969337463, -0.3054065704345703, 0.12452279776334763, 0.08356628566980362, 0.21624012291431427, -0.07306119799613953, 0.3667183816432953, 0.018324915319681168, -0.22890602052211761, 0.1777675300836563, -0.2942492365837097, -0.09810123592615128, 0.1364148110151291, 0.0489913746714592, 0.03002418577671051, 0.015623737126588821, -0.39837557077407837, 0.16967011988162994, -0.025267111137509346, -0.3353496491909027, 0.2128213346004486, 0.1675470918416977, 0.19577676057815552, -0.0002914930519182235, -0.269523561000824, 0.1543632298707962, -0.10914473980665207, -0.2754446268081665, -0.31960558891296387, 0.2173374742269516, -0.09472612291574478, -0.27570998668670654, 0.015793723985552788, 0.022844428196549416, 0.2203959971666336, -0.214167058467865, -0.42061445116996765, 0.1293906569480896, -0.006958178244531155, -0.03883961960673332, -0.17648175358772278, 0.09689375013113022, 0.07325517386198044, -0.011813079938292503, -0.15009330213069916, -0.10606790333986282, -0.0821758359670639, 0.06795017421245575, -0.23679983615875244, 0.1513836532831192, -0.16862840950489044, 0.05716438218951225, -0.34902119636535645, 0.22700683772563934, -0.21372343599796295, 0.382899671792984, 0.18096603453159332, 0.0965922474861145, -0.00377425504848361, -0.04062126204371452, 0.020970087498426437, 0.1927812546491623, -0.013785568065941334, 0.08534833043813705, 0.5557149052619934, 0.03411794826388359, -0.3920517861843109, 0.03157060220837593, -0.02319800853729248, -0.3324476480484009, -0.26718729734420776, -0.03598398715257645, 0.15986940264701843, -0.18622657656669617, 0.22722415626049042, 0.106064073741436, -0.2576233744621277, -0.29099640250205994, 0.22303062677383423, 0.20110735297203064, -0.06320416927337646, 0.011678779497742653, -0.3038094639778137, -0.06608669459819794, -0.10511372983455658, 0.054804299026727676, 0.1513475477695465, -0.08233334124088287, 0.03873281180858612, -0.2598314881324768, 0.2723686099052429, -0.2772366404533386, 0.3193316161632538, -0.14099934697151184, 0.5250706672668457, 0.21619799733161926, 0.0833469033241272, 0.073921337723732, -0.15782341361045837, 0.0025286281015723944, -0.1876431256532669, 0.5099050402641296, 0.013053993694484234, 0.06254705041646957, 0.0319652259349823, 0.22729890048503876, 0.059494949877262115, -0.32226505875587463, -0.45807862281799316, -0.38621237874031067, -0.17744818329811096, -0.17797084152698517, 0.00861845538020134, -0.1128436028957367, 0.16433842480182648, -0.26861709356307983, -0.2884769141674042, -0.16507722437381744, -0.03997446596622467, -0.10230813920497894, 0.3221435546875, 0.035561803728342056, -0.05660824105143547, -0.004399839323014021, 0.1646539866924286, 0.055369071662425995, 0.027120433747768402, 0.25426793098449707, -0.2280670702457428, 0.27210959792137146, -0.19835427403450012, -0.34593331813812256, -0.19735412299633026, 0.20950521528720856, 0.12447318434715271, -0.027706701308488846, 0.30242207646369934, -0.08443652838468552, -0.09954513609409332, -0.10948686301708221, 0.040044259279966354, 0.003010920947417617, -0.12570393085479736, -0.2561761736869812, 0.6516229510307312, 0.08143067359924316, -0.1390940099954605, 0.2864086925983429, 0.48308318853378296, -0.46222683787345886, -0.1230812668800354, 0.25036364793777466, 0.9538981914520264, -0.010617620311677456, 0.13728010654449463, 0.14284637570381165, 0.24672479927539825, -0.053271904587745667, -0.10163380205631256, 0.08211307972669601, -0.5751748085021973, 0.147882878780365, -0.021065175533294678, 0.08676902949810028, -0.1053166389465332, -0.22162026166915894, -0.28535786271095276, -0.1429312825202942, -0.3505580723285675, 0.17488697171211243, 0.0892304852604866, -0.07903515547513962, 0.07426206022500992, -0.15579096972942352, -0.2938920557498932, 0.2073778510093689, 0.18282832205295563, 0.06804278492927551, -0.2264470010995865, 0.07354041934013367, -0.008381489664316177, -0.24108515679836273, 0.06139688193798065, 0.3123161792755127, 0.021871844306588173, 0.051887087523937225, -0.10694839060306549, -0.12925152480602264, -0.22016657888889313, 0.32729169726371765, 0.06426820904016495, 0.3204983174800873, -0.14472340047359467, 0.2438744604587555, 0.044057026505470276, -0.11195109784603119, -0.36767110228538513, 0.15290112793445587, 0.07366152107715607, -0.3522452116012573, -0.5174412727355957, 0.10909807682037354, -0.15485616028308868, -0.23789365589618683, -0.1045120507478714, 0.3637408912181854, 0.15194900333881378, -0.20700983703136444, -0.2137122005224228, -0.08712003380060196, 0.19511833786964417, -0.21444709599018097, 0.25210657715797424, -0.09137725085020065, -0.1319587528705597, 0.14164628088474274, 0.47279900312423706, -0.17141620814800262, -0.20224541425704956, 0.3658616542816162, 0.17134171724319458, 0.16185253858566284, 0.3686774671077728, -0.016362708061933517, -0.24118740856647491, -0.2500136196613312, 0.13809505105018616, -0.0382494181394577, -0.1571967601776123, -0.14144352078437805, -0.08325318247079849, -0.22913306951522827, -0.08946505188941956, 0.6060255169868469, -0.061769384890794754, -0.05247548595070839, 0.14918385446071625, -0.42028993368148804, 0.030422206968069077, 0.09413326531648636, -0.4968563914299011, -0.04469883069396019, 0.49389001727104187, -0.41618743538856506, -0.09193067252635956, 0.31815338134765625, -0.40242186188697815, -0.025146085768938065, -0.21743544936180115, 0.003959995228797197, -0.15775057673454285, 0.07297827303409576, 0.005234841722995043, 0.011410943232476711, 0.31974655389785767, -0.044728733599185944, 0.18809668719768524, -0.3851335346698761, -0.29629868268966675, 0.07552934437990189, 0.06517066061496735, -0.03637243062257767, 0.19530941545963287, 0.08556479960680008, 0.05508505925536156, -0.07141438871622086, 0.34951940178871155, -0.14588722586631775, 0.2039104551076889, -0.08731324970722198, 0.3361898362636566, 0.10439439117908478, -0.4328235685825348, 0.26857250928878784, -0.13673672080039978, -0.10692355781793594, -0.20420153439044952, -0.1567704677581787, 0.03280532732605934, 0.011363254860043526, 0.3673781752586365, 0.0765085518360138, 0.001055533648468554, 0.1816612035036087, 0.16062021255493164, -0.22612811625003815, 0.10498140007257462, 0.1700975000858307, -0.47597452998161316, 0.23824940621852875, -0.2921092212200165, -0.1004384383559227, -0.17569124698638916, 0.3798488676548004, -0.18864327669143677, -0.37290242314338684, -0.09750954061746597, -0.19904105365276337, -0.05083063244819641, 0.36155834794044495, 0.2404029667377472, -0.8276278376579285, 0.15624387562274933, 0.2418944388628006, -0.06490258872509003, -0.24915292859077454, -0.1436111479997635, 0.36544445157051086, -0.06723387539386749, 0.15281593799591064, -0.0760791152715683, -0.07536320388317108, -0.1359010636806488, 0.1544085443019867, 0.2619549632072449, -0.03567960485816002, 0.11130062490701675, 0.09960541874170303, -0.41428032517433167, -0.29520735144615173, 0.32440251111984253, 0.1824132353067398, -0.338255375623703, 0.014966520480811596, 0.3729088604450226, -0.23808540403842926, 0.251553475856781, -0.06878240406513214, -0.4738897681236267, 0.019387774169445038, -0.33050739765167236, -0.39460036158561707, -0.02294836938381195, -0.1979217529296875, 0.25101134181022644, 0.06082306429743767, 0.04147372022271156, 0.05739450454711914, -0.07338586449623108, 0.06600379198789597, -0.3133988082408905, 0.08826948702335358, 0.13379105925559998, 0.20186878740787506, 0.009363966062664986, -0.23536640405654907, -0.0892769992351532, 0.07498419284820557, 0.04355761408805847, 0.2926335036754608, -0.0975179448723793, 0.2921801507472992, 0.25496020913124084, 0.02452942728996277, -0.3089281916618347, 0.11144347488880157, -0.055891599506139755, -0.004847659729421139, 0.0627417340874672, 0.36192724108695984, 0.21679706871509552, 0.017226580530405045, 0.2804197669029236, -0.35639670491218567, -0.1432560235261917, 0.25652003288269043, 0.1579488068819046, 0.021247200667858124, -0.09651878476142883, -0.14015120267868042, -0.009055934846401215, -0.3617519736289978, 0.13646133244037628, -0.0922340452671051, 0.5795391201972961, -0.14735576510429382, 0.1518571674823761, 0.08384266495704651, 0.15438228845596313, 0.1234448179602623, 0.14638851583003998, 0.49250343441963196, -0.1325821876525879, -0.41552111506462097, 0.0206682737916708, -0.17433474957942963, -0.29799729585647583, 0.3102048337459564, -0.19069533050060272, -0.128765270113945, 0.2279520481824875, -0.06919682025909424, -0.1797219216823578, -0.10789302736520767, 0.2278270721435547, -0.1766202598810196, 0.051403313875198364, -0.03227263316512108, -0.19173160195350647, -0.21925321221351624, 0.3369482457637787, -0.1147870272397995, -0.33479928970336914, -0.4284440279006958, 0.18662987649440765, -0.11244816333055496, 0.32880255579948425, 0.02550608105957508, 0.08283672481775284, -0.24454164505004883, 0.3583890497684479, 0.4232812523841858, -0.0005656526191160083, 0.36749619245529175, -0.22052089869976044, -0.225543811917305, -0.1454256922006607, -0.09242714941501617, -0.06858482211828232, 0.05963200330734253, 0.05732181295752525, 0.19515475630760193, 0.042458124458789825, -0.1083897054195404, -0.07501257210969925, 0.31541481614112854, 0.11099313199520111, 0.1560124307870865, -0.2264050394296646, 0.11720432341098785, 0.09022819995880127, 0.2290375828742981, 0.19147449731826782, 0.16817030310630798, -0.08049681782722473, -0.10731125622987747, -0.07392466068267822, -0.31816139817237854, 0.10530798882246017, -0.09193214774131775, -0.19328774511814117, -0.19440637528896332, 0.1594412922859192, -0.40054967999458313, -0.04651827737689018, -0.35281187295913696, 0.021615859121084213, 0.22127917408943176, -0.009437782689929008, -0.23114266991615295, 0.16140592098236084, -0.05976616218686104, -0.012796295806765556, -0.05903240665793419, -0.1400945484638214, 0.35452553629875183, -0.15387190878391266, -0.19635704159736633, -0.3375867009162903 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
@alejandrocros and @lhoestq - you added the wiki_bio dataset in #1173. It doesn't work anymore. Can you take a look at this?
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
22
Bug in wiki bio load
[ 0.30840298533439636, -0.5624250769615173, -0.12597805261611938, -0.013644849881529808, 0.08347482234239578, 0.13847452402114868, 0.43073099851608276, 0.24938884377479553, 0.47189339995384216, 0.25346195697784424, 0.02254807949066162, -0.055451080203056335, 0.6842508912086487, 0.1790897697210312, 0.09426698833703995, 0.20373187959194183, 0.2671866714954376, 0.16921401023864746, 0.012761751189827919, -0.3011634647846222, -0.3844423294067383, 0.18699799478054047, -0.27112558484077454, 0.18317537009716034, 0.02034207619726658, 0.09148609638214111, 0.3470347821712494, 0.3104603588581085, 0.11730852723121643, -0.13871200382709503, 0.015801118686795235, -0.1594325304031372, 0.1108846440911293, -0.1276824176311493, -0.00010672632924979553, -0.05500847101211548, 0.3647199273109436, 0.12393384426832199, -0.2635716497898102, 0.3424321413040161, -0.1367318481206894, 0.1696062982082367, -0.02450854517519474, -0.405065655708313, 0.18080079555511475, 0.40673285722732544, -0.24929359555244446, 0.034957729279994965, -0.13750624656677246, -0.0664287880063057, 0.33052825927734375, -0.05778523162007332, -0.18689604103565216, 0.08142156898975372, 0.4675534963607788, 0.11571523547172546, 0.055036354809999466, -0.32542914152145386, 0.18861594796180725, -0.21050161123275757, -0.08559903502464294, 0.39675337076187134, -0.09960653632879257, -0.02812567912042141, 0.11512663215398788, 0.18517787754535675, 0.7302025556564331, -0.024359624832868576, 0.3561069071292877, 0.30669963359832764, 0.3489796817302704, 0.3227379620075226, 0.14027047157287598, 0.08590015769004822, -0.06639152765274048, 0.17811313271522522, 0.5097188353538513, 0.13864777982234955, -0.17348919808864594, -0.09530345350503922, 0.2488917112350464, -0.037515461444854736, 0.05191373452544212, -0.07936002314090729, -0.256780743598938, 0.7211172580718994, 0.07397834211587906, -0.017504770308732986, -0.017789466306567192, -0.11513161659240723, 0.38823068141937256, 0.025132566690444946, -0.2260921746492386, 0.32052353024482727, 0.015358208678662777, 0.03923423960804939, -0.147995263338089, 0.44300031661987305, 0.17758317291736603, -0.11992964893579483, 0.01722853071987629, 0.03267829120159149, 0.029213180765509605, -0.038133323192596436, 0.376260370016098, -0.20344623923301697, -0.04456658288836479, -0.15187549591064453, 0.33374449610710144, 0.36570340394973755, -0.182334303855896, 0.0857071653008461, 0.00861499086022377, -0.06453468650579453, 0.1282401978969574, -0.282154381275177, -0.2567256987094879, -0.35954129695892334, -0.0734788179397583, 0.2859939932823181, 0.08782694488763809, -0.02358522266149521, -0.3561066687107086, 0.19683939218521118, -0.20097766816616058, 0.2603253126144409, 0.5076432824134827, -0.082948237657547, -0.33506858348846436, 0.12082626670598984, -0.20253823697566986, -0.098695307970047, -0.08160121738910675, -0.015437527559697628, -0.25015029311180115, 0.4468240737915039, 0.3033715784549713, 0.1811048835515976, 0.13285008072853088, -0.30817291140556335, -0.1469319760799408, 0.2292756289243698, 0.07336155325174332, 0.39685317873954773, 0.1306169033050537, 0.13957910239696503, 0.01950252801179886, -0.2597525119781494, 0.1026618704199791, 0.26005086302757263, -0.369818776845932, 0.06309732794761658, -0.20082278549671173, 0.3313863277435303, 0.18858693540096283, 0.14395077526569366, 0.0703725591301918, -0.2612047493457794, 0.33008256554603577, -0.5336963534355164, 0.015142831951379776, 0.17362315952777863, -0.17073902487754822, -0.011842135339975357, 0.0940505862236023, 0.24433143436908722, 0.1495983600616455, -0.2138991504907608, -0.015042001381516457, 0.10404981672763824, 0.1490647941827774, -0.08719249069690704, -0.07158751785755157, 0.23211127519607544, -0.28313204646110535, 0.22158727049827576, -0.09670943021774292, -0.34785178303718567, -0.21374398469924927, -0.05640588700771332, 0.00854836031794548, 0.16136473417282104, -0.00046112044947221875, -0.07110967487096786, -0.2088882178068161, -0.11222666501998901, 0.3780834674835205, 0.43902498483657837, 0.1896011382341385, 0.18039678037166595, -0.3975749611854553, -0.20744843780994415, -0.22808723151683807, -0.10755391418933868, 0.15810830891132355, 0.12977179884910583, 0.27874305844306946, 0.5212618708610535, 0.4793907701969147, -0.20062771439552307, -0.16642728447914124, 0.15008240938186646, -0.1628766655921936, -0.09691024571657181, 0.2512495517730713, 0.29191625118255615, -0.32703959941864014, -0.03342476487159729, -0.3744894564151764, 0.1483440101146698, 0.2391805499792099, -0.1032814085483551, -0.21875283122062683, -0.11641653627157211, -0.29333171248435974, 0.005313386209309101, 0.23889607191085815, 0.16035346686840057, -0.22271728515625, 0.2792951166629791, 0.32291316986083984, -0.15448182821273804, -0.2283831387758255, -0.07410761713981628, -0.2569112181663513, 0.1971893012523651, -0.12804992496967316, 0.07396193593740463, 0.06812528520822525, 0.14894115924835205, 0.16606202721595764, 0.22348861396312714, -0.22077487409114838, -0.07042628526687622, -0.023595066741108894, 0.4113547205924988, -0.21722155809402466, -0.0713556557893753, 0.07111639529466629, -0.06501805782318115, -0.12233684211969376, 0.175719752907753, 0.2719097435474396, -0.34460538625717163, -0.16519217193126678, 0.1269792914390564, -0.16741052269935608, 0.15710125863552094, -0.10142043232917786, 0.13267776370048523, 0.16102497279644012, -0.02983798459172249, 0.18287278711795807, -0.30725499987602234, 0.122006356716156, 0.33037659525871277, -0.21835382282733917, -0.18063783645629883, -0.02361406944692135, -0.0012449544155970216, 0.18154779076576233, 0.00046726991422474384, 0.15430325269699097, -0.012253607623279095, -0.07090545445680618, -0.14934834837913513, 0.2833273112773895, -0.18745829164981842, 0.14623665809631348, 0.16488955914974213, -0.014446179382503033, 0.007180539425462484, 0.05274374783039093, -0.14324092864990234, 0.21595542132854462, -0.1608656644821167, 0.14361752569675446, 0.22835978865623474, -0.04225693270564079, -0.030568663030862808, -0.16366046667099, 0.4604262113571167, -0.12943875789642334, -0.06527125835418701, -0.33992481231689453, 0.13080939650535583, 0.12341167777776718, 0.18820738792419434, 0.10587368160486221, -0.2371627390384674, -0.010340157896280289, -0.36640840768814087, 0.09143810719251633, 0.10343474894762039, -0.024791309610009193, 0.16370685398578644, -0.13945676386356354, 0.26784825325012207, -0.005391956306993961, 0.0981324315071106, -0.216912180185318, -0.03755146637558937, -0.17155520617961884, 0.18151219189167023, 0.07584147155284882, 0.34163597226142883, 0.045257773250341415, -0.3695693910121918, -0.19131016731262207, -0.17028751969337463, -0.3054065704345703, 0.12452279776334763, 0.08356628566980362, 0.21624012291431427, -0.07306119799613953, 0.3667183816432953, 0.018324915319681168, -0.22890602052211761, 0.1777675300836563, -0.2942492365837097, -0.09810123592615128, 0.1364148110151291, 0.0489913746714592, 0.03002418577671051, 0.015623737126588821, -0.39837557077407837, 0.16967011988162994, -0.025267111137509346, -0.3353496491909027, 0.2128213346004486, 0.1675470918416977, 0.19577676057815552, -0.0002914930519182235, -0.269523561000824, 0.1543632298707962, -0.10914473980665207, -0.2754446268081665, -0.31960558891296387, 0.2173374742269516, -0.09472612291574478, -0.27570998668670654, 0.015793723985552788, 0.022844428196549416, 0.2203959971666336, -0.214167058467865, -0.42061445116996765, 0.1293906569480896, -0.006958178244531155, -0.03883961960673332, -0.17648175358772278, 0.09689375013113022, 0.07325517386198044, -0.011813079938292503, -0.15009330213069916, -0.10606790333986282, -0.0821758359670639, 0.06795017421245575, -0.23679983615875244, 0.1513836532831192, -0.16862840950489044, 0.05716438218951225, -0.34902119636535645, 0.22700683772563934, -0.21372343599796295, 0.382899671792984, 0.18096603453159332, 0.0965922474861145, -0.00377425504848361, -0.04062126204371452, 0.020970087498426437, 0.1927812546491623, -0.013785568065941334, 0.08534833043813705, 0.5557149052619934, 0.03411794826388359, -0.3920517861843109, 0.03157060220837593, -0.02319800853729248, -0.3324476480484009, -0.26718729734420776, -0.03598398715257645, 0.15986940264701843, -0.18622657656669617, 0.22722415626049042, 0.106064073741436, -0.2576233744621277, -0.29099640250205994, 0.22303062677383423, 0.20110735297203064, -0.06320416927337646, 0.011678779497742653, -0.3038094639778137, -0.06608669459819794, -0.10511372983455658, 0.054804299026727676, 0.1513475477695465, -0.08233334124088287, 0.03873281180858612, -0.2598314881324768, 0.2723686099052429, -0.2772366404533386, 0.3193316161632538, -0.14099934697151184, 0.5250706672668457, 0.21619799733161926, 0.0833469033241272, 0.073921337723732, -0.15782341361045837, 0.0025286281015723944, -0.1876431256532669, 0.5099050402641296, 0.013053993694484234, 0.06254705041646957, 0.0319652259349823, 0.22729890048503876, 0.059494949877262115, -0.32226505875587463, -0.45807862281799316, -0.38621237874031067, -0.17744818329811096, -0.17797084152698517, 0.00861845538020134, -0.1128436028957367, 0.16433842480182648, -0.26861709356307983, -0.2884769141674042, -0.16507722437381744, -0.03997446596622467, -0.10230813920497894, 0.3221435546875, 0.035561803728342056, -0.05660824105143547, -0.004399839323014021, 0.1646539866924286, 0.055369071662425995, 0.027120433747768402, 0.25426793098449707, -0.2280670702457428, 0.27210959792137146, -0.19835427403450012, -0.34593331813812256, -0.19735412299633026, 0.20950521528720856, 0.12447318434715271, -0.027706701308488846, 0.30242207646369934, -0.08443652838468552, -0.09954513609409332, -0.10948686301708221, 0.040044259279966354, 0.003010920947417617, -0.12570393085479736, -0.2561761736869812, 0.6516229510307312, 0.08143067359924316, -0.1390940099954605, 0.2864086925983429, 0.48308318853378296, -0.46222683787345886, -0.1230812668800354, 0.25036364793777466, 0.9538981914520264, -0.010617620311677456, 0.13728010654449463, 0.14284637570381165, 0.24672479927539825, -0.053271904587745667, -0.10163380205631256, 0.08211307972669601, -0.5751748085021973, 0.147882878780365, -0.021065175533294678, 0.08676902949810028, -0.1053166389465332, -0.22162026166915894, -0.28535786271095276, -0.1429312825202942, -0.3505580723285675, 0.17488697171211243, 0.0892304852604866, -0.07903515547513962, 0.07426206022500992, -0.15579096972942352, -0.2938920557498932, 0.2073778510093689, 0.18282832205295563, 0.06804278492927551, -0.2264470010995865, 0.07354041934013367, -0.008381489664316177, -0.24108515679836273, 0.06139688193798065, 0.3123161792755127, 0.021871844306588173, 0.051887087523937225, -0.10694839060306549, -0.12925152480602264, -0.22016657888889313, 0.32729169726371765, 0.06426820904016495, 0.3204983174800873, -0.14472340047359467, 0.2438744604587555, 0.044057026505470276, -0.11195109784603119, -0.36767110228538513, 0.15290112793445587, 0.07366152107715607, -0.3522452116012573, -0.5174412727355957, 0.10909807682037354, -0.15485616028308868, -0.23789365589618683, -0.1045120507478714, 0.3637408912181854, 0.15194900333881378, -0.20700983703136444, -0.2137122005224228, -0.08712003380060196, 0.19511833786964417, -0.21444709599018097, 0.25210657715797424, -0.09137725085020065, -0.1319587528705597, 0.14164628088474274, 0.47279900312423706, -0.17141620814800262, -0.20224541425704956, 0.3658616542816162, 0.17134171724319458, 0.16185253858566284, 0.3686774671077728, -0.016362708061933517, -0.24118740856647491, -0.2500136196613312, 0.13809505105018616, -0.0382494181394577, -0.1571967601776123, -0.14144352078437805, -0.08325318247079849, -0.22913306951522827, -0.08946505188941956, 0.6060255169868469, -0.061769384890794754, -0.05247548595070839, 0.14918385446071625, -0.42028993368148804, 0.030422206968069077, 0.09413326531648636, -0.4968563914299011, -0.04469883069396019, 0.49389001727104187, -0.41618743538856506, -0.09193067252635956, 0.31815338134765625, -0.40242186188697815, -0.025146085768938065, -0.21743544936180115, 0.003959995228797197, -0.15775057673454285, 0.07297827303409576, 0.005234841722995043, 0.011410943232476711, 0.31974655389785767, -0.044728733599185944, 0.18809668719768524, -0.3851335346698761, -0.29629868268966675, 0.07552934437990189, 0.06517066061496735, -0.03637243062257767, 0.19530941545963287, 0.08556479960680008, 0.05508505925536156, -0.07141438871622086, 0.34951940178871155, -0.14588722586631775, 0.2039104551076889, -0.08731324970722198, 0.3361898362636566, 0.10439439117908478, -0.4328235685825348, 0.26857250928878784, -0.13673672080039978, -0.10692355781793594, -0.20420153439044952, -0.1567704677581787, 0.03280532732605934, 0.011363254860043526, 0.3673781752586365, 0.0765085518360138, 0.001055533648468554, 0.1816612035036087, 0.16062021255493164, -0.22612811625003815, 0.10498140007257462, 0.1700975000858307, -0.47597452998161316, 0.23824940621852875, -0.2921092212200165, -0.1004384383559227, -0.17569124698638916, 0.3798488676548004, -0.18864327669143677, -0.37290242314338684, -0.09750954061746597, -0.19904105365276337, -0.05083063244819641, 0.36155834794044495, 0.2404029667377472, -0.8276278376579285, 0.15624387562274933, 0.2418944388628006, -0.06490258872509003, -0.24915292859077454, -0.1436111479997635, 0.36544445157051086, -0.06723387539386749, 0.15281593799591064, -0.0760791152715683, -0.07536320388317108, -0.1359010636806488, 0.1544085443019867, 0.2619549632072449, -0.03567960485816002, 0.11130062490701675, 0.09960541874170303, -0.41428032517433167, -0.29520735144615173, 0.32440251111984253, 0.1824132353067398, -0.338255375623703, 0.014966520480811596, 0.3729088604450226, -0.23808540403842926, 0.251553475856781, -0.06878240406513214, -0.4738897681236267, 0.019387774169445038, -0.33050739765167236, -0.39460036158561707, -0.02294836938381195, -0.1979217529296875, 0.25101134181022644, 0.06082306429743767, 0.04147372022271156, 0.05739450454711914, -0.07338586449623108, 0.06600379198789597, -0.3133988082408905, 0.08826948702335358, 0.13379105925559998, 0.20186878740787506, 0.009363966062664986, -0.23536640405654907, -0.0892769992351532, 0.07498419284820557, 0.04355761408805847, 0.2926335036754608, -0.0975179448723793, 0.2921801507472992, 0.25496020913124084, 0.02452942728996277, -0.3089281916618347, 0.11144347488880157, -0.055891599506139755, -0.004847659729421139, 0.0627417340874672, 0.36192724108695984, 0.21679706871509552, 0.017226580530405045, 0.2804197669029236, -0.35639670491218567, -0.1432560235261917, 0.25652003288269043, 0.1579488068819046, 0.021247200667858124, -0.09651878476142883, -0.14015120267868042, -0.009055934846401215, -0.3617519736289978, 0.13646133244037628, -0.0922340452671051, 0.5795391201972961, -0.14735576510429382, 0.1518571674823761, 0.08384266495704651, 0.15438228845596313, 0.1234448179602623, 0.14638851583003998, 0.49250343441963196, -0.1325821876525879, -0.41552111506462097, 0.0206682737916708, -0.17433474957942963, -0.29799729585647583, 0.3102048337459564, -0.19069533050060272, -0.128765270113945, 0.2279520481824875, -0.06919682025909424, -0.1797219216823578, -0.10789302736520767, 0.2278270721435547, -0.1766202598810196, 0.051403313875198364, -0.03227263316512108, -0.19173160195350647, -0.21925321221351624, 0.3369482457637787, -0.1147870272397995, -0.33479928970336914, -0.4284440279006958, 0.18662987649440765, -0.11244816333055496, 0.32880255579948425, 0.02550608105957508, 0.08283672481775284, -0.24454164505004883, 0.3583890497684479, 0.4232812523841858, -0.0005656526191160083, 0.36749619245529175, -0.22052089869976044, -0.225543811917305, -0.1454256922006607, -0.09242714941501617, -0.06858482211828232, 0.05963200330734253, 0.05732181295752525, 0.19515475630760193, 0.042458124458789825, -0.1083897054195404, -0.07501257210969925, 0.31541481614112854, 0.11099313199520111, 0.1560124307870865, -0.2264050394296646, 0.11720432341098785, 0.09022819995880127, 0.2290375828742981, 0.19147449731826782, 0.16817030310630798, -0.08049681782722473, -0.10731125622987747, -0.07392466068267822, -0.31816139817237854, 0.10530798882246017, -0.09193214774131775, -0.19328774511814117, -0.19440637528896332, 0.1594412922859192, -0.40054967999458313, -0.04651827737689018, -0.35281187295913696, 0.021615859121084213, 0.22127917408943176, -0.009437782689929008, -0.23114266991615295, 0.16140592098236084, -0.05976616218686104, -0.012796295806765556, -0.05903240665793419, -0.1400945484638214, 0.35452553629875183, -0.15387190878391266, -0.19635704159736633, -0.3375867009162903 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
And if something is wrong with Google Drive, you could try to download (and collate and unzip) from here: https://github.com/DavidGrangier/wikipedia-biography-dataset
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
20
Bug in wiki bio load
[ 0.30840298533439636, -0.5624250769615173, -0.12597805261611938, -0.013644849881529808, 0.08347482234239578, 0.13847452402114868, 0.43073099851608276, 0.24938884377479553, 0.47189339995384216, 0.25346195697784424, 0.02254807949066162, -0.055451080203056335, 0.6842508912086487, 0.1790897697210312, 0.09426698833703995, 0.20373187959194183, 0.2671866714954376, 0.16921401023864746, 0.012761751189827919, -0.3011634647846222, -0.3844423294067383, 0.18699799478054047, -0.27112558484077454, 0.18317537009716034, 0.02034207619726658, 0.09148609638214111, 0.3470347821712494, 0.3104603588581085, 0.11730852723121643, -0.13871200382709503, 0.015801118686795235, -0.1594325304031372, 0.1108846440911293, -0.1276824176311493, -0.00010672632924979553, -0.05500847101211548, 0.3647199273109436, 0.12393384426832199, -0.2635716497898102, 0.3424321413040161, -0.1367318481206894, 0.1696062982082367, -0.02450854517519474, -0.405065655708313, 0.18080079555511475, 0.40673285722732544, -0.24929359555244446, 0.034957729279994965, -0.13750624656677246, -0.0664287880063057, 0.33052825927734375, -0.05778523162007332, -0.18689604103565216, 0.08142156898975372, 0.4675534963607788, 0.11571523547172546, 0.055036354809999466, -0.32542914152145386, 0.18861594796180725, -0.21050161123275757, -0.08559903502464294, 0.39675337076187134, -0.09960653632879257, -0.02812567912042141, 0.11512663215398788, 0.18517787754535675, 0.7302025556564331, -0.024359624832868576, 0.3561069071292877, 0.30669963359832764, 0.3489796817302704, 0.3227379620075226, 0.14027047157287598, 0.08590015769004822, -0.06639152765274048, 0.17811313271522522, 0.5097188353538513, 0.13864777982234955, -0.17348919808864594, -0.09530345350503922, 0.2488917112350464, -0.037515461444854736, 0.05191373452544212, -0.07936002314090729, -0.256780743598938, 0.7211172580718994, 0.07397834211587906, -0.017504770308732986, -0.017789466306567192, -0.11513161659240723, 0.38823068141937256, 0.025132566690444946, -0.2260921746492386, 0.32052353024482727, 0.015358208678662777, 0.03923423960804939, -0.147995263338089, 0.44300031661987305, 0.17758317291736603, -0.11992964893579483, 0.01722853071987629, 0.03267829120159149, 0.029213180765509605, -0.038133323192596436, 0.376260370016098, -0.20344623923301697, -0.04456658288836479, -0.15187549591064453, 0.33374449610710144, 0.36570340394973755, -0.182334303855896, 0.0857071653008461, 0.00861499086022377, -0.06453468650579453, 0.1282401978969574, -0.282154381275177, -0.2567256987094879, -0.35954129695892334, -0.0734788179397583, 0.2859939932823181, 0.08782694488763809, -0.02358522266149521, -0.3561066687107086, 0.19683939218521118, -0.20097766816616058, 0.2603253126144409, 0.5076432824134827, -0.082948237657547, -0.33506858348846436, 0.12082626670598984, -0.20253823697566986, -0.098695307970047, -0.08160121738910675, -0.015437527559697628, -0.25015029311180115, 0.4468240737915039, 0.3033715784549713, 0.1811048835515976, 0.13285008072853088, -0.30817291140556335, -0.1469319760799408, 0.2292756289243698, 0.07336155325174332, 0.39685317873954773, 0.1306169033050537, 0.13957910239696503, 0.01950252801179886, -0.2597525119781494, 0.1026618704199791, 0.26005086302757263, -0.369818776845932, 0.06309732794761658, -0.20082278549671173, 0.3313863277435303, 0.18858693540096283, 0.14395077526569366, 0.0703725591301918, -0.2612047493457794, 0.33008256554603577, -0.5336963534355164, 0.015142831951379776, 0.17362315952777863, -0.17073902487754822, -0.011842135339975357, 0.0940505862236023, 0.24433143436908722, 0.1495983600616455, -0.2138991504907608, -0.015042001381516457, 0.10404981672763824, 0.1490647941827774, -0.08719249069690704, -0.07158751785755157, 0.23211127519607544, -0.28313204646110535, 0.22158727049827576, -0.09670943021774292, -0.34785178303718567, -0.21374398469924927, -0.05640588700771332, 0.00854836031794548, 0.16136473417282104, -0.00046112044947221875, -0.07110967487096786, -0.2088882178068161, -0.11222666501998901, 0.3780834674835205, 0.43902498483657837, 0.1896011382341385, 0.18039678037166595, -0.3975749611854553, -0.20744843780994415, -0.22808723151683807, -0.10755391418933868, 0.15810830891132355, 0.12977179884910583, 0.27874305844306946, 0.5212618708610535, 0.4793907701969147, -0.20062771439552307, -0.16642728447914124, 0.15008240938186646, -0.1628766655921936, -0.09691024571657181, 0.2512495517730713, 0.29191625118255615, -0.32703959941864014, -0.03342476487159729, -0.3744894564151764, 0.1483440101146698, 0.2391805499792099, -0.1032814085483551, -0.21875283122062683, -0.11641653627157211, -0.29333171248435974, 0.005313386209309101, 0.23889607191085815, 0.16035346686840057, -0.22271728515625, 0.2792951166629791, 0.32291316986083984, -0.15448182821273804, -0.2283831387758255, -0.07410761713981628, -0.2569112181663513, 0.1971893012523651, -0.12804992496967316, 0.07396193593740463, 0.06812528520822525, 0.14894115924835205, 0.16606202721595764, 0.22348861396312714, -0.22077487409114838, -0.07042628526687622, -0.023595066741108894, 0.4113547205924988, -0.21722155809402466, -0.0713556557893753, 0.07111639529466629, -0.06501805782318115, -0.12233684211969376, 0.175719752907753, 0.2719097435474396, -0.34460538625717163, -0.16519217193126678, 0.1269792914390564, -0.16741052269935608, 0.15710125863552094, -0.10142043232917786, 0.13267776370048523, 0.16102497279644012, -0.02983798459172249, 0.18287278711795807, -0.30725499987602234, 0.122006356716156, 0.33037659525871277, -0.21835382282733917, -0.18063783645629883, -0.02361406944692135, -0.0012449544155970216, 0.18154779076576233, 0.00046726991422474384, 0.15430325269699097, -0.012253607623279095, -0.07090545445680618, -0.14934834837913513, 0.2833273112773895, -0.18745829164981842, 0.14623665809631348, 0.16488955914974213, -0.014446179382503033, 0.007180539425462484, 0.05274374783039093, -0.14324092864990234, 0.21595542132854462, -0.1608656644821167, 0.14361752569675446, 0.22835978865623474, -0.04225693270564079, -0.030568663030862808, -0.16366046667099, 0.4604262113571167, -0.12943875789642334, -0.06527125835418701, -0.33992481231689453, 0.13080939650535583, 0.12341167777776718, 0.18820738792419434, 0.10587368160486221, -0.2371627390384674, -0.010340157896280289, -0.36640840768814087, 0.09143810719251633, 0.10343474894762039, -0.024791309610009193, 0.16370685398578644, -0.13945676386356354, 0.26784825325012207, -0.005391956306993961, 0.0981324315071106, -0.216912180185318, -0.03755146637558937, -0.17155520617961884, 0.18151219189167023, 0.07584147155284882, 0.34163597226142883, 0.045257773250341415, -0.3695693910121918, -0.19131016731262207, -0.17028751969337463, -0.3054065704345703, 0.12452279776334763, 0.08356628566980362, 0.21624012291431427, -0.07306119799613953, 0.3667183816432953, 0.018324915319681168, -0.22890602052211761, 0.1777675300836563, -0.2942492365837097, -0.09810123592615128, 0.1364148110151291, 0.0489913746714592, 0.03002418577671051, 0.015623737126588821, -0.39837557077407837, 0.16967011988162994, -0.025267111137509346, -0.3353496491909027, 0.2128213346004486, 0.1675470918416977, 0.19577676057815552, -0.0002914930519182235, -0.269523561000824, 0.1543632298707962, -0.10914473980665207, -0.2754446268081665, -0.31960558891296387, 0.2173374742269516, -0.09472612291574478, -0.27570998668670654, 0.015793723985552788, 0.022844428196549416, 0.2203959971666336, -0.214167058467865, -0.42061445116996765, 0.1293906569480896, -0.006958178244531155, -0.03883961960673332, -0.17648175358772278, 0.09689375013113022, 0.07325517386198044, -0.011813079938292503, -0.15009330213069916, -0.10606790333986282, -0.0821758359670639, 0.06795017421245575, -0.23679983615875244, 0.1513836532831192, -0.16862840950489044, 0.05716438218951225, -0.34902119636535645, 0.22700683772563934, -0.21372343599796295, 0.382899671792984, 0.18096603453159332, 0.0965922474861145, -0.00377425504848361, -0.04062126204371452, 0.020970087498426437, 0.1927812546491623, -0.013785568065941334, 0.08534833043813705, 0.5557149052619934, 0.03411794826388359, -0.3920517861843109, 0.03157060220837593, -0.02319800853729248, -0.3324476480484009, -0.26718729734420776, -0.03598398715257645, 0.15986940264701843, -0.18622657656669617, 0.22722415626049042, 0.106064073741436, -0.2576233744621277, -0.29099640250205994, 0.22303062677383423, 0.20110735297203064, -0.06320416927337646, 0.011678779497742653, -0.3038094639778137, -0.06608669459819794, -0.10511372983455658, 0.054804299026727676, 0.1513475477695465, -0.08233334124088287, 0.03873281180858612, -0.2598314881324768, 0.2723686099052429, -0.2772366404533386, 0.3193316161632538, -0.14099934697151184, 0.5250706672668457, 0.21619799733161926, 0.0833469033241272, 0.073921337723732, -0.15782341361045837, 0.0025286281015723944, -0.1876431256532669, 0.5099050402641296, 0.013053993694484234, 0.06254705041646957, 0.0319652259349823, 0.22729890048503876, 0.059494949877262115, -0.32226505875587463, -0.45807862281799316, -0.38621237874031067, -0.17744818329811096, -0.17797084152698517, 0.00861845538020134, -0.1128436028957367, 0.16433842480182648, -0.26861709356307983, -0.2884769141674042, -0.16507722437381744, -0.03997446596622467, -0.10230813920497894, 0.3221435546875, 0.035561803728342056, -0.05660824105143547, -0.004399839323014021, 0.1646539866924286, 0.055369071662425995, 0.027120433747768402, 0.25426793098449707, -0.2280670702457428, 0.27210959792137146, -0.19835427403450012, -0.34593331813812256, -0.19735412299633026, 0.20950521528720856, 0.12447318434715271, -0.027706701308488846, 0.30242207646369934, -0.08443652838468552, -0.09954513609409332, -0.10948686301708221, 0.040044259279966354, 0.003010920947417617, -0.12570393085479736, -0.2561761736869812, 0.6516229510307312, 0.08143067359924316, -0.1390940099954605, 0.2864086925983429, 0.48308318853378296, -0.46222683787345886, -0.1230812668800354, 0.25036364793777466, 0.9538981914520264, -0.010617620311677456, 0.13728010654449463, 0.14284637570381165, 0.24672479927539825, -0.053271904587745667, -0.10163380205631256, 0.08211307972669601, -0.5751748085021973, 0.147882878780365, -0.021065175533294678, 0.08676902949810028, -0.1053166389465332, -0.22162026166915894, -0.28535786271095276, -0.1429312825202942, -0.3505580723285675, 0.17488697171211243, 0.0892304852604866, -0.07903515547513962, 0.07426206022500992, -0.15579096972942352, -0.2938920557498932, 0.2073778510093689, 0.18282832205295563, 0.06804278492927551, -0.2264470010995865, 0.07354041934013367, -0.008381489664316177, -0.24108515679836273, 0.06139688193798065, 0.3123161792755127, 0.021871844306588173, 0.051887087523937225, -0.10694839060306549, -0.12925152480602264, -0.22016657888889313, 0.32729169726371765, 0.06426820904016495, 0.3204983174800873, -0.14472340047359467, 0.2438744604587555, 0.044057026505470276, -0.11195109784603119, -0.36767110228538513, 0.15290112793445587, 0.07366152107715607, -0.3522452116012573, -0.5174412727355957, 0.10909807682037354, -0.15485616028308868, -0.23789365589618683, -0.1045120507478714, 0.3637408912181854, 0.15194900333881378, -0.20700983703136444, -0.2137122005224228, -0.08712003380060196, 0.19511833786964417, -0.21444709599018097, 0.25210657715797424, -0.09137725085020065, -0.1319587528705597, 0.14164628088474274, 0.47279900312423706, -0.17141620814800262, -0.20224541425704956, 0.3658616542816162, 0.17134171724319458, 0.16185253858566284, 0.3686774671077728, -0.016362708061933517, -0.24118740856647491, -0.2500136196613312, 0.13809505105018616, -0.0382494181394577, -0.1571967601776123, -0.14144352078437805, -0.08325318247079849, -0.22913306951522827, -0.08946505188941956, 0.6060255169868469, -0.061769384890794754, -0.05247548595070839, 0.14918385446071625, -0.42028993368148804, 0.030422206968069077, 0.09413326531648636, -0.4968563914299011, -0.04469883069396019, 0.49389001727104187, -0.41618743538856506, -0.09193067252635956, 0.31815338134765625, -0.40242186188697815, -0.025146085768938065, -0.21743544936180115, 0.003959995228797197, -0.15775057673454285, 0.07297827303409576, 0.005234841722995043, 0.011410943232476711, 0.31974655389785767, -0.044728733599185944, 0.18809668719768524, -0.3851335346698761, -0.29629868268966675, 0.07552934437990189, 0.06517066061496735, -0.03637243062257767, 0.19530941545963287, 0.08556479960680008, 0.05508505925536156, -0.07141438871622086, 0.34951940178871155, -0.14588722586631775, 0.2039104551076889, -0.08731324970722198, 0.3361898362636566, 0.10439439117908478, -0.4328235685825348, 0.26857250928878784, -0.13673672080039978, -0.10692355781793594, -0.20420153439044952, -0.1567704677581787, 0.03280532732605934, 0.011363254860043526, 0.3673781752586365, 0.0765085518360138, 0.001055533648468554, 0.1816612035036087, 0.16062021255493164, -0.22612811625003815, 0.10498140007257462, 0.1700975000858307, -0.47597452998161316, 0.23824940621852875, -0.2921092212200165, -0.1004384383559227, -0.17569124698638916, 0.3798488676548004, -0.18864327669143677, -0.37290242314338684, -0.09750954061746597, -0.19904105365276337, -0.05083063244819641, 0.36155834794044495, 0.2404029667377472, -0.8276278376579285, 0.15624387562274933, 0.2418944388628006, -0.06490258872509003, -0.24915292859077454, -0.1436111479997635, 0.36544445157051086, -0.06723387539386749, 0.15281593799591064, -0.0760791152715683, -0.07536320388317108, -0.1359010636806488, 0.1544085443019867, 0.2619549632072449, -0.03567960485816002, 0.11130062490701675, 0.09960541874170303, -0.41428032517433167, -0.29520735144615173, 0.32440251111984253, 0.1824132353067398, -0.338255375623703, 0.014966520480811596, 0.3729088604450226, -0.23808540403842926, 0.251553475856781, -0.06878240406513214, -0.4738897681236267, 0.019387774169445038, -0.33050739765167236, -0.39460036158561707, -0.02294836938381195, -0.1979217529296875, 0.25101134181022644, 0.06082306429743767, 0.04147372022271156, 0.05739450454711914, -0.07338586449623108, 0.06600379198789597, -0.3133988082408905, 0.08826948702335358, 0.13379105925559998, 0.20186878740787506, 0.009363966062664986, -0.23536640405654907, -0.0892769992351532, 0.07498419284820557, 0.04355761408805847, 0.2926335036754608, -0.0975179448723793, 0.2921801507472992, 0.25496020913124084, 0.02452942728996277, -0.3089281916618347, 0.11144347488880157, -0.055891599506139755, -0.004847659729421139, 0.0627417340874672, 0.36192724108695984, 0.21679706871509552, 0.017226580530405045, 0.2804197669029236, -0.35639670491218567, -0.1432560235261917, 0.25652003288269043, 0.1579488068819046, 0.021247200667858124, -0.09651878476142883, -0.14015120267868042, -0.009055934846401215, -0.3617519736289978, 0.13646133244037628, -0.0922340452671051, 0.5795391201972961, -0.14735576510429382, 0.1518571674823761, 0.08384266495704651, 0.15438228845596313, 0.1234448179602623, 0.14638851583003998, 0.49250343441963196, -0.1325821876525879, -0.41552111506462097, 0.0206682737916708, -0.17433474957942963, -0.29799729585647583, 0.3102048337459564, -0.19069533050060272, -0.128765270113945, 0.2279520481824875, -0.06919682025909424, -0.1797219216823578, -0.10789302736520767, 0.2278270721435547, -0.1766202598810196, 0.051403313875198364, -0.03227263316512108, -0.19173160195350647, -0.21925321221351624, 0.3369482457637787, -0.1147870272397995, -0.33479928970336914, -0.4284440279006958, 0.18662987649440765, -0.11244816333055496, 0.32880255579948425, 0.02550608105957508, 0.08283672481775284, -0.24454164505004883, 0.3583890497684479, 0.4232812523841858, -0.0005656526191160083, 0.36749619245529175, -0.22052089869976044, -0.225543811917305, -0.1454256922006607, -0.09242714941501617, -0.06858482211828232, 0.05963200330734253, 0.05732181295752525, 0.19515475630760193, 0.042458124458789825, -0.1083897054195404, -0.07501257210969925, 0.31541481614112854, 0.11099313199520111, 0.1560124307870865, -0.2264050394296646, 0.11720432341098785, 0.09022819995880127, 0.2290375828742981, 0.19147449731826782, 0.16817030310630798, -0.08049681782722473, -0.10731125622987747, -0.07392466068267822, -0.31816139817237854, 0.10530798882246017, -0.09193214774131775, -0.19328774511814117, -0.19440637528896332, 0.1594412922859192, -0.40054967999458313, -0.04651827737689018, -0.35281187295913696, 0.021615859121084213, 0.22127917408943176, -0.009437782689929008, -0.23114266991615295, 0.16140592098236084, -0.05976616218686104, -0.012796295806765556, -0.05903240665793419, -0.1400945484638214, 0.35452553629875183, -0.15387190878391266, -0.19635704159736633, -0.3375867009162903 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
Hi ! Thanks for reporting. I've downloaded the data and concatenated them into a zip file available here: https://huggingface.co/datasets/wiki_bio/tree/main/data I guess we can update the dataset script to use this zip file now :)
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
34
Bug in wiki bio load
[ 0.30840298533439636, -0.5624250769615173, -0.12597805261611938, -0.013644849881529808, 0.08347482234239578, 0.13847452402114868, 0.43073099851608276, 0.24938884377479553, 0.47189339995384216, 0.25346195697784424, 0.02254807949066162, -0.055451080203056335, 0.6842508912086487, 0.1790897697210312, 0.09426698833703995, 0.20373187959194183, 0.2671866714954376, 0.16921401023864746, 0.012761751189827919, -0.3011634647846222, -0.3844423294067383, 0.18699799478054047, -0.27112558484077454, 0.18317537009716034, 0.02034207619726658, 0.09148609638214111, 0.3470347821712494, 0.3104603588581085, 0.11730852723121643, -0.13871200382709503, 0.015801118686795235, -0.1594325304031372, 0.1108846440911293, -0.1276824176311493, -0.00010672632924979553, -0.05500847101211548, 0.3647199273109436, 0.12393384426832199, -0.2635716497898102, 0.3424321413040161, -0.1367318481206894, 0.1696062982082367, -0.02450854517519474, -0.405065655708313, 0.18080079555511475, 0.40673285722732544, -0.24929359555244446, 0.034957729279994965, -0.13750624656677246, -0.0664287880063057, 0.33052825927734375, -0.05778523162007332, -0.18689604103565216, 0.08142156898975372, 0.4675534963607788, 0.11571523547172546, 0.055036354809999466, -0.32542914152145386, 0.18861594796180725, -0.21050161123275757, -0.08559903502464294, 0.39675337076187134, -0.09960653632879257, -0.02812567912042141, 0.11512663215398788, 0.18517787754535675, 0.7302025556564331, -0.024359624832868576, 0.3561069071292877, 0.30669963359832764, 0.3489796817302704, 0.3227379620075226, 0.14027047157287598, 0.08590015769004822, -0.06639152765274048, 0.17811313271522522, 0.5097188353538513, 0.13864777982234955, -0.17348919808864594, -0.09530345350503922, 0.2488917112350464, -0.037515461444854736, 0.05191373452544212, -0.07936002314090729, -0.256780743598938, 0.7211172580718994, 0.07397834211587906, -0.017504770308732986, -0.017789466306567192, -0.11513161659240723, 0.38823068141937256, 0.025132566690444946, -0.2260921746492386, 0.32052353024482727, 0.015358208678662777, 0.03923423960804939, -0.147995263338089, 0.44300031661987305, 0.17758317291736603, -0.11992964893579483, 0.01722853071987629, 0.03267829120159149, 0.029213180765509605, -0.038133323192596436, 0.376260370016098, -0.20344623923301697, -0.04456658288836479, -0.15187549591064453, 0.33374449610710144, 0.36570340394973755, -0.182334303855896, 0.0857071653008461, 0.00861499086022377, -0.06453468650579453, 0.1282401978969574, -0.282154381275177, -0.2567256987094879, -0.35954129695892334, -0.0734788179397583, 0.2859939932823181, 0.08782694488763809, -0.02358522266149521, -0.3561066687107086, 0.19683939218521118, -0.20097766816616058, 0.2603253126144409, 0.5076432824134827, -0.082948237657547, -0.33506858348846436, 0.12082626670598984, -0.20253823697566986, -0.098695307970047, -0.08160121738910675, -0.015437527559697628, -0.25015029311180115, 0.4468240737915039, 0.3033715784549713, 0.1811048835515976, 0.13285008072853088, -0.30817291140556335, -0.1469319760799408, 0.2292756289243698, 0.07336155325174332, 0.39685317873954773, 0.1306169033050537, 0.13957910239696503, 0.01950252801179886, -0.2597525119781494, 0.1026618704199791, 0.26005086302757263, -0.369818776845932, 0.06309732794761658, -0.20082278549671173, 0.3313863277435303, 0.18858693540096283, 0.14395077526569366, 0.0703725591301918, -0.2612047493457794, 0.33008256554603577, -0.5336963534355164, 0.015142831951379776, 0.17362315952777863, -0.17073902487754822, -0.011842135339975357, 0.0940505862236023, 0.24433143436908722, 0.1495983600616455, -0.2138991504907608, -0.015042001381516457, 0.10404981672763824, 0.1490647941827774, -0.08719249069690704, -0.07158751785755157, 0.23211127519607544, -0.28313204646110535, 0.22158727049827576, -0.09670943021774292, -0.34785178303718567, -0.21374398469924927, -0.05640588700771332, 0.00854836031794548, 0.16136473417282104, -0.00046112044947221875, -0.07110967487096786, -0.2088882178068161, -0.11222666501998901, 0.3780834674835205, 0.43902498483657837, 0.1896011382341385, 0.18039678037166595, -0.3975749611854553, -0.20744843780994415, -0.22808723151683807, -0.10755391418933868, 0.15810830891132355, 0.12977179884910583, 0.27874305844306946, 0.5212618708610535, 0.4793907701969147, -0.20062771439552307, -0.16642728447914124, 0.15008240938186646, -0.1628766655921936, -0.09691024571657181, 0.2512495517730713, 0.29191625118255615, -0.32703959941864014, -0.03342476487159729, -0.3744894564151764, 0.1483440101146698, 0.2391805499792099, -0.1032814085483551, -0.21875283122062683, -0.11641653627157211, -0.29333171248435974, 0.005313386209309101, 0.23889607191085815, 0.16035346686840057, -0.22271728515625, 0.2792951166629791, 0.32291316986083984, -0.15448182821273804, -0.2283831387758255, -0.07410761713981628, -0.2569112181663513, 0.1971893012523651, -0.12804992496967316, 0.07396193593740463, 0.06812528520822525, 0.14894115924835205, 0.16606202721595764, 0.22348861396312714, -0.22077487409114838, -0.07042628526687622, -0.023595066741108894, 0.4113547205924988, -0.21722155809402466, -0.0713556557893753, 0.07111639529466629, -0.06501805782318115, -0.12233684211969376, 0.175719752907753, 0.2719097435474396, -0.34460538625717163, -0.16519217193126678, 0.1269792914390564, -0.16741052269935608, 0.15710125863552094, -0.10142043232917786, 0.13267776370048523, 0.16102497279644012, -0.02983798459172249, 0.18287278711795807, -0.30725499987602234, 0.122006356716156, 0.33037659525871277, -0.21835382282733917, -0.18063783645629883, -0.02361406944692135, -0.0012449544155970216, 0.18154779076576233, 0.00046726991422474384, 0.15430325269699097, -0.012253607623279095, -0.07090545445680618, -0.14934834837913513, 0.2833273112773895, -0.18745829164981842, 0.14623665809631348, 0.16488955914974213, -0.014446179382503033, 0.007180539425462484, 0.05274374783039093, -0.14324092864990234, 0.21595542132854462, -0.1608656644821167, 0.14361752569675446, 0.22835978865623474, -0.04225693270564079, -0.030568663030862808, -0.16366046667099, 0.4604262113571167, -0.12943875789642334, -0.06527125835418701, -0.33992481231689453, 0.13080939650535583, 0.12341167777776718, 0.18820738792419434, 0.10587368160486221, -0.2371627390384674, -0.010340157896280289, -0.36640840768814087, 0.09143810719251633, 0.10343474894762039, -0.024791309610009193, 0.16370685398578644, -0.13945676386356354, 0.26784825325012207, -0.005391956306993961, 0.0981324315071106, -0.216912180185318, -0.03755146637558937, -0.17155520617961884, 0.18151219189167023, 0.07584147155284882, 0.34163597226142883, 0.045257773250341415, -0.3695693910121918, -0.19131016731262207, -0.17028751969337463, -0.3054065704345703, 0.12452279776334763, 0.08356628566980362, 0.21624012291431427, -0.07306119799613953, 0.3667183816432953, 0.018324915319681168, -0.22890602052211761, 0.1777675300836563, -0.2942492365837097, -0.09810123592615128, 0.1364148110151291, 0.0489913746714592, 0.03002418577671051, 0.015623737126588821, -0.39837557077407837, 0.16967011988162994, -0.025267111137509346, -0.3353496491909027, 0.2128213346004486, 0.1675470918416977, 0.19577676057815552, -0.0002914930519182235, -0.269523561000824, 0.1543632298707962, -0.10914473980665207, -0.2754446268081665, -0.31960558891296387, 0.2173374742269516, -0.09472612291574478, -0.27570998668670654, 0.015793723985552788, 0.022844428196549416, 0.2203959971666336, -0.214167058467865, -0.42061445116996765, 0.1293906569480896, -0.006958178244531155, -0.03883961960673332, -0.17648175358772278, 0.09689375013113022, 0.07325517386198044, -0.011813079938292503, -0.15009330213069916, -0.10606790333986282, -0.0821758359670639, 0.06795017421245575, -0.23679983615875244, 0.1513836532831192, -0.16862840950489044, 0.05716438218951225, -0.34902119636535645, 0.22700683772563934, -0.21372343599796295, 0.382899671792984, 0.18096603453159332, 0.0965922474861145, -0.00377425504848361, -0.04062126204371452, 0.020970087498426437, 0.1927812546491623, -0.013785568065941334, 0.08534833043813705, 0.5557149052619934, 0.03411794826388359, -0.3920517861843109, 0.03157060220837593, -0.02319800853729248, -0.3324476480484009, -0.26718729734420776, -0.03598398715257645, 0.15986940264701843, -0.18622657656669617, 0.22722415626049042, 0.106064073741436, -0.2576233744621277, -0.29099640250205994, 0.22303062677383423, 0.20110735297203064, -0.06320416927337646, 0.011678779497742653, -0.3038094639778137, -0.06608669459819794, -0.10511372983455658, 0.054804299026727676, 0.1513475477695465, -0.08233334124088287, 0.03873281180858612, -0.2598314881324768, 0.2723686099052429, -0.2772366404533386, 0.3193316161632538, -0.14099934697151184, 0.5250706672668457, 0.21619799733161926, 0.0833469033241272, 0.073921337723732, -0.15782341361045837, 0.0025286281015723944, -0.1876431256532669, 0.5099050402641296, 0.013053993694484234, 0.06254705041646957, 0.0319652259349823, 0.22729890048503876, 0.059494949877262115, -0.32226505875587463, -0.45807862281799316, -0.38621237874031067, -0.17744818329811096, -0.17797084152698517, 0.00861845538020134, -0.1128436028957367, 0.16433842480182648, -0.26861709356307983, -0.2884769141674042, -0.16507722437381744, -0.03997446596622467, -0.10230813920497894, 0.3221435546875, 0.035561803728342056, -0.05660824105143547, -0.004399839323014021, 0.1646539866924286, 0.055369071662425995, 0.027120433747768402, 0.25426793098449707, -0.2280670702457428, 0.27210959792137146, -0.19835427403450012, -0.34593331813812256, -0.19735412299633026, 0.20950521528720856, 0.12447318434715271, -0.027706701308488846, 0.30242207646369934, -0.08443652838468552, -0.09954513609409332, -0.10948686301708221, 0.040044259279966354, 0.003010920947417617, -0.12570393085479736, -0.2561761736869812, 0.6516229510307312, 0.08143067359924316, -0.1390940099954605, 0.2864086925983429, 0.48308318853378296, -0.46222683787345886, -0.1230812668800354, 0.25036364793777466, 0.9538981914520264, -0.010617620311677456, 0.13728010654449463, 0.14284637570381165, 0.24672479927539825, -0.053271904587745667, -0.10163380205631256, 0.08211307972669601, -0.5751748085021973, 0.147882878780365, -0.021065175533294678, 0.08676902949810028, -0.1053166389465332, -0.22162026166915894, -0.28535786271095276, -0.1429312825202942, -0.3505580723285675, 0.17488697171211243, 0.0892304852604866, -0.07903515547513962, 0.07426206022500992, -0.15579096972942352, -0.2938920557498932, 0.2073778510093689, 0.18282832205295563, 0.06804278492927551, -0.2264470010995865, 0.07354041934013367, -0.008381489664316177, -0.24108515679836273, 0.06139688193798065, 0.3123161792755127, 0.021871844306588173, 0.051887087523937225, -0.10694839060306549, -0.12925152480602264, -0.22016657888889313, 0.32729169726371765, 0.06426820904016495, 0.3204983174800873, -0.14472340047359467, 0.2438744604587555, 0.044057026505470276, -0.11195109784603119, -0.36767110228538513, 0.15290112793445587, 0.07366152107715607, -0.3522452116012573, -0.5174412727355957, 0.10909807682037354, -0.15485616028308868, -0.23789365589618683, -0.1045120507478714, 0.3637408912181854, 0.15194900333881378, -0.20700983703136444, -0.2137122005224228, -0.08712003380060196, 0.19511833786964417, -0.21444709599018097, 0.25210657715797424, -0.09137725085020065, -0.1319587528705597, 0.14164628088474274, 0.47279900312423706, -0.17141620814800262, -0.20224541425704956, 0.3658616542816162, 0.17134171724319458, 0.16185253858566284, 0.3686774671077728, -0.016362708061933517, -0.24118740856647491, -0.2500136196613312, 0.13809505105018616, -0.0382494181394577, -0.1571967601776123, -0.14144352078437805, -0.08325318247079849, -0.22913306951522827, -0.08946505188941956, 0.6060255169868469, -0.061769384890794754, -0.05247548595070839, 0.14918385446071625, -0.42028993368148804, 0.030422206968069077, 0.09413326531648636, -0.4968563914299011, -0.04469883069396019, 0.49389001727104187, -0.41618743538856506, -0.09193067252635956, 0.31815338134765625, -0.40242186188697815, -0.025146085768938065, -0.21743544936180115, 0.003959995228797197, -0.15775057673454285, 0.07297827303409576, 0.005234841722995043, 0.011410943232476711, 0.31974655389785767, -0.044728733599185944, 0.18809668719768524, -0.3851335346698761, -0.29629868268966675, 0.07552934437990189, 0.06517066061496735, -0.03637243062257767, 0.19530941545963287, 0.08556479960680008, 0.05508505925536156, -0.07141438871622086, 0.34951940178871155, -0.14588722586631775, 0.2039104551076889, -0.08731324970722198, 0.3361898362636566, 0.10439439117908478, -0.4328235685825348, 0.26857250928878784, -0.13673672080039978, -0.10692355781793594, -0.20420153439044952, -0.1567704677581787, 0.03280532732605934, 0.011363254860043526, 0.3673781752586365, 0.0765085518360138, 0.001055533648468554, 0.1816612035036087, 0.16062021255493164, -0.22612811625003815, 0.10498140007257462, 0.1700975000858307, -0.47597452998161316, 0.23824940621852875, -0.2921092212200165, -0.1004384383559227, -0.17569124698638916, 0.3798488676548004, -0.18864327669143677, -0.37290242314338684, -0.09750954061746597, -0.19904105365276337, -0.05083063244819641, 0.36155834794044495, 0.2404029667377472, -0.8276278376579285, 0.15624387562274933, 0.2418944388628006, -0.06490258872509003, -0.24915292859077454, -0.1436111479997635, 0.36544445157051086, -0.06723387539386749, 0.15281593799591064, -0.0760791152715683, -0.07536320388317108, -0.1359010636806488, 0.1544085443019867, 0.2619549632072449, -0.03567960485816002, 0.11130062490701675, 0.09960541874170303, -0.41428032517433167, -0.29520735144615173, 0.32440251111984253, 0.1824132353067398, -0.338255375623703, 0.014966520480811596, 0.3729088604450226, -0.23808540403842926, 0.251553475856781, -0.06878240406513214, -0.4738897681236267, 0.019387774169445038, -0.33050739765167236, -0.39460036158561707, -0.02294836938381195, -0.1979217529296875, 0.25101134181022644, 0.06082306429743767, 0.04147372022271156, 0.05739450454711914, -0.07338586449623108, 0.06600379198789597, -0.3133988082408905, 0.08826948702335358, 0.13379105925559998, 0.20186878740787506, 0.009363966062664986, -0.23536640405654907, -0.0892769992351532, 0.07498419284820557, 0.04355761408805847, 0.2926335036754608, -0.0975179448723793, 0.2921801507472992, 0.25496020913124084, 0.02452942728996277, -0.3089281916618347, 0.11144347488880157, -0.055891599506139755, -0.004847659729421139, 0.0627417340874672, 0.36192724108695984, 0.21679706871509552, 0.017226580530405045, 0.2804197669029236, -0.35639670491218567, -0.1432560235261917, 0.25652003288269043, 0.1579488068819046, 0.021247200667858124, -0.09651878476142883, -0.14015120267868042, -0.009055934846401215, -0.3617519736289978, 0.13646133244037628, -0.0922340452671051, 0.5795391201972961, -0.14735576510429382, 0.1518571674823761, 0.08384266495704651, 0.15438228845596313, 0.1234448179602623, 0.14638851583003998, 0.49250343441963196, -0.1325821876525879, -0.41552111506462097, 0.0206682737916708, -0.17433474957942963, -0.29799729585647583, 0.3102048337459564, -0.19069533050060272, -0.128765270113945, 0.2279520481824875, -0.06919682025909424, -0.1797219216823578, -0.10789302736520767, 0.2278270721435547, -0.1766202598810196, 0.051403313875198364, -0.03227263316512108, -0.19173160195350647, -0.21925321221351624, 0.3369482457637787, -0.1147870272397995, -0.33479928970336914, -0.4284440279006958, 0.18662987649440765, -0.11244816333055496, 0.32880255579948425, 0.02550608105957508, 0.08283672481775284, -0.24454164505004883, 0.3583890497684479, 0.4232812523841858, -0.0005656526191160083, 0.36749619245529175, -0.22052089869976044, -0.225543811917305, -0.1454256922006607, -0.09242714941501617, -0.06858482211828232, 0.05963200330734253, 0.05732181295752525, 0.19515475630760193, 0.042458124458789825, -0.1083897054195404, -0.07501257210969925, 0.31541481614112854, 0.11099313199520111, 0.1560124307870865, -0.2264050394296646, 0.11720432341098785, 0.09022819995880127, 0.2290375828742981, 0.19147449731826782, 0.16817030310630798, -0.08049681782722473, -0.10731125622987747, -0.07392466068267822, -0.31816139817237854, 0.10530798882246017, -0.09193214774131775, -0.19328774511814117, -0.19440637528896332, 0.1594412922859192, -0.40054967999458313, -0.04651827737689018, -0.35281187295913696, 0.021615859121084213, 0.22127917408943176, -0.009437782689929008, -0.23114266991615295, 0.16140592098236084, -0.05976616218686104, -0.012796295806765556, -0.05903240665793419, -0.1400945484638214, 0.35452553629875183, -0.15387190878391266, -0.19635704159736633, -0.3375867009162903 ]
https://github.com/huggingface/datasets/issues/3578
label information get lost after parquet serialization
Hi ! We did a release of `datasets` today that may fix this issue. Can you try updating `datasets` and trying again ? EDIT: the issue is still there actually I think we can fix that by storing the Features in the parquet schema metadata, and then reload them when loading the parquet file
## Describe the bug In *dataset_info.json* file, information about the label get lost after the dataset serialization. ## Steps to reproduce the bug ```python from datasets import load_dataset # normal save dataset = load_dataset('glue', 'sst2', split='train') dataset.save_to_disk("normal_save") # save after parquet serialization dataset.to_parquet("glue-sst2-train.parquet") dataset = load_dataset("parquet", data_files='glue-sst2-train.parquet') dataset.save_to_disk("save_after_parquet") ``` ## Expected results I expected to keep label information in *dataset_info.json* file even after parquet serialization ## Actual results In the normal serialization i got ```json "label": { "num_classes": 2, "names": [ "negative", "positive" ], "names_file": null, "id": null, "_type": "ClassLabel" }, ``` And after parquet serialization i got ```json "label": { "dtype": "int64", "id": null, "_type": "Value" }, ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: ubuntu 20.04 - Python version: 3.8.10 - PyArrow version: 6.0.1
54
label information get lost after parquet serialization
[ 0.07559109479188919, -0.03922194615006447, -0.018806274980306625, 0.24919599294662476, 0.25406691431999207, -0.0934787318110466, 0.347854346036911, -0.18445277214050293, -0.08365572988986969, 0.45257407426834106, 0.13675379753112793, 0.5256596803665161, 0.22683022916316986, 0.3434267044067383, -0.11938280612230301, 0.1436813771724701, -0.024331143125891685, 0.24614021182060242, 0.319419801235199, -0.24099187552928925, 0.04021402448415756, 0.1272284835577011, -0.07097213715314865, 0.11598295718431473, -0.04386221244931221, -0.1880781650543213, -0.12830519676208496, 0.21758531033992767, 0.0176130048930645, -0.46215397119522095, -0.1560295969247818, -0.12981268763542175, -0.17430676519870758, -0.0956282839179039, -0.00011007337889168411, -0.20533204078674316, -0.024407116696238518, -0.13447584211826324, -0.1337667852640152, 0.13675299286842346, 0.15343140065670013, -0.0738733783364296, 0.3164200782775879, -0.27255210280418396, -0.25259682536125183, -0.06908782571554184, -0.09821312129497528, 0.01363193616271019, -0.14105218648910522, -0.20791570842266083, 0.22192026674747467, -0.1691233366727829, 0.1830853372812271, 0.26892849802970886, 0.4631335735321045, -0.1473512351512909, 0.1752476990222931, 0.15935179591178894, 0.303104043006897, 0.45124202966690063, 0.027427351102232933, 0.4410604238510132, 0.16124993562698364, -0.2113289088010788, -0.22819654643535614, 0.3136325478553772, 0.36379432678222656, -0.12422449886798859, 0.24747100472450256, -0.10896357893943787, 0.5476975440979004, -0.19459927082061768, -0.10930411517620087, -0.19758471846580505, 0.2199474275112152, -0.5727435946464539, -0.11744999140501022, 0.17423664033412933, 0.40699502825737, 0.07111538201570511, 0.29268866777420044, -0.19597339630126953, -0.10923595726490021, -0.2707115113735199, -0.09173104166984558, 0.6078036427497864, -0.09934348613023758, 0.18666669726371765, -0.3413597345352173, -0.1835586130619049, -0.26097366213798523, 0.07832816243171692, -0.0958341583609581, -0.028642108663916588, 0.11746606230735779, -0.2128009796142578, -0.04787030816078186, -0.17721225321292877, -0.14795084297657013, -0.1346343606710434, -0.08383016288280487, 0.198134183883667, 0.21626612544059753, 0.08407460898160934, 0.34657737612724304, -0.18111862242221832, 0.08970831334590912, 0.016741272062063217, -0.18185922503471375, -0.00977914035320282, -0.29723623394966125, -0.26971158385276794, 0.0016927937977015972, 0.5766196846961975, 0.20700734853744507, -0.06373625993728638, 0.08810776472091675, -0.36120346188545227, -0.05985243245959282, 0.3690606355667114, -0.07776514440774918, 0.23401875793933868, -0.11041716486215591, 0.1843620091676712, -0.05219772458076477, 0.05724500119686127, -0.15633222460746765, -0.035800836980342865, -0.0012404231820255518, -0.5367467999458313, -0.31781405210494995, -0.21609345078468323, -0.017673756927251816, -0.20470993220806122, -0.1752084344625473, 0.1527908444404602, 0.187506765127182, 0.16872794926166534, 0.008967864327132702, -0.26342931389808655, -0.0937778502702713, -0.12332113087177277, 0.20731042325496674, 0.012438367120921612, -0.14654377102851868, 0.10703389346599579, 0.005350577645003796, -0.2861683964729309, -0.10424311459064484, -0.0793016329407692, -0.4895178973674774, 0.25493118166923523, 0.010741209611296654, 0.242387056350708, 0.3878272771835327, -0.13247554004192352, 0.0337994359433651, -0.026408720761537552, 0.1283552050590515, -0.0380280576646328, -0.11278004199266434, -0.21018029749393463, 0.05762367323040962, -0.03674294427037239, -0.11202868074178696, 0.06662088632583618, -0.31347721815109253, -0.11545050144195557, 0.34368520975112915, -0.03445799648761749, 0.6107984185218811, 0.1471451371908188, 0.034012433141469955, 0.10319605469703674, 0.055583011358976364, 0.16936349868774414, 0.12128237634897232, -0.14887326955795288, -0.1350426971912384, -0.024841804057359695, -0.16487595438957214, 0.00893750786781311, 0.1733931452035904, -0.37385112047195435, 0.46520549058914185, -0.024685995653271675, 0.16349969804286957, -0.13395917415618896, -0.043946102261543274, 0.0063314069993793964, -0.19041486084461212, 0.06769423931837082, 0.11365881562232971, -0.12676091492176056, -0.16497714817523956, 0.06871050596237183, 0.04332597926259041, 0.11450594663619995, 0.11217053234577179, -0.1157107874751091, 0.16908319294452667, 0.3914845585823059, 0.10084372758865356, 0.31972160935401917, 0.16315226256847382, 0.1260378211736679, 0.05740911141037941, -0.1763896346092224, -0.17963720858097076, 0.10354847460985184, -0.09450968354940414, -0.27886518836021423, -0.02229703962802887, 0.1808762550354004, 0.1728920340538025, -0.0709821954369545, 0.29388943314552307, 0.31794920563697815, -0.2188195288181305, 0.018665149807929993, 0.029198328033089638, -0.21643075346946716, -0.08105788379907608, 0.08513486385345459, 0.03728947043418884, -0.003911833744496107, 0.011591042391955853, -0.38070639967918396, 0.11145106703042984, 0.34056875109672546, 0.4203513562679291, 0.010317131876945496, 0.19083766639232635, 0.31099528074264526, 0.28684762120246887, 0.10443074256181717, -0.14213423430919647, 0.10355567932128906, 0.10789475589990616, -0.006052722688764334, -0.21391132473945618, -0.094426229596138, 0.15413442254066467, 0.13468338549137115, -0.14061439037322998, -0.12268586456775665, 0.28502386808395386, -0.12984563410282135, 0.004932225216180086, -0.12918761372566223, 0.3520139157772064, -0.05433936044573784, 0.22304393351078033, -0.31038352847099304, -0.11162705719470978, -0.22621680796146393, -0.14539551734924316, 0.03802403807640076, -0.6963034272193909, 0.5536057353019714, 0.6403851509094238, 0.07911356538534164, 0.06877874583005905, -0.1409187614917755, -0.16414716839790344, -0.21843551099300385, 0.11780392378568649, -0.20265227556228638, -0.18336519598960876, 0.39452794194221497, 0.08521729707717896, -0.17883603274822235, -0.09596124291419983, -0.027085917070508003, 0.11986920237541199, 0.2039203941822052, 0.059165652841329575, 0.15723441541194916, 0.2718435227870941, 0.005148455034941435, -0.15392163395881653, -0.008213026449084282, 0.020878180861473083, -0.122974693775177, -0.24486231803894043, 0.1300879865884781, -0.2907487154006958, 0.21941892802715302, -0.2702801525592804, 0.15134499967098236, -0.09786294400691986, -0.2814808487892151, 0.1777482032775879, 0.160700261592865, -0.2737002968788147, 0.06489107757806778, 0.07658840715885162, 0.2585214376449585, -0.18622907996177673, 0.09441681951284409, -0.15791364014148712, -0.5265539884567261, -0.36945798993110657, 0.08744192868471146, -0.517628014087677, -0.1439269632101059, 0.07766692340373993, -0.10703452676534653, 0.07907696068286896, 0.001132048200815916, -0.5108128786087036, 0.23557908833026886, -0.0015565891517326236, -0.17089292407035828, 0.07195056974887848, 0.09208935499191284, -0.11226454377174377, -0.05245639756321907, 0.03279416263103485, -0.08989591151475906, -0.028314828872680664, -0.0918462872505188, -0.022762324661016464, -0.20781128108501434, -0.2073010802268982, -0.23436227440834045, -0.18527905642986298, 0.11474158614873886, 0.13084203004837036, 0.3592126965522766, 0.09220797568559647, -0.07806534320116043, -0.5999574065208435, -0.11660247296094894, -0.12308448553085327, 0.42302581667900085, -0.43299809098243713, -0.24677754938602448, -0.264192670583725, -0.168254554271698, -0.12234616279602051, -0.0854199081659317, 0.046869613230228424, 0.25795382261276245, 0.0026974445208907127, -0.058586135506629944, 0.2701025605201721, 0.2687143385410309, -0.38377702236175537, -0.1476394534111023, -0.03743502125144005, 0.38122400641441345, 0.37137943506240845, -0.23985084891319275, -0.16189472377300262, -0.2885710895061493, 0.3043842613697052, 0.1511928141117096, 0.23371876776218414, -0.25708919763565063, 0.024359310045838356, -0.19483201205730438, 0.15239430963993073, -0.3917979896068573, -0.07925216853618622, 0.23811721801757812, -0.12340604513883591, 0.392111212015152, -0.16762366890907288, 0.3102668821811676, 0.23973527550697327, 0.17482247948646545, -0.01826009526848793, 0.4363802671432495, -0.28170785307884216, -0.20911115407943726, 0.24462074041366577, 0.07028033584356308, -0.2961868345737457, -0.19087348878383636, -0.2715517580509186, 0.3228311538696289, 0.2137622833251953, 0.2089386135339737, 0.03901583328843117, -0.08920976519584656, -0.14275406301021576, 0.2294006198644638, -0.330720990896225, 0.0742611214518547, -0.16290906071662903, -0.4186033606529236, 0.1261308640241623, 0.06582430750131607, -0.10577870905399323, -0.09193653613328934, 0.08636880666017532, -0.16976886987686157, -0.3827371597290039, 0.19690056145191193, 0.04315434768795967, 0.5572746992111206, -0.02181948721408844, 0.3767411410808563, 0.06292857229709625, 0.09629473835229874, -0.12363042682409286, -0.03784996271133423, -0.3889807164669037, -0.19618943333625793, 0.34032294154167175, 0.7562006115913391, -0.5766396522521973, 0.12371715158224106, -0.015118741430342197, -0.037279725074768066, -0.23791690170764923, 0.34632325172424316, -0.28285831212997437, 0.2708381116390228, -0.15719465911388397, 0.27225106954574585, -0.05462085083127022, 0.4621303677558899, 0.18119968473911285, 0.19069114327430725, -0.1782788634300232, -0.04057546332478523, -0.23529134690761566, 0.31802454590797424, 0.46459853649139404, -0.17208610475063324, -0.0659574642777443, 0.12739719450473785, 0.5696853399276733, 0.15595930814743042, 0.33013540506362915, -0.020740827545523643, -0.40041103959083557, 0.30734461545944214, -0.1418202817440033, 0.4245566129684448, 0.09458146244287491, 0.31432390213012695, 0.0529680997133255, -0.3516983985900879, 0.08159106224775314, -0.327971488237381, 0.13591395318508148, -0.07237668335437775, -0.18568994104862213, -0.29801881313323975, 0.2756202220916748, 0.060751836746931076, -0.4566420912742615, -0.2256527692079544, -0.1618359535932541, 0.34278276562690735, -0.3583868741989136, 0.590750515460968, 0.4024409055709839, 1.0307865142822266, 0.04510810971260071, -0.045442741364240646, -0.2525123953819275, -0.8055240511894226, 0.5623115301132202, -0.170450821518898, 0.1161496713757515, -0.42558199167251587, -0.004812226165086031, 0.06187349557876587, 0.030433645471930504, -0.06389003247022629, 0.25514107942581177, -0.1399490088224411, 0.15873800218105316, 0.03499472886323929, 0.06548310816287994, -0.14670540392398834, 0.10425849258899689, 0.5418732762336731, -0.30961230397224426, -0.21426406502723694, 0.10783190280199051, -0.13562732934951782, -0.12410002201795578, -0.05558305233716965, -0.04103784263134003, -0.04081769287586212, -0.033342570066452026, 0.20067831873893738, 0.31224945187568665, 0.05660479888319969, -0.0821622908115387, 0.3735373914241791, -0.16735348105430603, -0.4572415351867676, -0.2694062292575836, 0.3215540945529938, 0.3067832589149475, -0.1570194661617279, 0.14802007377147675, 0.06285043805837631, 0.060745157301425934, 0.14039745926856995, 0.30403369665145874, 0.1431594341993332, 0.014998406171798706, 0.020257705822587013, -0.07035675644874573, -0.08337749540805817, 0.015616966411471367, -0.13175618648529053, -0.2606287896633148, 0.1984245926141739, -0.21771056950092316, 0.09122929722070694, 0.08350063115358353, 0.26697778701782227, -0.2952903211116791, 0.13008593022823334, -0.06984462589025497, -0.19686593115329742, -0.16232705116271973, -0.03902149945497513, -0.1159432977437973, -0.2052556425333023, 0.20003366470336914, 0.08724138140678406, 0.5231412053108215, 0.261165052652359, -0.13264688849449158, -0.19893775880336761, -0.1926286220550537, -0.23168568313121796, 0.228658065199852, -0.22747758030891418, -0.007214541547000408, 0.16278472542762756, -0.2986205518245697, 0.04538913816213608, 0.16417962312698364, -0.11703475564718246, 0.1930176168680191, -0.25701838731765747, -0.10312153398990631, -0.22504860162734985, 0.028826730325818062, -0.17371316254138947, 0.042178597301244736, 0.5569391846656799, 0.3362526595592499, -0.1288967728614807, -0.03703494742512703, -0.36910563707351685, -0.0029451544396579266, -0.3182886838912964, 0.3457893133163452, 0.29685550928115845, -0.07453682273626328, -0.05138101428747177, 0.014050867408514023, 0.2915453016757965, 0.008158694952726364, 0.44615113735198975, -0.20768840610980988, -0.23321890830993652, 0.019160373136401176, 0.032369423657655716, 0.48732033371925354, -0.31371042132377625, 0.11574412882328033, -0.036526862531900406, 0.014722072519361973, 0.201541468501091, -0.24945645034313202, 0.15303851664066315, 0.06252975761890411, 0.31257426738739014, 0.288726270198822, -0.08620436489582062, -0.1369318664073944, 0.042247600853443146, -0.026762651279568672, -0.06580162048339844, -0.035839200019836426, -0.36098483204841614, -0.04159251227974892, -0.09419185668230057, 0.021395647898316383, 0.11164358258247375, -0.15189990401268005, 0.25362810492515564, -0.0891922190785408, -0.151778444647789, 0.4689960181713104, 0.1253594011068344, -0.11679203063249588, 0.022243434563279152, -0.6621987223625183, 0.3308040201663971, 0.27982836961746216, -0.17711670696735382, -0.24220548570156097, 0.06560272723436356, -0.005443609785288572, -0.13939787447452545, 0.06569883972406387, 0.17911335825920105, 0.06624218076467514, -0.189496248960495, 0.27707549929618835, 0.469611257314682, -0.31384173035621643, -0.11658944189548492, -0.002448510844260454, -0.042234424501657486, 0.11568359285593033, 0.3772315979003906, 0.23316575586795807, -0.0030880358535796404, 0.21142074465751648, 0.4902723431587219, 0.17033785581588745, 0.4898730218410492, -0.09443658590316772, -0.01478705182671547, 0.08224693685770035, -0.1959078162908554, 0.2928154766559601, 0.2727307677268982, 0.2291717827320099, 0.1117502823472023, -0.2692570984363556, 0.20423872768878937, -0.41463539004325867, 0.14132045209407806, 0.33161306381225586, -0.4229958653450012, -0.1598488688468933, 0.07897599786520004, 0.016239991411566734, 0.23023498058319092, -0.0792309120297432, 0.0251323152333498, 0.2045595645904541, 0.057333607226610184, -0.2804010808467865, -0.009815867058932781, -0.40893852710723877, -0.7001193165779114, -0.05063483864068985, 0.4275479316711426, -0.2023046910762787, 0.2902272939682007, -0.1390923261642456, -0.08822671324014664, 0.07495133578777313, 0.06881935149431229, 0.08995665609836578, -0.12815448641777039, 0.13537947833538055, -0.30868446826934814, 0.040448058396577835, -0.24596039950847626, 0.039904482662677765, 0.08216030895709991, 0.332224041223526, 0.03520961478352547, 0.24957631528377533, 0.1129656583070755, -0.2037084698677063, -0.06037767231464386, 0.6240204572677612, 0.04328209534287453, 0.2263944000005722, -0.08497289568185806, 0.3691879212856293, -0.3024880886077881, -0.0891941711306572, -0.07481388002634048, -0.34000518918037415, -0.25848284363746643, -0.1415291279554367, 0.11413237452507019, 0.005011390428990126, -0.0003341573756188154, 0.1354297399520874, 0.3427785038948059, 0.31714916229248047, 0.09416712820529938, -0.5753861665725708, -0.1382232904434204, 0.021757442504167557, -0.0947246178984642, 0.32765915989875793, 0.007909148931503296, -0.5950594544410706, 0.12314870208501816, 0.18190808594226837, 0.20188003778457642, -0.10576627403497696, -0.3285796344280243, -0.007295097224414349, -0.08073954284191132, -0.004376515746116638, -0.39138686656951904, 0.1430480033159256, 0.10123841464519501, -0.2255292683839798, -0.01944475993514061, 0.1765596717596054, 0.27817395329475403, 0.20393536984920502, 0.15233832597732544, 0.1228213906288147, 0.02124868892133236, -0.3505040407180786, -0.07495979219675064, 0.1335490494966507, -0.07733295857906342, 0.06417768448591232, -0.2143884152173996, 0.0001863851648522541, 0.27447056770324707, -0.23359353840351105, -0.0482119619846344, 0.3501705229282379, -0.022540327161550522, 0.10286466032266617, 0.1229485496878624, 0.15827928483486176, -0.1183086484670639, -0.23357270658016205, -0.00202303403057158, 0.2070455253124237, -0.15704308450222015, 0.2251143902540207, 0.22608651220798492, -0.03096618503332138, -0.005384606774896383, -0.06197443976998329, 0.25754785537719727, 0.028508825227618217, -0.10348974913358688, -0.4790401756763458, 0.280446320772171, -0.007300458382815123, -0.3398987054824829, -0.15729787945747375, 0.2858838438987732, 0.09153345972299576, 0.007040708791464567, -0.2995477020740509, 0.2547525465488434, 0.35036295652389526, -0.1892240196466446, -0.36714446544647217, 0.021505633369088173, 0.028750600293278694, 0.05854163318872452, -0.011167556047439575, -0.07430746406316757, 0.2317367047071457, 0.04223127290606499, -0.08119595050811768, 0.11474746465682983 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
@sahoodib, thanks for reporting. Indeed, none of the data links appearing in the IndicGLUE website are working, e.g.: https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/soham-articles.tar.gz ``` <Error> <Code>UserProjectAccountProblem</Code> <Message>User project billing account not in good standing.</Message> <Details> The billing account for the owning project is disabled in state delinquent </Details> </Error> ``` We have contacted the data owners to inform them about their issue and ask them if they plan to fix it.
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
67
ConnectionError in IndicGLUE dataset
[ -0.5636782646179199, 0.2579350769519806, -0.1495562195777893, 0.3366535007953644, 0.10856394469738007, -0.025072535499930382, 0.29216742515563965, 0.05076889321208, 0.01889306865632534, 0.05487886443734169, 0.04982346296310425, -0.008908889256417751, 0.08753681182861328, 0.025766683742403984, -0.27523043751716614, 0.19068121910095215, -0.2221573293209076, 0.4690118134021759, -0.020585663616657257, -0.06865184754133224, -0.07040948420763016, 0.27211669087409973, -0.3686041235923767, 0.1429998278617859, -0.11093252897262573, -0.10015088319778442, 0.22801974415779114, 0.06634609401226044, -0.32195597887039185, -0.24810528755187988, 0.16206778585910797, 0.3274272680282593, -0.035264723002910614, 0.14286133646965027, -0.00010065677633974701, -0.006824909243732691, 0.3096461296081543, -0.17169348895549774, -0.21039077639579773, 0.08506520092487335, -0.6500630974769592, -0.17488543689250946, 0.2041219174861908, -0.24151994287967682, -0.3795367479324341, -0.2862643003463745, 0.07820313423871994, -0.15659572184085846, 0.21350127458572388, 0.2896181344985962, 0.33697107434272766, -0.15828242897987366, 0.4133334755897522, -0.17191360890865326, -0.05261772871017456, -0.1465432345867157, 0.08345900475978851, 0.35388511419296265, -0.14470678567886353, -0.20980669558048248, 0.0984690859913826, 0.1849929839372635, -0.008750289678573608, -0.09322185814380646, 0.16487818956375122, -0.0378105454146862, -0.25142017006874084, -0.1390984058380127, 0.300735741853714, 0.15553021430969238, 0.4679185450077057, -0.09711313247680664, -0.2835922837257385, 0.24522538483142853, 0.10104524344205856, -0.08312327414751053, 0.25670918822288513, 0.09408897906541824, 0.054339855909347534, 0.2604530453681946, 0.14729361236095428, -0.3541772663593292, -0.3995792865753174, 0.1878875494003296, -0.23420272767543793, 0.21698710322380066, -0.10542504489421844, 0.14779670536518097, 0.03920479863882065, -0.15653371810913086, 0.1321273297071457, 0.010998895391821861, -0.22535440325737, -0.06380440294742584, -0.14908480644226074, -0.03340596333146095, -0.14094170928001404, -0.0568593367934227, 0.1378859579563141, 0.16749216616153717, -0.06249752268195152, 0.2140546292066574, 0.1686350554227829, 0.06497272849082947, 0.21504461765289307, -0.19543962180614471, -0.05656443163752556, 0.41261202096939087, 0.5194576382637024, -0.029908686876296997, -0.32213881611824036, -0.2581580579280853, 0.0484810546040535, -0.21957848966121674, 0.047049615532159805, 0.024614544585347176, 0.1666439175605774, -0.1338459700345993, -0.35390645265579224, 0.1251145750284195, -0.41095542907714844, -0.04398049786686897, -0.05599696934223175, 0.14203566312789917, -0.005440410692244768, -0.16849064826965332, 0.047828540205955505, 0.2220652997493744, -0.20981623232364655, -0.2024257332086563, -0.2571345269680023, -0.1156894862651825, 0.14686766266822815, -0.2198207527399063, -0.1646043062210083, 0.05444994941353798, 0.05643130838871002, -0.009686363860964775, -0.16169218719005585, -0.009886636398732662, 0.3800845742225647, -0.38579264283180237, -0.03297119587659836, 0.19744299352169037, 0.036204494535923004, 0.04074513539671898, 0.16746675968170166, -0.557910680770874, 0.047311779111623764, -0.28388410806655884, -0.13900142908096313, -0.23452132940292358, -0.2936549186706543, 0.293479859828949, 0.012068717740476131, 0.08128055185079575, 0.5131348967552185, 0.007758921943604946, 0.2345636487007141, -0.4099836051464081, -0.18486304581165314, -0.3009199798107147, -0.035079218447208405, -0.2161387950181961, 0.14888596534729004, 0.33180391788482666, -0.3722063899040222, 0.11068455129861832, 0.3279050588607788, -0.13760198652744293, 0.3675537407398224, 0.3554795980453491, -0.11873140186071396, -0.2050490826368332, -0.26249393820762634, 0.20716333389282227, 0.48608478903770447, -0.19643548130989075, -0.5354321599006653, 0.4215497672557831, -0.01105278916656971, -0.1978537142276764, 0.07258986681699753, 0.06973304599523544, 0.3849310874938965, 0.1710117757320404, 0.5147460699081421, 0.22070880234241486, -0.0852256715297699, -0.22280344367027283, -0.06875446438789368, -0.14761072397232056, 0.1913551688194275, -0.1175445169210434, 0.025860363617539406, 0.13757766783237457, 0.21482357382774353, -0.08791671693325043, 0.21402575075626373, 0.045012131333351135, 0.11927831918001175, 0.26250332593917847, 0.43419283628463745, 0.04457596689462662, -0.06491639465093613, 0.20183110237121582, -0.19960100948810577, -0.07330872118473053, 0.19368807971477509, 0.4768276810646057, -0.4465143084526062, 0.04557599127292633, -0.11921990662813187, 0.012290408834815025, -0.1369118094444275, 0.14041247963905334, 0.28566908836364746, 0.26058581471443176, 0.02098008058965206, 0.2908262312412262, -0.2210574597120285, 0.6126294136047363, -0.06999964267015457, 0.021752208471298218, -0.21259167790412903, 0.4261222183704376, -0.20653381943702698, -0.16193993389606476, 0.2636852562427521, 0.09155891090631485, 0.15382395684719086, -0.3067793846130371, -0.1645974963903427, 0.2930395305156708, -0.0866861566901207, 0.1458473801612854, 0.40451639890670776, 0.2533226013183594, 0.07293297350406647, -0.5891871452331543, 0.1507134735584259, 0.11018356680870056, 0.26620984077453613, 0.01788325421512127, 0.3336116671562195, 0.3230728805065155, 0.3491605818271637, 0.10676911473274231, 0.02412477880716324, 0.2620771527290344, 0.4540979266166687, 0.12804313004016876, -0.1964254528284073, -0.31176069378852844, -0.14669294655323029, -0.20561055839061737, 0.18876907229423523, -0.02012815698981285, -0.46628811955451965, -0.008055410347878933, 0.16997605562210083, 0.20514513552188873, 0.1847667247056961, -0.14552266895771027, -0.1168549433350563, -0.052654001861810684, 0.0052035036496818066, 0.06147254630923271, 0.3631010353565216, 0.30473506450653076, -0.07440615445375443, 0.05273773521184921, -0.13760928809642792, -0.19648659229278564, 0.25458502769470215, 0.019996391609311104, 0.12273476272821426, 0.30837151408195496, 0.04954088106751442, -0.10268939286470413, -0.28594887256622314, -0.3000752329826355, -0.15523763000965118, 0.36000773310661316, -0.10389874875545502, 0.13787713646888733, -0.11888109147548676, -0.4111514091491699, 0.06283843517303467, -0.108988456428051, -0.3536831736564636, -0.32825741171836853, -0.09295418858528137, -0.15960198640823364, 0.049849022179841995, 0.1339399218559265, -0.3544846177101135, 0.015921268612146378, 0.38848933577537537, 0.05665849521756172, -0.07639577239751816, -0.3822239637374878, -0.261970192193985, 0.15458990633487701, 0.09788240492343903, 0.204471617937088, 0.22309397161006927, -0.05535019189119339, -0.02884594164788723, -0.195166677236557, -0.12084052711725235, 0.07211395353078842, 0.11657450348138809, 0.2607177793979645, 0.48391953110694885, 0.3964505195617676, 0.1064644455909729, -0.07539892941713333, 0.4901224672794342, -0.12491025030612946, 0.06048276647925377, 0.07137677073478699, -0.14541399478912354, -0.0032280469313263893, 0.161427840590477, -0.27445656061172485, -0.4107460081577301, -0.3351518511772156, -0.1387706995010376, 0.18608936667442322, 0.1963687241077423, 0.1660953313112259, 0.0511292926967144, -0.03791111335158348, 0.3208419680595398, 0.1626160889863968, -0.2264341562986374, 0.0035608347970992327, -0.03049618937075138, -0.09544099122285843, -0.296368271112442, 0.10128863155841827, -0.05801531299948692, 0.006535777822136879, 0.1171596571803093, -0.3608498275279999, -0.05654662102460861, -0.03813854604959488, -0.023820240050554276, 0.008081648498773575, -0.1744619607925415, 0.06998208165168762, -0.009012008085846901, -0.13356077671051025, -0.043655384331941605, -0.181175097823143, 0.28082239627838135, 0.2791678011417389, 0.05937233567237854, 0.15926556289196014, 0.5704236030578613, -0.22893919050693512, 0.10946665704250336, 0.2741624116897583, -0.09393150359392166, 0.2343701720237732, -0.22249697148799896, 0.42366868257522583, -0.04340999573469162, -0.4370422959327698, -0.0471000038087368, 0.33231598138809204, -0.04288206249475479, 0.11978626996278763, -0.10463733971118927, -0.37440600991249084, -0.3723508417606354, -0.03375285491347313, -0.1479514092206955, -0.35761165618896484, -0.08385925740003586, -0.031116489320993423, 0.2470763772726059, 0.19247722625732422, -0.22696860134601593, -0.08108355104923248, -0.032868098467588425, -0.07020209729671478, 0.2102043777704239, -0.0759483277797699, 0.05610622465610504, -0.10837578773498535, 0.02210531383752823, -0.4021915793418884, 0.23677076399326324, -0.24004332721233368, 0.6603344082832336, -0.45170190930366516, -0.11944960057735443, 0.004507109988480806, -0.07420079410076141, 0.366914838552475, -0.7419281601905823, -0.334818035364151, 0.28511926531791687, 0.311867356300354, -0.2039937674999237, 0.007064888719469309, -0.17548781633377075, 0.35977569222450256, 0.27706488966941833, 0.36663681268692017, -0.17984667420387268, -0.09120996296405792, 0.3534000813961029, 0.03340256214141846, -0.13371574878692627, 0.06875070184469223, -0.23849694430828094, -0.22438079118728638, -0.06030760332942009, 0.13590344786643982, -0.2380075603723526, 0.23787039518356323, 0.504723310470581, -0.005715926177799702, -0.1060563325881958, -0.21894073486328125, 0.029456714168190956, 0.0641002357006073, 0.04537845775485039, -0.1380993127822876, 0.1422889530658722, 0.11010066419839859, 0.1543733775615692, 0.11538799852132797, 0.5050128102302551, 0.026959525421261787, -0.3371375501155853, 0.24169963598251343, -0.20020532608032227, 0.41950589418411255, 0.11198992282152176, 0.0598449669778347, 0.12521444261074066, 0.11233438551425934, 0.07008714973926544, 0.1030808761715889, 0.003960744012147188, 0.07748791575431824, 0.016500648111104965, -0.5488023161888123, -0.4175522029399872, -0.2947194278240204, -0.11811088025569916, -0.20346371829509735, -0.16765311360359192, 0.27376848459243774, -0.2278885394334793, 0.40142515301704407, -0.09200939536094666, 0.9891456961631775, 0.17717479169368744, -0.07992839813232422, 0.07810211181640625, -0.3729214072227478, 0.2336144745349884, -0.12224999070167542, 0.06167182698845863, -0.4384523630142212, -0.4611073434352875, -0.0848306193947792, -0.10426540672779083, 0.29216253757476807, -0.1935613602399826, -0.11835972964763641, 0.24037708342075348, 0.057297807186841965, 0.13397102057933807, -0.10484760254621506, 0.23893629014492035, 0.10234110802412033, 0.027563799172639847, -0.19600482285022736, 0.2609071135520935, 0.274469256401062, 0.13647572696208954, -0.09640751034021378, -0.3148709237575531, 0.10948044806718826, -0.3511775732040405, -0.0614180788397789, 0.004199646413326263, -0.38695618510246277, 0.3144846558570862, 0.05571523681282997, -0.4549362063407898, -0.21155667304992676, -0.10422463715076447, 0.14478754997253418, 0.08255381137132645, 0.045213498175144196, -0.03950168937444687, 0.1061258539557457, -0.10304960608482361, 0.06238574907183647, 0.15706799924373627, 0.2547261714935303, -0.06994448602199554, -0.19021937251091003, 0.22717376053333282, 0.08558516204357147, -0.31603556871414185, 0.08198481798171997, 0.1064203605055809, -0.2634739279747009, -0.24360021948814392, -0.17345894873142242, -0.1832411140203476, 0.04121073707938194, -0.19977977871894836, 0.1966603398323059, 0.1967795491218567, -0.07585892826318741, 0.1240900382399559, 0.0779985785484314, -0.27208155393600464, -0.1932552605867386, 0.39596226811408997, 0.1724383682012558, 0.16645830869674683, 0.3161776661872864, -0.053101591765880585, -0.19472865760326385, -0.4080701768398285, 0.1574314385652542, 0.1126217171549797, -0.1816677451133728, -0.11631639301776886, -0.07357542216777802, 0.016757462173700333, 0.09799377620220184, 0.04797051474452019, 0.0897904708981514, 0.2685413360595703, -0.055753160268068314, -0.49385008215904236, -0.34088805317878723, 0.09089387953281403, 0.06528030335903168, 0.16035379469394684, -0.00575627526268363, -0.16861683130264282, 0.003296761540696025, -0.15747474133968353, -0.44812285900115967, -0.1948252022266388, -0.5238027572631836, 0.10902503877878189, 0.16514550149440765, -0.21304835379123688, 0.09449277073144913, 0.02450052835047245, 0.3347625732421875, -0.17643575370311737, -0.18574248254299164, -0.27870073914527893, 0.12052932381629944, 0.07045001536607742, 0.16314633190631866, -0.0750822126865387, -0.2510938048362732, -0.2798253297805786, -0.2523252069950104, 0.04299752786755562, 0.10039249807596207, -0.09067415446043015, -0.2595849931240082, -0.18602433800697327, -0.39282554388046265, -0.20170791447162628, -0.23768897354602814, 0.3623849153518677, 0.11351659893989563, 0.19094318151474, -0.18337804079055786, 0.11068563908338547, -0.2569045126438141, -0.16930125653743744, 0.12893544137477875, 0.28355300426483154, -0.1722576916217804, -0.08842044323682785, 0.37708762288093567, -0.3047241270542145, -0.0032994484063237906, 0.314395010471344, 0.35043787956237793, 0.07701445370912552, -0.0848633199930191, -0.005336787551641464, 0.061732642352581024, 0.268433541059494, -0.2341490536928177, 0.061636652797460556, 0.48414185643196106, -0.12311644852161407, 0.22917915880680084, 0.2568177580833435, 0.24637147784233093, -0.08246979862451553, -0.16999444365501404, -0.04367632046341896, 0.45130133628845215, -0.09076453000307083, -0.0403275266289711, 0.005744332447648048, -0.16138769686222076, -0.03070577047765255, 0.07432292401790619, 0.29668453335762024, 0.12172878533601761, 0.5170875787734985, -0.0506279394030571, 0.022138411179184914, 0.31234779953956604, -0.0922740250825882, 0.017239946871995926, -0.33218705654144287, 0.03430105373263359, 0.10426820069551468, 0.023825904354453087, -0.11438506096601486, -0.026180360466241837, 0.06696297228336334, -0.20813657343387604, -0.0735662430524826, -0.10482009500265121, 0.12740734219551086, -0.11741536855697632, 0.04255291819572449, 0.022231418639421463, -0.12049701064825058, -0.04837475344538689, -0.260949045419693, 0.10230359435081482, 0.250813364982605, -0.13111235201358795, 0.019534708932042122, 0.34952986240386963, -0.14962059259414673, 0.0911334976553917, 0.08558987081050873, -0.08643002063035965, -0.21842488646507263, 0.10778354108333588, -0.08815839141607285, 0.37813228368759155, 0.005250128917396069, 0.37146177887916565, 0.469776451587677, 0.1672370582818985, 0.04098891466856003, 0.12194767594337463, 0.16373524069786072, -0.2353389412164688, -0.1783887892961502, 0.0839972048997879, 0.13191105425357819, 0.1138903945684433, 0.3592759072780609, 0.25266802310943604, -0.10145927965641022, 0.05601733177900314, 0.11825568228960037, 0.33072805404663086, 0.10672099888324738, -0.26165571808815, 0.004977824166417122, -0.18784908950328827, -0.1973138153553009, -0.08349771797657013, -0.41177812218666077, -0.0385269895195961, 0.10734705626964569, -0.10955419391393661, 0.27549806237220764, 0.002246587537229061, 0.13024897873401642, -0.26990121603012085, 0.41077110171318054, 0.21065327525138855, 0.35071736574172974, -0.10084972530603409, -0.3703082203865051, -0.30803728103637695, 0.26550814509391785, -0.12916217744350433, -0.0826396495103836, -0.18298286199569702, 0.3932041525840759, 0.30330491065979004, -0.08645816892385483, -0.023297715932130814, 0.22008292376995087, -0.08666137605905533, -0.0657275840640068, -0.12226974219083786, -0.23478496074676514, 0.09279050678014755, -0.09574909508228302, -0.17009757459163666, -0.02278059720993042, 0.0987083688378334, -0.18357205390930176, 0.29107746481895447, -0.044842589646577835, -0.021899795159697533, -0.15074224770069122, 0.11324592679738998, 0.2872861921787262, 0.15049338340759277, 0.7615896463394165, -0.11734507977962494, 0.23079557716846466, -0.016784565523266792, -0.4749479591846466, -0.08232712745666504, 0.4252649247646332, 0.19640110433101654, 0.11947239935398102, -0.071751669049263, 0.0055585200898349285, -0.16088758409023285, 0.10926327854394913, -0.03173340484499931, 0.4009494483470917, -0.026176342740654945, 0.20435434579849243, -0.007720304187387228, 0.017049245536327362, -0.2541932761669159, -0.27701109647750854, 0.24676746129989624, -0.16457609832286835, 0.014708909206092358, -0.3800899386405945, 0.2314912974834442, 0.09828701615333557, -0.19543752074241638, -0.22397740185260773, 0.29751190543174744, 0.0749092772603035, 0.1181388720870018, -0.27131029963493347, 0.07186524569988251, 0.3519836664199829, -0.14798560738563538, -0.25391504168510437, 0.17007505893707275, 0.2874985337257385, 0.2618843913078308, 0.08757409453392029, 0.22400334477424622, -0.08748190104961395, -0.3284141421318054, -0.13833163678646088, 0.11632034182548523 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
Yesterday I resent a reminder email with more AI4Bharat-related people in the loop. I also opened an issue in their repos: - https://github.com/AI4Bharat/indicnlp_corpus/issues/14 - https://github.com/AI4Bharat/ai4bharat.org/issues/71
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
25
ConnectionError in IndicGLUE dataset
[ -0.5636782646179199, 0.2579350769519806, -0.1495562195777893, 0.3366535007953644, 0.10856394469738007, -0.025072535499930382, 0.29216742515563965, 0.05076889321208, 0.01889306865632534, 0.05487886443734169, 0.04982346296310425, -0.008908889256417751, 0.08753681182861328, 0.025766683742403984, -0.27523043751716614, 0.19068121910095215, -0.2221573293209076, 0.4690118134021759, -0.020585663616657257, -0.06865184754133224, -0.07040948420763016, 0.27211669087409973, -0.3686041235923767, 0.1429998278617859, -0.11093252897262573, -0.10015088319778442, 0.22801974415779114, 0.06634609401226044, -0.32195597887039185, -0.24810528755187988, 0.16206778585910797, 0.3274272680282593, -0.035264723002910614, 0.14286133646965027, -0.00010065677633974701, -0.006824909243732691, 0.3096461296081543, -0.17169348895549774, -0.21039077639579773, 0.08506520092487335, -0.6500630974769592, -0.17488543689250946, 0.2041219174861908, -0.24151994287967682, -0.3795367479324341, -0.2862643003463745, 0.07820313423871994, -0.15659572184085846, 0.21350127458572388, 0.2896181344985962, 0.33697107434272766, -0.15828242897987366, 0.4133334755897522, -0.17191360890865326, -0.05261772871017456, -0.1465432345867157, 0.08345900475978851, 0.35388511419296265, -0.14470678567886353, -0.20980669558048248, 0.0984690859913826, 0.1849929839372635, -0.008750289678573608, -0.09322185814380646, 0.16487818956375122, -0.0378105454146862, -0.25142017006874084, -0.1390984058380127, 0.300735741853714, 0.15553021430969238, 0.4679185450077057, -0.09711313247680664, -0.2835922837257385, 0.24522538483142853, 0.10104524344205856, -0.08312327414751053, 0.25670918822288513, 0.09408897906541824, 0.054339855909347534, 0.2604530453681946, 0.14729361236095428, -0.3541772663593292, -0.3995792865753174, 0.1878875494003296, -0.23420272767543793, 0.21698710322380066, -0.10542504489421844, 0.14779670536518097, 0.03920479863882065, -0.15653371810913086, 0.1321273297071457, 0.010998895391821861, -0.22535440325737, -0.06380440294742584, -0.14908480644226074, -0.03340596333146095, -0.14094170928001404, -0.0568593367934227, 0.1378859579563141, 0.16749216616153717, -0.06249752268195152, 0.2140546292066574, 0.1686350554227829, 0.06497272849082947, 0.21504461765289307, -0.19543962180614471, -0.05656443163752556, 0.41261202096939087, 0.5194576382637024, -0.029908686876296997, -0.32213881611824036, -0.2581580579280853, 0.0484810546040535, -0.21957848966121674, 0.047049615532159805, 0.024614544585347176, 0.1666439175605774, -0.1338459700345993, -0.35390645265579224, 0.1251145750284195, -0.41095542907714844, -0.04398049786686897, -0.05599696934223175, 0.14203566312789917, -0.005440410692244768, -0.16849064826965332, 0.047828540205955505, 0.2220652997493744, -0.20981623232364655, -0.2024257332086563, -0.2571345269680023, -0.1156894862651825, 0.14686766266822815, -0.2198207527399063, -0.1646043062210083, 0.05444994941353798, 0.05643130838871002, -0.009686363860964775, -0.16169218719005585, -0.009886636398732662, 0.3800845742225647, -0.38579264283180237, -0.03297119587659836, 0.19744299352169037, 0.036204494535923004, 0.04074513539671898, 0.16746675968170166, -0.557910680770874, 0.047311779111623764, -0.28388410806655884, -0.13900142908096313, -0.23452132940292358, -0.2936549186706543, 0.293479859828949, 0.012068717740476131, 0.08128055185079575, 0.5131348967552185, 0.007758921943604946, 0.2345636487007141, -0.4099836051464081, -0.18486304581165314, -0.3009199798107147, -0.035079218447208405, -0.2161387950181961, 0.14888596534729004, 0.33180391788482666, -0.3722063899040222, 0.11068455129861832, 0.3279050588607788, -0.13760198652744293, 0.3675537407398224, 0.3554795980453491, -0.11873140186071396, -0.2050490826368332, -0.26249393820762634, 0.20716333389282227, 0.48608478903770447, -0.19643548130989075, -0.5354321599006653, 0.4215497672557831, -0.01105278916656971, -0.1978537142276764, 0.07258986681699753, 0.06973304599523544, 0.3849310874938965, 0.1710117757320404, 0.5147460699081421, 0.22070880234241486, -0.0852256715297699, -0.22280344367027283, -0.06875446438789368, -0.14761072397232056, 0.1913551688194275, -0.1175445169210434, 0.025860363617539406, 0.13757766783237457, 0.21482357382774353, -0.08791671693325043, 0.21402575075626373, 0.045012131333351135, 0.11927831918001175, 0.26250332593917847, 0.43419283628463745, 0.04457596689462662, -0.06491639465093613, 0.20183110237121582, -0.19960100948810577, -0.07330872118473053, 0.19368807971477509, 0.4768276810646057, -0.4465143084526062, 0.04557599127292633, -0.11921990662813187, 0.012290408834815025, -0.1369118094444275, 0.14041247963905334, 0.28566908836364746, 0.26058581471443176, 0.02098008058965206, 0.2908262312412262, -0.2210574597120285, 0.6126294136047363, -0.06999964267015457, 0.021752208471298218, -0.21259167790412903, 0.4261222183704376, -0.20653381943702698, -0.16193993389606476, 0.2636852562427521, 0.09155891090631485, 0.15382395684719086, -0.3067793846130371, -0.1645974963903427, 0.2930395305156708, -0.0866861566901207, 0.1458473801612854, 0.40451639890670776, 0.2533226013183594, 0.07293297350406647, -0.5891871452331543, 0.1507134735584259, 0.11018356680870056, 0.26620984077453613, 0.01788325421512127, 0.3336116671562195, 0.3230728805065155, 0.3491605818271637, 0.10676911473274231, 0.02412477880716324, 0.2620771527290344, 0.4540979266166687, 0.12804313004016876, -0.1964254528284073, -0.31176069378852844, -0.14669294655323029, -0.20561055839061737, 0.18876907229423523, -0.02012815698981285, -0.46628811955451965, -0.008055410347878933, 0.16997605562210083, 0.20514513552188873, 0.1847667247056961, -0.14552266895771027, -0.1168549433350563, -0.052654001861810684, 0.0052035036496818066, 0.06147254630923271, 0.3631010353565216, 0.30473506450653076, -0.07440615445375443, 0.05273773521184921, -0.13760928809642792, -0.19648659229278564, 0.25458502769470215, 0.019996391609311104, 0.12273476272821426, 0.30837151408195496, 0.04954088106751442, -0.10268939286470413, -0.28594887256622314, -0.3000752329826355, -0.15523763000965118, 0.36000773310661316, -0.10389874875545502, 0.13787713646888733, -0.11888109147548676, -0.4111514091491699, 0.06283843517303467, -0.108988456428051, -0.3536831736564636, -0.32825741171836853, -0.09295418858528137, -0.15960198640823364, 0.049849022179841995, 0.1339399218559265, -0.3544846177101135, 0.015921268612146378, 0.38848933577537537, 0.05665849521756172, -0.07639577239751816, -0.3822239637374878, -0.261970192193985, 0.15458990633487701, 0.09788240492343903, 0.204471617937088, 0.22309397161006927, -0.05535019189119339, -0.02884594164788723, -0.195166677236557, -0.12084052711725235, 0.07211395353078842, 0.11657450348138809, 0.2607177793979645, 0.48391953110694885, 0.3964505195617676, 0.1064644455909729, -0.07539892941713333, 0.4901224672794342, -0.12491025030612946, 0.06048276647925377, 0.07137677073478699, -0.14541399478912354, -0.0032280469313263893, 0.161427840590477, -0.27445656061172485, -0.4107460081577301, -0.3351518511772156, -0.1387706995010376, 0.18608936667442322, 0.1963687241077423, 0.1660953313112259, 0.0511292926967144, -0.03791111335158348, 0.3208419680595398, 0.1626160889863968, -0.2264341562986374, 0.0035608347970992327, -0.03049618937075138, -0.09544099122285843, -0.296368271112442, 0.10128863155841827, -0.05801531299948692, 0.006535777822136879, 0.1171596571803093, -0.3608498275279999, -0.05654662102460861, -0.03813854604959488, -0.023820240050554276, 0.008081648498773575, -0.1744619607925415, 0.06998208165168762, -0.009012008085846901, -0.13356077671051025, -0.043655384331941605, -0.181175097823143, 0.28082239627838135, 0.2791678011417389, 0.05937233567237854, 0.15926556289196014, 0.5704236030578613, -0.22893919050693512, 0.10946665704250336, 0.2741624116897583, -0.09393150359392166, 0.2343701720237732, -0.22249697148799896, 0.42366868257522583, -0.04340999573469162, -0.4370422959327698, -0.0471000038087368, 0.33231598138809204, -0.04288206249475479, 0.11978626996278763, -0.10463733971118927, -0.37440600991249084, -0.3723508417606354, -0.03375285491347313, -0.1479514092206955, -0.35761165618896484, -0.08385925740003586, -0.031116489320993423, 0.2470763772726059, 0.19247722625732422, -0.22696860134601593, -0.08108355104923248, -0.032868098467588425, -0.07020209729671478, 0.2102043777704239, -0.0759483277797699, 0.05610622465610504, -0.10837578773498535, 0.02210531383752823, -0.4021915793418884, 0.23677076399326324, -0.24004332721233368, 0.6603344082832336, -0.45170190930366516, -0.11944960057735443, 0.004507109988480806, -0.07420079410076141, 0.366914838552475, -0.7419281601905823, -0.334818035364151, 0.28511926531791687, 0.311867356300354, -0.2039937674999237, 0.007064888719469309, -0.17548781633377075, 0.35977569222450256, 0.27706488966941833, 0.36663681268692017, -0.17984667420387268, -0.09120996296405792, 0.3534000813961029, 0.03340256214141846, -0.13371574878692627, 0.06875070184469223, -0.23849694430828094, -0.22438079118728638, -0.06030760332942009, 0.13590344786643982, -0.2380075603723526, 0.23787039518356323, 0.504723310470581, -0.005715926177799702, -0.1060563325881958, -0.21894073486328125, 0.029456714168190956, 0.0641002357006073, 0.04537845775485039, -0.1380993127822876, 0.1422889530658722, 0.11010066419839859, 0.1543733775615692, 0.11538799852132797, 0.5050128102302551, 0.026959525421261787, -0.3371375501155853, 0.24169963598251343, -0.20020532608032227, 0.41950589418411255, 0.11198992282152176, 0.0598449669778347, 0.12521444261074066, 0.11233438551425934, 0.07008714973926544, 0.1030808761715889, 0.003960744012147188, 0.07748791575431824, 0.016500648111104965, -0.5488023161888123, -0.4175522029399872, -0.2947194278240204, -0.11811088025569916, -0.20346371829509735, -0.16765311360359192, 0.27376848459243774, -0.2278885394334793, 0.40142515301704407, -0.09200939536094666, 0.9891456961631775, 0.17717479169368744, -0.07992839813232422, 0.07810211181640625, -0.3729214072227478, 0.2336144745349884, -0.12224999070167542, 0.06167182698845863, -0.4384523630142212, -0.4611073434352875, -0.0848306193947792, -0.10426540672779083, 0.29216253757476807, -0.1935613602399826, -0.11835972964763641, 0.24037708342075348, 0.057297807186841965, 0.13397102057933807, -0.10484760254621506, 0.23893629014492035, 0.10234110802412033, 0.027563799172639847, -0.19600482285022736, 0.2609071135520935, 0.274469256401062, 0.13647572696208954, -0.09640751034021378, -0.3148709237575531, 0.10948044806718826, -0.3511775732040405, -0.0614180788397789, 0.004199646413326263, -0.38695618510246277, 0.3144846558570862, 0.05571523681282997, -0.4549362063407898, -0.21155667304992676, -0.10422463715076447, 0.14478754997253418, 0.08255381137132645, 0.045213498175144196, -0.03950168937444687, 0.1061258539557457, -0.10304960608482361, 0.06238574907183647, 0.15706799924373627, 0.2547261714935303, -0.06994448602199554, -0.19021937251091003, 0.22717376053333282, 0.08558516204357147, -0.31603556871414185, 0.08198481798171997, 0.1064203605055809, -0.2634739279747009, -0.24360021948814392, -0.17345894873142242, -0.1832411140203476, 0.04121073707938194, -0.19977977871894836, 0.1966603398323059, 0.1967795491218567, -0.07585892826318741, 0.1240900382399559, 0.0779985785484314, -0.27208155393600464, -0.1932552605867386, 0.39596226811408997, 0.1724383682012558, 0.16645830869674683, 0.3161776661872864, -0.053101591765880585, -0.19472865760326385, -0.4080701768398285, 0.1574314385652542, 0.1126217171549797, -0.1816677451133728, -0.11631639301776886, -0.07357542216777802, 0.016757462173700333, 0.09799377620220184, 0.04797051474452019, 0.0897904708981514, 0.2685413360595703, -0.055753160268068314, -0.49385008215904236, -0.34088805317878723, 0.09089387953281403, 0.06528030335903168, 0.16035379469394684, -0.00575627526268363, -0.16861683130264282, 0.003296761540696025, -0.15747474133968353, -0.44812285900115967, -0.1948252022266388, -0.5238027572631836, 0.10902503877878189, 0.16514550149440765, -0.21304835379123688, 0.09449277073144913, 0.02450052835047245, 0.3347625732421875, -0.17643575370311737, -0.18574248254299164, -0.27870073914527893, 0.12052932381629944, 0.07045001536607742, 0.16314633190631866, -0.0750822126865387, -0.2510938048362732, -0.2798253297805786, -0.2523252069950104, 0.04299752786755562, 0.10039249807596207, -0.09067415446043015, -0.2595849931240082, -0.18602433800697327, -0.39282554388046265, -0.20170791447162628, -0.23768897354602814, 0.3623849153518677, 0.11351659893989563, 0.19094318151474, -0.18337804079055786, 0.11068563908338547, -0.2569045126438141, -0.16930125653743744, 0.12893544137477875, 0.28355300426483154, -0.1722576916217804, -0.08842044323682785, 0.37708762288093567, -0.3047241270542145, -0.0032994484063237906, 0.314395010471344, 0.35043787956237793, 0.07701445370912552, -0.0848633199930191, -0.005336787551641464, 0.061732642352581024, 0.268433541059494, -0.2341490536928177, 0.061636652797460556, 0.48414185643196106, -0.12311644852161407, 0.22917915880680084, 0.2568177580833435, 0.24637147784233093, -0.08246979862451553, -0.16999444365501404, -0.04367632046341896, 0.45130133628845215, -0.09076453000307083, -0.0403275266289711, 0.005744332447648048, -0.16138769686222076, -0.03070577047765255, 0.07432292401790619, 0.29668453335762024, 0.12172878533601761, 0.5170875787734985, -0.0506279394030571, 0.022138411179184914, 0.31234779953956604, -0.0922740250825882, 0.017239946871995926, -0.33218705654144287, 0.03430105373263359, 0.10426820069551468, 0.023825904354453087, -0.11438506096601486, -0.026180360466241837, 0.06696297228336334, -0.20813657343387604, -0.0735662430524826, -0.10482009500265121, 0.12740734219551086, -0.11741536855697632, 0.04255291819572449, 0.022231418639421463, -0.12049701064825058, -0.04837475344538689, -0.260949045419693, 0.10230359435081482, 0.250813364982605, -0.13111235201358795, 0.019534708932042122, 0.34952986240386963, -0.14962059259414673, 0.0911334976553917, 0.08558987081050873, -0.08643002063035965, -0.21842488646507263, 0.10778354108333588, -0.08815839141607285, 0.37813228368759155, 0.005250128917396069, 0.37146177887916565, 0.469776451587677, 0.1672370582818985, 0.04098891466856003, 0.12194767594337463, 0.16373524069786072, -0.2353389412164688, -0.1783887892961502, 0.0839972048997879, 0.13191105425357819, 0.1138903945684433, 0.3592759072780609, 0.25266802310943604, -0.10145927965641022, 0.05601733177900314, 0.11825568228960037, 0.33072805404663086, 0.10672099888324738, -0.26165571808815, 0.004977824166417122, -0.18784908950328827, -0.1973138153553009, -0.08349771797657013, -0.41177812218666077, -0.0385269895195961, 0.10734705626964569, -0.10955419391393661, 0.27549806237220764, 0.002246587537229061, 0.13024897873401642, -0.26990121603012085, 0.41077110171318054, 0.21065327525138855, 0.35071736574172974, -0.10084972530603409, -0.3703082203865051, -0.30803728103637695, 0.26550814509391785, -0.12916217744350433, -0.0826396495103836, -0.18298286199569702, 0.3932041525840759, 0.30330491065979004, -0.08645816892385483, -0.023297715932130814, 0.22008292376995087, -0.08666137605905533, -0.0657275840640068, -0.12226974219083786, -0.23478496074676514, 0.09279050678014755, -0.09574909508228302, -0.17009757459163666, -0.02278059720993042, 0.0987083688378334, -0.18357205390930176, 0.29107746481895447, -0.044842589646577835, -0.021899795159697533, -0.15074224770069122, 0.11324592679738998, 0.2872861921787262, 0.15049338340759277, 0.7615896463394165, -0.11734507977962494, 0.23079557716846466, -0.016784565523266792, -0.4749479591846466, -0.08232712745666504, 0.4252649247646332, 0.19640110433101654, 0.11947239935398102, -0.071751669049263, 0.0055585200898349285, -0.16088758409023285, 0.10926327854394913, -0.03173340484499931, 0.4009494483470917, -0.026176342740654945, 0.20435434579849243, -0.007720304187387228, 0.017049245536327362, -0.2541932761669159, -0.27701109647750854, 0.24676746129989624, -0.16457609832286835, 0.014708909206092358, -0.3800899386405945, 0.2314912974834442, 0.09828701615333557, -0.19543752074241638, -0.22397740185260773, 0.29751190543174744, 0.0749092772603035, 0.1181388720870018, -0.27131029963493347, 0.07186524569988251, 0.3519836664199829, -0.14798560738563538, -0.25391504168510437, 0.17007505893707275, 0.2874985337257385, 0.2618843913078308, 0.08757409453392029, 0.22400334477424622, -0.08748190104961395, -0.3284141421318054, -0.13833163678646088, 0.11632034182548523 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
We have received a reply from the authors reporting they have updated the URLs of their data files and opened a PR. See: - #4978
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
25
ConnectionError in IndicGLUE dataset
[ -0.5636782646179199, 0.2579350769519806, -0.1495562195777893, 0.3366535007953644, 0.10856394469738007, -0.025072535499930382, 0.29216742515563965, 0.05076889321208, 0.01889306865632534, 0.05487886443734169, 0.04982346296310425, -0.008908889256417751, 0.08753681182861328, 0.025766683742403984, -0.27523043751716614, 0.19068121910095215, -0.2221573293209076, 0.4690118134021759, -0.020585663616657257, -0.06865184754133224, -0.07040948420763016, 0.27211669087409973, -0.3686041235923767, 0.1429998278617859, -0.11093252897262573, -0.10015088319778442, 0.22801974415779114, 0.06634609401226044, -0.32195597887039185, -0.24810528755187988, 0.16206778585910797, 0.3274272680282593, -0.035264723002910614, 0.14286133646965027, -0.00010065677633974701, -0.006824909243732691, 0.3096461296081543, -0.17169348895549774, -0.21039077639579773, 0.08506520092487335, -0.6500630974769592, -0.17488543689250946, 0.2041219174861908, -0.24151994287967682, -0.3795367479324341, -0.2862643003463745, 0.07820313423871994, -0.15659572184085846, 0.21350127458572388, 0.2896181344985962, 0.33697107434272766, -0.15828242897987366, 0.4133334755897522, -0.17191360890865326, -0.05261772871017456, -0.1465432345867157, 0.08345900475978851, 0.35388511419296265, -0.14470678567886353, -0.20980669558048248, 0.0984690859913826, 0.1849929839372635, -0.008750289678573608, -0.09322185814380646, 0.16487818956375122, -0.0378105454146862, -0.25142017006874084, -0.1390984058380127, 0.300735741853714, 0.15553021430969238, 0.4679185450077057, -0.09711313247680664, -0.2835922837257385, 0.24522538483142853, 0.10104524344205856, -0.08312327414751053, 0.25670918822288513, 0.09408897906541824, 0.054339855909347534, 0.2604530453681946, 0.14729361236095428, -0.3541772663593292, -0.3995792865753174, 0.1878875494003296, -0.23420272767543793, 0.21698710322380066, -0.10542504489421844, 0.14779670536518097, 0.03920479863882065, -0.15653371810913086, 0.1321273297071457, 0.010998895391821861, -0.22535440325737, -0.06380440294742584, -0.14908480644226074, -0.03340596333146095, -0.14094170928001404, -0.0568593367934227, 0.1378859579563141, 0.16749216616153717, -0.06249752268195152, 0.2140546292066574, 0.1686350554227829, 0.06497272849082947, 0.21504461765289307, -0.19543962180614471, -0.05656443163752556, 0.41261202096939087, 0.5194576382637024, -0.029908686876296997, -0.32213881611824036, -0.2581580579280853, 0.0484810546040535, -0.21957848966121674, 0.047049615532159805, 0.024614544585347176, 0.1666439175605774, -0.1338459700345993, -0.35390645265579224, 0.1251145750284195, -0.41095542907714844, -0.04398049786686897, -0.05599696934223175, 0.14203566312789917, -0.005440410692244768, -0.16849064826965332, 0.047828540205955505, 0.2220652997493744, -0.20981623232364655, -0.2024257332086563, -0.2571345269680023, -0.1156894862651825, 0.14686766266822815, -0.2198207527399063, -0.1646043062210083, 0.05444994941353798, 0.05643130838871002, -0.009686363860964775, -0.16169218719005585, -0.009886636398732662, 0.3800845742225647, -0.38579264283180237, -0.03297119587659836, 0.19744299352169037, 0.036204494535923004, 0.04074513539671898, 0.16746675968170166, -0.557910680770874, 0.047311779111623764, -0.28388410806655884, -0.13900142908096313, -0.23452132940292358, -0.2936549186706543, 0.293479859828949, 0.012068717740476131, 0.08128055185079575, 0.5131348967552185, 0.007758921943604946, 0.2345636487007141, -0.4099836051464081, -0.18486304581165314, -0.3009199798107147, -0.035079218447208405, -0.2161387950181961, 0.14888596534729004, 0.33180391788482666, -0.3722063899040222, 0.11068455129861832, 0.3279050588607788, -0.13760198652744293, 0.3675537407398224, 0.3554795980453491, -0.11873140186071396, -0.2050490826368332, -0.26249393820762634, 0.20716333389282227, 0.48608478903770447, -0.19643548130989075, -0.5354321599006653, 0.4215497672557831, -0.01105278916656971, -0.1978537142276764, 0.07258986681699753, 0.06973304599523544, 0.3849310874938965, 0.1710117757320404, 0.5147460699081421, 0.22070880234241486, -0.0852256715297699, -0.22280344367027283, -0.06875446438789368, -0.14761072397232056, 0.1913551688194275, -0.1175445169210434, 0.025860363617539406, 0.13757766783237457, 0.21482357382774353, -0.08791671693325043, 0.21402575075626373, 0.045012131333351135, 0.11927831918001175, 0.26250332593917847, 0.43419283628463745, 0.04457596689462662, -0.06491639465093613, 0.20183110237121582, -0.19960100948810577, -0.07330872118473053, 0.19368807971477509, 0.4768276810646057, -0.4465143084526062, 0.04557599127292633, -0.11921990662813187, 0.012290408834815025, -0.1369118094444275, 0.14041247963905334, 0.28566908836364746, 0.26058581471443176, 0.02098008058965206, 0.2908262312412262, -0.2210574597120285, 0.6126294136047363, -0.06999964267015457, 0.021752208471298218, -0.21259167790412903, 0.4261222183704376, -0.20653381943702698, -0.16193993389606476, 0.2636852562427521, 0.09155891090631485, 0.15382395684719086, -0.3067793846130371, -0.1645974963903427, 0.2930395305156708, -0.0866861566901207, 0.1458473801612854, 0.40451639890670776, 0.2533226013183594, 0.07293297350406647, -0.5891871452331543, 0.1507134735584259, 0.11018356680870056, 0.26620984077453613, 0.01788325421512127, 0.3336116671562195, 0.3230728805065155, 0.3491605818271637, 0.10676911473274231, 0.02412477880716324, 0.2620771527290344, 0.4540979266166687, 0.12804313004016876, -0.1964254528284073, -0.31176069378852844, -0.14669294655323029, -0.20561055839061737, 0.18876907229423523, -0.02012815698981285, -0.46628811955451965, -0.008055410347878933, 0.16997605562210083, 0.20514513552188873, 0.1847667247056961, -0.14552266895771027, -0.1168549433350563, -0.052654001861810684, 0.0052035036496818066, 0.06147254630923271, 0.3631010353565216, 0.30473506450653076, -0.07440615445375443, 0.05273773521184921, -0.13760928809642792, -0.19648659229278564, 0.25458502769470215, 0.019996391609311104, 0.12273476272821426, 0.30837151408195496, 0.04954088106751442, -0.10268939286470413, -0.28594887256622314, -0.3000752329826355, -0.15523763000965118, 0.36000773310661316, -0.10389874875545502, 0.13787713646888733, -0.11888109147548676, -0.4111514091491699, 0.06283843517303467, -0.108988456428051, -0.3536831736564636, -0.32825741171836853, -0.09295418858528137, -0.15960198640823364, 0.049849022179841995, 0.1339399218559265, -0.3544846177101135, 0.015921268612146378, 0.38848933577537537, 0.05665849521756172, -0.07639577239751816, -0.3822239637374878, -0.261970192193985, 0.15458990633487701, 0.09788240492343903, 0.204471617937088, 0.22309397161006927, -0.05535019189119339, -0.02884594164788723, -0.195166677236557, -0.12084052711725235, 0.07211395353078842, 0.11657450348138809, 0.2607177793979645, 0.48391953110694885, 0.3964505195617676, 0.1064644455909729, -0.07539892941713333, 0.4901224672794342, -0.12491025030612946, 0.06048276647925377, 0.07137677073478699, -0.14541399478912354, -0.0032280469313263893, 0.161427840590477, -0.27445656061172485, -0.4107460081577301, -0.3351518511772156, -0.1387706995010376, 0.18608936667442322, 0.1963687241077423, 0.1660953313112259, 0.0511292926967144, -0.03791111335158348, 0.3208419680595398, 0.1626160889863968, -0.2264341562986374, 0.0035608347970992327, -0.03049618937075138, -0.09544099122285843, -0.296368271112442, 0.10128863155841827, -0.05801531299948692, 0.006535777822136879, 0.1171596571803093, -0.3608498275279999, -0.05654662102460861, -0.03813854604959488, -0.023820240050554276, 0.008081648498773575, -0.1744619607925415, 0.06998208165168762, -0.009012008085846901, -0.13356077671051025, -0.043655384331941605, -0.181175097823143, 0.28082239627838135, 0.2791678011417389, 0.05937233567237854, 0.15926556289196014, 0.5704236030578613, -0.22893919050693512, 0.10946665704250336, 0.2741624116897583, -0.09393150359392166, 0.2343701720237732, -0.22249697148799896, 0.42366868257522583, -0.04340999573469162, -0.4370422959327698, -0.0471000038087368, 0.33231598138809204, -0.04288206249475479, 0.11978626996278763, -0.10463733971118927, -0.37440600991249084, -0.3723508417606354, -0.03375285491347313, -0.1479514092206955, -0.35761165618896484, -0.08385925740003586, -0.031116489320993423, 0.2470763772726059, 0.19247722625732422, -0.22696860134601593, -0.08108355104923248, -0.032868098467588425, -0.07020209729671478, 0.2102043777704239, -0.0759483277797699, 0.05610622465610504, -0.10837578773498535, 0.02210531383752823, -0.4021915793418884, 0.23677076399326324, -0.24004332721233368, 0.6603344082832336, -0.45170190930366516, -0.11944960057735443, 0.004507109988480806, -0.07420079410076141, 0.366914838552475, -0.7419281601905823, -0.334818035364151, 0.28511926531791687, 0.311867356300354, -0.2039937674999237, 0.007064888719469309, -0.17548781633377075, 0.35977569222450256, 0.27706488966941833, 0.36663681268692017, -0.17984667420387268, -0.09120996296405792, 0.3534000813961029, 0.03340256214141846, -0.13371574878692627, 0.06875070184469223, -0.23849694430828094, -0.22438079118728638, -0.06030760332942009, 0.13590344786643982, -0.2380075603723526, 0.23787039518356323, 0.504723310470581, -0.005715926177799702, -0.1060563325881958, -0.21894073486328125, 0.029456714168190956, 0.0641002357006073, 0.04537845775485039, -0.1380993127822876, 0.1422889530658722, 0.11010066419839859, 0.1543733775615692, 0.11538799852132797, 0.5050128102302551, 0.026959525421261787, -0.3371375501155853, 0.24169963598251343, -0.20020532608032227, 0.41950589418411255, 0.11198992282152176, 0.0598449669778347, 0.12521444261074066, 0.11233438551425934, 0.07008714973926544, 0.1030808761715889, 0.003960744012147188, 0.07748791575431824, 0.016500648111104965, -0.5488023161888123, -0.4175522029399872, -0.2947194278240204, -0.11811088025569916, -0.20346371829509735, -0.16765311360359192, 0.27376848459243774, -0.2278885394334793, 0.40142515301704407, -0.09200939536094666, 0.9891456961631775, 0.17717479169368744, -0.07992839813232422, 0.07810211181640625, -0.3729214072227478, 0.2336144745349884, -0.12224999070167542, 0.06167182698845863, -0.4384523630142212, -0.4611073434352875, -0.0848306193947792, -0.10426540672779083, 0.29216253757476807, -0.1935613602399826, -0.11835972964763641, 0.24037708342075348, 0.057297807186841965, 0.13397102057933807, -0.10484760254621506, 0.23893629014492035, 0.10234110802412033, 0.027563799172639847, -0.19600482285022736, 0.2609071135520935, 0.274469256401062, 0.13647572696208954, -0.09640751034021378, -0.3148709237575531, 0.10948044806718826, -0.3511775732040405, -0.0614180788397789, 0.004199646413326263, -0.38695618510246277, 0.3144846558570862, 0.05571523681282997, -0.4549362063407898, -0.21155667304992676, -0.10422463715076447, 0.14478754997253418, 0.08255381137132645, 0.045213498175144196, -0.03950168937444687, 0.1061258539557457, -0.10304960608482361, 0.06238574907183647, 0.15706799924373627, 0.2547261714935303, -0.06994448602199554, -0.19021937251091003, 0.22717376053333282, 0.08558516204357147, -0.31603556871414185, 0.08198481798171997, 0.1064203605055809, -0.2634739279747009, -0.24360021948814392, -0.17345894873142242, -0.1832411140203476, 0.04121073707938194, -0.19977977871894836, 0.1966603398323059, 0.1967795491218567, -0.07585892826318741, 0.1240900382399559, 0.0779985785484314, -0.27208155393600464, -0.1932552605867386, 0.39596226811408997, 0.1724383682012558, 0.16645830869674683, 0.3161776661872864, -0.053101591765880585, -0.19472865760326385, -0.4080701768398285, 0.1574314385652542, 0.1126217171549797, -0.1816677451133728, -0.11631639301776886, -0.07357542216777802, 0.016757462173700333, 0.09799377620220184, 0.04797051474452019, 0.0897904708981514, 0.2685413360595703, -0.055753160268068314, -0.49385008215904236, -0.34088805317878723, 0.09089387953281403, 0.06528030335903168, 0.16035379469394684, -0.00575627526268363, -0.16861683130264282, 0.003296761540696025, -0.15747474133968353, -0.44812285900115967, -0.1948252022266388, -0.5238027572631836, 0.10902503877878189, 0.16514550149440765, -0.21304835379123688, 0.09449277073144913, 0.02450052835047245, 0.3347625732421875, -0.17643575370311737, -0.18574248254299164, -0.27870073914527893, 0.12052932381629944, 0.07045001536607742, 0.16314633190631866, -0.0750822126865387, -0.2510938048362732, -0.2798253297805786, -0.2523252069950104, 0.04299752786755562, 0.10039249807596207, -0.09067415446043015, -0.2595849931240082, -0.18602433800697327, -0.39282554388046265, -0.20170791447162628, -0.23768897354602814, 0.3623849153518677, 0.11351659893989563, 0.19094318151474, -0.18337804079055786, 0.11068563908338547, -0.2569045126438141, -0.16930125653743744, 0.12893544137477875, 0.28355300426483154, -0.1722576916217804, -0.08842044323682785, 0.37708762288093567, -0.3047241270542145, -0.0032994484063237906, 0.314395010471344, 0.35043787956237793, 0.07701445370912552, -0.0848633199930191, -0.005336787551641464, 0.061732642352581024, 0.268433541059494, -0.2341490536928177, 0.061636652797460556, 0.48414185643196106, -0.12311644852161407, 0.22917915880680084, 0.2568177580833435, 0.24637147784233093, -0.08246979862451553, -0.16999444365501404, -0.04367632046341896, 0.45130133628845215, -0.09076453000307083, -0.0403275266289711, 0.005744332447648048, -0.16138769686222076, -0.03070577047765255, 0.07432292401790619, 0.29668453335762024, 0.12172878533601761, 0.5170875787734985, -0.0506279394030571, 0.022138411179184914, 0.31234779953956604, -0.0922740250825882, 0.017239946871995926, -0.33218705654144287, 0.03430105373263359, 0.10426820069551468, 0.023825904354453087, -0.11438506096601486, -0.026180360466241837, 0.06696297228336334, -0.20813657343387604, -0.0735662430524826, -0.10482009500265121, 0.12740734219551086, -0.11741536855697632, 0.04255291819572449, 0.022231418639421463, -0.12049701064825058, -0.04837475344538689, -0.260949045419693, 0.10230359435081482, 0.250813364982605, -0.13111235201358795, 0.019534708932042122, 0.34952986240386963, -0.14962059259414673, 0.0911334976553917, 0.08558987081050873, -0.08643002063035965, -0.21842488646507263, 0.10778354108333588, -0.08815839141607285, 0.37813228368759155, 0.005250128917396069, 0.37146177887916565, 0.469776451587677, 0.1672370582818985, 0.04098891466856003, 0.12194767594337463, 0.16373524069786072, -0.2353389412164688, -0.1783887892961502, 0.0839972048997879, 0.13191105425357819, 0.1138903945684433, 0.3592759072780609, 0.25266802310943604, -0.10145927965641022, 0.05601733177900314, 0.11825568228960037, 0.33072805404663086, 0.10672099888324738, -0.26165571808815, 0.004977824166417122, -0.18784908950328827, -0.1973138153553009, -0.08349771797657013, -0.41177812218666077, -0.0385269895195961, 0.10734705626964569, -0.10955419391393661, 0.27549806237220764, 0.002246587537229061, 0.13024897873401642, -0.26990121603012085, 0.41077110171318054, 0.21065327525138855, 0.35071736574172974, -0.10084972530603409, -0.3703082203865051, -0.30803728103637695, 0.26550814509391785, -0.12916217744350433, -0.0826396495103836, -0.18298286199569702, 0.3932041525840759, 0.30330491065979004, -0.08645816892385483, -0.023297715932130814, 0.22008292376995087, -0.08666137605905533, -0.0657275840640068, -0.12226974219083786, -0.23478496074676514, 0.09279050678014755, -0.09574909508228302, -0.17009757459163666, -0.02278059720993042, 0.0987083688378334, -0.18357205390930176, 0.29107746481895447, -0.044842589646577835, -0.021899795159697533, -0.15074224770069122, 0.11324592679738998, 0.2872861921787262, 0.15049338340759277, 0.7615896463394165, -0.11734507977962494, 0.23079557716846466, -0.016784565523266792, -0.4749479591846466, -0.08232712745666504, 0.4252649247646332, 0.19640110433101654, 0.11947239935398102, -0.071751669049263, 0.0055585200898349285, -0.16088758409023285, 0.10926327854394913, -0.03173340484499931, 0.4009494483470917, -0.026176342740654945, 0.20435434579849243, -0.007720304187387228, 0.017049245536327362, -0.2541932761669159, -0.27701109647750854, 0.24676746129989624, -0.16457609832286835, 0.014708909206092358, -0.3800899386405945, 0.2314912974834442, 0.09828701615333557, -0.19543752074241638, -0.22397740185260773, 0.29751190543174744, 0.0749092772603035, 0.1181388720870018, -0.27131029963493347, 0.07186524569988251, 0.3519836664199829, -0.14798560738563538, -0.25391504168510437, 0.17007505893707275, 0.2874985337257385, 0.2618843913078308, 0.08757409453392029, 0.22400334477424622, -0.08748190104961395, -0.3284141421318054, -0.13833163678646088, 0.11632034182548523 ]
https://github.com/huggingface/datasets/issues/3568
Downloading Hugging Face Medical Dialog Dataset NonMatchingSplitsSizesError
Hi @fabianslife, thanks for reporting. I think you were using an old version of `datasets` because this bug was already fixed in version `1.13.0` (13 Oct 2021): - Fix: 55fd140a63b8f03a0e72985647e498f1fc799d3f - PR: #3046 - Issue: #2969 Please, feel free to update the library: `pip install -U datasets`.
I wanted to download the Nedical Dialog Dataset from huggingface, using this github link: https://github.com/huggingface/datasets/tree/master/datasets/medical_dialog After downloading the raw datasets from google drive, i unpacked everything and put it in the same folder as the medical_dialog.py which is: ``` import copy import os import re import datasets _CITATION = """\ @article{chen2020meddiag, title={MedDialog: a large-scale medical dialogue dataset}, author={Chen, Shu and Ju, Zeqian and Dong, Xiangyu and Fang, Hongchao and Wang, Sicheng and Yang, Yue and Zeng, Jiaqi and Zhang, Ruisi and Zhang, Ruoyu and Zhou, Meng and Zhu, Penghui and Xie, Pengtao}, journal={arXiv preprint arXiv:2004.03329}, year={2020} } """ _DESCRIPTION = """\ The MedDialog dataset (English) contains conversations (in English) between doctors and patients.\ It has 0.26 million dialogues. The data is continuously growing and more dialogues will be added. \ The raw dialogues are from healthcaremagic.com and icliniq.com.\ All copyrights of the data belong to healthcaremagic.com and icliniq.com. """ _HOMEPAGE = "https://github.com/UCSD-AI4H/Medical-Dialogue-System" _LICENSE = "" class MedicalDialog(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ datasets.BuilderConfig(name="en", description="The dataset of medical dialogs in English.", version=VERSION), datasets.BuilderConfig(name="zh", description="The dataset of medical dialogs in Chinese.", version=VERSION), ] @property def manual_download_instructions(self): return """\ \n For English:\nYou need to go to https://drive.google.com/drive/folders/1g29ssimdZ6JzTST6Y8g6h-ogUNReBtJD?usp=sharing,\ and manually download the dataset from Google Drive. Once it is completed, a file named Medical-Dialogue-Dataset-English-<timestamp-info>.zip will appear in your Downloads folder( or whichever folder your browser chooses to save files to). Unzip the folder to obtain a folder named "Medical-Dialogue-Dataset-English" several text files. Now, you can specify the path to this folder for the data_dir argument in the datasets.load_dataset(...) option. The <path/to/folder> can e.g. be "/Downloads/Medical-Dialogue-Dataset-English". The data can then be loaded using the below command:\ datasets.load_dataset("medical_dialog", name="en", data_dir="/Downloads/Medical-Dialogue-Dataset-English")`. \n For Chinese:\nFollow the above process. Change the 'name' to 'zh'.The download link is https://drive.google.com/drive/folders/1r09_i8nJ9c1nliXVGXwSqRYqklcHd9e2 **NOTE** - A caution while downloading from drive. It is better to download single files since creating a zip might not include files <500 MB. This has been observed mutiple times. - After downloading the files and adding them to the appropriate folder, the path of the folder can be given as input tu the data_dir path. """ datasets.load_dataset("medical_dialog", name="en", data_dir="Medical-Dialogue-Dataset-English") def _info(self): if self.config.name == "zh": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["病人", "医生"]), "utterance": datasets.Value("string"), } ), } ) if self.config.name == "en": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["Patient", "Doctor"]), "utterance": datasets.Value("string"), } ), } ) return datasets.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, features=features, supervised_keys=None, # Homepage of the dataset for documentation homepage=_HOMEPAGE, # License for the dataset if available license=_LICENSE, # Citation for the dataset citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir)) if not os.path.exists(path_to_manual_file): raise FileNotFoundError( f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('medical_dialog', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})" ) filepaths = [ os.path.join(path_to_manual_file, txt_file_name) for txt_file_name in sorted(os.listdir(path_to_manual_file)) if txt_file_name.endswith("txt") ] return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": filepaths})] def _generate_examples(self, filepaths): """Yields examples. Iterates over each file and give the creates the corresponding features. NOTE: - The code makes some assumption on the structure of the raw .txt file. - There are some checks to separate different id's. Hopefully, should not cause further issues later when more txt files are added. """ data_lang = self.config.name id_ = -1 for filepath in filepaths: with open(filepath, encoding="utf-8") as f_in: # Parameters to just "sectionize" the raw data last_part = "" last_dialog = {} last_list = [] last_user = "" check_list = [] # These flags are present to have a single function address both chinese and english data # English data is a little hahazard (i.e. the sentences spans multiple different lines), # Chinese is compact with one line for doctor and patient. conv_flag = False des_flag = False while True: line = f_in.readline() if not line: break # Extracting the dialog id if line[:2] == "id": # Hardcode alert! # Handling ID references that may come in the description # These were observed in the Chinese dataset and were not # followed by numbers try: dialogue_id = int(re.findall(r"\d+", line)[0]) except IndexError: continue # Extracting the url if line[:4] == "http": # Hardcode alert! dialogue_url = line.rstrip() # Extracting the patient info from description. if line[:11] == "Description": # Hardcode alert! last_part = "description" last_dialog = {} last_list = [] last_user = "" last_conv = {"speaker": "", "utterance": ""} while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): break else: if data_lang == "zh": # Condition in chinese if line[:5] == "病情描述:": # Hardcode alert! last_user = "病人" sen = f_in.readline().rstrip() des_flag = True if data_lang == "en": last_user = "Patient" sen = line.rstrip() des_flag = True if des_flag: if sen == "": continue if sen in check_list: last_conv["speaker"] = "" last_conv["utterance"] = "" else: last_conv["speaker"] = last_user last_conv["utterance"] = sen check_list.append(sen) des_flag = False break # Extracting the conversation info from dialogue. elif line[:8] == "Dialogue": # Hardcode alert! if last_part == "description" and len(last_conv["utterance"]) > 0: last_part = "dialogue" if data_lang == "zh": last_user = "病人" if data_lang == "en": last_user = "Patient" while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): conv_flag = False last_user = "" last_list.append(copy.deepcopy(last_conv)) # To ensure close of conversation, only even number of sentences # are extracted last_turn = len(last_list) if int(last_turn / 2) > 0: temp = int(last_turn / 2) id_ += 1 last_dialog["file_name"] = filepath last_dialog["dialogue_id"] = dialogue_id last_dialog["dialogue_url"] = dialogue_url last_dialog["dialogue_turns"] = last_list[: temp * 2] yield id_, last_dialog break if data_lang == "zh": if line[:3] == "病人:" or line[:3] == "医生:": # Hardcode alert! user = line[:2] # Hardcode alert! line = f_in.readline() conv_flag = True # The elif block is to ensure that multi-line sentences are captured. # This has been observed only in english. if data_lang == "en": if line.strip() == "Patient:" or line.strip() == "Doctor:": # Hardcode alert! user = line.replace(":", "").rstrip() line = f_in.readline() conv_flag = True elif line[:2] != "id": # Hardcode alert! conv_flag = True # Continues till the next ID is parsed if conv_flag: sen = line.rstrip() if sen == "": continue if user == last_user: last_conv["utterance"] = last_conv["utterance"] + sen else: last_user = user last_list.append(copy.deepcopy(last_conv)) last_conv["utterance"] = sen last_conv["speaker"] = user ``` running this code gives me the error: ``` File "C:\Users\Fabia\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\utils\info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='medical_dialog'), 'recorded': SplitInfo(name='train', num_bytes=292801173, num_examples=229674, dataset_name='medical_dialog')}] ```
47
Downloading Hugging Face Medical Dialog Dataset NonMatchingSplitsSizesError
[ -0.24216149747371674, -0.08461017161607742, -0.08792252093553543, 0.09143677353858948, 0.19687287509441376, 0.18349535763263702, 0.11367794871330261, 0.37160807847976685, 0.07426250725984573, 0.20250682532787323, -0.2675132751464844, -0.2605762183666229, -0.07416357845067978, 0.5142247676849365, -0.1435903161764145, 0.055563490837812424, -0.2388690561056137, 0.3220981955528259, -0.040253911167383194, -0.09674504399299622, -0.20096991956233978, 0.35947996377944946, -0.26150503754615784, 0.16678909957408905, -0.11724251508712769, -0.15297278761863708, 0.1357848197221756, 0.26641783118247986, -0.2913787066936493, -0.36097460985183716, 0.056442148983478546, -0.033957820385694504, -0.05691142380237579, 0.19339130818843842, -0.00011111317144241184, -0.04266314208507538, 0.35422319173812866, -0.11150364577770233, -0.4624262750148773, -0.06334388256072998, -0.13690297305583954, -0.24640175700187683, 0.014846011064946651, -0.1394246369600296, -0.022973056882619858, 0.09393775463104248, 0.1378464698791504, -0.0729999765753746, 0.3221573531627655, 0.3932180404663086, 0.28194907307624817, 0.5657426118850708, 0.015030929818749428, -0.15139959752559662, 0.10516150295734406, -0.214478000998497, -0.07051461189985275, -0.14139525592327118, 0.27338021993637085, -0.14168207347393036, 0.10838567465543747, 0.38068658113479614, -0.0505673810839653, 0.021762115880846977, -0.051493916660547256, -0.10781677067279816, 0.376029908657074, -0.341959685087204, 0.4192918539047241, 0.36679190397262573, 0.5003464818000793, -0.03520573675632477, -0.11800088733434677, -0.3455917537212372, -0.1087493970990181, 0.08976812660694122, 0.22404204308986664, 0.20142903923988342, -0.18786729872226715, 0.08483831584453583, -0.22547093033790588, -0.16248294711112976, -0.2297297865152359, -0.08800926804542542, 0.13564936816692352, -0.2744341790676117, -0.05302324518561363, -0.10352975875139236, 0.35502296686172485, -0.1313713788986206, 0.2500009834766388, 0.047070689499378204, 0.1618383675813675, 0.11316201090812683, -0.29819440841674805, -0.17136351764202118, -0.11565069854259491, 0.41677114367485046, 0.40486979484558105, 0.06371080875396729, 0.2729920446872711, 0.014636742882430553, 0.12346555292606354, -0.11168932914733887, 0.20376281440258026, -0.1322622448205948, 0.035447027534246445, 0.008949629962444305, 0.1060820072889328, 0.43493226170539856, 0.2652331590652466, 0.072869211435318, 0.07362112402915955, -0.24158528447151184, -0.07003572583198547, 0.08048365265130997, 0.08963499963283539, -0.24663373827934265, -0.33683502674102783, 0.2423621267080307, -0.014245981350541115, 0.05856127664446831, -0.2193751186132431, 0.2652725279331207, -0.21698503196239471, -0.03566140681505203, 0.2795424461364746, -0.06132694333791733, -0.2805476188659668, -0.3099101483821869, -0.2805697023868561, 0.09518152475357056, 0.012140538543462753, 0.09381371736526489, 0.1450885534286499, -0.025524595752358437, 0.2230004519224167, -0.2472216933965683, 0.3112914562225342, 0.22251299023628235, 0.14853374660015106, 0.1476014405488968, -0.24679440259933472, 0.34351831674575806, 0.07265426963567734, 0.11730634421110153, -0.08838938176631927, -0.22072364389896393, 0.1458365023136139, 0.08107692748308182, -0.10184036940336227, -0.20087064802646637, 0.047809164971113205, 0.2504729628562927, -0.12079685181379318, -0.008836805820465088, 0.17804980278015137, -0.004007543437182903, 0.011748884804546833, -0.2056901752948761, -0.03810381889343262, -0.02692239172756672, 0.12046843767166138, -0.2218858152627945, 0.043762825429439545, 0.6555978655815125, -0.1739281564950943, -0.23499178886413574, 0.16794972121715546, -0.39352574944496155, 0.0881076380610466, 0.36857303977012634, 0.027797503396868706, -0.12749283015727997, -0.3553379476070404, 0.4725138545036316, -0.007711504586040974, -0.32551050186157227, -0.6972202062606812, 0.12091823667287827, -0.2195863574743271, 0.10107063502073288, 0.17951461672782898, 0.10729389637708664, 0.021713092923164368, 0.08649558573961258, -0.15111801028251648, 0.30727189779281616, -0.07006813585758209, 0.021375589072704315, -0.2523426115512848, -0.421091765165329, 0.09786216169595718, 0.11619336158037186, 0.251569539308548, 0.1694987416267395, 0.13186249136924744, 0.14960627257823944, 0.41269466280937195, -0.13914671540260315, -0.06120253726840019, 0.1260707825422287, 0.07489492744207382, 0.07220899313688278, -0.034475453197956085, -0.017493806779384613, -0.7092018127441406, 0.056009043008089066, -0.23631206154823303, 0.1498991847038269, -0.3737034797668457, -0.1458631306886673, -0.31891921162605286, -0.12653034925460815, -0.23027998208999634, -0.019817177206277847, 0.16594591736793518, 0.26066774129867554, 0.2229059487581253, 0.15162114799022675, 0.011178756132721901, 0.7529662251472473, -0.02408105880022049, 0.33159521222114563, -0.5357038378715515, 0.32819652557373047, -0.1674555242061615, -0.0973636731505394, 0.34131884574890137, -0.1722114086151123, 0.23036126792430878, -0.07793323695659637, -0.06126559153199196, 0.4076208472251892, 0.012663508765399456, 0.42219534516334534, -0.0740850493311882, -0.0826018676161766, 0.3761475086212158, -0.20511314272880554, -0.06980040669441223, 0.06293799728155136, 0.20939484238624573, -0.010121269151568413, -0.04544014856219292, -0.042162422090768814, -0.35357987880706787, -0.0794285237789154, 0.25393372774124146, 0.1823125034570694, 0.08291447907686234, -0.137601837515831, -0.29951825737953186, -0.2857813537120819, 0.47119808197021484, 0.28521493077278137, 0.0923583135008812, -0.08451028913259506, -0.3906790018081665, 0.03169078007340431, 0.3880869746208191, -0.24787825345993042, 0.046821895986795425, -0.020162761211395264, -0.0025928663089871407, 0.021112900227308273, -0.09623415023088455, -0.12063838541507721, 0.11149296164512634, 0.31176331639289856, -0.10064888000488281, 0.26417770981788635, -0.0015128283994272351, -0.33994060754776, -0.045755740255117416, -0.0934201329946518, 0.1546403020620346, 0.37417465448379517, -0.1630234718322754, 0.0046521564945578575, -0.5019956827163696, 0.07680679112672806, -0.16887237131595612, 0.21380925178527832, -0.3270205855369568, -0.480976402759552, -0.2111581414937973, -0.2685997486114502, 0.10266132652759552, 0.12225008755922318, -0.10734479874372482, -0.12354148924350739, -0.06993971019983292, 0.08203558623790741, 0.011922616511583328, 0.12313064932823181, -0.1499813050031662, 0.3609561622142792, 0.09937658905982971, -0.10361173003911972, -0.04878735914826393, 0.06142987310886383, -0.18794435262680054, 0.14629296958446503, -0.11638578027486801, -0.04282042011618614, 0.3500378429889679, -0.6339628100395203, 0.16333836317062378, -0.1368112713098526, -0.2607771158218384, 0.1258203089237213, 0.0563119575381279, 0.08593825250864029, 0.2105306088924408, 0.46181511878967285, 0.1134851947426796, 0.10128995776176453, 0.054872777312994, -0.2690509855747223, -0.3231450915336609, -0.18285520374774933, 0.17120525240898132, 0.0700623020529747, -0.07692142575979233, -0.31299877166748047, -0.33845290541648865, -0.26724228262901306, 0.08420147001743317, -0.02779187075793743, 0.21107512712478638, 0.24053187668323517, 0.018785113468766212, 0.14433059096336365, -0.1509362757205963, 0.04237398877739906, -0.29454898834228516, 0.01695096120238304, 0.27835071086883545, -0.0674157589673996, -0.4716505706310272, -0.10015374422073364, 0.059584520757198334, -0.04377169534564018, 0.1117936298251152, -0.49947285652160645, -0.1456182897090912, -0.20831187069416046, -0.1381169557571411, 0.04346218705177307, -0.11029345542192459, 0.6118921041488647, 0.03525606170296669, -0.09244712442159653, -0.24920134246349335, -0.4099062383174896, 0.17595268785953522, 0.15031200647354126, 0.23127873241901398, -0.025411587208509445, 0.4195707142353058, 0.06319481879472733, 0.41697052121162415, 0.18986622989177704, 0.2629096508026123, 0.28517648577690125, -0.11860764026641846, 0.35650280117988586, 0.10233771055936813, -0.3628149926662445, 0.26988711953163147, 0.1333475261926651, 0.04390273988246918, 0.17204569280147552, -0.16225570440292358, -0.030602267012000084, -0.27763187885284424, -0.12622450292110443, -0.6156135201454163, -0.127371147274971, -0.2884443700313568, 0.5125115513801575, -0.012571441940963268, 0.25588926672935486, 0.09544361382722855, -0.034510161727666855, 0.029122907668352127, 0.25561875104904175, 0.38997235894203186, 0.028815874829888344, 0.027765320613980293, 0.06656162440776825, 0.12202563136816025, -0.3498449921607971, 0.31958794593811035, -0.03746918961405754, 0.09071210771799088, -0.254803329706192, -0.24259354174137115, 0.06338069587945938, -0.19606271386146545, 0.4628600478172302, -0.22754156589508057, 0.11291234940290451, -0.2907779812812805, -0.14872543513774872, -0.3974236845970154, 0.045754171907901764, -0.08886054158210754, -0.04438074305653572, 0.2909327745437622, 0.5265942811965942, -0.3281441628932953, 0.06050434708595276, 0.0871126800775528, 0.029849382117390633, -0.06041140854358673, -0.012074933387339115, -0.07186659425497055, -0.3868563175201416, -0.3126925528049469, -0.09026051312685013, -0.2745988368988037, 0.20273758471012115, 0.315603643655777, -0.09027951210737228, 0.15460553765296936, -0.16025468707084656, 0.049747053533792496, -0.044884905219078064, 0.10601013898849487, 0.08931739628314972, 0.25440993905067444, 0.5496748089790344, 0.6307852864265442, 0.25908440351486206, 0.5649145245552063, -0.06338950246572495, -0.23487916588783264, -0.08798151463270187, -0.1459815502166748, -0.1342400461435318, 0.49647992849349976, 0.09903573989868164, -0.2625867426395416, 0.2390439510345459, 0.18194152414798737, -0.0031648757867515087, 0.22641725838184357, 0.41256824135780334, -0.07932727038860321, -0.22284841537475586, -0.24446141719818115, 0.23041288554668427, 0.11162715405225754, -0.062346767634153366, -0.36405080556869507, 0.3710533082485199, -0.11081678420305252, -0.2327866405248642, 0.13887162506580353, 0.796545147895813, 0.025182455778121948, 0.13650086522102356, 0.3155246078968048, -0.4175319969654083, 0.44923391938209534, 0.01698564551770687, 0.18974792957305908, -0.27603012323379517, -0.10119844973087311, -0.0834733098745346, -0.26047295331954956, 0.23780164122581482, -0.13409481942653656, -0.03986001014709473, 0.19936321675777435, -0.14568859338760376, 0.0727606788277626, 0.10402669757604599, 0.32705435156822205, -0.13881462812423706, -0.03539617359638214, 0.1347503513097763, 0.15152782201766968, -0.1274227648973465, 0.4489099681377411, -0.09101241827011108, -0.27653834223747253, -0.15611974895000458, -0.10034212470054626, -0.19298221170902252, 0.3095396161079407, -0.599493145942688, -0.1093275174498558, -0.21455588936805725, -0.03429953008890152, -0.030857384204864502, 0.08423152565956116, 0.260263055562973, -0.055270906537771225, -0.3447328209877014, 0.13272696733474731, -0.022475674748420715, -0.2990877628326416, -0.1426040381193161, -0.06176169961690903, 0.26561999320983887, -0.2986164093017578, -0.2269122302532196, 0.11736951768398285, 0.19350512325763702, -0.1748581975698471, -0.306435763835907, -0.19536300003528595, -0.28917521238327026, -0.2654881477355957, -0.1699705272912979, -0.132661372423172, 0.1387341171503067, -0.15988391637802124, 0.16463442146778107, -0.12837108969688416, -0.10734904557466507, 0.16187788546085358, 0.29791563749313354, -0.2935715913772583, -0.3611885905265808, 0.5150086879730225, 0.11732450127601624, -0.19275635480880737, 0.49122297763824463, 0.02556144818663597, -0.26970529556274414, -0.37661683559417725, -0.1650666743516922, 0.17483380436897278, -0.31898874044418335, 0.04480581358075142, -0.22052925825119019, -0.009502406232059002, 0.019403250887989998, 0.3219122886657715, 0.4365116059780121, -0.15374678373336792, 0.028803536668419838, -0.2580106854438782, -0.373816579580307, 0.017097288742661476, 0.012999468483030796, 0.13629913330078125, 0.0968858152627945, 0.22081084549427032, 0.08709534257650375, -0.1220841035246849, -0.3939480185508728, 0.05514104664325714, -0.048705343157052994, -0.14359645545482635, 0.4883800446987152, -0.17193149030208588, 0.23469194769859314, 0.05536716803908348, 0.23771195113658905, 0.24841494858264923, -0.25594550371170044, -0.2811291515827179, -0.005222689360380173, 0.07759127765893936, 0.057600587606430054, -0.29031145572662354, 0.02383679337799549, -0.2148813009262085, -0.2171199768781662, 0.18377406895160675, 0.07801436632871628, 0.08979904651641846, 0.06287815421819687, 0.07871943712234497, -0.2937181890010834, -0.2590002417564392, 0.2562817633152008, 0.29267996549606323, -0.12553250789642334, 0.3650560677051544, -0.156243696808815, 0.08900734782218933, -0.18667814135551453, -0.08040015399456024, 0.5096272826194763, 0.10514949262142181, 0.16269758343696594, 0.06425578892230988, 0.2522112727165222, -0.45214200019836426, -0.15211035311222076, 0.21057938039302826, 0.216232568025589, 0.36128711700439453, -0.1435164213180542, -0.16969409584999084, -0.006993857212364674, 0.21941427886486053, -0.39258450269699097, -0.0159841850399971, 0.35207274556159973, -0.19224879145622253, 0.19270573556423187, 0.33152052760124207, 0.06953486800193787, 0.026722032576799393, -0.04340757429599762, 0.06154778599739075, 0.48681601881980896, 0.28145289421081543, -0.10890103876590729, 0.44963791966438293, -0.11045844107866287, 0.01729755476117134, 0.21321649849414825, 0.35926610231399536, 0.18184959888458252, 0.280978798866272, -0.32029086351394653, -0.05940739065408707, -0.29186567664146423, 0.15157173573970795, -0.0625210627913475, -0.2608186900615692, 0.051155705004930496, 0.2931693196296692, -0.2957821488380432, 0.21345622837543488, 0.0556788444519043, 0.1782921403646469, 0.007389769423753023, -0.0390506349503994, -0.26157110929489136, -0.007397297769784927, -0.20295950770378113, -0.009702290408313274, -0.0873536691069603, -0.2494126707315445, -0.2962174713611603, 0.2131514847278595, 0.11115353554487228, -0.058981701731681824, 0.2403782308101654, -0.23058360815048218, -0.05971984565258026, -0.0596284419298172, -0.3278200030326843, 0.253683477640152, -0.0709759071469307, -0.32010897994041443, -0.011317020282149315, -0.059249237179756165, -0.012053894810378551, 0.23062321543693542, 0.5139349102973938, 0.3563233017921448, 0.18171997368335724, -0.32024267315864563, -0.05536160245537758, -0.02184273675084114, 0.0063338205218315125, 0.003300305223092437, 0.33080625534057617, 0.19615070521831512, 0.028568806126713753, 0.5214768052101135, 0.1400189995765686, -0.2614472210407257, 0.24320922791957855, -0.08417794853448868, -0.10690786689519882, -0.2770415246486664, -0.3407902121543884, -0.2842019200325012, 0.29877859354019165, -0.2512211203575134, -0.13282042741775513, -0.5048357248306274, -0.23181597888469696, 0.1353495866060257, -0.07129239290952682, 0.33249154686927795, 0.09812894463539124, 0.104441799223423, -0.2098253220319748, 0.5117881894111633, 0.6170380115509033, 0.066962331533432, -0.009953261353075504, -0.06540723890066147, -0.5553370714187622, 0.07709787040948868, -0.03906289115548134, -0.08922872692346573, -0.029774166643619537, 0.21523083746433258, 0.12030058354139328, -0.047879237681627274, 0.45168328285217285, 0.5682100653648376, -0.0923943743109703, -0.17040687799453735, -0.006096951197832823, -0.032771315425634384, 0.16559681296348572, -0.02555360272526741, 0.07966026663780212, -0.20586378872394562, 0.3098105788230896, 0.08709827065467834, 0.1435527205467224, -0.30731895565986633, 0.15969249606132507, -0.2669641971588135, -0.2822315990924835, 0.32835695147514343, 0.2311163991689682, 0.28302061557769775, -0.2962847948074341, -0.29787924885749817, 0.07629457861185074, 0.18776695430278778, -0.16071882843971252, 0.1430852711200714, 0.3336086869239807, 0.11393826454877853, -0.02353711798787117, 0.1403321623802185, -0.08020490407943726, 0.3233467936515808, 0.28423386812210083, -0.08287966251373291, -0.12606370449066162, -0.020937778055667877, 0.08703251928091049, -0.19742551445960999, -0.09286077320575714, 0.12386881560087204, -0.16023747622966766, 0.06945202499628067, -0.17279914021492004, -0.2899967432022095, 0.5376047492027283, -0.1261294186115265, -0.050419364124536514, -0.1865561157464981, 0.1506287306547165, 0.14283746480941772, -0.06095067411661148, -0.33640024065971375, 0.20612917840480804, 0.10274408012628555, -0.053826384246349335, -0.300763875246048, 0.19601793587207794, -0.20822185277938843, -0.21147693693637848, 0.030799193307757378, 0.3802746534347534, 0.33006221055984497, -0.17029732465744019, 0.12574955821037292, -0.07677171379327774 ]
https://github.com/huggingface/datasets/issues/3563
Dataset.from_pandas preserves useless index
Hi! That makes sense. Sure, feel free to open a PR! Just a small suggestion: let's make `preserve_index` a parameter of `Dataset.from_pandas` (which we then pass to `InMemoryTable.from_pandas`) with `None` as a default value to not have this as a breaking change.
## Describe the bug Let's say that you want to create a Dataset object from pandas dataframe. Most likely you will write something like this: ``` import pandas as pd from datasets import Dataset df = pd.read_csv('some_dataset.csv') # Some DataFrame preprocessing code... dataset = Dataset.from_pandas(df) ``` If your preprocessing code contain indexing operations like this: ``` df = df[df.col1 == some_value] ``` then your df.index can be changed from (default) ```RangeIndex(start=0, stop=16590, step=1)``` to something like this ```Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... 83979, 83980, 83981, 83982, 83983, 83984, 83985, 83986, 83987, 83988], dtype='int64', length=16590)``` In this case, PyArrow (by default) will preserve this non-standard index. In the result, your dataset object will have the extra field that you likely don't want to have: '__index_level_0__'. You can easily fix this by just adding extra argument ```preserve_index=False``` to call of ```InMemoryTable.from_pandas``` in ```arrow_dataset.py```. If you approve that this isn't desirable behavior, I can make a PR fixing that. ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-5.11.0-44-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1
42
Dataset.from_pandas preserves useless index
[ -0.26322227716445923, 0.13027365505695343, -0.14283710718154907, 0.18935109674930573, 0.24627253413200378, 0.22265727818012238, 0.5761414170265198, 0.275834858417511, -0.001582149532623589, 0.1258794367313385, -0.14956599473953247, 0.4628072679042816, 0.11030399799346924, 0.27494651079177856, -0.1697891652584076, 0.015932703390717506, 0.08098586648702621, 0.29610127210617065, -0.12801849842071533, -0.17742018401622772, -0.34240981936454773, -0.12508875131607056, -0.15243777632713318, 0.15070274472236633, -0.1917264610528946, -0.1489042341709137, 0.22218085825443268, 0.042310185730457306, -0.10293138027191162, -0.21946677565574646, 0.27347904443740845, -0.10271517932415009, 0.05269940197467804, 0.23239019513130188, -0.00010331853263778612, -0.008399521000683308, 0.24749384820461273, 0.11525296419858932, -0.06871210783720016, -0.018673501908779144, -0.2876232862472534, 0.10543951392173767, 0.03970302641391754, -0.08504584431648254, -0.04032502695918083, -0.3148975074291229, -0.21581372618675232, -0.36645981669425964, -0.009570041671395302, 0.25627630949020386, 0.27815762162208557, 0.1675640195608139, -0.23650667071342468, -0.18418441712856293, -0.08958643674850464, -0.13101646304130554, 0.0404190719127655, -0.07427912205457687, -0.27903658151626587, -0.09027493000030518, -0.07400274276733398, 0.10506980866193771, -0.1043141558766365, -0.11012386530637741, -0.05399458482861519, -0.019994767382740974, 0.1520235538482666, -0.09425734728574753, 0.36899903416633606, 0.16999652981758118, 0.42643216252326965, -0.24062316119670868, -0.19547627866268158, -0.13456620275974274, 0.056192103773355484, -0.16950911283493042, -0.26165804266929626, -0.022232139483094215, 0.27450031042099, 0.42109423875808716, 0.16238898038864136, 0.04459938779473305, -0.15211322903633118, -0.06763847172260284, -0.5026063919067383, 0.11557779461145401, -0.006710531655699015, 0.12137791514396667, 0.017843367531895638, 0.15666711330413818, 0.21518824994564056, -0.1481710821390152, 0.12833696603775024, -0.026153748854994774, -0.18028925359249115, 0.013860837556421757, 0.474668949842453, -0.30107948184013367, -0.10547784715890884, -0.15608884394168854, -0.09535450488328934, 0.2508160471916199, 0.02180618606507778, -0.08207966387271881, 0.27842235565185547, 0.09282425045967102, 0.03184063360095024, 0.4192810356616974, 0.2476336508989334, -0.12121334671974182, -0.09894681721925735, 0.015546395443379879, 0.327951580286026, -0.017040640115737915, 0.2114166021347046, -0.1868768334388733, 0.09945995360612869, -0.055608369410037994, -0.5762337446212769, 0.30168142914772034, -0.12900127470493317, 0.00775075564160943, 0.035562120378017426, 0.20893853902816772, 0.0060985335148870945, 0.37336742877960205, -0.22741736471652985, 0.0972113236784935, -0.2568991184234619, 0.27374953031539917, -0.4338715076446533, 0.012079184874892235, 0.11018939316272736, -0.1688053458929062, -0.10167023539543152, -0.14476698637008667, 0.19973501563072205, 0.05604766681790352, -0.02588185854256153, 0.23639068007469177, 0.0752013623714447, -0.10501281172037125, 0.3565709590911865, 0.25460249185562134, -0.032437995076179504, 0.2611840069293976, 0.2542877495288849, -0.37807437777519226, -0.17616473138332367, 0.16897477209568024, 0.06911329925060272, -0.3567790687084198, -0.07856801152229309, 0.2903660535812378, -0.01524113304913044, 0.2185269445180893, -0.1628812998533249, 0.2638342082500458, -0.0426197350025177, 0.11298643797636032, 0.14555461704730988, -0.31785547733306885, -0.11684145033359528, -0.057155247777700424, 0.06681279838085175, 0.15168966352939606, -0.3407089114189148, 0.06104398891329765, 0.027185315266251564, -0.31284695863723755, 0.01570514217019081, -0.0537332147359848, -0.2800320088863373, 0.11111505329608917, -0.315165638923645, 0.011233038268983364, 0.14049017429351807, -0.23488527536392212, -0.43460553884506226, 0.09969626367092133, -0.2021019160747528, 0.028599809855222702, 0.042000383138656616, 0.19232994318008423, 0.03891370818018913, 0.052054643630981445, 0.09988867491483688, 0.16689501702785492, -0.049863629043102264, -0.18460622429847717, -0.05773940682411194, 0.0685163140296936, 0.21555088460445404, 0.07034676522016525, 0.14240053296089172, 0.3184582591056824, 0.3574761152267456, -0.09477530419826508, 0.2935119569301605, -0.02084972709417343, -0.03644055873155594, 0.2551684081554413, 0.16469787061214447, -0.15996260941028595, 0.1611434519290924, -0.23994605243206024, -0.12269549816846848, 0.12778593599796295, 0.25430089235305786, -0.04888316988945007, -0.24673183262348175, -0.23910343647003174, -0.3312610983848572, 0.10639479756355286, -0.07472473382949829, -0.10010969638824463, 0.1162070482969284, -0.1007189080119133, -0.25119873881340027, 0.10736797004938126, -0.3386835753917694, 0.20187750458717346, -0.34113678336143494, -0.0761924758553505, -0.30546140670776367, 0.22565105557441711, -0.02591274492442608, 0.21867845952510834, 0.208494633436203, 0.042005401104688644, -0.014878710731863976, -0.06910504400730133, 0.09351906925439835, 0.20731985569000244, 0.09273711591959, 0.09338951110839844, 0.1603664755821228, -0.011292009614408016, 0.05978991463780403, -0.07830211520195007, -0.09686335921287537, 0.1463477909564972, 0.16721060872077942, -0.00005078358299215324, -0.22067135572433472, 0.40965354442596436, -0.25498145818710327, 0.07297899574041367, 0.07998207956552505, 0.00002568105082900729, 0.3989669978618622, -0.02839154750108719, -0.009138436987996101, -0.29420334100723267, -0.33351215720176697, 0.16631536185741425, -0.03226293995976448, 0.31314149498939514, -0.5089937448501587, 0.40914684534072876, 0.29442739486694336, -0.23832495510578156, -0.14003026485443115, -0.12057638168334961, -0.02955065853893757, -0.1314464658498764, 0.1054329127073288, 0.2551313638687134, 0.19444681704044342, 0.23025132715702057, 0.4915914535522461, -0.05676369369029999, -0.17693762481212616, -0.20767897367477417, 0.057850293815135956, -0.13252276182174683, -0.10107143968343735, 0.23680457472801208, -0.036632198840379715, -0.31008127331733704, -0.2644307017326355, 0.15159203112125397, 0.015784606337547302, 0.3793778717517853, -0.30247238278388977, 0.22132940590381622, -0.3801772892475128, -0.39457976818084717, 0.014955185353755951, -0.1562705934047699, -0.03433329612016678, -0.3486899733543396, -0.15995286405086517, 0.23581194877624512, -0.19050568342208862, 0.28060290217399597, -0.4452609121799469, 0.05765211954712868, 0.347987562417984, -0.33146974444389343, 0.32296162843704224, -0.1784479022026062, -0.1745515614748001, 0.22062307596206665, -0.22195561230182648, 0.39794522523880005, 0.046199981123209, -0.1464119255542755, -0.05689770728349686, -0.3877217173576355, -0.09742198139429092, 0.028826985508203506, -0.09515602141618729, 0.4029259979724884, 0.11555361747741699, 0.0707300454378128, -0.45700621604919434, 0.045317329466342926, -0.03815757483243942, -0.4262276291847229, -0.024108469486236572, -0.11177700012922287, -0.14604924619197845, 0.21822960674762726, 0.08717729151248932, -0.37704190611839294, 0.019701991230249405, -0.1864875853061676, -0.05253250151872635, 0.0024733329191803932, -0.027265843003988266, 0.17047065496444702, 0.007990127429366112, -0.08881871402263641, 0.24638931453227997, -0.08297461271286011, -0.4310440719127655, -0.29265427589416504, 0.47116711735725403, -0.055102817714214325, -0.38497841358184814, -0.14704905450344086, -0.3373284339904785, -0.018797704949975014, 0.16581159830093384, -0.40487509965896606, -0.18953949213027954, 0.042054176330566406, 0.1805548369884491, 0.10583183169364929, 0.39520156383514404, 0.19830405712127686, 0.10447270423173904, -0.19368377327919006, -0.1428920328617096, -0.27563807368278503, 0.14317946135997772, 0.19290810823440552, -0.013244887813925743, -0.15076778829097748, 0.2717660665512085, -0.08878193795681, 0.3613837957382202, -0.10875522345304489, 0.12001994252204895, 0.37272924184799194, -0.2247086763381958, 0.7771731615066528, -0.15407173335552216, -0.32767730951309204, -0.11177106201648712, 0.18559183180332184, 0.036447618156671524, 0.19343657791614532, -0.09286868572235107, -0.1297193020582199, 0.031124306842684746, -0.21113471686840057, -0.16150584816932678, -0.1739545613527298, -0.10722263157367706, 0.11718012392520905, 0.04800797253847122, 0.536008358001709, 0.3777337968349457, -0.22481919825077057, 0.03526680916547775, 0.009206732735037804, -0.3323565721511841, 0.010454281233251095, -0.14898163080215454, -0.22025124728679657, 0.08815143257379532, -0.3752247989177704, -0.08270443975925446, 0.09756476432085037, 0.2645295262336731, 0.2791211009025574, -0.34771817922592163, 0.009341884404420853, 0.031498659402132034, 0.6569223403930664, -0.03250344097614288, 0.04836472496390343, 0.2887721359729767, -0.14429925382137299, -0.4283258318901062, 0.31285548210144043, -0.026910416781902313, 0.23544609546661377, -0.1493796855211258, 0.17134946584701538, -0.08867838233709335, -0.03844849765300751, 0.1799595057964325, 0.3446449935436249, -0.14443206787109375, -0.08815764635801315, -0.2019982784986496, -0.22428543865680695, 0.0936051458120346, 0.026501799002289772, 0.11109311133623123, 0.2390677034854889, -0.03709041327238083, 0.09336254745721817, -0.41594818234443665, -0.31262660026550293, 0.28426167368888855, 0.24644462764263153, 0.34451696276664734, 0.17621594667434692, 0.22756849229335785, 0.021903783082962036, -0.005425932351499796, 0.3558540344238281, 0.6058470010757446, -0.3702525794506073, 0.045511409640312195, -0.08699148148298264, -0.27294039726257324, 0.29384365677833557, 0.35038357973098755, -0.025834186002612114, -0.03135185316205025, -0.23112879693508148, -0.03231355547904968, 0.03889467567205429, 0.18072766065597534, 0.006005987990647554, 0.019809456542134285, -0.20086486637592316, -0.45245304703712463, 0.18464715778827667, 0.029102740809321404, -0.1274825483560562, 0.1527990996837616, 0.47124919295310974, -0.2553290128707886, 0.12230392545461655, 0.028397977352142334, 0.49380767345428467, 0.07989510148763657, 0.40968671441078186, 0.2878471612930298, 0.06727790832519531, 0.24895523488521576, 0.19160060584545135, 0.2534782290458679, -0.2756420075893402, -0.6150867342948914, -0.027001745998859406, -0.03902481496334076, -0.09222083538770676, 0.0843772441148758, 0.32552361488342285, 0.3171297013759613, -0.07301460206508636, 0.2978619933128357, 0.09487126767635345, 0.3002989888191223, -0.06360320746898651, -0.12902520596981049, -0.41923314332962036, 0.09378889203071594, 0.24558690190315247, -0.28146690130233765, -0.03889773413538933, -0.04527021199464798, -0.08811718970537186, 0.0852484181523323, 0.30656030774116516, -0.02967076189815998, 0.30543598532676697, 0.4098087251186371, -0.14195077121257782, -0.3642907738685608, -0.33007803559303284, -0.013346832245588303, 0.3376655578613281, -0.19824333488941193, 0.1325773149728775, 0.16562345623970032, 0.03422694280743599, 0.06155088543891907, 0.12030748277902603, -0.07292630523443222, 0.5044764876365662, 0.18019866943359375, -0.16266600787639618, 0.07517828047275543, 0.056454744189977646, -0.33568114042282104, -0.1610008031129837, 0.045099709182977676, -0.2607401907444, -0.21983583271503448, -0.023830736055970192, 0.07822161912918091, 0.22181366384029388, -0.3408328890800476, 0.18765810132026672, 0.18842676281929016, 0.02032841183245182, 0.3959040641784668, -0.05237074941396713, -0.30664965510368347, -0.42055177688598633, 0.4212344288825989, 0.19378751516342163, 0.27490171790122986, 0.14005504548549652, -0.03402978554368019, -0.3385622501373291, -0.17710810899734497, 0.17219896614551544, 0.3138262927532196, 0.20442067086696625, 0.3427600562572479, -0.09510798752307892, -0.005678597837686539, -0.1521008312702179, 0.0821518748998642, -0.06207575276494026, 0.11112304776906967, -0.15403595566749573, -0.29178959131240845, -0.43649929761886597, 0.07906575500965118, 0.12694431841373444, 0.22242504358291626, 0.013274280354380608, -0.07418697327375412, -0.07924918085336685, -0.2583485543727875, -0.37626001238822937, 0.1175847053527832, 0.00017100827244576067, 0.23580679297447205, 0.14104525744915009, -0.052055131644010544, 0.16235332190990448, -0.47774195671081543, 0.28310951590538025, -0.22399426996707916, 0.008161813020706177, -0.3581177592277527, -0.2876500189304352, 0.09049191325902939, -0.019099662080407143, -0.09661311656236649, 0.12084989249706268, -0.3036249577999115, -0.26874062418937683, -0.20595353841781616, 0.04125715047121048, 0.566748857498169, 0.07058539986610413, 0.021041937172412872, -0.049137745052576065, -0.0818498283624649, 0.20645762979984283, -0.15608030557632446, -0.07706136256456375, 0.3408309817314148, -0.09354395419359207, 0.16748294234275818, -0.086530901491642, 0.08286101371049881, 0.17768190801143646, -0.042929477989673615, -0.2098364382982254, -0.06816253066062927, 0.3850310742855072, -0.3723762035369873, -0.17773327231407166, 0.47768205404281616, 0.6097120642662048, 0.3538604974746704, -0.04684196412563324, -0.20636063814163208, 0.16912925243377686, 0.3021470308303833, -0.4356878697872162, -0.10637190192937851, 0.14959463477134705, -0.3226039707660675, 0.18038025498390198, 0.24444124102592468, 0.2493126541376114, -0.11225210130214691, -0.023992203176021576, 0.11820313334465027, 0.2207188904285431, -0.08392844349145889, 0.01703079603612423, 0.33612027764320374, -0.00909748300909996, -0.035300757735967636, 0.357425719499588, 0.4278258979320526, 0.3255675435066223, 0.7770674228668213, 0.2965199947357178, 0.28701382875442505, -0.048863667994737625, 0.06733749806880951, -0.3586745262145996, -0.006686289329081774, 0.3583511412143707, 0.21937476098537445, -0.38579875230789185, -0.1116582602262497, 0.47949641942977905, 0.13659818470478058, -0.2442891001701355, 0.05067574605345726, 0.1175350770354271, 0.0815276950597763, -0.1585281938314438, -0.10747294872999191, 0.2789018154144287, -0.18734270334243774, 0.11777286231517792, 0.09502643346786499, 0.16404834389686584, -0.16192187368869781, -0.16765795648097992, -0.16503915190696716, -0.04658383131027222, -0.26750075817108154, 0.22455227375030518, -0.06136577948927879, 0.21016506850719452, 0.16039139032363892, -0.3275073766708374, 0.005564606748521328, -0.07798976451158524, 0.08369163423776627, 0.07812420278787613, 0.0893673375248909, -0.2183491438627243, -0.05292996019124985, -0.016299592331051826, 0.21427063643932343, -0.3184190094470978, -0.059989579021930695, -0.028816670179367065, 0.014808103442192078, 0.020110564306378365, 0.388664186000824, 0.20948156714439392, -0.21459409594535828, -0.034741684794425964, 0.35939404368400574, 0.3258295953273773, -0.34342747926712036, 0.19726425409317017, 0.07706262916326523, -0.07860951125621796, 0.008982757106423378, -0.028862809762358665, -0.007682905066758394, -0.020670579746365547, 0.2837182581424713, -0.259308397769928, 0.20052464306354523, -0.2371225655078888, 0.1461869329214096, -0.06543547660112381, 0.08008406311273575, -0.10663288086652756, 0.13651494681835175, 0.06920326501131058, 0.16824479401111603, -0.7531719207763672, 0.1160227507352829, 0.1398226022720337, -0.022688282653689384, 0.07049859315156937, 0.2301529496908188, 0.0027735382318496704, -0.20480404794216156, 0.2446116805076599, 0.15765976905822754, 0.13637137413024902, -0.027510255575180054, 0.09455062448978424, -0.37436380982398987, -0.4466853141784668, 0.11055655777454376, -0.30723729729652405, -0.27930471301078796, 0.15736189484596252, -0.25189900398254395, 0.25537964701652527, -0.12893161177635193, -0.01616249978542328, -0.05272826924920082, 0.014802202582359314, 0.2682921290397644, 0.19804856181144714, -0.11901509761810303, -0.18586750328540802, 0.1921629011631012, -0.02123197726905346, -0.12953026592731476, -0.1404055804014206, 0.3242558240890503, 0.023415928706526756, 0.11425674706697464, -0.13105256855487823, -0.14912749826908112, -0.07727107405662537, 0.178622305393219, 0.3504703640937805, 0.054296571761369705, -0.4883486330509186, 0.29157373309135437, -0.33257031440734863, 0.057990912348032, -0.18241426348686218, 0.26734083890914917, 0.018702013418078423, 0.23700618743896484, 0.2021562159061432, -0.35215431451797485, 0.2456662505865097, -0.4473489224910736, -0.49213555455207825, -0.21385227143764496, 0.03266296163201332, 0.43812158703804016, -0.3044727146625519, 0.012080979533493519, 0.07277967780828476, 0.24511320888996124, -0.2138381451368332, -0.2301662713289261, 0.03698819503188133, -0.3486309051513672, 0.17685909569263458, -0.13152581453323364, 0.14654703438282013, 0.16411639750003815, -0.3448517918586731, 0.03397637605667114, -0.15798358619213104 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
The host of this copy of the dataset (https://the-eye.eu) is down and has been down for a good amount of time ([potentially months](https://www.reddit.com/r/Roms/comments/q82s15/theeye_downdied/)) Finding this dataset is a little esoteric, as the original authors took down the official BookCorpus dataset some time ago. There are community-created versions of BookCorpus, such as the files hosted in the link below. https://battle.shawwn.com/sdb/bookcorpus/ And more discussion here: https://github.com/soskek/bookcorpus Do we want to remove this dataset entirely? There's a fair argument for this, given that the official BookCorpus dataset was taken down by the authors. If not, perhaps can open a PR with the link to the community-created tar above and updated dataset description.
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
109
Cannot load ‘bookcorpusopen’
[ -0.1762579083442688, 0.016153449192643166, -0.2357427030801773, 0.18272528052330017, -0.059323571622371674, -0.11884128302335739, 0.1102532148361206, 0.011829943396151066, -0.10841663926839828, 0.006371088791638613, -0.37981295585632324, 0.16743914783000946, 0.2613947093486786, 0.3388075828552246, 0.10000776499509811, 0.2373737096786499, 0.04769396036863327, 0.23514769971370697, 0.15325596928596497, -0.058891937136650085, -0.43445080518722534, 0.42063871026039124, -0.10703139007091522, 0.25277915596961975, 0.20998865365982056, -0.029583824798464775, 0.07158701866865158, 0.3398875892162323, -0.3383287489414215, -0.15459001064300537, 0.33153432607650757, 0.3601914048194885, 0.11595261096954346, 0.3779694139957428, -0.00010352046956541017, 0.04721615090966225, 0.1615607589483261, -0.035846590995788574, -0.14883875846862793, 0.024723071604967117, -0.10510857403278351, -0.03561948239803314, 0.1071111410856247, -0.304720401763916, -0.0320921465754509, 0.3194456994533539, 0.15496426820755005, 0.1560627520084381, -0.06651399284601212, -0.016291668638586998, 0.3339408040046692, 0.13587845861911774, 0.24909290671348572, -0.16153185069561005, 0.12294034659862518, -0.21558748185634613, -0.33109331130981445, 0.3392479121685028, 0.6157258749008179, -0.07272998243570328, -0.011261038482189178, -0.08058395981788635, 0.0032147224992513657, -0.03890213742852211, 0.11829023063182831, -0.22087611258029938, 0.6667844653129578, 0.05110470578074455, 0.30715763568878174, 0.0243950504809618, 0.22533130645751953, -0.14643827080726624, -0.002080758800730109, 0.3846215307712555, 0.2543509602546692, -0.03426526486873627, 0.38390010595321655, 0.29060545563697815, 0.09224655479192734, 0.03886285424232483, -0.12751834094524384, -0.5762901306152344, -0.037160951644182205, -0.0013569763395935297, -0.07365909218788147, 0.307464063167572, -0.13372085988521576, -0.01397699024528265, 0.5016058087348938, 0.22130191326141357, -0.15555305778980255, 0.1864239126443863, -0.2658093571662903, 0.21997150778770447, 0.3102761209011078, 0.18567945063114166, 0.07462268322706223, 0.627237856388092, -0.25177425146102905, 0.027596190571784973, 0.041142094880342484, 0.22214363515377045, -0.05732502043247223, 0.11238085478544235, 0.2181660383939743, -0.045454517006874084, 0.3140612244606018, 0.2801632285118103, 0.1622837632894516, 0.8643026947975159, 0.0714573860168457, 0.050542425364255905, -0.3563807010650635, -0.11177339404821396, -0.0617346316576004, -0.20750930905342102, 0.12296246737241745, -0.3828897178173065, -0.07381317764520645, 0.15483662486076355, 0.37178775668144226, -0.04462913051247597, 0.18389733135700226, 0.2358337640762329, -0.24536456167697906, -0.08187396079301834, 0.28967052698135376, 0.05719112232327461, -0.1726943403482437, 0.07613781094551086, -0.20908738672733307, 0.07418361306190491, -0.4423559606075287, 0.07928270101547241, 0.24691972136497498, -0.24780239164829254, 0.2159624695777893, -0.21074418723583221, -0.1574477255344391, -0.17451795935630798, -0.07343398034572601, -0.036456793546676636, -0.4171428680419922, 0.020662108436226845, 0.20958548784255981, -0.1404172033071518, -0.04333788529038429, -0.14131972193717957, -0.04627492278814316, 0.17391343414783478, -0.24190109968185425, -0.257750540971756, -0.2863914966583252, 0.28823691606521606, 0.012792347930371761, 0.021445145830512047, -0.09932082146406174, -0.3550741970539093, 0.1738833338022232, -0.2598796784877777, -0.05429506301879883, 0.04749846085906029, 0.028215987607836723, 0.05598381161689758, -0.07592029124498367, 0.10016945004463196, -0.053803060203790665, -0.19100449979305267, -0.028677627444267273, -0.2564941942691803, 0.13019083440303802, -0.09835942089557648, -0.2635647654533386, -0.08885420858860016, -0.10705339908599854, -0.066299207508564, 0.20974040031433105, -0.1385120302438736, -0.21534407138824463, 0.15999087691307068, -0.06321010738611221, 0.020520111545920372, -0.20906873047351837, -0.048395056277513504, -0.3590989112854004, -0.0857992097735405, 0.28970229625701904, 0.03740933537483215, 0.31231990456581116, -0.1502043455839157, -0.20242126286029816, -0.14178670942783356, 0.0931273102760315, 0.5118411779403687, 0.20799635350704193, -0.03626040741801262, -0.18341916799545288, 0.054887283593416214, 0.22713543474674225, 0.17877766489982605, -0.25288498401641846, 0.3079169988632202, 0.20654946565628052, 0.2925628423690796, 0.11397730559110641, 0.20552395284175873, 0.27167537808418274, 0.02508481778204441, -0.5733566284179688, 0.13992129266262054, 0.32157954573631287, 0.02638784609735012, -0.45898115634918213, -0.008149325847625732, -0.11401921510696411, 0.0567413829267025, 0.25324583053588867, 0.21853525936603546, -0.10515477508306503, 0.005387530662119389, -0.03202308714389801, 0.13321153819561005, -0.08394692838191986, 0.09763149917125702, -0.33920037746429443, -0.23250553011894226, -0.4384126663208008, -0.06284116208553314, -0.017435280606150627, 0.17055541276931763, 0.15594707429409027, -0.053537409752607346, -0.02178172767162323, 0.2570357322692871, -0.30042222142219543, -0.10459403693675995, 0.045774273574352264, -0.08344190567731857, -0.022240903228521347, -0.24161715805530548, 0.09525757282972336, 0.021844852715730667, 0.19695594906806946, -0.007896292954683304, 0.28422847390174866, 0.22921279072761536, 0.3935096561908722, -0.027012480422854424, 0.2494593858718872, -0.18072548508644104, 0.05069597810506821, -0.03893740475177765, -0.0030855657532811165, 0.04685109853744507, 0.3256186246871948, -0.16548067331314087, 0.01916298270225525, 0.05915343388915062, 0.03168926015496254, -0.162006214261055, 0.17534764111042023, 0.01757395826280117, 0.12245963513851166, -0.029935356229543686, 0.042351242154836655, 0.09039490669965744, 0.04116089642047882, -0.38378238677978516, 0.13594314455986023, 0.13192836940288544, -0.21720381081104279, -0.1137557253241539, -0.19082026183605194, -0.24276234209537506, 0.24719038605690002, -0.03197512403130531, 0.02790469489991665, -0.09081560373306274, -0.011660967022180557, -0.12679700553417206, -0.22900238633155823, -0.2020210176706314, -0.12640203535556793, -0.02515319548547268, 0.05335434526205063, 0.023731335997581482, 0.054123613983392715, -0.14895956218242645, 0.13232257962226868, 0.15601366758346558, 0.01741490140557289, -0.05703692510724068, 0.12318726629018784, 0.5937511920928955, 0.34065961837768555, 0.0449703149497509, -0.148149311542511, 0.1790802925825119, -0.4318110942840576, -0.04419192671775818, 0.06004386395215988, -0.025821156799793243, -0.3934626877307892, 0.22870655357837677, 0.18566270172595978, -0.44704556465148926, -0.03724152222275734, -0.6424055099487305, -0.1162843182682991, -0.14524801075458527, -0.15451736748218536, 0.007320895325392485, 0.10153768211603165, -0.25778982043266296, 0.02668503113090992, -0.14178326725959778, -0.5219286680221558, -0.2646608352661133, 0.17628346383571625, -0.2472083419561386, 0.004156975075602531, 0.07137812674045563, -0.18399299681186676, -0.48593395948410034, -0.1707664430141449, -0.25648853182792664, -0.022155383601784706, -0.16378697752952576, 0.3492736518383026, 0.3429337441921234, -0.03689071536064148, 0.43532073497772217, -0.2237304151058197, 0.07373295724391937, 0.44889533519744873, 0.2270275056362152, -0.11464652419090271, -0.1431155651807785, 0.26420268416404724, -0.08691999316215515, -0.13026893138885498, 0.2825472056865692, 0.019737590104341507, 0.18586304783821106, -0.17657776176929474, -0.5556502938270569, 0.04597292095422745, 0.08672240376472473, -0.15251070261001587, -0.1676933765411377, -0.0143744433298707, -0.05226868763566017, 0.07476655393838882, -0.24155724048614502, 0.12627094984054565, -0.48450547456741333, 0.20561440289020538, 0.31810253858566284, 0.25813308358192444, -0.43789422512054443, -0.35113799571990967, -0.17045274376869202, 0.11946567893028259, -0.1942838877439499, 0.20808559656143188, 0.37531429529190063, 0.12012964487075806, 0.21347780525684357, -0.05794002488255501, -0.2914336621761322, -0.2403843253850937, -0.07713774591684341, -0.13846635818481445, 0.30819201469421387, 0.05090203508734703, -0.5745470523834229, -0.3039155900478363, -0.11458902060985565, -0.4144989848136902, -0.1721160113811493, -0.20078003406524658, 0.34180963039398193, 0.09805212169885635, 0.07794900983572006, -0.03219643235206604, 0.11837084591388702, -0.09195443242788315, 0.22156888246536255, 0.2971022129058838, -0.17235994338989258, -0.0021152356639504433, 0.26935097575187683, -0.09323547035455704, -0.22191539406776428, 0.18034592270851135, -0.2439994364976883, -0.028982985764741898, -0.22876013815402985, -0.0670521929860115, 0.20147085189819336, -0.31404614448547363, 0.28007033467292786, 0.19411884248256683, 0.0638551265001297, 0.4863702058792114, -0.10039983689785004, -0.3174673318862915, -0.3347289562225342, -0.11762824654579163, 0.5500944256782532, 0.26219841837882996, 0.16430562734603882, -0.17602840065956116, 0.2800162732601166, 0.32134947180747986, -0.14565080404281616, 0.03645174577832222, 0.027289655059576035, -0.4554253816604614, -0.4702196717262268, -0.3017517924308777, 0.05665190517902374, -0.12563347816467285, 0.41268765926361084, -0.03662258759140968, -0.08173201233148575, 0.179129958152771, 0.047485314309597015, 0.15974974632263184, 0.14804233610630035, 0.16276556253433228, 0.04051840305328369, 0.1168920248746872, -0.24146515130996704, -0.10113538056612015, 0.10895919054746628, 0.3735499978065491, 0.16692174971103668, 0.01640055887401104, 0.30543291568756104, 0.004792887717485428, -0.30767014622688293, 0.31340456008911133, 0.12587790191173553, -0.23039032518863678, 0.22225487232208252, 0.03187863528728485, 0.259565532207489, 0.12546269595623016, -0.01560867391526699, -0.11141268908977509, -0.5740079283714294, -0.122207872569561, -0.0003013824170920998, -0.014586717821657658, -0.0437840074300766, 0.05241537094116211, 0.23325036466121674, -0.005407554563134909, -0.010354522615671158, -0.28879913687705994, 1.012131929397583, -0.3371094763278961, -0.03915857523679733, 0.1521148681640625, 0.12518523633480072, -0.4323967695236206, -0.4711134731769562, 0.2534564435482025, -0.22518353164196014, 0.061359953135252, -0.003025909885764122, 0.1693524420261383, 0.04206908494234085, 0.07921907305717468, -0.30455249547958374, 0.312091201543808, -0.1575842946767807, -0.254477858543396, -0.002904849126935005, -0.14411590993404388, -0.3302376866340637, 0.04982917010784149, -0.1016509011387825, 0.2612684667110443, 0.06030728295445442, 0.3757156431674957, -0.3486906886100769, 0.09668578207492828, 0.06518671661615372, 0.04836665838956833, -0.1538948118686676, 0.3572827875614166, -0.13591454923152924, 0.24551904201507568, 0.1730368584394455, 0.21981370449066162, -0.055397287011146545, 0.015146486461162567, 0.09084434062242508, 0.14018844068050385, -0.13696835935115814, 0.2584637999534607, 0.1585046947002411, -0.5251604318618774, -0.09972270578145981, 0.3262901306152344, 0.019771145656704903, -0.04413016512989998, -0.1320485770702362, -0.0656515508890152, -0.041438497602939606, -0.13956648111343384, 0.2881326675415039, 0.23048993945121765, 0.6338633894920349, -0.16970330476760864, -0.05434679612517357, 0.08590993285179138, -0.011540201492607594, -0.1681639552116394, 0.24982716143131256, -0.0670657604932785, -0.14529399573802948, -0.1875162571668625, 0.2771402895450592, -0.19789579510688782, -0.15797458589076996, 0.4095436632633209, 0.15624430775642395, -0.19428372383117676, 0.04285845533013344, 0.007793414406478405, -0.1041669175028801, -0.3522056043148041, -0.25938478112220764, 0.1603047400712967, -0.14496304094791412, 0.10008665174245834, 0.3467397689819336, -0.3373216390609741, 0.16582493484020233, 0.40617337822914124, 0.18155521154403687, 0.010674124583601952, -0.03918958827853203, -0.2216545045375824, 0.04836755990982056, 0.13034535944461823, 0.12020627409219742, 0.013111784122884274, 0.6284303069114685, -0.07659655064344406, 0.19188165664672852, -0.1224587932229042, -0.4086996614933014, 0.09205730259418488, -0.47973284125328064, -0.12249159812927246, 0.2118608057498932, -0.12164796143770218, -0.2407943308353424, 0.09903459250926971, 0.2598020136356354, 0.1876049041748047, -0.20710067451000214, -0.40218305587768555, 0.022591155022382736, 0.02773091569542885, 0.013766280375421047, -0.11117448657751083, -0.1357564479112625, -0.17816254496574402, -0.05457253381609917, 0.1359555423259735, -0.04131275787949562, -0.0006278752698563039, 0.22835513949394226, -0.13814052939414978, 0.05087265372276306, 0.06371507793664932, -0.38593590259552, 0.11636815965175629, -0.15237611532211304, 0.16599802672863007, 0.05825274810194969, -0.12215355038642883, 0.029106739908456802, -0.10836124420166016, -0.030277345329523087, 0.09474939107894897, 0.4146392345428467, 0.5452556014060974, 0.04779082536697388, -0.023420384153723717, 0.22735951840877533, -0.05147533863782883, -0.15125130116939545, 0.18855594098567963, -0.20342771708965302, -0.12243719398975372, 0.02494210936129093, 0.29157933592796326, -0.14882487058639526, -0.2862699627876282, 0.33796581625938416, -0.4188815951347351, -0.14187565445899963, 0.2344430834054947, 0.17440082132816315, -0.0758184939622879, 0.40666237473487854, 0.27206289768218994, 0.009385730139911175, 0.20273460447788239, 0.2498595267534256, 0.09859643876552582, -0.06391878426074982, -0.049180395901203156, 0.011724422685801983, 0.03335244953632355, 0.042714133858680725, 0.18085601925849915, -0.188005730509758, 0.11536497622728348, 0.013119718991219997, 0.5933288931846619, -0.06139489635825157, -0.3696002960205078, 0.01825767010450363, 0.0660920962691307, 0.2773332893848419, 0.30560585856437683, 0.023790841922163963, 0.3000369369983673, -0.6980198621749878, -0.002297207247465849, -0.5266912579536438, -0.099965900182724, -0.24180270731449127, -0.017388610169291496, 0.1479720175266266, -0.21968205273151398, -0.1868552416563034, -0.003189029637724161, -0.04272028058767319, 0.2051512897014618, 0.08085519075393677, -0.13659515976905823, -0.13353808224201202, -0.2687300741672516, 0.07867491245269775, 0.09200748801231384, 0.23689378798007965, 0.02167905867099762, 0.28115931153297424, -0.30546027421951294, 0.1500740498304367, -0.10784516483545303, 0.20824038982391357, 0.05232807993888855, 0.04983866214752197, -0.02460714615881443, -0.17306992411613464, 0.15009558200836182, -0.030653296038508415, -0.1651037335395813, 0.10487940907478333, 0.16762195527553558, 0.41225379705429077, -0.18097135424613953, 0.25468116998672485, -0.270907461643219, 0.22635392844676971, -0.051697179675102234, 0.31113722920417786, 0.166547492146492, -0.011181647889316082, -0.12746405601501465, -0.19406764209270477, -0.16557185351848602, 0.03963974118232727, -0.19726687669754028, 0.10546649992465973, 0.020233334973454475, -0.01747145503759384, -0.02351001463830471, -0.10130181908607483, 0.14089788496494293, 0.027042387053370476, 0.16405868530273438, 0.17707766592502594, -0.06146320700645447, -0.06992188096046448, -0.25473928451538086, -0.07269614189863205, 0.31240329146385193, 0.19533546268939972, -0.2716723382472992, 0.16456563770771027, -0.016690228134393692, 0.04380480945110321, 0.04595202952623367, 0.08446353673934937, 0.01936768740415573, 0.24428130686283112, -0.27659130096435547, -0.19955112040042877, 0.023026008158922195, 0.41748055815696716, -0.024789737537503242, 0.003418600419536233, -0.3315839469432831, 0.04249009117484093, -0.18938153982162476, 0.14248041808605194, -0.1968325823545456, -0.5229350328445435, 0.10533939301967621, -0.013313882052898407, 0.6909757852554321, -0.3271963596343994, -0.11447467654943466, -0.1714700311422348, -0.1079559400677681, 0.1934218853712082, -0.28531956672668457, 0.2781989276409149, -0.04915613308548927, 0.06455108523368835, 0.1202913150191307, 0.010534175671637058, 0.35322892665863037, 0.10351808369159698, 0.4847046136856079, 0.26824474334716797, 0.5170241594314575, -0.019139470532536507, -0.09006118029356003, -0.03491499274969101, -0.05980108678340912, -0.11587241291999817, 0.31450098752975464, 0.07041288167238235, -0.1320134699344635, -0.15755446255207062, -0.2961967885494232, 0.5273154973983765, 0.31032249331474304, -0.250763863325119, 0.12645980715751648, 0.20809587836265564, -0.03421015292406082, -0.09867830574512482, -0.4810573160648346, 0.12161672860383987, -0.058924246579408646, 0.06374581158161163, -0.3723427951335907, 0.21244937181472778, -0.43148019909858704, -0.05062797665596008, -0.020512381568551064, 0.16829922795295715, -0.13929963111877441, -0.24897053837776184, -0.05110030621290207, 0.0461316742002964 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
Hi! The `bookcorpusopen` dataset is not working for the same reason as explained in this comment: https://github.com/huggingface/datasets/issues/3504#issuecomment-1004564980
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
17
Cannot load ‘bookcorpusopen’
[ -0.1762579083442688, 0.016153449192643166, -0.2357427030801773, 0.18272528052330017, -0.059323571622371674, -0.11884128302335739, 0.1102532148361206, 0.011829943396151066, -0.10841663926839828, 0.006371088791638613, -0.37981295585632324, 0.16743914783000946, 0.2613947093486786, 0.3388075828552246, 0.10000776499509811, 0.2373737096786499, 0.04769396036863327, 0.23514769971370697, 0.15325596928596497, -0.058891937136650085, -0.43445080518722534, 0.42063871026039124, -0.10703139007091522, 0.25277915596961975, 0.20998865365982056, -0.029583824798464775, 0.07158701866865158, 0.3398875892162323, -0.3383287489414215, -0.15459001064300537, 0.33153432607650757, 0.3601914048194885, 0.11595261096954346, 0.3779694139957428, -0.00010352046956541017, 0.04721615090966225, 0.1615607589483261, -0.035846590995788574, -0.14883875846862793, 0.024723071604967117, -0.10510857403278351, -0.03561948239803314, 0.1071111410856247, -0.304720401763916, -0.0320921465754509, 0.3194456994533539, 0.15496426820755005, 0.1560627520084381, -0.06651399284601212, -0.016291668638586998, 0.3339408040046692, 0.13587845861911774, 0.24909290671348572, -0.16153185069561005, 0.12294034659862518, -0.21558748185634613, -0.33109331130981445, 0.3392479121685028, 0.6157258749008179, -0.07272998243570328, -0.011261038482189178, -0.08058395981788635, 0.0032147224992513657, -0.03890213742852211, 0.11829023063182831, -0.22087611258029938, 0.6667844653129578, 0.05110470578074455, 0.30715763568878174, 0.0243950504809618, 0.22533130645751953, -0.14643827080726624, -0.002080758800730109, 0.3846215307712555, 0.2543509602546692, -0.03426526486873627, 0.38390010595321655, 0.29060545563697815, 0.09224655479192734, 0.03886285424232483, -0.12751834094524384, -0.5762901306152344, -0.037160951644182205, -0.0013569763395935297, -0.07365909218788147, 0.307464063167572, -0.13372085988521576, -0.01397699024528265, 0.5016058087348938, 0.22130191326141357, -0.15555305778980255, 0.1864239126443863, -0.2658093571662903, 0.21997150778770447, 0.3102761209011078, 0.18567945063114166, 0.07462268322706223, 0.627237856388092, -0.25177425146102905, 0.027596190571784973, 0.041142094880342484, 0.22214363515377045, -0.05732502043247223, 0.11238085478544235, 0.2181660383939743, -0.045454517006874084, 0.3140612244606018, 0.2801632285118103, 0.1622837632894516, 0.8643026947975159, 0.0714573860168457, 0.050542425364255905, -0.3563807010650635, -0.11177339404821396, -0.0617346316576004, -0.20750930905342102, 0.12296246737241745, -0.3828897178173065, -0.07381317764520645, 0.15483662486076355, 0.37178775668144226, -0.04462913051247597, 0.18389733135700226, 0.2358337640762329, -0.24536456167697906, -0.08187396079301834, 0.28967052698135376, 0.05719112232327461, -0.1726943403482437, 0.07613781094551086, -0.20908738672733307, 0.07418361306190491, -0.4423559606075287, 0.07928270101547241, 0.24691972136497498, -0.24780239164829254, 0.2159624695777893, -0.21074418723583221, -0.1574477255344391, -0.17451795935630798, -0.07343398034572601, -0.036456793546676636, -0.4171428680419922, 0.020662108436226845, 0.20958548784255981, -0.1404172033071518, -0.04333788529038429, -0.14131972193717957, -0.04627492278814316, 0.17391343414783478, -0.24190109968185425, -0.257750540971756, -0.2863914966583252, 0.28823691606521606, 0.012792347930371761, 0.021445145830512047, -0.09932082146406174, -0.3550741970539093, 0.1738833338022232, -0.2598796784877777, -0.05429506301879883, 0.04749846085906029, 0.028215987607836723, 0.05598381161689758, -0.07592029124498367, 0.10016945004463196, -0.053803060203790665, -0.19100449979305267, -0.028677627444267273, -0.2564941942691803, 0.13019083440303802, -0.09835942089557648, -0.2635647654533386, -0.08885420858860016, -0.10705339908599854, -0.066299207508564, 0.20974040031433105, -0.1385120302438736, -0.21534407138824463, 0.15999087691307068, -0.06321010738611221, 0.020520111545920372, -0.20906873047351837, -0.048395056277513504, -0.3590989112854004, -0.0857992097735405, 0.28970229625701904, 0.03740933537483215, 0.31231990456581116, -0.1502043455839157, -0.20242126286029816, -0.14178670942783356, 0.0931273102760315, 0.5118411779403687, 0.20799635350704193, -0.03626040741801262, -0.18341916799545288, 0.054887283593416214, 0.22713543474674225, 0.17877766489982605, -0.25288498401641846, 0.3079169988632202, 0.20654946565628052, 0.2925628423690796, 0.11397730559110641, 0.20552395284175873, 0.27167537808418274, 0.02508481778204441, -0.5733566284179688, 0.13992129266262054, 0.32157954573631287, 0.02638784609735012, -0.45898115634918213, -0.008149325847625732, -0.11401921510696411, 0.0567413829267025, 0.25324583053588867, 0.21853525936603546, -0.10515477508306503, 0.005387530662119389, -0.03202308714389801, 0.13321153819561005, -0.08394692838191986, 0.09763149917125702, -0.33920037746429443, -0.23250553011894226, -0.4384126663208008, -0.06284116208553314, -0.017435280606150627, 0.17055541276931763, 0.15594707429409027, -0.053537409752607346, -0.02178172767162323, 0.2570357322692871, -0.30042222142219543, -0.10459403693675995, 0.045774273574352264, -0.08344190567731857, -0.022240903228521347, -0.24161715805530548, 0.09525757282972336, 0.021844852715730667, 0.19695594906806946, -0.007896292954683304, 0.28422847390174866, 0.22921279072761536, 0.3935096561908722, -0.027012480422854424, 0.2494593858718872, -0.18072548508644104, 0.05069597810506821, -0.03893740475177765, -0.0030855657532811165, 0.04685109853744507, 0.3256186246871948, -0.16548067331314087, 0.01916298270225525, 0.05915343388915062, 0.03168926015496254, -0.162006214261055, 0.17534764111042023, 0.01757395826280117, 0.12245963513851166, -0.029935356229543686, 0.042351242154836655, 0.09039490669965744, 0.04116089642047882, -0.38378238677978516, 0.13594314455986023, 0.13192836940288544, -0.21720381081104279, -0.1137557253241539, -0.19082026183605194, -0.24276234209537506, 0.24719038605690002, -0.03197512403130531, 0.02790469489991665, -0.09081560373306274, -0.011660967022180557, -0.12679700553417206, -0.22900238633155823, -0.2020210176706314, -0.12640203535556793, -0.02515319548547268, 0.05335434526205063, 0.023731335997581482, 0.054123613983392715, -0.14895956218242645, 0.13232257962226868, 0.15601366758346558, 0.01741490140557289, -0.05703692510724068, 0.12318726629018784, 0.5937511920928955, 0.34065961837768555, 0.0449703149497509, -0.148149311542511, 0.1790802925825119, -0.4318110942840576, -0.04419192671775818, 0.06004386395215988, -0.025821156799793243, -0.3934626877307892, 0.22870655357837677, 0.18566270172595978, -0.44704556465148926, -0.03724152222275734, -0.6424055099487305, -0.1162843182682991, -0.14524801075458527, -0.15451736748218536, 0.007320895325392485, 0.10153768211603165, -0.25778982043266296, 0.02668503113090992, -0.14178326725959778, -0.5219286680221558, -0.2646608352661133, 0.17628346383571625, -0.2472083419561386, 0.004156975075602531, 0.07137812674045563, -0.18399299681186676, -0.48593395948410034, -0.1707664430141449, -0.25648853182792664, -0.022155383601784706, -0.16378697752952576, 0.3492736518383026, 0.3429337441921234, -0.03689071536064148, 0.43532073497772217, -0.2237304151058197, 0.07373295724391937, 0.44889533519744873, 0.2270275056362152, -0.11464652419090271, -0.1431155651807785, 0.26420268416404724, -0.08691999316215515, -0.13026893138885498, 0.2825472056865692, 0.019737590104341507, 0.18586304783821106, -0.17657776176929474, -0.5556502938270569, 0.04597292095422745, 0.08672240376472473, -0.15251070261001587, -0.1676933765411377, -0.0143744433298707, -0.05226868763566017, 0.07476655393838882, -0.24155724048614502, 0.12627094984054565, -0.48450547456741333, 0.20561440289020538, 0.31810253858566284, 0.25813308358192444, -0.43789422512054443, -0.35113799571990967, -0.17045274376869202, 0.11946567893028259, -0.1942838877439499, 0.20808559656143188, 0.37531429529190063, 0.12012964487075806, 0.21347780525684357, -0.05794002488255501, -0.2914336621761322, -0.2403843253850937, -0.07713774591684341, -0.13846635818481445, 0.30819201469421387, 0.05090203508734703, -0.5745470523834229, -0.3039155900478363, -0.11458902060985565, -0.4144989848136902, -0.1721160113811493, -0.20078003406524658, 0.34180963039398193, 0.09805212169885635, 0.07794900983572006, -0.03219643235206604, 0.11837084591388702, -0.09195443242788315, 0.22156888246536255, 0.2971022129058838, -0.17235994338989258, -0.0021152356639504433, 0.26935097575187683, -0.09323547035455704, -0.22191539406776428, 0.18034592270851135, -0.2439994364976883, -0.028982985764741898, -0.22876013815402985, -0.0670521929860115, 0.20147085189819336, -0.31404614448547363, 0.28007033467292786, 0.19411884248256683, 0.0638551265001297, 0.4863702058792114, -0.10039983689785004, -0.3174673318862915, -0.3347289562225342, -0.11762824654579163, 0.5500944256782532, 0.26219841837882996, 0.16430562734603882, -0.17602840065956116, 0.2800162732601166, 0.32134947180747986, -0.14565080404281616, 0.03645174577832222, 0.027289655059576035, -0.4554253816604614, -0.4702196717262268, -0.3017517924308777, 0.05665190517902374, -0.12563347816467285, 0.41268765926361084, -0.03662258759140968, -0.08173201233148575, 0.179129958152771, 0.047485314309597015, 0.15974974632263184, 0.14804233610630035, 0.16276556253433228, 0.04051840305328369, 0.1168920248746872, -0.24146515130996704, -0.10113538056612015, 0.10895919054746628, 0.3735499978065491, 0.16692174971103668, 0.01640055887401104, 0.30543291568756104, 0.004792887717485428, -0.30767014622688293, 0.31340456008911133, 0.12587790191173553, -0.23039032518863678, 0.22225487232208252, 0.03187863528728485, 0.259565532207489, 0.12546269595623016, -0.01560867391526699, -0.11141268908977509, -0.5740079283714294, -0.122207872569561, -0.0003013824170920998, -0.014586717821657658, -0.0437840074300766, 0.05241537094116211, 0.23325036466121674, -0.005407554563134909, -0.010354522615671158, -0.28879913687705994, 1.012131929397583, -0.3371094763278961, -0.03915857523679733, 0.1521148681640625, 0.12518523633480072, -0.4323967695236206, -0.4711134731769562, 0.2534564435482025, -0.22518353164196014, 0.061359953135252, -0.003025909885764122, 0.1693524420261383, 0.04206908494234085, 0.07921907305717468, -0.30455249547958374, 0.312091201543808, -0.1575842946767807, -0.254477858543396, -0.002904849126935005, -0.14411590993404388, -0.3302376866340637, 0.04982917010784149, -0.1016509011387825, 0.2612684667110443, 0.06030728295445442, 0.3757156431674957, -0.3486906886100769, 0.09668578207492828, 0.06518671661615372, 0.04836665838956833, -0.1538948118686676, 0.3572827875614166, -0.13591454923152924, 0.24551904201507568, 0.1730368584394455, 0.21981370449066162, -0.055397287011146545, 0.015146486461162567, 0.09084434062242508, 0.14018844068050385, -0.13696835935115814, 0.2584637999534607, 0.1585046947002411, -0.5251604318618774, -0.09972270578145981, 0.3262901306152344, 0.019771145656704903, -0.04413016512989998, -0.1320485770702362, -0.0656515508890152, -0.041438497602939606, -0.13956648111343384, 0.2881326675415039, 0.23048993945121765, 0.6338633894920349, -0.16970330476760864, -0.05434679612517357, 0.08590993285179138, -0.011540201492607594, -0.1681639552116394, 0.24982716143131256, -0.0670657604932785, -0.14529399573802948, -0.1875162571668625, 0.2771402895450592, -0.19789579510688782, -0.15797458589076996, 0.4095436632633209, 0.15624430775642395, -0.19428372383117676, 0.04285845533013344, 0.007793414406478405, -0.1041669175028801, -0.3522056043148041, -0.25938478112220764, 0.1603047400712967, -0.14496304094791412, 0.10008665174245834, 0.3467397689819336, -0.3373216390609741, 0.16582493484020233, 0.40617337822914124, 0.18155521154403687, 0.010674124583601952, -0.03918958827853203, -0.2216545045375824, 0.04836755990982056, 0.13034535944461823, 0.12020627409219742, 0.013111784122884274, 0.6284303069114685, -0.07659655064344406, 0.19188165664672852, -0.1224587932229042, -0.4086996614933014, 0.09205730259418488, -0.47973284125328064, -0.12249159812927246, 0.2118608057498932, -0.12164796143770218, -0.2407943308353424, 0.09903459250926971, 0.2598020136356354, 0.1876049041748047, -0.20710067451000214, -0.40218305587768555, 0.022591155022382736, 0.02773091569542885, 0.013766280375421047, -0.11117448657751083, -0.1357564479112625, -0.17816254496574402, -0.05457253381609917, 0.1359555423259735, -0.04131275787949562, -0.0006278752698563039, 0.22835513949394226, -0.13814052939414978, 0.05087265372276306, 0.06371507793664932, -0.38593590259552, 0.11636815965175629, -0.15237611532211304, 0.16599802672863007, 0.05825274810194969, -0.12215355038642883, 0.029106739908456802, -0.10836124420166016, -0.030277345329523087, 0.09474939107894897, 0.4146392345428467, 0.5452556014060974, 0.04779082536697388, -0.023420384153723717, 0.22735951840877533, -0.05147533863782883, -0.15125130116939545, 0.18855594098567963, -0.20342771708965302, -0.12243719398975372, 0.02494210936129093, 0.29157933592796326, -0.14882487058639526, -0.2862699627876282, 0.33796581625938416, -0.4188815951347351, -0.14187565445899963, 0.2344430834054947, 0.17440082132816315, -0.0758184939622879, 0.40666237473487854, 0.27206289768218994, 0.009385730139911175, 0.20273460447788239, 0.2498595267534256, 0.09859643876552582, -0.06391878426074982, -0.049180395901203156, 0.011724422685801983, 0.03335244953632355, 0.042714133858680725, 0.18085601925849915, -0.188005730509758, 0.11536497622728348, 0.013119718991219997, 0.5933288931846619, -0.06139489635825157, -0.3696002960205078, 0.01825767010450363, 0.0660920962691307, 0.2773332893848419, 0.30560585856437683, 0.023790841922163963, 0.3000369369983673, -0.6980198621749878, -0.002297207247465849, -0.5266912579536438, -0.099965900182724, -0.24180270731449127, -0.017388610169291496, 0.1479720175266266, -0.21968205273151398, -0.1868552416563034, -0.003189029637724161, -0.04272028058767319, 0.2051512897014618, 0.08085519075393677, -0.13659515976905823, -0.13353808224201202, -0.2687300741672516, 0.07867491245269775, 0.09200748801231384, 0.23689378798007965, 0.02167905867099762, 0.28115931153297424, -0.30546027421951294, 0.1500740498304367, -0.10784516483545303, 0.20824038982391357, 0.05232807993888855, 0.04983866214752197, -0.02460714615881443, -0.17306992411613464, 0.15009558200836182, -0.030653296038508415, -0.1651037335395813, 0.10487940907478333, 0.16762195527553558, 0.41225379705429077, -0.18097135424613953, 0.25468116998672485, -0.270907461643219, 0.22635392844676971, -0.051697179675102234, 0.31113722920417786, 0.166547492146492, -0.011181647889316082, -0.12746405601501465, -0.19406764209270477, -0.16557185351848602, 0.03963974118232727, -0.19726687669754028, 0.10546649992465973, 0.020233334973454475, -0.01747145503759384, -0.02351001463830471, -0.10130181908607483, 0.14089788496494293, 0.027042387053370476, 0.16405868530273438, 0.17707766592502594, -0.06146320700645447, -0.06992188096046448, -0.25473928451538086, -0.07269614189863205, 0.31240329146385193, 0.19533546268939972, -0.2716723382472992, 0.16456563770771027, -0.016690228134393692, 0.04380480945110321, 0.04595202952623367, 0.08446353673934937, 0.01936768740415573, 0.24428130686283112, -0.27659130096435547, -0.19955112040042877, 0.023026008158922195, 0.41748055815696716, -0.024789737537503242, 0.003418600419536233, -0.3315839469432831, 0.04249009117484093, -0.18938153982162476, 0.14248041808605194, -0.1968325823545456, -0.5229350328445435, 0.10533939301967621, -0.013313882052898407, 0.6909757852554321, -0.3271963596343994, -0.11447467654943466, -0.1714700311422348, -0.1079559400677681, 0.1934218853712082, -0.28531956672668457, 0.2781989276409149, -0.04915613308548927, 0.06455108523368835, 0.1202913150191307, 0.010534175671637058, 0.35322892665863037, 0.10351808369159698, 0.4847046136856079, 0.26824474334716797, 0.5170241594314575, -0.019139470532536507, -0.09006118029356003, -0.03491499274969101, -0.05980108678340912, -0.11587241291999817, 0.31450098752975464, 0.07041288167238235, -0.1320134699344635, -0.15755446255207062, -0.2961967885494232, 0.5273154973983765, 0.31032249331474304, -0.250763863325119, 0.12645980715751648, 0.20809587836265564, -0.03421015292406082, -0.09867830574512482, -0.4810573160648346, 0.12161672860383987, -0.058924246579408646, 0.06374581158161163, -0.3723427951335907, 0.21244937181472778, -0.43148019909858704, -0.05062797665596008, -0.020512381568551064, 0.16829922795295715, -0.13929963111877441, -0.24897053837776184, -0.05110030621290207, 0.0461316742002964 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
Hi @HUIYINXUE, it should work now that the data owners created a mirror server with all data, and we updated the URL in our library.
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
25
Cannot load ‘bookcorpusopen’
[ -0.1762579083442688, 0.016153449192643166, -0.2357427030801773, 0.18272528052330017, -0.059323571622371674, -0.11884128302335739, 0.1102532148361206, 0.011829943396151066, -0.10841663926839828, 0.006371088791638613, -0.37981295585632324, 0.16743914783000946, 0.2613947093486786, 0.3388075828552246, 0.10000776499509811, 0.2373737096786499, 0.04769396036863327, 0.23514769971370697, 0.15325596928596497, -0.058891937136650085, -0.43445080518722534, 0.42063871026039124, -0.10703139007091522, 0.25277915596961975, 0.20998865365982056, -0.029583824798464775, 0.07158701866865158, 0.3398875892162323, -0.3383287489414215, -0.15459001064300537, 0.33153432607650757, 0.3601914048194885, 0.11595261096954346, 0.3779694139957428, -0.00010352046956541017, 0.04721615090966225, 0.1615607589483261, -0.035846590995788574, -0.14883875846862793, 0.024723071604967117, -0.10510857403278351, -0.03561948239803314, 0.1071111410856247, -0.304720401763916, -0.0320921465754509, 0.3194456994533539, 0.15496426820755005, 0.1560627520084381, -0.06651399284601212, -0.016291668638586998, 0.3339408040046692, 0.13587845861911774, 0.24909290671348572, -0.16153185069561005, 0.12294034659862518, -0.21558748185634613, -0.33109331130981445, 0.3392479121685028, 0.6157258749008179, -0.07272998243570328, -0.011261038482189178, -0.08058395981788635, 0.0032147224992513657, -0.03890213742852211, 0.11829023063182831, -0.22087611258029938, 0.6667844653129578, 0.05110470578074455, 0.30715763568878174, 0.0243950504809618, 0.22533130645751953, -0.14643827080726624, -0.002080758800730109, 0.3846215307712555, 0.2543509602546692, -0.03426526486873627, 0.38390010595321655, 0.29060545563697815, 0.09224655479192734, 0.03886285424232483, -0.12751834094524384, -0.5762901306152344, -0.037160951644182205, -0.0013569763395935297, -0.07365909218788147, 0.307464063167572, -0.13372085988521576, -0.01397699024528265, 0.5016058087348938, 0.22130191326141357, -0.15555305778980255, 0.1864239126443863, -0.2658093571662903, 0.21997150778770447, 0.3102761209011078, 0.18567945063114166, 0.07462268322706223, 0.627237856388092, -0.25177425146102905, 0.027596190571784973, 0.041142094880342484, 0.22214363515377045, -0.05732502043247223, 0.11238085478544235, 0.2181660383939743, -0.045454517006874084, 0.3140612244606018, 0.2801632285118103, 0.1622837632894516, 0.8643026947975159, 0.0714573860168457, 0.050542425364255905, -0.3563807010650635, -0.11177339404821396, -0.0617346316576004, -0.20750930905342102, 0.12296246737241745, -0.3828897178173065, -0.07381317764520645, 0.15483662486076355, 0.37178775668144226, -0.04462913051247597, 0.18389733135700226, 0.2358337640762329, -0.24536456167697906, -0.08187396079301834, 0.28967052698135376, 0.05719112232327461, -0.1726943403482437, 0.07613781094551086, -0.20908738672733307, 0.07418361306190491, -0.4423559606075287, 0.07928270101547241, 0.24691972136497498, -0.24780239164829254, 0.2159624695777893, -0.21074418723583221, -0.1574477255344391, -0.17451795935630798, -0.07343398034572601, -0.036456793546676636, -0.4171428680419922, 0.020662108436226845, 0.20958548784255981, -0.1404172033071518, -0.04333788529038429, -0.14131972193717957, -0.04627492278814316, 0.17391343414783478, -0.24190109968185425, -0.257750540971756, -0.2863914966583252, 0.28823691606521606, 0.012792347930371761, 0.021445145830512047, -0.09932082146406174, -0.3550741970539093, 0.1738833338022232, -0.2598796784877777, -0.05429506301879883, 0.04749846085906029, 0.028215987607836723, 0.05598381161689758, -0.07592029124498367, 0.10016945004463196, -0.053803060203790665, -0.19100449979305267, -0.028677627444267273, -0.2564941942691803, 0.13019083440303802, -0.09835942089557648, -0.2635647654533386, -0.08885420858860016, -0.10705339908599854, -0.066299207508564, 0.20974040031433105, -0.1385120302438736, -0.21534407138824463, 0.15999087691307068, -0.06321010738611221, 0.020520111545920372, -0.20906873047351837, -0.048395056277513504, -0.3590989112854004, -0.0857992097735405, 0.28970229625701904, 0.03740933537483215, 0.31231990456581116, -0.1502043455839157, -0.20242126286029816, -0.14178670942783356, 0.0931273102760315, 0.5118411779403687, 0.20799635350704193, -0.03626040741801262, -0.18341916799545288, 0.054887283593416214, 0.22713543474674225, 0.17877766489982605, -0.25288498401641846, 0.3079169988632202, 0.20654946565628052, 0.2925628423690796, 0.11397730559110641, 0.20552395284175873, 0.27167537808418274, 0.02508481778204441, -0.5733566284179688, 0.13992129266262054, 0.32157954573631287, 0.02638784609735012, -0.45898115634918213, -0.008149325847625732, -0.11401921510696411, 0.0567413829267025, 0.25324583053588867, 0.21853525936603546, -0.10515477508306503, 0.005387530662119389, -0.03202308714389801, 0.13321153819561005, -0.08394692838191986, 0.09763149917125702, -0.33920037746429443, -0.23250553011894226, -0.4384126663208008, -0.06284116208553314, -0.017435280606150627, 0.17055541276931763, 0.15594707429409027, -0.053537409752607346, -0.02178172767162323, 0.2570357322692871, -0.30042222142219543, -0.10459403693675995, 0.045774273574352264, -0.08344190567731857, -0.022240903228521347, -0.24161715805530548, 0.09525757282972336, 0.021844852715730667, 0.19695594906806946, -0.007896292954683304, 0.28422847390174866, 0.22921279072761536, 0.3935096561908722, -0.027012480422854424, 0.2494593858718872, -0.18072548508644104, 0.05069597810506821, -0.03893740475177765, -0.0030855657532811165, 0.04685109853744507, 0.3256186246871948, -0.16548067331314087, 0.01916298270225525, 0.05915343388915062, 0.03168926015496254, -0.162006214261055, 0.17534764111042023, 0.01757395826280117, 0.12245963513851166, -0.029935356229543686, 0.042351242154836655, 0.09039490669965744, 0.04116089642047882, -0.38378238677978516, 0.13594314455986023, 0.13192836940288544, -0.21720381081104279, -0.1137557253241539, -0.19082026183605194, -0.24276234209537506, 0.24719038605690002, -0.03197512403130531, 0.02790469489991665, -0.09081560373306274, -0.011660967022180557, -0.12679700553417206, -0.22900238633155823, -0.2020210176706314, -0.12640203535556793, -0.02515319548547268, 0.05335434526205063, 0.023731335997581482, 0.054123613983392715, -0.14895956218242645, 0.13232257962226868, 0.15601366758346558, 0.01741490140557289, -0.05703692510724068, 0.12318726629018784, 0.5937511920928955, 0.34065961837768555, 0.0449703149497509, -0.148149311542511, 0.1790802925825119, -0.4318110942840576, -0.04419192671775818, 0.06004386395215988, -0.025821156799793243, -0.3934626877307892, 0.22870655357837677, 0.18566270172595978, -0.44704556465148926, -0.03724152222275734, -0.6424055099487305, -0.1162843182682991, -0.14524801075458527, -0.15451736748218536, 0.007320895325392485, 0.10153768211603165, -0.25778982043266296, 0.02668503113090992, -0.14178326725959778, -0.5219286680221558, -0.2646608352661133, 0.17628346383571625, -0.2472083419561386, 0.004156975075602531, 0.07137812674045563, -0.18399299681186676, -0.48593395948410034, -0.1707664430141449, -0.25648853182792664, -0.022155383601784706, -0.16378697752952576, 0.3492736518383026, 0.3429337441921234, -0.03689071536064148, 0.43532073497772217, -0.2237304151058197, 0.07373295724391937, 0.44889533519744873, 0.2270275056362152, -0.11464652419090271, -0.1431155651807785, 0.26420268416404724, -0.08691999316215515, -0.13026893138885498, 0.2825472056865692, 0.019737590104341507, 0.18586304783821106, -0.17657776176929474, -0.5556502938270569, 0.04597292095422745, 0.08672240376472473, -0.15251070261001587, -0.1676933765411377, -0.0143744433298707, -0.05226868763566017, 0.07476655393838882, -0.24155724048614502, 0.12627094984054565, -0.48450547456741333, 0.20561440289020538, 0.31810253858566284, 0.25813308358192444, -0.43789422512054443, -0.35113799571990967, -0.17045274376869202, 0.11946567893028259, -0.1942838877439499, 0.20808559656143188, 0.37531429529190063, 0.12012964487075806, 0.21347780525684357, -0.05794002488255501, -0.2914336621761322, -0.2403843253850937, -0.07713774591684341, -0.13846635818481445, 0.30819201469421387, 0.05090203508734703, -0.5745470523834229, -0.3039155900478363, -0.11458902060985565, -0.4144989848136902, -0.1721160113811493, -0.20078003406524658, 0.34180963039398193, 0.09805212169885635, 0.07794900983572006, -0.03219643235206604, 0.11837084591388702, -0.09195443242788315, 0.22156888246536255, 0.2971022129058838, -0.17235994338989258, -0.0021152356639504433, 0.26935097575187683, -0.09323547035455704, -0.22191539406776428, 0.18034592270851135, -0.2439994364976883, -0.028982985764741898, -0.22876013815402985, -0.0670521929860115, 0.20147085189819336, -0.31404614448547363, 0.28007033467292786, 0.19411884248256683, 0.0638551265001297, 0.4863702058792114, -0.10039983689785004, -0.3174673318862915, -0.3347289562225342, -0.11762824654579163, 0.5500944256782532, 0.26219841837882996, 0.16430562734603882, -0.17602840065956116, 0.2800162732601166, 0.32134947180747986, -0.14565080404281616, 0.03645174577832222, 0.027289655059576035, -0.4554253816604614, -0.4702196717262268, -0.3017517924308777, 0.05665190517902374, -0.12563347816467285, 0.41268765926361084, -0.03662258759140968, -0.08173201233148575, 0.179129958152771, 0.047485314309597015, 0.15974974632263184, 0.14804233610630035, 0.16276556253433228, 0.04051840305328369, 0.1168920248746872, -0.24146515130996704, -0.10113538056612015, 0.10895919054746628, 0.3735499978065491, 0.16692174971103668, 0.01640055887401104, 0.30543291568756104, 0.004792887717485428, -0.30767014622688293, 0.31340456008911133, 0.12587790191173553, -0.23039032518863678, 0.22225487232208252, 0.03187863528728485, 0.259565532207489, 0.12546269595623016, -0.01560867391526699, -0.11141268908977509, -0.5740079283714294, -0.122207872569561, -0.0003013824170920998, -0.014586717821657658, -0.0437840074300766, 0.05241537094116211, 0.23325036466121674, -0.005407554563134909, -0.010354522615671158, -0.28879913687705994, 1.012131929397583, -0.3371094763278961, -0.03915857523679733, 0.1521148681640625, 0.12518523633480072, -0.4323967695236206, -0.4711134731769562, 0.2534564435482025, -0.22518353164196014, 0.061359953135252, -0.003025909885764122, 0.1693524420261383, 0.04206908494234085, 0.07921907305717468, -0.30455249547958374, 0.312091201543808, -0.1575842946767807, -0.254477858543396, -0.002904849126935005, -0.14411590993404388, -0.3302376866340637, 0.04982917010784149, -0.1016509011387825, 0.2612684667110443, 0.06030728295445442, 0.3757156431674957, -0.3486906886100769, 0.09668578207492828, 0.06518671661615372, 0.04836665838956833, -0.1538948118686676, 0.3572827875614166, -0.13591454923152924, 0.24551904201507568, 0.1730368584394455, 0.21981370449066162, -0.055397287011146545, 0.015146486461162567, 0.09084434062242508, 0.14018844068050385, -0.13696835935115814, 0.2584637999534607, 0.1585046947002411, -0.5251604318618774, -0.09972270578145981, 0.3262901306152344, 0.019771145656704903, -0.04413016512989998, -0.1320485770702362, -0.0656515508890152, -0.041438497602939606, -0.13956648111343384, 0.2881326675415039, 0.23048993945121765, 0.6338633894920349, -0.16970330476760864, -0.05434679612517357, 0.08590993285179138, -0.011540201492607594, -0.1681639552116394, 0.24982716143131256, -0.0670657604932785, -0.14529399573802948, -0.1875162571668625, 0.2771402895450592, -0.19789579510688782, -0.15797458589076996, 0.4095436632633209, 0.15624430775642395, -0.19428372383117676, 0.04285845533013344, 0.007793414406478405, -0.1041669175028801, -0.3522056043148041, -0.25938478112220764, 0.1603047400712967, -0.14496304094791412, 0.10008665174245834, 0.3467397689819336, -0.3373216390609741, 0.16582493484020233, 0.40617337822914124, 0.18155521154403687, 0.010674124583601952, -0.03918958827853203, -0.2216545045375824, 0.04836755990982056, 0.13034535944461823, 0.12020627409219742, 0.013111784122884274, 0.6284303069114685, -0.07659655064344406, 0.19188165664672852, -0.1224587932229042, -0.4086996614933014, 0.09205730259418488, -0.47973284125328064, -0.12249159812927246, 0.2118608057498932, -0.12164796143770218, -0.2407943308353424, 0.09903459250926971, 0.2598020136356354, 0.1876049041748047, -0.20710067451000214, -0.40218305587768555, 0.022591155022382736, 0.02773091569542885, 0.013766280375421047, -0.11117448657751083, -0.1357564479112625, -0.17816254496574402, -0.05457253381609917, 0.1359555423259735, -0.04131275787949562, -0.0006278752698563039, 0.22835513949394226, -0.13814052939414978, 0.05087265372276306, 0.06371507793664932, -0.38593590259552, 0.11636815965175629, -0.15237611532211304, 0.16599802672863007, 0.05825274810194969, -0.12215355038642883, 0.029106739908456802, -0.10836124420166016, -0.030277345329523087, 0.09474939107894897, 0.4146392345428467, 0.5452556014060974, 0.04779082536697388, -0.023420384153723717, 0.22735951840877533, -0.05147533863782883, -0.15125130116939545, 0.18855594098567963, -0.20342771708965302, -0.12243719398975372, 0.02494210936129093, 0.29157933592796326, -0.14882487058639526, -0.2862699627876282, 0.33796581625938416, -0.4188815951347351, -0.14187565445899963, 0.2344430834054947, 0.17440082132816315, -0.0758184939622879, 0.40666237473487854, 0.27206289768218994, 0.009385730139911175, 0.20273460447788239, 0.2498595267534256, 0.09859643876552582, -0.06391878426074982, -0.049180395901203156, 0.011724422685801983, 0.03335244953632355, 0.042714133858680725, 0.18085601925849915, -0.188005730509758, 0.11536497622728348, 0.013119718991219997, 0.5933288931846619, -0.06139489635825157, -0.3696002960205078, 0.01825767010450363, 0.0660920962691307, 0.2773332893848419, 0.30560585856437683, 0.023790841922163963, 0.3000369369983673, -0.6980198621749878, -0.002297207247465849, -0.5266912579536438, -0.099965900182724, -0.24180270731449127, -0.017388610169291496, 0.1479720175266266, -0.21968205273151398, -0.1868552416563034, -0.003189029637724161, -0.04272028058767319, 0.2051512897014618, 0.08085519075393677, -0.13659515976905823, -0.13353808224201202, -0.2687300741672516, 0.07867491245269775, 0.09200748801231384, 0.23689378798007965, 0.02167905867099762, 0.28115931153297424, -0.30546027421951294, 0.1500740498304367, -0.10784516483545303, 0.20824038982391357, 0.05232807993888855, 0.04983866214752197, -0.02460714615881443, -0.17306992411613464, 0.15009558200836182, -0.030653296038508415, -0.1651037335395813, 0.10487940907478333, 0.16762195527553558, 0.41225379705429077, -0.18097135424613953, 0.25468116998672485, -0.270907461643219, 0.22635392844676971, -0.051697179675102234, 0.31113722920417786, 0.166547492146492, -0.011181647889316082, -0.12746405601501465, -0.19406764209270477, -0.16557185351848602, 0.03963974118232727, -0.19726687669754028, 0.10546649992465973, 0.020233334973454475, -0.01747145503759384, -0.02351001463830471, -0.10130181908607483, 0.14089788496494293, 0.027042387053370476, 0.16405868530273438, 0.17707766592502594, -0.06146320700645447, -0.06992188096046448, -0.25473928451538086, -0.07269614189863205, 0.31240329146385193, 0.19533546268939972, -0.2716723382472992, 0.16456563770771027, -0.016690228134393692, 0.04380480945110321, 0.04595202952623367, 0.08446353673934937, 0.01936768740415573, 0.24428130686283112, -0.27659130096435547, -0.19955112040042877, 0.023026008158922195, 0.41748055815696716, -0.024789737537503242, 0.003418600419536233, -0.3315839469432831, 0.04249009117484093, -0.18938153982162476, 0.14248041808605194, -0.1968325823545456, -0.5229350328445435, 0.10533939301967621, -0.013313882052898407, 0.6909757852554321, -0.3271963596343994, -0.11447467654943466, -0.1714700311422348, -0.1079559400677681, 0.1934218853712082, -0.28531956672668457, 0.2781989276409149, -0.04915613308548927, 0.06455108523368835, 0.1202913150191307, 0.010534175671637058, 0.35322892665863037, 0.10351808369159698, 0.4847046136856079, 0.26824474334716797, 0.5170241594314575, -0.019139470532536507, -0.09006118029356003, -0.03491499274969101, -0.05980108678340912, -0.11587241291999817, 0.31450098752975464, 0.07041288167238235, -0.1320134699344635, -0.15755446255207062, -0.2961967885494232, 0.5273154973983765, 0.31032249331474304, -0.250763863325119, 0.12645980715751648, 0.20809587836265564, -0.03421015292406082, -0.09867830574512482, -0.4810573160648346, 0.12161672860383987, -0.058924246579408646, 0.06374581158161163, -0.3723427951335907, 0.21244937181472778, -0.43148019909858704, -0.05062797665596008, -0.020512381568551064, 0.16829922795295715, -0.13929963111877441, -0.24897053837776184, -0.05110030621290207, 0.0461316742002964 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
Hi @mariosasko,Just search randomly and I found this issue~ I'm the tech lead of Milvus and we are looking forward to integrate milvus together with huggingface datasets. Any suggestion on how we could start?
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
34
Integrate Milvus (pymilvus) library
[ -0.023325080052018166, -0.4939456284046173, -0.17094890773296356, -0.01673290878534317, 0.026908520609140396, -0.0984564796090126, -0.015347943641245365, 0.2075633704662323, 0.1084558442234993, 0.11307171732187271, -0.0266324020922184, 0.21014830470085144, -0.17254044115543365, 0.1022389680147171, 0.09059213846921921, 0.35122522711753845, -0.15013942122459412, 0.09104180335998535, -0.042617954313755035, -0.1636963039636612, -0.18170306086540222, 0.20737461745738983, -0.04078491032123566, -0.17382977902889252, 0.4312070310115814, 0.05505472421646118, 0.15757836401462555, 0.05634436756372452, 0.010441642254590988, -0.035565756261348724, -0.16526322066783905, 0.03088267520070076, -0.07543665915727615, 0.2699168026447296, -0.00011201408779015765, -0.15487916767597198, 0.1280490905046463, 0.02430388331413269, -0.0783771276473999, 0.10606805980205536, 0.3605731129646301, -0.09273308515548706, -0.16458968818187714, -0.37763893604278564, 0.13825774192810059, -0.008487841114401817, -0.04055725410580635, -0.6246597766876221, -0.16910870373249054, 0.03505011275410652, 0.2077397257089615, 0.20860502123832703, 0.1944511979818344, 0.019670765846967697, 0.1811942756175995, -0.2230529487133026, 0.081839919090271, 0.5266833901405334, 0.5674054622650146, 0.036208879202604294, 0.3594962954521179, 0.2278929203748703, -0.19005614519119263, -0.21193061769008636, 0.3349907100200653, -0.09202657639980316, 0.6885991096496582, -0.16170768439769745, -0.018051471561193466, -0.0496395081281662, 0.18013395369052887, -0.3226083517074585, 0.07186068594455719, 0.3247607350349426, 0.019898535683751106, -0.22895805537700653, -0.09481831640005112, 0.1733490377664566, 0.05795477703213692, -0.06675887852907181, 0.17881879210472107, -0.3526093661785126, -0.18837033212184906, 0.06899721920490265, -0.3218299448490143, 0.38028213381767273, 0.07688084989786148, 0.07267749309539795, 0.09767116606235504, 0.02494007721543312, 0.0016868382226675749, 0.35379737615585327, 0.22309806942939758, 0.2843738794326782, 0.2526124119758606, -0.012076023034751415, 0.0685468465089798, -0.07590341567993164, 0.21702054142951965, 0.35374441742897034, -0.08938086777925491, 0.07439922541379929, 0.18109598755836487, 0.4014837443828583, -0.19471266865730286, -0.4168333411216736, 0.01033768430352211, -0.206842303276062, 0.4136771559715271, 0.3027389347553253, 0.0316586010158062, 0.13353903591632843, 0.07574620097875595, -0.11035820096731186, -0.32324913144111633, -0.16843165457248688, -0.2602047622203827, -0.4041600823402405, -0.09462366253137589, -0.08251024782657623, -0.10879726707935333, 0.20983712375164032, -0.01689625345170498, -0.09168535470962524, -0.4858223497867584, 0.051211461424827576, 0.366280734539032, 0.005303148180246353, -0.1881633847951889, 0.10024365782737732, 0.057403746992349625, 0.4386313557624817, -0.07227027416229248, -0.21194453537464142, -0.08892995119094849, 0.09860282391309738, 0.0741894543170929, -0.1794748157262802, 0.5063491463661194, 0.2711505591869354, 0.12746495008468628, -0.08152313530445099, 0.011610866524279118, 0.38875022530555725, 0.019236983731389046, -0.14040645956993103, -0.034162309020757675, 0.1546565443277359, -0.27975544333457947, -0.01924334280192852, 0.005285450257360935, -0.06515578925609589, 0.05552959069609642, 0.22912274301052094, 0.31672579050064087, 0.017200497910380363, 0.49279749393463135, -0.08568118512630463, 0.13882382214069366, -0.4363166093826294, -0.1692444235086441, 0.11913575977087021, 0.21261879801750183, -0.41985616087913513, 0.23485134541988373, -0.04873683303594589, -0.5438719391822815, 0.09226923435926437, -0.06841948628425598, 0.025010088458657265, 0.2832898795604706, 0.08939056098461151, -0.10558511316776276, -0.6011543273925781, -0.1442590057849884, 0.20528145134449005, -0.008360613137483597, -0.6023324131965637, -0.029144318774342537, -0.31860917806625366, 0.05407073348760605, -0.36815744638442993, 0.22902944684028625, 0.2716381251811981, -0.14726972579956055, -0.026185957714915276, 0.028485707938671112, 0.5403363704681396, 0.07689207792282104, -0.09642325341701508, -0.2810988426208496, -0.33254334330558777, 0.5550966858863831, 0.29116201400756836, 0.30175265669822693, -0.32580915093421936, 0.5773215889930725, -0.29381847381591797, 0.30874183773994446, 0.0330730602145195, -0.07566176354885101, 0.08590884506702423, 0.2328920215368271, 0.20390841364860535, 0.35739001631736755, -0.1140904426574707, 0.5144141912460327, -0.15974026918411255, -0.4943920969963074, 0.19450260698795319, -0.23171262443065643, -0.24715234339237213, -0.07569680362939835, -0.2861187160015106, 0.11031608283519745, -0.02630198374390602, 0.14440716803073883, 0.060587987303733826, -0.05806035175919533, 0.25180578231811523, -0.09064896404743195, -0.06076737865805626, -0.11387934535741806, -0.026962820440530777, -0.4074152112007141, 0.006854339502751827, -0.10067955404520035, -0.02321554347872734, 0.16340972483158112, 0.33402734994888306, 0.08934451639652252, -0.041539620608091354, 0.3827604353427887, 0.14533200860023499, 0.09643136709928513, -0.030434923246502876, 0.3445451855659485, 0.37935909628868103, 0.13462845981121063, -0.2785520553588867, 0.043785709887742996, 0.20505391061306, 0.09917175024747849, 0.015003535896539688, 0.014186306856572628, 0.10744425654411316, 0.6653909087181091, 0.06428629159927368, 0.12968938052654266, -0.09674806892871857, -0.09914921969175339, -0.04547175392508507, -0.019343918189406395, 0.12432768195867538, -0.10000254213809967, 0.13386103510856628, 0.051804933696985245, -0.284783273935318, -0.12641696631908417, -0.07030703872442245, 0.27874308824539185, 0.07229140400886536, 0.00801963359117508, -0.14000317454338074, -0.20304325222969055, -0.1375068575143814, 0.2670721113681793, -0.3913288414478302, -0.06568947434425354, 0.2114580124616623, 0.0613555945456028, 0.02853327989578247, -0.1244303360581398, -0.11765570193529129, 0.00491359131410718, 0.008807775564491749, 0.13058805465698242, 0.012434042990207672, 0.07657057046890259, 0.07591715455055237, -0.057045821100473404, 0.09169072657823563, -0.25864747166633606, -0.13726477324962616, 0.0004239652771502733, 0.06241023167967796, -0.25243115425109863, -0.2243836671113968, 0.24676209688186646, 0.20219959318637848, -0.3479172885417938, -0.2338234931230545, -0.061177611351013184, -0.03468111529946327, 0.2453823834657669, 0.02553720399737358, 0.3838077187538147, 0.4265156090259552, 0.011018732562661171, -0.11306238174438477, 0.16679489612579346, -0.11520183086395264, -0.04981047287583351, 0.2413814514875412, -0.10067198425531387, 0.06571831554174423, 0.6383171677589417, -0.025190534070134163, -0.22988934814929962, -0.037619441747665405, -0.6117644309997559, 0.0690624788403511, 0.11158941686153412, -0.058049194514751434, 0.18612562119960785, -0.20140933990478516, 0.13753201067447662, 0.017620600759983063, -0.20809416472911835, -0.11529655754566193, -0.010364185087382793, -0.32238924503326416, -0.21914614737033844, -0.21436075866222382, -0.3949064612388611, -0.32519829273223877, -0.3061663806438446, -0.14804430305957794, 0.03883211314678192, 0.4641650319099426, 0.023908181115984917, -0.0999605730175972, -0.19724011421203613, 0.17088693380355835, 0.024207836017012596, 0.361953467130661, -0.12576863169670105, 0.17616243660449982, 0.46534329652786255, -0.29062002897262573, -0.3316532373428345, 0.3293212354183197, 0.08861690014600754, 0.36342737078666687, 0.23042148351669312, -0.06317691504955292, -0.10774243623018265, 0.016938770189881325, 0.14032647013664246, -0.07405725121498108, 0.29707762598991394, 0.25374215841293335, -0.15664701163768768, -0.0822044312953949, -0.1729596108198166, -0.028422046452760696, -0.10467753559350967, 0.1313757300376892, 0.2746254801750183, 0.09024765342473984, -0.018631543964147568, -0.03222598880529404, 0.20015904307365417, -0.3073683977127075, -0.03110499307513237, -0.09020259231328964, -0.2838027775287628, 0.05350615829229355, 0.3715967833995819, 0.04787154495716095, 0.46539589762687683, 0.18379662930965424, 0.16743052005767822, -0.12684063613414764, 0.03374447301030159, -0.05042654648423195, -0.1037474125623703, 0.14509636163711548, -0.26802894473075867, 0.09564782679080963, -0.44365888833999634, 0.17929938435554504, 0.28573375940322876, -0.02501753903925419, -0.2293269783258438, -0.1182040199637413, 0.028536686673760414, 0.4963340759277344, 0.4247489273548126, 0.019302520900964737, 0.2393038272857666, 0.18177998065948486, 0.08976627141237259, 0.03164365887641907, 0.11519814282655716, 0.061737705022096634, -0.42610272765159607, 0.09171681106090546, -0.1679646223783493, 0.056016914546489716, -0.41782066226005554, 0.45493921637535095, 0.007263235282152891, -0.11951248347759247, 0.3063877522945404, -0.10998030006885529, -0.11655954271554947, 0.08508598059415817, -0.2561562657356262, 0.06693944334983826, 0.22877076268196106, -0.0066720955073833466, -0.4681987166404724, 0.14458423852920532, 0.2654722332954407, 0.1480899453163147, -0.0908709242939949, 0.031077131628990173, -0.19531302154064178, -0.517134428024292, -0.5494799017906189, -0.2168390303850174, 0.029512403532862663, 0.44374388456344604, 0.0772649347782135, -0.35013172030448914, 0.09455996006727219, -0.32297196984291077, 0.352708101272583, 0.26777884364128113, 0.3171272277832031, -0.24005965888500214, -0.20668907463550568, 0.07381225377321243, 0.09336937963962555, 0.20007650554180145, 0.04117874056100845, 0.24802057445049286, -0.013327300548553467, 0.15857303142547607, -0.4371292293071747, 0.4873262643814087, 0.10148211568593979, -0.2254507690668106, 0.27078676223754883, -0.441666841506958, 0.07999656349420547, 0.2963930368423462, 0.08193424344062805, 0.1401565819978714, 0.05629321187734604, 0.021394358947873116, -0.36162200570106506, 0.014258142560720444, 0.043547842651605606, -0.10101243108510971, -0.02705327235162258, 0.013568416237831116, -0.2549329996109009, -0.4979400336742401, 0.4685992896556854, 1.258965015411377, 0.023021159693598747, 0.09694121032953262, 0.36427831649780273, -0.12235784530639648, 0.19535721838474274, -0.5152807831764221, 0.09115434437990189, -0.48232606053352356, 0.3321380913257599, -0.09768908470869064, -0.09789340198040009, 0.12672924995422363, -0.4891059696674347, -0.06596367061138153, -0.06512206047773361, -0.44347941875457764, -0.26560738682746887, -0.05442298576235771, -0.04351484030485153, 0.2447233498096466, -0.18610742688179016, 0.12194868177175522, 0.17867963016033173, 0.04764821380376816, 0.010605799034237862, -0.2146686613559723, -0.09466427564620972, -0.035455457866191864, 0.07308237254619598, 0.0334230437874794, -0.05788300558924675, 0.017565837129950523, 0.31096476316452026, -0.029570195823907852, 0.17822854220867157, -0.0462501123547554, -0.04297182708978653, 0.14506423473358154, 0.5695227980613708, 0.11629097908735275, 0.08052907884120941, -0.007481321692466736, -0.5019221305847168, 0.014012927189469337, 0.15120814740657806, 0.07491675764322281, -0.5011062026023865, -0.014086426235735416, 0.31433555483818054, -0.078201524913311, -0.32300621271133423, -0.28719598054885864, 0.10787684470415115, 0.2820928990840912, 0.3707834780216217, -0.12370964139699936, 0.0712878406047821, -0.05774479731917381, 0.013960874639451504, 0.17225834727287292, 0.0001545049308333546, -0.1711304634809494, 0.4117613732814789, -0.014785992912948132, -0.12224908918142319, -0.254913330078125, 0.32757267355918884, 0.11223910003900528, -0.3572836220264435, -0.04793299734592438, 0.01645522378385067, -0.41415563225746155, -0.21304720640182495, -0.34752416610717773, 0.24463975429534912, 0.2576155364513397, 0.045513398945331573, 0.10686338692903519, -0.10097851604223251, 0.2166191041469574, 0.009237553924322128, 0.23039214313030243, -0.18133419752120972, -0.2476421594619751, -0.4726389944553375, -0.1958131641149521, 0.19415806233882904, 0.03474373370409012, -0.11475714296102524, 0.5101720690727234, 0.11651631444692612, -0.019536318257451057, -0.18754318356513977, -0.3814966380596161, 0.2536830008029938, 0.0370669886469841, -0.04128773882985115, -0.10977427661418915, 0.003976735286414623, -0.19096405804157257, 0.10315059125423431, 0.20517095923423767, 0.28528836369514465, -0.059332478791475296, -0.2089357078075409, -0.3806835412979126, 0.09142829477787018, -0.07575268298387527, -0.07231377065181732, 0.2792041599750519, -0.3610209822654724, -0.3272753357887268, 0.3796772062778473, 0.26288819313049316, -0.007044230587780476, 0.018271658569574356, -0.40660277009010315, 0.30815136432647705, 0.15090343356132507, -0.30693936347961426, 0.2020791471004486, -0.05335473641753197, -0.08142408728599548, 0.14361335337162018, 0.05070745199918747, -0.24752052128314972, -0.11194642633199692, 0.47333964705467224, 0.15103191137313843, 0.14731915295124054, -0.19409304857254028, 0.4011059105396271, -0.05850844085216522, 0.04483528435230255, -0.209424689412117, 0.009636718779802322, 0.19828176498413086, -0.2481643259525299, -0.019428029656410217, -0.04776384308934212, 0.19191093742847443, -0.27658945322036743, -0.273240864276886, -0.5627890825271606, -0.29409030079841614, 0.013283345848321915, 0.19602665305137634, 0.4344431459903717, 0.17331643402576447, 0.3875640630722046, 0.013789262622594833, 0.14254386723041534, 0.04209905117750168, -0.19745837152004242, 0.09042827785015106, -0.051958877593278885, 0.1359880417585373, -0.002317987149581313, 0.3413331210613251, 0.02849605306982994, 0.3714669942855835, -0.1595568060874939, 0.4183472990989685, 0.2414272278547287, -0.0037240569945424795, -0.2726019024848938, 0.06460897624492645, 0.09804283827543259, 0.056079160422086716, 0.31885766983032227, 0.4236587882041931, 0.18993167579174042, 0.363993763923645, -0.08066026866436005, -0.45263510942459106, 0.3653295040130615, 0.3207609951496124, 0.04829014092683792, 0.26392608880996704, -0.1915266066789627, -0.20680345594882965, -0.3362599015235901, -0.18789298832416534, 0.12092014402151108, -0.11025071144104004, -0.37423354387283325, -0.0021377631928771734, -0.1651848703622818, 0.020724331960082054, -0.3147028386592865, -0.17649361491203308, 0.422893762588501, -0.02901952899992466, -0.18012359738349915, 0.18014144897460938, 0.32700374722480774, -0.01824137568473816, -0.4825628995895386, 0.21830908954143524, 0.1198166236281395, -0.2090969830751419, -0.2804137170314789, 0.06728268414735794, 0.033133793622255325, -0.008278674446046352, -0.3459010124206543, 0.35051798820495605, 0.4188533127307892, 0.05034762993454933, 0.18806633353233337, -0.2263922244310379, 0.09275458008050919, 0.13758325576782227, 0.019656401127576828, -0.08067945390939713, 0.008862409740686417, 0.11397302895784378, -0.1114063560962677, -0.5546119809150696, 0.09683875739574432, -0.30089622735977173, 0.15031884610652924, 0.17951051890850067, 0.2427690625190735, -0.06685937941074371, 0.1543455719947815, 0.10505162179470062, 0.27178096771240234, 0.2051311880350113, 0.16264471411705017, -0.07853102684020996, 0.05333678796887398, -0.3691020607948303, -0.5146060585975647, 0.22116634249687195, 0.21256400644779205, -0.42913001775741577, -0.09181960672140121, -0.23909668624401093, 0.35648301243782043, -0.2665337026119232, 0.07838520407676697, 0.033766068518161774, 0.2688445746898651, -0.6136782765388489, -0.08959901332855225, -0.13325172662734985, -0.18629659712314606, -0.2545347511768341, 0.11434461176395416, -0.004139299504458904, 0.05275667458772659, -0.3199983239173889, 0.2356804460287094, -0.3760027587413788, 0.0027407999150455, 0.03928995504975319, 0.2192004919052124, 0.192501962184906, -0.2237069010734558, 0.42463645339012146, -0.22477731108665466, -0.17010602355003357, 0.15379394590854645, 0.34752440452575684, -0.1655408889055252, 0.23746593296527863, -0.09457569569349289, -0.05540207028388977, -0.0397452712059021, -0.17053282260894775, -0.14319103956222534, 0.6429443359375, 0.11281144618988037, -0.16048011183738708, 0.17618855834007263, 0.10297640413045883, 0.24850596487522125, 0.1557369977235794, -0.028282277286052704, 0.38140690326690674, 0.06931878626346588, -0.13025788962841034, -0.4007813036441803, -0.15836185216903687, 0.42912760376930237, 0.1911298781633377, -0.24871355295181274, -0.2848221957683563, 0.08178851008415222, -0.06150691956281662, 0.1573861539363861, -0.2926678955554962, -0.1621098667383194, 0.16294609010219574, -0.2524837851524353, -0.10405199229717255, 0.2469831258058548, 0.05215514078736305, -0.16028127074241638, -0.19163818657398224, -0.48922407627105713, 0.38578498363494873, -0.016658896580338478, -0.20290081202983856, -0.11732945591211319 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer.
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
37
Integrate Milvus (pymilvus) library
[ -0.023325080052018166, -0.4939456284046173, -0.17094890773296356, -0.01673290878534317, 0.026908520609140396, -0.0984564796090126, -0.015347943641245365, 0.2075633704662323, 0.1084558442234993, 0.11307171732187271, -0.0266324020922184, 0.21014830470085144, -0.17254044115543365, 0.1022389680147171, 0.09059213846921921, 0.35122522711753845, -0.15013942122459412, 0.09104180335998535, -0.042617954313755035, -0.1636963039636612, -0.18170306086540222, 0.20737461745738983, -0.04078491032123566, -0.17382977902889252, 0.4312070310115814, 0.05505472421646118, 0.15757836401462555, 0.05634436756372452, 0.010441642254590988, -0.035565756261348724, -0.16526322066783905, 0.03088267520070076, -0.07543665915727615, 0.2699168026447296, -0.00011201408779015765, -0.15487916767597198, 0.1280490905046463, 0.02430388331413269, -0.0783771276473999, 0.10606805980205536, 0.3605731129646301, -0.09273308515548706, -0.16458968818187714, -0.37763893604278564, 0.13825774192810059, -0.008487841114401817, -0.04055725410580635, -0.6246597766876221, -0.16910870373249054, 0.03505011275410652, 0.2077397257089615, 0.20860502123832703, 0.1944511979818344, 0.019670765846967697, 0.1811942756175995, -0.2230529487133026, 0.081839919090271, 0.5266833901405334, 0.5674054622650146, 0.036208879202604294, 0.3594962954521179, 0.2278929203748703, -0.19005614519119263, -0.21193061769008636, 0.3349907100200653, -0.09202657639980316, 0.6885991096496582, -0.16170768439769745, -0.018051471561193466, -0.0496395081281662, 0.18013395369052887, -0.3226083517074585, 0.07186068594455719, 0.3247607350349426, 0.019898535683751106, -0.22895805537700653, -0.09481831640005112, 0.1733490377664566, 0.05795477703213692, -0.06675887852907181, 0.17881879210472107, -0.3526093661785126, -0.18837033212184906, 0.06899721920490265, -0.3218299448490143, 0.38028213381767273, 0.07688084989786148, 0.07267749309539795, 0.09767116606235504, 0.02494007721543312, 0.0016868382226675749, 0.35379737615585327, 0.22309806942939758, 0.2843738794326782, 0.2526124119758606, -0.012076023034751415, 0.0685468465089798, -0.07590341567993164, 0.21702054142951965, 0.35374441742897034, -0.08938086777925491, 0.07439922541379929, 0.18109598755836487, 0.4014837443828583, -0.19471266865730286, -0.4168333411216736, 0.01033768430352211, -0.206842303276062, 0.4136771559715271, 0.3027389347553253, 0.0316586010158062, 0.13353903591632843, 0.07574620097875595, -0.11035820096731186, -0.32324913144111633, -0.16843165457248688, -0.2602047622203827, -0.4041600823402405, -0.09462366253137589, -0.08251024782657623, -0.10879726707935333, 0.20983712375164032, -0.01689625345170498, -0.09168535470962524, -0.4858223497867584, 0.051211461424827576, 0.366280734539032, 0.005303148180246353, -0.1881633847951889, 0.10024365782737732, 0.057403746992349625, 0.4386313557624817, -0.07227027416229248, -0.21194453537464142, -0.08892995119094849, 0.09860282391309738, 0.0741894543170929, -0.1794748157262802, 0.5063491463661194, 0.2711505591869354, 0.12746495008468628, -0.08152313530445099, 0.011610866524279118, 0.38875022530555725, 0.019236983731389046, -0.14040645956993103, -0.034162309020757675, 0.1546565443277359, -0.27975544333457947, -0.01924334280192852, 0.005285450257360935, -0.06515578925609589, 0.05552959069609642, 0.22912274301052094, 0.31672579050064087, 0.017200497910380363, 0.49279749393463135, -0.08568118512630463, 0.13882382214069366, -0.4363166093826294, -0.1692444235086441, 0.11913575977087021, 0.21261879801750183, -0.41985616087913513, 0.23485134541988373, -0.04873683303594589, -0.5438719391822815, 0.09226923435926437, -0.06841948628425598, 0.025010088458657265, 0.2832898795604706, 0.08939056098461151, -0.10558511316776276, -0.6011543273925781, -0.1442590057849884, 0.20528145134449005, -0.008360613137483597, -0.6023324131965637, -0.029144318774342537, -0.31860917806625366, 0.05407073348760605, -0.36815744638442993, 0.22902944684028625, 0.2716381251811981, -0.14726972579956055, -0.026185957714915276, 0.028485707938671112, 0.5403363704681396, 0.07689207792282104, -0.09642325341701508, -0.2810988426208496, -0.33254334330558777, 0.5550966858863831, 0.29116201400756836, 0.30175265669822693, -0.32580915093421936, 0.5773215889930725, -0.29381847381591797, 0.30874183773994446, 0.0330730602145195, -0.07566176354885101, 0.08590884506702423, 0.2328920215368271, 0.20390841364860535, 0.35739001631736755, -0.1140904426574707, 0.5144141912460327, -0.15974026918411255, -0.4943920969963074, 0.19450260698795319, -0.23171262443065643, -0.24715234339237213, -0.07569680362939835, -0.2861187160015106, 0.11031608283519745, -0.02630198374390602, 0.14440716803073883, 0.060587987303733826, -0.05806035175919533, 0.25180578231811523, -0.09064896404743195, -0.06076737865805626, -0.11387934535741806, -0.026962820440530777, -0.4074152112007141, 0.006854339502751827, -0.10067955404520035, -0.02321554347872734, 0.16340972483158112, 0.33402734994888306, 0.08934451639652252, -0.041539620608091354, 0.3827604353427887, 0.14533200860023499, 0.09643136709928513, -0.030434923246502876, 0.3445451855659485, 0.37935909628868103, 0.13462845981121063, -0.2785520553588867, 0.043785709887742996, 0.20505391061306, 0.09917175024747849, 0.015003535896539688, 0.014186306856572628, 0.10744425654411316, 0.6653909087181091, 0.06428629159927368, 0.12968938052654266, -0.09674806892871857, -0.09914921969175339, -0.04547175392508507, -0.019343918189406395, 0.12432768195867538, -0.10000254213809967, 0.13386103510856628, 0.051804933696985245, -0.284783273935318, -0.12641696631908417, -0.07030703872442245, 0.27874308824539185, 0.07229140400886536, 0.00801963359117508, -0.14000317454338074, -0.20304325222969055, -0.1375068575143814, 0.2670721113681793, -0.3913288414478302, -0.06568947434425354, 0.2114580124616623, 0.0613555945456028, 0.02853327989578247, -0.1244303360581398, -0.11765570193529129, 0.00491359131410718, 0.008807775564491749, 0.13058805465698242, 0.012434042990207672, 0.07657057046890259, 0.07591715455055237, -0.057045821100473404, 0.09169072657823563, -0.25864747166633606, -0.13726477324962616, 0.0004239652771502733, 0.06241023167967796, -0.25243115425109863, -0.2243836671113968, 0.24676209688186646, 0.20219959318637848, -0.3479172885417938, -0.2338234931230545, -0.061177611351013184, -0.03468111529946327, 0.2453823834657669, 0.02553720399737358, 0.3838077187538147, 0.4265156090259552, 0.011018732562661171, -0.11306238174438477, 0.16679489612579346, -0.11520183086395264, -0.04981047287583351, 0.2413814514875412, -0.10067198425531387, 0.06571831554174423, 0.6383171677589417, -0.025190534070134163, -0.22988934814929962, -0.037619441747665405, -0.6117644309997559, 0.0690624788403511, 0.11158941686153412, -0.058049194514751434, 0.18612562119960785, -0.20140933990478516, 0.13753201067447662, 0.017620600759983063, -0.20809416472911835, -0.11529655754566193, -0.010364185087382793, -0.32238924503326416, -0.21914614737033844, -0.21436075866222382, -0.3949064612388611, -0.32519829273223877, -0.3061663806438446, -0.14804430305957794, 0.03883211314678192, 0.4641650319099426, 0.023908181115984917, -0.0999605730175972, -0.19724011421203613, 0.17088693380355835, 0.024207836017012596, 0.361953467130661, -0.12576863169670105, 0.17616243660449982, 0.46534329652786255, -0.29062002897262573, -0.3316532373428345, 0.3293212354183197, 0.08861690014600754, 0.36342737078666687, 0.23042148351669312, -0.06317691504955292, -0.10774243623018265, 0.016938770189881325, 0.14032647013664246, -0.07405725121498108, 0.29707762598991394, 0.25374215841293335, -0.15664701163768768, -0.0822044312953949, -0.1729596108198166, -0.028422046452760696, -0.10467753559350967, 0.1313757300376892, 0.2746254801750183, 0.09024765342473984, -0.018631543964147568, -0.03222598880529404, 0.20015904307365417, -0.3073683977127075, -0.03110499307513237, -0.09020259231328964, -0.2838027775287628, 0.05350615829229355, 0.3715967833995819, 0.04787154495716095, 0.46539589762687683, 0.18379662930965424, 0.16743052005767822, -0.12684063613414764, 0.03374447301030159, -0.05042654648423195, -0.1037474125623703, 0.14509636163711548, -0.26802894473075867, 0.09564782679080963, -0.44365888833999634, 0.17929938435554504, 0.28573375940322876, -0.02501753903925419, -0.2293269783258438, -0.1182040199637413, 0.028536686673760414, 0.4963340759277344, 0.4247489273548126, 0.019302520900964737, 0.2393038272857666, 0.18177998065948486, 0.08976627141237259, 0.03164365887641907, 0.11519814282655716, 0.061737705022096634, -0.42610272765159607, 0.09171681106090546, -0.1679646223783493, 0.056016914546489716, -0.41782066226005554, 0.45493921637535095, 0.007263235282152891, -0.11951248347759247, 0.3063877522945404, -0.10998030006885529, -0.11655954271554947, 0.08508598059415817, -0.2561562657356262, 0.06693944334983826, 0.22877076268196106, -0.0066720955073833466, -0.4681987166404724, 0.14458423852920532, 0.2654722332954407, 0.1480899453163147, -0.0908709242939949, 0.031077131628990173, -0.19531302154064178, -0.517134428024292, -0.5494799017906189, -0.2168390303850174, 0.029512403532862663, 0.44374388456344604, 0.0772649347782135, -0.35013172030448914, 0.09455996006727219, -0.32297196984291077, 0.352708101272583, 0.26777884364128113, 0.3171272277832031, -0.24005965888500214, -0.20668907463550568, 0.07381225377321243, 0.09336937963962555, 0.20007650554180145, 0.04117874056100845, 0.24802057445049286, -0.013327300548553467, 0.15857303142547607, -0.4371292293071747, 0.4873262643814087, 0.10148211568593979, -0.2254507690668106, 0.27078676223754883, -0.441666841506958, 0.07999656349420547, 0.2963930368423462, 0.08193424344062805, 0.1401565819978714, 0.05629321187734604, 0.021394358947873116, -0.36162200570106506, 0.014258142560720444, 0.043547842651605606, -0.10101243108510971, -0.02705327235162258, 0.013568416237831116, -0.2549329996109009, -0.4979400336742401, 0.4685992896556854, 1.258965015411377, 0.023021159693598747, 0.09694121032953262, 0.36427831649780273, -0.12235784530639648, 0.19535721838474274, -0.5152807831764221, 0.09115434437990189, -0.48232606053352356, 0.3321380913257599, -0.09768908470869064, -0.09789340198040009, 0.12672924995422363, -0.4891059696674347, -0.06596367061138153, -0.06512206047773361, -0.44347941875457764, -0.26560738682746887, -0.05442298576235771, -0.04351484030485153, 0.2447233498096466, -0.18610742688179016, 0.12194868177175522, 0.17867963016033173, 0.04764821380376816, 0.010605799034237862, -0.2146686613559723, -0.09466427564620972, -0.035455457866191864, 0.07308237254619598, 0.0334230437874794, -0.05788300558924675, 0.017565837129950523, 0.31096476316452026, -0.029570195823907852, 0.17822854220867157, -0.0462501123547554, -0.04297182708978653, 0.14506423473358154, 0.5695227980613708, 0.11629097908735275, 0.08052907884120941, -0.007481321692466736, -0.5019221305847168, 0.014012927189469337, 0.15120814740657806, 0.07491675764322281, -0.5011062026023865, -0.014086426235735416, 0.31433555483818054, -0.078201524913311, -0.32300621271133423, -0.28719598054885864, 0.10787684470415115, 0.2820928990840912, 0.3707834780216217, -0.12370964139699936, 0.0712878406047821, -0.05774479731917381, 0.013960874639451504, 0.17225834727287292, 0.0001545049308333546, -0.1711304634809494, 0.4117613732814789, -0.014785992912948132, -0.12224908918142319, -0.254913330078125, 0.32757267355918884, 0.11223910003900528, -0.3572836220264435, -0.04793299734592438, 0.01645522378385067, -0.41415563225746155, -0.21304720640182495, -0.34752416610717773, 0.24463975429534912, 0.2576155364513397, 0.045513398945331573, 0.10686338692903519, -0.10097851604223251, 0.2166191041469574, 0.009237553924322128, 0.23039214313030243, -0.18133419752120972, -0.2476421594619751, -0.4726389944553375, -0.1958131641149521, 0.19415806233882904, 0.03474373370409012, -0.11475714296102524, 0.5101720690727234, 0.11651631444692612, -0.019536318257451057, -0.18754318356513977, -0.3814966380596161, 0.2536830008029938, 0.0370669886469841, -0.04128773882985115, -0.10977427661418915, 0.003976735286414623, -0.19096405804157257, 0.10315059125423431, 0.20517095923423767, 0.28528836369514465, -0.059332478791475296, -0.2089357078075409, -0.3806835412979126, 0.09142829477787018, -0.07575268298387527, -0.07231377065181732, 0.2792041599750519, -0.3610209822654724, -0.3272753357887268, 0.3796772062778473, 0.26288819313049316, -0.007044230587780476, 0.018271658569574356, -0.40660277009010315, 0.30815136432647705, 0.15090343356132507, -0.30693936347961426, 0.2020791471004486, -0.05335473641753197, -0.08142408728599548, 0.14361335337162018, 0.05070745199918747, -0.24752052128314972, -0.11194642633199692, 0.47333964705467224, 0.15103191137313843, 0.14731915295124054, -0.19409304857254028, 0.4011059105396271, -0.05850844085216522, 0.04483528435230255, -0.209424689412117, 0.009636718779802322, 0.19828176498413086, -0.2481643259525299, -0.019428029656410217, -0.04776384308934212, 0.19191093742847443, -0.27658945322036743, -0.273240864276886, -0.5627890825271606, -0.29409030079841614, 0.013283345848321915, 0.19602665305137634, 0.4344431459903717, 0.17331643402576447, 0.3875640630722046, 0.013789262622594833, 0.14254386723041534, 0.04209905117750168, -0.19745837152004242, 0.09042827785015106, -0.051958877593278885, 0.1359880417585373, -0.002317987149581313, 0.3413331210613251, 0.02849605306982994, 0.3714669942855835, -0.1595568060874939, 0.4183472990989685, 0.2414272278547287, -0.0037240569945424795, -0.2726019024848938, 0.06460897624492645, 0.09804283827543259, 0.056079160422086716, 0.31885766983032227, 0.4236587882041931, 0.18993167579174042, 0.363993763923645, -0.08066026866436005, -0.45263510942459106, 0.3653295040130615, 0.3207609951496124, 0.04829014092683792, 0.26392608880996704, -0.1915266066789627, -0.20680345594882965, -0.3362599015235901, -0.18789298832416534, 0.12092014402151108, -0.11025071144104004, -0.37423354387283325, -0.0021377631928771734, -0.1651848703622818, 0.020724331960082054, -0.3147028386592865, -0.17649361491203308, 0.422893762588501, -0.02901952899992466, -0.18012359738349915, 0.18014144897460938, 0.32700374722480774, -0.01824137568473816, -0.4825628995895386, 0.21830908954143524, 0.1198166236281395, -0.2090969830751419, -0.2804137170314789, 0.06728268414735794, 0.033133793622255325, -0.008278674446046352, -0.3459010124206543, 0.35051798820495605, 0.4188533127307892, 0.05034762993454933, 0.18806633353233337, -0.2263922244310379, 0.09275458008050919, 0.13758325576782227, 0.019656401127576828, -0.08067945390939713, 0.008862409740686417, 0.11397302895784378, -0.1114063560962677, -0.5546119809150696, 0.09683875739574432, -0.30089622735977173, 0.15031884610652924, 0.17951051890850067, 0.2427690625190735, -0.06685937941074371, 0.1543455719947815, 0.10505162179470062, 0.27178096771240234, 0.2051311880350113, 0.16264471411705017, -0.07853102684020996, 0.05333678796887398, -0.3691020607948303, -0.5146060585975647, 0.22116634249687195, 0.21256400644779205, -0.42913001775741577, -0.09181960672140121, -0.23909668624401093, 0.35648301243782043, -0.2665337026119232, 0.07838520407676697, 0.033766068518161774, 0.2688445746898651, -0.6136782765388489, -0.08959901332855225, -0.13325172662734985, -0.18629659712314606, -0.2545347511768341, 0.11434461176395416, -0.004139299504458904, 0.05275667458772659, -0.3199983239173889, 0.2356804460287094, -0.3760027587413788, 0.0027407999150455, 0.03928995504975319, 0.2192004919052124, 0.192501962184906, -0.2237069010734558, 0.42463645339012146, -0.22477731108665466, -0.17010602355003357, 0.15379394590854645, 0.34752440452575684, -0.1655408889055252, 0.23746593296527863, -0.09457569569349289, -0.05540207028388977, -0.0397452712059021, -0.17053282260894775, -0.14319103956222534, 0.6429443359375, 0.11281144618988037, -0.16048011183738708, 0.17618855834007263, 0.10297640413045883, 0.24850596487522125, 0.1557369977235794, -0.028282277286052704, 0.38140690326690674, 0.06931878626346588, -0.13025788962841034, -0.4007813036441803, -0.15836185216903687, 0.42912760376930237, 0.1911298781633377, -0.24871355295181274, -0.2848221957683563, 0.08178851008415222, -0.06150691956281662, 0.1573861539363861, -0.2926678955554962, -0.1621098667383194, 0.16294609010219574, -0.2524837851524353, -0.10405199229717255, 0.2469831258058548, 0.05215514078736305, -0.16028127074241638, -0.19163818657398224, -0.48922407627105713, 0.38578498363494873, -0.016658896580338478, -0.20290081202983856, -0.11732945591211319 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
> Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer. Sure, we take a look and do some research
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
47
Integrate Milvus (pymilvus) library
[ -0.023325080052018166, -0.4939456284046173, -0.17094890773296356, -0.01673290878534317, 0.026908520609140396, -0.0984564796090126, -0.015347943641245365, 0.2075633704662323, 0.1084558442234993, 0.11307171732187271, -0.0266324020922184, 0.21014830470085144, -0.17254044115543365, 0.1022389680147171, 0.09059213846921921, 0.35122522711753845, -0.15013942122459412, 0.09104180335998535, -0.042617954313755035, -0.1636963039636612, -0.18170306086540222, 0.20737461745738983, -0.04078491032123566, -0.17382977902889252, 0.4312070310115814, 0.05505472421646118, 0.15757836401462555, 0.05634436756372452, 0.010441642254590988, -0.035565756261348724, -0.16526322066783905, 0.03088267520070076, -0.07543665915727615, 0.2699168026447296, -0.00011201408779015765, -0.15487916767597198, 0.1280490905046463, 0.02430388331413269, -0.0783771276473999, 0.10606805980205536, 0.3605731129646301, -0.09273308515548706, -0.16458968818187714, -0.37763893604278564, 0.13825774192810059, -0.008487841114401817, -0.04055725410580635, -0.6246597766876221, -0.16910870373249054, 0.03505011275410652, 0.2077397257089615, 0.20860502123832703, 0.1944511979818344, 0.019670765846967697, 0.1811942756175995, -0.2230529487133026, 0.081839919090271, 0.5266833901405334, 0.5674054622650146, 0.036208879202604294, 0.3594962954521179, 0.2278929203748703, -0.19005614519119263, -0.21193061769008636, 0.3349907100200653, -0.09202657639980316, 0.6885991096496582, -0.16170768439769745, -0.018051471561193466, -0.0496395081281662, 0.18013395369052887, -0.3226083517074585, 0.07186068594455719, 0.3247607350349426, 0.019898535683751106, -0.22895805537700653, -0.09481831640005112, 0.1733490377664566, 0.05795477703213692, -0.06675887852907181, 0.17881879210472107, -0.3526093661785126, -0.18837033212184906, 0.06899721920490265, -0.3218299448490143, 0.38028213381767273, 0.07688084989786148, 0.07267749309539795, 0.09767116606235504, 0.02494007721543312, 0.0016868382226675749, 0.35379737615585327, 0.22309806942939758, 0.2843738794326782, 0.2526124119758606, -0.012076023034751415, 0.0685468465089798, -0.07590341567993164, 0.21702054142951965, 0.35374441742897034, -0.08938086777925491, 0.07439922541379929, 0.18109598755836487, 0.4014837443828583, -0.19471266865730286, -0.4168333411216736, 0.01033768430352211, -0.206842303276062, 0.4136771559715271, 0.3027389347553253, 0.0316586010158062, 0.13353903591632843, 0.07574620097875595, -0.11035820096731186, -0.32324913144111633, -0.16843165457248688, -0.2602047622203827, -0.4041600823402405, -0.09462366253137589, -0.08251024782657623, -0.10879726707935333, 0.20983712375164032, -0.01689625345170498, -0.09168535470962524, -0.4858223497867584, 0.051211461424827576, 0.366280734539032, 0.005303148180246353, -0.1881633847951889, 0.10024365782737732, 0.057403746992349625, 0.4386313557624817, -0.07227027416229248, -0.21194453537464142, -0.08892995119094849, 0.09860282391309738, 0.0741894543170929, -0.1794748157262802, 0.5063491463661194, 0.2711505591869354, 0.12746495008468628, -0.08152313530445099, 0.011610866524279118, 0.38875022530555725, 0.019236983731389046, -0.14040645956993103, -0.034162309020757675, 0.1546565443277359, -0.27975544333457947, -0.01924334280192852, 0.005285450257360935, -0.06515578925609589, 0.05552959069609642, 0.22912274301052094, 0.31672579050064087, 0.017200497910380363, 0.49279749393463135, -0.08568118512630463, 0.13882382214069366, -0.4363166093826294, -0.1692444235086441, 0.11913575977087021, 0.21261879801750183, -0.41985616087913513, 0.23485134541988373, -0.04873683303594589, -0.5438719391822815, 0.09226923435926437, -0.06841948628425598, 0.025010088458657265, 0.2832898795604706, 0.08939056098461151, -0.10558511316776276, -0.6011543273925781, -0.1442590057849884, 0.20528145134449005, -0.008360613137483597, -0.6023324131965637, -0.029144318774342537, -0.31860917806625366, 0.05407073348760605, -0.36815744638442993, 0.22902944684028625, 0.2716381251811981, -0.14726972579956055, -0.026185957714915276, 0.028485707938671112, 0.5403363704681396, 0.07689207792282104, -0.09642325341701508, -0.2810988426208496, -0.33254334330558777, 0.5550966858863831, 0.29116201400756836, 0.30175265669822693, -0.32580915093421936, 0.5773215889930725, -0.29381847381591797, 0.30874183773994446, 0.0330730602145195, -0.07566176354885101, 0.08590884506702423, 0.2328920215368271, 0.20390841364860535, 0.35739001631736755, -0.1140904426574707, 0.5144141912460327, -0.15974026918411255, -0.4943920969963074, 0.19450260698795319, -0.23171262443065643, -0.24715234339237213, -0.07569680362939835, -0.2861187160015106, 0.11031608283519745, -0.02630198374390602, 0.14440716803073883, 0.060587987303733826, -0.05806035175919533, 0.25180578231811523, -0.09064896404743195, -0.06076737865805626, -0.11387934535741806, -0.026962820440530777, -0.4074152112007141, 0.006854339502751827, -0.10067955404520035, -0.02321554347872734, 0.16340972483158112, 0.33402734994888306, 0.08934451639652252, -0.041539620608091354, 0.3827604353427887, 0.14533200860023499, 0.09643136709928513, -0.030434923246502876, 0.3445451855659485, 0.37935909628868103, 0.13462845981121063, -0.2785520553588867, 0.043785709887742996, 0.20505391061306, 0.09917175024747849, 0.015003535896539688, 0.014186306856572628, 0.10744425654411316, 0.6653909087181091, 0.06428629159927368, 0.12968938052654266, -0.09674806892871857, -0.09914921969175339, -0.04547175392508507, -0.019343918189406395, 0.12432768195867538, -0.10000254213809967, 0.13386103510856628, 0.051804933696985245, -0.284783273935318, -0.12641696631908417, -0.07030703872442245, 0.27874308824539185, 0.07229140400886536, 0.00801963359117508, -0.14000317454338074, -0.20304325222969055, -0.1375068575143814, 0.2670721113681793, -0.3913288414478302, -0.06568947434425354, 0.2114580124616623, 0.0613555945456028, 0.02853327989578247, -0.1244303360581398, -0.11765570193529129, 0.00491359131410718, 0.008807775564491749, 0.13058805465698242, 0.012434042990207672, 0.07657057046890259, 0.07591715455055237, -0.057045821100473404, 0.09169072657823563, -0.25864747166633606, -0.13726477324962616, 0.0004239652771502733, 0.06241023167967796, -0.25243115425109863, -0.2243836671113968, 0.24676209688186646, 0.20219959318637848, -0.3479172885417938, -0.2338234931230545, -0.061177611351013184, -0.03468111529946327, 0.2453823834657669, 0.02553720399737358, 0.3838077187538147, 0.4265156090259552, 0.011018732562661171, -0.11306238174438477, 0.16679489612579346, -0.11520183086395264, -0.04981047287583351, 0.2413814514875412, -0.10067198425531387, 0.06571831554174423, 0.6383171677589417, -0.025190534070134163, -0.22988934814929962, -0.037619441747665405, -0.6117644309997559, 0.0690624788403511, 0.11158941686153412, -0.058049194514751434, 0.18612562119960785, -0.20140933990478516, 0.13753201067447662, 0.017620600759983063, -0.20809416472911835, -0.11529655754566193, -0.010364185087382793, -0.32238924503326416, -0.21914614737033844, -0.21436075866222382, -0.3949064612388611, -0.32519829273223877, -0.3061663806438446, -0.14804430305957794, 0.03883211314678192, 0.4641650319099426, 0.023908181115984917, -0.0999605730175972, -0.19724011421203613, 0.17088693380355835, 0.024207836017012596, 0.361953467130661, -0.12576863169670105, 0.17616243660449982, 0.46534329652786255, -0.29062002897262573, -0.3316532373428345, 0.3293212354183197, 0.08861690014600754, 0.36342737078666687, 0.23042148351669312, -0.06317691504955292, -0.10774243623018265, 0.016938770189881325, 0.14032647013664246, -0.07405725121498108, 0.29707762598991394, 0.25374215841293335, -0.15664701163768768, -0.0822044312953949, -0.1729596108198166, -0.028422046452760696, -0.10467753559350967, 0.1313757300376892, 0.2746254801750183, 0.09024765342473984, -0.018631543964147568, -0.03222598880529404, 0.20015904307365417, -0.3073683977127075, -0.03110499307513237, -0.09020259231328964, -0.2838027775287628, 0.05350615829229355, 0.3715967833995819, 0.04787154495716095, 0.46539589762687683, 0.18379662930965424, 0.16743052005767822, -0.12684063613414764, 0.03374447301030159, -0.05042654648423195, -0.1037474125623703, 0.14509636163711548, -0.26802894473075867, 0.09564782679080963, -0.44365888833999634, 0.17929938435554504, 0.28573375940322876, -0.02501753903925419, -0.2293269783258438, -0.1182040199637413, 0.028536686673760414, 0.4963340759277344, 0.4247489273548126, 0.019302520900964737, 0.2393038272857666, 0.18177998065948486, 0.08976627141237259, 0.03164365887641907, 0.11519814282655716, 0.061737705022096634, -0.42610272765159607, 0.09171681106090546, -0.1679646223783493, 0.056016914546489716, -0.41782066226005554, 0.45493921637535095, 0.007263235282152891, -0.11951248347759247, 0.3063877522945404, -0.10998030006885529, -0.11655954271554947, 0.08508598059415817, -0.2561562657356262, 0.06693944334983826, 0.22877076268196106, -0.0066720955073833466, -0.4681987166404724, 0.14458423852920532, 0.2654722332954407, 0.1480899453163147, -0.0908709242939949, 0.031077131628990173, -0.19531302154064178, -0.517134428024292, -0.5494799017906189, -0.2168390303850174, 0.029512403532862663, 0.44374388456344604, 0.0772649347782135, -0.35013172030448914, 0.09455996006727219, -0.32297196984291077, 0.352708101272583, 0.26777884364128113, 0.3171272277832031, -0.24005965888500214, -0.20668907463550568, 0.07381225377321243, 0.09336937963962555, 0.20007650554180145, 0.04117874056100845, 0.24802057445049286, -0.013327300548553467, 0.15857303142547607, -0.4371292293071747, 0.4873262643814087, 0.10148211568593979, -0.2254507690668106, 0.27078676223754883, -0.441666841506958, 0.07999656349420547, 0.2963930368423462, 0.08193424344062805, 0.1401565819978714, 0.05629321187734604, 0.021394358947873116, -0.36162200570106506, 0.014258142560720444, 0.043547842651605606, -0.10101243108510971, -0.02705327235162258, 0.013568416237831116, -0.2549329996109009, -0.4979400336742401, 0.4685992896556854, 1.258965015411377, 0.023021159693598747, 0.09694121032953262, 0.36427831649780273, -0.12235784530639648, 0.19535721838474274, -0.5152807831764221, 0.09115434437990189, -0.48232606053352356, 0.3321380913257599, -0.09768908470869064, -0.09789340198040009, 0.12672924995422363, -0.4891059696674347, -0.06596367061138153, -0.06512206047773361, -0.44347941875457764, -0.26560738682746887, -0.05442298576235771, -0.04351484030485153, 0.2447233498096466, -0.18610742688179016, 0.12194868177175522, 0.17867963016033173, 0.04764821380376816, 0.010605799034237862, -0.2146686613559723, -0.09466427564620972, -0.035455457866191864, 0.07308237254619598, 0.0334230437874794, -0.05788300558924675, 0.017565837129950523, 0.31096476316452026, -0.029570195823907852, 0.17822854220867157, -0.0462501123547554, -0.04297182708978653, 0.14506423473358154, 0.5695227980613708, 0.11629097908735275, 0.08052907884120941, -0.007481321692466736, -0.5019221305847168, 0.014012927189469337, 0.15120814740657806, 0.07491675764322281, -0.5011062026023865, -0.014086426235735416, 0.31433555483818054, -0.078201524913311, -0.32300621271133423, -0.28719598054885864, 0.10787684470415115, 0.2820928990840912, 0.3707834780216217, -0.12370964139699936, 0.0712878406047821, -0.05774479731917381, 0.013960874639451504, 0.17225834727287292, 0.0001545049308333546, -0.1711304634809494, 0.4117613732814789, -0.014785992912948132, -0.12224908918142319, -0.254913330078125, 0.32757267355918884, 0.11223910003900528, -0.3572836220264435, -0.04793299734592438, 0.01645522378385067, -0.41415563225746155, -0.21304720640182495, -0.34752416610717773, 0.24463975429534912, 0.2576155364513397, 0.045513398945331573, 0.10686338692903519, -0.10097851604223251, 0.2166191041469574, 0.009237553924322128, 0.23039214313030243, -0.18133419752120972, -0.2476421594619751, -0.4726389944553375, -0.1958131641149521, 0.19415806233882904, 0.03474373370409012, -0.11475714296102524, 0.5101720690727234, 0.11651631444692612, -0.019536318257451057, -0.18754318356513977, -0.3814966380596161, 0.2536830008029938, 0.0370669886469841, -0.04128773882985115, -0.10977427661418915, 0.003976735286414623, -0.19096405804157257, 0.10315059125423431, 0.20517095923423767, 0.28528836369514465, -0.059332478791475296, -0.2089357078075409, -0.3806835412979126, 0.09142829477787018, -0.07575268298387527, -0.07231377065181732, 0.2792041599750519, -0.3610209822654724, -0.3272753357887268, 0.3796772062778473, 0.26288819313049316, -0.007044230587780476, 0.018271658569574356, -0.40660277009010315, 0.30815136432647705, 0.15090343356132507, -0.30693936347961426, 0.2020791471004486, -0.05335473641753197, -0.08142408728599548, 0.14361335337162018, 0.05070745199918747, -0.24752052128314972, -0.11194642633199692, 0.47333964705467224, 0.15103191137313843, 0.14731915295124054, -0.19409304857254028, 0.4011059105396271, -0.05850844085216522, 0.04483528435230255, -0.209424689412117, 0.009636718779802322, 0.19828176498413086, -0.2481643259525299, -0.019428029656410217, -0.04776384308934212, 0.19191093742847443, -0.27658945322036743, -0.273240864276886, -0.5627890825271606, -0.29409030079841614, 0.013283345848321915, 0.19602665305137634, 0.4344431459903717, 0.17331643402576447, 0.3875640630722046, 0.013789262622594833, 0.14254386723041534, 0.04209905117750168, -0.19745837152004242, 0.09042827785015106, -0.051958877593278885, 0.1359880417585373, -0.002317987149581313, 0.3413331210613251, 0.02849605306982994, 0.3714669942855835, -0.1595568060874939, 0.4183472990989685, 0.2414272278547287, -0.0037240569945424795, -0.2726019024848938, 0.06460897624492645, 0.09804283827543259, 0.056079160422086716, 0.31885766983032227, 0.4236587882041931, 0.18993167579174042, 0.363993763923645, -0.08066026866436005, -0.45263510942459106, 0.3653295040130615, 0.3207609951496124, 0.04829014092683792, 0.26392608880996704, -0.1915266066789627, -0.20680345594882965, -0.3362599015235901, -0.18789298832416534, 0.12092014402151108, -0.11025071144104004, -0.37423354387283325, -0.0021377631928771734, -0.1651848703622818, 0.020724331960082054, -0.3147028386592865, -0.17649361491203308, 0.422893762588501, -0.02901952899992466, -0.18012359738349915, 0.18014144897460938, 0.32700374722480774, -0.01824137568473816, -0.4825628995895386, 0.21830908954143524, 0.1198166236281395, -0.2090969830751419, -0.2804137170314789, 0.06728268414735794, 0.033133793622255325, -0.008278674446046352, -0.3459010124206543, 0.35051798820495605, 0.4188533127307892, 0.05034762993454933, 0.18806633353233337, -0.2263922244310379, 0.09275458008050919, 0.13758325576782227, 0.019656401127576828, -0.08067945390939713, 0.008862409740686417, 0.11397302895784378, -0.1114063560962677, -0.5546119809150696, 0.09683875739574432, -0.30089622735977173, 0.15031884610652924, 0.17951051890850067, 0.2427690625190735, -0.06685937941074371, 0.1543455719947815, 0.10505162179470062, 0.27178096771240234, 0.2051311880350113, 0.16264471411705017, -0.07853102684020996, 0.05333678796887398, -0.3691020607948303, -0.5146060585975647, 0.22116634249687195, 0.21256400644779205, -0.42913001775741577, -0.09181960672140121, -0.23909668624401093, 0.35648301243782043, -0.2665337026119232, 0.07838520407676697, 0.033766068518161774, 0.2688445746898651, -0.6136782765388489, -0.08959901332855225, -0.13325172662734985, -0.18629659712314606, -0.2545347511768341, 0.11434461176395416, -0.004139299504458904, 0.05275667458772659, -0.3199983239173889, 0.2356804460287094, -0.3760027587413788, 0.0027407999150455, 0.03928995504975319, 0.2192004919052124, 0.192501962184906, -0.2237069010734558, 0.42463645339012146, -0.22477731108665466, -0.17010602355003357, 0.15379394590854645, 0.34752440452575684, -0.1655408889055252, 0.23746593296527863, -0.09457569569349289, -0.05540207028388977, -0.0397452712059021, -0.17053282260894775, -0.14319103956222534, 0.6429443359375, 0.11281144618988037, -0.16048011183738708, 0.17618855834007263, 0.10297640413045883, 0.24850596487522125, 0.1557369977235794, -0.028282277286052704, 0.38140690326690674, 0.06931878626346588, -0.13025788962841034, -0.4007813036441803, -0.15836185216903687, 0.42912760376930237, 0.1911298781633377, -0.24871355295181274, -0.2848221957683563, 0.08178851008415222, -0.06150691956281662, 0.1573861539363861, -0.2926678955554962, -0.1621098667383194, 0.16294609010219574, -0.2524837851524353, -0.10405199229717255, 0.2469831258058548, 0.05215514078736305, -0.16028127074241638, -0.19163818657398224, -0.48922407627105713, 0.38578498363494873, -0.016658896580338478, -0.20290081202983856, -0.11732945591211319 ]
https://github.com/huggingface/datasets/issues/3555
DuplicatedKeysError when loading tweet_qa dataset
Hi, we've just merged the PR with the fix. The fixed version of the dataset can be downloaded as follows: ```python import datasets dset = datasets.load_dataset("tweet_qa", revision="master") ```
When loading the tweet_qa dataset with `load_dataset('tweet_qa')`, the following error occurs: `DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 2a167f9e016ba338e1813fed275a6a1e Keys should be unique and deterministic in nature ` Might be related to issues #2433 and #2333 - `datasets` version: 1.17.0 - Python version: 3.8.5
28
DuplicatedKeysError when loading tweet_qa dataset
[ 0.06593871116638184, -0.21572919189929962, -0.017527246847748756, 0.1911630928516388, 0.2582230567932129, 0.19550533592700958, 0.12552937865257263, 0.25756973028182983, -0.30392220616340637, 0.09414554387331009, -0.21762165427207947, 0.25737208127975464, -0.1449328511953354, 0.3114810585975647, 0.1600455343723297, 0.14690761268138885, -0.1615474969148636, 0.06305377930402756, -0.07759322971105576, 0.03464992716908455, -0.05572213977575302, 0.48674315214157104, -0.013005142100155354, 0.3589702844619751, -0.12706826627254486, 0.0479741245508194, 0.08412136137485504, 0.1436837762594223, 0.19724521040916443, -0.26523101329803467, -0.036404818296432495, 0.15602532029151917, -0.19064053893089294, 0.5299301147460938, -0.00010920138447545469, 0.3573980927467346, -0.02447010949254036, -0.15782351791858673, 0.0024052599910646677, 0.1119004562497139, 0.07855907082557678, 0.2283661961555481, 0.15315966308116913, -0.08691231906414032, -0.16129513084888458, -0.33524566888809204, 0.004676722921431065, -0.14647601544857025, 0.5586619973182678, 0.15626148879528046, 0.2618142366409302, 0.3151920735836029, -0.0877702608704567, -0.03607703000307083, 0.17303387820720673, -0.45585089921951294, 0.061762452125549316, -0.0728670060634613, 0.07709786295890808, 0.08173473924398422, 0.0918935164809227, 0.503271758556366, 0.060998883098363876, -0.0375855527818203, 0.16595569252967834, -0.18363863229751587, 0.20491458475589752, -0.07264663279056549, 0.40224161744117737, 0.298659086227417, 0.17807763814926147, -0.2252250611782074, 0.028255395591259003, -0.157511368393898, 0.0400582030415535, -0.040313322097063065, 0.013884027488529682, -0.2834310233592987, -0.1996964067220688, 0.1923457533121109, -0.06265396624803543, -0.09952443093061447, -0.14236518740653992, -0.021695606410503387, -0.04739714413881302, 0.031184636056423187, -0.020135652273893356, 0.11307606101036072, -0.06418193876743317, -0.12780378758907318, -0.08504857122898102, 0.10545571148395538, -0.043573953211307526, 0.03617393970489502, -0.350179523229599, 0.09639149904251099, 0.36287930607795715, -0.23297923803329468, 0.23073238134384155, 0.030731014907360077, 0.07869888097047806, 0.30313101410865784, 0.16340476274490356, -0.11982858180999756, 0.3654884397983551, 0.11901282519102097, -0.009501504711806774, -0.08080042153596878, 0.30278128385543823, -0.3455559015274048, -0.4859298765659332, -0.0003198710619471967, 0.10798166692256927, -0.08862071484327316, 0.4074477553367615, -0.1363862156867981, 0.3017425537109375, -0.011217258870601654, -0.07251481711864471, 0.10050279647111893, -0.020346621051430702, -0.2002106010913849, -0.2901119589805603, 0.3193255662918091, 0.4777209758758545, 0.04804275557398796, -0.07834237068891525, 0.18319113552570343, -0.39086565375328064, -0.059398867189884186, -0.3532704710960388, -0.1987362951040268, 0.4362717866897583, 0.10637114197015762, -0.0866616815328598, -0.29914590716362, 0.21692974865436554, -0.12626580893993378, 0.17010775208473206, -0.19739995896816254, 0.19486044347286224, 0.3128807842731476, -0.1861499696969986, 0.29939624667167664, 0.23263919353485107, 0.41112831234931946, 0.14780016243457794, -0.033403608947992325, -0.04300280287861824, 0.21196837723255157, -0.28307047486305237, -0.6232714056968689, -0.21251100301742554, 0.24899622797966003, -0.062055978924036026, -0.022755134850740433, 0.04650072008371353, 0.30525264143943787, 0.37410569190979004, -0.07763799279928207, -0.24703580141067505, -0.018521489575505257, -0.11489363759756088, -0.11612886935472488, -0.09254198521375656, 0.20390798151493073, -0.23853904008865356, -0.2657489478588104, -0.13577547669410706, -0.18404489755630493, -0.24058152735233307, 0.34371572732925415, -0.31214451789855957, 0.5591038465499878, -0.23087486624717712, 0.5181071162223816, 0.45389679074287415, -0.5894665718078613, -0.25508421659469604, 0.3118288516998291, -0.39466360211372375, 0.07979921996593475, 0.05810175836086273, 0.16313324868679047, 0.14768876135349274, 0.006911308038979769, 0.1695268750190735, -0.136818528175354, 0.037475526332855225, 0.08135054260492325, -0.23923058807849884, -0.13311854004859924, 0.06643198430538177, -0.030993793159723282, -0.07290690392255783, -0.17329327762126923, -0.020689839497208595, -0.04106297716498375, 0.18254365026950836, -0.21315935254096985, -0.23474529385566711, -0.0032244424801319838, 0.2169019877910614, 0.1514413207769394, 0.12912148237228394, 0.14350657165050507, -0.23770752549171448, 0.12114366143941879, 0.03308800235390663, 0.20970727503299713, -0.2410372644662857, -0.16597726941108704, -0.4729856252670288, 0.09570004045963287, -0.28032705187797546, 0.016618438065052032, 0.22395223379135132, 0.21977311372756958, -0.01977093704044819, 0.20809435844421387, -0.209920272231102, 0.005602877587080002, 0.15066227316856384, -0.03552718833088875, -0.1809920370578766, -0.13296544551849365, -0.2048606276512146, 0.04816809669137001, 0.1590755432844162, 0.08821067214012146, 0.18963931500911713, -0.2607056200504303, -0.059425149112939835, 0.3763276934623718, -0.1586913913488388, 0.2400188446044922, -0.19832368195056915, -0.06403394043445587, 0.24450552463531494, -0.06320840865373611, -0.2345997542142868, 0.0860447883605957, 0.12845371663570404, -0.2547813951969147, 0.25483089685440063, 0.26940006017684937, 0.27638542652130127, -0.11217886954545975, 0.0008601879817433655, -0.36204230785369873, 0.26675522327423096, 0.12865400314331055, 0.12389035522937775, -0.2493777722120285, -0.02546393871307373, -0.17485052347183228, -0.290771484375, -0.01200278103351593, -0.020408717915415764, 0.4027369022369385, 0.5289238691329956, 0.008050489239394665, 0.19744470715522766, -0.18299442529678345, -0.10748740285634995, -0.11614836007356644, -0.16326826810836792, 0.29196733236312866, 0.2032671421766281, 0.16489042341709137, -0.2524135410785675, 0.07306350022554398, 0.05273927003145218, -0.36606162786483765, 0.3333856761455536, -0.08256955444812775, 0.016224684193730354, 0.3827531039714813, 0.1782030463218689, -0.11061663925647736, -0.5106667876243591, 0.20821121335029602, 0.18411709368228912, 0.22969989478588104, -0.34085267782211304, -0.041019510477781296, -0.40213528275489807, -0.25107845664024353, 0.2010984569787979, 0.1929863542318344, 0.29509514570236206, -0.4499577581882477, 0.463283896446228, 0.06124081462621689, -0.0355406291782856, 0.2035234123468399, 0.0742063820362091, 0.1995995193719864, 0.3177929222583771, 0.033163946121931076, 0.1599857360124588, -0.33134230971336365, -0.32601532340049744, 0.1365285962820053, 0.12568053603172302, -0.35175588726997375, 0.13848847150802612, -0.15509910881519318, 0.0841556042432785, -0.1286178082227707, -0.4702930450439453, 0.1724136471748352, -0.2997962236404419, 0.23067469894886017, -0.04335504025220871, 0.3871471881866455, -0.13596799969673157, -0.23295240104198456, 0.19977974891662598, -0.11133228242397308, -0.3288671374320984, 0.2636469304561615, 0.061354007571935654, -0.018843458965420723, -0.25437813997268677, -0.5732647180557251, 0.02822284586727619, 0.10098221153020859, 0.06316018849611282, 0.015578323043882847, 0.17282232642173767, 0.1599409580230713, -0.018845198675990105, 0.05976549908518791, -0.06626415252685547, -0.10290369391441345, -0.45605120062828064, -0.25068390369415283, 0.3610078692436218, -0.16001790761947632, -0.4129457175731659, 0.19527950882911682, 0.32527273893356323, 0.24064259231090546, -0.4255853295326233, -0.7226569652557373, -0.3996663987636566, -0.05733434483408928, 0.4025302529335022, 0.08028600364923477, -0.047013942152261734, -0.024156497791409492, 0.04512065276503563, -0.18878139555454254, -0.012013365514576435, -0.20992687344551086, 0.23589615523815155, -0.2554508149623871, -0.27568575739860535, -0.10281464457511902, 0.5824033617973328, -0.02638869732618332, 0.7829504013061523, 0.045341286808252335, 0.06820650398731232, 0.14116421341896057, -0.3806825280189514, 0.11196186393499374, -0.06529748439788818, -0.06993093341588974, -0.042450979351997375, 0.1974305808544159, 0.09438823163509369, 0.4767213761806488, -0.040609508752822876, 0.1729075014591217, 0.027767445892095566, 0.37169182300567627, -0.46528565883636475, -0.47433120012283325, -0.03912165015935898, -0.09584532678127289, -0.14373672008514404, 0.36467796564102173, 0.14860087633132935, -0.14964254200458527, -0.06711383908987045, 0.05991418659687042, -0.060626816004514694, -0.047052450478076935, -0.2000533789396286, -0.13811862468719482, -0.25719597935676575, -0.47554147243499756, 0.3080444931983948, 0.03546277433633804, 0.3302280902862549, -0.06500265747308731, -0.25118815898895264, 0.2983505129814148, -0.040454212576150894, 0.45699095726013184, -0.15415796637535095, -0.0446941964328289, 0.07025504112243652, -0.18082267045974731, -0.340044766664505, -0.056121718138456345, 0.026758786290884018, 0.2432154417037964, -0.4744824171066284, 0.2828006446361542, -0.36076998710632324, 0.2163812667131424, -0.03493409976363182, -0.04009545221924782, -0.4150170087814331, -0.07890655845403671, -0.2678110599517822, -0.7144472599029541, -0.44457533955574036, -0.3180317282676697, -0.056681204587221146, 0.308605432510376, 0.04472394287586212, 0.09412330389022827, 0.03379010036587715, -0.07131729274988174, 0.08868037164211273, 0.4636150300502777, 0.014944950118660927, 0.031878821551799774, 0.1454627960920334, -0.06501499563455582, -0.4722822308540344, -0.12018197774887085, 0.3385457396507263, 0.10182272642850876, -0.22182834148406982, -0.015767812728881836, -0.20843468606472015, -0.29148435592651367, 0.16194282472133636, -0.21948735415935516, 0.37134450674057007, -0.07479383796453476, -0.010157018899917603, 0.34627947211265564, -0.20315590500831604, 0.3478236198425293, -0.09849628061056137, 0.16502520442008972, -0.05194411799311638, 0.16742347180843353, 0.13800925016403198, -0.14047588407993317, -0.10444114357233047, 0.12465740740299225, -0.13331308960914612, 0.15459342300891876, -0.5639674067497253, 0.719296395778656, -0.4188978374004364, 0.09637577831745148, 0.3571286201477051, -0.1641397625207901, 0.440197616815567, -0.3626704812049866, 0.03699693828821182, -0.19272933900356293, 0.04659314453601837, 0.13863827288150787, 0.2622527480125427, -0.27084919810295105, -0.00016709075134713203, -0.12450090050697327, 0.04651689901947975, -0.017766132950782776, 0.19352148473262787, -0.058936841785907745, 0.18918569386005402, 0.02182561717927456, 0.25937727093696594, -0.1860809624195099, 0.17509642243385315, -0.11521080881357193, 0.0788506492972374, -0.08829721063375473, -0.12720221281051636, 0.2163791060447693, -0.3024445176124573, -0.1795606166124344, -0.16666576266288757, -0.3120967745780945, 0.3657197654247284, -0.022663163021206856, -0.31017228960990906, -0.21664752066135406, 0.22742480039596558, 0.23205862939357758, -0.051993727684020996, -0.19894100725650787, 0.14355148375034332, 0.0629020631313324, 0.11550094187259674, -0.47073936462402344, 0.09041300415992737, -0.12722919881343842, -0.1805879771709442, -0.30577388405799866, 0.2681122124195099, 0.17665669322013855, -0.3560389280319214, -0.2651735544204712, 0.10106499493122101, -0.006130675319582224, -0.04163121059536934, -0.06262058764696121, 0.14180104434490204, -0.16500067710876465, -0.23546335101127625, 0.13383467495441437, 0.02021830528974533, -0.3011024296283722, 0.031689975410699844, 0.09673056751489639, -0.40251243114471436, 0.10720827430486679, 0.2648809850215912, 0.39001187682151794, 0.07880573719739914, 0.6964070200920105, 0.16547362506389618, 0.0032167702447623014, -0.24142268300056458, 0.1425965577363968, -0.041141290217638016, -0.3439798057079315, 0.23623202741146088, 0.1156136691570282, 0.13563959300518036, 0.05433781072497368, 0.505913496017456, -0.04596777260303497, 0.20017403364181519, 0.13691100478172302, -0.04344671964645386, -0.11167048662900925, 0.047391679137945175, 0.06942806392908096, 0.1146906241774559, 0.0885898694396019, 0.25657328963279724, -0.10027114301919937, 0.3090839982032776, -0.3554583787918091, 0.3598213195800781, 0.08083643764257431, -0.0006547251250594854, -0.006935913115739822, 0.03713895380496979, 0.11731071025133133, 0.08997006714344025, 0.19681204855442047, 0.27668049931526184, -0.15596336126327515, -0.305099219083786, 0.1813858598470688, 0.13311392068862915, 0.16751503944396973, -0.007499253377318382, -0.12390439212322235, 0.03925473988056183, 0.09923021495342255, 0.17929910123348236, 0.5687059164047241, -0.07742506265640259, 0.01888766884803772, 0.12012891471385956, 0.13280460238456726, -0.1502673178911209, -0.21271848678588867, -0.001704858965240419, -0.19363373517990112, 0.4365614354610443, 0.2727484405040741, -0.17211708426475525, -0.13486316800117493, -0.12345509976148605, 0.007755153812468052, 0.07148409634828568, 0.3378591239452362, 0.38885557651519775, -0.06408765912055969, -0.4281323254108429, -0.17889085412025452, 0.09249526262283325, 0.07938842475414276, 0.08843006193637848, -0.4712592363357544, -0.2917070984840393, -0.11462806165218353, 0.15697529911994934, -0.1849692314863205, -0.10076501965522766, 0.04501159116625786, -0.19175882637500763, 0.06521067023277283, 0.2260783165693283, 0.01846843771636486, -0.1575983315706253, 0.11765884608030319, 0.13828815519809723, 0.34564822912216187, -0.15315330028533936, 0.22232213616371155, 0.365305095911026, -0.33525794744491577, -0.22965219616889954, -0.016727667301893234, -0.03506658971309662, -0.0944376289844513, 0.2967512011528015, -0.40134498476982117, 0.18434546887874603, 0.015984000638127327, -0.16172151267528534, 0.11613812297582626, -0.39637720584869385, 0.33399200439453125, 0.2505140006542206, -0.26524344086647034, 0.11001977324485779, 0.3548421561717987, 0.23769956827163696, 0.1834532469511032, -0.04102315381169319, -0.18194761872291565, 0.281709760427475, -0.14685451984405518, -0.2541499733924866, 0.0931626483798027, -0.10455911606550217, -0.13759222626686096, -0.027947787195444107, -0.18230412900447845, 0.06335553526878357, 0.03412967920303345, 0.11862363666296005, -0.2934059798717499, -0.3665294349193573, 0.006389076821506023, -0.1467110514640808, 0.16620436310768127, 0.02859196811914444, 0.3581579923629761, 0.2912917733192444, -0.11030421406030655, 0.29975205659866333, 0.38489148020744324, 0.17199864983558655, -0.11422383785247803, -0.2444947212934494, 0.3611331582069397, -0.06752258539199829, 0.01377641037106514, 0.25366777181625366, 0.17155076563358307, -0.02064705640077591, -0.03399427607655525, 0.12053771317005157, 0.14024540781974792, -0.14946246147155762, 0.22276605665683746, 0.5937098264694214, 0.09325604140758514, -0.19528687000274658, -0.15307533740997314, -0.49386414885520935, -0.009684045799076557, -0.12512685358524323, 0.25099238753318787, -0.3283073306083679, -0.10185658186674118, 0.24558140337467194, 0.0061033619567751884, 0.2787249684333801, -0.37046587467193604, 0.158977210521698, -0.02720920369029045, 0.6444871425628662, 0.18968966603279114, -0.09320080280303955, 0.004276750143617392, 0.009528595954179764, -0.70457524061203, 0.44774365425109863, -0.16612762212753296, -0.015462168492376804, -0.238592728972435, 0.27117082476615906, 0.20265312492847443, 0.14382719993591309, 0.16627593338489532, -0.0524480976164341, -0.3972569704055786, 0.049285076558589935, -0.3761984407901764, -0.0014027500292286277, 0.12161478400230408, -0.08097618073225021, -0.05289982259273529, -0.12575095891952515, 0.24778078496456146, -0.24698027968406677, 0.2418087273836136, -0.02921530231833458, -0.12429944425821304, -0.014913476072251797, -0.08802297711372375, 0.2576262354850769, 0.20236606895923615, 0.17246928811073303, 0.01535579189658165, 0.07171997427940369, -0.034656837582588196, -0.2260638177394867, 0.007700472138822079, 0.21016503870487213, 0.4085170030593872, -0.06641235947608948, 0.004219227470457554, 0.0011495548533275723, 0.008470578119158745, 0.02070622891187668, -0.014526592567563057, 0.027574123814702034, -0.08755287528038025, 0.21016861498355865, -0.004262365400791168, -0.08744504302740097, -0.01757434755563736, 0.16291621327400208, -0.013414922170341015, 0.19567406177520752, -0.20806850492954254, -0.5036486983299255, 0.40979793667793274, -0.3439241647720337, -0.1862417757511139, -0.09764938056468964, 0.2144583761692047, -0.2771522104740143, 0.08705819398164749, -0.37391600012779236, 0.4749869406223297, 0.33585667610168457, -0.053383052349090576, -0.23089256882667542, 0.4222758710384369, 0.08357951045036316, -0.2543184161186218, 0.015490441583096981, 0.23929338157176971, 0.20822930335998535, -0.05691306293010712, 0.04201945662498474, -0.12461891770362854 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hi! I can't reproduce this error in Colab, but I'm assuming you are using Amazon SageMaker Studio Notebooks (you mention the `conda_pytorch_p36` kernel), so maybe @philschmid knows more about what might be causing this issue?
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
35
ImportError: cannot import name 'is_valid_waiter_error'
[ 0.13427436351776123, 0.2431005984544754, -0.18149495124816895, -0.009147005155682564, 0.0499025397002697, -0.048521097749471664, 0.3469207286834717, 0.42489272356033325, 0.16880114376544952, 0.20106945931911469, -0.09640754759311676, -0.06478429585695267, -0.1098593920469284, 0.12651947140693665, -0.08016397804021835, -0.05052449554204941, 0.23154468834400177, 0.28156450390815735, 0.22987063229084015, -0.08073361963033676, -0.267294704914093, 0.3406972885131836, -0.15310430526733398, 0.33027175068855286, -0.23834681510925293, -0.025973156094551086, 0.21033091843128204, 0.02607640251517296, -0.4089285731315613, -0.34322813153266907, 0.09475518763065338, -0.06539244204759598, 0.05032355338335037, 0.3888050615787506, -0.00010381435276940465, 0.32045087218284607, 0.25491636991500854, -0.10401742160320282, -0.08372107148170471, -0.1512722223997116, -0.2981725037097931, -0.09183473140001297, 0.17805123329162598, -0.10268854349851608, 0.26802611351013184, 0.048974886536598206, -0.1351691335439682, 0.3524511456489563, 0.4554744362831116, 0.5424438118934631, 0.3650277853012085, -0.09765815734863281, 0.010175874456763268, -0.19327637553215027, 0.1405075043439865, -0.3055281937122345, 0.0716867446899414, -0.04856371507048607, -0.2628781497478485, -0.050609320402145386, 0.1782691925764084, -0.0421772338449955, -0.12906648218631744, -0.04689251258969307, -0.07630251348018646, -0.2605794370174408, 0.2128896266222, -0.18313804268836975, 0.12668780982494354, 0.02634049765765667, 0.13357436656951904, -0.028651708737015724, 0.021804656833410263, 0.22692161798477173, -0.014953934587538242, -0.0695188045501709, 0.33160924911499023, -0.17311833798885345, 0.0005744069931097329, 0.16799364984035492, 0.4282778799533844, -0.11307472735643387, -0.17429976165294647, -0.15214750170707703, -0.14950837194919586, 0.5477660894393921, -0.00891906302422285, -0.13862060010433197, 0.07787542045116425, -0.31824758648872375, 0.13329149782657623, 0.1905387043952942, -0.08707388490438461, 0.03584808483719826, -0.0774555504322052, 0.0640895739197731, 0.5654656887054443, 0.1680997759103775, 0.008025795221328735, 0.30274081230163574, 0.022390270605683327, 0.1044430136680603, 0.06610829383134842, 0.22206759452819824, -0.02248789370059967, 0.3068757653236389, 0.17891235649585724, 0.1515960544347763, 0.12660656869411469, 0.44784921407699585, -0.16046935319900513, 0.1630159169435501, -0.2534984052181244, -0.34240540862083435, -0.03694351390004158, 0.13707415759563446, 0.3243550956249237, -0.13820216059684753, 0.005460246000438929, 0.31394413113594055, -0.03992590680718422, 0.13631293177604675, 0.12473940849304199, 0.41556814312934875, -0.29274335503578186, 0.22852027416229248, 0.08299899101257324, 0.09355854243040085, -0.08656582236289978, -0.10236267745494843, -0.19638599455356598, 0.29303592443466187, -0.06866348534822464, -0.1950978934764862, -0.08691365271806717, -0.2490665167570114, 0.14015789330005646, -0.10234197974205017, 0.19347761571407318, -0.04524310305714607, -0.09310167282819748, -0.12126105278730392, -0.263229638338089, 0.10156716406345367, 0.2510668933391571, -0.24799464643001556, 0.22448031604290009, -0.44825562834739685, -0.09497646242380142, -0.18410995602607727, -0.44334179162979126, -0.41332128643989563, -0.17107035219669342, 0.3739794194698334, 0.0830293744802475, -0.07882645726203918, -0.08240605145692825, -0.37812739610671997, 0.2554239332675934, -0.42620325088500977, -0.3483687937259674, -0.20703884959220886, 0.2612937092781067, -0.19489428400993347, 0.011573223397135735, 0.37425586581230164, -0.07232551276683807, -0.022722477093338966, -0.006637950893491507, -0.2012539952993393, 0.1578121781349182, 0.335415244102478, -0.010598793625831604, 0.331820011138916, -0.07015775144100189, -0.04970460757613182, 0.20752447843551636, -0.11489143967628479, 0.10137425363063812, -0.0525810606777668, 0.08765089511871338, 0.037322938442230225, 0.1832730919122696, -0.48809418082237244, 0.01900438405573368, -0.0744866281747818, 0.11192949116230011, 0.15764334797859192, 0.08403759449720383, -0.16119396686553955, -0.1932012438774109, 0.1249038353562355, 0.07458863407373428, -0.203603595495224, 0.3811030685901642, 0.04996165633201599, -0.10913705080747604, 0.059357963502407074, -0.13610906898975372, 0.009257491677999496, -0.17280223965644836, 0.315007746219635, 0.5280912518501282, 0.4711684584617615, 0.012922534719109535, -0.00758310966193676, 0.3729705810546875, -0.14174824953079224, -0.06793665140867233, 0.29521292448043823, 0.017897112295031548, -0.013655637390911579, -0.35290393233299255, 0.3718436360359192, -0.2617439329624176, 0.3593175411224365, 0.38142678141593933, 0.1251266598701477, 0.17934268712997437, 0.3307558000087738, -0.15141604840755463, 0.4558546543121338, -0.3545933961868286, 0.18467029929161072, -0.061519213020801544, -0.015655020251870155, -0.36878472566604614, -0.011142917908728123, 0.16416968405246735, -0.02798076532781124, 0.20891661942005157, 0.0576389841735363, -0.15529818832874298, 0.07315149903297424, -0.07429546117782593, -0.026086535304784775, -0.15895648300647736, -0.10836617648601532, -0.11479443311691284, 0.10755777359008789, -0.2180681973695755, 0.09479638189077377, 0.17334847152233124, -0.06880508363246918, 0.057574257254600525, 0.3335708677768707, -0.14400537312030792, 0.014008395373821259, 0.05357806012034416, 0.21755912899971008, 0.43327999114990234, 0.15506020188331604, 0.14157211780548096, -0.25998950004577637, 0.3995820879936218, -0.09828335046768188, 0.21611042320728302, -0.249493807554245, -0.008437011390924454, -0.43679264187812805, 0.2181473821401596, 0.14404217898845673, 0.3376466929912567, -0.12527868151664734, 0.28611332178115845, 0.05572867766022682, 0.11881036311388016, 0.22321321070194244, 0.23052270710468292, 0.13436990976333618, -0.3137330412864685, -0.10539466887712479, -0.009513131342828274, -0.22372905910015106, 0.0919061079621315, -0.02006034180521965, 0.01675509475171566, 0.30279669165611267, 0.013948507606983185, -0.12647436559200287, -0.3070772886276245, -0.27725711464881897, -0.19232246279716492, 0.25011059641838074, -0.25292009115219116, -0.02365710586309433, -0.44248685240745544, -0.13134431838989258, -0.04747503995895386, -0.5111545324325562, -0.29481422901153564, -0.3043729066848755, 0.17500995099544525, 0.04184713959693909, -0.1644435077905655, 0.25696897506713867, 0.14771316945552826, 0.022476747632026672, 0.041819117963314056, -0.16724389791488647, -0.05242438614368439, -0.1963299661874771, -0.04018814489245415, 0.21973377466201782, 0.1293632984161377, -0.13890062272548676, 0.09921799600124359, -0.6617501974105835, 0.1000228002667427, -0.03735979646444321, -0.26896965503692627, 0.04385196790099144, -0.17300820350646973, 0.13991162180900574, 0.45897769927978516, 0.002561324741691351, 0.014789227396249771, -0.09401843696832657, 0.13632801175117493, -0.4288448393344879, 0.06800361722707748, 0.2420511394739151, -0.05512974411249161, -0.21741829812526703, 0.07743048667907715, -0.18372175097465515, -0.2750379145145416, -0.24522259831428528, 0.05819142609834671, 0.3497260808944702, 0.2212677001953125, 0.19914939999580383, 0.020031020045280457, 0.21011483669281006, 0.3167109489440918, 0.2631112039089203, 0.007932286709547043, -0.10590247064828873, 0.2687332034111023, -0.43022510409355164, -0.16849301755428314, 0.16720032691955566, -0.030900586396455765, 0.2415831834077835, -0.79803067445755, -0.22060252726078033, -0.17471639811992645, 0.30913954973220825, -0.13312561810016632, 0.13930749893188477, -0.13800287246704102, 0.03602122887969017, 0.07993349432945251, -0.13482649624347687, -0.24896208941936493, -0.2850206792354584, -0.014215079136192799, 0.24940799176692963, 0.03981319069862366, 0.09613413363695145, 0.40937501192092896, -0.22748152911663055, 0.13462434709072113, -0.2872820794582367, 0.27720415592193604, 0.5779025554656982, 0.07218767702579498, 0.14005936682224274, -0.07692419737577438, -0.36980292201042175, -0.3185778260231018, 0.07641114294528961, -0.24251994490623474, 0.03841342404484749, -0.056124527007341385, -0.04916419833898544, -0.280012845993042, -0.1809512823820114, 0.019686046987771988, -0.03558479994535446, -0.08101063966751099, -0.0277454424649477, 0.045597005635499954, 0.10300192981958389, -0.27284562587738037, -0.35894936323165894, -0.09404977411031723, -0.14498674869537354, 0.3634767234325409, -0.15148109197616577, -0.026199454441666603, -0.3202890455722809, 0.0719052329659462, -0.0963403731584549, 0.2110053449869156, -0.08893011510372162, 0.15098391473293304, 0.0021271537989377975, -0.08873438090085983, -0.23958022892475128, -0.07363799959421158, 0.08833670616149902, 0.09716618061065674, -0.05681918188929558, 0.14110741019248962, -0.0459960512816906, 0.20146192610263824, -0.11274700611829758, -0.11091801524162292, -0.13050462305545807, 0.13760089874267578, -0.29748964309692383, 0.011042201891541481, 0.11315760016441345, 0.27917155623435974, -0.18811962008476257, -0.2317993938922882, -0.05085781216621399, -0.5122741460800171, -0.3309183418750763, -0.4000564515590668, 0.08954820781946182, 0.01653902232646942, 0.3725687861442566, 0.3671155571937561, 0.11793702840805054, -0.19318147003650665, -0.14844520390033722, 0.23665639758110046, 0.20341666042804718, 0.10734326392412186, -0.14240777492523193, -0.09305668622255325, -0.4813884198665619, 0.22975164651870728, 0.43749237060546875, 0.45352452993392944, -0.3181818425655365, -0.6091453433036804, -0.09442268311977386, 0.18641892075538635, 0.09841132909059525, 0.05158192291855812, -0.13778996467590332, 0.0884406715631485, -0.15728624165058136, 0.10141000151634216, 0.5946596264839172, 0.08472851663827896, -0.020633986219763756, -0.023109281435608864, -0.3182067275047302, -0.15064071118831635, -0.06591179966926575, 0.04182976111769676, 0.03692680224776268, -0.23415032029151917, 0.052711427211761475, -0.16225379705429077, 0.26331114768981934, 0.055654026567935944, 0.8560823798179626, 0.24852354824543, -0.10835766792297363, 0.22520257532596588, -0.21612904965877533, 0.1796412318944931, -0.3055368959903717, 0.10884172469377518, -0.23629598319530487, -0.01443211454898119, 0.022290484979748726, 0.10078629106283188, 0.1265656054019928, -0.24786725640296936, -0.31768307089805603, 0.4315284192562103, -0.10664591938257217, 0.23798803985118866, 0.0478128120303154, 0.20177918672561646, -0.016143755987286568, -0.16912586987018585, -0.3446483910083771, 0.2968202829360962, 0.06630405783653259, 0.060314543545246124, -0.331866592168808, -0.1380341351032257, 0.1601821482181549, -0.32737380266189575, -0.00039807261782698333, -0.03705447539687157, -0.40693435072898865, 0.3545544147491455, 0.08408459275960922, -0.01731792278587818, -0.332401841878891, 0.14970378577709198, -0.1867518424987793, 0.028910696506500244, 0.09484071284532547, -0.07003937661647797, 0.21238721907138824, -0.30614233016967773, -0.34514036774635315, 0.29269078373908997, 0.35017114877700806, -0.22926916182041168, -0.18576757609844208, 0.07307880371809006, 0.017042992636561394, -0.33680984377861023, -0.11990000307559967, 0.39440083503723145, 0.3938238024711609, -0.20586881041526794, -0.36202356219291687, -0.1144290566444397, -0.044259894639253616, -0.24433888494968414, 0.2999163866043091, 0.0789724737405777, -0.2040570229291916, -0.03476030379533768, 0.2608605623245239, -0.020367909222841263, -0.15377092361450195, 0.10029847174882889, 0.18563495576381683, -0.19236025214195251, 0.17805121839046478, 0.13493332266807556, -0.13430407643318176, -0.30311861634254456, 0.21440446376800537, -0.059930816292762756, -0.32120296359062195, -0.03392687067389488, -0.23280738294124603, -0.31889328360557556, 0.09745180606842041, 0.22564998269081116, 0.4333437979221344, 0.20360679924488068, -0.07405555248260498, -0.23378802835941315, -0.11890548467636108, 0.11665339767932892, 0.1208169236779213, -0.011423109099268913, 0.0014935715589672327, 0.10262718796730042, 0.06126091629266739, 0.08537199348211288, -0.4065127670764923, -0.08715002238750458, -0.4560655355453491, -0.021717697381973267, -0.026616539806127548, 0.08782320469617844, -0.02399575524032116, 0.016574570909142494, 0.2657577395439148, 0.2603611350059509, -0.08292310684919357, -0.3563065230846405, -0.040665410459041595, 0.11364591121673584, 0.04317300021648407, 0.11803130060434341, -0.046128805726766586, 0.24461612105369568, 0.020176267251372337, -0.008903883397579193, -0.20971880853176117, -0.06625369936227798, 0.05640343949198723, -0.0011493435595184565, 0.3204505741596222, -0.10634951293468475, 0.03636648878455162, 0.1406174749135971, 0.19891877472400665, 0.07562799751758575, -0.2758144736289978, -0.017942652106285095, -0.0036241125781089067, -0.09747471660375595, 0.3378947377204895, 0.0978531762957573, -0.04550725221633911, 0.07971997559070587, 0.19059908390045166, -0.22024787962436676, 0.055117957293987274, 0.04623822867870331, -0.06558793783187866, 0.36786341667175293, -0.16270965337753296, 0.1507691591978073, 0.37673646211624146, 0.2593086361885071, -0.2387041449546814, -0.10316239297389984, 0.3866748809814453, 0.02128804661333561, -0.04787011072039604, 0.3337354063987732, -0.08757064491510391, 0.02615087293088436, 0.3420581519603729, 0.3777315318584442, 0.11536624282598495, -0.03274599462747574, 0.1705896258354187, 0.13963201642036438, -0.5129624605178833, 0.1969035565853119, 0.011519735679030418, 0.07319732010364532, 0.07245714962482452, 0.3627040386199951, -0.16610080003738403, 0.0014378606574609876, -0.2383614033460617, -0.11584837734699249, 0.3405700922012329, -0.02910231612622738, -0.0526280514895916, 0.16710254549980164, -0.09361094981431961, 0.1156834065914154, -0.04787139594554901, 0.11036890745162964, -0.3116607069969177, -0.08097027242183685, -0.4649561047554016, 0.15100327134132385, -0.2305615246295929, 0.1442064493894577, 0.046719007194042206, -0.0024394667707383633, -0.2943791449069977, 0.00513139134272933, 0.3594447672367096, 0.18245604634284973, -0.1770545244216919, 0.12121972441673279, -0.08630286157131195, -0.23707923293113708, -0.34996795654296875, 0.0953509733080864, -0.016441885381937027, -0.3462672829627991, 0.1059563159942627, -0.013873747549951077, 0.15720154345035553, -0.19920240342617035, 0.15100891888141632, 0.6109404563903809, 0.31070902943611145, 0.12840452790260315, 0.10555534809827805, -0.20679138600826263, -0.007373393047600985, 0.010557110421359539, 0.2148863971233368, 0.1289047747850418, 0.5278064012527466, 0.16465872526168823, 0.26173821091651917, -0.3291824460029602, 0.1106497123837471, 0.15131966769695282, -0.11617560684680939, -0.12948299944400787, 0.4406333863735199, 0.14620749652385712, -0.03286287933588028, -0.36177191138267517, 0.12501558661460876, -0.5144437551498413, 0.04771740734577179, 0.04181699827313423, 0.15714424848556519, 0.09128966182470322, -0.28430983424186707, 0.14569436013698578, 0.0220835842192173, 0.3593725562095642, 0.1881961077451706, 0.05139641463756561, -0.19096609950065613, -0.2760775089263916, -0.21299433708190918, 0.3313175439834595, -0.10947730392217636, 0.05664447322487831, -0.13064752519130707, -0.26848870515823364, -0.09055968374013901, 0.2786557078361511, 0.04809652268886566, -0.0636926144361496, -0.4429420828819275, -0.17162811756134033, -0.30335167050361633, 0.14656971395015717, 0.2374706268310547, -0.10883349180221558, 0.12478424608707428, -0.1543479561805725, -0.002246049465611577, -0.2651442289352417, 0.2876235842704773, -0.15715321898460388, -0.17890876531600952, 0.11137864738702774, 0.24402041733264923, 0.437905877828598, 0.1997682750225067, 0.4053208827972412, -0.07119004428386688, -0.02361842803657055, 0.1664728969335556, -0.322661817073822, -0.14520308375358582, 0.3809303343296051, 0.12241102010011673, 0.08657468855381012, 0.09555082023143768, -0.36337417364120483, -0.24447640776634216, 0.18487223982810974, 0.1317771077156067, 0.30532318353652954, -0.29958534240722656, -0.14479582011699677, 0.14700669050216675, 0.00724015710875392, 0.039789922535419464, 0.044094156473875046, -0.09283005446195602, 0.12679864466190338, -0.21762768924236298, -0.09862416982650757, 0.26952672004699707, -0.22312474250793457, -0.23734411597251892, -0.030869320034980774, 0.2518351376056671, 0.008904998190701008, -0.4149027168750763, -0.4295787811279297, 0.036214254796504974, 0.056521009653806686, 0.10192934423685074, -0.17373237013816833, 0.2674431800842285, 0.0940239429473877, -0.008200506679713726, 0.05206504836678505, -0.2865540385246277, 0.004301977809518576, -0.27278241515159607, 0.16577956080436707, -0.08693698793649673 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hey @mariosasko. Yes, I am using **Amazon SageMaker Studio Jupyter Labs**. However, I no longer need this notebook; but it would be nice to have this problem solved for others. So don't stress too much if you two can't reproduce error.
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
41
ImportError: cannot import name 'is_valid_waiter_error'
[ 0.13427436351776123, 0.2431005984544754, -0.18149495124816895, -0.009147005155682564, 0.0499025397002697, -0.048521097749471664, 0.3469207286834717, 0.42489272356033325, 0.16880114376544952, 0.20106945931911469, -0.09640754759311676, -0.06478429585695267, -0.1098593920469284, 0.12651947140693665, -0.08016397804021835, -0.05052449554204941, 0.23154468834400177, 0.28156450390815735, 0.22987063229084015, -0.08073361963033676, -0.267294704914093, 0.3406972885131836, -0.15310430526733398, 0.33027175068855286, -0.23834681510925293, -0.025973156094551086, 0.21033091843128204, 0.02607640251517296, -0.4089285731315613, -0.34322813153266907, 0.09475518763065338, -0.06539244204759598, 0.05032355338335037, 0.3888050615787506, -0.00010381435276940465, 0.32045087218284607, 0.25491636991500854, -0.10401742160320282, -0.08372107148170471, -0.1512722223997116, -0.2981725037097931, -0.09183473140001297, 0.17805123329162598, -0.10268854349851608, 0.26802611351013184, 0.048974886536598206, -0.1351691335439682, 0.3524511456489563, 0.4554744362831116, 0.5424438118934631, 0.3650277853012085, -0.09765815734863281, 0.010175874456763268, -0.19327637553215027, 0.1405075043439865, -0.3055281937122345, 0.0716867446899414, -0.04856371507048607, -0.2628781497478485, -0.050609320402145386, 0.1782691925764084, -0.0421772338449955, -0.12906648218631744, -0.04689251258969307, -0.07630251348018646, -0.2605794370174408, 0.2128896266222, -0.18313804268836975, 0.12668780982494354, 0.02634049765765667, 0.13357436656951904, -0.028651708737015724, 0.021804656833410263, 0.22692161798477173, -0.014953934587538242, -0.0695188045501709, 0.33160924911499023, -0.17311833798885345, 0.0005744069931097329, 0.16799364984035492, 0.4282778799533844, -0.11307472735643387, -0.17429976165294647, -0.15214750170707703, -0.14950837194919586, 0.5477660894393921, -0.00891906302422285, -0.13862060010433197, 0.07787542045116425, -0.31824758648872375, 0.13329149782657623, 0.1905387043952942, -0.08707388490438461, 0.03584808483719826, -0.0774555504322052, 0.0640895739197731, 0.5654656887054443, 0.1680997759103775, 0.008025795221328735, 0.30274081230163574, 0.022390270605683327, 0.1044430136680603, 0.06610829383134842, 0.22206759452819824, -0.02248789370059967, 0.3068757653236389, 0.17891235649585724, 0.1515960544347763, 0.12660656869411469, 0.44784921407699585, -0.16046935319900513, 0.1630159169435501, -0.2534984052181244, -0.34240540862083435, -0.03694351390004158, 0.13707415759563446, 0.3243550956249237, -0.13820216059684753, 0.005460246000438929, 0.31394413113594055, -0.03992590680718422, 0.13631293177604675, 0.12473940849304199, 0.41556814312934875, -0.29274335503578186, 0.22852027416229248, 0.08299899101257324, 0.09355854243040085, -0.08656582236289978, -0.10236267745494843, -0.19638599455356598, 0.29303592443466187, -0.06866348534822464, -0.1950978934764862, -0.08691365271806717, -0.2490665167570114, 0.14015789330005646, -0.10234197974205017, 0.19347761571407318, -0.04524310305714607, -0.09310167282819748, -0.12126105278730392, -0.263229638338089, 0.10156716406345367, 0.2510668933391571, -0.24799464643001556, 0.22448031604290009, -0.44825562834739685, -0.09497646242380142, -0.18410995602607727, -0.44334179162979126, -0.41332128643989563, -0.17107035219669342, 0.3739794194698334, 0.0830293744802475, -0.07882645726203918, -0.08240605145692825, -0.37812739610671997, 0.2554239332675934, -0.42620325088500977, -0.3483687937259674, -0.20703884959220886, 0.2612937092781067, -0.19489428400993347, 0.011573223397135735, 0.37425586581230164, -0.07232551276683807, -0.022722477093338966, -0.006637950893491507, -0.2012539952993393, 0.1578121781349182, 0.335415244102478, -0.010598793625831604, 0.331820011138916, -0.07015775144100189, -0.04970460757613182, 0.20752447843551636, -0.11489143967628479, 0.10137425363063812, -0.0525810606777668, 0.08765089511871338, 0.037322938442230225, 0.1832730919122696, -0.48809418082237244, 0.01900438405573368, -0.0744866281747818, 0.11192949116230011, 0.15764334797859192, 0.08403759449720383, -0.16119396686553955, -0.1932012438774109, 0.1249038353562355, 0.07458863407373428, -0.203603595495224, 0.3811030685901642, 0.04996165633201599, -0.10913705080747604, 0.059357963502407074, -0.13610906898975372, 0.009257491677999496, -0.17280223965644836, 0.315007746219635, 0.5280912518501282, 0.4711684584617615, 0.012922534719109535, -0.00758310966193676, 0.3729705810546875, -0.14174824953079224, -0.06793665140867233, 0.29521292448043823, 0.017897112295031548, -0.013655637390911579, -0.35290393233299255, 0.3718436360359192, -0.2617439329624176, 0.3593175411224365, 0.38142678141593933, 0.1251266598701477, 0.17934268712997437, 0.3307558000087738, -0.15141604840755463, 0.4558546543121338, -0.3545933961868286, 0.18467029929161072, -0.061519213020801544, -0.015655020251870155, -0.36878472566604614, -0.011142917908728123, 0.16416968405246735, -0.02798076532781124, 0.20891661942005157, 0.0576389841735363, -0.15529818832874298, 0.07315149903297424, -0.07429546117782593, -0.026086535304784775, -0.15895648300647736, -0.10836617648601532, -0.11479443311691284, 0.10755777359008789, -0.2180681973695755, 0.09479638189077377, 0.17334847152233124, -0.06880508363246918, 0.057574257254600525, 0.3335708677768707, -0.14400537312030792, 0.014008395373821259, 0.05357806012034416, 0.21755912899971008, 0.43327999114990234, 0.15506020188331604, 0.14157211780548096, -0.25998950004577637, 0.3995820879936218, -0.09828335046768188, 0.21611042320728302, -0.249493807554245, -0.008437011390924454, -0.43679264187812805, 0.2181473821401596, 0.14404217898845673, 0.3376466929912567, -0.12527868151664734, 0.28611332178115845, 0.05572867766022682, 0.11881036311388016, 0.22321321070194244, 0.23052270710468292, 0.13436990976333618, -0.3137330412864685, -0.10539466887712479, -0.009513131342828274, -0.22372905910015106, 0.0919061079621315, -0.02006034180521965, 0.01675509475171566, 0.30279669165611267, 0.013948507606983185, -0.12647436559200287, -0.3070772886276245, -0.27725711464881897, -0.19232246279716492, 0.25011059641838074, -0.25292009115219116, -0.02365710586309433, -0.44248685240745544, -0.13134431838989258, -0.04747503995895386, -0.5111545324325562, -0.29481422901153564, -0.3043729066848755, 0.17500995099544525, 0.04184713959693909, -0.1644435077905655, 0.25696897506713867, 0.14771316945552826, 0.022476747632026672, 0.041819117963314056, -0.16724389791488647, -0.05242438614368439, -0.1963299661874771, -0.04018814489245415, 0.21973377466201782, 0.1293632984161377, -0.13890062272548676, 0.09921799600124359, -0.6617501974105835, 0.1000228002667427, -0.03735979646444321, -0.26896965503692627, 0.04385196790099144, -0.17300820350646973, 0.13991162180900574, 0.45897769927978516, 0.002561324741691351, 0.014789227396249771, -0.09401843696832657, 0.13632801175117493, -0.4288448393344879, 0.06800361722707748, 0.2420511394739151, -0.05512974411249161, -0.21741829812526703, 0.07743048667907715, -0.18372175097465515, -0.2750379145145416, -0.24522259831428528, 0.05819142609834671, 0.3497260808944702, 0.2212677001953125, 0.19914939999580383, 0.020031020045280457, 0.21011483669281006, 0.3167109489440918, 0.2631112039089203, 0.007932286709547043, -0.10590247064828873, 0.2687332034111023, -0.43022510409355164, -0.16849301755428314, 0.16720032691955566, -0.030900586396455765, 0.2415831834077835, -0.79803067445755, -0.22060252726078033, -0.17471639811992645, 0.30913954973220825, -0.13312561810016632, 0.13930749893188477, -0.13800287246704102, 0.03602122887969017, 0.07993349432945251, -0.13482649624347687, -0.24896208941936493, -0.2850206792354584, -0.014215079136192799, 0.24940799176692963, 0.03981319069862366, 0.09613413363695145, 0.40937501192092896, -0.22748152911663055, 0.13462434709072113, -0.2872820794582367, 0.27720415592193604, 0.5779025554656982, 0.07218767702579498, 0.14005936682224274, -0.07692419737577438, -0.36980292201042175, -0.3185778260231018, 0.07641114294528961, -0.24251994490623474, 0.03841342404484749, -0.056124527007341385, -0.04916419833898544, -0.280012845993042, -0.1809512823820114, 0.019686046987771988, -0.03558479994535446, -0.08101063966751099, -0.0277454424649477, 0.045597005635499954, 0.10300192981958389, -0.27284562587738037, -0.35894936323165894, -0.09404977411031723, -0.14498674869537354, 0.3634767234325409, -0.15148109197616577, -0.026199454441666603, -0.3202890455722809, 0.0719052329659462, -0.0963403731584549, 0.2110053449869156, -0.08893011510372162, 0.15098391473293304, 0.0021271537989377975, -0.08873438090085983, -0.23958022892475128, -0.07363799959421158, 0.08833670616149902, 0.09716618061065674, -0.05681918188929558, 0.14110741019248962, -0.0459960512816906, 0.20146192610263824, -0.11274700611829758, -0.11091801524162292, -0.13050462305545807, 0.13760089874267578, -0.29748964309692383, 0.011042201891541481, 0.11315760016441345, 0.27917155623435974, -0.18811962008476257, -0.2317993938922882, -0.05085781216621399, -0.5122741460800171, -0.3309183418750763, -0.4000564515590668, 0.08954820781946182, 0.01653902232646942, 0.3725687861442566, 0.3671155571937561, 0.11793702840805054, -0.19318147003650665, -0.14844520390033722, 0.23665639758110046, 0.20341666042804718, 0.10734326392412186, -0.14240777492523193, -0.09305668622255325, -0.4813884198665619, 0.22975164651870728, 0.43749237060546875, 0.45352452993392944, -0.3181818425655365, -0.6091453433036804, -0.09442268311977386, 0.18641892075538635, 0.09841132909059525, 0.05158192291855812, -0.13778996467590332, 0.0884406715631485, -0.15728624165058136, 0.10141000151634216, 0.5946596264839172, 0.08472851663827896, -0.020633986219763756, -0.023109281435608864, -0.3182067275047302, -0.15064071118831635, -0.06591179966926575, 0.04182976111769676, 0.03692680224776268, -0.23415032029151917, 0.052711427211761475, -0.16225379705429077, 0.26331114768981934, 0.055654026567935944, 0.8560823798179626, 0.24852354824543, -0.10835766792297363, 0.22520257532596588, -0.21612904965877533, 0.1796412318944931, -0.3055368959903717, 0.10884172469377518, -0.23629598319530487, -0.01443211454898119, 0.022290484979748726, 0.10078629106283188, 0.1265656054019928, -0.24786725640296936, -0.31768307089805603, 0.4315284192562103, -0.10664591938257217, 0.23798803985118866, 0.0478128120303154, 0.20177918672561646, -0.016143755987286568, -0.16912586987018585, -0.3446483910083771, 0.2968202829360962, 0.06630405783653259, 0.060314543545246124, -0.331866592168808, -0.1380341351032257, 0.1601821482181549, -0.32737380266189575, -0.00039807261782698333, -0.03705447539687157, -0.40693435072898865, 0.3545544147491455, 0.08408459275960922, -0.01731792278587818, -0.332401841878891, 0.14970378577709198, -0.1867518424987793, 0.028910696506500244, 0.09484071284532547, -0.07003937661647797, 0.21238721907138824, -0.30614233016967773, -0.34514036774635315, 0.29269078373908997, 0.35017114877700806, -0.22926916182041168, -0.18576757609844208, 0.07307880371809006, 0.017042992636561394, -0.33680984377861023, -0.11990000307559967, 0.39440083503723145, 0.3938238024711609, -0.20586881041526794, -0.36202356219291687, -0.1144290566444397, -0.044259894639253616, -0.24433888494968414, 0.2999163866043091, 0.0789724737405777, -0.2040570229291916, -0.03476030379533768, 0.2608605623245239, -0.020367909222841263, -0.15377092361450195, 0.10029847174882889, 0.18563495576381683, -0.19236025214195251, 0.17805121839046478, 0.13493332266807556, -0.13430407643318176, -0.30311861634254456, 0.21440446376800537, -0.059930816292762756, -0.32120296359062195, -0.03392687067389488, -0.23280738294124603, -0.31889328360557556, 0.09745180606842041, 0.22564998269081116, 0.4333437979221344, 0.20360679924488068, -0.07405555248260498, -0.23378802835941315, -0.11890548467636108, 0.11665339767932892, 0.1208169236779213, -0.011423109099268913, 0.0014935715589672327, 0.10262718796730042, 0.06126091629266739, 0.08537199348211288, -0.4065127670764923, -0.08715002238750458, -0.4560655355453491, -0.021717697381973267, -0.026616539806127548, 0.08782320469617844, -0.02399575524032116, 0.016574570909142494, 0.2657577395439148, 0.2603611350059509, -0.08292310684919357, -0.3563065230846405, -0.040665410459041595, 0.11364591121673584, 0.04317300021648407, 0.11803130060434341, -0.046128805726766586, 0.24461612105369568, 0.020176267251372337, -0.008903883397579193, -0.20971880853176117, -0.06625369936227798, 0.05640343949198723, -0.0011493435595184565, 0.3204505741596222, -0.10634951293468475, 0.03636648878455162, 0.1406174749135971, 0.19891877472400665, 0.07562799751758575, -0.2758144736289978, -0.017942652106285095, -0.0036241125781089067, -0.09747471660375595, 0.3378947377204895, 0.0978531762957573, -0.04550725221633911, 0.07971997559070587, 0.19059908390045166, -0.22024787962436676, 0.055117957293987274, 0.04623822867870331, -0.06558793783187866, 0.36786341667175293, -0.16270965337753296, 0.1507691591978073, 0.37673646211624146, 0.2593086361885071, -0.2387041449546814, -0.10316239297389984, 0.3866748809814453, 0.02128804661333561, -0.04787011072039604, 0.3337354063987732, -0.08757064491510391, 0.02615087293088436, 0.3420581519603729, 0.3777315318584442, 0.11536624282598495, -0.03274599462747574, 0.1705896258354187, 0.13963201642036438, -0.5129624605178833, 0.1969035565853119, 0.011519735679030418, 0.07319732010364532, 0.07245714962482452, 0.3627040386199951, -0.16610080003738403, 0.0014378606574609876, -0.2383614033460617, -0.11584837734699249, 0.3405700922012329, -0.02910231612622738, -0.0526280514895916, 0.16710254549980164, -0.09361094981431961, 0.1156834065914154, -0.04787139594554901, 0.11036890745162964, -0.3116607069969177, -0.08097027242183685, -0.4649561047554016, 0.15100327134132385, -0.2305615246295929, 0.1442064493894577, 0.046719007194042206, -0.0024394667707383633, -0.2943791449069977, 0.00513139134272933, 0.3594447672367096, 0.18245604634284973, -0.1770545244216919, 0.12121972441673279, -0.08630286157131195, -0.23707923293113708, -0.34996795654296875, 0.0953509733080864, -0.016441885381937027, -0.3462672829627991, 0.1059563159942627, -0.013873747549951077, 0.15720154345035553, -0.19920240342617035, 0.15100891888141632, 0.6109404563903809, 0.31070902943611145, 0.12840452790260315, 0.10555534809827805, -0.20679138600826263, -0.007373393047600985, 0.010557110421359539, 0.2148863971233368, 0.1289047747850418, 0.5278064012527466, 0.16465872526168823, 0.26173821091651917, -0.3291824460029602, 0.1106497123837471, 0.15131966769695282, -0.11617560684680939, -0.12948299944400787, 0.4406333863735199, 0.14620749652385712, -0.03286287933588028, -0.36177191138267517, 0.12501558661460876, -0.5144437551498413, 0.04771740734577179, 0.04181699827313423, 0.15714424848556519, 0.09128966182470322, -0.28430983424186707, 0.14569436013698578, 0.0220835842192173, 0.3593725562095642, 0.1881961077451706, 0.05139641463756561, -0.19096609950065613, -0.2760775089263916, -0.21299433708190918, 0.3313175439834595, -0.10947730392217636, 0.05664447322487831, -0.13064752519130707, -0.26848870515823364, -0.09055968374013901, 0.2786557078361511, 0.04809652268886566, -0.0636926144361496, -0.4429420828819275, -0.17162811756134033, -0.30335167050361633, 0.14656971395015717, 0.2374706268310547, -0.10883349180221558, 0.12478424608707428, -0.1543479561805725, -0.002246049465611577, -0.2651442289352417, 0.2876235842704773, -0.15715321898460388, -0.17890876531600952, 0.11137864738702774, 0.24402041733264923, 0.437905877828598, 0.1997682750225067, 0.4053208827972412, -0.07119004428386688, -0.02361842803657055, 0.1664728969335556, -0.322661817073822, -0.14520308375358582, 0.3809303343296051, 0.12241102010011673, 0.08657468855381012, 0.09555082023143768, -0.36337417364120483, -0.24447640776634216, 0.18487223982810974, 0.1317771077156067, 0.30532318353652954, -0.29958534240722656, -0.14479582011699677, 0.14700669050216675, 0.00724015710875392, 0.039789922535419464, 0.044094156473875046, -0.09283005446195602, 0.12679864466190338, -0.21762768924236298, -0.09862416982650757, 0.26952672004699707, -0.22312474250793457, -0.23734411597251892, -0.030869320034980774, 0.2518351376056671, 0.008904998190701008, -0.4149027168750763, -0.4295787811279297, 0.036214254796504974, 0.056521009653806686, 0.10192934423685074, -0.17373237013816833, 0.2674431800842285, 0.0940239429473877, -0.008200506679713726, 0.05206504836678505, -0.2865540385246277, 0.004301977809518576, -0.27278241515159607, 0.16577956080436707, -0.08693698793649673 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hey @danielbellhv, This issue might be related to Studio probably not having an up to date `botocore` and `boto3` version. I ran into this as well a while back. My workaround was ```python # using older dataset due to incompatibility of sagemaker notebook & aws-cli with > s3fs and fsspec to >= 2021.10 !pip install "datasets==1.13" --upgrade ``` In `datasets` we use the latest `s3fs` and `fsspec` but aws-cli and notebook is not supporting this. You could also update the `aws-cli` and associated packages to get the latest `datasets` version
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
90
ImportError: cannot import name 'is_valid_waiter_error'
[ 0.13427436351776123, 0.2431005984544754, -0.18149495124816895, -0.009147005155682564, 0.0499025397002697, -0.048521097749471664, 0.3469207286834717, 0.42489272356033325, 0.16880114376544952, 0.20106945931911469, -0.09640754759311676, -0.06478429585695267, -0.1098593920469284, 0.12651947140693665, -0.08016397804021835, -0.05052449554204941, 0.23154468834400177, 0.28156450390815735, 0.22987063229084015, -0.08073361963033676, -0.267294704914093, 0.3406972885131836, -0.15310430526733398, 0.33027175068855286, -0.23834681510925293, -0.025973156094551086, 0.21033091843128204, 0.02607640251517296, -0.4089285731315613, -0.34322813153266907, 0.09475518763065338, -0.06539244204759598, 0.05032355338335037, 0.3888050615787506, -0.00010381435276940465, 0.32045087218284607, 0.25491636991500854, -0.10401742160320282, -0.08372107148170471, -0.1512722223997116, -0.2981725037097931, -0.09183473140001297, 0.17805123329162598, -0.10268854349851608, 0.26802611351013184, 0.048974886536598206, -0.1351691335439682, 0.3524511456489563, 0.4554744362831116, 0.5424438118934631, 0.3650277853012085, -0.09765815734863281, 0.010175874456763268, -0.19327637553215027, 0.1405075043439865, -0.3055281937122345, 0.0716867446899414, -0.04856371507048607, -0.2628781497478485, -0.050609320402145386, 0.1782691925764084, -0.0421772338449955, -0.12906648218631744, -0.04689251258969307, -0.07630251348018646, -0.2605794370174408, 0.2128896266222, -0.18313804268836975, 0.12668780982494354, 0.02634049765765667, 0.13357436656951904, -0.028651708737015724, 0.021804656833410263, 0.22692161798477173, -0.014953934587538242, -0.0695188045501709, 0.33160924911499023, -0.17311833798885345, 0.0005744069931097329, 0.16799364984035492, 0.4282778799533844, -0.11307472735643387, -0.17429976165294647, -0.15214750170707703, -0.14950837194919586, 0.5477660894393921, -0.00891906302422285, -0.13862060010433197, 0.07787542045116425, -0.31824758648872375, 0.13329149782657623, 0.1905387043952942, -0.08707388490438461, 0.03584808483719826, -0.0774555504322052, 0.0640895739197731, 0.5654656887054443, 0.1680997759103775, 0.008025795221328735, 0.30274081230163574, 0.022390270605683327, 0.1044430136680603, 0.06610829383134842, 0.22206759452819824, -0.02248789370059967, 0.3068757653236389, 0.17891235649585724, 0.1515960544347763, 0.12660656869411469, 0.44784921407699585, -0.16046935319900513, 0.1630159169435501, -0.2534984052181244, -0.34240540862083435, -0.03694351390004158, 0.13707415759563446, 0.3243550956249237, -0.13820216059684753, 0.005460246000438929, 0.31394413113594055, -0.03992590680718422, 0.13631293177604675, 0.12473940849304199, 0.41556814312934875, -0.29274335503578186, 0.22852027416229248, 0.08299899101257324, 0.09355854243040085, -0.08656582236289978, -0.10236267745494843, -0.19638599455356598, 0.29303592443466187, -0.06866348534822464, -0.1950978934764862, -0.08691365271806717, -0.2490665167570114, 0.14015789330005646, -0.10234197974205017, 0.19347761571407318, -0.04524310305714607, -0.09310167282819748, -0.12126105278730392, -0.263229638338089, 0.10156716406345367, 0.2510668933391571, -0.24799464643001556, 0.22448031604290009, -0.44825562834739685, -0.09497646242380142, -0.18410995602607727, -0.44334179162979126, -0.41332128643989563, -0.17107035219669342, 0.3739794194698334, 0.0830293744802475, -0.07882645726203918, -0.08240605145692825, -0.37812739610671997, 0.2554239332675934, -0.42620325088500977, -0.3483687937259674, -0.20703884959220886, 0.2612937092781067, -0.19489428400993347, 0.011573223397135735, 0.37425586581230164, -0.07232551276683807, -0.022722477093338966, -0.006637950893491507, -0.2012539952993393, 0.1578121781349182, 0.335415244102478, -0.010598793625831604, 0.331820011138916, -0.07015775144100189, -0.04970460757613182, 0.20752447843551636, -0.11489143967628479, 0.10137425363063812, -0.0525810606777668, 0.08765089511871338, 0.037322938442230225, 0.1832730919122696, -0.48809418082237244, 0.01900438405573368, -0.0744866281747818, 0.11192949116230011, 0.15764334797859192, 0.08403759449720383, -0.16119396686553955, -0.1932012438774109, 0.1249038353562355, 0.07458863407373428, -0.203603595495224, 0.3811030685901642, 0.04996165633201599, -0.10913705080747604, 0.059357963502407074, -0.13610906898975372, 0.009257491677999496, -0.17280223965644836, 0.315007746219635, 0.5280912518501282, 0.4711684584617615, 0.012922534719109535, -0.00758310966193676, 0.3729705810546875, -0.14174824953079224, -0.06793665140867233, 0.29521292448043823, 0.017897112295031548, -0.013655637390911579, -0.35290393233299255, 0.3718436360359192, -0.2617439329624176, 0.3593175411224365, 0.38142678141593933, 0.1251266598701477, 0.17934268712997437, 0.3307558000087738, -0.15141604840755463, 0.4558546543121338, -0.3545933961868286, 0.18467029929161072, -0.061519213020801544, -0.015655020251870155, -0.36878472566604614, -0.011142917908728123, 0.16416968405246735, -0.02798076532781124, 0.20891661942005157, 0.0576389841735363, -0.15529818832874298, 0.07315149903297424, -0.07429546117782593, -0.026086535304784775, -0.15895648300647736, -0.10836617648601532, -0.11479443311691284, 0.10755777359008789, -0.2180681973695755, 0.09479638189077377, 0.17334847152233124, -0.06880508363246918, 0.057574257254600525, 0.3335708677768707, -0.14400537312030792, 0.014008395373821259, 0.05357806012034416, 0.21755912899971008, 0.43327999114990234, 0.15506020188331604, 0.14157211780548096, -0.25998950004577637, 0.3995820879936218, -0.09828335046768188, 0.21611042320728302, -0.249493807554245, -0.008437011390924454, -0.43679264187812805, 0.2181473821401596, 0.14404217898845673, 0.3376466929912567, -0.12527868151664734, 0.28611332178115845, 0.05572867766022682, 0.11881036311388016, 0.22321321070194244, 0.23052270710468292, 0.13436990976333618, -0.3137330412864685, -0.10539466887712479, -0.009513131342828274, -0.22372905910015106, 0.0919061079621315, -0.02006034180521965, 0.01675509475171566, 0.30279669165611267, 0.013948507606983185, -0.12647436559200287, -0.3070772886276245, -0.27725711464881897, -0.19232246279716492, 0.25011059641838074, -0.25292009115219116, -0.02365710586309433, -0.44248685240745544, -0.13134431838989258, -0.04747503995895386, -0.5111545324325562, -0.29481422901153564, -0.3043729066848755, 0.17500995099544525, 0.04184713959693909, -0.1644435077905655, 0.25696897506713867, 0.14771316945552826, 0.022476747632026672, 0.041819117963314056, -0.16724389791488647, -0.05242438614368439, -0.1963299661874771, -0.04018814489245415, 0.21973377466201782, 0.1293632984161377, -0.13890062272548676, 0.09921799600124359, -0.6617501974105835, 0.1000228002667427, -0.03735979646444321, -0.26896965503692627, 0.04385196790099144, -0.17300820350646973, 0.13991162180900574, 0.45897769927978516, 0.002561324741691351, 0.014789227396249771, -0.09401843696832657, 0.13632801175117493, -0.4288448393344879, 0.06800361722707748, 0.2420511394739151, -0.05512974411249161, -0.21741829812526703, 0.07743048667907715, -0.18372175097465515, -0.2750379145145416, -0.24522259831428528, 0.05819142609834671, 0.3497260808944702, 0.2212677001953125, 0.19914939999580383, 0.020031020045280457, 0.21011483669281006, 0.3167109489440918, 0.2631112039089203, 0.007932286709547043, -0.10590247064828873, 0.2687332034111023, -0.43022510409355164, -0.16849301755428314, 0.16720032691955566, -0.030900586396455765, 0.2415831834077835, -0.79803067445755, -0.22060252726078033, -0.17471639811992645, 0.30913954973220825, -0.13312561810016632, 0.13930749893188477, -0.13800287246704102, 0.03602122887969017, 0.07993349432945251, -0.13482649624347687, -0.24896208941936493, -0.2850206792354584, -0.014215079136192799, 0.24940799176692963, 0.03981319069862366, 0.09613413363695145, 0.40937501192092896, -0.22748152911663055, 0.13462434709072113, -0.2872820794582367, 0.27720415592193604, 0.5779025554656982, 0.07218767702579498, 0.14005936682224274, -0.07692419737577438, -0.36980292201042175, -0.3185778260231018, 0.07641114294528961, -0.24251994490623474, 0.03841342404484749, -0.056124527007341385, -0.04916419833898544, -0.280012845993042, -0.1809512823820114, 0.019686046987771988, -0.03558479994535446, -0.08101063966751099, -0.0277454424649477, 0.045597005635499954, 0.10300192981958389, -0.27284562587738037, -0.35894936323165894, -0.09404977411031723, -0.14498674869537354, 0.3634767234325409, -0.15148109197616577, -0.026199454441666603, -0.3202890455722809, 0.0719052329659462, -0.0963403731584549, 0.2110053449869156, -0.08893011510372162, 0.15098391473293304, 0.0021271537989377975, -0.08873438090085983, -0.23958022892475128, -0.07363799959421158, 0.08833670616149902, 0.09716618061065674, -0.05681918188929558, 0.14110741019248962, -0.0459960512816906, 0.20146192610263824, -0.11274700611829758, -0.11091801524162292, -0.13050462305545807, 0.13760089874267578, -0.29748964309692383, 0.011042201891541481, 0.11315760016441345, 0.27917155623435974, -0.18811962008476257, -0.2317993938922882, -0.05085781216621399, -0.5122741460800171, -0.3309183418750763, -0.4000564515590668, 0.08954820781946182, 0.01653902232646942, 0.3725687861442566, 0.3671155571937561, 0.11793702840805054, -0.19318147003650665, -0.14844520390033722, 0.23665639758110046, 0.20341666042804718, 0.10734326392412186, -0.14240777492523193, -0.09305668622255325, -0.4813884198665619, 0.22975164651870728, 0.43749237060546875, 0.45352452993392944, -0.3181818425655365, -0.6091453433036804, -0.09442268311977386, 0.18641892075538635, 0.09841132909059525, 0.05158192291855812, -0.13778996467590332, 0.0884406715631485, -0.15728624165058136, 0.10141000151634216, 0.5946596264839172, 0.08472851663827896, -0.020633986219763756, -0.023109281435608864, -0.3182067275047302, -0.15064071118831635, -0.06591179966926575, 0.04182976111769676, 0.03692680224776268, -0.23415032029151917, 0.052711427211761475, -0.16225379705429077, 0.26331114768981934, 0.055654026567935944, 0.8560823798179626, 0.24852354824543, -0.10835766792297363, 0.22520257532596588, -0.21612904965877533, 0.1796412318944931, -0.3055368959903717, 0.10884172469377518, -0.23629598319530487, -0.01443211454898119, 0.022290484979748726, 0.10078629106283188, 0.1265656054019928, -0.24786725640296936, -0.31768307089805603, 0.4315284192562103, -0.10664591938257217, 0.23798803985118866, 0.0478128120303154, 0.20177918672561646, -0.016143755987286568, -0.16912586987018585, -0.3446483910083771, 0.2968202829360962, 0.06630405783653259, 0.060314543545246124, -0.331866592168808, -0.1380341351032257, 0.1601821482181549, -0.32737380266189575, -0.00039807261782698333, -0.03705447539687157, -0.40693435072898865, 0.3545544147491455, 0.08408459275960922, -0.01731792278587818, -0.332401841878891, 0.14970378577709198, -0.1867518424987793, 0.028910696506500244, 0.09484071284532547, -0.07003937661647797, 0.21238721907138824, -0.30614233016967773, -0.34514036774635315, 0.29269078373908997, 0.35017114877700806, -0.22926916182041168, -0.18576757609844208, 0.07307880371809006, 0.017042992636561394, -0.33680984377861023, -0.11990000307559967, 0.39440083503723145, 0.3938238024711609, -0.20586881041526794, -0.36202356219291687, -0.1144290566444397, -0.044259894639253616, -0.24433888494968414, 0.2999163866043091, 0.0789724737405777, -0.2040570229291916, -0.03476030379533768, 0.2608605623245239, -0.020367909222841263, -0.15377092361450195, 0.10029847174882889, 0.18563495576381683, -0.19236025214195251, 0.17805121839046478, 0.13493332266807556, -0.13430407643318176, -0.30311861634254456, 0.21440446376800537, -0.059930816292762756, -0.32120296359062195, -0.03392687067389488, -0.23280738294124603, -0.31889328360557556, 0.09745180606842041, 0.22564998269081116, 0.4333437979221344, 0.20360679924488068, -0.07405555248260498, -0.23378802835941315, -0.11890548467636108, 0.11665339767932892, 0.1208169236779213, -0.011423109099268913, 0.0014935715589672327, 0.10262718796730042, 0.06126091629266739, 0.08537199348211288, -0.4065127670764923, -0.08715002238750458, -0.4560655355453491, -0.021717697381973267, -0.026616539806127548, 0.08782320469617844, -0.02399575524032116, 0.016574570909142494, 0.2657577395439148, 0.2603611350059509, -0.08292310684919357, -0.3563065230846405, -0.040665410459041595, 0.11364591121673584, 0.04317300021648407, 0.11803130060434341, -0.046128805726766586, 0.24461612105369568, 0.020176267251372337, -0.008903883397579193, -0.20971880853176117, -0.06625369936227798, 0.05640343949198723, -0.0011493435595184565, 0.3204505741596222, -0.10634951293468475, 0.03636648878455162, 0.1406174749135971, 0.19891877472400665, 0.07562799751758575, -0.2758144736289978, -0.017942652106285095, -0.0036241125781089067, -0.09747471660375595, 0.3378947377204895, 0.0978531762957573, -0.04550725221633911, 0.07971997559070587, 0.19059908390045166, -0.22024787962436676, 0.055117957293987274, 0.04623822867870331, -0.06558793783187866, 0.36786341667175293, -0.16270965337753296, 0.1507691591978073, 0.37673646211624146, 0.2593086361885071, -0.2387041449546814, -0.10316239297389984, 0.3866748809814453, 0.02128804661333561, -0.04787011072039604, 0.3337354063987732, -0.08757064491510391, 0.02615087293088436, 0.3420581519603729, 0.3777315318584442, 0.11536624282598495, -0.03274599462747574, 0.1705896258354187, 0.13963201642036438, -0.5129624605178833, 0.1969035565853119, 0.011519735679030418, 0.07319732010364532, 0.07245714962482452, 0.3627040386199951, -0.16610080003738403, 0.0014378606574609876, -0.2383614033460617, -0.11584837734699249, 0.3405700922012329, -0.02910231612622738, -0.0526280514895916, 0.16710254549980164, -0.09361094981431961, 0.1156834065914154, -0.04787139594554901, 0.11036890745162964, -0.3116607069969177, -0.08097027242183685, -0.4649561047554016, 0.15100327134132385, -0.2305615246295929, 0.1442064493894577, 0.046719007194042206, -0.0024394667707383633, -0.2943791449069977, 0.00513139134272933, 0.3594447672367096, 0.18245604634284973, -0.1770545244216919, 0.12121972441673279, -0.08630286157131195, -0.23707923293113708, -0.34996795654296875, 0.0953509733080864, -0.016441885381937027, -0.3462672829627991, 0.1059563159942627, -0.013873747549951077, 0.15720154345035553, -0.19920240342617035, 0.15100891888141632, 0.6109404563903809, 0.31070902943611145, 0.12840452790260315, 0.10555534809827805, -0.20679138600826263, -0.007373393047600985, 0.010557110421359539, 0.2148863971233368, 0.1289047747850418, 0.5278064012527466, 0.16465872526168823, 0.26173821091651917, -0.3291824460029602, 0.1106497123837471, 0.15131966769695282, -0.11617560684680939, -0.12948299944400787, 0.4406333863735199, 0.14620749652385712, -0.03286287933588028, -0.36177191138267517, 0.12501558661460876, -0.5144437551498413, 0.04771740734577179, 0.04181699827313423, 0.15714424848556519, 0.09128966182470322, -0.28430983424186707, 0.14569436013698578, 0.0220835842192173, 0.3593725562095642, 0.1881961077451706, 0.05139641463756561, -0.19096609950065613, -0.2760775089263916, -0.21299433708190918, 0.3313175439834595, -0.10947730392217636, 0.05664447322487831, -0.13064752519130707, -0.26848870515823364, -0.09055968374013901, 0.2786557078361511, 0.04809652268886566, -0.0636926144361496, -0.4429420828819275, -0.17162811756134033, -0.30335167050361633, 0.14656971395015717, 0.2374706268310547, -0.10883349180221558, 0.12478424608707428, -0.1543479561805725, -0.002246049465611577, -0.2651442289352417, 0.2876235842704773, -0.15715321898460388, -0.17890876531600952, 0.11137864738702774, 0.24402041733264923, 0.437905877828598, 0.1997682750225067, 0.4053208827972412, -0.07119004428386688, -0.02361842803657055, 0.1664728969335556, -0.322661817073822, -0.14520308375358582, 0.3809303343296051, 0.12241102010011673, 0.08657468855381012, 0.09555082023143768, -0.36337417364120483, -0.24447640776634216, 0.18487223982810974, 0.1317771077156067, 0.30532318353652954, -0.29958534240722656, -0.14479582011699677, 0.14700669050216675, 0.00724015710875392, 0.039789922535419464, 0.044094156473875046, -0.09283005446195602, 0.12679864466190338, -0.21762768924236298, -0.09862416982650757, 0.26952672004699707, -0.22312474250793457, -0.23734411597251892, -0.030869320034980774, 0.2518351376056671, 0.008904998190701008, -0.4149027168750763, -0.4295787811279297, 0.036214254796504974, 0.056521009653806686, 0.10192934423685074, -0.17373237013816833, 0.2674431800842285, 0.0940239429473877, -0.008200506679713726, 0.05206504836678505, -0.2865540385246277, 0.004301977809518576, -0.27278241515159607, 0.16577956080436707, -0.08693698793649673 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
This error also propagates to jax and is even trickier to fix, since `.with_format(type='jax')` will use numpy conversion internally (and fail). For a three line failure: ```python dataset = datasets.load_dataset("mnist") dataset.set_format("jax") X_train = dataset["train"]["image"] ```
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
35
set_format("np") no longer works for Image data
[ -0.28223156929016113, 0.1736767739057541, -0.10758186131715775, -0.16000236570835114, 0.31333693861961365, -0.3490404784679413, 0.5831000208854675, 0.33720165491104126, -0.13014450669288635, 0.1149890124797821, 0.04405122622847557, 0.15766067802906036, -0.038970157504081726, 0.18630294501781464, -0.2221892923116684, -0.04256385564804077, -0.010641702450811863, 0.4326583445072174, 0.3176306486129761, 0.09588069468736649, -0.18652908504009247, 0.1672610491514206, -0.13963375985622406, -0.11496855318546295, -0.47435420751571655, -0.11223161965608597, 0.18412324786186218, 0.1370191127061844, -0.21103286743164062, -0.2490246444940567, -0.11620394140481949, -0.013241138309240341, -0.06826957315206528, 0.0664440393447876, -0.00011241222819080576, 0.04265013337135315, 0.2582325339317322, -0.13343068957328796, -0.2801167964935303, 0.28148841857910156, -0.03980157896876335, -0.5089677572250366, -0.12970970571041107, -0.24010434746742249, -0.07439398765563965, -0.44058847427368164, 0.263957142829895, -0.05130898579955101, 0.06763920187950134, 0.21264369785785675, 0.30901965498924255, 0.18613359332084656, 0.31570592522621155, -0.018826546147465706, -0.2858965992927551, 0.39308372139930725, -0.1005367562174797, 0.12755107879638672, -0.07376625388860703, -0.03210694342851639, 0.3212526738643646, 0.3728327453136444, -0.10415932536125183, 0.04003428667783737, -0.03174569830298424, 0.1138976514339447, 0.1534969061613083, 0.16226188838481903, 0.10202878713607788, 0.06955604255199432, 0.2618013024330139, 0.10982894897460938, -0.06884504854679108, -0.07539812475442886, -0.11943688243627548, -0.3908695578575134, 0.019416024908423424, 0.21818381547927856, -0.16078759729862213, 0.10099571943283081, -0.2590065598487854, 0.08956712484359741, -0.07336962968111038, 0.3828563392162323, -0.13965296745300293, 0.04613833874464035, -0.1423264890909195, 0.00910675898194313, 0.07951389998197556, 0.09196440875530243, -0.005263907369226217, 0.1927500069141388, -0.037934694439172745, -0.34402137994766235, 0.3584367036819458, 0.08466771990060806, 0.13422580063343048, 0.07276926189661026, -0.16422587633132935, 0.11448752135038376, 0.26480400562286377, 0.23961558938026428, -0.2117118090391159, 0.07588090002536774, -0.15723945200443268, 0.025977011770009995, 0.1433265507221222, -0.1526176631450653, 0.3082827627658844, 0.05701011046767235, 0.23353591561317444, -0.1324957311153412, 0.3271535038948059, -0.4529924690723419, 0.0960727334022522, -0.2432795763015747, 0.48256462812423706, 0.08376911282539368, -0.14441359043121338, -0.08176414668560028, 0.24995744228363037, 0.0008883557165972888, -0.20230714976787567, 0.030430130660533905, 0.3777957260608673, 0.20647023618221283, 0.22335603833198547, 0.204900860786438, -0.2490171641111374, -0.1203826293349266, -0.15670350193977356, -0.07858694344758987, -0.13812308013439178, -0.182108074426651, 0.1827850490808487, 0.09494361281394958, 0.052115581929683685, -0.045025259256362915, -0.2365064024925232, 0.049934256821870804, -0.0923713892698288, -0.27588602900505066, 0.6888956427574158, 0.15973958373069763, -0.15156289935112, 0.028840288519859314, 0.0789261981844902, -0.2872909903526306, -0.025175489485263824, 0.09731034189462662, -0.4136350452899933, 0.21823526918888092, -0.3963649570941925, 0.1493283063173294, 0.10225163400173187, 0.01963910087943077, 0.343076229095459, 0.022747289389371872, 0.252828985452652, -0.4248473644256592, 0.35013580322265625, -0.2908661961555481, -0.32641884684562683, -0.08469349145889282, -0.07778546214103699, 0.2962445318698883, -0.3395160436630249, 0.040173232555389404, 0.2030903697013855, 0.02025764249265194, 0.2164762318134308, 0.2782514691352844, 0.2621532082557678, -0.14912737905979156, -0.21793115139007568, -0.03154749050736427, 0.1280706524848938, -0.1704748421907425, -0.30272340774536133, -0.0974440798163414, 0.13444897532463074, -0.11537274718284607, 0.028040679171681404, 0.138197124004364, -0.18992206454277039, 0.13095057010650635, -0.14363619685173035, 0.32606369256973267, 0.20649144053459167, 0.024166874587535858, -0.06590621918439865, -0.010376108810305595, 0.041043151170015335, 0.05006999894976616, -0.005269053392112255, 0.0874500721693039, -0.05511605367064476, 0.07032988965511322, 0.11593762040138245, -0.2082039713859558, -0.0014328222023323178, -0.07543747872114182, 0.30194199085235596, -0.3248519003391266, -0.03585292398929596, 0.08744239062070847, 0.05727529898285866, -0.13784395158290863, 0.011293389834463596, 0.15767274796962738, -0.39707475900650024, 0.14720675349235535, -0.11162959039211273, -0.28207170963287354, -0.22412264347076416, -0.22546738386154175, 0.24431802332401276, 0.33814167976379395, -0.18343763053417206, 0.22850219905376434, 0.18968860805034637, 0.13204842805862427, 0.07686834782361984, 0.007670359220355749, 0.014820504933595657, 0.10112018138170242, 0.0028824524488300085, -0.3820531368255615, -0.3518984019756317, 0.15515904128551483, -0.04081131890416145, -0.013292288407683372, -0.08464611321687698, 0.5941844582557678, 0.1752394288778305, -0.07768118381500244, -0.5055999755859375, -0.2806383967399597, 0.16239230334758759, -0.4008994996547699, -0.002480802359059453, 0.341083824634552, -0.027353430166840553, 0.28937873244285583, -0.595786988735199, 0.31106144189834595, -0.040659766644239426, -0.23582302033901215, -0.08282485604286194, 0.07227697223424911, 0.1522851139307022, -0.028280625119805336, -0.12076982110738754, -0.5539987683296204, -0.07775336503982544, 0.1770036220550537, -0.06268735229969025, -0.055962663143873215, -0.18588653206825256, -0.060596007853746414, 0.4967377781867981, 0.2837049663066864, 0.33576586842536926, -0.04275979474186897, 0.16360460221767426, -0.11698540300130844, 0.1863064169883728, 0.004388704895973206, 0.13288135826587677, 0.18150396645069122, -0.13348710536956787, 0.025636745616793633, -0.16014224290847778, -0.3736507296562195, 0.19356802105903625, -0.017080752179026604, 0.2837338447570801, 0.11127961426973343, 0.5282368063926697, -0.2315589189529419, -0.4502209722995758, -0.021549805998802185, -0.2596072852611542, -0.012365986593067646, -0.13634154200553894, 0.2183253914117813, -0.5775551795959473, -0.3131532371044159, 0.014329977333545685, 0.33643144369125366, -0.11430998891592026, -0.036313705146312714, 0.055307723581790924, -0.30486395955085754, 0.0031385915353894234, 0.12068277597427368, -0.027666263282299042, 0.23176951706409454, 0.23767732083797455, -0.06397426873445511, -0.1861628293991089, 0.04660617560148239, 0.09692675620317459, 0.04865829646587372, -0.029935941100120544, -0.17490510642528534, 0.257325679063797, -0.2850957214832306, -0.029526740312576294, -0.07062268257141113, -0.3866453468799591, 0.19367234408855438, 0.3067982494831085, 0.01945348083972931, 0.22975671291351318, 0.25856879353523254, -0.0812658965587616, 0.26343393325805664, 0.2903987467288971, -0.2758895456790924, 0.10578926652669907, 0.22007296979427338, -0.2294691801071167, 0.09515903145074844, -0.5082582235336304, 0.21960510313510895, -0.2381020039319992, -0.13983701169490814, 0.21285398304462433, 0.4210539162158966, 0.09656151384115219, 0.7781988382339478, 0.43724995851516724, -0.3013869822025299, 0.008627003990113735, 0.18282802402973175, -0.23045428097248077, 0.17606152594089508, 0.2676517069339752, -0.2643216550350189, -0.11148585379123688, -0.31573283672332764, 0.3031390905380249, -0.08681340515613556, 0.35462409257888794, -0.06198085844516754, -0.5813374519348145, 0.013110782951116562, 0.009771560318768024, 0.20059245824813843, -0.033191971480846405, 0.12338276207447052, 0.010204381309449673, -0.21556083858013153, -0.15161599218845367, 0.1525679975748062, -0.09837184846401215, -0.03862392157316208, 0.12890037894248962, 0.1500411182641983, 0.2172168344259262, 0.29429757595062256, -0.47673168778419495, -0.2782130837440491, -0.31597399711608887, 0.515724241733551, -0.23380617797374725, 0.9627293944358826, -0.3043825328350067, 0.08474215865135193, 0.19237586855888367, 0.32926303148269653, 0.23262935876846313, -0.12491537630558014, -0.05583955720067024, -0.002220981987193227, -0.07764967530965805, 0.25515231490135193, -0.2294878363609314, 0.0072470721788704395, -0.07343131303787231, 0.4834502041339874, 0.4514569640159607, 0.007658441085368395, 0.5214501023292542, -0.07389441132545471, -0.3920721709728241, -0.20313476026058197, 0.12404855340719223, 0.08445687592029572, -0.09188149869441986, -0.32942473888397217, -0.06801848113536835, -0.10010873526334763, 0.36959630250930786, -0.11545421928167343, 0.6975075602531433, -0.2624960243701935, -0.19866102933883667, -0.01366699580103159, -0.09939589351415634, 0.44896256923675537, -0.11837756633758545, -0.0640660971403122, -0.01016397587954998, 0.14991579949855804, -0.420687735080719, -0.1658346951007843, 0.04618833586573601, 0.015898877754807472, 0.07619774341583252, 0.64027339220047, -0.029340878129005432, -0.05968204885721207, 0.23736944794654846, -0.09094420820474625, -0.1296442747116089, 0.10207663476467133, -0.24062412977218628, -0.342875212430954, -0.2910521328449249, 0.01989194005727768, -0.08784523606300354, 0.20492911338806152, 0.13471877574920654, 0.10737677663564682, -0.15685854852199554, -0.09770005196332932, -0.1402651071548462, -0.10586286336183548, 0.4259519577026367, 0.17345952987670898, -0.41849127411842346, 0.04042526334524155, 0.12894050776958466, 0.21933987736701965, 0.05402885749936104, -0.2825247347354889, 0.3395118713378906, 0.2928980588912964, -0.16669952869415283, 0.025824733078479767, 0.5930709838867188, -0.046458568423986435, -0.27342912554740906, 0.01926245167851448, 0.16066069900989532, -0.18789520859718323, 0.05617382004857063, 0.22204209864139557, -0.3772507309913635, -0.08446139097213745, -0.06166796013712883, 0.22114650905132294, 0.17208470404148102, 0.36054396629333496, -0.24709944427013397, -0.20136521756649017, -0.07723881304264069, 0.25630277395248413, 0.19639798998832703, 0.487505167722702, 0.004365055356174707, 0.39988240599632263, 0.2481805831193924, -0.4016965329647064, 0.5061345100402832, -0.05102729797363281, 0.1235983818769455, -0.14487069845199585, -0.15141746401786804, -0.09770339727401733, -0.07851944863796234, 0.16386619210243225, 0.1135639026761055, 0.11596450954675674, 0.04271325096487999, 0.06639271974563599, 0.04918507859110832, 0.10737044364213943, -0.10179970413446426, -0.2554313540458679, -0.14487671852111816, -0.24347816407680511, 0.1558769941329956, -0.2487509548664093, -0.16070663928985596, -0.0031369621865451336, -0.026333117857575417, -0.003193649696186185, -0.047469642013311386, 0.11677585542201996, 0.026593420654535294, -0.03251558542251587, 0.10853809863328934, 0.17513743042945862, -0.7846264243125916, -0.5339345932006836, 0.04486424848437309, 0.14936411380767822, 0.18183965981006622, -0.17632043361663818, 0.37102141976356506, 0.11693507432937622, 0.16253286600112915, -0.13892073929309845, 0.04181592911481857, 0.39342471957206726, 0.02778870239853859, 0.3050699532032013, -0.24087920784950256, 0.05076870322227478, -0.01910814642906189, -0.1703280657529831, -0.0806257501244545, -0.27621808648109436, 0.11992572993040085, -0.386644572019577, -0.37160825729370117, 0.09139929711818695, -0.21921896934509277, 0.15991459786891937, -0.02950466424226761, 0.3397623598575592, 0.22516444325447083, 0.04607764258980751, -0.20864000916481018, -0.07765840739011765, 0.3450564444065094, -0.031718190759420395, -0.11187902837991714, 0.25776174664497375, 0.1363789290189743, -0.10669905692338943, -0.1898643970489502, 0.0802907645702362, -0.06150258332490921, -0.47506728768348694, 0.31677693128585815, 0.04006239026784897, 0.09625393152236938, 0.04852205887436867, -0.13587737083435059, -0.2946849763393402, 0.0925225019454956, -0.10034183412790298, -0.09616199880838394, -0.15255789458751678, 0.07691828161478043, 0.017454879358410835, 0.3732792139053345, 0.3466125428676605, 0.1745230257511139, 0.053372155874967575, -0.19505560398101807, -0.3158634305000305, 0.06889453530311584, 0.20504628121852875, 0.020301563665270805, -0.12012678384780884, 0.06918363273143768, -0.17074432969093323, -0.15770591795444489, 0.19363559782505035, 0.32361191511154175, -0.09879223257303238, -0.26854318380355835, -0.24808762967586517, 0.17171801626682281, 0.17835386097431183, -0.289815217256546, 0.21360518038272858, -0.26253780722618103, -0.3767368197441101, -0.14712536334991455, -0.24768228828907013, 0.03424233943223953, -0.35054147243499756, 0.19400253891944885, -0.18451279401779175, -0.1130773276090622, 0.6710556745529175, -0.2457658350467682, -0.19390630722045898, 0.3355000913143158, 0.09590601176023483, 0.3316504657268524, -0.15704108774662018, 0.15752534568309784, -0.2548552453517914, 0.14371953904628754, -0.09717278927564621, 0.014769765548408031, 0.13882699608802795, -0.2619468569755554, -0.1716315895318985, -0.40236976742744446, 0.3706912398338318, -0.034455422312021255, -0.36935561895370483, -0.17005053162574768, -0.03481247276067734, 0.17399685084819794, -0.1652229130268097, -0.001094200648367405, 0.11057741194963455, 0.2008327692747116, 0.0958457738161087, 0.10241884738206863, 0.478929728269577, -0.1828767955303192, -0.34005317091941833, 0.2112489491701126, 0.0743551179766655, -0.5071598887443542, -0.18997956812381744, 0.4764738082885742, 0.01311833318322897, 0.151798278093338, 0.32384100556373596, -0.18628047406673431, 0.14765681326389313, 0.5194670557975769, 0.3341561257839203, 0.2834590673446655, 0.38992956280708313, 0.0770711600780487, -0.3478122651576996, -0.08799444139003754, -0.09547272324562073, 0.013491922058165073, 0.020354073494672775, 0.4329175353050232, 0.2453722059726715, 0.227822408080101, -0.18835864961147308, -0.06139019876718521, -0.006467390339821577, 0.23894767463207245, -0.21256791055202484, -0.1544656902551651, -0.4422273635864258, -0.1733841449022293, -0.19824273884296417, 0.21729876101016998, -0.22203713655471802, 0.22886358201503754, -0.11387985199689865, 0.1740560382604599, -0.197922945022583, -0.0679391622543335, -0.06128765642642975, -0.2507786750793457, 0.23257429897785187, -0.28176212310791016, -0.015986992046236992, 0.04666838049888611, 0.009051920846104622, 0.19580352306365967, 0.4219561517238617, 0.5598331093788147, 0.11589983105659485, 0.17686232924461365, -0.33349183201789856, -0.10703906416893005, -0.12254291027784348, -0.22646041214466095, 0.04424428567290306, 0.6745648384094238, -0.0748567208647728, 0.051714107394218445, 0.2384636402130127, -0.14576545357704163, 0.036174967885017395, 0.19413895905017853, -0.03175169229507446, -0.05265118181705475, 0.026926135644316673, -0.10539025068283081, -0.3074876368045807, -0.033312682062387466, -0.1992829293012619, -0.18794572353363037, -0.007479109801352024, 0.18169188499450684, 0.35093599557876587, 0.10398945212364197, -0.032412875443696976, 0.06361285597085953, 0.12581196427345276, 0.25257349014282227, -0.0006350083858706057, -0.002947004046291113, 0.23291641473770142, -0.37444034218788147, -0.3560791015625, 0.13597330451011658, -0.10127424448728561, -0.11257688701152802, -0.0053609032183885574, -0.04414312541484833, 0.2780114710330963, -0.21391074359416962, 0.31901076436042786, 0.018466299399733543, 0.3287188708782196, 0.10595715045928955, -0.18115027248859406, 0.14668259024620056, 0.24258626997470856, 0.08843356370925903, -0.14072133600711823, -0.4550468623638153, 0.17009378969669342, -0.17132039368152618, 0.22366969287395477, -0.22870826721191406, -0.045850347727537155, -0.2987441122531891, 0.3847297430038452, 0.38931429386138916, 0.23732151091098785, -0.03721281513571739, -0.24923893809318542, -0.1636108011007309, -0.33745089173316956, 0.010340995155274868, 0.013012130744755268, 0.40001046657562256, 0.06803911179304123, 0.5454338788986206, 0.002912050113081932, -0.13359305262565613, -0.09637681394815445, 0.5443846583366394, -0.20149065554141998, 0.25365129113197327, 0.006497216410934925, 0.1916169673204422, -0.22381994128227234, -0.35720252990722656, 0.11856074631214142, -0.026965713128447533, -0.0586417019367218, -0.029019508510828018, -0.4093037247657776, -0.3921065926551819, 0.07436137646436691, 0.19401206076145172, -0.3438657224178314, -0.06406208127737045, -0.1048259362578392, -0.19322730600833893, 0.31177446246147156, 0.11741751432418823, 0.03212829306721687, 0.11319436132907867, -0.06559590250253677, -0.5004473328590393, 0.37446483969688416, -0.17581671476364136, -0.04446754977107048, 0.055076174437999725, 0.2791668176651001, 0.3082863390445709, -0.331104040145874, -0.4742952883243561, -0.00541394017636776 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Hi! We've recently introduced a new Image feature that yields PIL Images (and caches transforms on them) instead of arrays. However, this feature requires a custom transform to yield np arrays directly: ```python ddict = datasets.load_dataset("mnist") def pil_image_to_array(batch): return {"image": [np.array(img) for img in batch["image"]]} # or jnp.array(img) for Jax ddict.set_transform(pil_image_to_array, columns="image", output_all_columns=True) ``` [Docs](https://huggingface.co/docs/datasets/master/process.html#format-transform) on `set_transform`. Also, the approach proposed by @cgarciae is not the best because it loads the entire column in memory. @albertvillanova @lhoestq WDYT? The Audio and the Image feature currently don't support the TF/Jax/PT Formatters, but for the Numpy Formatter maybe it makes more sense to return np arrays (and not a dict in the case of the Audio feature or a PIL Image object in the case of the Image feature).
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
127
set_format("np") no longer works for Image data
[ -0.28223156929016113, 0.1736767739057541, -0.10758186131715775, -0.16000236570835114, 0.31333693861961365, -0.3490404784679413, 0.5831000208854675, 0.33720165491104126, -0.13014450669288635, 0.1149890124797821, 0.04405122622847557, 0.15766067802906036, -0.038970157504081726, 0.18630294501781464, -0.2221892923116684, -0.04256385564804077, -0.010641702450811863, 0.4326583445072174, 0.3176306486129761, 0.09588069468736649, -0.18652908504009247, 0.1672610491514206, -0.13963375985622406, -0.11496855318546295, -0.47435420751571655, -0.11223161965608597, 0.18412324786186218, 0.1370191127061844, -0.21103286743164062, -0.2490246444940567, -0.11620394140481949, -0.013241138309240341, -0.06826957315206528, 0.0664440393447876, -0.00011241222819080576, 0.04265013337135315, 0.2582325339317322, -0.13343068957328796, -0.2801167964935303, 0.28148841857910156, -0.03980157896876335, -0.5089677572250366, -0.12970970571041107, -0.24010434746742249, -0.07439398765563965, -0.44058847427368164, 0.263957142829895, -0.05130898579955101, 0.06763920187950134, 0.21264369785785675, 0.30901965498924255, 0.18613359332084656, 0.31570592522621155, -0.018826546147465706, -0.2858965992927551, 0.39308372139930725, -0.1005367562174797, 0.12755107879638672, -0.07376625388860703, -0.03210694342851639, 0.3212526738643646, 0.3728327453136444, -0.10415932536125183, 0.04003428667783737, -0.03174569830298424, 0.1138976514339447, 0.1534969061613083, 0.16226188838481903, 0.10202878713607788, 0.06955604255199432, 0.2618013024330139, 0.10982894897460938, -0.06884504854679108, -0.07539812475442886, -0.11943688243627548, -0.3908695578575134, 0.019416024908423424, 0.21818381547927856, -0.16078759729862213, 0.10099571943283081, -0.2590065598487854, 0.08956712484359741, -0.07336962968111038, 0.3828563392162323, -0.13965296745300293, 0.04613833874464035, -0.1423264890909195, 0.00910675898194313, 0.07951389998197556, 0.09196440875530243, -0.005263907369226217, 0.1927500069141388, -0.037934694439172745, -0.34402137994766235, 0.3584367036819458, 0.08466771990060806, 0.13422580063343048, 0.07276926189661026, -0.16422587633132935, 0.11448752135038376, 0.26480400562286377, 0.23961558938026428, -0.2117118090391159, 0.07588090002536774, -0.15723945200443268, 0.025977011770009995, 0.1433265507221222, -0.1526176631450653, 0.3082827627658844, 0.05701011046767235, 0.23353591561317444, -0.1324957311153412, 0.3271535038948059, -0.4529924690723419, 0.0960727334022522, -0.2432795763015747, 0.48256462812423706, 0.08376911282539368, -0.14441359043121338, -0.08176414668560028, 0.24995744228363037, 0.0008883557165972888, -0.20230714976787567, 0.030430130660533905, 0.3777957260608673, 0.20647023618221283, 0.22335603833198547, 0.204900860786438, -0.2490171641111374, -0.1203826293349266, -0.15670350193977356, -0.07858694344758987, -0.13812308013439178, -0.182108074426651, 0.1827850490808487, 0.09494361281394958, 0.052115581929683685, -0.045025259256362915, -0.2365064024925232, 0.049934256821870804, -0.0923713892698288, -0.27588602900505066, 0.6888956427574158, 0.15973958373069763, -0.15156289935112, 0.028840288519859314, 0.0789261981844902, -0.2872909903526306, -0.025175489485263824, 0.09731034189462662, -0.4136350452899933, 0.21823526918888092, -0.3963649570941925, 0.1493283063173294, 0.10225163400173187, 0.01963910087943077, 0.343076229095459, 0.022747289389371872, 0.252828985452652, -0.4248473644256592, 0.35013580322265625, -0.2908661961555481, -0.32641884684562683, -0.08469349145889282, -0.07778546214103699, 0.2962445318698883, -0.3395160436630249, 0.040173232555389404, 0.2030903697013855, 0.02025764249265194, 0.2164762318134308, 0.2782514691352844, 0.2621532082557678, -0.14912737905979156, -0.21793115139007568, -0.03154749050736427, 0.1280706524848938, -0.1704748421907425, -0.30272340774536133, -0.0974440798163414, 0.13444897532463074, -0.11537274718284607, 0.028040679171681404, 0.138197124004364, -0.18992206454277039, 0.13095057010650635, -0.14363619685173035, 0.32606369256973267, 0.20649144053459167, 0.024166874587535858, -0.06590621918439865, -0.010376108810305595, 0.041043151170015335, 0.05006999894976616, -0.005269053392112255, 0.0874500721693039, -0.05511605367064476, 0.07032988965511322, 0.11593762040138245, -0.2082039713859558, -0.0014328222023323178, -0.07543747872114182, 0.30194199085235596, -0.3248519003391266, -0.03585292398929596, 0.08744239062070847, 0.05727529898285866, -0.13784395158290863, 0.011293389834463596, 0.15767274796962738, -0.39707475900650024, 0.14720675349235535, -0.11162959039211273, -0.28207170963287354, -0.22412264347076416, -0.22546738386154175, 0.24431802332401276, 0.33814167976379395, -0.18343763053417206, 0.22850219905376434, 0.18968860805034637, 0.13204842805862427, 0.07686834782361984, 0.007670359220355749, 0.014820504933595657, 0.10112018138170242, 0.0028824524488300085, -0.3820531368255615, -0.3518984019756317, 0.15515904128551483, -0.04081131890416145, -0.013292288407683372, -0.08464611321687698, 0.5941844582557678, 0.1752394288778305, -0.07768118381500244, -0.5055999755859375, -0.2806383967399597, 0.16239230334758759, -0.4008994996547699, -0.002480802359059453, 0.341083824634552, -0.027353430166840553, 0.28937873244285583, -0.595786988735199, 0.31106144189834595, -0.040659766644239426, -0.23582302033901215, -0.08282485604286194, 0.07227697223424911, 0.1522851139307022, -0.028280625119805336, -0.12076982110738754, -0.5539987683296204, -0.07775336503982544, 0.1770036220550537, -0.06268735229969025, -0.055962663143873215, -0.18588653206825256, -0.060596007853746414, 0.4967377781867981, 0.2837049663066864, 0.33576586842536926, -0.04275979474186897, 0.16360460221767426, -0.11698540300130844, 0.1863064169883728, 0.004388704895973206, 0.13288135826587677, 0.18150396645069122, -0.13348710536956787, 0.025636745616793633, -0.16014224290847778, -0.3736507296562195, 0.19356802105903625, -0.017080752179026604, 0.2837338447570801, 0.11127961426973343, 0.5282368063926697, -0.2315589189529419, -0.4502209722995758, -0.021549805998802185, -0.2596072852611542, -0.012365986593067646, -0.13634154200553894, 0.2183253914117813, -0.5775551795959473, -0.3131532371044159, 0.014329977333545685, 0.33643144369125366, -0.11430998891592026, -0.036313705146312714, 0.055307723581790924, -0.30486395955085754, 0.0031385915353894234, 0.12068277597427368, -0.027666263282299042, 0.23176951706409454, 0.23767732083797455, -0.06397426873445511, -0.1861628293991089, 0.04660617560148239, 0.09692675620317459, 0.04865829646587372, -0.029935941100120544, -0.17490510642528534, 0.257325679063797, -0.2850957214832306, -0.029526740312576294, -0.07062268257141113, -0.3866453468799591, 0.19367234408855438, 0.3067982494831085, 0.01945348083972931, 0.22975671291351318, 0.25856879353523254, -0.0812658965587616, 0.26343393325805664, 0.2903987467288971, -0.2758895456790924, 0.10578926652669907, 0.22007296979427338, -0.2294691801071167, 0.09515903145074844, -0.5082582235336304, 0.21960510313510895, -0.2381020039319992, -0.13983701169490814, 0.21285398304462433, 0.4210539162158966, 0.09656151384115219, 0.7781988382339478, 0.43724995851516724, -0.3013869822025299, 0.008627003990113735, 0.18282802402973175, -0.23045428097248077, 0.17606152594089508, 0.2676517069339752, -0.2643216550350189, -0.11148585379123688, -0.31573283672332764, 0.3031390905380249, -0.08681340515613556, 0.35462409257888794, -0.06198085844516754, -0.5813374519348145, 0.013110782951116562, 0.009771560318768024, 0.20059245824813843, -0.033191971480846405, 0.12338276207447052, 0.010204381309449673, -0.21556083858013153, -0.15161599218845367, 0.1525679975748062, -0.09837184846401215, -0.03862392157316208, 0.12890037894248962, 0.1500411182641983, 0.2172168344259262, 0.29429757595062256, -0.47673168778419495, -0.2782130837440491, -0.31597399711608887, 0.515724241733551, -0.23380617797374725, 0.9627293944358826, -0.3043825328350067, 0.08474215865135193, 0.19237586855888367, 0.32926303148269653, 0.23262935876846313, -0.12491537630558014, -0.05583955720067024, -0.002220981987193227, -0.07764967530965805, 0.25515231490135193, -0.2294878363609314, 0.0072470721788704395, -0.07343131303787231, 0.4834502041339874, 0.4514569640159607, 0.007658441085368395, 0.5214501023292542, -0.07389441132545471, -0.3920721709728241, -0.20313476026058197, 0.12404855340719223, 0.08445687592029572, -0.09188149869441986, -0.32942473888397217, -0.06801848113536835, -0.10010873526334763, 0.36959630250930786, -0.11545421928167343, 0.6975075602531433, -0.2624960243701935, -0.19866102933883667, -0.01366699580103159, -0.09939589351415634, 0.44896256923675537, -0.11837756633758545, -0.0640660971403122, -0.01016397587954998, 0.14991579949855804, -0.420687735080719, -0.1658346951007843, 0.04618833586573601, 0.015898877754807472, 0.07619774341583252, 0.64027339220047, -0.029340878129005432, -0.05968204885721207, 0.23736944794654846, -0.09094420820474625, -0.1296442747116089, 0.10207663476467133, -0.24062412977218628, -0.342875212430954, -0.2910521328449249, 0.01989194005727768, -0.08784523606300354, 0.20492911338806152, 0.13471877574920654, 0.10737677663564682, -0.15685854852199554, -0.09770005196332932, -0.1402651071548462, -0.10586286336183548, 0.4259519577026367, 0.17345952987670898, -0.41849127411842346, 0.04042526334524155, 0.12894050776958466, 0.21933987736701965, 0.05402885749936104, -0.2825247347354889, 0.3395118713378906, 0.2928980588912964, -0.16669952869415283, 0.025824733078479767, 0.5930709838867188, -0.046458568423986435, -0.27342912554740906, 0.01926245167851448, 0.16066069900989532, -0.18789520859718323, 0.05617382004857063, 0.22204209864139557, -0.3772507309913635, -0.08446139097213745, -0.06166796013712883, 0.22114650905132294, 0.17208470404148102, 0.36054396629333496, -0.24709944427013397, -0.20136521756649017, -0.07723881304264069, 0.25630277395248413, 0.19639798998832703, 0.487505167722702, 0.004365055356174707, 0.39988240599632263, 0.2481805831193924, -0.4016965329647064, 0.5061345100402832, -0.05102729797363281, 0.1235983818769455, -0.14487069845199585, -0.15141746401786804, -0.09770339727401733, -0.07851944863796234, 0.16386619210243225, 0.1135639026761055, 0.11596450954675674, 0.04271325096487999, 0.06639271974563599, 0.04918507859110832, 0.10737044364213943, -0.10179970413446426, -0.2554313540458679, -0.14487671852111816, -0.24347816407680511, 0.1558769941329956, -0.2487509548664093, -0.16070663928985596, -0.0031369621865451336, -0.026333117857575417, -0.003193649696186185, -0.047469642013311386, 0.11677585542201996, 0.026593420654535294, -0.03251558542251587, 0.10853809863328934, 0.17513743042945862, -0.7846264243125916, -0.5339345932006836, 0.04486424848437309, 0.14936411380767822, 0.18183965981006622, -0.17632043361663818, 0.37102141976356506, 0.11693507432937622, 0.16253286600112915, -0.13892073929309845, 0.04181592911481857, 0.39342471957206726, 0.02778870239853859, 0.3050699532032013, -0.24087920784950256, 0.05076870322227478, -0.01910814642906189, -0.1703280657529831, -0.0806257501244545, -0.27621808648109436, 0.11992572993040085, -0.386644572019577, -0.37160825729370117, 0.09139929711818695, -0.21921896934509277, 0.15991459786891937, -0.02950466424226761, 0.3397623598575592, 0.22516444325447083, 0.04607764258980751, -0.20864000916481018, -0.07765840739011765, 0.3450564444065094, -0.031718190759420395, -0.11187902837991714, 0.25776174664497375, 0.1363789290189743, -0.10669905692338943, -0.1898643970489502, 0.0802907645702362, -0.06150258332490921, -0.47506728768348694, 0.31677693128585815, 0.04006239026784897, 0.09625393152236938, 0.04852205887436867, -0.13587737083435059, -0.2946849763393402, 0.0925225019454956, -0.10034183412790298, -0.09616199880838394, -0.15255789458751678, 0.07691828161478043, 0.017454879358410835, 0.3732792139053345, 0.3466125428676605, 0.1745230257511139, 0.053372155874967575, -0.19505560398101807, -0.3158634305000305, 0.06889453530311584, 0.20504628121852875, 0.020301563665270805, -0.12012678384780884, 0.06918363273143768, -0.17074432969093323, -0.15770591795444489, 0.19363559782505035, 0.32361191511154175, -0.09879223257303238, -0.26854318380355835, -0.24808762967586517, 0.17171801626682281, 0.17835386097431183, -0.289815217256546, 0.21360518038272858, -0.26253780722618103, -0.3767368197441101, -0.14712536334991455, -0.24768228828907013, 0.03424233943223953, -0.35054147243499756, 0.19400253891944885, -0.18451279401779175, -0.1130773276090622, 0.6710556745529175, -0.2457658350467682, -0.19390630722045898, 0.3355000913143158, 0.09590601176023483, 0.3316504657268524, -0.15704108774662018, 0.15752534568309784, -0.2548552453517914, 0.14371953904628754, -0.09717278927564621, 0.014769765548408031, 0.13882699608802795, -0.2619468569755554, -0.1716315895318985, -0.40236976742744446, 0.3706912398338318, -0.034455422312021255, -0.36935561895370483, -0.17005053162574768, -0.03481247276067734, 0.17399685084819794, -0.1652229130268097, -0.001094200648367405, 0.11057741194963455, 0.2008327692747116, 0.0958457738161087, 0.10241884738206863, 0.478929728269577, -0.1828767955303192, -0.34005317091941833, 0.2112489491701126, 0.0743551179766655, -0.5071598887443542, -0.18997956812381744, 0.4764738082885742, 0.01311833318322897, 0.151798278093338, 0.32384100556373596, -0.18628047406673431, 0.14765681326389313, 0.5194670557975769, 0.3341561257839203, 0.2834590673446655, 0.38992956280708313, 0.0770711600780487, -0.3478122651576996, -0.08799444139003754, -0.09547272324562073, 0.013491922058165073, 0.020354073494672775, 0.4329175353050232, 0.2453722059726715, 0.227822408080101, -0.18835864961147308, -0.06139019876718521, -0.006467390339821577, 0.23894767463207245, -0.21256791055202484, -0.1544656902551651, -0.4422273635864258, -0.1733841449022293, -0.19824273884296417, 0.21729876101016998, -0.22203713655471802, 0.22886358201503754, -0.11387985199689865, 0.1740560382604599, -0.197922945022583, -0.0679391622543335, -0.06128765642642975, -0.2507786750793457, 0.23257429897785187, -0.28176212310791016, -0.015986992046236992, 0.04666838049888611, 0.009051920846104622, 0.19580352306365967, 0.4219561517238617, 0.5598331093788147, 0.11589983105659485, 0.17686232924461365, -0.33349183201789856, -0.10703906416893005, -0.12254291027784348, -0.22646041214466095, 0.04424428567290306, 0.6745648384094238, -0.0748567208647728, 0.051714107394218445, 0.2384636402130127, -0.14576545357704163, 0.036174967885017395, 0.19413895905017853, -0.03175169229507446, -0.05265118181705475, 0.026926135644316673, -0.10539025068283081, -0.3074876368045807, -0.033312682062387466, -0.1992829293012619, -0.18794572353363037, -0.007479109801352024, 0.18169188499450684, 0.35093599557876587, 0.10398945212364197, -0.032412875443696976, 0.06361285597085953, 0.12581196427345276, 0.25257349014282227, -0.0006350083858706057, -0.002947004046291113, 0.23291641473770142, -0.37444034218788147, -0.3560791015625, 0.13597330451011658, -0.10127424448728561, -0.11257688701152802, -0.0053609032183885574, -0.04414312541484833, 0.2780114710330963, -0.21391074359416962, 0.31901076436042786, 0.018466299399733543, 0.3287188708782196, 0.10595715045928955, -0.18115027248859406, 0.14668259024620056, 0.24258626997470856, 0.08843356370925903, -0.14072133600711823, -0.4550468623638153, 0.17009378969669342, -0.17132039368152618, 0.22366969287395477, -0.22870826721191406, -0.045850347727537155, -0.2987441122531891, 0.3847297430038452, 0.38931429386138916, 0.23732151091098785, -0.03721281513571739, -0.24923893809318542, -0.1636108011007309, -0.33745089173316956, 0.010340995155274868, 0.013012130744755268, 0.40001046657562256, 0.06803911179304123, 0.5454338788986206, 0.002912050113081932, -0.13359305262565613, -0.09637681394815445, 0.5443846583366394, -0.20149065554141998, 0.25365129113197327, 0.006497216410934925, 0.1916169673204422, -0.22381994128227234, -0.35720252990722656, 0.11856074631214142, -0.026965713128447533, -0.0586417019367218, -0.029019508510828018, -0.4093037247657776, -0.3921065926551819, 0.07436137646436691, 0.19401206076145172, -0.3438657224178314, -0.06406208127737045, -0.1048259362578392, -0.19322730600833893, 0.31177446246147156, 0.11741751432418823, 0.03212829306721687, 0.11319436132907867, -0.06559590250253677, -0.5004473328590393, 0.37446483969688416, -0.17581671476364136, -0.04446754977107048, 0.055076174437999725, 0.2791668176651001, 0.3082863390445709, -0.331104040145874, -0.4742952883243561, -0.00541394017636776 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Yes I agree it should return arrays and not a PIL image (and possible an array instead of a dict for audio data). I'm currently finishing some code refactoring of the image and audio and opening a PR today. Maybe we can look into that after the refactoring
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
48
set_format("np") no longer works for Image data
[ -0.28223156929016113, 0.1736767739057541, -0.10758186131715775, -0.16000236570835114, 0.31333693861961365, -0.3490404784679413, 0.5831000208854675, 0.33720165491104126, -0.13014450669288635, 0.1149890124797821, 0.04405122622847557, 0.15766067802906036, -0.038970157504081726, 0.18630294501781464, -0.2221892923116684, -0.04256385564804077, -0.010641702450811863, 0.4326583445072174, 0.3176306486129761, 0.09588069468736649, -0.18652908504009247, 0.1672610491514206, -0.13963375985622406, -0.11496855318546295, -0.47435420751571655, -0.11223161965608597, 0.18412324786186218, 0.1370191127061844, -0.21103286743164062, -0.2490246444940567, -0.11620394140481949, -0.013241138309240341, -0.06826957315206528, 0.0664440393447876, -0.00011241222819080576, 0.04265013337135315, 0.2582325339317322, -0.13343068957328796, -0.2801167964935303, 0.28148841857910156, -0.03980157896876335, -0.5089677572250366, -0.12970970571041107, -0.24010434746742249, -0.07439398765563965, -0.44058847427368164, 0.263957142829895, -0.05130898579955101, 0.06763920187950134, 0.21264369785785675, 0.30901965498924255, 0.18613359332084656, 0.31570592522621155, -0.018826546147465706, -0.2858965992927551, 0.39308372139930725, -0.1005367562174797, 0.12755107879638672, -0.07376625388860703, -0.03210694342851639, 0.3212526738643646, 0.3728327453136444, -0.10415932536125183, 0.04003428667783737, -0.03174569830298424, 0.1138976514339447, 0.1534969061613083, 0.16226188838481903, 0.10202878713607788, 0.06955604255199432, 0.2618013024330139, 0.10982894897460938, -0.06884504854679108, -0.07539812475442886, -0.11943688243627548, -0.3908695578575134, 0.019416024908423424, 0.21818381547927856, -0.16078759729862213, 0.10099571943283081, -0.2590065598487854, 0.08956712484359741, -0.07336962968111038, 0.3828563392162323, -0.13965296745300293, 0.04613833874464035, -0.1423264890909195, 0.00910675898194313, 0.07951389998197556, 0.09196440875530243, -0.005263907369226217, 0.1927500069141388, -0.037934694439172745, -0.34402137994766235, 0.3584367036819458, 0.08466771990060806, 0.13422580063343048, 0.07276926189661026, -0.16422587633132935, 0.11448752135038376, 0.26480400562286377, 0.23961558938026428, -0.2117118090391159, 0.07588090002536774, -0.15723945200443268, 0.025977011770009995, 0.1433265507221222, -0.1526176631450653, 0.3082827627658844, 0.05701011046767235, 0.23353591561317444, -0.1324957311153412, 0.3271535038948059, -0.4529924690723419, 0.0960727334022522, -0.2432795763015747, 0.48256462812423706, 0.08376911282539368, -0.14441359043121338, -0.08176414668560028, 0.24995744228363037, 0.0008883557165972888, -0.20230714976787567, 0.030430130660533905, 0.3777957260608673, 0.20647023618221283, 0.22335603833198547, 0.204900860786438, -0.2490171641111374, -0.1203826293349266, -0.15670350193977356, -0.07858694344758987, -0.13812308013439178, -0.182108074426651, 0.1827850490808487, 0.09494361281394958, 0.052115581929683685, -0.045025259256362915, -0.2365064024925232, 0.049934256821870804, -0.0923713892698288, -0.27588602900505066, 0.6888956427574158, 0.15973958373069763, -0.15156289935112, 0.028840288519859314, 0.0789261981844902, -0.2872909903526306, -0.025175489485263824, 0.09731034189462662, -0.4136350452899933, 0.21823526918888092, -0.3963649570941925, 0.1493283063173294, 0.10225163400173187, 0.01963910087943077, 0.343076229095459, 0.022747289389371872, 0.252828985452652, -0.4248473644256592, 0.35013580322265625, -0.2908661961555481, -0.32641884684562683, -0.08469349145889282, -0.07778546214103699, 0.2962445318698883, -0.3395160436630249, 0.040173232555389404, 0.2030903697013855, 0.02025764249265194, 0.2164762318134308, 0.2782514691352844, 0.2621532082557678, -0.14912737905979156, -0.21793115139007568, -0.03154749050736427, 0.1280706524848938, -0.1704748421907425, -0.30272340774536133, -0.0974440798163414, 0.13444897532463074, -0.11537274718284607, 0.028040679171681404, 0.138197124004364, -0.18992206454277039, 0.13095057010650635, -0.14363619685173035, 0.32606369256973267, 0.20649144053459167, 0.024166874587535858, -0.06590621918439865, -0.010376108810305595, 0.041043151170015335, 0.05006999894976616, -0.005269053392112255, 0.0874500721693039, -0.05511605367064476, 0.07032988965511322, 0.11593762040138245, -0.2082039713859558, -0.0014328222023323178, -0.07543747872114182, 0.30194199085235596, -0.3248519003391266, -0.03585292398929596, 0.08744239062070847, 0.05727529898285866, -0.13784395158290863, 0.011293389834463596, 0.15767274796962738, -0.39707475900650024, 0.14720675349235535, -0.11162959039211273, -0.28207170963287354, -0.22412264347076416, -0.22546738386154175, 0.24431802332401276, 0.33814167976379395, -0.18343763053417206, 0.22850219905376434, 0.18968860805034637, 0.13204842805862427, 0.07686834782361984, 0.007670359220355749, 0.014820504933595657, 0.10112018138170242, 0.0028824524488300085, -0.3820531368255615, -0.3518984019756317, 0.15515904128551483, -0.04081131890416145, -0.013292288407683372, -0.08464611321687698, 0.5941844582557678, 0.1752394288778305, -0.07768118381500244, -0.5055999755859375, -0.2806383967399597, 0.16239230334758759, -0.4008994996547699, -0.002480802359059453, 0.341083824634552, -0.027353430166840553, 0.28937873244285583, -0.595786988735199, 0.31106144189834595, -0.040659766644239426, -0.23582302033901215, -0.08282485604286194, 0.07227697223424911, 0.1522851139307022, -0.028280625119805336, -0.12076982110738754, -0.5539987683296204, -0.07775336503982544, 0.1770036220550537, -0.06268735229969025, -0.055962663143873215, -0.18588653206825256, -0.060596007853746414, 0.4967377781867981, 0.2837049663066864, 0.33576586842536926, -0.04275979474186897, 0.16360460221767426, -0.11698540300130844, 0.1863064169883728, 0.004388704895973206, 0.13288135826587677, 0.18150396645069122, -0.13348710536956787, 0.025636745616793633, -0.16014224290847778, -0.3736507296562195, 0.19356802105903625, -0.017080752179026604, 0.2837338447570801, 0.11127961426973343, 0.5282368063926697, -0.2315589189529419, -0.4502209722995758, -0.021549805998802185, -0.2596072852611542, -0.012365986593067646, -0.13634154200553894, 0.2183253914117813, -0.5775551795959473, -0.3131532371044159, 0.014329977333545685, 0.33643144369125366, -0.11430998891592026, -0.036313705146312714, 0.055307723581790924, -0.30486395955085754, 0.0031385915353894234, 0.12068277597427368, -0.027666263282299042, 0.23176951706409454, 0.23767732083797455, -0.06397426873445511, -0.1861628293991089, 0.04660617560148239, 0.09692675620317459, 0.04865829646587372, -0.029935941100120544, -0.17490510642528534, 0.257325679063797, -0.2850957214832306, -0.029526740312576294, -0.07062268257141113, -0.3866453468799591, 0.19367234408855438, 0.3067982494831085, 0.01945348083972931, 0.22975671291351318, 0.25856879353523254, -0.0812658965587616, 0.26343393325805664, 0.2903987467288971, -0.2758895456790924, 0.10578926652669907, 0.22007296979427338, -0.2294691801071167, 0.09515903145074844, -0.5082582235336304, 0.21960510313510895, -0.2381020039319992, -0.13983701169490814, 0.21285398304462433, 0.4210539162158966, 0.09656151384115219, 0.7781988382339478, 0.43724995851516724, -0.3013869822025299, 0.008627003990113735, 0.18282802402973175, -0.23045428097248077, 0.17606152594089508, 0.2676517069339752, -0.2643216550350189, -0.11148585379123688, -0.31573283672332764, 0.3031390905380249, -0.08681340515613556, 0.35462409257888794, -0.06198085844516754, -0.5813374519348145, 0.013110782951116562, 0.009771560318768024, 0.20059245824813843, -0.033191971480846405, 0.12338276207447052, 0.010204381309449673, -0.21556083858013153, -0.15161599218845367, 0.1525679975748062, -0.09837184846401215, -0.03862392157316208, 0.12890037894248962, 0.1500411182641983, 0.2172168344259262, 0.29429757595062256, -0.47673168778419495, -0.2782130837440491, -0.31597399711608887, 0.515724241733551, -0.23380617797374725, 0.9627293944358826, -0.3043825328350067, 0.08474215865135193, 0.19237586855888367, 0.32926303148269653, 0.23262935876846313, -0.12491537630558014, -0.05583955720067024, -0.002220981987193227, -0.07764967530965805, 0.25515231490135193, -0.2294878363609314, 0.0072470721788704395, -0.07343131303787231, 0.4834502041339874, 0.4514569640159607, 0.007658441085368395, 0.5214501023292542, -0.07389441132545471, -0.3920721709728241, -0.20313476026058197, 0.12404855340719223, 0.08445687592029572, -0.09188149869441986, -0.32942473888397217, -0.06801848113536835, -0.10010873526334763, 0.36959630250930786, -0.11545421928167343, 0.6975075602531433, -0.2624960243701935, -0.19866102933883667, -0.01366699580103159, -0.09939589351415634, 0.44896256923675537, -0.11837756633758545, -0.0640660971403122, -0.01016397587954998, 0.14991579949855804, -0.420687735080719, -0.1658346951007843, 0.04618833586573601, 0.015898877754807472, 0.07619774341583252, 0.64027339220047, -0.029340878129005432, -0.05968204885721207, 0.23736944794654846, -0.09094420820474625, -0.1296442747116089, 0.10207663476467133, -0.24062412977218628, -0.342875212430954, -0.2910521328449249, 0.01989194005727768, -0.08784523606300354, 0.20492911338806152, 0.13471877574920654, 0.10737677663564682, -0.15685854852199554, -0.09770005196332932, -0.1402651071548462, -0.10586286336183548, 0.4259519577026367, 0.17345952987670898, -0.41849127411842346, 0.04042526334524155, 0.12894050776958466, 0.21933987736701965, 0.05402885749936104, -0.2825247347354889, 0.3395118713378906, 0.2928980588912964, -0.16669952869415283, 0.025824733078479767, 0.5930709838867188, -0.046458568423986435, -0.27342912554740906, 0.01926245167851448, 0.16066069900989532, -0.18789520859718323, 0.05617382004857063, 0.22204209864139557, -0.3772507309913635, -0.08446139097213745, -0.06166796013712883, 0.22114650905132294, 0.17208470404148102, 0.36054396629333496, -0.24709944427013397, -0.20136521756649017, -0.07723881304264069, 0.25630277395248413, 0.19639798998832703, 0.487505167722702, 0.004365055356174707, 0.39988240599632263, 0.2481805831193924, -0.4016965329647064, 0.5061345100402832, -0.05102729797363281, 0.1235983818769455, -0.14487069845199585, -0.15141746401786804, -0.09770339727401733, -0.07851944863796234, 0.16386619210243225, 0.1135639026761055, 0.11596450954675674, 0.04271325096487999, 0.06639271974563599, 0.04918507859110832, 0.10737044364213943, -0.10179970413446426, -0.2554313540458679, -0.14487671852111816, -0.24347816407680511, 0.1558769941329956, -0.2487509548664093, -0.16070663928985596, -0.0031369621865451336, -0.026333117857575417, -0.003193649696186185, -0.047469642013311386, 0.11677585542201996, 0.026593420654535294, -0.03251558542251587, 0.10853809863328934, 0.17513743042945862, -0.7846264243125916, -0.5339345932006836, 0.04486424848437309, 0.14936411380767822, 0.18183965981006622, -0.17632043361663818, 0.37102141976356506, 0.11693507432937622, 0.16253286600112915, -0.13892073929309845, 0.04181592911481857, 0.39342471957206726, 0.02778870239853859, 0.3050699532032013, -0.24087920784950256, 0.05076870322227478, -0.01910814642906189, -0.1703280657529831, -0.0806257501244545, -0.27621808648109436, 0.11992572993040085, -0.386644572019577, -0.37160825729370117, 0.09139929711818695, -0.21921896934509277, 0.15991459786891937, -0.02950466424226761, 0.3397623598575592, 0.22516444325447083, 0.04607764258980751, -0.20864000916481018, -0.07765840739011765, 0.3450564444065094, -0.031718190759420395, -0.11187902837991714, 0.25776174664497375, 0.1363789290189743, -0.10669905692338943, -0.1898643970489502, 0.0802907645702362, -0.06150258332490921, -0.47506728768348694, 0.31677693128585815, 0.04006239026784897, 0.09625393152236938, 0.04852205887436867, -0.13587737083435059, -0.2946849763393402, 0.0925225019454956, -0.10034183412790298, -0.09616199880838394, -0.15255789458751678, 0.07691828161478043, 0.017454879358410835, 0.3732792139053345, 0.3466125428676605, 0.1745230257511139, 0.053372155874967575, -0.19505560398101807, -0.3158634305000305, 0.06889453530311584, 0.20504628121852875, 0.020301563665270805, -0.12012678384780884, 0.06918363273143768, -0.17074432969093323, -0.15770591795444489, 0.19363559782505035, 0.32361191511154175, -0.09879223257303238, -0.26854318380355835, -0.24808762967586517, 0.17171801626682281, 0.17835386097431183, -0.289815217256546, 0.21360518038272858, -0.26253780722618103, -0.3767368197441101, -0.14712536334991455, -0.24768228828907013, 0.03424233943223953, -0.35054147243499756, 0.19400253891944885, -0.18451279401779175, -0.1130773276090622, 0.6710556745529175, -0.2457658350467682, -0.19390630722045898, 0.3355000913143158, 0.09590601176023483, 0.3316504657268524, -0.15704108774662018, 0.15752534568309784, -0.2548552453517914, 0.14371953904628754, -0.09717278927564621, 0.014769765548408031, 0.13882699608802795, -0.2619468569755554, -0.1716315895318985, -0.40236976742744446, 0.3706912398338318, -0.034455422312021255, -0.36935561895370483, -0.17005053162574768, -0.03481247276067734, 0.17399685084819794, -0.1652229130268097, -0.001094200648367405, 0.11057741194963455, 0.2008327692747116, 0.0958457738161087, 0.10241884738206863, 0.478929728269577, -0.1828767955303192, -0.34005317091941833, 0.2112489491701126, 0.0743551179766655, -0.5071598887443542, -0.18997956812381744, 0.4764738082885742, 0.01311833318322897, 0.151798278093338, 0.32384100556373596, -0.18628047406673431, 0.14765681326389313, 0.5194670557975769, 0.3341561257839203, 0.2834590673446655, 0.38992956280708313, 0.0770711600780487, -0.3478122651576996, -0.08799444139003754, -0.09547272324562073, 0.013491922058165073, 0.020354073494672775, 0.4329175353050232, 0.2453722059726715, 0.227822408080101, -0.18835864961147308, -0.06139019876718521, -0.006467390339821577, 0.23894767463207245, -0.21256791055202484, -0.1544656902551651, -0.4422273635864258, -0.1733841449022293, -0.19824273884296417, 0.21729876101016998, -0.22203713655471802, 0.22886358201503754, -0.11387985199689865, 0.1740560382604599, -0.197922945022583, -0.0679391622543335, -0.06128765642642975, -0.2507786750793457, 0.23257429897785187, -0.28176212310791016, -0.015986992046236992, 0.04666838049888611, 0.009051920846104622, 0.19580352306365967, 0.4219561517238617, 0.5598331093788147, 0.11589983105659485, 0.17686232924461365, -0.33349183201789856, -0.10703906416893005, -0.12254291027784348, -0.22646041214466095, 0.04424428567290306, 0.6745648384094238, -0.0748567208647728, 0.051714107394218445, 0.2384636402130127, -0.14576545357704163, 0.036174967885017395, 0.19413895905017853, -0.03175169229507446, -0.05265118181705475, 0.026926135644316673, -0.10539025068283081, -0.3074876368045807, -0.033312682062387466, -0.1992829293012619, -0.18794572353363037, -0.007479109801352024, 0.18169188499450684, 0.35093599557876587, 0.10398945212364197, -0.032412875443696976, 0.06361285597085953, 0.12581196427345276, 0.25257349014282227, -0.0006350083858706057, -0.002947004046291113, 0.23291641473770142, -0.37444034218788147, -0.3560791015625, 0.13597330451011658, -0.10127424448728561, -0.11257688701152802, -0.0053609032183885574, -0.04414312541484833, 0.2780114710330963, -0.21391074359416962, 0.31901076436042786, 0.018466299399733543, 0.3287188708782196, 0.10595715045928955, -0.18115027248859406, 0.14668259024620056, 0.24258626997470856, 0.08843356370925903, -0.14072133600711823, -0.4550468623638153, 0.17009378969669342, -0.17132039368152618, 0.22366969287395477, -0.22870826721191406, -0.045850347727537155, -0.2987441122531891, 0.3847297430038452, 0.38931429386138916, 0.23732151091098785, -0.03721281513571739, -0.24923893809318542, -0.1636108011007309, -0.33745089173316956, 0.010340995155274868, 0.013012130744755268, 0.40001046657562256, 0.06803911179304123, 0.5454338788986206, 0.002912050113081932, -0.13359305262565613, -0.09637681394815445, 0.5443846583366394, -0.20149065554141998, 0.25365129113197327, 0.006497216410934925, 0.1916169673204422, -0.22381994128227234, -0.35720252990722656, 0.11856074631214142, -0.026965713128447533, -0.0586417019367218, -0.029019508510828018, -0.4093037247657776, -0.3921065926551819, 0.07436137646436691, 0.19401206076145172, -0.3438657224178314, -0.06406208127737045, -0.1048259362578392, -0.19322730600833893, 0.31177446246147156, 0.11741751432418823, 0.03212829306721687, 0.11319436132907867, -0.06559590250253677, -0.5004473328590393, 0.37446483969688416, -0.17581671476364136, -0.04446754977107048, 0.055076174437999725, 0.2791668176651001, 0.3082863390445709, -0.331104040145874, -0.4742952883243561, -0.00541394017636776 ]
https://github.com/huggingface/datasets/issues/3548
Specify the feature types of a dataset on the Hub without needing a dataset script
After looking into this, discovered that this is already supported if the `dataset_infos.json` file is configured correctly! Here is a working example: https://huggingface.co/datasets/abidlabs/test-audio-13 This should be probably be documented, though.
**Is your feature request related to a problem? Please describe.** Currently if I upload a CSV with paths to audio files, the column type is string instead of Audio. **Describe the solution you'd like** I'd like to be able to specify the types of the column, so that when loading the dataset I directly get the features types I want. The feature types could read from the `dataset_infos.json` for example. **Describe alternatives you've considered** Create a dataset script to specify the features, but that seems complicated for a simple thing. cc @abidlabs
30
Specify the feature types of a dataset on the Hub without needing a dataset script
[ -0.411811888217926, -0.20295265316963196, -0.20114029943943024, -0.14293710887432098, 0.1681579202413559, 0.13052187860012054, 0.5254318714141846, 0.2780540883541107, 0.2567668855190277, 0.10575836151838303, -0.04007919877767563, 0.47112998366355896, -0.12910577654838562, 0.7604486346244812, 0.0543922521173954, 0.26473283767700195, 0.0020560359116643667, 0.3200933635234833, -0.11367011070251465, -0.08751066774129868, -0.1526709944009781, -0.10171295702457428, 0.08984243124723434, -0.1510598510503769, -0.5793516039848328, 0.1556728184223175, 0.16423362493515015, 0.005153391510248184, -0.2554212510585785, -0.31202423572540283, 0.3170088529586792, 0.6075584888458252, -0.00653430400416255, -0.4706473648548126, -0.00010860592010430992, -0.0033740440849214792, 0.09083635360002518, -0.09222153574228287, -0.15530292689800262, 0.2818104922771454, -0.4995671212673187, -0.046561624854803085, 0.25346314907073975, -0.30985718965530396, -0.1339925229549408, 0.09599306434392929, 0.27264687418937683, 0.049004726111888885, -0.33185532689094543, 0.14943866431713104, 0.1757364720106125, 0.4533921778202057, -0.14358356595039368, -0.32172858715057373, 0.1970718502998352, 0.564505398273468, -0.30049756169319153, -0.14785024523735046, 0.4121405780315399, 0.08970993012189865, -0.30491259694099426, 0.1472892165184021, -0.013577239587903023, -0.002657403005287051, 0.46844273805618286, 0.10039357095956802, -0.2257567048072815, -0.04226088151335716, 0.2059435397386551, 0.34099218249320984, 0.5253651142120361, -0.33375081419944763, -0.07072107493877411, -0.1518697291612625, -0.16323783993721008, -0.04733657091856003, 0.08044496923685074, -0.06198575347661972, -0.05140127241611481, 0.11316149681806564, 0.034848861396312714, -0.3909251093864441, -0.16640782356262207, 0.05535781756043434, 0.020846091210842133, 0.20335879921913147, -0.007658031769096851, -0.05551643669605255, -0.26515886187553406, -0.1059480607509613, 0.530218780040741, -0.31867533922195435, -0.11279657483100891, -0.21168164908885956, -0.06109132990241051, -0.4084244668483734, 0.027209721505641937, 0.4070304036140442, 0.2016766518354416, 0.309964120388031, 0.10451719164848328, 0.4151800870895386, -0.41579267382621765, -0.018520021811127663, 0.2725636959075928, 0.08486872911453247, 0.4120779037475586, -0.02629918046295643, 0.263492614030838, 0.07651656121015549, 0.03885197639465332, 0.2250061184167862, 0.007280719466507435, 0.022711986675858498, 0.14340072870254517, 0.2976924777030945, 0.5038646459579468, 0.022161051630973816, -0.14268900454044342, -0.23259200155735016, 0.5132816433906555, -0.04501846060156822, 0.10496600717306137, 0.3131750822067261, 0.17057204246520996, 0.12922415137290955, -0.3940503001213074, 0.3186946511268616, -0.26831597089767456, -0.08482076972723007, -0.16338926553726196, 0.2742246091365814, 0.10849926620721817, -0.1845693737268448, 0.37355396151542664, 0.1610536128282547, 0.16688355803489685, -0.19947068393230438, 0.13739164173603058, 0.04940832033753395, -0.12068184465169907, -0.10861978679895401, -0.025931941345334053, 0.0018342414405196905, 0.087296262383461, 0.04472491890192032, 0.028520433232188225, 0.1395696997642517, -0.5015221238136292, 0.04452117159962654, -0.030674098059535027, -0.2606126368045807, 0.09865765273571014, 0.15769371390342712, -0.227928027510643, -0.28683075308799744, -0.22707092761993408, 0.17749324440956116, -0.31665727496147156, 0.04493140056729317, -0.10754741728305817, 0.1142146959900856, -0.05585909262299538, -0.2431531846523285, -0.10724365711212158, 0.22899813950061798, -0.11655714362859726, -0.022000722587108612, 0.07718003541231155, -0.2666037976741791, 0.013478328473865986, -0.3272685706615448, -0.08484921604394913, 0.17528365552425385, -0.006420821882784367, 0.4034828543663025, 0.496501624584198, -0.26371118426322937, -0.029266556724905968, -0.22757650911808014, 0.201571524143219, -0.1432412564754486, 0.17600348591804504, 0.41752731800079346, 0.27517062425613403, -0.13789771497249603, -0.09709696471691132, 0.348276823759079, -0.04452596232295036, 0.14567218720912933, 0.27842584252357483, -0.45809122920036316, -0.00614817813038826, 0.12224762886762619, 0.453986793756485, 0.252130925655365, 0.213487446308136, 0.2110472470521927, 0.05963505804538727, 0.0017129698535427451, -0.009388873353600502, -0.038733214139938354, 0.13283312320709229, 0.01266199816018343, -0.04820714518427849, -0.45651674270629883, -0.4477663040161133, 0.09642526507377625, 0.10001521557569504, 0.2060956209897995, -0.013737183064222336, -0.28959450125694275, -0.27217382192611694, -0.031856950372457504, -0.04959028959274292, 0.23525355756282806, 0.24623870849609375, 0.0901404619216919, -0.25913745164871216, -0.08699243515729904, -0.37100717425346375, 0.08824442327022552, 0.047281794250011444, -0.011594224721193314, -0.35844284296035767, 0.15000595152378082, 0.21143484115600586, -0.2052154690027237, 0.23115628957748413, 0.05451512709259987, 0.06598357111215591, 0.1724027693271637, -0.03214743733406067, 0.05219001695513725, 0.12963725626468658, 0.3820325434207916, 0.36615651845932007, 0.4342643916606903, 0.0310262031853199, -0.015656214207410812, 0.05124833434820175, -0.00018191582057625055, 0.1022062599658966, 0.12552733719348907, -0.2902507781982422, 0.45715707540512085, 0.015462322160601616, -0.030233800411224365, -0.13888899981975555, 0.14959494769573212, 0.09650345891714096, 0.07737340033054352, -0.21028880774974823, -0.4620282053947449, -0.2831634283065796, 0.27084285020828247, -0.33050239086151123, -0.03670712932944298, -0.08638636022806168, 0.30361494421958923, 0.6014862060546875, 0.09784221649169922, 0.4598366618156433, -0.29085206985473633, -0.21192732453346252, 0.1261739283800125, 0.2572231590747833, -0.32127052545547485, 0.10396677255630493, 0.17860735952854156, 0.02199913002550602, -0.04225333780050278, -0.22470147907733917, -0.06254082918167114, 0.10884090512990952, 0.05617093667387962, -0.03447733074426651, -0.14458023011684418, 0.04841572791337967, -0.3538782596588135, -0.4362112879753113, -0.05542515218257904, -0.06107243895530701, -0.07465548813343048, -0.1966443508863449, -0.2855550944805145, -0.4455587565898895, 0.1078602746129036, 0.43855953216552734, -0.17791080474853516, 0.05065232515335083, -0.31089672446250916, 0.3014174699783325, 0.24140171706676483, -0.08352658152580261, 0.2071000337600708, -0.15148454904556274, 0.4147116243839264, 0.13231487572193146, -0.029972292482852936, 0.14919358491897583, 0.0094810975715518, 0.19702701270580292, 0.11060371994972229, -0.01549983024597168, 0.45132899284362793, 0.29089468717575073, -0.21529781818389893, 0.24903149902820587, -0.4618947207927704, 0.27354761958122253, 0.22562353312969208, 0.07403429597616196, 0.10773803293704987, 0.3252652585506439, 0.29308995604515076, 0.1328410655260086, 0.0747656524181366, 0.1428946852684021, -0.027322035282850266, 0.04910755157470703, -0.1335429549217224, -0.1352878212928772, -0.03562524914741516, 0.047401897609233856, -0.2919752895832062, -0.1082770824432373, -0.3690796196460724, -0.06962191313505173, 0.1837139129638672, 0.2728423774242401, -0.1699816733598709, 0.0386660099029541, -0.3056679964065552, -0.15579929947853088, -0.1958559900522232, -0.2294481247663498, 0.037207309156656265, 0.49141961336135864, -0.2043180763721466, -0.10562776029109955, 0.07634337991476059, -0.19045361876487732, 0.004178936127573252, 0.25322067737579346, 0.21006789803504944, -0.3114704489707947, -0.2934519648551941, 0.3385404646396637, 0.10135812312364578, 0.15355055034160614, 0.49388861656188965, 0.09814772009849548, -0.06675542145967484, -0.08528526872396469, -0.021370524540543556, 0.18683946132659912, 0.2233147770166397, -0.43449774384498596, -0.022230081260204315, -0.23316116631031036, -0.23298516869544983, -0.05555396154522896, -0.09657468646764755, -0.026178978383541107, 0.389182984828949, -0.23340442776679993, 0.24961210787296295, -0.07991422712802887, 0.05490032583475113, -0.09700671583414078, -0.09389234334230423, 0.06691298633813858, 0.29387566447257996, -0.09614096581935883, -0.15587984025478363, -0.06064915284514427, -0.05756787210702896, -0.1220281645655632, -0.44656267762184143, 0.292218953371048, -0.15220636129379272, -0.04215922951698303, -0.0331965908408165, 0.18908745050430298, -0.6458967328071594, -0.05375024303793907, 0.09773768484592438, 0.062069013714790344, 0.11975950747728348, -0.07909830659627914, -0.5957506895065308, -0.118018738925457, -0.263974130153656, 0.29168951511383057, -0.18668395280838013, 0.015441333875060081, 0.0051805805414915085, -0.1783619374036789, -0.0753742903470993, 0.01361720822751522, 0.2611594796180725, -0.5265882611274719, 0.22179166972637177, -0.06117657572031021, -0.02730870060622692, -0.18483853340148926, -0.027155570685863495, -0.2856779992580414, 0.317107617855072, -0.44381579756736755, 0.3574230670928955, -0.2666589021682739, -0.08723494410514832, 0.08396872878074646, -0.13082388043403625, -0.10007301717996597, -0.02785472385585308, 0.23951992392539978, 0.04009070619940758, -0.3620759844779968, -0.1459566205739975, 0.3259558081626892, -0.08951759338378906, -0.07975855469703674, -0.18041843175888062, -0.36675846576690674, -0.0005896366783417761, 0.26763004064559937, 0.18203645944595337, 0.13571706414222717, 0.22455748915672302, -0.17174853384494781, -0.2853606641292572, 0.17680418491363525, -0.01858646795153618, 0.28253355622291565, 0.32377320528030396, -0.38799548149108887, 0.15922005474567413, -0.140590637922287, 0.1431640088558197, 0.44453859329223633, -0.06859264522790909, 0.30066177248954773, -0.11834772676229477, -0.0504193976521492, -0.4751361906528473, 0.3668052554130554, -0.008204865269362926, -0.11576375365257263, -0.2376149743795395, -0.3490455150604248, 0.48736295104026794, -0.2518729269504547, -0.12543021142482758, -0.1297703981399536, 0.24422861635684967, -0.3616505563259125, 0.21721091866493225, 0.20946884155273438, 0.4797903299331665, 0.19860608875751495, 0.1552896499633789, 0.03432898968458176, 0.10122742503881454, 0.3856392502784729, -0.35786768794059753, 0.10701525211334229, -0.21673710644245148, -0.30274203419685364, -0.12172093242406845, -0.003983655944466591, 0.12868811190128326, 0.15425343811511993, -0.15933451056480408, 0.05124877765774727, -0.07907267659902573, 0.5586778521537781, -0.12520267069339752, 0.08810827136039734, -0.5383413434028625, -0.4941956102848053, 0.08605808764696121, 0.12920592725276947, -0.1892736703157425, 0.1102973148226738, 0.06761298328638077, -0.02662273868918419, -0.010834057815372944, -0.0914580300450325, -0.14676842093467712, -0.16183051466941833, 0.03458075225353241, -0.07766974717378616, -0.1346532255411148, 0.1465516984462738, -0.04427390545606613, 0.019161492586135864, 0.49416589736938477, 0.24913032352924347, -0.21755029261112213, 0.16369286179542542, 0.08397547155618668, 0.03341270983219147, -0.19692471623420715, -0.009903407655656338, 0.21349045634269714, -0.08423829078674316, -0.2713792026042938, -0.08743103593587875, 0.12332332879304886, -0.10382617264986038, -0.173820361495018, -0.3134249746799469, -0.20354637503623962, -0.3328474164009094, -0.3159138858318329, -0.09503068029880524, -0.10343915969133377, -0.07950973510742188, 0.11052438616752625, 0.030278554186224937, 0.0626039132475853, 0.6129307746887207, 0.2521345913410187, 0.12889498472213745, -0.12512212991714478, -0.1089690625667572, 0.24694912135601044, 0.04933023080229759, 0.10924694687128067, -0.14874744415283203, -0.1462930589914322, -0.3600482940673828, 0.052570853382349014, 0.4775099754333496, -0.19701039791107178, 0.061293382197618484, -0.09024474024772644, -0.6133685111999512, -0.1544245183467865, 0.35586291551589966, -0.27473586797714233, 0.35595202445983887, 0.0026869436260312796, -0.22003832459449768, -0.15268725156784058, 0.39461222290992737, 0.13215170800685883, 0.4138704240322113, -0.16735197603702545, 0.13952909409999847, -0.047558024525642395, -0.17948779463768005, -0.33596932888031006, -0.17826832830905914, -0.17530347406864166, 0.06395918875932693, -0.36267897486686707, 0.21417276561260223, 0.027093708515167236, -0.09889471530914307, 0.15465401113033295, -0.18784208595752716, -0.2598336338996887, -0.21600216627120972, -0.05485229566693306, 0.13166014850139618, -0.18090856075286865, 0.2645966112613678, -0.02960997074842453, -0.04710451140999794, -0.16007882356643677, -0.4469594359397888, 0.28496813774108887, 0.2562792897224426, -0.12560755014419556, 0.12568286061286926, 0.39588552713394165, -0.1504458785057068, 0.06343578547239304, 0.01417162362486124, 0.1952093094587326, 0.04028884321451187, -0.15998539328575134, 0.08594711124897003, -0.17932124435901642, 0.12392768263816833, 0.3780761659145355, 0.39930346608161926, 0.2723410129547119, 0.3190765380859375, -0.1269705891609192, 0.17707832157611847, -0.05578403174877167, 0.14958572387695312, 0.07927606254816055, 0.1068783849477768, -0.007427887991070747, -0.0042353225871920586, -0.06371284276247025, 0.22697988152503967, -0.22603243589401245, -0.14804182946681976, 0.27640005946159363, -0.20721982419490814, 0.4618249833583832, 0.5883104205131531, 0.3810877799987793, 0.14537328481674194, 0.08132483065128326, -0.08793068677186966, 0.1430061012506485, -0.15202420949935913, 0.1379382461309433, 0.24457170069217682, -0.1621411144733429, -0.06217997893691063, 0.12547294795513153, 0.1973242610692978, 0.05022227391600609, 0.5661388635635376, 0.28512856364250183, 0.3712169826030731, 0.45553889870643616, -0.019031228497624397, 0.4019814133644104, -0.16008992493152618, -0.060526903718709946, -0.231777161359787, 0.128053218126297, 0.15890054404735565, 0.1897040158510208, -0.18044233322143555, -0.2944481074810028, -0.04705938324332237, -0.4360191524028778, -0.19452400505542755, -0.14077934622764587, -0.13436967134475708, -0.20169702172279358, -0.22627173364162445, -0.1051768958568573, -0.12106642127037048, -0.0963960662484169, -0.14691731333732605, -0.05047004297375679, -0.22093728184700012, 0.17276616394519806, 0.29963353276252747, 0.6183593273162842, -0.4105837047100067, 0.12154828011989594, 0.09675989300012589, -0.11374873667955399, -0.3783775269985199, 0.2221633344888687, 0.16466227173805237, 0.20082613825798035, -0.15912242233753204, 0.17921505868434906, -0.03178052231669426, -0.09343847632408142, 0.06225961074233055, -0.2275499552488327, -0.1925729662179947, -0.339309424161911, 0.25789675116539, 0.23905378580093384, 0.19441361725330353, 0.23320309817790985, -0.12933534383773804, 0.14736515283584595, -0.20680135488510132, -0.2097618281841278, 0.028485339134931564, 0.22884199023246765, 0.280368447303772, -0.14939850568771362, 0.11727999895811081, -0.015145446173846722, -0.18864351511001587, -0.4581199586391449, 0.36242184042930603, -0.08382699638605118, 0.3260118067264557, 0.015410801395773888, 0.11976122111082077, -0.16379235684871674, 0.269101619720459, -0.2912195026874542, -0.17568135261535645, 0.16983625292778015, 0.12469781935214996, -0.02301277592778206, -0.015909260138869286, 0.28425902128219604, -0.35732895135879517, 0.1882118135690689, -0.03383728489279747, 0.4116908013820648, 0.32262662053108215, -0.01953309215605259, -0.13287439942359924, 0.2956576645374298, 0.23283854126930237, -0.3124111294746399, -0.19583603739738464, 0.13753709197044373, 0.15367601811885834, 0.11116106808185577, -0.2258329689502716, 0.033191144466400146, 0.15242119133472443, 0.09609752893447876, 0.13258785009384155, -0.03427376225590706, 0.18910863995552063, -0.3717193305492401, 0.306922972202301, -0.047433674335479736, 0.3953591287136078, -0.35683727264404297, 0.08843892067670822, -0.39038485288619995, -0.3313329815864563, -0.3278862535953522, -0.023701606318354607, -0.027682872489094734, 0.2609955966472626, -0.05759674683213234, 0.34023672342300415, 0.06036435812711716, -0.00994138978421688, 0.00001604763383511454, 0.30934688448905945, 0.014555801637470722, 0.3112891614437103, -0.19964125752449036, -0.05216105282306671, 0.09149180352687836, 0.1209549605846405, -0.08819442987442017, 0.03718995675444603, 0.11436352878808975, -0.3974935710430145, 0.3716582953929901, 0.3918534219264984, -0.6499786376953125, -0.26475074887275696, 0.031061401590704918, 0.08849520236253738, 0.20644700527191162, -0.1412738710641861, 0.08844702690839767, -0.038981933146715164, -0.09199544042348862, 0.10370167344808578, 0.2886502742767334, -0.04368932917714119, -0.2198033481836319, -0.0587826669216156, 0.2300754338502884, -0.02524922601878643, 0.05930541083216667, -0.7256515026092529, -0.34469375014305115 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Thanks for reporting. I think this can be fixed by improving the `CachedDatasetModuleFactory` and making it look into the `parquet` cache directory (datasets from push_to_hub are loaded with the parquet dataset builder). I'll look into it
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
36
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
We haven't had a chance to fix this yet. If someone would like to give it a try I'd be happy to give some guidance
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
25
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
@lhoestq Do you have an idea of what changes need to be made to `CachedDatasetModuleFactory`? I would be willing to take a crack at it. Currently unable to train with datasets I have `push_to_hub` on a cluster whose compute nodes are not connected to the internet. It looks like it might be this line: https://github.com/huggingface/datasets/blob/0c1d099f87a883e52c42d3fd1f1052ad3967e647/src/datasets/load.py#L994 Which wouldn't pick up the stuff saved under `"datasets/allenai___parquet/*"`. Additionally, the datasets saved under `"datasets/allenai___parquet/*"` appear to have hashes in their name, e.g. `"datasets/allenai___parquet/my_dataset-def9ee5552a1043e"`. This would not be detected by `CachedDatasetModuleFactory`, which currently looks for subdirectories https://github.com/huggingface/datasets/blob/0c1d099f87a883e52c42d3fd1f1052ad3967e647/src/datasets/load.py#L995-L999
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
92
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
`importable_directory_path` is used to find a **dataset script** that was previously downloaded and cached from the Hub However in your case there's no dataset script on the Hub, only parquet files. So the logic must be extended for this case. In particular I think you can add a new logic in the case where `hashes is None` (i.e. if there's no dataset script associated to the dataset in the cache). In this case you can check directly in the in the datasets cache for a directory named `<namespace>__parquet` and a subdirectory named `<config_id>`. The config_id must match `{self.name.replace("/", "--")}-*`. In your case those two directories correspond to `allenai___parquet` and then `allenai--my_dataset-def9ee5552a1043e` Then you can find the most recent version of the dataset in subdirectories (e.g. sorting using the last modified time of the `dataset_info.json` file). Finally, we will need return the module that is used to load the dataset from the cache. It is the same module than the one that would have been normally used if you had an internet connection. At that point you can ping me, because we will need to pass all this: - `module_path = _PACKAGED_DATASETS_MODULES["parquet"][0]` - `hash` it corresponds the name of the directory that contains the .arrow file, inside `<namespace>__parquet/<config_id>` - ` builder_kwargs = {"hash": hash, "repo_id": self.name, "config_id": config_id}` and currently `config_id` is not a valid argument for a `DatasetBuilder` I think in the future we want to change this caching logic completely, since I don't find it super easy to play with.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
251
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Hi! Is there a workaround for the time being? Like passing `data_dir` or something like that? I would like to use [this diffuser example](https://github.com/huggingface/diffusers/tree/main/examples/unconditional_image_generation) on my cluster whose nodes are not connected to the internet. I have downloaded the dataset online form the login node.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
45
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Hi ! Yes you can save your dataset locally with `my_dataset.save_to_disk("path/to/local")` and reload it later with `load_from_disk("path/to/local")` (removing myself from assignees since I'm currently not working on this right now)
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
30
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Any idea @lhoestq who to tag to fix this ? This is a very annoying bug, which is becoming more and more present since the push_to_hub API is getting used more ?
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
32
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
It should be easier to implement now that we improved the caching of datasets from `push_to_hub`: each dataset has its own directory in the cache. The cache structure has been improved in https://github.com/huggingface/datasets/pull/5331. Now the cache structure is `"{namespace__}<dataset_name>/<config_name>/<version>/<hash>/"` which contains the arrow files `"<dataset_name>-<split>.arrow"` and `"dataset_info.json"`. The idea is to extend `CachedDatasetModuleFactory` to also check if this directory exists in the cache (in addition to the already existing cache check) and return the requested dataset module. The module name can be found in the JSON file in the `builder_name` field.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
91
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
I started a PR to draft the logic to reload datasets from the cache fi they were created with push_to_hub: https://github.com/huggingface/datasets/pull/6459 Feel free to try it out
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
27
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Which version of `datasets` are you using ? This issue has been fixed with `datasets` 2.16
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
16
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Can you share a code or a dataset that reproduces the issue ? It seems to work fine on my side.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
21
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Yeah, ```python dataset = load_dataset("roneneldan/TinyStories") ``` I tried it with: ```python dataset = load_dataset("roneneldan/tinystories") ``` and it worked. > It seems that this does not support dataset with uppercase name @fecet was right, but if you just put the name lowercase, it works.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
43
Datasets created with `push_to_hub` can't be accessed in offline mode
[ -0.5361061096191406, -0.21774908900260925, -0.12933334708213806, 0.1454688459634781, 0.15567141771316528, -0.020121965557336807, 0.5383172035217285, 0.016885198652744293, 0.08095286041498184, 0.18478763103485107, -0.20288477838039398, 0.06425154209136963, -0.10446663200855255, 0.3220813274383545, -0.10990380495786667, 0.3676348626613617, 0.13395927846431732, -0.05643294379115105, -0.0654732882976532, -0.1764354109764099, -0.14611132442951202, -0.039375558495521545, -0.10732727497816086, 0.08352723717689514, -0.5018084645271301, -0.33083656430244446, 0.15345899760723114, 0.3425925374031067, -0.23914024233818054, -0.16618847846984863, 0.19483163952827454, 0.21181319653987885, -0.11330512911081314, 0.19065168499946594, -0.00011289391841273755, 0.28392261266708374, -0.05754544585943222, -0.10722649842500687, -0.3386080265045166, 0.010519040748476982, -0.5818831920623779, -0.12836024165153503, -0.012704489752650261, -0.26123785972595215, -0.03765225410461426, 0.12888066470623016, 0.05426656827330589, -0.2486448436975479, 0.04047316685318947, 0.21492379903793335, 0.18980100750923157, 0.43895336985588074, -0.042342279106378555, -0.4371958374977112, 0.22716735303401947, 0.2064824253320694, -0.3626643121242523, 0.102424755692482, 0.002784919459372759, 0.17000910639762878, -0.13745948672294617, -0.07651779800653458, 0.0890858918428421, 0.17257483303546906, 0.0321047343313694, 0.05763913318514824, -0.30457165837287903, -0.023923031985759735, 0.20789264142513275, -0.04856595769524574, -0.02671964094042778, -0.26854822039604187, -0.24685721099376678, -0.37140265107154846, -0.3863888084888458, 0.12295053899288177, 0.3513084948062897, 0.09669934958219528, -0.09884592145681381, 0.14902004599571228, -0.3686681389808655, -0.4638696014881134, -0.23125091195106506, 0.027875784784555435, -0.05606088787317276, 0.27197232842445374, -0.12976177036762238, 0.05452853441238403, -0.1706763654947281, 0.16211633384227753, 0.3280157148838043, -0.19884778559207916, 0.13689427077770233, -0.31544938683509827, 0.14509153366088867, 0.14198754727840424, 0.2905347943305969, 0.07677795737981796, 0.03312044218182564, 0.05251995846629143, 0.11729972809553146, 0.12619701027870178, -0.25517576932907104, -0.0933343842625618, 0.06323397159576416, 0.21379058063030243, 0.204774409532547, -0.17184945940971375, 0.5252667665481567, 0.21965883672237396, -0.30945485830307007, -0.13360804319381714, -0.06346743553876877, 0.007933652959764004, 0.014849611558020115, 0.08419391512870789, 0.34689807891845703, 0.009939280338585377, -0.034812409430742264, -0.08318160474300385, 0.19861657917499542, 0.146922305226326, 0.1509159356355667, 0.15846160054206848, 0.18470008671283722, -0.1043458878993988, 0.012947207316756248, 0.18066996335983276, -0.3757401704788208, -0.10621969401836395, -0.2347516566514969, -0.08189449459314346, -0.0914035439491272, -0.012855409644544125, 0.3062140643596649, -0.3377309739589691, 0.08939383178949356, -0.22840549051761627, -0.014765496365725994, -0.17529550194740295, 0.3510616719722748, -0.0240627434104681, 0.3793763518333435, 0.2590652406215668, 0.49367836117744446, 0.023081401363015175, 0.13006296753883362, -0.07868979126214981, 0.0493711456656456, 0.12759467959403992, -0.07389045506715775, -0.594163715839386, 0.2816339135169983, 0.18111328780651093, -0.39565181732177734, 0.07241257280111313, -0.3053911626338959, -0.06779197603464127, -0.1486300677061081, 0.022111229598522186, -0.021495141088962555, 0.2313130497932434, 0.024602316319942474, -0.06910014897584915, -0.005402181763201952, 0.23283080756664276, -0.33445045351982117, 0.2798842489719391, 0.19458404183387756, -0.21282362937927246, -0.16407205164432526, -0.07663723081350327, -0.23262231051921844, 0.5707184672355652, -0.24364468455314636, 0.11544668674468994, 0.5004889965057373, -0.32507017254829407, -0.4267536699771881, -0.24799834191799164, -0.2272854745388031, -0.35428306460380554, 0.03862771764397621, 0.0029513519257307053, 0.4262903034687042, 0.1488237977027893, 0.10246007144451141, 0.18252675235271454, 0.2159988284111023, 0.1833706498146057, -0.17774610221385956, -0.11024753749370575, -0.16476020216941833, 0.141278937458992, 0.3247312903404236, 0.2130061239004135, 0.47936153411865234, 0.30472972989082336, 0.07935010641813278, 0.0580110028386116, 0.43405288457870483, -0.08348377048969269, 0.22724516689777374, -0.19337986409664154, -0.04429059475660324, -0.038513436913490295, -0.3041650950908661, 0.1684354543685913, 0.08664394915103912, 0.2631065249443054, -0.3302761912345886, -0.16572178900241852, -0.33241337537765503, 0.028510678559541702, -0.327775239944458, 0.17406509816646576, 0.21819095313549042, 0.14708778262138367, 0.041826531291007996, 0.3148183226585388, 0.07451047748327255, 0.11460671573877335, -0.021452559158205986, 0.007082814816385508, -0.3909822702407837, 0.5595473647117615, -0.05537934973835945, -0.11247635632753372, -0.19773544371128082, 0.05060838162899017, 0.11044421792030334, -0.29150518774986267, -0.13345953822135925, 0.1878027617931366, 0.122503362596035, 0.19668862223625183, 0.3179877698421478, 0.37075158953666687, 0.2374202162027359, 0.05255982279777527, 0.5167006254196167, -0.16579914093017578, 0.2129010707139969, 0.038092661648988724, -0.4510161876678467, 0.5625227093696594, 0.022397883236408234, 0.04817202687263489, 0.1686093956232071, 0.09271499514579773, 0.3333737850189209, 0.18035398423671722, 0.09488306939601898, -0.26945576071739197, -0.10269760340452194, 0.30243799090385437, 0.07544779032468796, -0.12616607546806335, 0.18576079607009888, 0.38568350672721863, 0.4691287577152252, 0.17306944727897644, 0.2085098922252655, -0.30513039231300354, -0.14322832226753235, -0.1897781640291214, 0.3191918730735779, 0.2114238739013672, 0.08695419132709503, 0.08310765773057938, 0.33544427156448364, 0.1900431215763092, -0.14467787742614746, -0.263949990272522, 0.03035976178944111, 0.1715748906135559, 0.16952694952487946, 0.2153143733739853, 0.35730111598968506, -0.31208932399749756, -0.5100514888763428, 0.05681651830673218, 0.4145132303237915, 0.2039165049791336, -0.2656533122062683, -0.1035725325345993, -0.029038269072771072, 0.01037392858415842, 0.25575006008148193, -0.1680574268102646, -0.2779262661933899, -0.625718355178833, 0.30475062131881714, 0.5348532795906067, -0.1258111149072647, 0.007111788727343082, 0.01415928266942501, 0.2481488436460495, 0.06110651046037674, 0.08855333179235458, 0.004592876881361008, -0.38049668073654175, 0.0637407898902893, 0.08317362517118454, 0.0430360846221447, 0.18423496186733246, 0.4131483733654022, -0.06060492992401123, 0.1660269796848297, -0.39996668696403503, 0.10302308946847916, 0.11400584131479263, 0.03192726895213127, -0.02451895922422409, -0.023847047239542007, 0.058616507798433304, 0.12200658023357391, -0.03130393847823143, 0.42821580171585083, -0.39335083961486816, -0.13152122497558594, 0.11752200871706009, -0.28401005268096924, -0.040308255702257156, -0.15701399743556976, -0.41671517491340637, -0.2625519037246704, -0.1359100490808487, 0.15145137906074524, 0.191637322306633, 0.053627535700798035, 0.16490265727043152, -0.0014208204811438918, 0.0046512591652572155, 0.08521348983049393, -0.3252265751361847, -0.28499293327331543, -0.4526897966861725, 0.09959959983825684, -0.4777502715587616, -0.21459612250328064, 0.21310864388942719, 0.1318768709897995, 0.12458401918411255, 0.4525478482246399, -0.343889981508255, -0.26225000619888306, -0.09470981359481812, 0.34211623668670654, 0.24184614419937134, -0.1158512681722641, 0.44991472363471985, -0.028124459087848663, -0.042112112045288086, -0.06858159601688385, 0.04890179634094238, 0.38949722051620483, 0.2987927794456482, -0.19722634553909302, -0.2697662115097046, 0.11559195071458817, 0.1561627984046936, 0.20235614478588104, -0.29878950119018555, 0.2927967607975006, 0.4427717626094818, -0.23952312767505646, 0.45894739031791687, -0.4829805791378021, -0.07306846976280212, -0.025849949568510056, -0.004915017168968916, -0.30769744515419006, 0.103957898914814, 0.1958325058221817, -0.10784760117530823, -0.21508263051509857, -0.24030619859695435, -0.4264783561229706, -0.45146501064300537, -0.3558783233165741, 0.12141451239585876, -0.024276774376630783, 0.2446349710226059, 0.2610732316970825, -0.6143314838409424, -0.12485139071941376, -0.02051430568099022, -0.08841719478368759, -0.06839899718761444, -0.049485187977552414, -0.46527060866355896, -0.018830349668860435, -0.37623536586761475, 0.09368007630109787, -0.03733198344707489, 0.3931530714035034, 0.03669637814164162, -0.05442729592323303, 0.3627433180809021, -0.057131148874759674, 0.5067430734634399, -0.40819957852363586, 0.40468066930770874, 0.2209681123495102, 0.03541763499379158, -0.23929330706596375, -0.037633657455444336, -0.2426818311214447, 0.3185286521911621, 0.19153735041618347, 0.3139791488647461, 0.13383352756500244, 0.03526298701763153, -0.34032681584358215, -0.23359805345535278, -0.17272353172302246, 0.19847472012043, -0.12630096077919006, -0.22954191267490387, -0.5531381368637085, 0.012608496472239494, 0.0046759541146457195, 0.12490712851285934, -0.192730113863945, -0.24328553676605225, 0.03715001046657562, 0.2450547069311142, -0.23372386395931244, 0.12647585570812225, 0.017963463440537453, 0.05812482908368111, 0.01686471700668335, 0.10917375236749649, 0.3389693796634674, 0.33916884660720825, 0.3719104528427124, 0.06171831488609314, 0.05921155586838722, 0.4007803797721863, -0.21119114756584167, -0.07630877941846848, 0.5343998074531555, -0.007590658497065306, -0.007607798557728529, -0.09986499696969986, 0.14889177680015564, -0.3799362778663635, 0.15016937255859375, -0.09292109310626984, -0.28107574582099915, -0.04206858575344086, -0.042221549898386, 0.061248619109392166, -0.2532052993774414, -0.045436397194862366, 0.010042320936918259, 0.3779333233833313, -0.2720831632614136, 0.40937066078186035, -0.11721611768007278, 0.6489279270172119, -0.21211554110050201, 0.3430129587650299, 0.18937034904956818, 0.22923702001571655, 0.4278245270252228, -0.5433496236801147, 0.22570393979549408, -0.12302898615598679, -0.10402364283800125, -0.09424667805433273, -0.04661400988698006, 0.10184349119663239, 0.08900557458400726, 0.11606472730636597, -0.016473090276122093, -0.11386723071336746, 0.5927402377128601, -0.39066675305366516, -0.1642650067806244, -0.19045278429985046, -0.12205364555120468, -0.2527230381965637, 0.18293556571006775, 0.27563560009002686, -0.027334950864315033, -0.1822531372308731, -0.04596821963787079, -0.18221724033355713, 0.18014591932296753, -0.013640188612043858, -0.006315740756690502, 0.22923049330711365, 0.3110887408256531, -0.4228668212890625, 0.005438199266791344, -0.4745904803276062, -0.12699158489704132, 0.6955455541610718, 0.04655936360359192, -0.45165345072746277, -0.07607727497816086, -0.1903490275144577, -0.07675684988498688, -0.06874200701713562, 0.16305261850357056, 0.11881718784570694, -0.07384660840034485, -0.33753424882888794, -0.08522162586450577, 0.13862766325473785, -0.26541006565093994, 0.2254595160484314, -0.10954449325799942, -0.12795905768871307, -0.36513522267341614, 0.19766196608543396, 0.0825180783867836, -0.05508603900671005, -0.3060021698474884, 0.11666931957006454, -0.06836821138858795, 0.046050895005464554, 0.10805466026067734, -0.10819423198699951, -0.263797402381897, -0.0059330346994102, 0.49780169129371643, 0.17000631988048553, 0.09224624186754227, 0.022226780652999878, 0.06475668400526047, -0.23281818628311157, -0.2724137604236603, 0.2894153296947479, 0.21662500500679016, -0.2180020660161972, 0.09085767716169357, 0.09191842377185822, -0.05743084102869034, 0.06744281947612762, 0.3533545136451721, -0.0760202407836914, 0.25189313292503357, -0.1819819211959839, -0.15560056269168854, -0.37395936250686646, 0.1066441684961319, 0.16655632853507996, 0.12555767595767975, 0.17159481346607208, -0.08341405540704727, 0.258670449256897, -0.06511493772268295, -0.3301502764225006, 0.12833324074745178, -0.3305497467517853, -0.038300976157188416, -0.4682779610157013, -0.26406392455101013, 0.26290249824523926, -0.29222550988197327, 0.11016186326742172, -0.0005490710609592497, -0.36297234892845154, -0.16637544333934784, 0.08380341529846191, 0.16170521080493927, 0.26093560457229614, -0.3121359348297119, -0.20311540365219116, -0.34047868847846985, -0.33362066745758057, -0.08317746222019196, 0.44925159215927124, 0.6853055953979492, -0.060330286622047424, -0.289773166179657, 0.6325225234031677, 0.18671506643295288, -0.12473814189434052, 0.0887364000082016, 0.23907706141471863, 0.10965105891227722, -0.3622153699398041, 0.072920061647892, -0.2582845687866211, 0.00485139200463891, 0.06516493856906891, 0.2300977110862732, 0.2842073142528534, 0.3905024528503418, 0.516270101070404, -0.2269776165485382, 0.026132220402359962, -0.0046851737424731255, 0.4031183421611786, -0.017358599230647087, 0.07986471801996231, 0.05211923271417618, 0.0025605636183172464, 0.15891879796981812, -0.19829413294792175, -0.25182995200157166, 0.465793251991272, -0.1198853924870491, 0.2441030889749527, 0.031725458800792694, 0.6390327215194702, 0.05486154183745384, -0.028273124247789383, 0.04167225584387779, 0.37238091230392456, -0.2094193398952484, -0.1644163429737091, -0.012416055426001549, -0.18380844593048096, 0.168669193983078, 0.05433858931064606, 0.2766803205013275, 0.009661114774644375, 0.4611385464668274, 0.19424653053283691, 0.21533255279064178, 0.2180216759443283, -0.0018039470305666327, -0.11149661988019943, -0.45800840854644775, -0.09572843462228775, -0.08374904096126556, -0.12999053299427032, 0.03358198702335358, -0.445626437664032, 0.08036956191062927, -0.3494020998477936, 0.12732280790805817, -0.435303658246994, 0.09804615378379822, -0.15137799084186554, 0.03574051335453987, -0.3751016855239868, -0.306956946849823, -0.11750349402427673, 0.08009669929742813, -0.07098793983459473, -0.21149028837680817, 0.010794752277433872, -0.21888743340969086, 0.17134514451026917, 0.32045450806617737, 0.22985756397247314, 0.011176209896802902, 0.049126651138067245, -0.04743799939751625, 0.22681112587451935, -0.018851161003112793, 0.0457611046731472, 0.06235327571630478, 0.30065402388572693, 0.10449537634849548, -0.16560496389865875, -0.1785867065191269, 0.2959335446357727, 0.29535752534866333, -0.1370975524187088, -0.2871299684047699, 0.17766828835010529, 0.16487328708171844, 0.30696097016334534, 0.3880905210971832, 0.16668327152729034, -0.0899352952837944, 0.02638019062578678, 0.08866731822490692, -0.16121545433998108, 0.34336668252944946, 0.16969653964042664, -0.0963779166340828, -0.3700017035007477, 0.10668367892503738, -0.18661101162433624, -0.2620311677455902, -0.3262736201286316, 0.20831497013568878, -0.2986331880092621, 0.42461562156677246, -0.18306197226047516, 0.0687093585729599, -0.3154512047767639, 0.42902469635009766, -0.0144721744582057, 0.033079199492931366, 0.14559784531593323, -0.30542775988578796, -0.32582324743270874, 0.25729691982269287, -0.07832477986812592, 0.15555810928344727, -0.13703013956546783, 0.09294303506612778, 0.22250965237617493, -0.10503336042165756, -0.13323242962360382, 0.16084350645542145, 0.0560147762298584, 0.025067821145057678, -0.24294547736644745, -0.0024355982895940542, 0.22493910789489746, -0.22707730531692505, -0.2178875356912613, -0.26423338055610657, 0.3618539571762085, 0.12771286070346832, 0.03521213307976723, 0.30194711685180664, 0.30372849106788635, -0.15656022727489471, -0.27813079953193665, 0.282190203666687, -0.07380412518978119, 0.2575548589229584, -0.04509508237242699, 0.21230019629001617, -0.3383072316646576, -0.10215242952108383, -0.004046002868562937, -0.22687867283821106, -0.013980108313262463, 0.19102829694747925, -0.08036870509386063, 0.010697833262383938, 0.14718125760555267, 0.009334090165793896, 0.01328273769468069, 0.5177441835403442, -0.018035991117358208, 0.10110463201999664, -0.4336595833301544, 0.07701776921749115, 0.20376309752464294, -0.1492731273174286, 0.1294189989566803, 0.14301341772079468, -0.07488590478897095, -0.13378651440143585, 0.31273749470710754, 0.23312734067440033, -0.2337813377380371, -0.3597511351108551, 0.22755706310272217, 0.3072945475578308, -0.07056654989719391, -0.16271881759166718, 0.0338619239628315, 0.23411668837070465, -0.19915248453617096, -0.05802995711565018, 0.2749917805194855, -0.1760670691728592, -0.06094028055667877, 0.004996642470359802, 0.43780067563056946, -0.168902188539505, -0.08580590784549713, -0.03697515279054642, 0.03868868574500084 ]
https://github.com/huggingface/datasets/issues/3543
Allow loading community metrics from the hub, just like datasets
Hi ! Thanks for your message :) This is a great idea indeed. We haven't started working on this yet though. For now I guess you can host your metric on the Hub (either with your model or your dataset) and use `hf_hub_download` to download it (docs [here](https://github.com/huggingface/huggingface_hub/blob/main/docs/hub/how-to-downstream.md#cached_download))
**Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub.
48
Allow loading community metrics from the hub, just like datasets
[ -0.7055341601371765, 0.24416020512580872, -0.22791634500026703, 0.09105894714593887, 0.11619332432746887, 0.01548328809440136, 0.1844848245382309, 0.07976210862398148, 0.5051864981651306, 0.31899333000183105, -0.46900931000709534, 0.37055954337120056, 0.014017215929925442, 0.2293194979429245, -0.21762245893478394, 0.22921602427959442, -0.3132825493812561, 0.04317069798707962, -0.22668567299842834, 0.03371737152338028, 0.11518777161836624, -0.22368654608726501, 0.14916355907917023, 0.26146602630615234, -0.21746614575386047, 0.04568038508296013, 0.3257823586463928, 0.08469271659851074, -0.40253329277038574, -0.26821646094322205, 0.28177788853645325, 0.5901768803596497, -0.036433737725019455, 0.1819186955690384, -0.00010930959251709282, 0.04669894278049469, 0.33788424730300903, 0.19724559783935547, -0.26853445172309875, -0.06017926707863808, -0.297358900308609, -0.05694356933236122, 0.1653718501329422, -0.012594842351973057, -0.07532914727926254, 0.03722688928246498, 0.07421638071537018, -0.36587318778038025, 0.1030081957578659, 0.06787630170583725, 0.2110511213541031, 0.4394555687904358, -0.5699977278709412, -0.38919273018836975, -0.25671547651290894, 0.336124986410141, -0.012821905314922333, 0.43409091234207153, 0.3268583118915558, 0.06517904996871948, -0.3924490511417389, -0.03158162534236908, 0.06209930405020714, 0.117189422249794, 0.3078640401363373, -0.11278234422206879, 0.2178805023431778, 0.14775750041007996, 0.0966559424996376, 0.310443252325058, 0.25998756289482117, -0.1685962677001953, -0.06780175864696503, -0.1201895996928215, -0.06488728523254395, -0.08287365734577179, -0.1950840801000595, -0.0998949259519577, -0.07597624510526657, 0.2276953160762787, -0.34278082847595215, -0.4978284239768982, -0.19363246858119965, -0.04213237017393112, -0.15144139528274536, 0.36886996030807495, -0.03355139121413231, 0.04810202494263649, -0.31006333231925964, 0.08121205121278763, 0.5929702520370483, 0.05898856744170189, -0.046967681497335434, -0.05706961825489998, -0.031673554331064224, -0.12709301710128784, 0.15881796181201935, 0.34954261779785156, 0.25825759768486023, 0.18189993500709534, 0.30386099219322205, 0.3234296441078186, -0.2238258570432663, 0.11724278330802917, 0.3490492105484009, -0.1656644642353058, 0.41741105914115906, 0.16951248049736023, 0.45456963777542114, 0.13954752683639526, 0.07989337295293808, -0.006039739120751619, -0.051672257483005524, 0.05589618161320686, -0.34129875898361206, 0.20896762609481812, -0.16609828174114227, 0.00031309903715737164, -0.22705185413360596, -0.11257413774728775, 0.752551257610321, -0.011421430855989456, 0.4157945513725281, 0.324034720659256, 0.07501993328332901, 0.20132175087928772, -0.39731118083000183, 0.2128920704126358, -0.07044132798910141, -0.1757633239030838, -0.25210681557655334, -0.08026113361120224, 0.07661715149879456, 0.2484796792268753, 0.3066941499710083, -0.2565992474555969, 0.30649593472480774, -0.15340657532215118, 0.36400508880615234, -0.14735446870326996, -0.03101327084004879, 0.17849047482013702, -0.1453540176153183, 0.022734293714165688, 0.26772385835647583, -0.007422744296491146, 0.13764984905719757, -0.14187078177928925, -0.22170384228229523, -0.02392224594950676, -0.328043669462204, -0.27076661586761475, 0.012244663201272488, 0.17272302508354187, -0.20744624733924866, -0.10926040261983871, -0.20890574157238007, 0.19187848269939423, -0.38197165727615356, -0.08983251452445984, -0.0932869091629982, 0.27361077070236206, -0.29581019282341003, 0.028645390644669533, -0.09412071108818054, 0.22988013923168182, -0.10532086342573166, -0.2290385365486145, -0.00535670667886734, -0.1796628087759018, -0.3790591061115265, -0.08644004911184311, -0.3038276433944702, 0.1633995622396469, 0.13663622736930847, 0.17096967995166779, 0.45993539690971375, -0.7958154082298279, -0.2051490992307663, -0.04532730206847191, -0.0983380526304245, -0.3336501121520996, -0.014855015091598034, 0.19886110723018646, 0.36870479583740234, -0.01638249307870865, 0.3256910443305969, 0.3328125774860382, 0.13360999524593353, 0.0028391333762556314, 0.12335044890642166, -0.33190637826919556, -0.1695609837770462, 0.2745168209075928, 0.4304047226905823, 0.2038293331861496, 0.5587081909179688, 0.3512977361679077, 0.033662647008895874, -0.059641655534505844, 0.06441207975149155, -0.12717346847057343, -0.03564668074250221, -0.32381248474121094, 0.06398992985486984, -0.2979219853878021, -0.0076283556409180164, 0.14552052319049835, -0.13262617588043213, -0.13689588010311127, 0.45540115237236023, -0.17536304891109467, -0.6551595330238342, 0.1733388751745224, -0.08741749078035355, 0.43717989325523376, 0.16333533823490143, -0.09972840547561646, -0.21977978944778442, -0.0683867558836937, -0.187545508146286, 0.37487998604774475, -0.41411879658699036, -0.04892260953783989, 0.2908121347427368, 0.27251794934272766, 0.0660582184791565, 0.007105321157723665, 0.27566730976104736, -0.03316173702478409, 0.12032198905944824, 0.31954818964004517, 0.016085950657725334, 0.20874233543872833, -0.1555257886648178, 0.660529375076294, 0.2958778738975525, 0.3234471380710602, 0.37197595834732056, 0.03263918310403824, 0.3140282928943634, -0.24407362937927246, -0.055069562047719955, 0.0425480417907238, -0.39487990736961365, 0.37251681089401245, -0.11987235397100449, -0.07273010909557343, -0.04939937964081764, -0.010420041158795357, 0.11480014026165009, 0.023509008809924126, -0.3019310235977173, -0.3966824412345886, 0.06325778365135193, 0.0021228801924735308, 0.16297869384288788, -0.10668867081403732, 0.38036081194877625, -0.0022941105999052525, 0.18556922674179077, 0.21798409521579742, 0.29914554953575134, -0.14450600743293762, -0.16579358279705048, -0.037156783044338226, 0.23375636339187622, -0.25727716088294983, 0.26805397868156433, 0.21152521669864655, 0.3048703074455261, 0.015769196674227715, -0.1254996657371521, -0.1903895139694214, -0.08196771889925003, -0.049960389733314514, 0.05725063011050224, 0.35613709688186646, 0.2675730586051941, -0.10947716981172562, -0.6063649654388428, 0.124091736972332, 0.03448561951518059, -0.0525784008204937, -0.21140865981578827, -0.17728166282176971, 0.017656497657299042, 0.26947900652885437, 0.6895419955253601, -0.12852859497070312, 0.039482083171606064, -0.3460105359554291, 0.3562275469303131, 0.29762575030326843, -0.09020186960697174, 0.04609516263008118, 0.0415036641061306, 0.6538401246070862, -0.004749598912894726, 0.3065224289894104, -0.1456228345632553, -0.34506797790527344, 0.20241408050060272, 0.07213876396417618, -0.0220208540558815, 0.09862694889307022, 0.24918623268604279, -0.07252893596887589, 0.5385928750038147, -0.26622098684310913, -0.14570365846157074, 0.26370036602020264, 0.17672838270664215, 0.34742292761802673, -0.22335195541381836, 0.17405426502227783, 0.08004248142242432, 0.06896642595529556, 0.1408088058233261, -0.30332374572753906, 0.01637962833046913, -0.08946685492992401, -0.11725782603025436, 0.0011754168663173914, -0.23317328095436096, -0.13089096546173096, -0.15467198193073273, -0.5035755038261414, -0.16882337629795074, 0.4202314019203186, 0.10733242332935333, 0.016042042523622513, 0.07321314513683319, -0.10442526638507843, 0.0737781822681427, -0.12374819070100784, -0.40891584753990173, -0.2824753224849701, 0.296223908662796, -0.48961785435676575, -0.21668626368045807, -0.16970904171466827, 0.13657699525356293, 0.23748189210891724, 0.02519102580845356, -0.18674471974372864, -0.508920431137085, 0.11441483348608017, 0.15208692848682404, 0.150257408618927, -0.0037188343703746796, 0.11589071154594421, -0.03881820663809776, -0.08680799603462219, -0.14418408274650574, 0.03143889829516411, -0.09312435239553452, 0.13160213828086853, -0.41852155327796936, -0.25111836194992065, -0.3111448287963867, 0.09965134412050247, 0.350955605506897, 0.01248170156031847, 0.021741442382335663, 0.24886038899421692, -0.14312806725502014, 0.5219130516052246, -0.16139717400074005, 0.10687814652919769, -0.013712843880057335, 0.068586066365242, 0.1043286994099617, 0.25110748410224915, 0.27584367990493774, -0.005292700137943029, -0.22743377089500427, -0.10046444088220596, -0.05330299586057663, -0.125196173787117, -0.39947906136512756, -0.24268211424350739, 0.011348187923431396, 0.2688198387622833, 0.25448957085609436, -0.5932396650314331, -0.3432523012161255, 0.32984477281570435, 0.10077876597642899, 0.09527798742055893, -0.09342978149652481, -0.2886490821838379, 0.11350613832473755, -0.3257554769515991, 0.16114559769630432, -0.11518479883670807, -0.185042142868042, -0.2095305323600769, 0.09546768665313721, 0.1301981657743454, -0.01896851509809494, 0.08671937137842178, -0.5251911282539368, 0.09780959784984589, -0.1340959519147873, 0.24037112295627594, -0.3408246338367462, 0.1478271186351776, -0.008094475604593754, 0.23431344330310822, -0.3588847815990448, 0.6708778142929077, -0.17016050219535828, -0.08603528887033463, -0.08616513013839722, -0.29921844601631165, -0.2037048488855362, -0.1365308165550232, 0.04217423126101494, -0.12519830465316772, -0.318904846906662, -0.10092845559120178, -0.06916067749261856, 0.14513111114501953, -0.10997103899717331, -0.13696543872356415, -0.2341533601284027, 0.1040622889995575, 0.15060721337795258, 0.32212746143341064, 0.021754398941993713, 0.2804555296897888, -0.24876435101032257, 0.08170188963413239, 0.016145117580890656, -0.19918742775917053, 0.2529369592666626, 0.30543825030326843, -0.13302166759967804, 0.2121722400188446, -0.15350104868412018, -0.08053494989871979, 0.4054310917854309, 0.13017714023590088, -0.06845977902412415, 0.020046407356858253, -0.16925139725208282, -0.4755755066871643, 0.5064475536346436, -0.31624484062194824, -0.17343123257160187, -0.13169918954372406, 0.22861215472221375, 0.607587993144989, 0.17565681040287018, -0.20877401530742645, 0.29694169759750366, -0.005102135241031647, -0.2103813886642456, 0.03813331946730614, 0.2878437638282776, 0.617618978023529, -0.3160104751586914, -0.19850145280361176, 0.11255951225757599, -0.06482718884944916, 0.3161619305610657, -0.43076154589653015, -0.08322203159332275, -0.03798035904765129, -0.07077424973249435, -0.0578136146068573, 0.038763377815485, 0.016785427927970886, 0.12239805608987808, 0.11805303394794464, 0.044981371611356735, -0.20125626027584076, 0.30327385663986206, -0.05353401601314545, 0.34891432523727417, -0.3620021641254425, -0.25702422857284546, 0.15528236329555511, 0.20421569049358368, -0.1688462346792221, 0.1363721787929535, -0.16136111319065094, 0.08604350686073303, -0.04891115054488182, 0.08691254258155823, -0.07257580012083054, -0.2568654417991638, 0.39419853687286377, 0.15161162614822388, -0.010361005552113056, -0.018411386758089066, -0.1356615573167801, 0.030312277376651764, 0.48087480664253235, 0.29519137740135193, -0.45770329236984253, 0.33130815625190735, -0.47881338000297546, 0.02781645953655243, -0.1576385349035263, 0.09303770214319229, -0.0512840710580349, -0.10677981376647949, -0.03030424192547798, 0.10813036561012268, 0.09291108697652817, -0.3802069127559662, 0.05574909970164299, 0.09151345491409302, 0.4058866500854492, -0.20044168829917908, 0.3118089437484741, -0.02143729291856289, 0.08067809045314789, -0.1514202356338501, 0.12550042569637299, -0.025317462161183357, 0.2532365620136261, 0.14338207244873047, 0.3823520243167877, -0.05936354398727417, -0.06362434476613998, 0.2981155514717102, -0.0033742159139364958, -0.4951116144657135, -0.19782547652721405, -0.29040685296058655, -0.24777674674987793, -0.2449062317609787, -0.2746947109699249, 0.11523459106683731, -0.001912388950586319, 0.010119636543095112, 0.09944634884595871, -0.5159976482391357, -0.061182260513305664, 0.23886935412883759, 0.17669306695461273, 0.1344149112701416, -0.1469305455684662, -0.3319329619407654, -0.2284262776374817, 0.41647663712501526, -0.3396420180797577, 0.09392819553613663, 0.12061557173728943, -0.296566367149353, -0.22399437427520752, 0.04526356980204582, -0.3357104957103729, -0.08939157426357269, -0.26253262162208557, -0.07886525988578796, -0.19462184607982635, -0.05032672360539436, -0.24105621874332428, -0.04007328301668167, 0.06905274838209152, 0.05192136764526367, -0.4151647388935089, -0.19620034098625183, -0.00186283013317734, 0.086615651845932, 0.04611953720450401, 0.21669355034828186, -0.06406492739915848, -0.06530306488275528, -0.2110660970211029, -0.187818706035614, 0.27331408858299255, 0.22599540650844574, -0.17245614528656006, -0.2634044289588928, 0.33111897110939026, 0.30647724866867065, 0.0321054644882679, 0.2568712532520294, 0.4074903726577759, 0.26535576581954956, -0.2921159863471985, 0.18303582072257996, 0.05309946462512016, 0.00935005396604538, 0.11709798127412796, 0.3798111081123352, 0.7275308966636658, 0.10337428003549576, 0.21750804781913757, 0.05601557716727257, 0.21226398646831512, 0.04051573947072029, 0.08251240104436874, 0.07219995558261871, -0.07021687179803848, 0.12756632268428802, -0.2860775291919708, 0.18518586456775665, -0.11579115688800812, -0.3732644319534302, -0.11764562129974365, -0.14406827092170715, 0.22525924444198608, 0.06594404578208923, 0.5606566071510315, -0.06105706840753555, 0.2609443664550781, 0.13755491375923157, 0.35409241914749146, -0.1356675773859024, -0.12167547643184662, 0.04584887996315956, -0.06708391010761261, -0.09866098314523697, 0.4281379282474518, 0.04163023829460144, -0.11629589647054672, 0.16634321212768555, -0.12873788177967072, 0.35307493805885315, 0.09499016404151917, 0.37306708097457886, 0.050301603972911835, -0.11676491051912308, 0.18653465807437897, -0.18707455694675446, 0.032618261873722076, -0.013892724178731441, 0.13105027377605438, -0.05789199098944664, -0.11499404162168503, 0.14386223256587982, -0.29127681255340576, -0.22881010174751282, -0.03594718500971794, -0.23395588994026184, -0.49807414412498474, -0.3745129704475403, 0.07004711031913757, -0.03547748550772667, -0.052191246300935745, -0.12795688211917877, -0.1296520233154297, -0.23935867846012115, 0.1470886915922165, 0.03730703517794609, 0.30768701434135437, 0.28044819831848145, -0.08304346352815628, 0.0017973229987546802, 0.19593927264213562, -0.25904449820518494, 0.31590062379837036, 0.2929978668689728, 0.3177109956741333, -0.12404640763998032, -0.10923958569765091, -0.005613153800368309, 0.11977443099021912, -0.040577780455350876, -0.2306961566209793, -0.048471104353666306, 0.026659784838557243, 0.13193351030349731, -0.11819060891866684, 0.3017479181289673, 0.29602178931236267, -0.2056221216917038, 0.05471651628613472, -0.24429857730865479, -0.07383988052606583, -0.17212150990962982, 0.17604538798332214, 0.16733673214912415, -0.12090790271759033, 0.18882986903190613, -0.30754363536834717, 0.024952227249741554, -0.10039740800857544, 0.2315262109041214, -0.1835559755563736, 0.2302582859992981, -0.2710285782814026, 0.10137759894132614, -0.24183477461338043, 0.2523673474788666, 0.1750829666852951, 0.011477623134851456, 0.06973666697740555, -0.17210263013839722, -0.17888766527175903, 0.3307865858078003, 0.27156370878219604, 0.16072121262550354, 0.055255405604839325, 0.08469412475824356, 0.16230344772338867, 0.5018860697746277, -0.13749748468399048, -0.06574375182390213, 0.06003740802407265, -0.2545865476131439, -0.23133715987205505, 0.07199284434318542, 0.3361712396144867, 0.02152222767472267, -0.01836480386555195, -0.18126092851161957, 0.17587172985076904, -0.0357726588845253, 0.039014916867017746, 0.05292247608304024, -0.022138211876153946, 0.13798965513706207, 0.1273961067199707, 0.3364298939704895, -0.1411663144826889, 0.09315929561853409, -0.10256753861904144, 0.25000691413879395, -0.3932205140590668, -0.3044242560863495, -0.05265143886208534, -0.2460862696170807, 0.0031743147410452366, -0.13626772165298462, -0.04824938252568245, -0.11352872103452682, 0.19488228857517242, -0.040014591068029404, 0.06587693840265274, 0.1591673046350479, 0.04116876423358917, -0.15980146825313568, -0.32911190390586853, 0.10161668062210083, -0.17646513879299164, -0.11827059090137482, 0.12367027997970581, 0.13094183802604675, 0.3323730528354645, -0.25872790813446045, 0.2940637469291687, -0.09851489216089249, -0.28324583172798157, -0.12584389746189117, 0.21051788330078125, 0.0858100950717926, -0.21537593007087708, -0.06465364992618561, 0.1521771252155304, 0.2164045125246048, -0.24309073388576508, 0.12702691555023193, 0.3135681748390198, -0.30142268538475037, -0.03590859845280647, -0.24067993462085724, -0.21134640276432037, 0.15935076773166656, 0.019694922491908073, -0.36264172196388245, -0.15804457664489746 ]
https://github.com/huggingface/datasets/issues/3543
Allow loading community metrics from the hub, just like datasets
Here's the code I used, in case it can be of help to someone else: ```python import os, shutil from huggingface_hub import hf_hub_download def download_metric(repo_id, file_path): # repo_id: for models "username/model_name", for datasets "datasets/username/model_name" local_metric_path = hf_hub_download(repo_id=repo_id, filename=file_path) updated_local_metric_path = (os.path.dirname(local_metric_path) + os.path.basename(local_metric_path).replace(".", "_") + ".py") shutil.copy(local_metric_path, updated_local_metric_path) return updated_local_metric_path metric = load_metric(download_metric(REPO_ID, FILE_PATH)) ```
**Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub.
55
Allow loading community metrics from the hub, just like datasets
[ -0.7055341601371765, 0.24416020512580872, -0.22791634500026703, 0.09105894714593887, 0.11619332432746887, 0.01548328809440136, 0.1844848245382309, 0.07976210862398148, 0.5051864981651306, 0.31899333000183105, -0.46900931000709534, 0.37055954337120056, 0.014017215929925442, 0.2293194979429245, -0.21762245893478394, 0.22921602427959442, -0.3132825493812561, 0.04317069798707962, -0.22668567299842834, 0.03371737152338028, 0.11518777161836624, -0.22368654608726501, 0.14916355907917023, 0.26146602630615234, -0.21746614575386047, 0.04568038508296013, 0.3257823586463928, 0.08469271659851074, -0.40253329277038574, -0.26821646094322205, 0.28177788853645325, 0.5901768803596497, -0.036433737725019455, 0.1819186955690384, -0.00010930959251709282, 0.04669894278049469, 0.33788424730300903, 0.19724559783935547, -0.26853445172309875, -0.06017926707863808, -0.297358900308609, -0.05694356933236122, 0.1653718501329422, -0.012594842351973057, -0.07532914727926254, 0.03722688928246498, 0.07421638071537018, -0.36587318778038025, 0.1030081957578659, 0.06787630170583725, 0.2110511213541031, 0.4394555687904358, -0.5699977278709412, -0.38919273018836975, -0.25671547651290894, 0.336124986410141, -0.012821905314922333, 0.43409091234207153, 0.3268583118915558, 0.06517904996871948, -0.3924490511417389, -0.03158162534236908, 0.06209930405020714, 0.117189422249794, 0.3078640401363373, -0.11278234422206879, 0.2178805023431778, 0.14775750041007996, 0.0966559424996376, 0.310443252325058, 0.25998756289482117, -0.1685962677001953, -0.06780175864696503, -0.1201895996928215, -0.06488728523254395, -0.08287365734577179, -0.1950840801000595, -0.0998949259519577, -0.07597624510526657, 0.2276953160762787, -0.34278082847595215, -0.4978284239768982, -0.19363246858119965, -0.04213237017393112, -0.15144139528274536, 0.36886996030807495, -0.03355139121413231, 0.04810202494263649, -0.31006333231925964, 0.08121205121278763, 0.5929702520370483, 0.05898856744170189, -0.046967681497335434, -0.05706961825489998, -0.031673554331064224, -0.12709301710128784, 0.15881796181201935, 0.34954261779785156, 0.25825759768486023, 0.18189993500709534, 0.30386099219322205, 0.3234296441078186, -0.2238258570432663, 0.11724278330802917, 0.3490492105484009, -0.1656644642353058, 0.41741105914115906, 0.16951248049736023, 0.45456963777542114, 0.13954752683639526, 0.07989337295293808, -0.006039739120751619, -0.051672257483005524, 0.05589618161320686, -0.34129875898361206, 0.20896762609481812, -0.16609828174114227, 0.00031309903715737164, -0.22705185413360596, -0.11257413774728775, 0.752551257610321, -0.011421430855989456, 0.4157945513725281, 0.324034720659256, 0.07501993328332901, 0.20132175087928772, -0.39731118083000183, 0.2128920704126358, -0.07044132798910141, -0.1757633239030838, -0.25210681557655334, -0.08026113361120224, 0.07661715149879456, 0.2484796792268753, 0.3066941499710083, -0.2565992474555969, 0.30649593472480774, -0.15340657532215118, 0.36400508880615234, -0.14735446870326996, -0.03101327084004879, 0.17849047482013702, -0.1453540176153183, 0.022734293714165688, 0.26772385835647583, -0.007422744296491146, 0.13764984905719757, -0.14187078177928925, -0.22170384228229523, -0.02392224594950676, -0.328043669462204, -0.27076661586761475, 0.012244663201272488, 0.17272302508354187, -0.20744624733924866, -0.10926040261983871, -0.20890574157238007, 0.19187848269939423, -0.38197165727615356, -0.08983251452445984, -0.0932869091629982, 0.27361077070236206, -0.29581019282341003, 0.028645390644669533, -0.09412071108818054, 0.22988013923168182, -0.10532086342573166, -0.2290385365486145, -0.00535670667886734, -0.1796628087759018, -0.3790591061115265, -0.08644004911184311, -0.3038276433944702, 0.1633995622396469, 0.13663622736930847, 0.17096967995166779, 0.45993539690971375, -0.7958154082298279, -0.2051490992307663, -0.04532730206847191, -0.0983380526304245, -0.3336501121520996, -0.014855015091598034, 0.19886110723018646, 0.36870479583740234, -0.01638249307870865, 0.3256910443305969, 0.3328125774860382, 0.13360999524593353, 0.0028391333762556314, 0.12335044890642166, -0.33190637826919556, -0.1695609837770462, 0.2745168209075928, 0.4304047226905823, 0.2038293331861496, 0.5587081909179688, 0.3512977361679077, 0.033662647008895874, -0.059641655534505844, 0.06441207975149155, -0.12717346847057343, -0.03564668074250221, -0.32381248474121094, 0.06398992985486984, -0.2979219853878021, -0.0076283556409180164, 0.14552052319049835, -0.13262617588043213, -0.13689588010311127, 0.45540115237236023, -0.17536304891109467, -0.6551595330238342, 0.1733388751745224, -0.08741749078035355, 0.43717989325523376, 0.16333533823490143, -0.09972840547561646, -0.21977978944778442, -0.0683867558836937, -0.187545508146286, 0.37487998604774475, -0.41411879658699036, -0.04892260953783989, 0.2908121347427368, 0.27251794934272766, 0.0660582184791565, 0.007105321157723665, 0.27566730976104736, -0.03316173702478409, 0.12032198905944824, 0.31954818964004517, 0.016085950657725334, 0.20874233543872833, -0.1555257886648178, 0.660529375076294, 0.2958778738975525, 0.3234471380710602, 0.37197595834732056, 0.03263918310403824, 0.3140282928943634, -0.24407362937927246, -0.055069562047719955, 0.0425480417907238, -0.39487990736961365, 0.37251681089401245, -0.11987235397100449, -0.07273010909557343, -0.04939937964081764, -0.010420041158795357, 0.11480014026165009, 0.023509008809924126, -0.3019310235977173, -0.3966824412345886, 0.06325778365135193, 0.0021228801924735308, 0.16297869384288788, -0.10668867081403732, 0.38036081194877625, -0.0022941105999052525, 0.18556922674179077, 0.21798409521579742, 0.29914554953575134, -0.14450600743293762, -0.16579358279705048, -0.037156783044338226, 0.23375636339187622, -0.25727716088294983, 0.26805397868156433, 0.21152521669864655, 0.3048703074455261, 0.015769196674227715, -0.1254996657371521, -0.1903895139694214, -0.08196771889925003, -0.049960389733314514, 0.05725063011050224, 0.35613709688186646, 0.2675730586051941, -0.10947716981172562, -0.6063649654388428, 0.124091736972332, 0.03448561951518059, -0.0525784008204937, -0.21140865981578827, -0.17728166282176971, 0.017656497657299042, 0.26947900652885437, 0.6895419955253601, -0.12852859497070312, 0.039482083171606064, -0.3460105359554291, 0.3562275469303131, 0.29762575030326843, -0.09020186960697174, 0.04609516263008118, 0.0415036641061306, 0.6538401246070862, -0.004749598912894726, 0.3065224289894104, -0.1456228345632553, -0.34506797790527344, 0.20241408050060272, 0.07213876396417618, -0.0220208540558815, 0.09862694889307022, 0.24918623268604279, -0.07252893596887589, 0.5385928750038147, -0.26622098684310913, -0.14570365846157074, 0.26370036602020264, 0.17672838270664215, 0.34742292761802673, -0.22335195541381836, 0.17405426502227783, 0.08004248142242432, 0.06896642595529556, 0.1408088058233261, -0.30332374572753906, 0.01637962833046913, -0.08946685492992401, -0.11725782603025436, 0.0011754168663173914, -0.23317328095436096, -0.13089096546173096, -0.15467198193073273, -0.5035755038261414, -0.16882337629795074, 0.4202314019203186, 0.10733242332935333, 0.016042042523622513, 0.07321314513683319, -0.10442526638507843, 0.0737781822681427, -0.12374819070100784, -0.40891584753990173, -0.2824753224849701, 0.296223908662796, -0.48961785435676575, -0.21668626368045807, -0.16970904171466827, 0.13657699525356293, 0.23748189210891724, 0.02519102580845356, -0.18674471974372864, -0.508920431137085, 0.11441483348608017, 0.15208692848682404, 0.150257408618927, -0.0037188343703746796, 0.11589071154594421, -0.03881820663809776, -0.08680799603462219, -0.14418408274650574, 0.03143889829516411, -0.09312435239553452, 0.13160213828086853, -0.41852155327796936, -0.25111836194992065, -0.3111448287963867, 0.09965134412050247, 0.350955605506897, 0.01248170156031847, 0.021741442382335663, 0.24886038899421692, -0.14312806725502014, 0.5219130516052246, -0.16139717400074005, 0.10687814652919769, -0.013712843880057335, 0.068586066365242, 0.1043286994099617, 0.25110748410224915, 0.27584367990493774, -0.005292700137943029, -0.22743377089500427, -0.10046444088220596, -0.05330299586057663, -0.125196173787117, -0.39947906136512756, -0.24268211424350739, 0.011348187923431396, 0.2688198387622833, 0.25448957085609436, -0.5932396650314331, -0.3432523012161255, 0.32984477281570435, 0.10077876597642899, 0.09527798742055893, -0.09342978149652481, -0.2886490821838379, 0.11350613832473755, -0.3257554769515991, 0.16114559769630432, -0.11518479883670807, -0.185042142868042, -0.2095305323600769, 0.09546768665313721, 0.1301981657743454, -0.01896851509809494, 0.08671937137842178, -0.5251911282539368, 0.09780959784984589, -0.1340959519147873, 0.24037112295627594, -0.3408246338367462, 0.1478271186351776, -0.008094475604593754, 0.23431344330310822, -0.3588847815990448, 0.6708778142929077, -0.17016050219535828, -0.08603528887033463, -0.08616513013839722, -0.29921844601631165, -0.2037048488855362, -0.1365308165550232, 0.04217423126101494, -0.12519830465316772, -0.318904846906662, -0.10092845559120178, -0.06916067749261856, 0.14513111114501953, -0.10997103899717331, -0.13696543872356415, -0.2341533601284027, 0.1040622889995575, 0.15060721337795258, 0.32212746143341064, 0.021754398941993713, 0.2804555296897888, -0.24876435101032257, 0.08170188963413239, 0.016145117580890656, -0.19918742775917053, 0.2529369592666626, 0.30543825030326843, -0.13302166759967804, 0.2121722400188446, -0.15350104868412018, -0.08053494989871979, 0.4054310917854309, 0.13017714023590088, -0.06845977902412415, 0.020046407356858253, -0.16925139725208282, -0.4755755066871643, 0.5064475536346436, -0.31624484062194824, -0.17343123257160187, -0.13169918954372406, 0.22861215472221375, 0.607587993144989, 0.17565681040287018, -0.20877401530742645, 0.29694169759750366, -0.005102135241031647, -0.2103813886642456, 0.03813331946730614, 0.2878437638282776, 0.617618978023529, -0.3160104751586914, -0.19850145280361176, 0.11255951225757599, -0.06482718884944916, 0.3161619305610657, -0.43076154589653015, -0.08322203159332275, -0.03798035904765129, -0.07077424973249435, -0.0578136146068573, 0.038763377815485, 0.016785427927970886, 0.12239805608987808, 0.11805303394794464, 0.044981371611356735, -0.20125626027584076, 0.30327385663986206, -0.05353401601314545, 0.34891432523727417, -0.3620021641254425, -0.25702422857284546, 0.15528236329555511, 0.20421569049358368, -0.1688462346792221, 0.1363721787929535, -0.16136111319065094, 0.08604350686073303, -0.04891115054488182, 0.08691254258155823, -0.07257580012083054, -0.2568654417991638, 0.39419853687286377, 0.15161162614822388, -0.010361005552113056, -0.018411386758089066, -0.1356615573167801, 0.030312277376651764, 0.48087480664253235, 0.29519137740135193, -0.45770329236984253, 0.33130815625190735, -0.47881338000297546, 0.02781645953655243, -0.1576385349035263, 0.09303770214319229, -0.0512840710580349, -0.10677981376647949, -0.03030424192547798, 0.10813036561012268, 0.09291108697652817, -0.3802069127559662, 0.05574909970164299, 0.09151345491409302, 0.4058866500854492, -0.20044168829917908, 0.3118089437484741, -0.02143729291856289, 0.08067809045314789, -0.1514202356338501, 0.12550042569637299, -0.025317462161183357, 0.2532365620136261, 0.14338207244873047, 0.3823520243167877, -0.05936354398727417, -0.06362434476613998, 0.2981155514717102, -0.0033742159139364958, -0.4951116144657135, -0.19782547652721405, -0.29040685296058655, -0.24777674674987793, -0.2449062317609787, -0.2746947109699249, 0.11523459106683731, -0.001912388950586319, 0.010119636543095112, 0.09944634884595871, -0.5159976482391357, -0.061182260513305664, 0.23886935412883759, 0.17669306695461273, 0.1344149112701416, -0.1469305455684662, -0.3319329619407654, -0.2284262776374817, 0.41647663712501526, -0.3396420180797577, 0.09392819553613663, 0.12061557173728943, -0.296566367149353, -0.22399437427520752, 0.04526356980204582, -0.3357104957103729, -0.08939157426357269, -0.26253262162208557, -0.07886525988578796, -0.19462184607982635, -0.05032672360539436, -0.24105621874332428, -0.04007328301668167, 0.06905274838209152, 0.05192136764526367, -0.4151647388935089, -0.19620034098625183, -0.00186283013317734, 0.086615651845932, 0.04611953720450401, 0.21669355034828186, -0.06406492739915848, -0.06530306488275528, -0.2110660970211029, -0.187818706035614, 0.27331408858299255, 0.22599540650844574, -0.17245614528656006, -0.2634044289588928, 0.33111897110939026, 0.30647724866867065, 0.0321054644882679, 0.2568712532520294, 0.4074903726577759, 0.26535576581954956, -0.2921159863471985, 0.18303582072257996, 0.05309946462512016, 0.00935005396604538, 0.11709798127412796, 0.3798111081123352, 0.7275308966636658, 0.10337428003549576, 0.21750804781913757, 0.05601557716727257, 0.21226398646831512, 0.04051573947072029, 0.08251240104436874, 0.07219995558261871, -0.07021687179803848, 0.12756632268428802, -0.2860775291919708, 0.18518586456775665, -0.11579115688800812, -0.3732644319534302, -0.11764562129974365, -0.14406827092170715, 0.22525924444198608, 0.06594404578208923, 0.5606566071510315, -0.06105706840753555, 0.2609443664550781, 0.13755491375923157, 0.35409241914749146, -0.1356675773859024, -0.12167547643184662, 0.04584887996315956, -0.06708391010761261, -0.09866098314523697, 0.4281379282474518, 0.04163023829460144, -0.11629589647054672, 0.16634321212768555, -0.12873788177967072, 0.35307493805885315, 0.09499016404151917, 0.37306708097457886, 0.050301603972911835, -0.11676491051912308, 0.18653465807437897, -0.18707455694675446, 0.032618261873722076, -0.013892724178731441, 0.13105027377605438, -0.05789199098944664, -0.11499404162168503, 0.14386223256587982, -0.29127681255340576, -0.22881010174751282, -0.03594718500971794, -0.23395588994026184, -0.49807414412498474, -0.3745129704475403, 0.07004711031913757, -0.03547748550772667, -0.052191246300935745, -0.12795688211917877, -0.1296520233154297, -0.23935867846012115, 0.1470886915922165, 0.03730703517794609, 0.30768701434135437, 0.28044819831848145, -0.08304346352815628, 0.0017973229987546802, 0.19593927264213562, -0.25904449820518494, 0.31590062379837036, 0.2929978668689728, 0.3177109956741333, -0.12404640763998032, -0.10923958569765091, -0.005613153800368309, 0.11977443099021912, -0.040577780455350876, -0.2306961566209793, -0.048471104353666306, 0.026659784838557243, 0.13193351030349731, -0.11819060891866684, 0.3017479181289673, 0.29602178931236267, -0.2056221216917038, 0.05471651628613472, -0.24429857730865479, -0.07383988052606583, -0.17212150990962982, 0.17604538798332214, 0.16733673214912415, -0.12090790271759033, 0.18882986903190613, -0.30754363536834717, 0.024952227249741554, -0.10039740800857544, 0.2315262109041214, -0.1835559755563736, 0.2302582859992981, -0.2710285782814026, 0.10137759894132614, -0.24183477461338043, 0.2523673474788666, 0.1750829666852951, 0.011477623134851456, 0.06973666697740555, -0.17210263013839722, -0.17888766527175903, 0.3307865858078003, 0.27156370878219604, 0.16072121262550354, 0.055255405604839325, 0.08469412475824356, 0.16230344772338867, 0.5018860697746277, -0.13749748468399048, -0.06574375182390213, 0.06003740802407265, -0.2545865476131439, -0.23133715987205505, 0.07199284434318542, 0.3361712396144867, 0.02152222767472267, -0.01836480386555195, -0.18126092851161957, 0.17587172985076904, -0.0357726588845253, 0.039014916867017746, 0.05292247608304024, -0.022138211876153946, 0.13798965513706207, 0.1273961067199707, 0.3364298939704895, -0.1411663144826889, 0.09315929561853409, -0.10256753861904144, 0.25000691413879395, -0.3932205140590668, -0.3044242560863495, -0.05265143886208534, -0.2460862696170807, 0.0031743147410452366, -0.13626772165298462, -0.04824938252568245, -0.11352872103452682, 0.19488228857517242, -0.040014591068029404, 0.06587693840265274, 0.1591673046350479, 0.04116876423358917, -0.15980146825313568, -0.32911190390586853, 0.10161668062210083, -0.17646513879299164, -0.11827059090137482, 0.12367027997970581, 0.13094183802604675, 0.3323730528354645, -0.25872790813446045, 0.2940637469291687, -0.09851489216089249, -0.28324583172798157, -0.12584389746189117, 0.21051788330078125, 0.0858100950717926, -0.21537593007087708, -0.06465364992618561, 0.1521771252155304, 0.2164045125246048, -0.24309073388576508, 0.12702691555023193, 0.3135681748390198, -0.30142268538475037, -0.03590859845280647, -0.24067993462085724, -0.21134640276432037, 0.15935076773166656, 0.019694922491908073, -0.36264172196388245, -0.15804457664489746 ]
https://github.com/huggingface/datasets/issues/3533
Task search function on hub not working correctly
Because it has dots in some YAML keys, it can't be parsed and indexed by the back-end
When I want to look at all datasets of the category: `speech-processing` *i.e.* https://huggingface.co/datasets?task_categories=task_categories:speech-processing&sort=downloads , then the following dataset doesn't show up for some reason: - https://huggingface.co/datasets/speech_commands even thought it's task tags seem correct: https://raw.githubusercontent.com/huggingface/datasets/master/datasets/speech_commands/README.md
17
Task search function on hub not working correctly
[ -0.026619350537657738, -0.672313928604126, -0.281961053609848, 0.07368943095207214, -0.03560229390859604, -0.5064089298248291, 0.10645879060029984, 0.25230973958969116, 0.5145962834358215, 0.3192692995071411, -0.3244582712650299, 0.05097758024930954, -0.06768796592950821, 0.0035110819153487682, -0.3527192175388336, 0.2887483835220337, 0.11801314353942871, 0.12227531522512436, 0.08996423333883286, -0.09206300228834152, -0.258513480424881, 0.3155984878540039, -0.2918834984302521, 0.35155755281448364, -0.22728277742862701, 0.16649837791919708, 0.22309158742427826, 0.22602085769176483, 0.00031174099422059953, 0.2722296416759491, 0.14928068220615387, 0.1819685846567154, -0.3263283669948578, 0.31881850957870483, -0.00010958778148051351, 0.02270849421620369, 0.4106118977069855, -0.07281985878944397, 0.01667880266904831, -0.03284987062215805, -0.22355370223522186, 0.41621673107147217, 0.07730993628501892, -0.09539924561977386, -0.47211161255836487, 0.4458886682987213, -0.06892800331115723, 0.14592044055461884, -0.04146864637732506, 0.3071703016757965, 0.29471835494041443, 0.3649476170539856, -0.10615161061286926, -0.13704940676689148, 0.1714571714401245, -0.0008519993862137198, -0.18978066742420197, -0.0038074443582445383, 0.6752634644508362, -0.06434264034032822, -0.03798467665910721, 0.29662781953811646, 0.06674598902463913, -0.07022013515233994, 0.1710137277841568, 0.02770838886499405, 0.011516452766954899, -0.16377811133861542, 0.2773802578449249, -0.22327107191085815, -0.03756805881857872, 0.09486551582813263, 0.33855339884757996, -0.15347856283187866, -0.44464296102523804, 0.35476645827293396, 0.31023818254470825, -0.22619043290615082, -0.14947442710399628, 0.008250688202679157, 0.26568368077278137, -0.39459800720214844, -0.09020285308361053, -0.0674811378121376, 0.07002516090869904, 0.3110053539276123, -0.11787929385900497, -0.12075252085924149, -0.1208491399884224, -0.052016351372003555, 0.44749361276626587, -0.04037487134337425, -0.0067163328640162945, -0.09140332788228989, -0.24977651238441467, -0.23790661990642548, 0.34952208399772644, 0.21073327958583832, -0.09133555740118027, 0.24592608213424683, 0.14941373467445374, 0.4924968183040619, -0.19654615223407745, -0.09882792830467224, 0.15774717926979065, 0.34904858469963074, 0.41002750396728516, -0.13241809606552124, 0.13365775346755981, 0.012097595259547234, -0.2702675461769104, 0.1696266233921051, -0.142091765999794, -0.08673577755689621, -0.2469392567873001, 0.015395618043839931, 0.21507346630096436, -0.09561899304389954, -0.021550863981246948, -0.16922512650489807, 0.32006338238716125, -0.1154882088303566, 0.19463235139846802, 0.3039538860321045, -0.17323178052902222, -0.019705167040228844, -0.26481980085372925, 0.13608808815479279, -0.5228294134140015, 0.1184057742357254, -0.37265196442604065, 0.055512771010398865, -0.08769530802965164, -0.19944261014461517, 0.10881202667951584, -0.20340053737163544, 0.2983202636241913, -0.36563098430633545, 0.1804949939250946, -0.22229009866714478, -0.22352857887744904, -0.25713446736335754, 0.23302043974399567, 0.057138871401548386, 0.07435803860425949, -0.19624648988246918, -0.20079900324344635, -0.010813829489052296, 0.07781390845775604, 0.21387864649295807, -0.2394239753484726, -0.0839674323797226, -0.001106607960537076, 0.22674231231212616, -0.11151070892810822, 0.1161816343665123, -0.2134333997964859, 0.2561265528202057, -0.36521124839782715, 0.18307238817214966, -0.07895030826330185, 0.014635046944022179, -0.06027376651763916, -0.010550708509981632, -0.05053044855594635, 0.002789015183225274, 0.6206892728805542, 0.00639011524617672, 0.08181395381689072, -0.09675966948270798, -0.045870307832956314, -0.04028446227312088, 0.005052805878221989, 0.5372573733329773, -0.14473338425159454, 0.5328657627105713, 0.3008823096752167, -0.6462226510047913, -0.41503584384918213, -0.21071217954158783, -0.2608940899372101, -0.11881732940673828, -0.2234342247247696, 0.006722996477037668, 0.10231341421604156, -0.013315128162503242, 0.30691224336624146, 0.009388347156345844, 0.21416351199150085, 0.15675772726535797, -0.109047070145607, 0.16865600645542145, -0.20864321291446686, 0.2658631503582001, 0.4560283422470093, 0.1306980401277542, 0.14895497262477875, 0.2112051099538803, 0.22079792618751526, 0.21992726624011993, -0.01518248114734888, -0.16054698824882507, 0.2604690194129944, 0.030437367036938667, 0.20975641906261444, -0.21274253726005554, -0.027681268751621246, 0.030453987419605255, -0.12451360374689102, 0.11347001045942307, 0.06770195066928864, 0.32794618606567383, -0.3673244118690491, -0.12997756898403168, -0.40358632802963257, 0.04850197583436966, 0.23499208688735962, -0.048371244221925735, -0.08261938393115997, -0.3441429138183594, 0.10675878822803497, 0.2649155557155609, -0.12558342516422272, -0.06797127425670624, -0.08021645992994308, 0.4000045657157898, -0.09758391976356506, -0.16646727919578552, -0.16308997571468353, 0.04673563688993454, 0.44097626209259033, 0.18481983244419098, -0.04973743483424187, -0.003092549042776227, 0.044334251433610916, 0.0555521622300148, 0.2109040766954422, -0.0856056958436966, -0.09025947004556656, -0.24191968142986298, 0.025415170937776566, 0.1908809244632721, 0.23921680450439453, 0.04304768145084381, -0.09524240344762802, -0.15928250551223755, -0.11075471341609955, 0.16299021244049072, -0.02378777600824833, -0.3071281313896179, 0.012154404073953629, -0.15619418025016785, 0.15971335768699646, -0.051519088447093964, 0.16064713895320892, 0.1642291247844696, -0.33390235900878906, -0.12722201645374298, -0.29938623309135437, 0.2440638244152069, 0.45727282762527466, 0.18290138244628906, 0.24064144492149353, -0.019137701019644737, 0.0036540741566568613, 0.04986385628581047, 0.16377755999565125, -0.49018600583076477, 0.13246877491474152, 0.12389480322599411, 0.11982652544975281, 0.012047767639160156, 0.10409432649612427, -0.20773980021476746, -0.01616058684885502, 0.1732603907585144, 0.1560705006122589, 0.20928901433944702, 0.18133066594600677, -0.24264094233512878, -0.2731865346431732, -0.06408815830945969, -0.15193206071853638, -0.20377397537231445, -0.09459580481052399, -0.34651362895965576, -0.009984724223613739, 0.064726322889328, 0.1091507077217102, 0.3294486701488495, 0.22517040371894836, -0.024449963122606277, 0.2437548041343689, 0.381449818611145, 0.0788145437836647, 0.11760968714952469, 0.26101067662239075, 0.14754465222358704, -0.14267370104789734, 0.03683585301041603, 0.03229595348238945, 0.010827875696122646, -0.032868172973394394, 0.18926675617694855, -0.3164921998977661, 0.3543587028980255, -0.03052576631307602, -0.2981877028942108, 0.3785783052444458, -0.2131681889295578, -0.10537112504243851, 0.22465090453624725, 0.06581861525774002, -0.10608070343732834, -0.33465349674224854, -0.14725059270858765, -0.17442846298217773, 0.10226523876190186, 0.14360585808753967, -0.32642480731010437, -0.15263530611991882, -0.13841493427753448, 0.10476446151733398, 0.13121268153190613, -0.020984040573239326, -0.23224639892578125, 0.009780960157513618, -0.2131875604391098, -0.037953879684209824, -0.09981858730316162, 0.09816143661737442, 0.40696558356285095, -0.12244970351457596, -0.3161216974258423, -0.024074450135231018, 0.04848547652363777, -0.393762469291687, 0.14900901913642883, 0.10940984636545181, -0.32047754526138306, -0.19427044689655304, -0.20328454673290253, -0.10760033130645752, 0.03530357405543327, 0.03066718950867653, 0.2815929055213928, -0.16092658042907715, 0.04748843237757683, -0.06271123886108398, -0.01632021740078926, -0.05497496947646141, 0.21055607497692108, -0.16839247941970825, -0.22366507351398468, -0.13695994019508362, -0.22481529414653778, 0.24073176085948944, 0.44571810960769653, 0.11670605838298798, 0.2171531766653061, -0.397643506526947, -0.26045989990234375, 0.21687167882919312, -0.08744475990533829, 0.24935530126094818, 0.34771081805229187, -0.04773007705807686, 0.10117389261722565, -0.10588045418262482, -0.10447029769420624, 0.3502067029476166, 0.32272735238075256, 0.0901942178606987, 0.2041679322719574, 0.21160905063152313, 0.0018195824231952429, -0.14210739731788635, -0.5190340280532837, -0.5660199522972107, -0.2138960212469101, -0.11764999479055405, 0.29844048619270325, -0.14995409548282623, 0.2464086413383484, 0.43628212809562683, -0.18762321770191193, -0.2256821244955063, 0.18471744656562805, -0.03346081078052521, -0.22764143347740173, -0.3951718211174011, 0.20566803216934204, -0.35429316759109497, -0.31754249334335327, -0.026845235377550125, -0.17067083716392517, 0.07123409956693649, -0.05644010379910469, -0.2733871340751648, 0.059180308133363724, -0.01601770892739296, 0.6872374415397644, -0.20089638233184814, 0.3855026364326477, -0.2914181351661682, 0.03766161948442459, -0.18357978761196136, -0.027424262836575508, -0.007487648166716099, 0.27498307824134827, -0.4271593391895294, 0.4640390872955322, 0.010437619872391224, -0.07405782490968704, -0.26889029145240784, -0.45218271017074585, -0.03862772509455681, -0.20715104043483734, -0.2150474637746811, -0.2176380455493927, -0.017976919189095497, 0.14887681603431702, 0.277893602848053, 0.08572287857532501, 0.05841218680143356, -0.3713933229446411, -0.023654203861951828, -0.08288389444351196, -0.047150868922472, 0.11277345567941666, 0.2715553641319275, 0.3140696585178375, -0.06473828852176666, 0.07483895123004913, 0.0951477587223053, -0.1512816697359085, 0.2208423614501953, 0.11796442419290543, 0.4695204496383667, 0.25876954197883606, -0.26079705357551575, -0.04768292233347893, 0.4655800461769104, 0.11720592528581619, 0.12093750387430191, -0.3219412863254547, 0.07393179088830948, -0.1746051162481308, 0.1818055361509323, 0.07154374569654465, 0.08536860346794128, 0.058940667659044266, 0.24697783589363098, 0.01297890767455101, -0.14570499956607819, -0.2657284736633301, 0.20878471434116364, -0.04906323179602623, -0.06187843531370163, -0.2596026062965393, -0.18607191741466522, 0.6875090003013611, 0.21341347694396973, -0.38410866260528564, 0.05213530361652374, -0.3929014801979065, -0.07645304501056671, -0.25635263323783875, 0.24391883611679077, -0.13149675726890564, -0.2916886806488037, 0.03246399760246277, -0.051061760634183884, -0.2678396999835968, -0.022196177393198013, 0.012858420610427856, 0.4109993577003479, 0.1869993805885315, 0.5403822660446167, -0.1026885062456131, 0.1730143278837204, 0.0298931822180748, 0.05930253863334656, -0.06522238254547119, 0.21182341873645782, -0.031109558418393135, 0.5148189067840576, -0.0681210532784462, 0.14104995131492615, -0.14681798219680786, -0.0754488930106163, 0.0646737739443779, 0.30716872215270996, 0.36006900668144226, -0.10781117528676987, 0.27818727493286133, -0.10390936583280563, -0.04024393856525421, -0.44676104187965393, 0.14998333156108856, 0.0862627923488617, -0.2121504247188568, 0.4140668511390686, 0.24792031943798065, 0.1856992095708847, -0.12290525436401367, -0.07013439387083054, -0.10361047834157944, -0.19703644514083862, -0.35509994626045227, -0.10807766020298004, 0.124860480427742, -0.26009151339530945, -0.34877532720565796, 0.2862207889556885, -0.02594917081296444, 0.08333185315132141, 0.0528244785964489, 0.10250430554151535, -0.01524147018790245, -0.16294929385185242, 0.20755590498447418, -0.17220869660377502, 0.06103622913360596, 0.3734529912471771, 0.07657963782548904, -0.17684099078178406, -0.07672243565320969, 0.24691525101661682, 0.2921111583709717, -0.08556917309761047, -0.034689705818891525, -0.0046553825959563255, -0.1721879094839096, -0.3150860667228699, -0.13645495474338531, 0.26996535062789917, 0.05078565329313278, 0.06616683304309845, -0.33587080240249634, -0.4619347155094147, 0.27561154961586, 0.5289562344551086, -0.11361517012119293, 0.10956556349992752, -0.26212233304977417, 0.12584823369979858, -0.07063561677932739, 0.15601873397827148, -0.05871575325727463, -0.13378013670444489, -0.03640119731426239, -0.14081573486328125, 0.5959233641624451, -0.35731130838394165, -0.39493754506111145, -0.08590489625930786, -0.4736555516719818, 0.1304587572813034, -0.7791320085525513, -0.1399870067834854, 0.17127931118011475, -0.1081635132431984, 0.08060010522603989, 0.08251116424798965, -0.23084628582000732, -0.3403627574443817, 0.10458117723464966, 0.047212157398462296, 0.06373158097267151, 0.24314576387405396, -0.3009965717792511, -0.11802789568901062, 0.02947324886918068, -0.044828590005636215, -0.03156309574842453, 0.03383202105760574, 0.2483418732881546, -0.15788912773132324, 0.618768036365509, -0.26350855827331543, 0.18169045448303223, 0.1516849398612976, 0.11038190871477127, 0.38426917791366577, -0.15483708679676056, -0.2759147882461548, 0.14471890032291412, 0.03192686662077904, -0.00016380476881749928, 0.23146909475326538, 0.18348504602909088, 0.14612457156181335, -0.20027899742126465, 0.04981585964560509, -0.1391141265630722, -0.06871463358402252, 0.014947871677577496, 0.17229251563549042, 0.06625784188508987, -0.4615248143672943, 0.013865050859749317, 0.28148385882377625, -0.25398722290992737, -0.08889787644147873, 0.06039556488394737, -0.21053507924079895, 0.19752006232738495, 0.18303091824054718, -0.0918760746717453, -0.024507716298103333, 0.35997331142425537, 0.37914082407951355, 0.261139452457428, -0.23671850562095642, -0.08343303948640823, -0.299854576587677, 0.26714301109313965, 0.0910157784819603, 0.5697985291481018, -0.12146510928869247, -0.047081876546144485, 0.4465620517730713, 0.4350365102291107, 0.07217646390199661, 0.08639180660247803, 0.3781706392765045, 0.27956685423851013, 0.14732953906059265, -0.3758813738822937, -0.041305821388959885, -0.263990581035614, -0.07052386552095413, 0.04409414902329445, -0.09761442244052887, -0.15182168781757355, -0.029094552621245384, -0.03093758225440979, -0.10286730527877808, -0.18798844516277313, 0.17429929971694946, -0.14738138020038605, -0.3071451783180237, -0.02201295830309391, 0.014221000485122204, 0.059366531670093536, 0.18711283802986145, -0.0428503155708313, -0.3202637732028961, -0.20506909489631653, 0.4521753787994385, -0.04000554606318474, 0.059671372175216675, 0.10198923200368881, -0.03322574496269226, 0.09201912581920624, -0.22001437842845917, 0.23465147614479065, 0.0982913002371788, 0.3900756239891052, -0.1375681310892105, 0.19157089293003082, -0.4515628516674042, -0.3433142900466919, 0.28282052278518677, -0.2135322093963623, -0.21274901926517487, 0.18838047981262207, 0.24645516276359558, 0.001263077836483717, 0.09832927584648132, 0.26043465733528137, -0.30501407384872437, 0.3279658555984497, 0.19147337973117828, -0.07323847711086273, 0.23397766053676605, 0.3272705078125, 0.17943841218948364, 0.07282090187072754, -0.08694513887166977, -0.1622154414653778, -0.5628823041915894, 0.09093169122934341, -0.18231351673603058, -0.2858538031578064, 0.14277559518814087, -0.21515730023384094, 0.1461145430803299, 0.2275572419166565, 0.18837715685367584, -0.12509170174598694, 0.1479129195213318, -0.047223012894392014, -0.2565914988517761, -0.0013864552602171898, 0.33728888630867004, 0.12312405556440353, 0.022186633199453354, 0.15046219527721405, -0.01559754740446806, -0.10559486597776413, -0.04645465686917305, 0.05386168509721756, -0.09068109095096588, 0.3747096657752991, -0.1597265750169754, -0.3492870628833771, 0.29287272691726685, 0.3420223295688629, 0.08589459210634232, 0.24204093217849731, -0.13997948169708252, 0.23641367256641388, -0.19203121960163116, 0.13568201661109924, 0.15938645601272583, -0.034024838358163834, 0.06687390059232712, -0.2468012273311615, 0.35452884435653687, -0.3260127007961273, 0.0003934355918318033, -0.2626025974750519, 0.38638025522232056, 0.03774820268154144, -0.058051325380802155, -0.036871545016765594, -0.3913993239402771, -0.019461842253804207, -0.11893464624881744, 0.18446719646453857, 0.17549893260002136, 0.07817622274160385, -0.20092400908470154, 0.14075295627117157, 0.43683353066444397, 0.1477459967136383, 0.11491075158119202, -0.09370109438896179, 0.020189132541418076, -0.19952018558979034, -0.02215946838259697, -0.0933956578373909, -0.04506292939186096, -0.11209043860435486, -0.3595599830150604, 0.2824631631374359, 0.3473583459854126, -0.5555064678192139, -0.41610288619995117, 0.16749154031276703, -0.15253204107284546, -0.059994492679834366, 0.06199278309941292, -0.07953155040740967, 0.025134844705462456, 0.22305332124233246, 0.08395572006702423, 0.17298530042171478, 0.09416409581899643, -0.060435377061367035, 0.07973608374595642, -0.4123404324054718, 0.4607674777507782, 0.04589419066905975, -0.13309450447559357, 0.006314695812761784 ]
https://github.com/huggingface/datasets/issues/3518
Add PubMed Central Open Access dataset
In the framework of BigScience: - bigscience-workshop/data_tooling#121 I have created this dataset as a community dataset: https://huggingface.co/datasets/albertvillanova/pmc_open_access However, I was wondering that it may be more appropriate to move it under an org namespace: `pubmed_central` or `pmc` This way, we could add other datasets I'm also working on: Author Manuscript Dataset, Historical OCR Dataset, LitArch Open Access Subset. What do you think? @lhoestq @mariosasko
## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
64
Add PubMed Central Open Access dataset
[ -0.3484240472316742, 0.18602736294269562, -0.1762571930885315, -0.3280700743198395, -0.09899099916219711, -0.027148129418492317, 0.1611034870147705, 0.08770399540662766, -0.09287277609109879, 0.1606835275888443, -0.10934045165777206, 0.07920537143945694, -0.06317378580570221, 0.10675978660583496, 0.024000367149710655, -0.152607724070549, 0.048279229551553726, 0.2173142433166504, 0.03579072281718254, -0.3432442843914032, -0.08956936746835709, 0.1654110550880432, -0.274429053068161, -0.3035847544670105, 0.3406864404678345, -0.07932828366756439, -0.02487878128886223, -0.016179462894797325, -0.31619954109191895, -0.35302039980888367, -0.14688640832901, 0.3335067629814148, -0.10686197876930237, 0.2795407176017761, -0.00010433113493490964, -0.01653115823864937, -0.14083975553512573, 0.2017946094274521, -0.15851464867591858, 0.05051220580935478, -0.02633308619260788, -0.3848842978477478, 0.08747439831495285, -0.18088047206401825, -0.19938139617443085, -0.6370585560798645, 0.11979959905147552, -0.5627227425575256, -0.002083027735352516, 0.22179290652275085, 0.27232834696769714, 0.1868767887353897, 0.06282386183738708, -0.33956828713417053, 0.1526578813791275, -0.16526438295841217, -0.04609338194131851, 0.1936575174331665, 0.520504891872406, 0.28949323296546936, 0.08454081416130066, 0.1436527967453003, -0.0165281780064106, -0.15486837923526764, 0.09096767008304596, 0.170096755027771, -0.15186163783073425, 0.0030634596478194, 0.1710834503173828, 0.15740154683589935, 0.6221920847892761, -0.12171441316604614, -0.20480342209339142, 0.30881279706954956, 0.004411514848470688, 0.15268582105636597, -0.11787848174571991, 0.3182353377342224, 0.05104253068566322, 0.18227174878120422, 0.036122869700193405, -0.5470338463783264, -0.21820160746574402, 0.14688175916671753, 0.0789768397808075, 0.09390054643154144, -0.059537019580602646, -0.02796630747616291, -0.08130009472370148, 0.019513074308633804, 0.05947656184434891, -0.02565767802298069, 0.1734539419412613, 0.13014820218086243, 0.29862162470817566, -0.06976515799760818, -0.0286379624158144, -0.2386406809091568, 0.12801942229270935, 0.3899761438369751, 0.21157895028591156, -0.008851512335240841, -0.01678118109703064, -0.1287596970796585, 0.3341189920902252, -0.4075685739517212, -0.37165242433547974, 0.5514035224914551, 0.2855912148952484, -0.22312621772289276, 0.11973627656698227, 0.012373235076665878, 0.2513006031513214, 0.10726837813854218, 0.03898250311613083, -0.2957651615142822, 0.26986026763916016, -0.16270282864570618, 0.4278205931186676, 0.13641010224819183, 0.5162881016731262, 0.05415940657258034, -0.3076135814189911, 0.29764053225517273, 0.02490205690264702, -0.12431082129478455, 0.15889596939086914, 0.23264548182487488, 0.0643785297870636, 0.004132441710680723, -0.20205748081207275, -0.026123054325580597, 0.03518446534872055, 0.14944568276405334, 0.2123827189207077, -0.23641107976436615, 0.11252236366271973, -0.09502912312746048, 0.03757667914032936, 0.07861869782209396, 0.15602827072143555, 0.2452162504196167, 0.17996828258037567, 0.2770735025405884, 0.20129723846912384, 0.19490550458431244, -0.07644665986299515, -0.05810583755373955, -0.128774955868721, -0.04638310894370079, -0.014449410140514374, -0.4160158336162567, -0.754082977771759, 0.21093745529651642, -0.07745487242937088, -0.04690263792872429, 0.19621211290359497, -0.06284903734922409, -0.009824597276747227, -0.4395848214626312, -0.047897819429636, 0.24432972073554993, 0.06373883783817291, -0.12193414568901062, 0.21368232369422913, 0.07773934304714203, 0.1680862009525299, 0.18344992399215698, -0.04370981827378273, 0.20297549664974213, 0.028277765959501266, 0.0373961366713047, -0.08758459240198135, -0.08460542559623718, -0.041479360312223434, 0.04749341681599617, 0.7114037871360779, -0.616678774356842, -0.5428736209869385, -0.09016900509595871, -0.12466276437044144, -0.7724927067756653, 0.17687857151031494, 0.011608347296714783, 0.1960059553384781, 0.05074136704206467, 0.0932290330529213, 0.07159867882728577, -0.05336342751979828, 0.3302350342273712, -0.17224669456481934, -0.07391025871038437, -0.31476515531539917, 0.3264819085597992, 0.3047724962234497, 0.06098480895161629, 0.5175565481185913, 0.36256664991378784, 0.244370698928833, 0.04471968859434128, 0.04223467409610748, -0.037015002220869064, 0.15488797426223755, -0.3811568319797516, 0.23080354928970337, -0.1772601455450058, 0.2687244713306427, -0.2440498024225235, 0.08470222353935242, 0.5183821320533752, -0.1557740718126297, -0.16131070256233215, -0.17195823788642883, -0.1041584238409996, 0.028827298432588577, 0.37581589818000793, 0.24919340014457703, 0.11130278557538986, -0.1109619215130806, 0.13297627866268158, -0.19844657182693481, -0.2811279296875, 0.037949513643980026, 0.001236743526533246, -0.18841230869293213, 0.16830982267856598, -0.14499163627624512, 0.09170256555080414, 0.2783302366733551, 0.04430682584643364, -0.037440672516822815, 0.11688557267189026, 0.18761691451072693, 0.11799245327711105, -0.41346779465675354, 0.471348375082016, 0.60569167137146, 0.16491474211215973, 0.12699231505393982, -0.5629722476005554, 0.28790220618247986, 0.03792375698685646, -0.05376559868454933, 0.11742664873600006, -0.018570488318800926, -0.04190025478601456, 0.1112142950296402, -0.14869268238544464, 0.02640646882355213, 0.11811705678701401, 0.23438118398189545, 0.006655727047473192, -0.1804998219013214, -0.44823935627937317, -0.03941800072789192, 0.23703300952911377, -0.23746050894260406, -0.08611045032739639, -0.1380310356616974, 0.21294331550598145, 0.16857406497001648, -0.04024225473403931, 0.14775854349136353, -0.3225157856941223, -0.24689516425132751, -0.005813445430248976, 0.24840544164180756, 0.21266764402389526, 0.1708465814590454, 0.35037463903427124, 0.20813675224781036, 0.21958594024181366, 0.10777363926172256, -0.18180213868618011, 0.14036713540554047, 0.14050070941448212, -0.031447917222976685, 0.28370338678359985, 0.1185549721121788, 0.2295386642217636, -0.21080364286899567, 0.015533920377492905, 0.03812989965081215, 0.17553547024726868, -0.07298796623945236, -0.2391848862171173, -0.1769973784685135, 0.31158846616744995, 0.15230995416641235, 0.13300099968910217, 0.19058912992477417, -0.12095870077610016, 0.16337892413139343, 0.16414572298526764, -0.06553497165441513, -0.0334685854613781, -0.6456766724586487, 0.4895983338356018, -0.29322993755340576, -0.08248031884431839, 0.11148741841316223, -0.07544362545013428, 0.14239327609539032, 0.19492045044898987, 0.056656207889318466, 0.07796978205442429, 0.5025556087493896, -0.0628151148557663, 0.33366820216178894, -0.4887547194957733, -0.07978235930204391, 0.022152747958898544, 0.09733611345291138, -0.06526454538106918, 0.0797712653875351, 0.24682040512561798, -0.11593393236398697, -0.019744321703910828, -0.1211920902132988, -0.2937436103820801, -0.03870774060487747, -0.26197749376296997, -0.19506579637527466, -0.22203031182289124, -0.06134505942463875, -0.6472618579864502, -0.29691973328590393, -0.27965113520622253, -0.06709560751914978, 0.04641076922416687, 0.07991177588701248, 0.11970913410186768, -0.12414616346359253, -0.022529903799295425, 0.06107204779982567, 0.28243210911750793, -0.26335057616233826, -0.09404213726520538, 0.2569771111011505, -0.5474908947944641, -0.5957510471343994, 0.06818416714668274, -0.1867780089378357, 0.09037697315216064, 0.11375326663255692, -0.4492570459842682, 0.10579615831375122, 0.16903835535049438, -0.21906037628650665, 0.24799108505249023, 0.15236905217170715, 0.45740193128585815, 0.1735517829656601, -0.2602522373199463, 0.01055667269974947, -0.011593641713261604, -0.02102419175207615, 0.1031610444188118, 0.0450533926486969, -0.06560078263282776, -0.37698832154273987, -0.11331475526094437, 0.9777907729148865, 0.05063105747103691, 0.10870719701051712, 0.2614777982234955, -0.20333772897720337, 0.2760487496852875, 0.03419423848390579, -0.24504566192626953, -0.0185007993131876, 0.16491755843162537, 0.3060031533241272, 0.22838138043880463, 0.19586583971977234, -0.24007077515125275, -0.05789228901267052, -0.2943279445171356, -0.7035285234451294, -0.2984374761581421, -0.11300861090421677, -0.09689422696828842, 0.28359106183052063, 0.3022060990333557, -0.18477971851825714, -0.36704501509666443, -0.3381420075893402, -0.15502673387527466, 0.2540893852710724, -0.1459626853466034, -0.09364540129899979, -0.24489128589630127, 0.03463577479124069, -0.3662383556365967, 0.3229043483734131, -0.08643149584531784, -0.1516815572977066, -0.24251078069210052, -0.037607692182064056, -0.04417865723371506, -0.15579479932785034, -0.10383402556180954, -0.4292072653770447, -0.12316682189702988, -0.0005335427704267204, 0.33208203315734863, -0.23321273922920227, 0.08068148791790009, 0.06181773543357849, 0.2166348695755005, -0.06089534983038902, 0.2486320436000824, -0.20810768008232117, 0.11118216067552567, 0.5764455199241638, -0.2311534732580185, -0.04610208421945572, -0.1198800578713417, 0.1353566199541092, -0.5735899806022644, -0.2639039158821106, -0.19623155891895294, -0.08793208003044128, 0.13312587141990662, 0.08827973902225494, -0.32070720195770264, 0.14215585589408875, 0.16710300743579865, 0.21265669167041779, -0.11056207865476608, 0.10870344191789627, 0.4775595963001251, 0.14831821620464325, 0.11050664633512497, 0.16119995713233948, 0.22079671919345856, 0.5061677694320679, -0.1692924052476883, 0.26030102372169495, 0.32490912079811096, -0.14857915043830872, 0.1001727432012558, 0.26003560423851013, 0.15118122100830078, 0.02924937754869461, 0.5426658987998962, -0.10967103391885757, 0.3184640407562256, 0.24588385224342346, 0.09028328210115433, -0.12866006791591644, -0.3951294422149658, -0.3040672242641449, 0.3438076376914978, -0.003807987319305539, -0.21628724038600922, 0.2628767788410187, 0.5463394522666931, -0.007140615023672581, 0.2535674571990967, -0.14189065992832184, 0.8630286455154419, -0.11054463684558868, 0.12958593666553497, -0.10513279587030411, -0.07998427003622055, 0.22059909999370575, -0.20008355379104614, -0.10043298453092575, -0.2520774006843567, -0.38068273663520813, -0.051883500069379807, 0.03655407950282097, -0.03531579300761223, -0.027920646592974663, -0.1347680240869522, -0.2209688127040863, 0.453978031873703, 0.16139522194862366, 0.031099898740649223, 0.5330498814582825, 0.026121830567717552, -0.23512324690818787, -0.10347124189138412, 0.19707359373569489, 0.1287904679775238, -0.21957454085350037, 0.01990140974521637, 0.001884321914985776, -0.25884902477264404, -0.22942321002483368, -0.24821610748767853, -0.10773133486509323, 0.3444793224334717, 0.002887410344555974, 0.16419614851474762, -0.2364259511232376, 0.03960046172142029, 0.08049922436475754, 0.3611595332622528, 0.19509559869766235, -0.2366243600845337, 0.10248512774705887, 0.07401739805936813, -0.42270466685295105, 0.010819196701049805, 0.12397095561027527, 0.134674534201622, -0.4251638352870941, -0.3443240523338318, 0.17203296720981598, 0.0198188629001379, -0.490040123462677, -0.021234886720776558, -0.05842387676239014, 0.17313091456890106, -0.26738888025283813, 0.25635915994644165, 0.3452538549900055, -0.12916965782642365, -0.07288599014282227, 0.16426685452461243, 0.14875304698944092, 0.07792339473962784, 0.14045996963977814, 0.5424807667732239, -0.13747845590114594, -0.15948228538036346, 0.04174262657761574, 0.49752888083457947, -0.07852274179458618, 0.2278590351343155, -0.1468467116355896, -0.04822424426674843, -0.2608143091201782, -0.14557524025440216, 0.13376463949680328, 0.02015611343085766, -0.18085087835788727, -0.04360044747591019, -0.10991577059030533, 0.33656713366508484, 0.4418122172355652, 0.1301899552345276, 0.04490576684474945, -0.20269669592380524, -0.04156830161809921, -0.28879788517951965, 0.07402163743972778, -0.5141861438751221, 0.24830295145511627, 0.5486120581626892, -0.36966705322265625, -0.11799737066030502, 0.008524758741259575, -0.41707396507263184, -0.10217587649822235, -0.1058397889137268, -0.07231134176254272, 0.09908650815486908, 0.07914754748344421, 0.15923281013965607, -0.26253971457481384, 0.18406736850738525, -0.12165944278240204, -0.16802498698234558, -0.2793804705142975, 0.09909263998270035, 0.09423549473285675, 0.18386708199977875, -0.09962758421897888, -0.12776699662208557, -0.288738876581192, -0.2773764431476593, 0.09799036383628845, 0.06374756991863251, -0.0812922790646553, 0.011518451385200024, -0.2953430712223053, -0.026534514501690865, -0.2136102020740509, 0.1779448240995407, 0.13995687663555145, 0.09603805094957352, 0.03965965285897255, 0.008734701201319695, 0.3519384562969208, -0.04294924810528755, -0.17920802533626556, 0.030004750937223434, 0.25567787885665894, 0.2528471052646637, 0.037631310522556305, 0.4362834692001343, -0.20805343985557556, -0.2823571264743805, 0.07477927207946777, 0.23200087249279022, -0.17978517711162567, -0.3902389705181122, 0.2831372618675232, -0.30285337567329407, 0.15508262813091278, -0.28270724415779114, -0.031349387019872665, -0.004663261119276285, 0.10101386904716492, 0.12300577759742737, 0.09592948108911514, 0.3822225332260132, -0.25731611251831055, -0.07723840326070786, 0.17818096280097961, 0.34778666496276855, 0.049123380333185196, 0.11713892966508865, -0.06450951099395752, -0.14883534610271454, 0.10470463335514069, 0.11485990881919861, 0.297067791223526, -0.17760345339775085, -0.15869204699993134, -0.14705274999141693, 0.16360598802566528, 0.17181682586669922, -0.05025193467736244, 0.005535104312002659, 0.006462134886533022, 0.5284698009490967, -0.10465976595878601, 0.05649387463927269, 0.109333336353302, 0.3725799322128296, 0.0727100744843483, 0.10463184118270874, -0.19651557505130768, -0.19664494693279266, 0.2535821497440338, 0.10748016089200974, 0.005255585536360741, -0.13822893798351288, 0.016358129680156708, 0.16600990295410156, -0.17678599059581757, 0.02923906408250332, -0.21143698692321777, 0.03298173099756241, -0.15919804573059082, -0.039425116032361984, -0.1193937212228775, 0.40006813406944275, 0.17826788127422333, 0.020497070625424385, -0.03896370157599449, -0.01768762245774269, -0.19258585572242737, -0.022841114550828934, 0.3920462727546692, 0.25401800870895386, 0.1190483570098877, -0.18141645193099976, 0.14259152114391327, 0.11295588314533234, 0.11191712319850922, -0.12130657583475113, 0.10974931716918945, -0.021555082872509956, 0.4708538055419922, 0.29190096259117126, 0.18905426561832428, 0.189509779214859, -0.10033224523067474, 0.2116091400384903, 0.0960206687450409, 0.25547224283218384, 0.05268916115164757, -0.02136046439409256, 0.09053590893745422, -0.37555640935897827, -0.07732132077217102, 0.11322405189275742, -0.25475239753723145, -0.32780179381370544, 0.26233723759651184, -0.07015599310398102, 0.12683847546577454, -0.46111854910850525, 0.11977996677160263, 0.4798259139060974, 0.2598288357257843, 0.2714296877384186, 0.40917688608169556, 0.1193835511803627, -0.4456438720226288, -0.35540634393692017, 0.23877985775470734, 0.02143903076648712, 0.03881562128663063, 0.006556203123182058, -0.0011665838537737727, 0.6034960150718689, 0.21069633960723877, 0.2749841511249542, 0.09448323398828506, -0.2574959397315979, 0.06962976604700089, 0.055957116186618805, -0.07603951543569565, -0.08955784887075424, 0.18321730196475983, -0.1680585891008377, -0.02938610129058361, 0.07898269593715668, -0.3629772365093231, 0.20816978812217712, -0.09547650068998337, -0.07068107277154922, -0.11197599023580551, -0.05237806960940361, 0.38673028349876404, -0.3044191896915436, 0.2885521650314331, -0.28596407175064087, 0.08145938068628311, -0.24976585805416107, 0.16036535799503326, -0.2921410799026489, 0.057217977941036224, 0.18470706045627594, -0.06330522149801254, 0.04490240663290024, -0.012409243732690811, 0.2910562753677368, -0.09752491861581802, -0.06602031737565994, 0.13226580619812012, 0.0771043449640274, -0.03730970248579979, 0.10774644464254379, -0.2019197642803192, -0.09888556599617004, -0.3696286380290985, -0.10074011236429214, -0.07346680015325546, 0.04200761392712593, -0.3868398368358612, 0.25178179144859314, -0.1540358066558838, 0.08996976912021637, -0.1400919109582901, 0.15076763927936554, -0.25437626242637634, 0.15468207001686096, -0.5744194388389587, 0.006902011577039957, 0.23140805959701538, -0.243490532040596, -0.06000225618481636, 0.12390141934156418, -0.15103016793727875, 0.0038985745050013065, -0.23291921615600586, 0.06641148030757904, -0.13327500224113464, -0.30356156826019287, -0.5914757251739502, -0.0909016951918602 ]
https://github.com/huggingface/datasets/issues/3518
Add PubMed Central Open Access dataset
Why not ! Having them under such namespaces would also help people searching for this kind of datasets. We can also invite people from pubmed at one point
## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
28
Add PubMed Central Open Access dataset
[ -0.3484240472316742, 0.18602736294269562, -0.1762571930885315, -0.3280700743198395, -0.09899099916219711, -0.027148129418492317, 0.1611034870147705, 0.08770399540662766, -0.09287277609109879, 0.1606835275888443, -0.10934045165777206, 0.07920537143945694, -0.06317378580570221, 0.10675978660583496, 0.024000367149710655, -0.152607724070549, 0.048279229551553726, 0.2173142433166504, 0.03579072281718254, -0.3432442843914032, -0.08956936746835709, 0.1654110550880432, -0.274429053068161, -0.3035847544670105, 0.3406864404678345, -0.07932828366756439, -0.02487878128886223, -0.016179462894797325, -0.31619954109191895, -0.35302039980888367, -0.14688640832901, 0.3335067629814148, -0.10686197876930237, 0.2795407176017761, -0.00010433113493490964, -0.01653115823864937, -0.14083975553512573, 0.2017946094274521, -0.15851464867591858, 0.05051220580935478, -0.02633308619260788, -0.3848842978477478, 0.08747439831495285, -0.18088047206401825, -0.19938139617443085, -0.6370585560798645, 0.11979959905147552, -0.5627227425575256, -0.002083027735352516, 0.22179290652275085, 0.27232834696769714, 0.1868767887353897, 0.06282386183738708, -0.33956828713417053, 0.1526578813791275, -0.16526438295841217, -0.04609338194131851, 0.1936575174331665, 0.520504891872406, 0.28949323296546936, 0.08454081416130066, 0.1436527967453003, -0.0165281780064106, -0.15486837923526764, 0.09096767008304596, 0.170096755027771, -0.15186163783073425, 0.0030634596478194, 0.1710834503173828, 0.15740154683589935, 0.6221920847892761, -0.12171441316604614, -0.20480342209339142, 0.30881279706954956, 0.004411514848470688, 0.15268582105636597, -0.11787848174571991, 0.3182353377342224, 0.05104253068566322, 0.18227174878120422, 0.036122869700193405, -0.5470338463783264, -0.21820160746574402, 0.14688175916671753, 0.0789768397808075, 0.09390054643154144, -0.059537019580602646, -0.02796630747616291, -0.08130009472370148, 0.019513074308633804, 0.05947656184434891, -0.02565767802298069, 0.1734539419412613, 0.13014820218086243, 0.29862162470817566, -0.06976515799760818, -0.0286379624158144, -0.2386406809091568, 0.12801942229270935, 0.3899761438369751, 0.21157895028591156, -0.008851512335240841, -0.01678118109703064, -0.1287596970796585, 0.3341189920902252, -0.4075685739517212, -0.37165242433547974, 0.5514035224914551, 0.2855912148952484, -0.22312621772289276, 0.11973627656698227, 0.012373235076665878, 0.2513006031513214, 0.10726837813854218, 0.03898250311613083, -0.2957651615142822, 0.26986026763916016, -0.16270282864570618, 0.4278205931186676, 0.13641010224819183, 0.5162881016731262, 0.05415940657258034, -0.3076135814189911, 0.29764053225517273, 0.02490205690264702, -0.12431082129478455, 0.15889596939086914, 0.23264548182487488, 0.0643785297870636, 0.004132441710680723, -0.20205748081207275, -0.026123054325580597, 0.03518446534872055, 0.14944568276405334, 0.2123827189207077, -0.23641107976436615, 0.11252236366271973, -0.09502912312746048, 0.03757667914032936, 0.07861869782209396, 0.15602827072143555, 0.2452162504196167, 0.17996828258037567, 0.2770735025405884, 0.20129723846912384, 0.19490550458431244, -0.07644665986299515, -0.05810583755373955, -0.128774955868721, -0.04638310894370079, -0.014449410140514374, -0.4160158336162567, -0.754082977771759, 0.21093745529651642, -0.07745487242937088, -0.04690263792872429, 0.19621211290359497, -0.06284903734922409, -0.009824597276747227, -0.4395848214626312, -0.047897819429636, 0.24432972073554993, 0.06373883783817291, -0.12193414568901062, 0.21368232369422913, 0.07773934304714203, 0.1680862009525299, 0.18344992399215698, -0.04370981827378273, 0.20297549664974213, 0.028277765959501266, 0.0373961366713047, -0.08758459240198135, -0.08460542559623718, -0.041479360312223434, 0.04749341681599617, 0.7114037871360779, -0.616678774356842, -0.5428736209869385, -0.09016900509595871, -0.12466276437044144, -0.7724927067756653, 0.17687857151031494, 0.011608347296714783, 0.1960059553384781, 0.05074136704206467, 0.0932290330529213, 0.07159867882728577, -0.05336342751979828, 0.3302350342273712, -0.17224669456481934, -0.07391025871038437, -0.31476515531539917, 0.3264819085597992, 0.3047724962234497, 0.06098480895161629, 0.5175565481185913, 0.36256664991378784, 0.244370698928833, 0.04471968859434128, 0.04223467409610748, -0.037015002220869064, 0.15488797426223755, -0.3811568319797516, 0.23080354928970337, -0.1772601455450058, 0.2687244713306427, -0.2440498024225235, 0.08470222353935242, 0.5183821320533752, -0.1557740718126297, -0.16131070256233215, -0.17195823788642883, -0.1041584238409996, 0.028827298432588577, 0.37581589818000793, 0.24919340014457703, 0.11130278557538986, -0.1109619215130806, 0.13297627866268158, -0.19844657182693481, -0.2811279296875, 0.037949513643980026, 0.001236743526533246, -0.18841230869293213, 0.16830982267856598, -0.14499163627624512, 0.09170256555080414, 0.2783302366733551, 0.04430682584643364, -0.037440672516822815, 0.11688557267189026, 0.18761691451072693, 0.11799245327711105, -0.41346779465675354, 0.471348375082016, 0.60569167137146, 0.16491474211215973, 0.12699231505393982, -0.5629722476005554, 0.28790220618247986, 0.03792375698685646, -0.05376559868454933, 0.11742664873600006, -0.018570488318800926, -0.04190025478601456, 0.1112142950296402, -0.14869268238544464, 0.02640646882355213, 0.11811705678701401, 0.23438118398189545, 0.006655727047473192, -0.1804998219013214, -0.44823935627937317, -0.03941800072789192, 0.23703300952911377, -0.23746050894260406, -0.08611045032739639, -0.1380310356616974, 0.21294331550598145, 0.16857406497001648, -0.04024225473403931, 0.14775854349136353, -0.3225157856941223, -0.24689516425132751, -0.005813445430248976, 0.24840544164180756, 0.21266764402389526, 0.1708465814590454, 0.35037463903427124, 0.20813675224781036, 0.21958594024181366, 0.10777363926172256, -0.18180213868618011, 0.14036713540554047, 0.14050070941448212, -0.031447917222976685, 0.28370338678359985, 0.1185549721121788, 0.2295386642217636, -0.21080364286899567, 0.015533920377492905, 0.03812989965081215, 0.17553547024726868, -0.07298796623945236, -0.2391848862171173, -0.1769973784685135, 0.31158846616744995, 0.15230995416641235, 0.13300099968910217, 0.19058912992477417, -0.12095870077610016, 0.16337892413139343, 0.16414572298526764, -0.06553497165441513, -0.0334685854613781, -0.6456766724586487, 0.4895983338356018, -0.29322993755340576, -0.08248031884431839, 0.11148741841316223, -0.07544362545013428, 0.14239327609539032, 0.19492045044898987, 0.056656207889318466, 0.07796978205442429, 0.5025556087493896, -0.0628151148557663, 0.33366820216178894, -0.4887547194957733, -0.07978235930204391, 0.022152747958898544, 0.09733611345291138, -0.06526454538106918, 0.0797712653875351, 0.24682040512561798, -0.11593393236398697, -0.019744321703910828, -0.1211920902132988, -0.2937436103820801, -0.03870774060487747, -0.26197749376296997, -0.19506579637527466, -0.22203031182289124, -0.06134505942463875, -0.6472618579864502, -0.29691973328590393, -0.27965113520622253, -0.06709560751914978, 0.04641076922416687, 0.07991177588701248, 0.11970913410186768, -0.12414616346359253, -0.022529903799295425, 0.06107204779982567, 0.28243210911750793, -0.26335057616233826, -0.09404213726520538, 0.2569771111011505, -0.5474908947944641, -0.5957510471343994, 0.06818416714668274, -0.1867780089378357, 0.09037697315216064, 0.11375326663255692, -0.4492570459842682, 0.10579615831375122, 0.16903835535049438, -0.21906037628650665, 0.24799108505249023, 0.15236905217170715, 0.45740193128585815, 0.1735517829656601, -0.2602522373199463, 0.01055667269974947, -0.011593641713261604, -0.02102419175207615, 0.1031610444188118, 0.0450533926486969, -0.06560078263282776, -0.37698832154273987, -0.11331475526094437, 0.9777907729148865, 0.05063105747103691, 0.10870719701051712, 0.2614777982234955, -0.20333772897720337, 0.2760487496852875, 0.03419423848390579, -0.24504566192626953, -0.0185007993131876, 0.16491755843162537, 0.3060031533241272, 0.22838138043880463, 0.19586583971977234, -0.24007077515125275, -0.05789228901267052, -0.2943279445171356, -0.7035285234451294, -0.2984374761581421, -0.11300861090421677, -0.09689422696828842, 0.28359106183052063, 0.3022060990333557, -0.18477971851825714, -0.36704501509666443, -0.3381420075893402, -0.15502673387527466, 0.2540893852710724, -0.1459626853466034, -0.09364540129899979, -0.24489128589630127, 0.03463577479124069, -0.3662383556365967, 0.3229043483734131, -0.08643149584531784, -0.1516815572977066, -0.24251078069210052, -0.037607692182064056, -0.04417865723371506, -0.15579479932785034, -0.10383402556180954, -0.4292072653770447, -0.12316682189702988, -0.0005335427704267204, 0.33208203315734863, -0.23321273922920227, 0.08068148791790009, 0.06181773543357849, 0.2166348695755005, -0.06089534983038902, 0.2486320436000824, -0.20810768008232117, 0.11118216067552567, 0.5764455199241638, -0.2311534732580185, -0.04610208421945572, -0.1198800578713417, 0.1353566199541092, -0.5735899806022644, -0.2639039158821106, -0.19623155891895294, -0.08793208003044128, 0.13312587141990662, 0.08827973902225494, -0.32070720195770264, 0.14215585589408875, 0.16710300743579865, 0.21265669167041779, -0.11056207865476608, 0.10870344191789627, 0.4775595963001251, 0.14831821620464325, 0.11050664633512497, 0.16119995713233948, 0.22079671919345856, 0.5061677694320679, -0.1692924052476883, 0.26030102372169495, 0.32490912079811096, -0.14857915043830872, 0.1001727432012558, 0.26003560423851013, 0.15118122100830078, 0.02924937754869461, 0.5426658987998962, -0.10967103391885757, 0.3184640407562256, 0.24588385224342346, 0.09028328210115433, -0.12866006791591644, -0.3951294422149658, -0.3040672242641449, 0.3438076376914978, -0.003807987319305539, -0.21628724038600922, 0.2628767788410187, 0.5463394522666931, -0.007140615023672581, 0.2535674571990967, -0.14189065992832184, 0.8630286455154419, -0.11054463684558868, 0.12958593666553497, -0.10513279587030411, -0.07998427003622055, 0.22059909999370575, -0.20008355379104614, -0.10043298453092575, -0.2520774006843567, -0.38068273663520813, -0.051883500069379807, 0.03655407950282097, -0.03531579300761223, -0.027920646592974663, -0.1347680240869522, -0.2209688127040863, 0.453978031873703, 0.16139522194862366, 0.031099898740649223, 0.5330498814582825, 0.026121830567717552, -0.23512324690818787, -0.10347124189138412, 0.19707359373569489, 0.1287904679775238, -0.21957454085350037, 0.01990140974521637, 0.001884321914985776, -0.25884902477264404, -0.22942321002483368, -0.24821610748767853, -0.10773133486509323, 0.3444793224334717, 0.002887410344555974, 0.16419614851474762, -0.2364259511232376, 0.03960046172142029, 0.08049922436475754, 0.3611595332622528, 0.19509559869766235, -0.2366243600845337, 0.10248512774705887, 0.07401739805936813, -0.42270466685295105, 0.010819196701049805, 0.12397095561027527, 0.134674534201622, -0.4251638352870941, -0.3443240523338318, 0.17203296720981598, 0.0198188629001379, -0.490040123462677, -0.021234886720776558, -0.05842387676239014, 0.17313091456890106, -0.26738888025283813, 0.25635915994644165, 0.3452538549900055, -0.12916965782642365, -0.07288599014282227, 0.16426685452461243, 0.14875304698944092, 0.07792339473962784, 0.14045996963977814, 0.5424807667732239, -0.13747845590114594, -0.15948228538036346, 0.04174262657761574, 0.49752888083457947, -0.07852274179458618, 0.2278590351343155, -0.1468467116355896, -0.04822424426674843, -0.2608143091201782, -0.14557524025440216, 0.13376463949680328, 0.02015611343085766, -0.18085087835788727, -0.04360044747591019, -0.10991577059030533, 0.33656713366508484, 0.4418122172355652, 0.1301899552345276, 0.04490576684474945, -0.20269669592380524, -0.04156830161809921, -0.28879788517951965, 0.07402163743972778, -0.5141861438751221, 0.24830295145511627, 0.5486120581626892, -0.36966705322265625, -0.11799737066030502, 0.008524758741259575, -0.41707396507263184, -0.10217587649822235, -0.1058397889137268, -0.07231134176254272, 0.09908650815486908, 0.07914754748344421, 0.15923281013965607, -0.26253971457481384, 0.18406736850738525, -0.12165944278240204, -0.16802498698234558, -0.2793804705142975, 0.09909263998270035, 0.09423549473285675, 0.18386708199977875, -0.09962758421897888, -0.12776699662208557, -0.288738876581192, -0.2773764431476593, 0.09799036383628845, 0.06374756991863251, -0.0812922790646553, 0.011518451385200024, -0.2953430712223053, -0.026534514501690865, -0.2136102020740509, 0.1779448240995407, 0.13995687663555145, 0.09603805094957352, 0.03965965285897255, 0.008734701201319695, 0.3519384562969208, -0.04294924810528755, -0.17920802533626556, 0.030004750937223434, 0.25567787885665894, 0.2528471052646637, 0.037631310522556305, 0.4362834692001343, -0.20805343985557556, -0.2823571264743805, 0.07477927207946777, 0.23200087249279022, -0.17978517711162567, -0.3902389705181122, 0.2831372618675232, -0.30285337567329407, 0.15508262813091278, -0.28270724415779114, -0.031349387019872665, -0.004663261119276285, 0.10101386904716492, 0.12300577759742737, 0.09592948108911514, 0.3822225332260132, -0.25731611251831055, -0.07723840326070786, 0.17818096280097961, 0.34778666496276855, 0.049123380333185196, 0.11713892966508865, -0.06450951099395752, -0.14883534610271454, 0.10470463335514069, 0.11485990881919861, 0.297067791223526, -0.17760345339775085, -0.15869204699993134, -0.14705274999141693, 0.16360598802566528, 0.17181682586669922, -0.05025193467736244, 0.005535104312002659, 0.006462134886533022, 0.5284698009490967, -0.10465976595878601, 0.05649387463927269, 0.109333336353302, 0.3725799322128296, 0.0727100744843483, 0.10463184118270874, -0.19651557505130768, -0.19664494693279266, 0.2535821497440338, 0.10748016089200974, 0.005255585536360741, -0.13822893798351288, 0.016358129680156708, 0.16600990295410156, -0.17678599059581757, 0.02923906408250332, -0.21143698692321777, 0.03298173099756241, -0.15919804573059082, -0.039425116032361984, -0.1193937212228775, 0.40006813406944275, 0.17826788127422333, 0.020497070625424385, -0.03896370157599449, -0.01768762245774269, -0.19258585572242737, -0.022841114550828934, 0.3920462727546692, 0.25401800870895386, 0.1190483570098877, -0.18141645193099976, 0.14259152114391327, 0.11295588314533234, 0.11191712319850922, -0.12130657583475113, 0.10974931716918945, -0.021555082872509956, 0.4708538055419922, 0.29190096259117126, 0.18905426561832428, 0.189509779214859, -0.10033224523067474, 0.2116091400384903, 0.0960206687450409, 0.25547224283218384, 0.05268916115164757, -0.02136046439409256, 0.09053590893745422, -0.37555640935897827, -0.07732132077217102, 0.11322405189275742, -0.25475239753723145, -0.32780179381370544, 0.26233723759651184, -0.07015599310398102, 0.12683847546577454, -0.46111854910850525, 0.11977996677160263, 0.4798259139060974, 0.2598288357257843, 0.2714296877384186, 0.40917688608169556, 0.1193835511803627, -0.4456438720226288, -0.35540634393692017, 0.23877985775470734, 0.02143903076648712, 0.03881562128663063, 0.006556203123182058, -0.0011665838537737727, 0.6034960150718689, 0.21069633960723877, 0.2749841511249542, 0.09448323398828506, -0.2574959397315979, 0.06962976604700089, 0.055957116186618805, -0.07603951543569565, -0.08955784887075424, 0.18321730196475983, -0.1680585891008377, -0.02938610129058361, 0.07898269593715668, -0.3629772365093231, 0.20816978812217712, -0.09547650068998337, -0.07068107277154922, -0.11197599023580551, -0.05237806960940361, 0.38673028349876404, -0.3044191896915436, 0.2885521650314331, -0.28596407175064087, 0.08145938068628311, -0.24976585805416107, 0.16036535799503326, -0.2921410799026489, 0.057217977941036224, 0.18470706045627594, -0.06330522149801254, 0.04490240663290024, -0.012409243732690811, 0.2910562753677368, -0.09752491861581802, -0.06602031737565994, 0.13226580619812012, 0.0771043449640274, -0.03730970248579979, 0.10774644464254379, -0.2019197642803192, -0.09888556599617004, -0.3696286380290985, -0.10074011236429214, -0.07346680015325546, 0.04200761392712593, -0.3868398368358612, 0.25178179144859314, -0.1540358066558838, 0.08996976912021637, -0.1400919109582901, 0.15076763927936554, -0.25437626242637634, 0.15468207001686096, -0.5744194388389587, 0.006902011577039957, 0.23140805959701538, -0.243490532040596, -0.06000225618481636, 0.12390141934156418, -0.15103016793727875, 0.0038985745050013065, -0.23291921615600586, 0.06641148030757904, -0.13327500224113464, -0.30356156826019287, -0.5914757251739502, -0.0909016951918602 ]
https://github.com/huggingface/datasets/issues/3510
`wiki_dpr` details for Open Domain Question Answering tasks
Hi ! According to the DPR paper, the wikipedia dump is the one from Dec. 20, 2018. Each instance contains a paragraph of at most 100 word, as well as the title of the wikipedia page it comes from and the DPR embedding (a 768-d vector).
Hey guys! Thanks for creating the `wiki_dpr` dataset! I am currently trying to use the dataset for context retrieval using DPR on NQ questions and need details about what each of the files and data instances mean, which version of the Wikipedia dump it uses, etc. Please respond at your earliest convenience regarding the same! Thanks a ton! P.S.: (If one of @thomwolf @lewtun @lhoestq could respond, that would be even better since they have the first-hand details of the dataset. If anyone else has those, please reach out! Thanks!)
46
`wiki_dpr` details for Open Domain Question Answering tasks
[ 0.11441608518362045, -0.3138183057308197, -0.15296074748039246, -0.02130260318517685, -0.18525178730487823, -0.19739389419555664, 0.4585748612880707, -0.18855631351470947, 0.05343378707766533, 0.19372135400772095, 0.22599904239177704, 0.028346233069896698, 0.23077154159545898, -0.03819188103079796, -0.08628157526254654, -0.15175431966781616, -0.08662424236536026, -0.0833950936794281, 0.10126987099647522, -0.29235589504241943, -0.17667952179908752, 0.10505214333534241, -0.27292728424072266, 0.3521944582462311, 0.0549372062087059, -0.21425922214984894, 0.04397164657711983, -0.12011902779340744, 0.15250809490680695, -0.24165867269039154, 0.32928410172462463, 0.22486452758312225, 0.2561822235584259, -0.3302451968193054, -0.00010834520071512088, -0.04201538488268852, 0.18522536754608154, -0.026899604126811028, -0.3572092652320862, 0.5738855600357056, -0.6600999236106873, -0.13974928855895996, 0.1972237378358841, -0.4587993025779724, 0.19054487347602844, -0.19853182137012482, 0.26194626092910767, 0.3403036892414093, 0.25968417525291443, 0.10369228571653366, 0.21253171563148499, 0.02241627685725689, -0.2985181510448456, -0.23691579699516296, -0.20295313000679016, 0.07683704793453217, 0.13110952079296112, -0.059309061616659164, -0.08867782354354858, -0.19448086619377136, -0.21408671140670776, 0.2799362540245056, -0.02254904992878437, 0.130421981215477, -0.3285577893257141, 0.03812802582979202, 0.3121741712093353, 0.000758274516556412, 0.3763476312160492, 0.07555602490901947, 0.5805807113647461, 0.21735458076000214, 0.011629385873675346, -0.19247621297836304, -0.13912548124790192, 0.21598854660987854, -0.11248552799224854, -0.010857118293642998, -0.14606031775474548, -0.09029506146907806, 0.12074852734804153, -0.024215398356318474, -0.047190260142087936, -0.1876593381166458, -0.20394599437713623, 0.7869614958763123, 0.11000031232833862, -0.12060850858688354, -0.39352160692214966, -0.17016690969467163, -0.014533148147165775, -0.09237714856863022, -0.03963564336299896, -0.10157763957977295, 0.11752748489379883, -0.22477199137210846, 0.30312371253967285, 0.002615690929815173, 0.06741713732481003, 0.3196367025375366, 0.287763774394989, -0.08056768774986267, 0.25556766986846924, -0.11040697246789932, 0.33775585889816284, 0.06967629492282867, 0.08854896575212479, 0.20097386837005615, 0.17161911725997925, -0.10083501040935516, -0.07813286781311035, 0.022480778396129608, -0.22124822437763214, 0.16170640289783478, -0.025487959384918213, 0.06065947189927101, 0.03388988971710205, 0.055034976452589035, 0.07063443958759308, 0.3066701292991638, 0.1466308981180191, -0.030143016949295998, -0.3644634783267975, 0.05628390237689018, -0.36841216683387756, 0.2687149941921234, -0.02292790450155735, -0.22545911371707916, -0.008008982986211777, 0.2655641734600067, -0.018147189170122147, -0.2874833047389984, 0.04395650327205658, 0.024592500180006027, -0.17093418538570404, 0.46013087034225464, 0.39985233545303345, -0.006009254604578018, 0.5647009015083313, -0.25820013880729675, 0.24188171327114105, 0.48408767580986023, 0.23094435036182404, 0.27364298701286316, 0.0730329304933548, -0.2089180052280426, -0.1684868186712265, -0.22426515817642212, -0.027405593544244766, 0.27314913272857666, -0.22416169941425323, -0.21390359103679657, -0.2702597379684448, 0.26900041103363037, 0.0668167844414711, -0.0702124536037445, 0.16577376425266266, 0.1736627221107483, 0.0706927701830864, -0.09606242924928665, 0.2641716003417969, -0.027861351147294044, 0.14688853919506073, -0.10721687227487564, -0.1437842696905136, 0.15837422013282776, 0.5807687640190125, 0.1365669220685959, 0.24670642614364624, 0.0015113820554688573, -0.0670827180147171, -0.222934290766716, -0.07178009301424026, 0.05825108662247658, 0.0463714562356472, 0.20491914451122284, 0.19607031345367432, -0.6584857702255249, 0.1746622622013092, 0.11764635890722275, 0.03153233602643013, -0.030430693179368973, 0.2330029457807541, -0.20627576112747192, 0.37017548084259033, 0.0814996287226677, 0.09565544873476028, 0.30877628922462463, -0.15454350411891937, 0.2989160418510437, -0.0941772535443306, 0.08896569162607193, -0.3941590189933777, 0.010455197654664516, 0.22385185956954956, 0.003101502312347293, -0.19454753398895264, 0.4769565463066101, 0.16235469281673431, -0.004099482670426369, 0.0022546807304024696, -0.10179713368415833, -0.15148654580116272, -0.12484840303659439, 0.2175920456647873, 0.0924811065196991, -0.22074909508228302, -0.2795845568180084, -0.05874300003051758, 0.5610759854316711, 0.30707016587257385, -0.23462441563606262, -0.34471648931503296, 0.148654967546463, -0.02356923744082451, -0.5392059087753296, 0.20981009304523468, -0.027128873392939568, 0.31052038073539734, -0.03934952989220619, 0.11815818399190903, -0.37137141823768616, -0.011700838804244995, -0.19375921785831451, 0.22784917056560516, -0.43986961245536804, 0.004053781274706125, 0.27424556016921997, 0.16185340285301208, 0.060065288096666336, 0.21617035567760468, 0.43720969557762146, 0.1753731220960617, -0.26202985644340515, 0.08638159930706024, -0.29531994462013245, 0.192725270986557, 0.3561752438545227, 0.004607191309332848, -0.1088128536939621, -0.11346544325351715, 0.20602473616600037, -0.028004944324493408, 0.14499534666538239, -0.3476921021938324, 0.46119147539138794, 0.25942036509513855, -0.009133932180702686, -0.14901670813560486, 0.15002067387104034, 0.07375062257051468, -0.015200696885585785, 0.10668495297431946, -0.17109963297843933, -0.0704839900135994, 0.3229627311229706, -0.37721264362335205, -0.175371915102005, -0.2647326588630676, 0.18531186878681183, -0.08490613847970963, -0.3862517476081848, 0.21345707774162292, -0.13875921070575714, 0.17330272495746613, -0.12239458411931992, 0.32868215441703796, 0.08216622471809387, -0.027807382866740227, 0.1934100091457367, 0.3330557346343994, -0.07429837435483932, -0.23851755261421204, -0.34545212984085083, 0.0831197202205658, 0.007016999181360006, -0.3072315454483032, 0.12766404449939728, 0.20712165534496307, -0.1346602588891983, 0.11217092722654343, -0.20625466108322144, -0.11263073235750198, -0.08571872860193253, 0.0659012719988823, -0.16261442005634308, 0.12570405006408691, -0.006949652452021837, 0.2644990086555481, 0.3335677981376648, -0.20100179314613342, -0.495214581489563, 0.524562656879425, -0.38987424969673157, -0.3680950105190277, 0.1624479740858078, -0.16296590864658356, 0.12135732918977737, -0.15411746501922607, -0.010159523226320744, 0.012384921312332153, -0.7052985429763794, -0.16396436095237732, 0.18616262078285217, -0.34311142563819885, -0.25108984112739563, 0.25577521324157715, -0.10866076499223709, 0.07995413988828659, -0.17214344441890717, -0.229538694024086, 0.22606410086154938, 0.30288416147232056, -0.14205193519592285, -0.0407884418964386, 0.08203848451375961, -0.24848413467407227, -0.06275457888841629, -0.22516177594661713, 0.1317504495382309, 0.07113108783960342, -0.4214971959590912, 0.0008556446409784257, 0.18089823424816132, -0.28849801421165466, -0.26683881878852844, 0.05739036947488785, -0.11274320632219315, 0.10792618989944458, -0.03811733052134514, 0.19395965337753296, 0.2993888258934021, -0.2891508936882019, -0.24950891733169556, 0.031730905175209045, -0.023819388821721077, -0.3982508182525635, 0.008552092127501965, 0.19529731571674347, -0.44134077429771423, -0.0910186842083931, -0.35059550404548645, -0.37753355503082275, 0.09480716288089752, 0.15098439157009125, -0.15249671041965485, -0.5742390155792236, 0.17575551569461823, 0.5857177972793579, 0.09029395878314972, 0.23625555634498596, 0.1602257490158081, 0.032103944569826126, -0.13507628440856934, -0.09395679831504822, 0.025820942595601082, 0.27518588304519653, 0.1810496300458908, -0.30969926714897156, 0.0744197890162468, -0.4392816126346588, -0.3282300531864166, 0.6316518783569336, -0.2571796178817749, 0.4478873908519745, 0.0634249895811081, -0.024401886388659477, -0.18809671700000763, 0.176732137799263, 0.5966994762420654, 0.0005843071849085391, 0.18297244608402252, -0.10223320126533508, 0.24336235225200653, 0.207879900932312, -0.05841398984193802, -0.08710125833749771, -0.05665519833564758, -0.4537793695926666, -0.28577351570129395, 0.0008147119078785181, 0.061858464032411575, 0.3466670513153076, 0.07524746656417847, 0.2609213888645172, -0.39662960171699524, -0.11688236147165298, 0.16829092800617218, 0.0327875129878521, 0.1830674260854721, -0.3188415765762329, -0.13436399400234222, 0.13354046642780304, -0.04486863315105438, 0.057177167385816574, 0.19813242554664612, -0.2666264772415161, -0.13120965659618378, -0.06582500040531158, 0.012966263107955456, -0.03518834710121155, 0.048545170575380325, -0.2667103409767151, 0.14225195348262787, -0.06385748833417892, -0.13333521783351898, 0.5060590505599976, -0.10404886305332184, -0.05727410688996315, -0.3593427836894989, -0.1462453156709671, -0.021615542471408844, -0.4020707905292511, 0.13630352914333344, 0.03756425902247429, -0.44844168424606323, -0.47917789220809937, 0.12978748977184296, 0.08044292777776718, -0.6902604699134827, -0.03284243121743202, 0.17586548626422882, 0.41001516580581665, 0.13672055304050446, 0.01577317900955677, 0.2728773057460785, -0.13694573938846588, 0.44666802883148193, 0.07897787541151047, 0.25838544964790344, -0.38682979345321655, 0.2293531447649002, -0.2804480493068695, -0.10927218198776245, -0.04402181878685951, 0.12788568437099457, -0.029109148308634758, 0.05569647625088692, 0.5203817486763, 0.059364788234233856, 0.1080525666475296, 0.29631996154785156, 0.3417995572090149, 0.05956519767642021, -0.058475594967603683, -0.21381601691246033, 0.084515780210495, -0.14543397724628448, -0.11475085467100143, -0.12107633054256439, -0.10904309153556824, -0.10121803730726242, -0.2872340679168701, 0.35475459694862366, -0.047525011003017426, -0.2799324691295624, -0.005147514399141073, 0.3768922686576843, -0.031014440581202507, 0.10359418392181396, 0.33373698592185974, 0.6421944499015808, -0.022643670439720154, 0.2528638243675232, 0.14382411539554596, -0.4744018018245697, 0.32168102264404297, -0.26995140314102173, 0.08313822001218796, -0.18360374867916107, 0.4616900086402893, 0.07859624922275543, 0.02590303122997284, -0.2629311680793762, 0.0397634357213974, 0.09374728798866272, -0.017760340124368668, 0.1766161322593689, -0.32584255933761597, 0.04100557416677475, 0.2897293269634247, 0.0546950027346611, 0.08653516322374344, -0.2051084190607071, 0.12006112933158875, 0.23065173625946045, 0.13778819143772125, -0.17121440172195435, -0.1990399807691574, 0.12656204402446747, -0.15910604596138, -0.2896597981452942, 0.006135533098131418, 0.38878196477890015, 0.02194244973361492, 0.12203618139028549, -0.2597714960575104, -0.2694489359855652, 0.4994125962257385, 0.033385537564754486, 0.08291873335838318, -0.1897333264350891, 0.2784724533557892, -0.4065145254135132, 0.043415166437625885, -0.09988445788621902, 0.3088139593601227, 0.1469244360923767, -0.3532765805721283, -0.11081337928771973, 0.14841169118881226, -0.1534154862165451, 0.06346125155687332, -0.5792975425720215, 0.1706879734992981, -0.1282370686531067, -0.06377439200878143, 0.33180710673332214, -0.3399257957935333, -0.19889476895332336, -0.01775592751801014, 0.08487016707658768, -0.08176650106906891, 0.21486911177635193, -0.16839367151260376, 0.6195256114006042, 0.008124442771077156, -0.11718419939279556, 0.12744395434856415, 0.40103188157081604, -0.25382599234580994, -0.06102927774190903, -0.054127536714076996, -0.20719864964485168, -0.13241896033287048, -0.1038064956665039, -0.22913192212581635, 0.03062291070818901, 0.191403329372406, 0.2092890590429306, -0.3696820139884949, -0.22921627759933472, 0.08486847579479218, -0.08188126236200333, 0.20540480315685272, 0.15179528295993805, -0.18294154107570648, -0.15430958569049835, 0.18674805760383606, -0.3868281841278076, -0.14834751188755035, 0.219378262758255, -0.270946741104126, 0.2612093985080719, 0.22696101665496826, -0.3081333041191101, -0.2853354811668396, -0.5008403062820435, 0.1397278606891632, -0.06755205988883972, -0.06147786229848862, 0.2774963080883026, 0.40592604875564575, 0.05766003951430321, -0.15702034533023834, -0.056380514055490494, -0.2007826417684555, -0.19301751255989075, 0.12976297736167908, 0.20563513040542603, -0.1403416097164154, 0.08811380714178085, -0.02142656035721302, -0.07073253393173218, 0.09480221569538116, 0.16200269758701324, -0.04831454157829285, -0.08930592238903046, 0.2152370661497116, -0.03699544072151184, 0.4716629683971405, -0.18502014875411987, 0.05956685170531273, 0.18918286263942719, 0.5284921526908875, -0.12216025590896606, -0.09351601451635361, -0.07435651123523712, -0.12608003616333008, 0.11867151409387589, 0.17674846947193146, 0.3822252154350281, -0.35046952962875366, 0.12764842808246613, 0.23559613525867462, -0.39258405566215515, -0.2528620958328247, -0.10134261846542358, -0.16146236658096313, 0.15665335953235626, 0.24126918613910675, -0.22598038613796234, 0.17676059901714325, 0.11340819299221039, 0.17635998129844666, 0.2633092403411865, -0.10433820635080338, -0.08683013916015625, 0.3071434199810028, 0.03626977279782295, -0.35806405544281006, 0.08742819726467133, 0.15213099122047424, -0.4508550763130188, -0.40316858887672424, -0.13095439970493317, 0.44123780727386475, 0.06547633558511734, 0.266360342502594, 0.09252524375915527, -0.024238822981715202, 0.11513543128967285, -0.25177404284477234, 0.18411310017108917, 0.43821269273757935, 0.2207101434469223, -0.031362686306238174, 0.11946312338113785, 0.13590027391910553, 0.18796169757843018, -0.15643537044525146, 0.4075038433074951, 0.2694551348686218, 0.20696167647838593, -0.36264652013778687, 0.3158252537250519, 0.44388917088508606, -0.39935508370399475, 0.051253270357847214, -0.2585838735103607, -0.3583449125289917, 0.12092187255620956, -0.19911357760429382, -0.0072129531763494015, 0.3764994144439697, -0.07787364721298218, -0.21378746628761292, 0.25340715050697327, -0.3510429561138153, -0.059802837669849396, 0.2316654622554779, 0.09359230846166611, -0.014928695745766163, 0.19134022295475006, -0.004373636562377214, -0.2526959776878357, 0.011789687909185886, 0.1392572820186615, 0.19862399995326996, 0.37356412410736084, 0.11428462713956833, -0.046549852937459946, -0.4158403277397156, -0.3628382980823517, 0.24718309938907623, 0.05475553870201111, -0.10699385404586792, 0.2771347463130951, 0.2620835602283478, 0.3923189043998718, 0.12360670417547226, 0.0852295458316803, -0.2150210440158844, 0.03651444986462593, 0.03471168130636215, -0.583759069442749, 0.2526555359363556, -0.1895609349012375, 0.18698494136333466, -0.20709510147571564, 0.27210721373558044, 0.21994976699352264, 0.008498604409396648, 0.15987347066402435, -0.13319751620292664, 0.4721303880214691, -0.05910327285528183, -0.27655890583992004, 0.11763077229261398, 0.04233746603131294, 0.3863376975059509, 0.2342633306980133, 0.29779675602912903, 0.13134296238422394, 0.004685793537646532, 0.10449903458356857, 0.21684615314006805, 0.17266933619976044, -0.1838928461074829, 0.13908788561820984, -0.23182429373264313, 0.09320422261953354, 0.21951530873775482, -0.5136533379554749, -0.2648618519306183, 0.19750991463661194, 0.508491575717926, -0.1443440318107605, -0.0881236121058464, 0.12802161276340485, -0.017219223082065582, 0.1935216635465622, -0.024687809869647026, -0.030175140127539635, -0.05334168300032616, 0.09786836057901382, -0.04565760865807533, 0.09737949818372726, 0.22505664825439453, 0.5148637294769287, 0.0900215283036232, 0.16684792935848236, 0.5347438454627991, -0.16144533455371857, -0.12878002226352692, 0.31513068079948425, 0.14251716434955597, 0.1297791302204132, -0.05740992724895477, -0.22170069813728333, -0.32255885004997253, 0.2937840521335602, -0.05539185181260109, 0.18335504829883575, -0.03206505998969078, 0.05354657396674156, 0.6780120730400085, 0.29346710443496704, -0.2326396107673645, 0.07301124185323715, -0.13177905976772308, 0.08450623601675034, -0.09791368991136551, -0.08737033605575562, -0.19436268508434296, 0.03415317460894585, -0.2883797585964203, -0.03323454409837723, -0.4016560912132263, -0.16586700081825256, -0.05031769722700119, 0.23541520535945892, -0.3563072979450226, 0.09273815900087357, -0.5008255839347839, 0.21161313354969025, 0.27106013894081116, -0.30050915479660034, -0.08968925476074219, -0.1255308985710144, 0.2030482143163681, -0.17865747213363647, -0.13103154301643372, 0.034287676215171814, 0.017093205824494362, -0.3073008954524994, -0.35611093044281006, -0.2189875841140747 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work), so that for datasets that have a working dataset preview, we can remove the dummy data IMO. On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. I don't really have an opinion regarding the JSON metadata as I don't know enough about it.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
105
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I don't know all the details, but generally I'd be in favor of unifying the metadata formats into YAML inside .md (and so deprecating the dataset_infos.json) (Ultimately the CI can run on "HuggingFace Actions" instead of on GitHub)
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
38
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
The dataset_infos.json file currently has these useful infos for each dataset configuration, that I think can be moved to the dataset tags: - Size of the dataset in MB: download size, arrow file size, and total size (sum of download + arrow) - Size of each split in MB and number of examples. Again this can be moved to the dataset tags - Feature type of each column - supported task templates (it defines what columns correspond to the features and labels for example) But it also has this, which I'm not sure if it should be in the tags or not: - Checksums of the downloaded files for integrity verifications So ultimately this file could probably be deprecated in favor of having the infos in the tags. > Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). To get the exact number of examples and size in MB of the dataset, one needs to download and generate it completely. IMO these infos are very important when someone considers using a dataset. Though using streaming we could do some extrapolation to have approximate values instead. For the integrity verifications we also need the number of examples and the checksums of the downloaded files, so it requires the dataset to be fully downloaded once. This can be optional though. > IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work) I agree with this. Usually if a dataset works in streaming mode, then it works in non-streaming mode (the other way around is not true though). > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. Yes indeed, or at least make sure that it was tested on the true data.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
355
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
(note that if we wanted to display sizes, etc we could also pretty easily parse the `dataset_infos.json` on the hub side)
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
21
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I agree that we can move the relevant parts of `dataset_infos.json` to the YAML tags. > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. < > > Yes indeed, or at least make sure that it was tested on the true data. I like the idea of testing streaming and falling back to the dummy data test if streaming does not work. Generating dummy data can be very tedious, so this would be a nice incentive for the contributors to make their datasets streamable.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
112
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
About dummy data, please see e.g. this PR: https://github.com/huggingface/datasets/pull/3692/commits/62368daac0672041524a471386d5e78005cf357a - I updated the previous dummy data: I just had to rename the file and its directory - the dummy data zip contains only a single file: `pubmed22n0001.xml.gz` Then I discover it fails: https://app.circleci.com/pipelines/github/huggingface/datasets/9800/workflows/173a4433-8feb-4fc6-ab9e-59762084e3e1/jobs/60437 ``` No such file or directory: '.../dummy_data/pubmed22n0002.xml.gz' ``` - it needs dummy data for all the 1114 files: `_URLs = [f"ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed22n{i:04d}.xml.gz" for i in range(1, 1115)]` - this confirms me that it never passed the test: these dummy data files were not present before my PR - therefore, is it really useful the data test if we just ignore it when it does not pass? In relation with JSON metadata, I'm generating the file for `pubmed` (see above) in a GCP instance: it's running for more than 3 hours and only 9 million examples generated so far (before my PR, it had 32 million, now it has more).
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
151
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I mention in https://github.com/huggingface/datasets-server/wiki/Preliminary-design that the future "datasets server" could be in charge of generating both the dummy data and the dataset-info.json file if required (or their equivalent).
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
28
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Hi ! I think dummy data generation is out of scope for the datasets server, since it's about generating the original data files. That would be amazing to have it generate the dataset_infos.json though !
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
35
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
From some offline discussion with @mariosasko and especially for vision datasets, we'll probably not require dummy data anymore and use streaming instead :) This will make adding a new dataset much easier. This should also make sure that streaming works as expected directly in the CI, without having to check the dataset viewer once the PR is merged
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
58
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
It seems that migration from dataset-info.json to dataset card YAML has been acted. Probably it's a good idea, but I didn't find the pros and cons of this decision, so I put some I could think of: pros: - only one file to parse, share, sync - it gives a hint to the users that if you write your dataset card, you should also specify the metadata cons: - the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums - YAML vs JSON: not sure which one is easier for users to fill and maintain - two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. - [low priority] besides the JSON file, we might want to support yaml or toml file if the user prefers (as [prettier](https://prettier.io/docs/en/configuration.html) and others do for their config files, for example). Inside the md, I understand that only YAML is allowed
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
210
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
> the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums Note that we could simply not have the checksums in the YAML metadata at all, or maybe at one point have a pointer to another file instead. We can also choose to hide (collapse) certain sections in the YAML by default when we open the dataset card editor. > two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. I think it's fine for now. Later if we really end up with too many YAML sections we can see if we need to tweak the API endpoints or the `datasets`/`huggingface_hub` tools > YAML vs JSON: not sure which one is easier for users to fill and maintain Regarding YAML vs JSON: I think YAML is easier to write by hand, and I also think that it's better for consistency - i.e. we're using more and more YAML to configure models/datasets/spaces
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
214
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
> the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums We can definitely work on this on the hub side to make the UX better
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
66
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Tensorflow Datasets catalog includes a community catalog where you can find and use HF datasets (see [here](https://www.tensorflow.org/datasets/community_catalog/huggingface)). FYI I noticed today that they are using the exported dataset_infos.json files from github to get the metadata (see their code [here](https://github.com/tensorflow/datasets/blob/a482f01c036a10496f5e22e69a2ef81b707cc418/tensorflow_datasets/scripts/documentation/build_community_catalog.py#L261))
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
39
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Metadata is now stored as YAML, and dummy data is deprecated, so I think we can close this issue.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
19
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
[ -0.2741791605949402, 0.315566748380661, -0.14980444312095642, 0.06984353810548782, 0.03937693312764168, 0.03090766631066799, 0.2513723075389862, 0.15594975650310516, -0.016516638919711113, -0.1522415727376938, 0.06120201200246811, 0.11991150677204132, -0.14077039062976837, 0.2073577493429184, -0.25670573115348816, 0.14838232100009918, 0.11316563934087753, 0.28484493494033813, -0.015216417610645294, -0.07418853789567947, -0.4210062026977539, -0.1654825359582901, 0.10490260273218155, -0.12155567854642868, -0.22699454426765442, 0.09225089102983475, 0.07404549419879913, 0.11408783495426178, -0.3049277365207672, -0.10942597687244415, 0.2012668251991272, 0.1499030888080597, 0.009249404072761536, 0.09282814711332321, -0.00010454397852299735, 0.19242553412914276, 0.23043400049209595, 0.01294630765914917, -0.40645959973335266, 0.09229420125484467, -0.36897289752960205, 0.07398252934217453, -0.0420222282409668, -0.18329033255577087, -0.2624017894268036, -0.3695718050003052, 0.004595315549522638, -0.3535469174385071, 0.058365363627672195, 0.13514822721481323, 0.25038719177246094, 0.135459765791893, -0.2572785019874573, -0.1712845116853714, 0.08049701899290085, 0.6026647090911865, -0.10558805614709854, 0.10231292247772217, 0.23607346415519714, 0.033929310739040375, -0.03836318850517273, 0.23588381707668304, -0.00898860115557909, 0.013270595110952854, -0.19337256252765656, -0.24210137128829956, -0.006020775064826012, 0.11817629635334015, 0.325851708650589, 0.22482416033744812, 0.7583528161048889, -0.2560262978076935, -0.27399998903274536, 0.016861366108059883, 0.03742863982915878, 0.052195701748132706, -0.044659100472927094, 0.018790844827890396, 0.06055276468396187, 0.24333456158638, -0.24279870092868805, -0.18052315711975098, 0.061251915991306305, -0.051953621208667755, -0.25268521904945374, 0.2741280794143677, 0.04436994343996048, 0.11378102004528046, -0.1521410197019577, -0.18704897165298462, 0.08806415647268295, -0.4192068576812744, -0.10208103805780411, -0.1266023814678192, 0.08739328384399414, -0.4818875789642334, -0.020827461034059525, -0.3407507836818695, 0.432647705078125, 0.04629157483577728, 0.15583474934101105, 0.21272258460521698, -0.17038185894489288, -0.035777945071458817, 0.5305802822113037, -0.1856420934200287, 0.001334476051852107, 0.21816912293434143, 0.29323726892471313, 0.16443921625614166, 0.07795166969299316, 0.10889321565628052, 0.054032888263463974, 0.10444982349872589, -0.4380331039428711, 0.12544560432434082, 0.12514430284500122, -0.2590186297893524, -0.20040838420391083, 0.27000126242637634, -0.021304741501808167, -0.02033456787467003, 0.022503206506371498, 0.10061591863632202, -0.06577729433774948, 0.16815602779388428, -0.2068200260400772, 0.16894415020942688, 0.25268131494522095, -0.3438762128353119, -0.09963572770357132, 0.026320479810237885, 0.17661947011947632, -0.13909819722175598, 0.24040274322032928, 0.2290017306804657, 0.5238210558891296, 0.02504332736134529, 0.14225199818611145, 0.30489006638526917, 0.32871919870376587, -0.24889805912971497, 0.09359539300203323, 0.29913049936294556, -0.11190900951623917, -0.015470242127776146, 0.04072440788149834, 0.04978174343705177, -0.204854816198349, 0.22416354715824127, 0.033978089690208435, -0.34172946214675903, -0.0313900001347065, 0.2393176555633545, -0.3089978098869324, 0.06273054331541061, -0.07155200839042664, 0.31863367557525635, -0.33366790413856506, -0.15073710680007935, 0.017778320237994194, 0.029360834509134293, -0.0843910425901413, -0.2710673213005066, 0.04324020445346832, 0.08458603173494339, -0.48181527853012085, 0.08107711374759674, 0.05327484756708145, -0.10024514049291611, -0.3581007421016693, 0.22950954735279083, -0.41297993063926697, -0.08557930588722229, -0.027706848457455635, -0.11562599241733551, 0.41222843527793884, -0.34950312972068787, -0.0758141577243805, 0.18571756780147552, 0.32451990246772766, 0.1291951835155487, 0.055180225521326065, -0.02283637784421444, 0.05198067054152489, 0.018266117200255394, 0.15761695802211761, 0.09372876584529877, 0.1081991121172905, -0.055804040282964706, -0.19518810510635376, -0.4832439720630646, -0.039917752146720886, 0.45954883098602295, -0.03927013650536537, -0.07212062180042267, -0.04457610845565796, 0.010457334108650684, 0.021392883732914925, -0.17480075359344482, -0.006391745526343584, 0.18410567939281464, 0.3492230176925659, -0.43406978249549866, 0.07991961389780045, 0.09430161863565445, -0.4528825283050537, 0.1686139851808548, 0.136560320854187, 0.21544933319091797, 0.18030767142772675, -0.40483343601226807, -0.06321066617965698, 0.004835613537579775, 0.09329494833946228, -0.19178472459316254, 0.2705283463001251, 0.10464850813150406, 0.08735530078411102, 0.05782961845397949, -0.26213791966438293, 0.027778740972280502, -0.3059413731098175, 0.10070182383060455, -0.04981375113129616, 0.3521295487880707, 0.12805314362049103, 0.1540876179933548, 0.30859214067459106, 0.1606067568063736, -0.2638663947582245, -0.1457323282957077, 0.22518007457256317, 0.11075570434331894, 0.10308288037776947, -0.07543807476758957, 0.16630113124847412, 0.37860727310180664, 0.20149993896484375, 0.01786080189049244, 0.05803031846880913, 0.2008412778377533, 0.16524860262870789, -0.005585998762398958, -0.3168421983718872, 0.4246705174446106, 0.07282257080078125, -0.15243874490261078, 0.013342860154807568, -0.16760292649269104, 0.4525541663169861, -0.1676664650440216, -0.10275240242481232, -0.23059499263763428, 0.013594684191048145, 0.28029805421829224, 0.19328352808952332, 0.18119563162326813, -0.46198931336402893, 0.1783902496099472, 0.3301401436328888, -0.15868280827999115, 0.0633738562464714, -0.11467112600803375, -0.1726442128419876, -0.14140821993350983, 0.4326387643814087, 0.0371817983686924, 0.5731505751609802, 0.2629031538963318, -0.01147830206900835, -0.07872054725885391, -0.1845126450061798, -0.015156839042901993, 0.16727639734745026, -0.4440603256225586, -0.09612109512090683, 0.1645800918340683, 0.17065660655498505, -0.17031463980674744, -0.10108091682195663, -0.0798448696732521, 0.14461959898471832, 0.09066031128168106, -0.11294659227132797, -0.19281871616840363, -0.16588877141475677, -0.2308671772480011, 0.3368094861507416, 0.1617611050605774, -0.13832871615886688, -0.1691187471151352, 0.35067084431648254, 0.21709318459033966, -0.2978655993938446, 0.2874402701854706, -0.08224040269851685, 0.4143311679363251, -0.17463210225105286, -0.37206804752349854, -0.05986982583999634, -0.36173421144485474, 0.05044088885188103, 0.3055933117866516, 0.11978460103273392, 0.12286847084760666, 0.23057234287261963, -0.23135797679424286, -0.01815519668161869, -0.31969571113586426, -0.41975584626197815, 0.2854333519935608, 0.07181750237941742, 0.14293910562992096, 0.30253076553344727, -0.032661471515893936, 0.026369867846369743, -0.05886995792388916, 0.0450454019010067, 0.08841122686862946, -0.046818021684885025, -0.2643986940383911, -0.12722009420394897, -0.15851424634456635, -0.24461308121681213, -0.15630437433719635, -0.031972870230674744, -0.28907185792922974, 0.14721308648586273, 0.193135604262352, -0.03558161109685898, 0.06181624159216881, 0.28092721104621887, -0.16137340664863586, 0.3446284532546997, -0.04653492197394371, -0.39960068464279175, -0.29420286417007446, 0.2582416236400604, 0.0010605469578877091, -0.15538997948169708, 0.0039659528993070126, -0.23035253584384918, 0.15343251824378967, 0.5054978728294373, -0.5195636749267578, -0.41527947783470154, 0.224239319562912, 0.2716989517211914, 0.06708221882581711, -0.14233385026454926, 0.3437020480632782, 0.1958148181438446, -0.11896749585866928, -0.10357050597667694, -0.28848642110824585, -0.010380166582763195, 0.05369001626968384, -0.1095602810382843, 0.09658833593130112, 0.13177646696567535, 0.05232715979218483, 0.5142629742622375, 0.05692796781659126, -0.32533738017082214, -0.12105902284383774, 0.07436530292034149, 0.5734388828277588, -0.10552762448787689, 0.11172251403331757, -0.14869938790798187, 0.09963690489530563, -0.06409245729446411, 0.2946309745311737, -0.0756276547908783, -0.12877948582172394, -0.16424494981765747, 0.12954585254192352, -0.22833728790283203, -0.24771447479724884, 0.15200085937976837, -0.110049307346344, 0.17823168635368347, 0.024502785876393318, 0.12129729986190796, -0.1589151918888092, 0.0720062106847763, -0.07926469296216965, 0.48301419615745544, -0.03456546738743782, -0.17710956931114197, -0.4878086745738983, 0.4429917633533478, 0.004122587852180004, 0.11640948802232742, -0.1035701334476471, 0.39749976992607117, -0.06344311684370041, 0.15657450258731842, -0.0980757549405098, -0.15635870397090912, 0.27591103315353394, -0.802908182144165, -0.051346711814403534, 0.19327788054943085, 0.07671418786048889, -0.17739428579807281, 0.22237785160541534, -0.19905439019203186, 0.2810589075088501, -0.028192438185214996, 0.521885335445404, -0.2880413234233856, -0.2658602297306061, 0.11737570911645889, 0.05469416081905365, -0.002010936848819256, 0.014607960358262062, 0.022502057254314423, -0.1504281461238861, -0.08744829893112183, -0.15852655470371246, 0.04924212768673897, -0.2805061340332031, -0.04879924654960632, 0.08156144618988037, -0.4014506936073303, -0.059544287621974945, 0.2920480966567993, 0.3181455731391907, -0.0717422366142273, -0.08635490387678146, 0.19131144881248474, -0.11772177368402481, 0.11609899252653122, 0.5956737399101257, 0.6008623242378235, 0.08750883489847183, -0.5481005311012268, 0.0037756573874503374, -0.15763089060783386, 0.12950056791305542, 0.4253225028514862, 0.15466059744358063, -0.08663807064294815, -0.29761767387390137, -0.3148394227027893, -0.22051051259040833, 0.17162345349788666, 0.030341096222400665, -0.17069628834724426, -0.35633841156959534, -0.16741248965263367, 0.25630852580070496, 0.14430980384349823, -0.18640607595443726, 0.13114167749881744, 0.1596195101737976, -0.3779730498790741, 0.14823928475379944, 0.08117607235908508, 0.7047032117843628, 0.25218725204467773, 0.20263545215129852, 0.15492911636829376, -0.3502146303653717, 0.6745671033859253, -0.2702271342277527, -0.03581343963742256, -0.3620418310165405, 0.05657093599438667, -0.02671557292342186, -0.0019024397479370236, 0.20114941895008087, 0.33190077543258667, -0.0833493024110794, 0.06646592915058136, 0.318346232175827, 0.3485453426837921, 0.05014195293188095, 0.2590838670730591, -0.05699114501476288, 0.01417941227555275, -0.15540829300880432, 0.2441166490316391, 0.021104779094457626, -0.3620961904525757, -0.019743360579013824, -0.10540316253900528, -0.2735029458999634, -0.13736295700073242, -0.057748518884181976, -0.2340102344751358, -0.04145541787147522, 0.01382905337959528, 0.03580612316727638, -0.22849808633327484, 0.03176049515604973, -0.36736419796943665, 0.4684610664844513, 0.13407790660858154, -0.2692374289035797, -0.09350508451461792, -0.2840535044670105, 0.18872956931591034, 0.050952084362506866, -0.04216773808002472, 0.04753958806395531, 0.0390591099858284, -0.15617060661315918, 0.14987941086292267, -0.2819647490978241, -0.22717636823654175, 0.17194227874279022, -0.17257827520370483, -0.2553810179233551, -0.43226951360702515, -0.13309980928897858, 0.11186455190181732, -0.05566548556089401, 0.02395712397992611, 0.16344206035137177, -0.07221957296133041, 0.28302913904190063, -0.010600878857076168, 0.0745215117931366, 0.0466335229575634, -0.4830852448940277, 0.0345083549618721, 0.20300258696079254, 0.07825536280870438, -0.14378896355628967, -0.46388962864875793, -0.12189391255378723, -0.3347516357898712, 0.24295741319656372, 0.1855306625366211, -0.06770820170640945, -0.11293184757232666, 0.04444550722837448, -0.3380783200263977, -0.08961746841669083, 0.029197271913290024, 0.23352079093456268, 0.07990724593400955, 0.033567432314157486, -0.32427293062210083, -0.2612234354019165, 0.468042254447937, -0.013399749994277954, 0.2865670323371887, 0.02134663239121437, -0.023485982790589333, -0.25922921299934387, -0.18660412728786469, -0.4334597587585449, 0.2507963180541992, 0.02255326136946678, 0.04225942865014076, 0.08492501825094223, 0.06993203610181808, 0.13265231251716614, -0.08282102644443512, 0.16591988503932953, -0.2968294620513916, -0.38833513855934143, -0.27805134654045105, -0.05931232124567032, 0.1594785898923874, 0.3239003121852875, -0.2540872097015381, 0.05291598290205002, -0.3550841510295868, -0.13647791743278503, 0.08046945929527283, 0.06610490381717682, 0.11064695566892624, -0.16404369473457336, 0.28057965636253357, -0.12178070843219757, 0.3177070915699005, -0.2759193181991577, 0.35000962018966675, 0.13390116393566132, 0.35617995262145996, -0.09520081430673599, 0.23752249777317047, -0.11671773344278336, 0.06464321911334991, 0.17178653180599213, 0.1785571277141571, -0.09666077047586441, -0.011764174327254295, 0.25014880299568176, 0.10408687591552734, 0.08742528408765793, 0.1189904659986496, 0.27524179220199585, 0.33561012148857117, -0.3538854420185089, -0.024716541171073914, 0.2767584025859833, 0.2257707417011261, -0.24724411964416504, -0.3572157919406891, 0.28305163979530334, 0.10964301973581314, 0.38223183155059814, 0.24112319946289062, 0.6070775985717773, -0.05149360001087189, 0.5319648385047913, -0.05579714849591255, 0.527783989906311, 0.06995967775583267, 0.08760924637317657, 0.25502339005470276, -0.15313272178173065, -0.03401358798146248, -0.10164067149162292, 0.2870550751686096, 0.23182374238967896, -0.0267975851893425, -0.06735110282897949, 0.2132507562637329, 0.12449503690004349, -0.14704933762550354, 0.14215967059135437, 0.01941283978521824, 0.5789141654968262, 0.277065634727478, 0.06706078350543976, 0.049682144075632095, 0.05521587282419205, 0.1476738154888153, -0.18464674055576324, 0.16567157208919525, -0.3200305104255676, -0.379958838224411, -0.05626600235700607, -0.056971170008182526, -0.30822810530662537, -0.19300121068954468, -0.2379092127084732, 0.1054067313671112, -0.3272560238838196, -0.14935611188411713, 0.18014925718307495, -0.33998987078666687, 0.04050415754318237, -0.047193627804517746, 0.3675733804702759, 0.10978858917951584, -0.12109111994504929, 0.06990477442741394, 0.022944295778870583, 0.2556544542312622, 0.03144465386867523, 0.4244745969772339, 0.5214270949363708, 0.17203237116336823, -0.06316202878952026, -0.15122990310192108, -0.2631150186061859, -0.09637391567230225, -0.07528886944055557, -0.20776709914207458, 0.2569350004196167, -0.1095028892159462, -0.6428263783454895, 0.4041861891746521, 0.300388902425766, -0.16694067418575287, 0.14660465717315674, 0.0438440777361393, -0.3927977681159973, -0.3258955776691437, -0.18678288161754608, -0.017415087670087814, -0.004698359407484531, 0.587363600730896, -0.14762528240680695, 0.07976192981004715, -0.5579019784927368, 0.3873366713523865, 0.07029607892036438, 0.20126128196716309, 0.0017414850881323218, 0.19064126908779144, -0.23702466487884521, 0.22848817706108093, -0.024343807250261307, -0.2525687515735626, 0.16959580779075623, -0.14786311984062195, -0.38098177313804626, 0.12373044341802597, -0.03442702814936638, -0.40723568201065063, 0.0606902614235878, -0.02961384505033493, 0.4594740569591522, 0.34801244735717773, -0.3949671983718872, -0.10513853281736374, 0.08666155487298965, -0.05990844964981079, -0.31521645188331604, -0.11144152283668518, -0.006016002036631107, 0.018128355965018272, -0.020533354952931404, -0.39516347646713257, 0.13807450234889984, 0.10208260267972946, 0.11893542855978012, -0.17594832181930542, -0.027769405394792557, 0.25623348355293274, 0.19894291460514069, 0.2596057951450348, 0.16284359991550446, 0.46072909235954285, -0.12394825369119644, -0.1465536206960678, 0.136342853307724, -0.07123808562755585, 0.09420748800039291, 0.5187593698501587, 0.17831283807754517, 0.05900586023926735, -0.21930959820747375, -0.03755657747387886, 0.1930500864982605, -0.0627923235297203, 0.004898102022707462, 0.2532430589199066, -0.3652559518814087, 0.23255977034568787, -0.15754276514053345, -0.04228084906935692, -0.04068722575902939, 0.29614755511283875, -0.14112961292266846, -0.02137211710214615, 0.008199905045330524, 0.024743132293224335, 0.20953591167926788, -0.16787560284137726, 0.007496908772736788, 0.0032699150033295155, -0.04889818653464317, -0.19638073444366455, 0.0709134191274643, -0.4159439206123352, 0.08299700170755386, 0.3560366928577423, -0.12962639331817627, -0.02107354626059532, 0.044788770377635956, 0.10248008370399475, -0.1662943959236145, -0.1704106330871582, 0.09577129036188126, -0.08270978927612305, -0.3034221827983856, -0.0838211178779602, -0.11648786067962646 ]
https://github.com/huggingface/datasets/issues/3505
cast_column function not working with map function in streaming mode for Audio features
Hi! This is probably due to the fact that `IterableDataset.map` sets `features` to `None` before mapping examples. We can fix the issue by passing the old `features` dict to the map generator and performing encoding/decoding there (before calling the map transform function).
## Describe the bug I am trying to use Audio class for loading audio features using custom dataset. I am able to cast 'audio' feature into 'Audio' format with cast_column function. On using map function, I am not getting 'Audio' casted feature but getting path of audio file only. I am getting features of 'audio' of string type with load_dataset call. After using cast_column 'audio' feature is converted into 'Audio' type. But in map function I am not able to get Audio type for audio feature & getting string type data containing path of file only. So I am not able to use processor in encode function. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset, Audio from transformers import Wav2Vec2Processor def encode(batch, processor): print("Audio: ",batch['audio']) batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values return batch def print_ds(ds): iterator = iter(ds) for d in iterator: print("Data: ",d) break processor = Wav2Vec2Processor.from_pretrained(pretrained_model_path) dataset = load_dataset("custom_dataset.py","train",data_files={'train':'train_path.txt'}, data_dir="data", streaming=True, split="train") print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.cast_column("audio", Audio(sampling_rate=16_000)) print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.map(lambda x: encode(x,processor)) print("Features: ",dataset.features) print_ds(dataset) ``` ## Expected results map function not printing Audio type features be used with processor function and getting error in processor call due to this. ## Actual results # after load_dataset call Features: {'sentence': Value(dtype='string', id=None), 'audio': Value(dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': 'data/0116_003.wav'} # after cast_column call Features: {'sentence': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': {'path': 'data/0116_003.wav', 'array': array([ 1.2662281e-06, 1.0264218e-06, -1.3615092e-06, ..., 1.3017889e-02, 1.0085563e-02, 4.8155054e-03], dtype=float32), 'sampling_rate': 16000}} # after map call Features: None Audio: data/0116_003.wav Traceback (most recent call last): File "demo2.py", line 36, in <module> print_ds(dataset) File "demo2.py", line 11, in print_ds for d in iterator: File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 341, in __iter__ for key, example in self._iter(): File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 338, in _iter yield from ex_iterable File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 192, in __iter__ yield key, self.function(example) File "demo2.py", line 32, in <lambda> dataset = dataset.map(lambda x: batch_encode(x,processor)) File "demo2.py", line 6, in batch_encode batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values TypeError: string indices must be integers ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1
42
cast_column function not working with map function in streaming mode for Audio features
[ -0.3472038507461548, -0.21592338383197784, -0.0893937274813652, -0.0697631686925888, 0.5947012305259705, -0.2903028428554535, 0.44133228063583374, 0.25532278418540955, 0.18393215537071228, 0.1289825290441513, -0.24225208163261414, 0.42917972803115845, 0.03885047882795334, 0.10738704353570938, -0.05735362693667412, -0.19544470310211182, 0.11156527698040009, 0.26988810300827026, -0.33057308197021484, -0.16447453200817108, -0.15554021298885345, 0.04506418853998184, -0.4766988456249237, -0.08364864438772202, 0.24420607089996338, 0.15349836647510529, 0.2665213346481323, -0.0756775289773941, -0.20544147491455078, 0.2573014795780182, -0.312811017036438, -0.13460560142993927, -0.12868984043598175, 0.06659701466560364, -0.00010574680345598608, 0.0685693621635437, 0.08949102461338043, -0.16925740242004395, 0.16089890897274017, -0.12045253068208694, -0.48963242769241333, 0.2546265125274658, -0.3596475422382355, -0.11940260976552963, -0.15471191704273224, -0.014589929021894932, -0.09754526615142822, -0.28832733631134033, -0.1718432754278183, 0.22122836112976074, 0.19407133758068085, 0.09452804923057556, -0.05632694438099861, 0.21800215542316437, 0.061889443546533585, -0.11919636279344559, -0.23139016330242157, -0.09320582449436188, 0.3227827847003937, 0.16427582502365112, -0.08737596124410629, 0.6135570406913757, -0.31159940361976624, -0.10547459870576859, 0.11107935756444931, 0.09768799692392349, 0.022847870364785194, 0.01487319078296423, 0.22387060523033142, -0.006983089726418257, 0.37871548533439636, -0.2418893575668335, 0.12057213485240936, 0.23774419724941254, -0.06432999670505524, -0.07873205095529556, 0.20149825513362885, 0.015508489683270454, 0.07819054275751114, -0.018700476735830307, -0.4796478748321533, 0.2094941884279251, 0.08496443927288055, 0.16360598802566528, 0.002037674654275179, 0.1392356902360916, -0.08769766986370087, 0.06423895806074142, 0.033477481454610825, -0.277241975069046, -0.1820695996284485, -0.09596367925405502, -0.007805070839822292, 0.29777196049690247, -0.2188444435596466, -0.12267711758613586, 0.3650129437446594, -0.03651724383234978, -0.22245503962039948, -0.05368088558316231, 0.30478963255882263, 0.5154595971107483, 0.2019599825143814, 0.24477702379226685, 0.14139702916145325, -0.05110882967710495, 0.10895928740501404, 0.08594174683094025, 0.2709345817565918, 0.1793774515390396, -0.335560142993927, -0.21373577415943146, 0.20856671035289764, 0.07344605773687363, -0.12814944982528687, 0.024659791961312294, 0.041681550443172455, -0.13340036571025848, 0.11443357169628143, 0.022243322804570198, -0.02746848203241825, 0.13366174697875977, 0.2912519872188568, 0.30531734228134155, 0.2966502606868744, 0.22614125907421112, -0.05166944861412048, 0.3508540689945221, -0.029161851853132248, 0.16900785267353058, -0.1097419261932373, 0.06024551764130592, 0.14709056913852692, -0.1510774940252304, -0.05548301339149475, 0.2501060962677002, 0.1778973937034607, -0.07474621385335922, 0.20588600635528564, -0.17810377478599548, -0.15606190264225006, -0.04334767535328865, 0.15499167144298553, 0.1519850492477417, -0.014769966714084148, -0.054302021861076355, -0.05452848598361015, 0.2924386262893677, 0.0009690525475889444, 0.16588030755519867, -0.047124773263931274, -0.13563033938407898, -0.014303958974778652, 0.17036275565624237, 0.17400307953357697, 0.24754954874515533, 0.05952683836221695, 0.2841755151748657, 0.12983815371990204, -0.8750036954879761, 0.16203555464744568, -0.0862785205245018, -0.26910749077796936, -0.05757392197847366, 0.10562004148960114, -0.2114783525466919, -0.01932237111032009, -0.1139216423034668, 0.039395321160554886, -0.028284408152103424, 0.3156611919403076, 0.012601785361766815, 0.010634858161211014, -0.31233447790145874, 0.06213045492768288, 0.5324673652648926, 0.7528870701789856, -0.19605495035648346, -0.36400318145751953, 0.14828963577747345, 0.04308276250958443, -0.12244917452335358, 0.15740224719047546, 0.08715301752090454, 0.46376746892929077, -0.057255715131759644, -0.055164095014333725, 0.30410727858543396, 0.08217456936836243, 0.5441361665725708, -0.01242984551936388, 0.1616169959306717, -0.08228915184736252, -0.007179110776633024, -0.05209524556994438, 0.3302892744541168, 0.12779207527637482, 0.13248209655284882, -0.0027410208713263273, -0.1931576430797577, 0.3580574095249176, -0.033917512744665146, 0.19106508791446686, -0.1799817681312561, -0.09969673305749893, -0.3921913802623749, 0.013700973242521286, -0.1902068853378296, 0.4587353765964508, 0.1355552226305008, -0.17532123625278473, -0.09854727238416672, -0.15382952988147736, -0.12381070852279663, -0.006574456114321947, 0.30339890718460083, 0.1541370451450348, -0.09588183462619781, 0.21349577605724335, -0.012337256222963333, 0.008659335784614086, -0.0028290674090385437, -0.03473692387342453, -0.2298235446214676, -0.005165246780961752, 0.045920420438051224, 0.0007992656901478767, -0.22368451952934265, 0.011494615115225315, 0.2543744742870331, 0.20578281581401825, 0.14365047216415405, -0.14807449281215668, 0.22857941687107086, -0.09216897189617157, 0.196016326546669, -0.5753512978553772, 0.36591899394989014, 0.07727967947721481, -0.09421757608652115, 0.10981001704931259, 0.13874004781246185, 0.3887145221233368, -0.12270976603031158, -0.2913716435432434, 0.18323148787021637, 0.28812167048454285, 0.11720927804708481, 0.24582591652870178, 0.027582600712776184, 0.21554119884967804, 0.22193357348442078, -0.02304036170244217, -0.1887838989496231, -0.29613709449768066, -0.37307366728782654, -0.24120236933231354, -0.08659788966178894, -0.22219257056713104, 0.19039340317249298, 0.7162863612174988, -0.014014117419719696, 0.2457141876220703, -0.09989820420742035, -0.014248109422624111, -0.13137587904930115, 0.34038886427879333, -0.18013659119606018, 0.37063589692115784, 0.10170990228652954, 0.4084060788154602, -0.0767904669046402, -0.002643756102770567, -0.06992407143115997, 0.14855358004570007, -0.11622326076030731, -0.26080256700515747, 0.16915668547153473, 0.1619885116815567, -0.42221012711524963, -0.2860551178455353, 0.1473625749349594, 0.2513841390609741, 0.01106047909706831, -0.2632952630519867, -0.3788018226623535, -0.3006531894207001, -0.11857318878173828, 0.19232378900051117, -0.0405399389564991, 0.29237306118011475, -0.16964927315711975, 0.15920066833496094, 0.5648133158683777, -0.30414897203445435, 0.34513628482818604, -0.09944256395101547, -0.33113256096839905, 0.16525720059871674, -0.23094964027404785, -0.08961968868970871, 0.07903844863176346, 0.1836424618959427, 0.12894921004772186, -0.1797763854265213, 0.17639575898647308, -0.28541573882102966, 0.06552297621965408, -0.004213984590023756, -0.14085789024829865, -0.06789208948612213, 0.14353947341442108, -0.16391870379447937, -0.30129802227020264, 0.0423552468419075, 0.14049135148525238, -0.19365040957927704, -0.21704451739788055, 0.3014032244682312, -0.30269041657447815, -0.1779051125049591, 0.4006497263908386, 0.08731427043676376, -0.06545347720384598, -0.42188382148742676, -0.15115416049957275, 0.16658873856067657, -0.4732961356639862, -0.03937375918030739, -0.23061291873455048, 0.030847305431962013, -0.3229460120201111, 0.41712185740470886, -0.17507104575634003, 0.12881453335285187, 0.1163497194647789, -0.4599745273590088, 0.16801415383815765, 0.42240089178085327, -0.12280049920082092, -0.23149630427360535, -0.1983257532119751, 0.12968690693378448, -0.13850416243076324, 0.3098464012145996, 0.0825960785150528, -0.21016715466976166, 0.08132802695035934, 0.08299084007740021, 0.26226258277893066, 0.08275596797466278, 0.3273160457611084, 0.08679763227701187, -0.05405399203300476, -0.25040867924690247, -0.04537896811962128, -0.21233396232128143, 0.5611863732337952, -0.008112756535410881, 0.3719586431980133, 0.673259973526001, -0.17607547342777252, -0.02416544407606125, -0.0342286117374897, 0.0761396735906601, 0.282732754945755, -0.29619720578193665, 0.24590452015399933, -0.25288259983062744, 0.03460089862346649, 0.24030563235282898, 0.05022139847278595, -0.033394791185855865, 0.06133485212922096, 0.030710972845554352, -0.4757036864757538, -0.08267875760793686, 0.4035896360874176, -0.156022310256958, -0.1482863873243332, 0.13526146113872528, 0.010100501589477062, 0.06022543087601662, 0.10045728832483292, 0.29295140504837036, -0.029812350869178772, -0.07183711230754852, 0.21355850994586945, -0.17939689755439758, 0.03922157362103462, -0.2968205213546753, -0.05882153660058975, -0.10076665133237839, -0.22089017927646637, 0.17277978360652924, 0.20948699116706848, 0.2536083459854126, -0.16036993265151978, -0.4748334586620331, -0.09695681929588318, 0.03889574483036995, 0.24390441179275513, -0.5163097977638245, 0.20757625997066498, 0.03773009032011032, 0.36292076110839844, 0.13013139367103577, 0.08028081059455872, -0.09228594601154327, -0.2565620243549347, 0.061785466969013214, 0.3083508610725403, -0.2425156682729721, 0.27370551228523254, 0.13810117542743683, -0.011597421020269394, 0.12146395444869995, 0.21455085277557373, -0.2011464238166809, -0.19130320847034454, -0.31766924262046814, -0.08031104505062103, 0.22822897136211395, 0.17891943454742432, 0.10316736996173859, 0.039488285779953, 0.4010852873325348, -0.12849822640419006, -0.06471501290798187, 0.25387561321258545, 0.2563401758670807, 0.08720962703227997, 0.07956766337156296, -0.07149771600961685, -0.3411451578140259, -0.44183096289634705, 0.36374256014823914, 0.2775419354438782, 0.0190923810005188, 0.2680002450942993, -0.16349604725837708, 0.1577146202325821, 0.06380467116832733, 0.05044608190655708, 0.11731600761413574, 0.07237105816602707, -0.040400464087724686, -0.06187061965465546, -0.09850594401359558, 0.3040962517261505, -0.011205563321709633, 0.38317638635635376, -0.2666615843772888, 0.12936732172966003, -0.16081634163856506, -0.17443354427814484, 0.15531450510025024, -0.15204112231731415, -0.08240652829408646, 0.24974240362644196, -0.3050599992275238, 0.6140217781066895, 0.21950247883796692, -0.27572914958000183, 0.18518151342868805, -0.3979004919528961, -0.13490819931030273, -0.25927436351776123, 0.2961868643760681, 0.0229331087321043, -0.16600127518177032, -0.09496944397687912, 0.041606202721595764, -0.17718572914600372, 0.1816762238740921, -0.3195511996746063, 0.00016671139746904373, 0.1030031368136406, 0.6525231599807739, -0.10623504221439362, -0.4643894135951996, 0.010375328361988068, -0.1940734088420868, -0.23304150998592377, 0.12809982895851135, 0.12401186674833298, -0.22291377186775208, 0.316817969083786, -0.08874088525772095, 0.06985796242952347, -0.2978200912475586, 0.016277622431516647, 0.22146333754062653, -0.08638010919094086, 0.09238521754741669, -0.19452954828739166, 0.014314844273030758, -0.11087732762098312, 0.19231905043125153, -0.5850868821144104, 0.01555667258799076, -0.06273288279771805, 0.04377228394150734, 0.6578088998794556, 0.6318276524543762, -0.11887907236814499, 0.21168527007102966, -0.015051034279167652, -0.03162039816379547, -0.16387847065925598, 0.15841546654701233, -0.13199388980865479, -0.10909197479486465, -0.08496122807264328, -0.01472653541713953, -0.013112492859363556, -0.24155445396900177, -0.32085713744163513, 0.084928959608078, 0.012970487587153912, -0.1409699022769928, 0.1633242964744568, -0.38463762402534485, -0.2647329568862915, 0.3928874731063843, 0.06325272470712662, -0.05808570235967636, -0.03804774209856987, 0.5884444713592529, -0.017696566879749298, 0.2767203450202942, -0.013632908463478088, -0.10762795805931091, -0.3592475652694702, -0.1740734726190567, -0.29918813705444336, -0.1682954877614975, -0.13239189982414246, -0.051669370383024216, -0.06865634024143219, -0.561438798904419, -0.19524697959423065, 0.14581987261772156, -0.46305444836616516, 0.2914649546146393, -0.35151803493499756, -0.10945477336645126, -0.41448789834976196, 0.2783460319042206, 0.2837897837162018, -0.11036629974842072, -0.12082656472921371, 0.1749139279127121, 0.07595158368349075, -0.15680372714996338, -0.35140183568000793, -0.23114702105522156, 0.006130980793386698, 0.3019094169139862, 0.22153067588806152, 0.05261114612221718, 0.09811276942491531, -0.13572563230991364, 0.20489685237407684, 0.19082953035831451, -0.3100476562976837, -0.1423560380935669, 0.07795093208551407, 0.13100560009479523, 0.1455853283405304, 0.08028248697519302, -0.3853771984577179, -0.20141081511974335, -0.4352269768714905, -0.15335913002490997, 0.16081658005714417, 0.07713430374860764, -0.18718817830085754, -0.16008245944976807, -0.10268707573413849, -0.24796058237552643, 0.09884678572416306, -0.10081689059734344, -0.17152248322963715, -0.10568638890981674, -0.17932440340518951, -0.025888726115226746, 0.13200142979621887, 0.005558046046644449, 0.1605404019355774, 0.1070418506860733, -0.010598309338092804, -0.18138669431209564, 0.6813429594039917, 0.19303368031978607, 0.09733649343252182, 0.026791799813508987, 0.39514872431755066, 0.09425324201583862, -0.09253823012113571, -0.3184311091899872, -0.1200973317027092, 0.2194070816040039, -0.2081773728132248, -0.23369260132312775, -0.05411791056394577, -0.056831348687410355, 0.3194853663444519, 0.1479751616716385, -0.014381395652890205, -0.24348224699497223, 0.18463639914989471, -0.013703565113246441, 0.31837382912635803, -0.26445746421813965, -0.19954513013362885, 0.42161399126052856, -0.002158473012968898, 0.2427673190832138, 0.1578662395477295, -0.09422467648983002, -0.12734371423721313, 0.2026456594467163, -0.17453411221504211, -0.24605417251586914, 0.15197770297527313, -0.036575302481651306, -0.08920709043741226, -0.19825385510921478, 0.05977243557572365, 0.11747726798057556, -0.38715216517448425, 0.3768816292285919, 0.2785085439682007, -0.4392678737640381, -0.35513201355934143, 0.07470400631427765, 0.0885554701089859, 0.19335246086120605, -0.2555890679359436, -0.03824998065829277, -0.1358552873134613, -0.13414612412452698, -0.1124010905623436, 0.05953416973352432, 0.18176522850990295, 0.6759068369865417, 0.6008259057998657, -0.1829020082950592, 0.3477024435997009, 0.12739688158035278, -0.35296934843063354, -0.17530331015586853, 0.27295032143592834, -0.21298041939735413, 0.2543950378894806, -0.0521559938788414, 0.3009474277496338, 0.38385456800460815, -0.1931101381778717, 0.17285431921482086, 0.05368875339627266, 0.10122571140527725, 0.04090135172009468, 0.16080361604690552, -0.21680212020874023, -0.1804688274860382, 0.4040221571922302, 0.4893507957458496, 0.3934779763221741, 0.06882639229297638, 0.1703232228755951, -0.20379455387592316, 0.1254555583000183, 0.07162591814994812, 0.1888888031244278, 0.29867786169052124, 0.15258561074733734, -0.2824976444244385, -0.4030337929725647, -0.18411460518836975, -0.3995093107223511, -0.0378965400159359, -0.004666268825531006, -0.03385927528142929, -0.30493101477622986, 0.2822648286819458, 0.008252345956861973, 0.1144687831401825, 0.4204748272895813, 0.15097127854824066, -0.054315969347953796, -0.45126697421073914, -0.03197086974978447, -0.2495521605014801, -0.41053441166877747, 0.06074029579758644, 0.3093860149383545, -0.1833926886320114, -0.031190531328320503, 0.15564526617527008, 0.49862492084503174, 0.06421008706092834, -0.2600562572479248, -0.40484419465065, -0.12727989256381989, 0.16786205768585205, 0.04751192778348923, -0.1763431876897812, -0.051024749875068665, 0.2134687453508377, -0.05598992854356766, -0.4420839250087738, 0.2862374484539032, 0.1161641776561737, 0.3243620693683624, 0.025644764304161072, 0.03657928854227066, -0.37860989570617676, -0.32456904649734497, 0.10734134912490845, -0.14251099526882172, 0.25386449694633484, -0.43777433037757874, 0.27422669529914856, 0.2374941110610962, 0.03963470458984375, -0.010499754920601845, -0.12393241375684738, -0.1274949014186859, 0.44542941451072693, 0.2445899248123169, 0.31617873907089233, -0.2157191038131714, 0.038550153374671936, 0.11977241933345795, 0.09551990032196045, -0.12179916352033615, 0.3529226779937744, -0.3387015163898468, -0.09602563083171844, -0.2214958816766739, -0.14627552032470703, -0.16173680126667023, 0.06897933036088943, -0.08026409894227982, -0.6082441806793213, 0.43897953629493713, -0.17015531659126282, -0.4395650029182434, -0.014308927580714226, 0.04096077382564545, -0.17415323853492737, 0.13374459743499756, -0.6845777630805969, 0.14348645508289337, 0.003065081313252449, -0.1373043954372406, 0.0541987270116806, 0.12578454613685608, -0.1190723180770874, -0.10530877113342285, -0.16721422970294952, 0.14572834968566895, 0.2481164038181305, -0.09269009530544281, -0.14482514560222626, -0.0201637651771307 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Hi @ToddMorrill, thanks for reporting. Three weeks ago I contacted the team who created the Pile dataset to report this issue with their data host server: https://the-eye.eu They told me that unfortunately, the-eye was heavily affected by the recent tornado catastrophe in the US. They hope to have their data back online asap.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
53
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Hi @ToddMorrill, people from the Pile team have mirrored their data in a new host server: https://mystic.the-eye.eu See: - #3627 It should work if you update your URL. We should also update the URL in our course material.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
38
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
The old URL is still present in the HuggingFace course here: https://huggingface.co/course/chapter5/4?fw=pt I have created a PR for the Notebook here: https://github.com/huggingface/notebooks/pull/148 Not sure if the HTML is in a public repo. I wasn't able to find it.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
38
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Both URLs are broken now `HTTPError: 404 Client Error: Not Found for URL: https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst` And `ConnectTimeout: HTTPSConnectionPool(host='mystic.the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(, 'Connection to mystic.the-eye.eu timed out. (connect timeout=10.0)'))`
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
34
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
I was able to find a torrent with "The Pile" dataset here: [The Pile An 800GB Dataset of Diverse Text for Language Modeling ](https://academictorrents.com/details/0d366035664fdf51cfbe9f733953ba325776e667) The complete dataset is huge, so I would suggest you to download only the "PUBMED_title_abstracts_2019_baseline.jsonl.zst" file, which is about 7GB. You can do this by using a torrent client of your choice (I typically utilize Transmission, which is pre-installed in Ubuntu distributions).
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
66
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
@albertvillanova another issue: ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights 17 column_names = next(iter(dataset)).keys() 18 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 1353, in __iter__ 19 for key, example in ex_iterable: 20 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/datasets/iterable_dataset.py", line 207, in __iter__ 21 yield from self.generate_examples_fn(**self.kwargs) 22 File "/lfs/ampere1/0/brando9/.cache/huggingface/modules/datasets_modules/datasets/EleutherAI--pile/ebea56d358e91cf4d37b0fde361d563bed1472fbd8221a21b38fc8bb4ba554fb/pile.py", line 236, in _generate_examples 23 with zstd.open(open(files[subset], "rb"), "rt", encoding="utf-8") as f: 24 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/datasets/streaming.py", line 74, in wrapper 25 return function(*args, download_config=download_config, **kwargs) 26 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/datasets/download/streaming_download_manager.py", line 496, in xopen 27 file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open() 28 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/core.py", line 134, in open 29 return self.__enter__() 30 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/core.py", line 102, in __enter__ 31 f = self.fs.open(self.path, mode=mode) 32 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/spec.py", line 1241, in open 33 f = self._open( 34 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/implementations/http.py", line 356, in _open 35 size = size or self.info(path, **kwargs)["size"] 36 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/asyn.py", line 121, in wrapper 37 return sync(self.loop, func, *args, **kwargs) 38 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/asyn.py", line 106, in sync 39 raise return_result 40 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/asyn.py", line 61, in _runner 41 result[0] = await coro 42 File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/implementations/http.py", line 430, in _info 43 raise FileNotFoundError(url) from exc 44 FileNotFoundError: https://the-eye.eu/public/AI/pile_preliminary_components/NIH_ExPORTER_awarded_grant_text.jsonl.zst ``` any suggestions?
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
182
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
this seems to work but it's rather annoying. Summary of how to make it work: 1. get urls to parquet files into a list 2. load list to load_dataset via `load_dataset('parquet', data_files=urls)` (note api names to hf are really confusing sometimes) 3. then it should work, print a batch of text. presudo code ```python urls_hacker_news = [ "https://huggingface.co/datasets/EleutherAI/pile/resolve/refs%2Fconvert%2Fparquet/hacker_news/pile-train-00000-of-00004.parquet", "https://huggingface.co/datasets/EleutherAI/pile/resolve/refs%2Fconvert%2Fparquet/hacker_news/pile-train-00001-of-00004.parquet", "https://huggingface.co/datasets/EleutherAI/pile/resolve/refs%2Fconvert%2Fparquet/hacker_news/pile-train-00002-of-00004.parquet", "https://huggingface.co/datasets/EleutherAI/pile/resolve/refs%2Fconvert%2Fparquet/hacker_news/pile-train-00003-of-00004.parquet" ] ... # streaming = False from diversity.pile_subset_urls import urls_hacker_news path, name, data_files = 'parquet', 'hacker_news', urls_hacker_news # not changing batch_size = 512 today = datetime.datetime.now().strftime('%Y-m%m-d%d-t%Hh_%Mm_%Ss') run_name = f'{path} div_coeff_{num_batches=} ({today=} ({name=}) {data_mixture_name=} {probabilities=})' print(f'{run_name=}') # - Init wandb debug: bool = mode == 'dryrun' run = wandb.init(mode=mode, project="beyond-scale", name=run_name, save_code=True) wandb.config.update({"num_batches": num_batches, "path": path, "name": name, "today": today, 'probabilities': probabilities, 'batch_size': batch_size, 'debug': debug, 'data_mixture_name': data_mixture_name, 'streaming': streaming, 'data_files': data_files}) # run.notify_on_failure() # https://community.wandb.ai/t/how-do-i-set-the-wandb-alert-programatically-for-my-current-run/4891 print(f'{debug=}') print(f'{wandb.config=}') # -- Get probe network from datasets import load_dataset import torch from transformers import GPT2Tokenizer, GPT2LMHeadModel tokenizer = GPT2Tokenizer.from_pretrained("gpt2") if tokenizer.pad_token_id is None: tokenizer.pad_token = tokenizer.eos_token probe_network = GPT2LMHeadModel.from_pretrained("gpt2") device = torch.device(f"cuda:{0}" if torch.cuda.is_available() else "cpu") probe_network = probe_network.to(device) # -- Get data set def my_load_dataset(path, name): print(f'{path=} {name=} {streaming=}') if path == 'json' or path == 'bin' or path == 'csv': print(f'{data_files_prefix+name=}') return load_dataset(path, data_files=data_files_prefix+name, streaming=streaming, split="train").with_format("torch") elif path == 'parquet': print(f'{data_files=}') return load_dataset(path, data_files=data_files, streaming=streaming, split="train").with_format("torch") else: return load_dataset(path, name, streaming=streaming, split="train").with_format("torch") # - get data set for real now if isinstance(path, str): dataset = my_load_dataset(path, name) else: print('-- interleaving datasets') datasets = [my_load_dataset(path, name).with_format("torch") for path, name in zip(path, name)] [print(f'{dataset.description=}') for dataset in datasets] dataset = interleave_datasets(datasets, probabilities) print(f'{dataset=}') batch = dataset.take(batch_size) print(f'{next(iter(batch))=}') column_names = next(iter(batch)).keys() print(f'{column_names=}') # - Prepare functions to tokenize batch def preprocess(examples): return tokenizer(examples["text"], padding="max_length", max_length=128, truncation=True, return_tensors="pt") remove_columns = column_names # remove all keys that are not tensors to avoid bugs in collate function in task2vec's pytorch data loader def map(batch): return batch.map(preprocess, batched=True, remove_columns=remove_columns) tokenized_batch = map(batch) print(f'{next(iter(tokenized_batch))=}') ``` https://stackoverflow.com/questions/76891189/how-to-download-data-from-hugging-face-that-is-visible-on-the-data-viewer-but-th/76902681#76902681 https://discuss.huggingface.co/t/how-to-download-data-from-hugging-face-that-is-visible-on-the-data-viewer-but-the-files-are-not-available/50555/5?u=severo
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
319
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
If some people stumble upon this thread and still have this problem, i reuploaded the dataset to HF [here](https://huggingface.co/datasets/casinca/PUBMED_title_abstracts_2019_baseline) Its the exact same dataset you just have to change the url from the course, for example: ```python from datasets import load_dataset, DownloadConfig data_files = "https://huggingface.co/datasets/casinca/PUBMED_title_abstracts_2019_baseline/resolve/main/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset( "json", data_files=data_files, split="train", download_config=DownloadConfig(delete_extracted=True), # optional argument ) ```
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
57
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
[ 0.11924126744270325, -0.06925234943628311, -0.179127037525177, -0.03814591094851494, -0.2194046825170517, 0.017251739278435707, -0.004183794371783733, 0.36795058846473694, -0.23295795917510986, 0.16509881615638733, 0.0755436047911644, 0.22260762751102448, 0.18053190410137177, 0.04591879993677139, -0.1411670744419098, -0.03563398867845535, -0.14175036549568176, 0.20728734135627747, 0.17255784571170807, -0.09922869503498077, -0.1668333262205124, 0.4159904420375824, -0.15090617537498474, 0.021078824996948242, 0.5760534405708313, -0.18460850417613983, 0.09614642709493637, -0.10981915146112442, -0.3974156081676483, -0.16793812811374664, 0.07127901166677475, 0.1662396937608719, 0.05774668604135513, 0.07458170503377914, -0.00010133147588931024, -0.09983808547258377, 0.2753916382789612, -0.0006570053519681096, 0.0018125877249985933, -0.2582308053970337, 0.04299570992588997, -0.1997070461511612, -0.15460100769996643, -0.28639885783195496, -0.017311006784439087, -0.5931848287582397, -0.1070878654718399, 0.08763740956783295, 0.19058392941951752, 0.15951742231845856, 0.30038782954216003, 0.21592122316360474, 0.34292328357696533, -0.09327729791402817, 0.21977126598358154, -0.365081250667572, 0.04260580986738205, 0.08531743288040161, 0.24648214876651764, 0.3583812415599823, -0.15270370244979858, 0.1576010286808014, 0.1425313651561737, -0.02158212661743164, -0.21899981796741486, -0.08345518261194229, 0.15470995008945465, -0.15786994993686676, 0.371771901845932, 0.07688294351100922, 0.5208710432052612, 0.06253516674041748, -0.02974679134786129, 0.23062385618686676, -0.05007719248533249, 0.2778536081314087, 0.0987110435962677, 0.12381941080093384, -0.06095592677593231, -0.1548141986131668, 0.13805396854877472, -0.28383946418762207, -0.24794718623161316, -0.015843380242586136, -0.04318556189537048, 0.03582768514752388, -0.13100849092006683, 0.02068983018398285, 0.2079436480998993, -0.2792484760284424, 0.27967652678489685, 0.08571474999189377, -0.02481508068740368, 0.002679399913176894, 0.25750666856765747, -0.22157350182533264, 0.2680373191833496, -0.6264280080795288, 0.1262074112892151, 0.2406344711780548, -0.057394206523895264, 0.11975029110908508, 0.0020683500915765762, 0.01636994630098343, 0.22425825893878937, -0.35347872972488403, 0.05308198183774948, -0.1573236733675003, 0.39254504442214966, 0.41090989112854004, 0.46717625856399536, 0.07880690693855286, -0.07040104269981384, -0.07433616369962692, -0.1923971325159073, 0.03663206472992897, 0.021306928247213364, -0.4311482310295105, 0.09330890327692032, 0.2732945382595062, -0.21161477267742157, 0.1989797204732895, -0.4678492546081543, 0.013638698495924473, -0.0034970100969076157, 0.08375679701566696, 0.21642683446407318, -0.13485045731067657, 0.01027648150920868, -0.016749123111367226, -0.19658729434013367, 0.15289920568466187, 0.11807431280612946, -0.3622710406780243, 0.2846280336380005, -0.010105762630701065, 0.3145391345024109, -0.1452513486146927, 0.0619436539709568, -0.09372642636299133, 0.054086633026599884, 0.25005003809928894, -0.059776321053504944, 0.4903615713119507, 0.43705591559410095, 0.2123955637216568, -0.2984952926635742, 0.12814705073833466, -0.164267435669899, 0.05115057900547981, -0.14848849177360535, -0.12266160547733307, -0.13501094281673431, 0.2521136701107025, -0.12694470584392548, 0.09610970318317413, -0.021881721913814545, -0.23199278116226196, -0.18255479633808136, -0.0799974650144577, -0.27276480197906494, -0.025934506207704544, 0.029266446828842163, -0.08192918449640274, 0.3359195590019226, -0.010624564252793789, -0.1016908586025238, 0.1880359649658203, -0.0916520282626152, -0.015749206766486168, 0.0314355231821537, -0.02311943657696247, -0.1719222217798233, -0.03625829145312309, -0.03688220679759979, 0.3582257628440857, 0.07456301897764206, -0.37708064913749695, -0.6191567778587341, -0.07683895528316498, -0.2826908826828003, -0.2810845971107483, 0.10733333230018616, -0.22258064150810242, 0.19959552586078644, -0.02939659357070923, 0.06653331220149994, 0.21518699824810028, 0.27501311898231506, 0.08157030493021011, -0.2810939848423004, -0.2385120987892151, -0.27177703380584717, 0.1358862966299057, 0.2731003761291504, -0.08434517681598663, 0.15375545620918274, 0.4085477292537689, 0.16855037212371826, 0.12676548957824707, 0.11248526722192764, 0.33924615383148193, 0.08849812299013138, -0.43595024943351746, 0.10346075892448425, 0.11954990029335022, -0.1283433586359024, -0.23499849438667297, -0.05138896405696869, 0.2783731520175934, -0.32270124554634094, 0.002100700279697776, -0.18893413245677948, -0.1335265338420868, -0.051914945244789124, 0.019182968884706497, 0.3200530707836151, 0.13234208524227142, 0.08580563217401505, 0.0653216540813446, 0.09259816259145737, -0.2692157030105591, -0.05804700776934624, -0.19620957970619202, -0.4694189131259918, -0.04367591440677643, -0.34865042567253113, 0.11592668294906616, 0.4902611970901489, -0.15941669046878815, -0.04178133234381676, -0.11685089021921158, 0.03578122705221176, 0.002110983245074749, -0.30898094177246094, 0.23197591304779053, 0.2861495614051819, -0.01260724849998951, -0.007900631986558437, -0.3716159462928772, 0.1200571209192276, 0.33180004358291626, 0.025351952761411667, 0.10406575351953506, 0.07140560448169708, 0.24793635308742523, -0.07047852128744125, -0.06797954440116882, 0.2083262950181961, 0.05258331447839737, 0.4344262182712555, 0.05003106966614723, -0.3747367858886719, -0.15820422768592834, 0.25744298100471497, 0.4261300563812256, -0.30252206325531006, -0.20774130523204803, -0.2842256724834442, 0.13684751093387604, 0.6342582702636719, -0.14450772106647491, -0.1523473560810089, 0.01694926805794239, 0.09946723282337189, 0.05733045935630798, 0.09994988888502121, 0.2897792458534241, -0.18697518110275269, 0.16460110247135162, 0.04937804117798805, 0.09459499269723892, -0.022524207830429077, -0.16267873346805573, 0.10569239407777786, 0.12668651342391968, 0.2046869844198227, 0.31036412715911865, 0.012482077814638615, 0.028378289192914963, -0.16838619112968445, -0.12506020069122314, 0.19476698338985443, 0.1237560287117958, -0.17266523838043213, -0.22562365233898163, -0.22915205359458923, 0.3276219367980957, 0.04186299070715904, -0.18275463581085205, -0.07713187485933304, -0.17084398865699768, 0.07078011333942413, 0.5643473267555237, -0.1763051301240921, 0.004144241102039814, -0.17805494368076324, 0.19564126431941986, 0.030370812863111496, 0.1152954027056694, -0.11253761500120163, -0.12887409329414368, -0.22409510612487793, 0.292715847492218, -0.1560748815536499, 0.05872547999024391, 0.19708436727523804, -0.13540296256542206, 0.26619866490364075, -0.2931586503982544, -0.19569537043571472, 0.21282173693180084, -0.06064033880829811, -0.16951756179332733, 0.11656956374645233, 0.41566017270088196, -0.04354216903448105, 0.12628084421157837, 0.06597231328487396, -0.2598438262939453, -0.217276468873024, -0.0997290313243866, -0.23038895428180695, -0.25015512108802795, -0.22576694190502167, -0.563155472278595, -0.03994753956794739, -0.3228189945220947, 0.11734651774168015, -0.12417355924844742, 0.16231222450733185, 0.13533854484558105, -0.0600614994764328, 0.034209877252578735, 0.2513953745365143, 0.012427612207829952, -0.14528489112854004, -0.3958308696746826, 0.3908212184906006, -0.198073148727417, -0.5497642755508423, 0.1911182552576065, 0.08425436913967133, 0.2688843011856079, 0.1176900714635849, -0.39547914266586304, 0.1171439066529274, 0.31438905000686646, -0.10423383861780167, 0.0904555469751358, -0.17181384563446045, 0.35186728835105896, 0.08406621962785721, -0.17368575930595398, -0.15777145326137543, -0.08685589581727982, 0.15899552404880524, -0.05320334807038307, 0.27980339527130127, 0.12312767654657364, 0.2843323349952698, 0.0701146125793457, 0.529460072517395, -0.03768342360854149, 0.043183814734220505, 0.1454690545797348, 0.11400466412305832, -0.10056885331869125, 0.21695755422115326, -0.022920340299606323, -0.2769158184528351, 0.06445136666297913, 0.16687142848968506, 0.20780357718467712, 0.0068272692151367664, 0.16068020462989807, -0.11334362626075745, -0.12197494506835938, -0.28380391001701355, -0.2776060998439789, -0.13202300667762756, 0.2762056291103363, 0.10246556252241135, 0.2687319815158844, 0.0292118638753891, 0.06095265969634056, -0.02552623488008976, 0.2193138301372528, 0.2124682515859604, -0.09839428961277008, 0.04552000015974045, -0.2206268161535263, -0.04167966544628143, -0.30868881940841675, 0.10508792847394943, -0.0440085344016552, 0.16695497930049896, 0.04263496398925781, 0.1796174794435501, 0.21327616274356842, -0.4201613962650299, 0.28446710109710693, -0.05128739774227142, 0.5176005959510803, 0.16622908413410187, -0.1461447924375534, -0.2617560923099518, -0.0732283666729927, -0.23867909610271454, 0.18085944652557373, 0.29359686374664307, 0.18921922147274017, -0.2893279790878296, 0.0616614930331707, 0.16383475065231323, -0.42078402638435364, -0.04492717981338501, -0.0537959448993206, -0.044921066612005234, -0.8033996820449829, -0.48333433270454407, -0.1441670060157776, 0.11446696519851685, 0.09100110083818436, -0.1477208435535431, -0.14117634296417236, 0.24690985679626465, -0.12161986529827118, -0.16417734324932098, 0.20642690360546112, 0.20539869368076324, 0.061016883701086044, 0.12163116782903671, 0.2878738343715668, -0.048898037523031235, 0.3730778396129608, 0.10086564719676971, 0.159316748380661, -0.061042580753564835, 0.36336445808410645, -0.3376314342021942, -0.07939683645963669, 0.10531246662139893, -0.0864616259932518, -0.13251671195030212, 0.3396545946598053, 0.05848454311490059, 0.20964719355106354, 0.06641402095556259, 0.31389302015304565, -0.11779457330703735, -0.20278140902519226, -0.1572040617465973, 0.455392450094223, 0.015693290159106255, -0.12590454518795013, 0.18039897084236145, 0.1711636632680893, -0.0627138614654541, 0.07973501086235046, 0.06834515929222107, 0.6182160377502441, 0.2274085134267807, 0.05783318355679512, 0.03781052678823471, 0.03741901367902756, 0.15510131418704987, -0.19593195617198944, 0.16028855741024017, -0.19156889617443085, -0.10702639073133469, -0.12633363902568817, 0.014631235972046852, -0.0931180864572525, -0.02183554694056511, -0.13384616374969482, 0.10840246826410294, 0.4015266001224518, 0.2664315402507782, 0.3063103258609772, 0.42309653759002686, 0.22590528428554535, -0.00046685521374456584, -0.22843457758426666, 0.21935752034187317, -0.056201063096523285, 0.28640711307525635, -0.03249531611800194, -0.16630184650421143, -0.2528568506240845, -0.27742570638656616, 0.02705715037882328, 0.3703514039516449, 0.5374859571456909, 0.3411499857902527, -0.0749097391963005, 0.08178503066301346, 0.04872343689203262, -0.4154801368713379, -0.12941554188728333, 0.20536883175373077, -0.3160763084888458, 0.19325946271419525, 0.20989231765270233, -0.6414102911949158, -0.0009067475330084562, 0.38485053181648254, -0.014507699757814407, -0.45662108063697815, -0.20784322917461395, 0.16457010805606842, 0.025632359087467194, -0.30414658784866333, -0.07853899151086807, -0.18667198717594147, -0.233717143535614, 0.19516639411449432, 0.050412531942129135, 0.09647537022829056, -0.15402457118034363, -0.13317926228046417, 0.266631543636322, -0.2267901748418808, -0.02478811703622341, -0.04345818608999252, 0.23421144485473633, -0.14824539422988892, 0.019230831414461136, 0.20676586031913757, 0.2817784249782562, 0.4238962233066559, 0.37871110439300537, 0.1382148712873459, -0.06301377713680267, -0.2613009810447693, -0.3576585352420807, -0.03553947061300278, -0.11488617956638336, 0.07986578345298767, -0.2281339168548584, -0.1307516098022461, 0.015854626893997192, 0.35822683572769165, 0.12738251686096191, -0.10132555663585663, -0.12457339465618134, -0.29348140954971313, 0.0347331203520298, 0.13901053369045258, -0.29108262062072754, 0.04172845929861069, 0.34922927618026733, -0.02272660844027996, -0.03649654984474182, -0.41137227416038513, -0.40955960750579834, 0.16379357874393463, -0.10203223675489426, -0.10113198310136795, -0.011304174549877644, -0.15088964998722076, 0.3190586566925049, 0.14454081654548645, 0.20565767586231232, 0.17021343111991882, -0.23360072076320648, -0.3101026117801666, 0.011164975352585316, 0.01937154307961464, 0.05830332264304161, 0.03336246684193611, -0.002258476335555315, -0.3116377592086792, -0.45495179295539856, 0.39980360865592957, -0.191806823015213, -0.11508157104253769, 0.37243643403053284, 0.044894028455019, 0.1081521213054657, 0.02443264238536358, -0.02961844578385353, 0.312378466129303, -0.00011076931696152315, 0.44341373443603516, -0.10090530663728714, 0.3675745725631714, -0.012025751173496246, -0.04115558788180351, -0.47324737906455994, 0.04629025608301163, 0.1310693323612213, -0.014881138689815998, 0.19866231083869934, -0.07034902274608612, 0.1710943728685379, -0.047258514910936356, 0.20485544204711914, 0.13659778237342834, -0.33527058362960815, -0.25184810161590576, -0.19651228189468384, 0.2900518774986267, -0.24046757817268372, 0.0778680145740509, -0.22540007531642914, 0.02598773129284382, -0.1369209736585617, -0.10034085810184479, 0.15799541771411896, -0.24106469750404358, 0.09594596922397614, 0.27169889211654663, 0.6927680373191833, -0.03556184098124504, -0.03988676518201828, 0.22169169783592224, -0.0704008936882019, 0.11688848584890366, 0.15128087997436523, 0.155597984790802, 0.04830893501639366, -0.05471765622496605, 0.28784456849098206, 0.010645465925335884, 0.19910185039043427, 0.10951997339725494, -0.2094212770462036, -0.03861305117607117, 0.13832880556583405, 0.5082915425300598, 0.20300938189029694, 0.1846037209033966, 0.39907106757164, 0.04932707920670509, 0.3924085795879364, 0.03359402343630791, -0.48163264989852905, 0.36265331506729126, 0.028698593378067017, -0.04594995081424713, -0.3370908796787262, -0.14478139579296112, -0.05358954519033432, 0.386290043592453, 0.08886570483446121, -0.03446663171052933, -0.19527922570705414, 0.049814529716968536, -0.24648715555667877, -0.37399300932884216, -0.0008349335403181612, -0.21239259839057922, 0.13662661612033844, -0.2340182512998581, 0.10028334707021713, 0.09492231905460358, -0.2874986231327057, 0.140748992562294, 0.1040753573179245, 0.26886436343193054, -0.10692746192216873, -0.0840940773487091, -0.10877251625061035, 0.06997895240783691, -0.21683166921138763, 0.05816164240241051, 0.04277234897017479, 0.4388308823108673, 0.00853697583079338, 0.2665586471557617, 0.2961597740650177, -0.3176685869693756, 0.010689961723983288, 0.2781195044517517, 0.15747840702533722, 0.22063516080379486, -0.004136264324188232, -0.062207091599702835, -0.01400380115956068, 0.15514719486236572, -0.19412119686603546, -0.35505980253219604, -0.6003541946411133, 0.024934591725468636, -0.00358593394048512, 0.0014417212223634124, -0.34445229172706604, 0.1641315519809723, -0.18294984102249146, 0.42397409677505493, 0.20999227464199066, 0.05556050315499306, 0.24896767735481262, -0.3653939962387085, -0.3686361610889435, 0.27853137254714966, -0.08862535655498505, 0.013491342775523663, 0.1046883687376976, 0.1011120080947876, 0.07201182097196579, 0.04776707664132118, -0.01595968008041382, 0.16457684338092804, -0.431249737739563, 0.027945183217525482, -0.2616577744483948, 0.17541152238845825, 0.22815339267253876, 0.017186634242534637, -0.07698168605566025, 0.014968335628509521, 0.006315368693321943, -0.2682710886001587, 0.23965691030025482, -0.242579385638237, -0.021352922543883324, 0.04825061187148094, 0.08435263484716415, 0.3774438202381134, -0.04104762151837349, 0.1823326051235199, -0.24790261685848236, -0.44515421986579895, -0.12518373131752014, 0.11777614057064056, -0.14523065090179443, 0.2335534244775772, 0.20725984871387482, 0.12275540083646774, 0.23709623515605927, 0.19023941457271576, -0.07118617743253708, -0.2523347735404968, -0.2695595920085907, 0.08992408215999603, -0.39011654257774353, 0.04752584174275398, -0.005168591625988483, -0.057425934821367264, -0.17655722796916962, -0.07777176052331924, -0.0580655001103878, -0.03776359558105469, -0.3695726692676544, -0.3680986166000366, 0.27462124824523926, -0.18157829344272614, -0.09149850904941559, 0.04818406328558922, 0.030395595356822014, -0.5875133275985718, -0.06564583629369736, -0.2853001654148102, 0.14810970425605774, 0.024804603308439255, -0.04819149151444435, -0.21045036613941193, 0.07544216513633728, 0.011360639706254005, -0.2505313456058502, -0.03482850268483162, 0.22961141169071198, 0.17367897927761078, -0.39937105774879456, -0.147109717130661, -0.04431423544883728 ]
https://github.com/huggingface/datasets/issues/3499
Adjusting chunk size for streaming datasets
Hi ! Data streaming uses `fsspec` to read the data files progressively. IIRC the block size for buffering is 5MiB by default. So every time you finish iterating over a block, it downloads the next one. You can still try to increase the `fsspec` block size for buffering if it can help. To do so you just need to increase `fsspec.spec.AbstractBufferedFile.DEFAULT_BLOCK_SIZE ` Currently this is unfortunately done in a single thread, so it blocks the processing to download and uncompress the next block. At one point it would be nice to be able to do that in parallel !
**Is your feature request related to a problem? Please describe.** I want to use mc4 which I cannot save locally, so I stream it. However, I want to process the entire dataset and filter some documents from it. With the current chunk size of around 1000 documents (right?) I hit a performance bottleneck because of the frequent decompressing. **Describe the solution you'd like** I would appreciate a parameter in the load_dataset function, that allows me to set the chunksize myself (to a value like 100'000 in my case). Like that, I hope to improve the processing time.
99
Adjusting chunk size for streaming datasets
[ -0.6664466857910156, -0.22050794959068298, -0.22069542109966278, -0.03851217031478882, 0.07315310835838318, -0.1450089067220688, 0.09099245071411133, 0.29032102227211, -0.15169426798820496, 0.18015898764133453, -0.041835129261016846, -0.2724795639514923, -0.17168845236301422, 0.6104644536972046, -0.08661601692438126, -0.23669005930423737, -0.1364520788192749, 0.23366135358810425, -0.051173675805330276, 0.07507477700710297, 0.22240221500396729, -0.1330849826335907, 0.14641791582107544, -0.5248527526855469, 0.10314760357141495, 0.034179240465164185, 0.19588279724121094, 0.13048630952835083, -0.09797821193933487, -0.0991920679807663, -0.1872948557138443, 0.21100716292858124, 0.1889301836490631, -0.013663099147379398, -0.00010776001727208495, -0.11734806001186371, 0.08404484391212463, -0.20485693216323853, -0.3890751600265503, 0.5706651210784912, 0.005626927595585585, -0.33211657404899597, -0.18598167598247528, -0.131544291973114, 0.059214670211076736, -0.019990546628832817, 0.07933714985847473, -0.23617900907993317, 0.24480921030044556, 0.05101776123046875, 0.23109185695648193, 0.07817590981721878, -0.28928831219673157, 0.05312987416982651, 0.13033156096935272, 0.19707420468330383, 0.08104265481233597, -0.04542512446641922, 0.1609380543231964, 0.331949383020401, -0.29883310198783875, 0.3393372595310211, -0.04723870009183884, 0.216212198138237, 0.1608700454235077, -0.3833450973033905, -0.32262009382247925, -0.06303092837333679, 0.028764013200998306, 0.23125429451465607, 0.39120402932167053, 0.06004056707024574, -0.23953719437122345, -0.5984123945236206, -0.001503601437434554, -0.18259325623512268, -0.2378372848033905, 0.4238525331020355, 0.007073254324495792, 0.0926266685128212, -0.3880215883255005, -0.17584528028964996, -0.06916958838701248, 0.13243959844112396, 0.06635645031929016, 0.1123710349202156, -0.03506153076887131, -0.06388267129659653, 0.043397195637226105, -0.16478726267814636, 0.11022820323705673, 0.05598308518528938, 0.003540215315297246, -0.14011144638061523, -0.08872125297784805, -0.12590818107128143, -0.02001883089542389, 0.07260605692863464, 0.12365775555372238, 0.22116805613040924, 0.29453912377357483, 0.2737954556941986, 0.11523998528718948, -0.045044369995594025, 0.15814019739627838, -0.18324632942676544, -0.08842362463474274, 0.09257722645998001, -0.013365941122174263, 0.3435412049293518, 0.0761672854423523, 0.030417339876294136, 0.045111265033483505, -0.014029106125235558, -0.22887523472309113, -0.10931273549795151, -0.08766014873981476, 0.06173945963382721, -0.169365793466568, -0.011871080845594406, 0.1651282161474228, 0.07764741033315659, 0.03189074993133545, 0.03725198283791542, -0.004922586493194103, 0.3974844217300415, -0.21774064004421234, 0.10898046940565109, -0.1002715677022934, -0.39920634031295776, -0.3038112223148346, -0.11781126260757446, 0.055650193244218826, -0.022413041442632675, 0.1282026171684265, -0.32381919026374817, 0.2876695692539215, -0.1845100373029709, 0.2983989417552948, 0.179054856300354, 0.0442558191716671, -0.09446610510349274, 0.1000174954533577, 0.14447641372680664, 0.03978739306330681, -0.10447143763303757, -0.23272879421710968, 0.4216768145561218, -0.20357465744018555, 0.14476969838142395, -0.11056405305862427, -0.25141292810440063, 0.08416474610567093, 0.22742408514022827, -0.01013753842562437, -0.10519559681415558, -0.003933744505047798, 0.4076390862464905, 0.1980952024459839, -0.3707287311553955, -0.025026950985193253, -0.09101667255163193, -0.1523878425359726, -0.13741697371006012, 0.032950252294540405, 0.28905245661735535, -0.39564064145088196, -0.18297894299030304, 0.14646923542022705, 0.1306094229221344, 0.5233209729194641, 0.5146059989929199, -0.08416377007961273, -0.5020565986633301, 0.050518639385700226, 0.25939786434173584, 0.3784438669681549, -0.10892819613218307, -0.5410615801811218, 0.3347650468349457, -0.1188485249876976, 0.0013410459505394101, 0.4907987415790558, 0.21449081599712372, 0.5930862426757812, -0.10297661274671555, 0.02759058028459549, 0.5002549886703491, -0.21101291477680206, 0.24007481336593628, -0.16126884520053864, -0.2359405905008316, -0.18786950409412384, 0.20412424206733704, 0.15823669731616974, -0.18466950953006744, 0.033790018409490585, 0.020880725234746933, 0.2696356177330017, -0.0426487997174263, 0.46166175603866577, 0.04547703266143799, 0.07384838908910751, -0.1913476288318634, -0.16731293499469757, -0.09100572019815445, -0.07944350689649582, -0.147260382771492, 0.40434038639068604, -0.314921110868454, 0.30369701981544495, -0.14165423810482025, -0.025615038350224495, -0.3213910460472107, 0.436348021030426, 0.1465672105550766, 0.11838725954294205, 0.2005082219839096, 0.007673123851418495, -0.26817625761032104, -0.019428323954343796, 0.28562280535697937, -0.146392360329628, 0.03866744786500931, -0.11695542186498642, 0.17345839738845825, 0.3889888525009155, -0.2569746673107147, 0.1617303490638733, -0.09723365306854248, -0.1374109983444214, 0.02672242932021618, -0.007707932032644749, 0.16020962595939636, 0.11808299273252487, 0.22642362117767334, 0.13393747806549072, 0.13216117024421692, 0.2279616892337799, 0.07691530138254166, 0.562736988067627, -0.1723903864622116, -0.16888481378555298, 0.07954131811857224, -0.27788829803466797, 0.30809226632118225, -0.1994745284318924, -0.12648586928844452, 0.09415408968925476, -0.3679284453392029, 0.2927669584751129, 0.17864155769348145, -0.1635301560163498, -0.24810996651649475, 0.12688378989696503, 0.010801052674651146, 0.03962043672800064, 0.008237696252763271, -0.2884289026260376, 0.26809942722320557, 0.43200838565826416, -0.07925733923912048, -0.2273845672607422, 0.44269996881484985, -0.2186017781496048, -0.32778069376945496, 0.20948845148086548, 0.3099764585494995, 0.343119353055954, 0.4096277356147766, 0.5840747356414795, -0.15890660881996155, 0.23775804042816162, -0.467384934425354, 0.07657354325056076, -0.0602986216545105, -0.2673773765563965, 0.2981342673301697, 0.19284945726394653, -0.27171483635902405, -0.24829651415348053, 0.04932345077395439, 0.01865106262266636, -0.14343275129795074, -0.09650618582963943, -0.0704898089170456, -0.3290724456310272, -0.41714173555374146, -0.2958613336086273, -0.37133151292800903, -0.08045248687267303, -0.28140923380851746, 0.2192002236843109, 0.21724358201026917, -0.3125934898853302, 0.13860905170440674, 0.13144543766975403, 0.2933591306209564, 0.20146872103214264, 0.14160804450511932, 0.09720838069915771, -0.16615347564220428, 0.11927894502878189, 0.18945495784282684, -0.06693312525749207, 0.005539902951568365, 0.27361854910850525, -0.30094221234321594, 0.027482450008392334, -0.16357338428497314, -0.10247880220413208, -0.11317030340433121, 0.1521945595741272, 0.014983653090894222, -0.012239367701113224, 0.3779129087924957, 0.083607979118824, -0.11439055949449539, -0.0574675090610981, -0.05201976001262665, 0.1742178052663803, -0.028366999700665474, -0.14525017142295837, 0.26071852445602417, -0.10798829048871994, -0.010896138846874237, -0.21807023882865906, -0.47075262665748596, 0.08731694519519806, 0.30743688344955444, -0.01379749272018671, -0.14244060218334198, 0.32328712940216064, -0.46143925189971924, 0.15191546082496643, -0.012463320977985859, -0.20082753896713257, -0.3852008283138275, 0.35713115334510803, -0.24530500173568726, -0.2676497995853424, -0.01925923302769661, 0.09246370941400528, 0.08010855317115784, 0.4873928725719452, -0.2785121202468872, 0.2759193480014801, -0.07164820283651352, -0.17200984060764313, -0.18903228640556335, 0.18374426662921906, -0.20193229615688324, -0.3345271646976471, -0.10642849653959274, -0.021474629640579224, -0.04816161096096039, 0.00824339222162962, 0.4235343337059021, 0.1391792744398117, -0.04968535527586937, 0.5019173622131348, -0.06832469999790192, 0.7265313863754272, 0.2557275891304016, -0.26490625739097595, 0.26695501804351807, 0.21582935750484467, 0.23843953013420105, -0.08703996986150742, 0.3633587956428528, 0.7372427582740784, 0.0757717415690422, -0.071869857609272, 0.29711318016052246, 0.03668104484677315, -0.21789593994617462, 0.18566147983074188, -0.1446216106414795, -0.09618634730577469, -0.2062092274427414, 0.432291179895401, -0.3084088861942291, -0.09228833764791489, 0.03133293613791466, 0.018260054290294647, -0.3434017300605774, -0.22482937574386597, -0.1906214952468872, -0.12393809109926224, 0.17749303579330444, 0.11986155807971954, 0.08517869561910629, 0.3979240655899048, -0.6043496131896973, 0.050534483045339584, -0.03237702697515488, 0.1881965696811676, 0.0961388573050499, -0.4378098249435425, -0.06848069280385971, 0.24164332449436188, 0.2077651470899582, -0.1003260537981987, -0.18098825216293335, -0.3875422179698944, 0.272285133600235, -0.26377639174461365, -0.01253665704280138, 0.011765439063310623, 0.04001328721642494, 0.2955628037452698, 0.05021226406097412, -0.3854857087135315, 0.3002270460128784, 0.07470320165157318, 0.18032406270503998, 0.12963342666625977, 0.08099354803562164, -0.17418178915977478, 0.04642602056264877, -0.3541948199272156, 0.16810663044452667, 0.21286672353744507, 0.051721591502428055, -0.17160756886005402, -0.274992436170578, 0.07409341633319855, -0.18612170219421387, -0.05884428694844246, 0.16559574007987976, 0.12268532067537308, 0.07156714051961899, 0.06673508137464523, -0.03400031849741936, 0.2583684027194977, 0.371964693069458, 0.47301745414733887, 0.026553679257631302, -0.27775663137435913, 0.25427597761154175, 0.23900625109672546, 0.006195506080985069, 0.39443346858024597, 0.16347332298755646, 0.016152409836649895, 0.2829875946044922, 0.6457492709159851, -0.28099870681762695, 0.26586464047431946, -0.17724548280239105, 0.010932954028248787, -0.40400275588035583, -0.40824586153030396, 0.07897870987653732, -0.11230522394180298, 0.24195413291454315, 0.42067283391952515, -0.18144568800926208, -0.012595728039741516, 0.006549699231982231, 0.32098761200904846, 0.7209863066673279, 0.0435466505587101, 0.045564550906419754, 0.014206784777343273, -0.339936763048172, 0.22059285640716553, -0.5957043170928955, 0.2140527069568634, -0.22078146040439606, -0.20590388774871826, 0.06597285717725754, 0.09721207618713379, -0.0389736108481884, 0.14203223586082458, -0.19538399577140808, 0.05441204831004143, 0.2591002285480499, 0.43474656343460083, -0.33958694338798523, -0.009213489480316639, -0.4440900683403015, -0.1980345994234085, -0.19401244819164276, 0.17538686096668243, -0.2661657929420471, -0.08017928153276443, -0.10929393768310547, 0.03751419484615326, 0.04893121495842934, -0.07503127306699753, -0.2462576925754547, -0.15893325209617615, -0.28356823325157166, -0.28800109028816223, -0.2896687090396881, -0.296675443649292, -0.2038334161043167, 0.060671932995319366, -0.20491228997707367, -0.03571515902876854, -0.08364899456501007, 0.2375698834657669, -0.016944583505392075, -0.03209763765335083, -0.08332929015159607, -0.01822940818965435, -0.12452014535665512, 0.05855987221002579, -0.213273823261261, 0.2257312685251236, 0.26497840881347656, -0.034535497426986694, 0.2491554468870163, -0.19539859890937805, -0.16375887393951416, -0.2726268768310547, -0.29163074493408203, -0.29923903942108154, 0.20801995694637299, -0.07182596623897552, 0.1538434475660324, -0.055172149091959, 0.0687209814786911, -0.010869672521948814, 0.1729619950056076, -0.09548640251159668, -0.43000879883766174, 0.4774075746536255, -0.05800826475024223, 0.0825519785284996, -0.012862028554081917, -0.045775990933179855, -0.33253246545791626, -0.13944567739963531, 0.07919773459434509, -0.11374758929014206, 0.06989229470491409, -0.04439942166209221, -0.1320074051618576, -0.32037293910980225, 0.1677013486623764, -0.4732990562915802, 0.08428394794464111, 0.2811577320098877, -0.19561396539211273, -0.06302160769701004, -0.46265676617622375, 0.17201702296733856, -0.0758667066693306, 0.20069915056228638, -0.1347256302833557, -0.22407300770282745, -0.04149186983704567, 0.46149739623069763, -0.34715285897254944, -0.11923360079526901, 0.25692009925842285, -0.04300457611680031, -0.02316630445420742, 0.051226403564214706, -0.22216081619262695, 0.021985385566949844, 0.08919915556907654, 0.07183828949928284, -0.2695108652114868, -0.23471438884735107, -0.05319274589419365, 0.03208290785551071, 0.042746346443891525, -0.1709553450345993, -0.16819240152835846, -0.10427290946245193, -0.194852814078331, -0.4723105728626251, 0.17789007723331451, -0.18447594344615936, 0.050649382174015045, 0.11173821985721588, 0.7616716027259827, -0.2805562913417816, 0.08975235372781754, 0.08288487792015076, 0.11917518079280853, 0.31870874762535095, -0.14660035073757172, 0.17680267989635468, 0.2635423541069031, -0.03242393583059311, -0.005544187035411596, 0.018720563501119614, 0.47410938143730164, 0.07960767298936844, 0.051181353628635406, 0.08221442252397537, 0.08589418232440948, 0.16531138122081757, 0.3198426067829132, 0.5485506653785706, 0.17756369709968567, -0.25136563181877136, 0.029744954779744148, 0.2732691168785095, -0.1073560118675232, -0.1744341105222702, 0.1829720139503479, 0.19832947850227356, 0.26852765679359436, 0.1999645084142685, 0.11129625886678696, -0.01444653607904911, -0.16072745621204376, 0.05017883703112602, -0.01068991981446743, -0.010646297596395016, 0.1117684543132782, 0.590204656124115, 0.27331018447875977, -0.022912707179784775, -0.12670068442821503, 0.026402898132801056, 0.4259410500526428, 0.41076600551605225, 0.13091272115707397, 0.4983198940753937, 0.15759804844856262, 0.11022034287452698, -0.3654611110687256, -0.5325688123703003, -0.3867923319339752, 0.3080490529537201, -0.22744737565517426, 0.24249546229839325, 0.35497358441352844, 0.04175959527492523, 0.1872795820236206, -0.1550138145685196, -0.1787005513906479, 0.2592366337776184, -0.03603297472000122, -0.29031985998153687, -0.04705725610256195, -0.267886221408844, -0.16077075898647308, 0.1691209375858307, -0.0944349616765976, 0.10305459797382355, 0.4431850016117096, -0.03604673221707344, 0.15965688228607178, -0.1895209103822708, 0.061416614800691605, -0.26780423521995544, 0.05369551107287407, -0.23506061732769012, 0.1407487988471985, 0.19944921135902405, 0.035457316786050797, 0.44203662872314453, -0.17918753623962402, 0.2699128985404968, -0.14065201580524445, 0.12740860879421234, 0.11696956306695938, 0.25540176033973694, -0.03983382135629654, -0.45131659507751465, 0.1209312379360199, 0.2444293349981308, -0.0034476388245821, 0.1524423360824585, 0.2583756744861603, -0.2716746926307678, 0.25857049226760864, -0.10040260851383209, -0.4470753073692322, -0.19186580181121826, -0.01735372096300125, -0.0031536174938082695, -0.023539287969470024, -0.2683351933956146, -0.4105326235294342, -0.172596275806427, 0.043922945857048035, 0.17911675572395325, -0.32469549775123596, 0.09338467568159103, 0.043275002390146255, 0.11746964603662491, -0.08752939850091934, 0.6325272917747498, 0.06312467902898788, -0.19930416345596313, -0.024041658267378807, -0.3326345980167389, -0.20469659566879272, 0.1569257378578186, -0.3946774899959564, -0.270364910364151, -0.14375434815883636, 0.1558724343776703, 0.11637861281633377, 0.11826688051223755, -0.10633034259080887, 0.10365933179855347, 0.04285820573568344, 0.20939794182777405, -0.21714283525943756, -0.2630510926246643, -0.1961502879858017, 0.09165668487548828, 0.042896635830402374, -0.20018959045410156, 0.16345518827438354, 0.35164856910705566, 0.14338302612304688, 0.043696992099285126, -0.04380830377340317, 0.18527865409851074, -0.26657819747924805, 0.14562863111495972, -0.030338451266288757, 0.11194749176502228, -0.38202401995658875, -0.0019215389620512724, -0.14426931738853455, -0.004035556223243475, -0.15397264063358307, 0.09833667427301407, -0.0971888080239296, 0.4826258420944214, -0.13040003180503845, 0.11281407624483109, 0.04182286188006401, 0.2494320422410965, 0.06972844153642654, 0.0942898839712143, 0.07353589683771133, 0.09973904490470886, 0.06334858387708664, 0.10090892761945724, 0.1927584856748581, 0.23402129113674164, 0.011140352115035057, -0.05504995584487915, -0.002208886668086052, -0.1537981480360031, 0.3272966146469116, -0.08413484692573547, 0.008115432225167751, -0.1845615655183792, 0.013125395402312279, 0.3207462430000305, 0.08786929398775101, -0.49658066034317017, 0.38138365745544434, 0.13667690753936768, -0.25664982199668884, 0.13384023308753967, 0.2934432327747345, 0.130284383893013, -0.08657337725162506, 0.014303475618362427, 0.4101998507976532, 0.14364905655384064, -0.21753954887390137, -0.2509061396121979, -0.33910924196243286 ]
https://github.com/huggingface/datasets/issues/3490
Does datasets support load text from HDFS?
Hi ! `datasets` currently supports reading local files or files over HTTP. We may add support for other filesystems (cloud storages, hdfs...) at one point though :)
The raw text data is stored on HDFS due to the dataset's size is too large to store on my develop machine, so I wander does datasets support read data from hdfs?
27
Does datasets support load text from HDFS?
[ -0.564824640750885, 0.11513306200504303, -0.21824318170547485, 0.21351926028728485, 0.08786454051733017, 0.09354721754789352, 0.43679946660995483, -0.10527297854423523, 0.394031822681427, -0.04672262817621231, -0.4517122209072113, 0.021116236224770546, 0.11540155112743378, 0.32237184047698975, 0.0543082021176815, 0.20705634355545044, 0.11614638566970825, 0.05222932994365692, 0.014627162367105484, -0.03121349588036537, -0.08327168226242065, 0.14344343543052673, -0.019415007904171944, -0.04709429666399956, -0.3965145945549011, 0.03264867514371872, -0.048166099935770035, 0.20709338784217834, -0.05349218100309372, -0.11049176007509232, 0.05085798352956772, 0.5083010792732239, 0.3049503564834595, 0.2455718070268631, -0.00010817220754688606, 0.04323570430278778, 0.11336200684309006, -0.014914130792021751, -0.4556165933609009, -0.04183169826865196, 0.018581222742795944, -0.05067961663007736, 0.0987742617726326, -0.3347187340259552, 0.0507480688393116, 0.09655295312404633, 0.23192009329795837, -0.19448547065258026, 0.2423906773328781, -0.0070909736678004265, 0.2527448832988739, 0.1338651478290558, -0.16220155358314514, 0.02302875928580761, 0.262180358171463, 0.44003158807754517, -0.06913773715496063, 0.2788899838924408, 0.2562948763370514, 0.17249487340450287, -0.2541804611682892, 0.30107390880584717, -0.036983925849199295, 0.19590480625629425, 0.049560897052288055, 0.15340690314769745, -0.38415348529815674, 0.1028984859585762, -0.034473445266485214, 0.17515785992145538, 0.9539530277252197, -0.24254654347896576, -0.46770548820495605, -0.3196463882923126, -0.07584993541240692, 0.09385506063699722, 0.3643985092639923, 0.13170039653778076, -0.17616960406303406, 0.2763126492500305, -0.1947150081396103, -0.5271711945533752, 0.045146871358156204, -0.14168290793895721, -0.09685460478067398, 0.11624844372272491, -0.23118233680725098, -0.2003137469291687, 0.11083481460809708, 0.04683128744363785, 0.5054625868797302, -0.2367004007101059, -0.1413489431142807, 0.0358332097530365, -0.0158341396600008, -0.023759426549077034, -0.24951709806919098, 0.13273781538009644, 0.1424722522497177, -0.37082427740097046, 0.20796124637126923, 0.24464555084705353, -0.47090649604797363, 0.11827642470598221, 0.39454060792922974, -0.30223265290260315, 0.16265103220939636, -0.009915965609252453, 0.11671902239322662, -0.1353246122598648, -0.08758749067783356, -0.2235063761472702, -0.268932044506073, 0.14513318240642548, -0.2282012552022934, -0.3072769045829773, -0.0005885910359211266, -0.21428503096103668, -0.15100888907909393, -0.04896453768014908, 0.43471643328666687, -0.15141451358795166, -0.18393222987651825, 0.3247315585613251, 0.0016417113365605474, -0.07210053503513336, 0.018425049260258675, 0.04048058018088341, 0.08563610166311264, -0.20702016353607178, -0.07126691937446594, -0.0800548791885376, 0.05755271017551422, -0.011604120023548603, 0.06600142270326614, -0.10524342209100723, -0.052589550614356995, -0.12123330682516098, 0.09595809876918793, 0.13440772891044617, -0.2030700445175171, -0.34557655453681946, 0.1038750559091568, 0.19419041275978088, -0.022503439337015152, 0.12315572053194046, 0.1907767504453659, -0.2011813372373581, 0.060416754335165024, 0.14110548794269562, -0.33040082454681396, 0.0011824561515823007, -0.12630972266197205, 0.18666507303714752, 0.14444518089294434, -0.16542907059192657, -0.399909645318985, 0.3245508670806885, -0.19557234644889832, -0.18473072350025177, 0.10000155866146088, 0.1769963502883911, -0.18976177275180817, 0.09642484784126282, -0.025364238768815994, 0.35343047976493835, -0.6815071702003479, -0.22644872963428497, 0.03615862503647804, -0.27939802408218384, -0.18408747017383575, 0.17627403140068054, 0.09578589349985123, -0.06385046988725662, -0.15744362771511078, 0.5385000705718994, 0.3224845826625824, -0.1316663771867752, -0.09393366426229477, 0.6881160140037537, 0.19656457006931305, -0.22068513929843903, -0.050335127860307693, 0.13142211735248566, 0.29424095153808594, -0.04127601161599159, 0.3429866433143616, 0.31686797738075256, 0.2380603700876236, -0.0036797395441681147, 0.04774477705359459, -0.2875223457813263, -0.22237981855869293, 0.33641231060028076, 0.18303810060024261, 0.23988285660743713, 0.2762288451194763, 0.08458353579044342, 0.3448207378387451, -0.05444924905896187, 0.032475732266902924, 0.2868557572364807, 0.13913676142692566, 0.33766040205955505, -0.12863710522651672, -0.20383211970329285, -0.06522996723651886, 0.0021306092385202646, 0.3965584635734558, -0.1674416959285736, 0.27276554703712463, -0.13691453635692596, 0.06410737335681915, 0.146993026137352, 0.03755413368344307, 0.16662165522575378, 0.1619897484779358, 0.31433555483818054, -0.325716108083725, 0.005433893296867609, -0.30361369252204895, 0.3018300235271454, -0.42848852276802063, 0.010601918213069439, 0.16222167015075684, 0.4525427222251892, 0.07408230751752853, -0.052028004080057144, -0.030844876542687416, -0.0747833400964737, -0.22053858637809753, -0.0012601182097569108, 0.14257894456386566, 0.3869258761405945, -0.3020826280117035, 0.2359342724084854, 0.07874805480241776, 0.10909505933523178, 0.1698378026485443, 0.09209973365068436, 0.22411973774433136, -0.11895378679037094, 0.2588914930820465, 0.058377671986818314, -0.38694700598716736, 0.1930299699306488, -0.27605611085891724, -0.06025761365890503, 0.18317605555057526, -0.07158081233501434, 0.2837929427623749, 0.06429803371429443, 0.07152600586414337, -0.3785598874092102, 0.04237844794988632, 0.014921324327588081, 0.28907492756843567, -0.06251221150159836, -0.38007786870002747, -0.058571282774209976, 0.3275325298309326, 0.08277052640914917, 0.27612799406051636, 0.12149102240800858, -0.25998273491859436, -0.11993873119354248, 0.30465465784072876, 0.021738843992352486, 0.22860851883888245, 0.35726746916770935, 0.2715331017971039, -0.10311917215585709, -0.1566607505083084, -0.1656549870967865, 0.20542114973068237, -0.3447626233100891, -0.17864547669887543, 0.19571763277053833, 0.03651099652051926, -0.13687971234321594, -0.6583226323127747, -0.056067679077386856, 0.10198900103569031, -0.24992185831069946, -0.32940199971199036, -0.05863864719867706, -0.0020887223072350025, -0.25782540440559387, 0.11228731274604797, 0.052713215351104736, -0.11367975920438766, -0.2849026322364807, 0.1635618358850479, 0.3404417932033539, 0.10251005738973618, -0.0426974855363369, 0.10989444702863693, 0.1816462129354477, 0.009911568835377693, 0.05509539693593979, -0.4746088683605194, -0.1981056183576584, 0.09718982130289078, 0.16986355185508728, 0.16493484377861023, 0.1447056382894516, 0.03875862807035446, -0.05387983098626137, 0.02731279283761978, -0.47349363565444946, 0.16921192407608032, 0.3234874904155731, 0.025581825524568558, -0.0015186286764219403, -0.11176572740077972, 0.02715502306818962, 0.06802789866924286, 0.08301762491464615, 0.07047576457262039, -0.13163623213768005, -0.13644535839557648, -0.3907456696033478, 0.246022030711174, -0.18816079199314117, -0.1289798468351364, 0.05453944206237793, -0.11937352269887924, -0.32756271958351135, 0.23268558084964752, 0.17365016043186188, -0.027306631207466125, 0.23582430183887482, 0.07611329108476639, 0.12080623209476471, -0.026234785094857216, -0.09403298795223236, -0.2234903872013092, -0.41338157653808594, 0.15742060542106628, 0.001667237957008183, -0.261257529258728, -0.04277881607413292, 0.254337877035141, -0.440916508436203, 0.36020752787590027, -0.30770039558410645, -0.035275284200906754, 0.10783141851425171, -0.04745209589600563, -0.001755043282173574, 0.26907873153686523, 0.20560824871063232, 0.11140357702970505, -0.1788056343793869, -0.16574347019195557, -0.01833600550889969, 0.01494086068123579, 0.04912208393216133, -0.3402116000652313, -0.1422499716281891, 0.12150144577026367, -0.017278531566262245, 0.19240564107894897, -0.3993431329727173, -0.008291985839605331, 0.5066334009170532, -0.12547069787979126, 0.5749744176864624, -0.08586449176073074, 0.05012357607483864, -0.0038956867065280676, -0.19731873273849487, -0.02388675883412361, 0.4193292558193207, -0.04709731042385101, -0.03348952531814575, -0.05576816946268082, -0.10519082844257355, -0.4424448311328888, 0.029147250577807426, -0.08366698771715164, -0.32153773307800293, 0.04462296515703201, -0.02229764685034752, -0.0062284707091748714, -0.11770617961883545, -0.021396346390247345, 0.05657130479812622, 0.025542788207530975, 0.13804666697978973, -0.1972864419221878, -0.16832469403743744, 0.46672698855400085, -0.041547395288944244, 0.04623786360025406, -0.030918462201952934, 0.09785336256027222, -0.2133638709783554, -0.0011069875909015536, 0.09387585520744324, -0.17074188590049744, 0.5781657099723816, -0.25965526700019836, 0.2594491243362427, 0.00134092359803617, -0.09157022833824158, -0.056293752044439316, 0.2230408936738968, -0.349793940782547, 0.01150903757661581, -0.10340115427970886, 0.516150712966919, -0.06368590146303177, -0.06555064022541046, 0.07921471446752548, -0.15152008831501007, -0.1839713305234909, -0.2781609296798706, 0.20240969955921173, 0.11537414789199829, -0.36309924721717834, -0.07825305312871933, 0.07385681569576263, -0.11706375330686569, 0.030697831884026527, 0.16358615458011627, -0.3209885358810425, -0.0026087716687470675, 0.20439818501472473, -0.023841677233576775, 0.025424281135201454, 0.006958418991416693, -0.08152054250240326, -0.005825059954077005, 0.4759322702884674, 0.10341303050518036, 0.5281815528869629, 0.12240970879793167, 0.2738281786441803, 0.02406241185963154, -0.2991499900817871, 0.08418244868516922, 0.2251478135585785, 0.17784829437732697, 0.1254628449678421, -0.03795546293258667, -0.04645122215151787, -0.44396910071372986, 0.07721468806266785, -0.06544757634401321, 0.12546326220035553, -0.2352776825428009, -0.20183798670768738, 0.6802091002464294, -0.15033791959285736, -0.13569284975528717, 0.1217220276594162, 0.3496672511100769, -0.4805123507976532, 0.2129085808992386, 0.204047292470932, 0.5473875999450684, -0.12118171900510788, 0.3943447172641754, 0.04156474396586418, -0.026062753051519394, 0.06511426717042923, -0.5100094079971313, -0.10150432586669922, -0.34958770871162415, -0.23053593933582306, -0.29407423734664917, 0.15044061839580536, 0.1917351484298706, 0.5141000747680664, -0.05990108847618103, -0.09412727504968643, 0.35954850912094116, 0.2547376751899719, 0.12223191559314728, 0.05150671675801277, -0.4399959444999695, -0.2545194923877716, -0.4757196605205536, 0.19254790246486664, 0.17051678895950317, -0.25583019852638245, -0.20034754276275635, -0.036668676882982254, 0.4076972007751465, -0.04747415706515312, -0.22112907469272614, -0.03855740278959274, 0.05740616098046303, 0.11160490661859512, 0.17977268993854523, -0.020477045327425003, -0.03856171667575836, 0.12633538246154785, 0.4367629885673523, 0.06831426918506622, -0.1552278995513916, 0.0389929823577404, -0.05961386859416962, -0.008318061009049416, -0.049113646149635315, 0.0417945496737957, 0.27236443758010864, 0.12275074422359467, 0.07846196740865707, -0.03093854896724224, 0.07750628888607025, -0.2918902635574341, 0.23087838292121887, -0.012244111858308315, -0.21970531344413757, -0.2982519865036011, -0.4562254250049591, 0.07989153265953064, -0.009835326112806797, -0.06551963835954666, 0.10480773448944092, -0.12900839745998383, 0.07717835158109665, -0.12302843481302261, 0.23095999658107758, 0.08879544585943222, -0.32488659024238586, 0.5704975724220276, -0.2425025850534439, 0.2087034434080124, 0.1973528265953064, 0.05472167581319809, -0.32748904824256897, -0.27877792716026306, 0.03664534538984299, 0.2756555676460266, -0.10179675370454788, 0.06486595422029495, -0.06525149196386337, -0.31763800978660583, -0.17116716504096985, 0.16396605968475342, 0.00171458232216537, -0.07441841810941696, -0.4455801844596863, -0.319362074136734, -0.07359744608402252, 0.3730115294456482, -0.19824591279029846, 0.1755782812833786, 0.18972939252853394, -0.1179550290107727, 0.05652463436126709, -0.15806183218955994, -0.3514174520969391, 0.10941018909215927, -0.016878727823495865, -0.0801229402422905, 0.17050741612911224, 0.1273496299982071, 0.2235974371433258, -0.1729445904493332, 0.2126847356557846, 0.12168687582015991, 0.10291678458452225, -0.232390895485878, -0.05920768529176712, 0.11297468841075897, 0.1401730626821518, 0.0941389799118042, -0.09971491247415543, -0.19956767559051514, -0.37963706254959106, -0.19985394179821014, 0.07602973282337189, 0.3785736560821533, -0.1595640331506729, 0.16880010068416595, 0.46488678455352783, 0.13839386403560638, -0.31993457674980164, 0.0716635212302208, 0.14878378808498383, 0.266645610332489, -0.2094324231147766, 0.04089025780558586, 0.07163654267787933, 0.14373350143432617, -0.05555455759167671, 0.48361751437187195, 0.40431642532348633, -0.008524047210812569, 0.3586171567440033, -0.19583040475845337, 0.07424815744161606, 0.12166775017976761, 0.6989052891731262, 0.18712466955184937, 0.015368899330496788, -0.17101171612739563, -0.007876445539295673, 0.19108203053474426, -0.2657307982444763, -0.2502446472644806, -0.013561480678617954, -0.5957130193710327, 0.2592979371547699, 0.18095065653324127, 0.31258395314216614, 0.18455645442008972, -0.18763954937458038, 0.1750262975692749, 0.13239994645118713, -0.06397691369056702, -0.4032050669193268, 0.2622315585613251, 0.1437133252620697, 0.13348375260829926, 0.2142089158296585, 0.15551571547985077, 0.091616190969944, 0.6179240345954895, 0.09080029278993607, 0.1647782027721405, 0.2642926871776581, 0.050161708146333694, 0.04050289839506149, -0.4263850748538971, 0.3822685778141022, -0.11177346855401993, 0.17297208309173584, 0.14135640859603882, -0.18819089233875275, -0.3912285566329956, -0.194100022315979, 0.2685713469982147, -0.34712958335876465, 0.007675865665078163, -0.1414886862039566, -0.41871580481529236, 0.006993986200541258, -0.23218964040279388, -0.13128766417503357, 0.26725563406944275, -0.3420353829860687, -0.05883873254060745, 0.2328876405954361, -0.1412617415189743, 0.4169919192790985, -0.26483407616615295, 0.444873571395874, -0.01175229623913765, -0.21955062448978424, -0.3769676387310028, 0.31947463750839233, -0.16473516821861267, 0.28387489914894104, 0.5947262644767761, 0.3859890103340149, 0.16519105434417725, 0.02041994407773018, 0.04739723727107048, -0.10282842069864273, -0.4333513677120209, -0.24613778293132782, -0.19874493777751923, 0.18489976227283478, 0.1048949807882309, 0.3023128807544708, 0.48301127552986145, 0.2692481279373169, -0.19592222571372986, 0.3045719265937805, -0.10445132106542587, -0.16896969079971313, -0.21769045293331146, 0.14199039340019226, 0.002953479764983058, -0.16055068373680115, -0.05392906442284584, -0.09175975620746613, -0.21724404394626617, -0.3653924763202667, 0.5031428337097168, -0.28587448596954346, 0.18325936794281006, 0.21170267462730408, 0.1284470111131668, -0.01101530622690916, 0.3564837872982025, 0.5661110281944275, -0.04326685518026352, 0.1175655797123909, 0.03187280148267746, -0.49922654032707214, -0.009407390840351582, 0.18512041866779327, -0.1844032257795334, -0.09584834426641464, 0.11817622929811478, 0.5197006464004517, 0.22661477327346802, -0.07156579941511154, 0.05753451585769653, -0.009667590260505676, -0.14479495584964752, -0.18740692734718323, -0.20999565720558167, 0.20430710911750793, 0.2845057547092438, -0.2854652404785156, -0.44362249970436096, 0.2115664780139923, 0.0397280789911747, 0.09338603168725967, 0.006538315210491419, 0.19465875625610352, -0.09660112857818604, -0.47979891300201416, 0.057569000869989395, -0.38658425211906433, 0.3109361231327057, -0.28836163878440857, 0.08081330358982086, 0.13770917057991028, -0.23984216153621674, -0.2604168653488159, -0.0013174444902688265, 0.14525416493415833, 0.5081655979156494, -0.32724064588546753, 0.06638338416814804, 0.13629497587680817, -0.19808030128479004, -0.18891435861587524, 0.3451596796512604, -0.1980394870042801, 0.17260026931762695, -0.19905796647071838, 0.02152976021170616, 0.07702493667602539, 0.2774774432182312, -0.026256639510393143, 0.11553414911031723, 0.005417420994490385, -0.3510063886642456, 0.1412086933851242, -0.1938660591840744, -0.31677448749542236, 0.04585057497024536, -0.27655526995658875, 0.3635818064212799, -0.17044447362422943, -0.646919310092926, 0.1323752999305725, 0.37811774015426636, -0.15593840181827545, -0.06274601817131042, -0.004883153829723597, 0.06761037558317184, 0.13934120535850525, -0.25186020135879517, 0.15111146867275238, 0.17761807143688202, -0.20611032843589783, -0.4623035490512848, -0.20208315551280975 ]
https://github.com/huggingface/datasets/issues/3488
URL query parameters are set as path in the compression hop for fsspec
I think the test passes because it simply ignore what's after `gzip://`. The returned urlpath is expected to look like `gzip://filename::url`, and the filename is currently considered to be what's after the final `/`, hence the result. We can decide to change this and simply have `gzip://::url`, this way we don't need to guess the filename, what do you think ?
## Describe the bug There is an ssue with `StreamingDownloadManager._extract`. I don't know how the test `test_streaming_gg_drive_gzipped` passes: For ```python TEST_GG_DRIVE_GZIPPED_URL = "https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz" urlpath = StreamingDownloadManager().download_and_extract(TEST_GG_DRIVE_GZIPPED_URL) ``` gives `urlpath`: ```python 'gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz::https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz' ``` The gzip path makes no sense: `gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz` ## Steps to reproduce the bug ```python from datasets.utils.streaming_download_manager import StreamingDownloadManager dl_manager = StreamingDownloadManager() urlpath = dl_manager.extract("https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz") print(urlpath) ``` ## Expected results The query parameters should not be set as part of the path.
61
URL query parameters are set as path in the compression hop for fsspec
[ -0.15942050516605377, -0.028003882616758347, -0.0629228875041008, -0.04167217016220093, 0.050323501229286194, -0.4248855412006378, -0.27227792143821716, 0.1364058554172516, -0.27276429533958435, 0.25100231170654297, -0.07514077425003052, 0.16503335535526276, 0.21779610216617584, 0.3430870473384857, 0.02496911771595478, 0.08703029155731201, -0.22051814198493958, -0.047696635127067566, -0.2725568413734436, -0.1044023260474205, -0.40901991724967957, 0.39027640223503113, -0.015786543488502502, 0.24437950551509857, -0.3627437353134155, 0.08947419375181198, -0.16667836904525757, 0.40310636162757874, -0.4024120569229126, -0.17573903501033783, 0.022756418213248253, 0.13479335606098175, 0.03353024646639824, -0.16855072975158691, -0.00011216944403713569, -0.024415966123342514, 0.13393616676330566, -0.14974577724933624, -0.26385292410850525, 0.17292305827140808, -0.23466119170188904, 0.4178469181060791, 0.01888362318277359, -0.28544503450393677, -0.01993873342871666, -0.04355102777481079, 0.015635866671800613, 0.07848206907510757, 0.24644537270069122, 0.7197958827018738, 0.2794976830482483, -0.07519333809614182, -0.489958256483078, -0.06321831792593002, 0.10074888169765472, -0.13591155409812927, -0.14014717936515808, -0.3561863601207733, -0.23458749055862427, 0.09061390906572342, -0.26220887899398804, -0.08841539919376373, 0.2951856553554535, -0.2316465824842453, -0.12223585695028305, -0.19972071051597595, 0.31899553537368774, 0.006350080017000437, 0.25125959515571594, -0.17354704439640045, -0.14512397348880768, 0.07969681173563004, -0.29082590341567993, 0.28192177414894104, -0.3107309341430664, 0.05430903658270836, 0.09211436659097672, -0.010905631817877293, 0.12686479091644287, 0.2740344703197479, -0.07445273548364639, -0.17023468017578125, -0.21225973963737488, -0.07983934879302979, 0.11065796762704849, -0.031405311077833176, -0.10451687127351761, 0.04784577712416649, 0.16714276373386383, -0.06635715067386627, 0.05138872191309929, -0.201313316822052, 0.01734319142997265, -0.06396793574094772, -0.007485604379326105, -0.10980498790740967, 0.33762678503990173, 0.30898982286453247, 0.0030634859576821327, 0.18775135278701782, 0.13455955684185028, 0.03821704909205437, 0.4727683961391449, -0.08882381021976471, 0.010096793994307518, -0.03248995169997215, 0.32246172428131104, -0.07573273777961731, -0.03470167517662048, 0.04805901646614075, -0.007711939048022032, 0.028676753863692284, 0.08343803882598877, -0.15304608643054962, -0.6163459420204163, 0.024228116497397423, -0.021670011803507805, 0.0467531718313694, -0.1825551986694336, -0.20353619754314423, 0.27878373861312866, 0.04692518338561058, -0.06646616756916046, 0.41014641523361206, 0.10680695623159409, 0.1857026070356369, 0.24104447662830353, 0.03168861195445061, -0.29414665699005127, 0.10179637372493744, -0.3334730267524719, 0.002274809405207634, -0.039433401077985764, 0.14165885746479034, 0.015012530609965324, -0.11070717871189117, 0.29334497451782227, 0.08150512725114822, 0.017735041677951813, -0.34021419286727905, 0.16646961867809296, 0.08261945098638535, 0.10261529684066772, 0.2953857183456421, 0.20928220450878143, 0.03089531697332859, 0.0634162425994873, 0.15243926644325256, -0.07656287401914597, 0.14846523106098175, -0.7435190081596375, -0.19624370336532593, 0.20505204796791077, 0.18848580121994019, 0.1193423718214035, -0.058154478669166565, 0.08379025757312775, 0.08527814596891403, -0.14724096655845642, 0.16890573501586914, -0.059439461678266525, 0.17222507297992706, -0.3370141386985779, 0.03133223578333855, -0.001740950276143849, 0.15184049308300018, 0.13787870109081268, -0.3545307219028473, 0.24884919822216034, 0.11683341860771179, 0.4060427248477936, 0.31816866993904114, -0.22486208379268646, 0.09650149941444397, -0.21637602150440216, 0.49578657746315, 0.6746763586997986, -0.3210707902908325, 0.007569996640086174, 0.4936849772930145, -0.04592662677168846, -0.21700045466423035, 0.3503641188144684, -0.480932354927063, 0.2048218995332718, -0.05621366202831268, 0.336571604013443, 0.03829214721918106, 0.08403551578521729, 0.18723316490650177, -0.18431003391742706, -0.22832342982292175, -0.035001736134290695, -0.17533215880393982, -0.14199134707450867, 0.22153441607952118, 0.1739804893732071, -0.30546966195106506, 0.1711779236793518, -0.20565122365951538, -0.2265809178352356, 0.27726396918296814, -0.1886400580406189, -0.2506427466869354, 0.47548845410346985, 0.15517796576023102, 0.20565859973430634, -0.1543698012828827, -0.5085620284080505, 0.06042701005935669, 0.12034712731838226, -0.1204802393913269, -0.4324182868003845, 0.03800809755921364, -0.09004820138216019, -0.2813968360424042, 0.11276081949472427, -0.06254348158836365, -0.06960317492485046, -0.14339891076087952, -0.04623860865831375, -0.24305954575538635, -0.18895846605300903, -0.20608048141002655, 0.1011645570397377, 0.14188674092292786, -0.11102768033742905, 0.018437232822179794, 0.3296346366405487, 0.09641837328672409, 0.4505949318408966, -0.031494054943323135, -0.12561073899269104, 0.19434583187103271, 0.4761505722999573, 0.027446476742625237, 0.5592830181121826, 0.21728384494781494, 0.054233141243457794, -0.24130822718143463, -0.0073691122233867645, 0.22176149487495422, 0.07473134994506836, 0.04321391507983208, 0.21545693278312683, 0.3759004473686218, 0.2008475959300995, 0.16427664458751678, 0.34237542748451233, 0.018268434330821037, 0.37051382660865784, -0.08071410655975342, -0.2552157938480377, -0.005808704067021608, 0.10607796907424927, 0.14955949783325195, 0.2684783637523651, 0.3509925603866577, 0.2673899829387665, 0.14096574485301971, 0.3681178390979767, 0.1212240681052208, -0.12516683340072632, 0.31420275568962097, 0.1535075455904007, -0.30598029494285583, 0.0770794153213501, -0.00521492725238204, 0.26032915711402893, 0.29143714904785156, 0.1247563585639, -0.004507247358560562, -0.20992811024188995, -0.2779216468334198, 0.514573872089386, -0.19399450719356537, 0.01266980916261673, 0.00010557035420788452, -0.1762171983718872, -0.15998078882694244, -0.6921884417533875, 0.06415245682001114, 0.1176961213350296, -0.3389633893966675, -0.4906783103942871, 0.10934201627969742, -0.42277029156684875, -0.3829573690891266, 0.03771180287003517, 0.2815692126750946, 0.08781939744949341, -0.2588314712047577, 0.24833588302135468, -0.17210805416107178, -0.3600797653198242, 0.2732563316822052, -0.17036284506320953, 0.4636234939098358, 0.41038960218429565, 0.05116025358438492, -0.2511327564716339, 0.15596283972263336, -0.22609500586986542, 0.1170441135764122, -0.28760668635368347, -0.0905604213476181, -0.17489293217658997, -0.11247964203357697, 0.2528466582298279, -0.1943294107913971, -0.11753171682357788, 0.15367445349693298, 0.29314664006233215, 0.1608251929283142, 0.24599121510982513, 0.04554574564099312, 0.2674744129180908, -0.19239778816699982, 0.2416725605726242, 0.1468484103679657, -0.06535620987415314, -0.05179717764258385, 0.08199293166399002, -0.08582977205514908, -0.33676114678382874, -0.234831303358078, 0.22408273816108704, 0.03418659418821335, -0.14033591747283936, -0.24795137345790863, 0.4101692736148834, 0.6220117211341858, 0.05660347640514374, -0.1412518173456192, -0.23544427752494812, 0.013489557430148125, -0.3266999423503876, -0.29206591844558716, 0.28246983885765076, -0.18672853708267212, -0.5760366320610046, -0.14448916912078857, -0.061534538865089417, 0.09261458367109299, 0.2031564861536026, -0.08635301142930984, -0.08002756536006927, -0.0009476407431066036, -0.013467815704643726, 0.15786364674568176, 0.05976877734065056, 0.2473265677690506, 0.03961282595992088, -0.2635073661804199, -0.28357353806495667, -0.2601824700832367, 0.46657130122184753, 0.2617676854133606, 0.494649738073349, -0.18523995578289032, 0.23003531992435455, 0.05666960030794144, 0.4217982590198517, 0.18238432705402374, 0.4098636507987976, 0.5609919428825378, -0.31744205951690674, 0.12103062123060226, 0.16517674922943115, 0.14200134575366974, 0.28906041383743286, -0.004818533081561327, -0.17294956743717194, 0.595624566078186, 0.31098395586013794, 0.0048819649964571, 0.13582631945610046, 0.18924705684185028, -0.1019921526312828, -0.10112179070711136, -0.22802141308784485, 0.17883510887622833, 0.2097962498664856, 0.30675360560417175, 0.17704260349273682, -0.037184055894613266, 0.34572693705558777, 0.2264205664396286, 0.10010531544685364, 0.11286763101816177, -0.03435104712843895, 0.005910202395170927, 0.13496603071689606, -0.5409502387046814, 0.15625083446502686, 0.1921166330575943, 0.2546931803226471, -0.15864932537078857, -0.09809336811304092, 0.1421264410018921, 0.004316089674830437, 0.7492142915725708, -0.1767382174730301, 0.11168079078197479, -0.004555571358650923, -0.057886362075805664, -0.24555343389511108, 0.12587830424308777, 0.18664787709712982, 0.006428954191505909, 0.24325108528137207, 0.059961169958114624, -0.08224154263734818, -0.2129369080066681, -0.3301214575767517, -0.5458930134773254, -0.20113632082939148, 0.18863195180892944, -0.1055067703127861, -0.6196120977401733, 0.13574936985969543, -0.2099945992231369, 0.13323672115802765, 0.1277191936969757, -0.11598263680934906, -0.26745113730430603, 0.008667056448757648, -0.277514785528183, -0.16474713385105133, 0.03041781857609749, 0.17122848331928253, -0.12399879097938538, -0.27606290578842163, -0.10247185826301575, 0.23697741329669952, 0.06839855015277863, 0.17467355728149414, 0.02401880733668804, -0.1350158005952835, 0.46727707982063293, 0.007315116003155708, 0.03809821978211403, 0.2618348300457001, -0.4246875047683716, 0.1603396236896515, -0.05015605688095093, -0.012339637614786625, -0.37661001086235046, 0.12234533578157425, 0.5092898011207581, -0.10053667426109314, 0.22940608859062195, -0.05435267463326454, 0.12625761330127716, -0.07851539552211761, -0.054109420627355576, -0.038708314299583435, 0.013345339335501194, -0.20795433223247528, 0.11793085932731628, 0.017070919275283813, 0.5278014540672302, 0.018350066617131233, 0.11197520047426224, 0.22194823622703552, -0.2968033254146576, -0.2312505841255188, 0.07740753889083862, -0.17945043742656708, 0.1111450344324112, 0.0022144585382193327, -0.05506671965122223, -0.07092052698135376, 0.21541728079319, 0.20941795408725739, -0.01919730193912983, 0.301057904958725, 0.16934660077095032, -0.4763345420360565, 0.4232306480407715, 0.21907581388950348, 0.13658283650875092, -0.030236544087529182, -0.3056512773036957, 0.18574349582195282, 0.0015328506706282496, -0.03742245212197304, 0.1552501767873764, -0.19842655956745148, 0.2373822033405304, -0.5418916344642639, 0.2381860315799713, 0.4201059341430664, -0.5419304966926575, 0.02463349886238575, -0.11224625259637833, 0.34224918484687805, -0.19076691567897797, -0.14369142055511475, -0.45710963010787964, -0.20604361593723297, -0.2543402910232544, 0.393669456243515, -0.03198176994919777, 0.1644435077905655, -0.18192553520202637, 0.09522678703069687, -0.03305937722325325, -0.1392064094543457, 0.14484547078609467, -0.025512035936117172, -0.09975793212652206, -0.44212594628334045, 0.4126523435115814, -0.03805829957127571, 0.06223127245903015, -0.0761418268084526, 0.018858566880226135, -0.1384742259979248, -0.15780001878738403, -0.1323552429676056, 0.11391234397888184, -0.1642710268497467, 0.036907996982336044, 0.19595246016979218, 0.3103630244731903, -0.34786662459373474, -0.024592474102973938, 0.46593528985977173, -0.007447921670973301, -0.07195862382650375, 0.3131268620491028, -0.4958304464817047, -0.20011739432811737, -0.17622731626033783, 0.09277808666229248, -0.35994669795036316, -0.09314464032649994, 0.3622928857803345, 0.1775963455438614, -0.3228074014186859, -0.029228251427412033, 0.6016886234283447, -0.10628017783164978, 0.43510735034942627, -0.19378718733787537, -0.004259834531694651, 0.08275216817855835, -0.06275557726621628, -0.40015220642089844, 0.04840288311243057, 0.2750726640224457, 0.21733054518699646, 0.1450381875038147, -0.09924577176570892, -0.358543336391449, 0.0841483548283577, -0.29743877053260803, 0.02931586652994156, -0.40389004349708557, -0.2838820517063141, 0.16857583820819855, 0.09652680903673172, 0.08778240531682968, -0.0670149102807045, -0.20506331324577332, -0.23835612833499908, -0.2532886862754822, 0.05248669907450676, 0.19499386847019196, 0.07530905306339264, -0.2563486695289612, -0.11394115537405014, -0.22973456978797913, 0.0694861188530922, -0.0820053368806839, 0.08598414063453674, -0.05218793824315071, -0.1373336762189865, 0.23637238144874573, -0.34590059518814087, 0.04825776815414429, 0.08997227251529694, 0.207036554813385, 0.5010571479797363, -0.16950419545173645, -0.013625459745526314, -0.7370468974113464, -0.09208399057388306, 0.15787893533706665, 0.13335640728473663, 0.2506781816482544, 0.0030872467905282974, 0.026045367121696472, -0.07164464890956879, -0.379086971282959, 0.04219069331884384, 0.09765556454658508, 0.21052752435207367, -0.20594371855258942, -0.36614879965782166, -0.11162985116243362, 0.14303508400917053, -0.1874600648880005, 0.11652552336454391, -0.356320321559906, 0.043816592544317245, 0.07960629463195801, -0.11418750137090683, 0.0361771434545517, -0.34004324674606323, 0.6910151243209839, -0.07079872488975525, -0.1895364224910736, 0.17014260590076447, 0.12659862637519836, -0.20928704738616943, 0.04403708875179291, 0.33441105484962463, 0.20386362075805664, -0.037953611463308334, 0.07181569933891296, -0.07098961621522903, 0.09780161827802658, 0.19603078067302704, 0.3646743595600128, 0.18922990560531616, -0.2046923041343689, -0.0959637388586998, 0.010664760135114193, -0.2900658845901489, -0.20057709515094757, 0.15024270117282867, 0.19480204582214355, 0.1710873246192932, 0.05477704107761383, -0.22217728197574615, -0.17724184691905975, 0.1879534125328064, -0.029239172115921974, -0.4512471854686737, -0.03832431510090828, 0.041481297463178635, -0.12547242641448975, -0.2577537000179291, -0.10899992287158966, 0.17038196325302124, 0.08052270114421844, -0.19591134786605835, 0.20362360775470734, -0.07372906804084778, -0.31419089436531067, 0.04945264384150505, 0.11301624029874802, -0.1295488327741623, 0.5057562589645386, -0.22249968349933624, 0.14832867681980133, 0.31826052069664, 0.23256181180477142, 0.11379708349704742, 0.10477287322282791, 0.013924071565270424, -0.3096376359462738, 0.3417140543460846, -0.08380115777254105, -0.06948044896125793, -0.05589934438467026, 0.3337179124355316, 0.02539033629000187, 0.48773258924484253, 0.10859713703393936, -0.18921256065368652, -0.2424241155385971, -0.11148275434970856, 0.19128508865833282, 0.018487347289919853, 0.29432615637779236, -0.012706013396382332, 0.5637689828872681, -0.03570881485939026, -0.008765598759055138, -0.42303466796875, -0.2010236233472824, 0.12537264823913574, -0.5194911956787109, 0.22098307311534882, -0.1306966096162796, 0.12079364061355591, -0.1865755021572113, 0.6062873601913452, 0.07889833301305771, 0.1144857183098793, -0.1507096290588379, -0.1851123422384262, 0.08626822382211685, 0.049554403871297836, 0.10160588473081589, -0.07105390727519989, 0.03689240664243698, 0.3259022533893585, -0.17282108962535858, -0.030476760119199753, -0.010990122333168983, 0.0949423611164093, 0.29902610182762146, -0.025960130617022514, -0.011447962373495102, 0.18914048373699188, 0.030050937086343765, 0.21120643615722656, 0.046149130910634995, -0.2828570604324341, 0.30098116397857666, 0.19182179868221283, 0.07750917971134186, -0.05777529999613762, -0.28788048028945923, 0.05065944045782089, -0.06111527234315872, -0.17460204660892487, 0.04477953165769577, 0.14306816458702087, -0.3795192837715149, 0.3296124041080475, 0.10271069407463074, -0.3073776364326477, 0.2519626319408417, -0.4835638403892517, -0.08057086169719696, -0.3385511338710785, 0.006017555948346853, 0.01593822054564953, -0.017861701548099518, 0.3873528838157654, 0.09102907031774521, -0.394705593585968, 0.27368471026420593, 0.20612981915473938, -0.18429285287857056, -0.07585513591766357, -0.2964380085468292, 0.1493423730134964, -0.04435648024082184, 0.08109993487596512, 0.2971528172492981, -0.4378862679004669, 0.5331394672393799, -0.04802986606955528, -0.1613255739212036, 0.15068919956684113, 0.44778919219970703, -0.09630148857831955, 0.04449787363409996, 0.11430813372135162, -0.17706044018268585, 0.13191038370132446, 0.04319523274898529, -0.11742712557315826, 0.3783598244190216, -0.41492760181427, 0.23220939934253693, -0.09487523138523102, 0.2825535237789154, 0.21294276416301727, -0.006730813067406416, -0.015841297805309296, -0.3740723729133606 ]
https://github.com/huggingface/datasets/issues/3485
skip columns which cannot set to specific format when set_format
You can add columns that you wish to set into `torch` format using `dataset.set_format("torch", ['id', 'abc'])` so that input batch of the transform only contains those columns
**Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error.
27
skip columns which cannot set to specific format when set_format
[ -0.18879954516887665, -0.06446757912635803, -0.12720754742622375, -0.023383717983961105, 0.27330482006073, 0.22320812940597534, 0.21217361092567444, 0.5452225804328918, -0.08542212098836899, 0.15907207131385803, 0.04456183314323425, 0.052072860300540924, -0.08112388849258423, 0.47669675946235657, -0.3418833911418915, -0.06223805248737335, -0.10409709066152573, 0.39656487107276917, -0.10701450705528259, 0.10397401452064514, -0.37501800060272217, 0.10319702327251434, -0.23017732799053192, -0.20502465963363647, 0.09846991300582886, 0.0873846560716629, 0.2890647053718567, -0.04789983853697777, -0.2834398150444031, 0.21293015778064728, -0.06346133351325989, 0.10558239370584488, -0.0507751889526844, 0.16525964438915253, -0.00010352672688895836, 0.1062556803226471, -0.2510751783847809, -0.21547381579875946, -0.15554338693618774, 0.2184368222951889, -0.3772304952144623, -0.1373010277748108, -0.31646445393562317, -0.24971871078014374, -0.3449889123439789, -0.17782430350780487, -0.2923702597618103, -0.13843859732151031, 0.06784391403198242, 0.4654340147972107, 0.25196102261543274, 0.14206922054290771, -0.23215647041797638, -0.04084184765815735, 0.1472461223602295, 0.12276873737573624, -0.15919940173625946, -0.0071143195964396, -0.18039445579051971, 0.2254205346107483, 0.19164685904979706, 0.42657217383384705, -0.3573690354824066, -0.2344164252281189, -0.2502189874649048, -0.27477607131004333, 0.07720329612493515, 0.2599892020225525, 0.5797834992408752, 0.015432472340762615, 0.27236464619636536, -0.15602977573871613, -0.07155417650938034, -0.22236144542694092, 0.0718446671962738, -0.34025776386260986, 0.14417876303195953, 0.03962824121117592, 0.1148936077952385, 0.3441426157951355, -0.21633225679397583, -0.13923071324825287, -0.3525158762931824, -0.1020655408501625, -0.04582705348730087, 0.023591186851263046, -0.06402727216482162, -0.09760976582765579, 0.026157015934586525, 0.26475173234939575, -0.10548041015863419, -0.06657066941261292, 0.04496540129184723, 0.03732523322105408, -0.25288134813308716, -0.40768542885780334, -0.33145400881767273, 0.14634142816066742, -0.06602852046489716, 0.16242477297782898, -0.015463331714272499, 0.21840547025203705, 0.4255969524383545, -0.029372766613960266, -0.3365485966205597, -0.15384039282798767, 0.13288691639900208, 0.29383012652397156, 0.09634675830602646, 0.1029607504606247, 0.16584660112857819, 0.06864069402217865, 0.0975092351436615, -0.2633589208126068, -0.012239026837050915, 0.24893920123577118, 0.11248243600130081, -0.14776548743247986, -0.3734789490699768, 0.3553456664085388, 0.1725800484418869, -0.268327534198761, -0.03231167793273926, 0.46707573533058167, 0.19420406222343445, 0.08751115947961807, -0.11721785366535187, 0.3484562933444977, -0.10815460979938507, 0.19410568475723267, -0.14834243059158325, 0.306034654378891, 0.027787549421191216, -0.1809578835964203, 0.2986762225627899, 0.021448373794555664, 0.05599699541926384, 0.22673070430755615, -0.27846428751945496, 0.04693647846579552, 0.1195271760225296, -0.2657676041126251, 0.34240978956222534, 0.28385525941848755, -0.16197392344474792, 0.26313483715057373, 0.26394525170326233, 0.2338559925556183, -0.08953340351581573, 0.17008784413337708, 0.07606180757284164, -0.1589152216911316, -0.016976041719317436, 0.23469527065753937, -0.07679440826177597, 0.08790364861488342, 0.2673725187778473, 0.017497239634394646, 0.22222907841205597, -0.17601118981838226, -0.05599544569849968, -0.12170080840587616, -0.06253139674663544, -0.09725312143564224, 0.11260847002267838, 0.22785206139087677, -0.4076489806175232, 0.10208748281002045, 0.5802314281463623, -0.10817565023899078, 0.2581340968608856, -0.24674876034259796, 0.355247437953949, -0.2992142140865326, -0.027116237208247185, -0.07231157273054123, 0.169124573469162, 0.024651046842336655, -0.0266890786588192, -0.26400884985923767, -0.031100492924451828, -0.06391828507184982, 0.4528467059135437, -0.31173887848854065, -0.20065860450267792, -0.12334766983985901, -0.05458451434969902, 0.08156867325305939, 0.03367232531309128, 0.09169822931289673, 0.0362219363451004, 0.014475858770310879, 0.13482727110385895, 0.10488415509462357, 0.001528585096821189, 0.09989788383245468, -0.2793833613395691, 0.12181590497493744, -0.08027857542037964, -0.08136182278394699, -0.08149003237485886, -0.049158431589603424, 0.039712563157081604, -0.3635692894458771, 0.09016873687505722, -0.3054159879684448, -0.29931768774986267, -0.1744975745677948, 0.5599426031112671, -0.2175341695547104, 0.217746302485466, -0.16102899610996246, -0.44533228874206543, -0.3737005889415741, 0.08961544185876846, 0.3305976092815399, 0.23750558495521545, 0.17628777027130127, 0.11894019693136215, -0.0764855444431305, -0.6131375432014465, -0.15308324992656708, -0.2747132182121277, 0.011131520383059978, 0.11945059895515442, -0.2644861936569214, -0.06758727133274078, -0.14082783460617065, 0.3282490372657776, 0.2546517252922058, 0.25733688473701477, 0.061539895832538605, 0.10715096443891525, -0.05400307849049568, -0.03473958373069763, -0.2276151031255722, -0.5313828587532043, 0.23432211577892303, -0.1550445854663849, 0.20258693397045135, -0.31598347425460815, -0.3369506001472473, -0.05663277208805084, 0.14385674893856049, -0.24390578269958496, 0.42788371443748474, -0.036307625472545624, 0.2116936296224594, 0.2393602579832077, 0.002594012999907136, 0.18267090618610382, -0.1789022982120514, 0.12477614730596542, -0.7956812381744385, 0.2395574003458023, 0.2173071801662445, -0.08184213936328888, 0.22793158888816833, -0.5695504546165466, 0.13610678911209106, 0.5985185503959656, 0.12564340233802795, -0.04277236387133598, -0.14210277795791626, 0.22788548469543457, 0.19242696464061737, 0.177301287651062, 0.06767041236162186, -0.07198819518089294, 0.3453381657600403, 0.013952894136309624, -0.15550504624843597, -0.3642692565917969, -0.20916572213172913, 0.12558184564113617, -0.10867146402597427, 0.1385663002729416, 0.40264254808425903, 0.24592863023281097, -0.09915897250175476, -0.17203152179718018, 0.260605126619339, 0.1825008988380432, -0.0380498431622982, -0.2920057475566864, -0.12390560656785965, -0.45060545206069946, 0.11180633306503296, -0.10214993357658386, -0.14398294687271118, 0.37907397747039795, -0.04699573293328285, 0.253050833940506, 0.054300472140312195, -0.3613922894001007, 0.11042695492506027, -0.3040428161621094, 0.1742205172777176, 0.0710887759923935, -0.19017164409160614, -0.14660979807376862, 0.027086639776825905, 0.12966042757034302, 0.22233934700489044, 0.15037012100219727, -0.07155574858188629, 0.2716054618358612, -0.1723245084285736, -0.3286365568637848, 0.059354379773139954, 0.11449376493692398, 0.21050004661083221, -0.19251975417137146, -0.1921977549791336, 0.25066983699798584, 0.45413294434547424, -0.030495325103402138, -0.05406825244426727, 0.2603011727333069, 0.24136453866958618, 0.11750534176826477, 0.11674848198890686, 0.13615386188030243, 0.4347926378250122, 0.029915131628513336, -0.3637794852256775, 0.002072893315926194, -0.24166059494018555, -0.19790294766426086, -0.16885042190551758, 0.3073236644268036, 0.02027585171163082, 0.26931047439575195, -0.2571573257446289, -0.26453322172164917, 0.1804269254207611, -0.2261641025543213, -0.013725155964493752, 0.38654404878616333, -0.18649743497371674, -0.06567996740341187, -0.031257230788469315, 0.14545704424381256, -0.21211564540863037, 0.24252338707447052, -0.04495377093553543, -0.2645490765571594, -0.1311105638742447, -0.4488949477672577, -0.1742853820323944, -0.24606359004974365, 0.14192965626716614, 0.08548630774021149, -0.24126535654067993, -0.20595555007457733, 0.024321814998984337, 0.2431446760892868, -0.13589590787887573, -0.3829921782016754, -0.13938811421394348, 0.23215685784816742, 0.023724587634205818, -0.05761770159006119, -0.07557538896799088, 0.2528904974460602, 0.2988956570625305, 0.015427918173372746, 0.4260821044445038, -0.059682849794626236, -0.10813140124082565, 0.02600911818444729, 0.28314900398254395, 0.17017805576324463, 0.08102604746818542, -0.10372219979763031, 0.1508830338716507, -0.0037650903686881065, 0.1791742891073227, -0.09007573127746582, -0.1276664137840271, 0.3014295697212219, 0.21333816647529602, 0.30932387709617615, 0.20980820059776306, 0.33090460300445557, -0.03190906345844269, -0.10934749990701675, 0.051485780626535416, -0.07977550476789474, 0.05522877350449562, 0.09914601594209671, -0.1883426457643509, -0.5210247039794922, -0.015531492419540882, 0.2510337829589844, 0.08393633365631104, 0.44586342573165894, -0.1583254486322403, -0.2158178985118866, -0.06853193789720535, -0.0059007746167480946, 0.23427145183086395, -0.2953229546546936, -0.016503561288118362, 0.37586864829063416, -0.041024453938007355, -0.26423123478889465, -0.022068912163376808, -0.07822490483522415, -0.04201625660061836, -0.19707214832305908, 0.5436950922012329, -0.22591204941272736, -0.14579159021377563, 0.41519278287887573, 0.556751012802124, -0.07106761634349823, -0.044629115611314774, -0.025375084951519966, -0.059747353196144104, -0.37867093086242676, 0.38519835472106934, 0.30893874168395996, 0.1405298113822937, -0.1886846423149109, -0.06628972291946411, -0.05091194435954094, -0.1090429350733757, 0.26913100481033325, 0.12251386046409607, 0.03569649159908295, -0.04573296755552292, -0.13231737911701202, 0.0869758129119873, 0.011820868588984013, 0.17495939135551453, -0.008833770640194416, 0.025003807619214058, 0.2771587669849396, 0.21990634500980377, -0.31927362084388733, 0.2884458601474762, 0.2294888198375702, -0.051672641187906265, 0.19100706279277802, -0.21294137835502625, -0.2135031521320343, 0.09430482238531113, -0.3169137239456177, -0.051053375005722046, -0.11593552678823471, -0.30279478430747986, -0.2136770486831665, 0.009103584103286266, 0.0011132736690342426, 0.11238870024681091, -0.09859291464090347, 0.2315995991230011, -0.016116678714752197, 0.4454628825187683, 0.0483136847615242, 0.622613787651062, -0.01774914376437664, 0.03089909628033638, 0.20367898046970367, -0.31120797991752625, 0.2691812515258789, -0.09484944492578506, 0.11056433618068695, -0.1519702821969986, -0.17783421277999878, -0.004364797379821539, -0.10489264875650406, 0.07154083251953125, 0.1767989993095398, 0.01954476162791252, 0.053270891308784485, -0.4243280589580536, 0.44922909140586853, 0.07219678908586502, -0.3305990397930145, -0.31535017490386963, -0.09823134541511536, -0.577688992023468, 0.09759124368429184, 0.04415946453809738, -0.3511119782924652, 0.08647297322750092, 0.20942820608615875, 0.1395639330148697, -0.2739611268043518, 0.1029805913567543, -0.2342260777950287, -0.017115768045186996, -0.40831705927848816, -0.2530037760734558, -0.5305203199386597, -0.10088038444519043, 0.03188019618391991, 0.2775365710258484, 0.27429962158203125, 0.013139991089701653, -0.15039123594760895, 0.23997783660888672, 0.12681563198566437, -0.26975491642951965, 0.016834892332553864, 0.32849857211112976, -0.03426716476678848, 0.2636348009109497, 0.31513988971710205, -0.1497524231672287, 0.07558402419090271, -0.043333325535058975, -0.053603366017341614, 0.21890054643154144, -0.18235021829605103, -0.4619750380516052, -0.46877214312553406, 0.39175504446029663, -0.4344194829463959, 0.21235764026641846, -0.22549177706241608, 0.31447234749794006, 0.21464042365550995, -0.04152208939194679, -0.04009710252285004, -0.19747571647167206, 0.14544789493083954, 0.0990169569849968, 0.11914053559303284, 0.7404801249504089, 0.06972891092300415, -0.36102649569511414, -0.4150596559047699, -0.10432849079370499, 0.26502376794815063, -0.37423840165138245, 0.24089276790618896, 0.06261595338582993, -0.33806806802749634, 0.0011292541166767478, 0.15415792167186737, 0.005888447165489197, -0.08341269195079803, 0.05564873665571213, -0.34165725111961365, 0.007660544011741877, 0.08929415047168732, 0.42964690923690796, 0.1776582896709442, 0.20976752042770386, 0.37857648730278015, -0.3449559509754181, -0.04007255285978317, -0.38874155282974243, -0.35960814356803894, -0.47364121675491333, 0.042100708931684494, 0.04333021864295006, 0.42707642912864685, -0.2359021008014679, -0.09109585732221603, 0.22826671600341797, 0.1883556991815567, 0.20966577529907227, -0.3521048128604889, -0.26254570484161377, 0.08086714148521423, 0.03763747215270996, 0.1476759910583496, 0.28434476256370544, 0.05059269815683365, -0.2213583141565323, -0.1712031364440918, -0.08064461499452591, 0.10212348401546478, 0.11758983135223389, -0.027517177164554596, -0.11867038905620575, -0.011701385490596294, -0.011473276652395725, -0.1509474813938141, -0.19850340485572815, -0.033027466386556625, 0.011296601966023445, -0.05084455385804176, -0.13236132264137268, 0.060844630002975464, 0.2862745523452759, -0.2062378078699112, 0.16821260750293732, 0.1743384748697281, -0.29385605454444885, -0.048138946294784546, -0.01977907307446003, 0.18106119334697723, 0.18808171153068542, -0.14063242077827454, -0.012510033324360847, -0.20300713181495667, 0.3394562602043152, 0.31837043166160583, -0.337673544883728, 0.0010867059463635087, 0.25239598751068115, -0.288857638835907, 0.3098968267440796, 0.24793386459350586, 0.08009258657693863, -0.2516231834888458, 0.19104579091072083, 0.07151348143815994, -0.18117006123065948, -0.0015436889370903373, 0.09650818258523941, 0.410563200712204, 0.0291559137403965, 0.024855729192495346, 0.1441776305437088, -0.11038967967033386, 0.2735627293586731, -0.37837451696395874, 0.3921032249927521, 0.08683740347623825, 0.10637503862380981, 0.08606582880020142, -0.6254638433456421, -0.5841495394706726, 0.07952355593442917, -0.03521706536412239, 0.19596360623836517, 0.3098294734954834, 0.08898065984249115, 0.04253512993454933, 0.05143902823328972, 0.1223781555891037, 0.052399251610040665, 0.10892368108034134, -0.028821703046560287, -0.03981845825910568, -0.3027713894844055, -0.07560452818870544, -0.02402965910732746, -0.09183844178915024, -0.0842025950551033, 0.3185931146144867, 0.4826242923736572, -0.05156240239739418, 0.2548251152038574, -0.09842541068792343, 0.37164366245269775, -0.2409949004650116, -0.018324553966522217, -0.14471514523029327, 0.10395284742116928, 0.08127154409885406, 0.10561835020780563, 0.4194653332233429, 0.07929950952529907, 0.022409889847040176, -0.004060736857354641, 0.25616517663002014, -0.3155887722969055, -0.29689663648605347, -0.11117583513259888, -0.250398725271225, 0.30255192518234253, 0.002068819710984826, -0.04596870392560959, 0.40556448698043823, 0.1806294173002243, -0.2823825478553772, 0.03867717087268829, 0.16743580996990204, -0.01598341576755047, -0.07453998178243637, -0.25090327858924866, 0.2554168403148651, -0.24354791641235352, 0.23180359601974487, -0.29155153036117554, 0.10597740858793259, -0.04206931218504906, -0.11954627931118011, 0.13111799955368042, 0.1736152172088623, 0.27057957649230957, 0.1724178045988083, 0.24265986680984497, 0.25910070538520813, -0.2863454520702362, -0.252535879611969, -0.04736143350601196, -0.14516709744930267, -0.1827414184808731, 0.028495224192738533, -0.15145868062973022, -0.1005149856209755, 0.3774639964103699, -0.1920405626296997, 0.4242495894432068, -0.03998595476150513, 0.20708055794239044, 0.4738379716873169, 0.12816068530082703, 0.4119214713573456, -0.12086830288171768, -0.32863131165504456, 0.21160927414894104, -0.08834637701511383, -0.13661064207553864, -0.34606999158859253, 0.2577362656593323, 0.4101952314376831, 0.21931251883506775, -0.3158190846443176, -0.1353960633277893, 0.17651161551475525, 0.04991084337234497, -0.033471833914518356, -0.007595833856612444, 0.0940827950835228, -0.25789886713027954, 0.03839237242937088, -0.001524806721135974, 0.14638715982437134, -0.14324036240577698, 0.04326339811086655, 0.11348506063222885, 0.19788974523544312, -0.06539671868085861, -0.002938556717708707, 0.0387456901371479, 0.32746621966362, -0.256436824798584, 0.40483081340789795, -0.006336970254778862, 0.48492562770843506, 0.10108594596385956, -0.020614488050341606, -0.08346957713365555, -0.021927209571003914, 0.044923268258571625, 0.2750181555747986, -0.3354054093360901, -0.4538356065750122, 0.22355158627033234, -0.03171756863594055, -0.4867653548717499, 0.04546135663986206, 0.2627343237400055, 0.3424442708492279, 0.0416983962059021, -0.1869560331106186, 0.025790849700570107, 0.02040397748351097, -0.053949277848005295, 0.10803195834159851, 0.00218247645534575, -0.0214716624468565, 0.027471212670207024, 0.09983488917350769, 0.3250429928302765, 0.1549350917339325, -0.028729001060128212, -0.5222956538200378, -0.06016864627599716 ]
https://github.com/huggingface/datasets/issues/3485
skip columns which cannot set to specific format when set_format
Sorry, I miss `output_all_columns` args and thought after `dataset.set_format("torch", columns=columns)` I can only get specific columns I assigned.
**Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error.
18
skip columns which cannot set to specific format when set_format
[ -0.18879954516887665, -0.06446757912635803, -0.12720754742622375, -0.023383717983961105, 0.27330482006073, 0.22320812940597534, 0.21217361092567444, 0.5452225804328918, -0.08542212098836899, 0.15907207131385803, 0.04456183314323425, 0.052072860300540924, -0.08112388849258423, 0.47669675946235657, -0.3418833911418915, -0.06223805248737335, -0.10409709066152573, 0.39656487107276917, -0.10701450705528259, 0.10397401452064514, -0.37501800060272217, 0.10319702327251434, -0.23017732799053192, -0.20502465963363647, 0.09846991300582886, 0.0873846560716629, 0.2890647053718567, -0.04789983853697777, -0.2834398150444031, 0.21293015778064728, -0.06346133351325989, 0.10558239370584488, -0.0507751889526844, 0.16525964438915253, -0.00010352672688895836, 0.1062556803226471, -0.2510751783847809, -0.21547381579875946, -0.15554338693618774, 0.2184368222951889, -0.3772304952144623, -0.1373010277748108, -0.31646445393562317, -0.24971871078014374, -0.3449889123439789, -0.17782430350780487, -0.2923702597618103, -0.13843859732151031, 0.06784391403198242, 0.4654340147972107, 0.25196102261543274, 0.14206922054290771, -0.23215647041797638, -0.04084184765815735, 0.1472461223602295, 0.12276873737573624, -0.15919940173625946, -0.0071143195964396, -0.18039445579051971, 0.2254205346107483, 0.19164685904979706, 0.42657217383384705, -0.3573690354824066, -0.2344164252281189, -0.2502189874649048, -0.27477607131004333, 0.07720329612493515, 0.2599892020225525, 0.5797834992408752, 0.015432472340762615, 0.27236464619636536, -0.15602977573871613, -0.07155417650938034, -0.22236144542694092, 0.0718446671962738, -0.34025776386260986, 0.14417876303195953, 0.03962824121117592, 0.1148936077952385, 0.3441426157951355, -0.21633225679397583, -0.13923071324825287, -0.3525158762931824, -0.1020655408501625, -0.04582705348730087, 0.023591186851263046, -0.06402727216482162, -0.09760976582765579, 0.026157015934586525, 0.26475173234939575, -0.10548041015863419, -0.06657066941261292, 0.04496540129184723, 0.03732523322105408, -0.25288134813308716, -0.40768542885780334, -0.33145400881767273, 0.14634142816066742, -0.06602852046489716, 0.16242477297782898, -0.015463331714272499, 0.21840547025203705, 0.4255969524383545, -0.029372766613960266, -0.3365485966205597, -0.15384039282798767, 0.13288691639900208, 0.29383012652397156, 0.09634675830602646, 0.1029607504606247, 0.16584660112857819, 0.06864069402217865, 0.0975092351436615, -0.2633589208126068, -0.012239026837050915, 0.24893920123577118, 0.11248243600130081, -0.14776548743247986, -0.3734789490699768, 0.3553456664085388, 0.1725800484418869, -0.268327534198761, -0.03231167793273926, 0.46707573533058167, 0.19420406222343445, 0.08751115947961807, -0.11721785366535187, 0.3484562933444977, -0.10815460979938507, 0.19410568475723267, -0.14834243059158325, 0.306034654378891, 0.027787549421191216, -0.1809578835964203, 0.2986762225627899, 0.021448373794555664, 0.05599699541926384, 0.22673070430755615, -0.27846428751945496, 0.04693647846579552, 0.1195271760225296, -0.2657676041126251, 0.34240978956222534, 0.28385525941848755, -0.16197392344474792, 0.26313483715057373, 0.26394525170326233, 0.2338559925556183, -0.08953340351581573, 0.17008784413337708, 0.07606180757284164, -0.1589152216911316, -0.016976041719317436, 0.23469527065753937, -0.07679440826177597, 0.08790364861488342, 0.2673725187778473, 0.017497239634394646, 0.22222907841205597, -0.17601118981838226, -0.05599544569849968, -0.12170080840587616, -0.06253139674663544, -0.09725312143564224, 0.11260847002267838, 0.22785206139087677, -0.4076489806175232, 0.10208748281002045, 0.5802314281463623, -0.10817565023899078, 0.2581340968608856, -0.24674876034259796, 0.355247437953949, -0.2992142140865326, -0.027116237208247185, -0.07231157273054123, 0.169124573469162, 0.024651046842336655, -0.0266890786588192, -0.26400884985923767, -0.031100492924451828, -0.06391828507184982, 0.4528467059135437, -0.31173887848854065, -0.20065860450267792, -0.12334766983985901, -0.05458451434969902, 0.08156867325305939, 0.03367232531309128, 0.09169822931289673, 0.0362219363451004, 0.014475858770310879, 0.13482727110385895, 0.10488415509462357, 0.001528585096821189, 0.09989788383245468, -0.2793833613395691, 0.12181590497493744, -0.08027857542037964, -0.08136182278394699, -0.08149003237485886, -0.049158431589603424, 0.039712563157081604, -0.3635692894458771, 0.09016873687505722, -0.3054159879684448, -0.29931768774986267, -0.1744975745677948, 0.5599426031112671, -0.2175341695547104, 0.217746302485466, -0.16102899610996246, -0.44533228874206543, -0.3737005889415741, 0.08961544185876846, 0.3305976092815399, 0.23750558495521545, 0.17628777027130127, 0.11894019693136215, -0.0764855444431305, -0.6131375432014465, -0.15308324992656708, -0.2747132182121277, 0.011131520383059978, 0.11945059895515442, -0.2644861936569214, -0.06758727133274078, -0.14082783460617065, 0.3282490372657776, 0.2546517252922058, 0.25733688473701477, 0.061539895832538605, 0.10715096443891525, -0.05400307849049568, -0.03473958373069763, -0.2276151031255722, -0.5313828587532043, 0.23432211577892303, -0.1550445854663849, 0.20258693397045135, -0.31598347425460815, -0.3369506001472473, -0.05663277208805084, 0.14385674893856049, -0.24390578269958496, 0.42788371443748474, -0.036307625472545624, 0.2116936296224594, 0.2393602579832077, 0.002594012999907136, 0.18267090618610382, -0.1789022982120514, 0.12477614730596542, -0.7956812381744385, 0.2395574003458023, 0.2173071801662445, -0.08184213936328888, 0.22793158888816833, -0.5695504546165466, 0.13610678911209106, 0.5985185503959656, 0.12564340233802795, -0.04277236387133598, -0.14210277795791626, 0.22788548469543457, 0.19242696464061737, 0.177301287651062, 0.06767041236162186, -0.07198819518089294, 0.3453381657600403, 0.013952894136309624, -0.15550504624843597, -0.3642692565917969, -0.20916572213172913, 0.12558184564113617, -0.10867146402597427, 0.1385663002729416, 0.40264254808425903, 0.24592863023281097, -0.09915897250175476, -0.17203152179718018, 0.260605126619339, 0.1825008988380432, -0.0380498431622982, -0.2920057475566864, -0.12390560656785965, -0.45060545206069946, 0.11180633306503296, -0.10214993357658386, -0.14398294687271118, 0.37907397747039795, -0.04699573293328285, 0.253050833940506, 0.054300472140312195, -0.3613922894001007, 0.11042695492506027, -0.3040428161621094, 0.1742205172777176, 0.0710887759923935, -0.19017164409160614, -0.14660979807376862, 0.027086639776825905, 0.12966042757034302, 0.22233934700489044, 0.15037012100219727, -0.07155574858188629, 0.2716054618358612, -0.1723245084285736, -0.3286365568637848, 0.059354379773139954, 0.11449376493692398, 0.21050004661083221, -0.19251975417137146, -0.1921977549791336, 0.25066983699798584, 0.45413294434547424, -0.030495325103402138, -0.05406825244426727, 0.2603011727333069, 0.24136453866958618, 0.11750534176826477, 0.11674848198890686, 0.13615386188030243, 0.4347926378250122, 0.029915131628513336, -0.3637794852256775, 0.002072893315926194, -0.24166059494018555, -0.19790294766426086, -0.16885042190551758, 0.3073236644268036, 0.02027585171163082, 0.26931047439575195, -0.2571573257446289, -0.26453322172164917, 0.1804269254207611, -0.2261641025543213, -0.013725155964493752, 0.38654404878616333, -0.18649743497371674, -0.06567996740341187, -0.031257230788469315, 0.14545704424381256, -0.21211564540863037, 0.24252338707447052, -0.04495377093553543, -0.2645490765571594, -0.1311105638742447, -0.4488949477672577, -0.1742853820323944, -0.24606359004974365, 0.14192965626716614, 0.08548630774021149, -0.24126535654067993, -0.20595555007457733, 0.024321814998984337, 0.2431446760892868, -0.13589590787887573, -0.3829921782016754, -0.13938811421394348, 0.23215685784816742, 0.023724587634205818, -0.05761770159006119, -0.07557538896799088, 0.2528904974460602, 0.2988956570625305, 0.015427918173372746, 0.4260821044445038, -0.059682849794626236, -0.10813140124082565, 0.02600911818444729, 0.28314900398254395, 0.17017805576324463, 0.08102604746818542, -0.10372219979763031, 0.1508830338716507, -0.0037650903686881065, 0.1791742891073227, -0.09007573127746582, -0.1276664137840271, 0.3014295697212219, 0.21333816647529602, 0.30932387709617615, 0.20980820059776306, 0.33090460300445557, -0.03190906345844269, -0.10934749990701675, 0.051485780626535416, -0.07977550476789474, 0.05522877350449562, 0.09914601594209671, -0.1883426457643509, -0.5210247039794922, -0.015531492419540882, 0.2510337829589844, 0.08393633365631104, 0.44586342573165894, -0.1583254486322403, -0.2158178985118866, -0.06853193789720535, -0.0059007746167480946, 0.23427145183086395, -0.2953229546546936, -0.016503561288118362, 0.37586864829063416, -0.041024453938007355, -0.26423123478889465, -0.022068912163376808, -0.07822490483522415, -0.04201625660061836, -0.19707214832305908, 0.5436950922012329, -0.22591204941272736, -0.14579159021377563, 0.41519278287887573, 0.556751012802124, -0.07106761634349823, -0.044629115611314774, -0.025375084951519966, -0.059747353196144104, -0.37867093086242676, 0.38519835472106934, 0.30893874168395996, 0.1405298113822937, -0.1886846423149109, -0.06628972291946411, -0.05091194435954094, -0.1090429350733757, 0.26913100481033325, 0.12251386046409607, 0.03569649159908295, -0.04573296755552292, -0.13231737911701202, 0.0869758129119873, 0.011820868588984013, 0.17495939135551453, -0.008833770640194416, 0.025003807619214058, 0.2771587669849396, 0.21990634500980377, -0.31927362084388733, 0.2884458601474762, 0.2294888198375702, -0.051672641187906265, 0.19100706279277802, -0.21294137835502625, -0.2135031521320343, 0.09430482238531113, -0.3169137239456177, -0.051053375005722046, -0.11593552678823471, -0.30279478430747986, -0.2136770486831665, 0.009103584103286266, 0.0011132736690342426, 0.11238870024681091, -0.09859291464090347, 0.2315995991230011, -0.016116678714752197, 0.4454628825187683, 0.0483136847615242, 0.622613787651062, -0.01774914376437664, 0.03089909628033638, 0.20367898046970367, -0.31120797991752625, 0.2691812515258789, -0.09484944492578506, 0.11056433618068695, -0.1519702821969986, -0.17783421277999878, -0.004364797379821539, -0.10489264875650406, 0.07154083251953125, 0.1767989993095398, 0.01954476162791252, 0.053270891308784485, -0.4243280589580536, 0.44922909140586853, 0.07219678908586502, -0.3305990397930145, -0.31535017490386963, -0.09823134541511536, -0.577688992023468, 0.09759124368429184, 0.04415946453809738, -0.3511119782924652, 0.08647297322750092, 0.20942820608615875, 0.1395639330148697, -0.2739611268043518, 0.1029805913567543, -0.2342260777950287, -0.017115768045186996, -0.40831705927848816, -0.2530037760734558, -0.5305203199386597, -0.10088038444519043, 0.03188019618391991, 0.2775365710258484, 0.27429962158203125, 0.013139991089701653, -0.15039123594760895, 0.23997783660888672, 0.12681563198566437, -0.26975491642951965, 0.016834892332553864, 0.32849857211112976, -0.03426716476678848, 0.2636348009109497, 0.31513988971710205, -0.1497524231672287, 0.07558402419090271, -0.043333325535058975, -0.053603366017341614, 0.21890054643154144, -0.18235021829605103, -0.4619750380516052, -0.46877214312553406, 0.39175504446029663, -0.4344194829463959, 0.21235764026641846, -0.22549177706241608, 0.31447234749794006, 0.21464042365550995, -0.04152208939194679, -0.04009710252285004, -0.19747571647167206, 0.14544789493083954, 0.0990169569849968, 0.11914053559303284, 0.7404801249504089, 0.06972891092300415, -0.36102649569511414, -0.4150596559047699, -0.10432849079370499, 0.26502376794815063, -0.37423840165138245, 0.24089276790618896, 0.06261595338582993, -0.33806806802749634, 0.0011292541166767478, 0.15415792167186737, 0.005888447165489197, -0.08341269195079803, 0.05564873665571213, -0.34165725111961365, 0.007660544011741877, 0.08929415047168732, 0.42964690923690796, 0.1776582896709442, 0.20976752042770386, 0.37857648730278015, -0.3449559509754181, -0.04007255285978317, -0.38874155282974243, -0.35960814356803894, -0.47364121675491333, 0.042100708931684494, 0.04333021864295006, 0.42707642912864685, -0.2359021008014679, -0.09109585732221603, 0.22826671600341797, 0.1883556991815567, 0.20966577529907227, -0.3521048128604889, -0.26254570484161377, 0.08086714148521423, 0.03763747215270996, 0.1476759910583496, 0.28434476256370544, 0.05059269815683365, -0.2213583141565323, -0.1712031364440918, -0.08064461499452591, 0.10212348401546478, 0.11758983135223389, -0.027517177164554596, -0.11867038905620575, -0.011701385490596294, -0.011473276652395725, -0.1509474813938141, -0.19850340485572815, -0.033027466386556625, 0.011296601966023445, -0.05084455385804176, -0.13236132264137268, 0.060844630002975464, 0.2862745523452759, -0.2062378078699112, 0.16821260750293732, 0.1743384748697281, -0.29385605454444885, -0.048138946294784546, -0.01977907307446003, 0.18106119334697723, 0.18808171153068542, -0.14063242077827454, -0.012510033324360847, -0.20300713181495667, 0.3394562602043152, 0.31837043166160583, -0.337673544883728, 0.0010867059463635087, 0.25239598751068115, -0.288857638835907, 0.3098968267440796, 0.24793386459350586, 0.08009258657693863, -0.2516231834888458, 0.19104579091072083, 0.07151348143815994, -0.18117006123065948, -0.0015436889370903373, 0.09650818258523941, 0.410563200712204, 0.0291559137403965, 0.024855729192495346, 0.1441776305437088, -0.11038967967033386, 0.2735627293586731, -0.37837451696395874, 0.3921032249927521, 0.08683740347623825, 0.10637503862380981, 0.08606582880020142, -0.6254638433456421, -0.5841495394706726, 0.07952355593442917, -0.03521706536412239, 0.19596360623836517, 0.3098294734954834, 0.08898065984249115, 0.04253512993454933, 0.05143902823328972, 0.1223781555891037, 0.052399251610040665, 0.10892368108034134, -0.028821703046560287, -0.03981845825910568, -0.3027713894844055, -0.07560452818870544, -0.02402965910732746, -0.09183844178915024, -0.0842025950551033, 0.3185931146144867, 0.4826242923736572, -0.05156240239739418, 0.2548251152038574, -0.09842541068792343, 0.37164366245269775, -0.2409949004650116, -0.018324553966522217, -0.14471514523029327, 0.10395284742116928, 0.08127154409885406, 0.10561835020780563, 0.4194653332233429, 0.07929950952529907, 0.022409889847040176, -0.004060736857354641, 0.25616517663002014, -0.3155887722969055, -0.29689663648605347, -0.11117583513259888, -0.250398725271225, 0.30255192518234253, 0.002068819710984826, -0.04596870392560959, 0.40556448698043823, 0.1806294173002243, -0.2823825478553772, 0.03867717087268829, 0.16743580996990204, -0.01598341576755047, -0.07453998178243637, -0.25090327858924866, 0.2554168403148651, -0.24354791641235352, 0.23180359601974487, -0.29155153036117554, 0.10597740858793259, -0.04206931218504906, -0.11954627931118011, 0.13111799955368042, 0.1736152172088623, 0.27057957649230957, 0.1724178045988083, 0.24265986680984497, 0.25910070538520813, -0.2863454520702362, -0.252535879611969, -0.04736143350601196, -0.14516709744930267, -0.1827414184808731, 0.028495224192738533, -0.15145868062973022, -0.1005149856209755, 0.3774639964103699, -0.1920405626296997, 0.4242495894432068, -0.03998595476150513, 0.20708055794239044, 0.4738379716873169, 0.12816068530082703, 0.4119214713573456, -0.12086830288171768, -0.32863131165504456, 0.21160927414894104, -0.08834637701511383, -0.13661064207553864, -0.34606999158859253, 0.2577362656593323, 0.4101952314376831, 0.21931251883506775, -0.3158190846443176, -0.1353960633277893, 0.17651161551475525, 0.04991084337234497, -0.033471833914518356, -0.007595833856612444, 0.0940827950835228, -0.25789886713027954, 0.03839237242937088, -0.001524806721135974, 0.14638715982437134, -0.14324036240577698, 0.04326339811086655, 0.11348506063222885, 0.19788974523544312, -0.06539671868085861, -0.002938556717708707, 0.0387456901371479, 0.32746621966362, -0.256436824798584, 0.40483081340789795, -0.006336970254778862, 0.48492562770843506, 0.10108594596385956, -0.020614488050341606, -0.08346957713365555, -0.021927209571003914, 0.044923268258571625, 0.2750181555747986, -0.3354054093360901, -0.4538356065750122, 0.22355158627033234, -0.03171756863594055, -0.4867653548717499, 0.04546135663986206, 0.2627343237400055, 0.3424442708492279, 0.0416983962059021, -0.1869560331106186, 0.025790849700570107, 0.02040397748351097, -0.053949277848005295, 0.10803195834159851, 0.00218247645534575, -0.0214716624468565, 0.027471212670207024, 0.09983488917350769, 0.3250429928302765, 0.1549350917339325, -0.028729001060128212, -0.5222956538200378, -0.06016864627599716 ]
https://github.com/huggingface/datasets/issues/3484
make shape verification to use ArrayXD instead of nested lists for map
Hi! Yes, this makes sense for numeric values, but first I have to finish https://github.com/huggingface/datasets/pull/3336 because currently ArrayXD only allows the first dimension to be dynamic.
As describe in https://github.com/huggingface/datasets/issues/2005#issuecomment-793716753 and mentioned by @mariosasko in [image feature example](https://colab.research.google.com/drive/1mIrTnqTVkWLJWoBzT1ABSe-LFelIep1c#scrollTo=ow3XHDvf2I0B&line=1&uniqifier=1), IMO make shape verifcaiton to use ArrayXD instead of nested lists for map can help user reduce unnecessary cast. I notice datasets have done something special for `input_ids` and `attention_mask` which is also unnecessary after this feature added.
26
make shape verification to use ArrayXD instead of nested lists for map
[ -0.3240436613559723, -0.29482758045196533, -0.3014606237411499, 0.17647357285022736, 0.04077300801873207, -0.18631374835968018, 0.2848654091358185, 0.20009687542915344, 0.7985718250274658, 0.3352203667163849, -0.019926361739635468, 0.17499315738677979, -0.11135121434926987, 0.032606493681669235, -0.12314677983522415, 0.3466014266014099, 0.011127485893666744, 0.24670560657978058, -0.3015972971916199, -0.06999802589416504, 0.09018289297819138, -0.20071156322956085, 0.07930605858564377, 0.024837616831064224, 0.3289310932159424, -0.09054747968912125, -0.012673254124820232, 0.03359634429216385, -0.14347146451473236, -0.36725983023643494, 0.17479659616947174, 0.15726318955421448, -0.4625105857849121, -0.10394440591335297, -0.00010543756798142567, 0.11323898285627365, 0.060101207345724106, 0.02847893536090851, 0.17693698406219482, 0.46302422881126404, -0.5477669835090637, -0.36731961369514465, -0.25646042823791504, -0.4504154324531555, 0.061323948204517365, -0.33782637119293213, -0.03213188797235489, -0.22793330252170563, 0.31399238109588623, -0.03768613189458847, 0.23048359155654907, 0.15552200376987457, 0.4327007234096527, 0.06242457032203674, 0.1157444417476654, 0.06470365822315216, 0.09574104100465775, -0.043975941836833954, 0.4327692687511444, 0.27218085527420044, -0.025510447099804878, 0.1675170212984085, -0.2534891366958618, 0.02779673971235752, -0.31333741545677185, -0.3536951243877411, 0.15618082880973816, 0.09129838645458221, -0.10835814476013184, 0.3316963315010071, -0.016498778015375137, -0.09115930646657944, 0.09975682199001312, -0.20498955249786377, -0.40175923705101013, 0.15309925377368927, 0.04299960285425186, -0.12133864313364029, -0.022312702611088753, 0.03399211913347244, -0.30362337827682495, -0.07641739398241043, -0.11321184039115906, 0.175026535987854, 0.02555656246840954, 0.46637311577796936, 0.10708313435316086, 0.16259826719760895, -0.0495845265686512, -0.18528899550437927, 0.34814396500587463, -0.16581977903842926, -0.12560534477233887, -0.021177778020501137, -0.015665676444768906, -0.19580255448818207, 0.11697769165039062, -0.45302700996398926, 0.35935407876968384, -0.22424980998039246, 0.18757213652133942, 0.46294063329696655, 0.004533123690634966, 0.11003141105175018, -0.13788695633411407, 0.3147070109844208, 0.09013129025697708, -0.03358489274978638, -0.1401730626821518, 0.11966925859451294, -0.08278844505548477, 0.06890284270048141, 0.01813305728137493, 0.19246801733970642, -0.18242615461349487, 0.3876432478427887, -0.010482831858098507, -0.010869806632399559, 0.04503639042377472, -0.13834084570407867, -0.2948797047138214, -0.08112620562314987, 0.29106661677360535, 0.30068060755729675, 0.1494739055633545, 0.03644496574997902, -0.17836502194404602, -0.029818445444107056, 0.21594302356243134, 0.32253554463386536, -0.08664713054895401, 0.029980629682540894, 0.13058555126190186, -0.24183820188045502, -0.09926608204841614, 0.18933607637882233, 0.3166319727897644, -0.24828208982944489, 0.4970504939556122, 0.15783418715000153, -0.3813227415084839, 0.03417755290865898, 0.6496910452842712, -0.0009531987016089261, 0.01765711046755314, -0.3562849760055542, 0.24420936405658722, 0.2281922847032547, -0.027836784720420837, 0.03825436159968376, -0.2687211334705353, -0.05133570730686188, 0.23272790014743805, 0.19347412884235382, 0.03427903354167938, 0.08213852345943451, 0.3485109806060791, 0.08659785985946655, 0.20809891819953918, -0.20286403596401215, -0.12600618600845337, 0.12532317638397217, -0.12763622403144836, -0.1564120203256607, -0.06621700525283813, -0.004992260131984949, -0.0018610360566526651, 0.14422127604484558, -0.21303316950798035, -0.026973264291882515, -0.3137972056865692, 0.040040940046310425, -0.12016143649816513, 0.21662487089633942, -0.22829985618591309, 0.48666128516197205, -0.08525759726762772, -0.2204350084066391, -0.15803685784339905, 0.02115781605243683, 0.20820565521717072, 0.003695966210216284, 0.1902800053358078, -0.0784306526184082, 0.18250545859336853, -0.1955031156539917, -0.2575925886631012, -0.27313166856765747, 0.11914783716201782, 0.2037375122308731, -0.07689027488231659, -0.14015164971351624, 0.08137752115726471, -0.37361201643943787, 0.08579326421022415, 0.21703669428825378, 0.1544579714536667, 0.11404675990343094, 0.2243097424507141, -0.492849737405777, -0.31668227910995483, -0.14888109266757965, 0.48248258233070374, -0.9202189445495605, -0.30884143710136414, -0.15239180624485016, -0.56902676820755, 0.05049755796790123, -0.35209983587265015, -0.06980545073747635, 0.21520304679870605, 0.06206906959414482, -0.2461482286453247, 0.15972794592380524, 0.009943276643753052, 0.3437131643295288, 0.27313533425331116, -0.10977906733751297, 0.08226564526557922, -0.3698314130306244, 0.004694104660302401, -0.5209066867828369, -0.1970236748456955, -0.13078567385673523, 0.052419841289520264, -0.0943526104092598, 0.04915105551481247, 0.054093390703201294, 0.02549440972507, 0.12014083564281464, -0.026357490569353104, -0.12213446944952011, 0.04132218286395073, 0.3294963836669922, 0.028427083045244217, -0.23401547968387604, -0.24496455490589142, 0.40506431460380554, -0.02825172245502472, -0.2971152365207672, 0.030777713283896446, 0.016713909804821014, 0.14599637687206268, -0.14233900606632233, -0.008779543451964855, 0.22787928581237793, 0.3670598566532135, 0.01481656078249216, -0.027862533926963806, -0.05482887104153633, -0.004637506790459156, -0.09575691819190979, -0.06608632206916809, -0.4402828812599182, -0.2292020469903946, 0.01078964676707983, -0.21307222545146942, 0.09882353246212006, -0.09212744981050491, 0.3400038182735443, 0.4022831618785858, 0.3043610453605652, 0.40915700793266296, -0.012176284566521645, 0.4085647761821747, 0.029012514278292656, -0.1433066427707672, -0.19279779493808746, 0.016581902280449867, 0.12212153524160385, -0.03928229212760925, 0.14254996180534363, -0.1117914468050003, 0.014547156170010567, 0.24221107363700867, -0.22470921277999878, -0.032288383692502975, 0.039188798516988754, 0.07682964205741882, -0.42935317754745483, -0.29982101917266846, -0.05000321567058563, -0.06766682863235474, -0.06450363248586655, -0.19620153307914734, -0.2765349745750427, -0.15479274094104767, -0.3611423969268799, -0.00991652812808752, -0.2742283344268799, 0.017397256568074226, -0.19697892665863037, 0.3501087427139282, 0.04834847152233124, -0.07168874889612198, 0.32676175236701965, 0.14110702276229858, -0.0004809839010704309, 0.3165397644042969, -0.31050780415534973, -0.08720174431800842, 0.02260180376470089, 0.019839322194457054, 0.2040116786956787, 0.17034617066383362, -0.011296235956251621, 0.14347337186336517, 0.08162637799978256, 0.1902632713317871, -0.19144563376903534, -0.2904009521007538, 0.10374446213245392, -0.06634450703859329, -0.28455355763435364, 0.3762647211551666, 0.30678361654281616, -0.004164053127169609, -0.1359025090932846, -0.05462241545319557, -0.21453538537025452, -0.4798941910266876, -0.015595294535160065, -0.07681278884410858, -0.3277607560157776, -0.3955484628677368, -0.0701809674501419, 0.3386111855506897, -0.15945366024971008, 0.009025962091982365, 0.17992283403873444, 0.4246309697628021, -0.009185518138110638, 0.37061256170272827, 0.24829931557178497, -0.0577683262526989, -0.20026370882987976, -0.051095832139253616, -0.11760614812374115, 0.08481960743665695, 0.24534782767295837, -0.11115912348031998, -0.3332318663597107, -0.39270874857902527, 0.2649569809436798, 0.14909811317920685, 0.02237030491232872, -0.1769811511039734, -0.20544663071632385, -0.23083749413490295, 0.43073615431785583, -0.15758636593818665, 0.3327142596244812, 0.24963156878948212, -0.19712862372398376, -0.2195947915315628, 0.00815597828477621, 0.33478447794914246, 0.1917942613363266, 0.023265952244400978, 0.2754889726638794, -0.13955990970134735, 0.3367502689361572, 0.2394079715013504, 0.01320535410195589, -0.1482965052127838, 0.3400813341140747, -0.12931030988693237, 0.17982107400894165, -0.11008509993553162, -0.4492952227592468, 0.12535695731639862, 0.05153341963887215, -0.1266067624092102, -0.08576293289661407, -0.3761294484138489, -0.38000085949897766, 0.13591647148132324, 0.7667872309684753, -0.17339512705802917, -0.11403176933526993, 0.061489738523960114, -0.0396764874458313, 0.11968975514173508, 0.11076793074607849, 0.017634425312280655, -0.08549035340547562, -0.08623862266540527, 0.15922032296657562, -0.38707640767097473, 0.3047005534172058, -0.26051443815231323, -0.8159787654876709, -0.41205596923828125, -0.07956045866012573, 0.4915812313556671, 0.2916565239429474, 0.23460640013217926, -0.2575937807559967, 0.012780626304447651, -0.1915116310119629, -0.1428002119064331, 0.10255106538534164, 0.14883048832416534, 0.09946246445178986, -0.023214736953377724, -0.00034193461760878563, 0.08584150671958923, 0.18509912490844727, -0.05607233941555023, -0.5054749250411987, 0.048590678721666336, 0.5329816341400146, -0.655741274356842, 0.18570692837238312, -0.15999144315719604, 0.04644227400422096, -0.135075643658638, 0.1286172717809677, 0.006409819703549147, -0.23759396374225616, -0.37622231245040894, 0.10091645270586014, 0.22980238497257233, 0.05331503227353096, 0.2806977331638336, -0.09582606703042984, -0.3131348788738251, -0.19705308973789215, -0.11574456840753555, 0.01759415492415428, 0.19142596423625946, -0.07231952995061874, -0.4742100238800049, -0.061692964285612106, 0.01809297502040863, -0.1707683801651001, 0.12204818427562714, -0.017036378383636475, 0.546066164970398, -0.2752118706703186, 0.1599372923374176, 0.14524775743484497, 0.211061030626297, -0.12350594997406006, -0.054060328751802444, 0.10728316009044647, -0.14872996509075165, -0.052467551082372665, -0.060705993324518204, -0.09942049533128738, -0.00567073468118906, 0.1716894954442978, -0.04955106973648071, -0.04251258820295334, 0.11736302077770233, 0.052789539098739624, 0.5022696852684021, -0.2887202501296997, -0.2880859375, 0.1431909203529358, 0.5442464351654053, 0.43831366300582886, 0.09959726780653, -0.2716895341873169, 0.584128201007843, 0.10205359756946564, -0.4797443449497223, 0.3117220997810364, 0.07141189277172089, -0.401591956615448, -0.15605729818344116, -0.18070417642593384, -0.12922610342502594, 0.33190250396728516, 0.3944805860519409, -0.05207044631242752, 0.09352876991033554, 0.2571259140968323, 0.13072800636291504, 0.010291477665305138, 0.0029254304245114326, 0.13485087454319, -0.10244594514369965, -0.14350420236587524, 0.19153712689876556, -0.013717751950025558, -0.3773218095302582, -0.0006625544629059732, -0.08064322173595428, 0.1940530687570572, -0.540203869342804, -0.13934624195098877, -0.07535335421562195, 0.009105854667723179, 0.14517059922218323, 0.3007574677467346, 0.14708425104618073, -0.06592508405447006, 0.26144760847091675, -0.35432806611061096, 0.241294264793396, 0.09937220811843872, -0.1547769457101822, 0.47746554017066956, 0.18944872915744781, -0.06835354119539261, -0.3143528997898102, 0.08316226303577423, -0.06056039407849312, 0.10078177601099014, -0.12455236911773682, -0.28324174880981445, -0.3065447509288788, -0.3095283508300781, 0.025348836556077003, -0.03998905420303345, -0.07034208625555038, -0.10200748592615128, 0.05283805727958679, -0.1398838758468628, -0.06302506476640701, 0.0769636407494545, -0.0465431809425354, 0.08816796541213989, 0.3601202368736267, 0.3821442723274231, -0.057387664914131165, 0.21764549612998962, -0.022793564945459366, 0.033548835664987564, 0.3939442038536072, -0.09307528287172318, -0.2335810512304306, 0.06443945318460464, -0.34568479657173157, 0.17929205298423767, -0.04250098392367363, 0.22009265422821045, 0.10046301037073135, -0.2558177709579468, -0.4303784668445587, -0.22938349843025208, 0.09038551896810532, -0.016220156103372574, 0.5949453115463257, -0.1296028196811676, -0.324405312538147, -0.2753552496433258, 0.28697502613067627, -0.2135789692401886, 0.2998010516166687, -0.21143116056919098, 0.2032170593738556, -0.174720898270607, -0.03184009715914726, -0.3510493338108063, 0.04951891303062439, -0.2708125114440918, -0.0980634018778801, -0.35086286067962646, 0.006361193954944611, 0.13572470843791962, -0.05183864384889603, 0.16616660356521606, 0.211410790681839, -0.42865726351737976, -0.23986336588859558, 0.35706543922424316, 0.1116986945271492, 0.10366629809141159, 0.10111227631568909, 0.2742600440979004, 0.0702434852719307, -0.15631267428398132, 0.00872834213078022, -0.2909756600856781, -0.40219393372535706, -0.061476197093725204, -0.0832032710313797, -0.12134115397930145, 0.16578155755996704, 0.22323092818260193, -0.009341202676296234, -0.16400572657585144, -0.39679422974586487, -0.0888548418879509, 0.06581821292638779, -0.27008727192878723, -0.23930971324443817, 0.338922917842865, 0.20501123368740082, 0.3635188341140747, 0.21833835542201996, 0.22012114524841309, 0.24864459037780762, -0.42771992087364197, 0.019124817103147507, 0.5109418034553528, -0.17256490886211395, -0.07778801023960114, -0.06051325052976608, -0.037320058792829514, 0.22159557044506073, -0.2819538712501526, -0.024595163762569427, 0.6208460330963135, 0.03080141358077526, 0.3702602684497833, 0.4235953390598297, 0.30702534317970276, -0.09781362861394882, 0.21177390217781067, 0.018328698351979256, -0.09224964678287506, -0.24524815380573273, -0.08526825159788132, 0.20999698340892792, -0.3025950491428375, -0.0865255817770958, 0.2983766794204712, -0.24987831711769104, 0.28488612174987793, 0.31219205260276794, 0.38369348645210266, 0.45460501313209534, 0.37922942638397217, 0.30508509278297424, 0.07328108698129654, 0.019250256940722466, 0.06812302768230438, -0.05968659743666649, 0.09827694296836853, 0.2798949182033539, 0.4055138826370239, -0.014329317025840282, -0.00930105336010456, -0.2949894964694977, 0.006376114673912525, 0.19971640408039093, 0.037074584513902664, -0.12452761083841324, -0.12270797789096832, -0.016098180785775185, 0.25678327679634094, -0.28907015919685364, 0.24064533412456512, -0.1001817137002945, 0.35620439052581787, -0.3492359519004822, 0.03898759186267853, -0.05888448655605316, -0.025404449552297592, 0.22846157848834991, 0.17533256113529205, -0.1105019822716713, 0.22328980267047882, 0.222226083278656, 0.19991034269332886, -0.07615404576063156, 0.5074043869972229, 0.12542851269245148, 0.007723730523139238, 0.05243655666708946, -0.20085321366786957, -0.23026598989963531, -0.28634345531463623, -0.2923654615879059, 0.144577756524086, -0.03120403178036213, -0.003257859731093049, 0.41147106885910034, 0.147746279835701, -0.1638910174369812, 0.09174765646457672, -0.04218297451734543, -0.06854865700006485, 0.21270348131656647, -0.05356910452246666, 0.0669570341706276, 0.10649935901165009, 0.027199026197195053, -0.08445441722869873, -0.07271379977464676, -0.3042726218700409, 0.24186980724334717, -0.32034727931022644, 0.4220678210258484, 0.06003403291106224, 0.10511293262243271, -0.017136210575699806, 0.3958335518836975, -0.22108371555805206, -0.11043292284011841, -0.05564839765429497, -0.0037591878790408373, -0.13858866691589355, 0.20198604464530945, 0.10289090126752853, 0.13975663483142853, -0.11911743134260178, 0.1368633657693863, 0.17069590091705322, 0.32157793641090393, 0.04140210151672363, -0.31296759843826294, 0.19480068981647491, 0.2206810712814331, -0.32913827896118164, 0.43378615379333496, 0.14034859836101532, 0.02288331650197506, 0.1390344798564911, -0.1858881711959839, 0.3207203149795532, 0.25452274084091187, 0.2406385987997055, 0.2296408861875534, 0.10064461082220078, -0.10371288657188416, -0.10804645717144012, -0.09875868260860443, 0.18470413982868195, 0.05978351831436157, -0.16059483587741852, 0.0837664008140564, 0.12494441121816635, 0.06992435455322266, -0.10587777197360992, 0.4401395320892334, 0.3981374502182007, 0.2262878119945526, -0.019945072010159492, 0.2905683219432831, 0.01705279015004635, 0.12643460929393768, 0.4511217474937439, -0.23222552239894867, -0.2045467495918274, 0.47775301337242126, -0.1258721947669983, -0.06277181208133698, -0.1952817142009735, 0.07899923622608185, 0.1488136351108551, -0.021243609488010406, 0.1946127563714981, -0.583657443523407, 0.11543536186218262, 0.35193726420402527, -0.23127678036689758, 0.21536441147327423, -0.10100974142551422, -0.0648597702383995, -0.18402312695980072, -0.32559555768966675, -0.27237841486930847, 0.24781949818134308, -0.32145020365715027, 0.16396178305149078, -0.17297609150409698, 0.043240923434495926, 0.2115165740251541, -0.14982028305530548, 0.21685361862182617, 0.008766865357756615, -0.18245401978492737, -0.020047040656208992, -0.05069350451231003 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
Thanks for reporting @SaulLu. At first sight I think the problem is caused because `pandas` only takes into account the `compression` parameter if called with a non-null file path or buffer. And in our implementation, we call pandas `to_json` with `None` `path_or_buf`. We should fix this: - either handling directly the `compression` parameter ourselves - or refactoring to pass non-null path or buffer to pandas CC: @lhoestq
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
67
the compression format requested when saving a dataset in json format is not respected
[ -0.1618843972682953, 0.10158956795930862, -0.17754359543323517, 0.08863437175750732, 0.12269137799739838, 0.043288521468639374, -0.14768750965595245, 0.5746110677719116, -0.30934765934944153, 0.24850519001483917, 0.13491936028003693, 0.3526560366153717, 0.1636086404323578, 0.03443625569343567, -0.3071485757827759, 0.005276415962725878, 0.007272736635059118, 0.44682785868644714, 0.18784303963184357, 0.020207807421684265, -0.13187724351882935, 0.28913789987564087, 0.06135326623916626, -0.03299228474497795, -0.1833743005990982, -0.2044394314289093, 0.2033262550830841, 0.10762478411197662, -0.4899389445781708, -0.27113616466522217, 0.025511130690574646, 0.01941313035786152, 0.10008243471384048, 0.02464740164577961, -0.00009931487875292078, 0.04111742973327637, 0.33254918456077576, -0.16587600111961365, -0.23127001523971558, 0.08069329708814621, -0.3735502362251282, -0.3338076174259186, 0.0037718520034104586, -0.266519159078598, -0.09653148800134659, -0.5717682242393494, -0.05292683094739914, -0.40333014726638794, 0.46494588255882263, -0.0006800423143431544, 0.3523452877998352, 0.026874687522649765, -0.005449783056974411, -0.055033519864082336, -0.19530066847801208, 0.39183762669563293, -0.02980503812432289, 0.06940963119268417, -0.05582166835665703, 0.38109010457992554, -0.012051690369844437, 0.1552397757768631, 0.13713303208351135, 0.003090496174991131, -0.07345506548881531, -0.11184490472078323, -0.12573698163032532, 0.18130895495414734, 0.11109684407711029, -0.04719528555870056, 0.5590528845787048, -0.08929134905338287, -0.33088794350624084, 0.10507824271917343, -0.06902113556861877, -0.1801798939704895, 0.17910806834697723, 0.23957431316375732, 0.020148394629359245, 0.1519693285226822, -0.3501548767089844, 0.008722187951207161, -0.3295555114746094, 0.023263748735189438, 0.24249868094921112, -0.17352263629436493, -0.22944290935993195, -0.13633376359939575, -0.0938073918223381, -0.09976466000080109, -0.06874661147594452, -0.30542808771133423, -0.06513627618551254, -0.21910452842712402, 0.14906899631023407, -0.3598191738128662, -0.06264866143465042, -0.40548309683799744, 0.37957730889320374, 0.0796901136636734, 0.1835181713104248, 0.12986508011817932, 0.27567991614341736, -0.09048482030630112, 0.23317351937294006, 0.02313988469541073, 0.27178359031677246, -0.1669597327709198, 0.1819896101951599, -0.02592281438410282, 0.10673706978559494, -0.08380486071109772, 0.01698269695043564, 0.08050143718719482, -0.021544074639678, -0.09166194498538971, 0.07474876940250397, -0.12385884672403336, -0.19249717891216278, 0.13114671409130096, -0.23824867606163025, -0.046510349959135056, -0.30641287565231323, -0.03687538579106331, 0.1506083905696869, 0.029950547963380814, 0.054366663098335266, 0.37655600905418396, 0.039818424731492996, 0.059105128049850464, -0.21866072714328766, -0.0239688940346241, 0.14609581232070923, -0.19209489226341248, 0.2216067910194397, -0.17812921106815338, 0.25084030628204346, 0.21682903170585632, -0.010360000655055046, -0.1769835650920868, 0.2124769389629364, 0.007386521901935339, 0.2800987958908081, 0.18625031411647797, 0.263543039560318, 0.0832500159740448, -0.0043023740872740746, -0.07264839857816696, -0.22454418241977692, 0.2522083520889282, -0.4694753885269165, -0.02231731079518795, -0.21980106830596924, 0.2983131408691406, 0.07488442212343216, 0.11126019060611725, -0.006246537435799837, 0.12025992572307587, 0.04568955674767494, -0.1860615611076355, -0.06193200498819351, 0.024706043303012848, 0.06576412916183472, -0.1905222088098526, 0.019336840137839317, 0.0805877149105072, -0.5409584641456604, -0.02512647956609726, 0.21462440490722656, -0.05574657768011093, 0.31304624676704407, 0.5125010013580322, -0.23343513906002045, -0.08359707146883011, -0.04197947308421135, 0.39858704805374146, 0.4680023491382599, -0.09665609151124954, -0.40463733673095703, 0.3096538782119751, -0.04210389778017998, 0.13208897411823273, 0.2531832158565521, -0.15258996188640594, 0.25964993238449097, -0.048533737659454346, 0.32518526911735535, 0.12673848867416382, 0.09145447611808777, 0.07859829813241959, -0.25887295603752136, -0.17331385612487793, 0.12457241863012314, -0.09559762477874756, -0.41045600175857544, 0.03420457988977432, 0.08023884147405624, 0.2044098973274231, 0.07744821161031723, -0.22903119027614594, 0.04597071185708046, 0.4381207227706909, -0.11937984824180603, -0.5079355835914612, 0.0800270140171051, 0.2788958251476288, -0.022446412593126297, -0.3251895308494568, -0.028990119695663452, -0.1375666856765747, -0.1057898998260498, -0.060774751007556915, -0.3373032510280609, -0.17937082052230835, -0.1255444586277008, 0.09067606180906296, 0.3532906472682953, 0.18372219800949097, 0.0025233516935259104, 0.19831916689872742, 0.0875002071261406, 0.09169640392065048, -0.04099858179688454, -0.08475134521722794, -0.2627120316028595, -0.0530717596411705, -0.10212385654449463, -0.2281789928674698, 0.35387036204338074, -0.16535861790180206, 0.131599560379982, -0.1804145872592926, -0.16255228221416473, 0.13817474246025085, 0.15890008211135864, 0.14422263205051422, -0.0423487089574337, -0.052406761795282364, 0.18930435180664062, 0.05287633836269379, 0.1297251135110855, 0.18339310586452484, 0.12137554585933685, 0.05733340233564377, -0.4876326024532318, 0.39626023173332214, 0.22120577096939087, -0.23777781426906586, -0.001122376648709178, -0.2719418704509735, 0.38298603892326355, 0.07406914979219437, -0.2033727765083313, -0.41818907856941223, -0.08008372038602829, 0.19111675024032593, -0.039720483124256134, 0.013189156539738178, -0.21155542135238647, 0.028055990114808083, 0.7285460233688354, -0.04859166964888573, 0.12457135319709778, 0.32358160614967346, 0.059991348534822464, -0.3478962182998657, -0.1036471351981163, 0.2656371295452118, 0.2524610161781311, 0.16888287663459778, 0.03447243943810463, -0.2457796186208725, 0.0697835385799408, -0.24631668627262115, 0.21266289055347443, -0.170022115111351, 0.31204187870025635, 0.25232234597206116, 0.2579420506954193, -0.09083336591720581, -0.3237207233905792, 0.21228285133838654, 0.06416353583335876, -0.17307502031326294, -0.07264206558465958, 0.12474488466978073, -0.584955096244812, 0.08082886040210724, -0.034167855978012085, -0.03810138255357742, -0.016772735863924026, -0.1312210112810135, 0.2779836356639862, -0.10684936493635178, -0.22511832416057587, 0.09363202005624771, 0.1526288241147995, 0.1410517692565918, 0.3215619921684265, -0.15053948760032654, -0.09842734783887863, 0.08955453336238861, -0.17313961684703827, 0.2038693130016327, -0.27667611837387085, -0.14300291240215302, 0.16350485384464264, -0.28362733125686646, 0.14757944643497467, 0.004993131849914789, -0.11611451953649521, 0.22532807290554047, 0.0014100016560405493, -0.12808549404144287, 0.08566029369831085, 0.0665535107254982, -0.0019538006745278835, -0.0868929773569107, 0.17881672084331512, 0.00025616263155825436, -0.27659520506858826, 0.14351202547550201, -0.07958145439624786, -0.13019314408302307, -0.2419975847005844, -0.1360197812318802, -0.03662671148777008, -0.12731309235095978, 0.21194353699684143, 0.12727168202400208, 0.17385828495025635, -0.020060358569025993, 0.13977067172527313, -0.2271186113357544, 0.13215811550617218, 0.06141562759876251, -0.3314783275127411, -0.4550286531448364, 0.4973483681678772, -0.3342221677303314, -0.4806956946849823, -0.07830691337585449, 0.23799842596054077, 0.09255333244800568, 0.14837071299552917, -0.010284384712576866, 0.05220774561166763, 0.028137899935245514, -0.1056247353553772, -0.13353180885314941, -0.07558473199605942, 0.22328099608421326, 0.0499512143433094, -0.3037290573120117, -0.2746918797492981, -0.23579539358615875, 0.20794248580932617, 0.20492061972618103, 0.263414591550827, -0.12024150788784027, 0.3656337857246399, 0.05333930253982544, -0.08017127215862274, 0.3792726397514343, -0.2271360605955124, 0.3559430241584778, 0.14136792719364166, 0.35600993037223816, -0.07882764935493469, 0.1340625137090683, 0.014635007828474045, 0.12372854351997375, 0.13729897141456604, 0.215459406375885, 0.058851249516010284, -0.08199430257081985, 0.15825608372688293, -0.22250878810882568, -0.2787991166114807, -0.034670159220695496, -0.004950192756950855, 0.19613631069660187, 0.12918062508106232, 0.13599348068237305, 0.280916303396225, -0.07043343782424927, 0.13365104794502258, -0.015693750232458115, 0.09849889576435089, 0.2371206134557724, 0.009574777446687222, -0.22623500227928162, 0.007519309874624014, -0.652853786945343, 0.2266407012939453, 0.04364212229847908, 0.44489413499832153, -0.07678885012865067, -0.026188747957348824, 0.022468283772468567, -0.09364336729049683, 0.4091225862503052, -0.18597154319286346, 0.00891911331564188, 0.12686273455619812, 0.08579117804765701, -0.21883738040924072, 0.25003135204315186, -0.14072242379188538, 0.2030114382505417, 0.10329282283782959, 0.5091678500175476, -0.23363028466701508, -0.23300975561141968, -0.23554591834545135, 0.09392333030700684, -0.057526845484972, -0.042986296117305756, -0.14435501396656036, -0.44679975509643555, -0.3533782660961151, -0.21025465428829193, 0.1509636789560318, 0.27180519700050354, 0.012835794128477573, -0.22133009135723114, -0.16222473978996277, -0.10475768148899078, -0.12314993143081665, 0.03570200502872467, 0.5159393548965454, -0.03441302850842476, -0.23642610013484955, -0.06106419488787651, 0.38760966062545776, 0.5010233521461487, 0.24545332789421082, 0.3669740855693817, -0.015975285321474075, 0.31436237692832947, -0.2426520735025406, -0.08631832897663116, 0.126604825258255, -0.11031179130077362, -0.15426838397979736, -0.1599004715681076, 0.017320996150374413, -0.2730468213558197, -0.24986667931079865, 0.3559224009513855, -0.34050047397613525, -0.34127023816108704, 0.2102394551038742, 0.19655805826187134, 0.0432872548699379, 0.18248358368873596, -0.012373493053019047, -0.08224274218082428, -0.16851241886615753, 0.16956079006195068, 0.4016488492488861, 0.6361593008041382, 0.19992627203464508, 0.13829219341278076, 0.23826777935028076, -0.4594605565071106, 0.3034123480319977, -0.3537912964820862, 0.12689091265201569, 0.008530808612704277, -0.11922129988670349, 0.02025434374809265, -0.03546630218625069, 0.15451516211032867, 0.3107582628726959, -0.32313215732574463, -0.1146349310874939, -0.030042484402656555, -0.2551209628582001, -0.003330258186906576, 0.5017737746238708, -0.09507746249437332, -0.22485540807247162, -0.4415159821510315, 0.29655101895332336, -0.05494692549109459, -0.06186707317829132, 0.05191515013575554, -0.47238191962242126, -0.11072361469268799, -0.4088996350765228, 0.12367775291204453, 0.21837569773197174, 0.13656215369701385, 0.17820140719413757, -0.0031650324817746878, -0.3499232232570648, 0.08558148145675659, -0.2730821967124939, 0.10712676495313644, 0.04331449046730995, -0.16207583248615265, 0.001500394893810153, -0.2565670609474182, 0.0872301533818245, -0.27161601185798645, -0.08785200864076614, 0.09304848313331604, -0.07506026327610016, 0.24398481845855713, -0.22040173411369324, -0.14669975638389587, -0.16389089822769165, 0.20333167910575867, 0.010682749561965466, -0.46763503551483154, -0.33357441425323486, -0.14382849633693695, -0.2313895970582962, -0.13003793358802795, -0.16971997916698456, 0.2600756287574768, 0.13517959415912628, 0.1510024517774582, 0.13700900971889496, 0.056049007922410965, -0.08843357861042023, -0.17635101079940796, 0.465064138174057, 0.26223140954971313, -0.12365734577178955, 0.4710167944431305, -0.28631678223609924, -0.21001023054122925, -0.3078346848487854, 0.22972625494003296, 0.1554909348487854, 0.0013846475630998611, 0.42787662148475647, -0.2936455309391022, -0.05807974934577942, 0.007017405703663826, 0.24532026052474976, -0.021640615537762642, 0.20507800579071045, 0.12841682136058807, -0.21365351974964142, -0.2873196601867676, 0.10483318567276001, 0.00014498572272714227, 0.056778255850076675, 0.20856043696403503, 0.1526239514350891, 0.006749847438186407, 0.07553627341985703, -0.4331635534763336, 0.06784050166606903, 0.003624098142609, 0.04145943373441696, -0.23932215571403503, -0.04430374503135681, 0.16860546171665192, 0.02447633072733879, 0.17095674574375153, 0.2797457277774811, -0.13724899291992188, -0.3465655446052551, -0.17489059269428253, 0.042577777057886124, 0.03822281211614609, 0.04302508011460304, -0.04029311239719391, -0.12848733365535736, -0.39098116755485535, -0.04847215116024017, -0.03653726354241371, -0.2076302021741867, 0.011532680131494999, 0.02470996603369713, 0.05180080235004425, -0.0518038310110569, 0.17748375236988068, -0.3837350904941559, 0.03659224137663841, 0.5289478898048401, -0.12756909430027008, 0.06418292224407196, -0.10250849276781082, -0.05918397381901741, -0.353666752576828, 0.09341859072446823, 0.08690785616636276, 0.22312164306640625, 0.07451575994491577, -0.19032733142375946, -0.10019533336162567, 0.046596869826316833, 0.2613399028778076, 0.15995314717292786, -0.30404403805732727, -0.24557559192180634, -0.20664852857589722, 0.32042399048805237, -0.027994491159915924, -0.36141616106033325, 0.06845152378082275, -0.035643719136714935, -0.09359638392925262, -0.028059223666787148, 0.100739486515522, 0.12769603729248047, 0.16286589205265045, -0.07484722882509232, 0.20598143339157104, -0.201607346534729, 0.16918885707855225, 0.2724510133266449, 0.047648657113313675, 0.07858486473560333, 0.0853438749909401, 0.13072469830513, 0.23264743387699127, -0.06378650665283203, 0.238037571310997, 0.1747804433107376, 0.438009649515152, 0.0003988613316323608, -0.35644179582595825, -0.1003863662481308, 0.14545516669750214, 0.20469897985458374, 0.11481036245822906, 0.41700804233551025, 0.5189779996871948, -0.05397642031311989, -0.16722574830055237, -0.08109820634126663, -0.32987186312675476, 0.08464920520782471, -0.20884954929351807, -0.05453883484005928, -0.27820292115211487, -0.09903863817453384, -0.03911849111318588, 0.010335961356759071, -0.2764606177806854, 0.3306734263896942, -0.10374420136213303, -0.029026847332715988, 0.11754089593887329, -0.1363612860441208, 0.16782251000404358, -0.15584208071231842, 0.14259472489356995, -0.2394946664571762, 0.2592136859893799, 0.23251277208328247, -0.26232200860977173, 0.050044946372509, 0.26866644620895386, 0.3535163104534149, -0.022188786417245865, 0.3180563151836395, -0.1428147703409195, -0.03269007429480553, -0.25525516271591187, 0.08215770870447159, 0.3031460642814636, 0.5636500716209412, -0.36626946926116943, 0.28996384143829346, 0.260136216878891, -0.18914249539375305, 0.09212935715913773, 0.2320956289768219, 0.029670966789126396, 0.1361730694770813, 0.006497944705188274, -0.1326591670513153, -0.09259440004825592, 0.0035676006227731705, -0.3585827648639679, -0.15226812660694122, -0.309541255235672, 0.07109731435775757, 0.18033595383167267, 0.15235182642936707, -0.24316634237766266, 0.1753508746623993, -0.13663989305496216, 0.4984896779060364, -0.09991118311882019, -0.3718564510345459, -0.06493496894836426, -0.2801881730556488, 0.10281174629926682, 0.2295001596212387, -0.10787763446569443, -0.061144255101680756, 0.02550153248012066, 0.30898961424827576, 0.25230130553245544, 0.16202248632907867, -0.042419034987688065, 0.16242483258247375, -0.13163445889949799, -0.0019905436784029007, -0.22839827835559845, 0.015350548550486565, 0.497454971075058, -0.030979547649621964, 0.027828609570860863, -0.17827659845352173, 0.3114951252937317, 0.09402480721473694, 0.2528327405452728, -0.3936328887939453, 0.15177275240421295, -0.23979903757572174, 0.1761244237422943, 0.22574381530284882, 0.4020519554615021, -0.07621319591999054, -0.43374910950660706, -0.29315170645713806, 0.15048441290855408, 0.2197718620300293, 0.0212780199944973, 0.3779354393482208, 0.2600667476654053, 0.5090692639350891, -0.09424267709255219, 0.17677420377731323, -0.14761826395988464, 0.1466529667377472, -0.29418668150901794, -0.23870259523391724, -0.07402844727039337, 0.24827910959720612, -0.10432884097099304, -0.3028807044029236, 0.1387009471654892, 0.21626152098178864, -0.007795597426593304, 0.1863371878862381, -0.23965293169021606, -0.15635651350021362, 0.09993302077054977, 0.0075556812807917595, -0.24242649972438812, 0.30356281995773315, -0.0031742050778120756, 0.031187325716018677, 0.0408196859061718, -0.1368035227060318, 0.2584666609764099, 0.21736913919448853, -0.1042623445391655, -0.15882086753845215, 0.3664552867412567, 0.00756149273365736, -0.11919429153203964, -0.033696845173835754, 0.4409787654876709, 0.2317563146352768, -0.2997822165489197, -0.11005408316850662, -0.1903906613588333 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
I was thinking if we can handle the `compression` parameter by ourselves? Compression types will be similar to what `pandas` offer. Initially, we can try this with 2-3 compression types and see how good/bad it is? Let me know if it sounds good, I can raise a PR for this next week
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
52
the compression format requested when saving a dataset in json format is not respected
[ -0.1618843972682953, 0.10158956795930862, -0.17754359543323517, 0.08863437175750732, 0.12269137799739838, 0.043288521468639374, -0.14768750965595245, 0.5746110677719116, -0.30934765934944153, 0.24850519001483917, 0.13491936028003693, 0.3526560366153717, 0.1636086404323578, 0.03443625569343567, -0.3071485757827759, 0.005276415962725878, 0.007272736635059118, 0.44682785868644714, 0.18784303963184357, 0.020207807421684265, -0.13187724351882935, 0.28913789987564087, 0.06135326623916626, -0.03299228474497795, -0.1833743005990982, -0.2044394314289093, 0.2033262550830841, 0.10762478411197662, -0.4899389445781708, -0.27113616466522217, 0.025511130690574646, 0.01941313035786152, 0.10008243471384048, 0.02464740164577961, -0.00009931487875292078, 0.04111742973327637, 0.33254918456077576, -0.16587600111961365, -0.23127001523971558, 0.08069329708814621, -0.3735502362251282, -0.3338076174259186, 0.0037718520034104586, -0.266519159078598, -0.09653148800134659, -0.5717682242393494, -0.05292683094739914, -0.40333014726638794, 0.46494588255882263, -0.0006800423143431544, 0.3523452877998352, 0.026874687522649765, -0.005449783056974411, -0.055033519864082336, -0.19530066847801208, 0.39183762669563293, -0.02980503812432289, 0.06940963119268417, -0.05582166835665703, 0.38109010457992554, -0.012051690369844437, 0.1552397757768631, 0.13713303208351135, 0.003090496174991131, -0.07345506548881531, -0.11184490472078323, -0.12573698163032532, 0.18130895495414734, 0.11109684407711029, -0.04719528555870056, 0.5590528845787048, -0.08929134905338287, -0.33088794350624084, 0.10507824271917343, -0.06902113556861877, -0.1801798939704895, 0.17910806834697723, 0.23957431316375732, 0.020148394629359245, 0.1519693285226822, -0.3501548767089844, 0.008722187951207161, -0.3295555114746094, 0.023263748735189438, 0.24249868094921112, -0.17352263629436493, -0.22944290935993195, -0.13633376359939575, -0.0938073918223381, -0.09976466000080109, -0.06874661147594452, -0.30542808771133423, -0.06513627618551254, -0.21910452842712402, 0.14906899631023407, -0.3598191738128662, -0.06264866143465042, -0.40548309683799744, 0.37957730889320374, 0.0796901136636734, 0.1835181713104248, 0.12986508011817932, 0.27567991614341736, -0.09048482030630112, 0.23317351937294006, 0.02313988469541073, 0.27178359031677246, -0.1669597327709198, 0.1819896101951599, -0.02592281438410282, 0.10673706978559494, -0.08380486071109772, 0.01698269695043564, 0.08050143718719482, -0.021544074639678, -0.09166194498538971, 0.07474876940250397, -0.12385884672403336, -0.19249717891216278, 0.13114671409130096, -0.23824867606163025, -0.046510349959135056, -0.30641287565231323, -0.03687538579106331, 0.1506083905696869, 0.029950547963380814, 0.054366663098335266, 0.37655600905418396, 0.039818424731492996, 0.059105128049850464, -0.21866072714328766, -0.0239688940346241, 0.14609581232070923, -0.19209489226341248, 0.2216067910194397, -0.17812921106815338, 0.25084030628204346, 0.21682903170585632, -0.010360000655055046, -0.1769835650920868, 0.2124769389629364, 0.007386521901935339, 0.2800987958908081, 0.18625031411647797, 0.263543039560318, 0.0832500159740448, -0.0043023740872740746, -0.07264839857816696, -0.22454418241977692, 0.2522083520889282, -0.4694753885269165, -0.02231731079518795, -0.21980106830596924, 0.2983131408691406, 0.07488442212343216, 0.11126019060611725, -0.006246537435799837, 0.12025992572307587, 0.04568955674767494, -0.1860615611076355, -0.06193200498819351, 0.024706043303012848, 0.06576412916183472, -0.1905222088098526, 0.019336840137839317, 0.0805877149105072, -0.5409584641456604, -0.02512647956609726, 0.21462440490722656, -0.05574657768011093, 0.31304624676704407, 0.5125010013580322, -0.23343513906002045, -0.08359707146883011, -0.04197947308421135, 0.39858704805374146, 0.4680023491382599, -0.09665609151124954, -0.40463733673095703, 0.3096538782119751, -0.04210389778017998, 0.13208897411823273, 0.2531832158565521, -0.15258996188640594, 0.25964993238449097, -0.048533737659454346, 0.32518526911735535, 0.12673848867416382, 0.09145447611808777, 0.07859829813241959, -0.25887295603752136, -0.17331385612487793, 0.12457241863012314, -0.09559762477874756, -0.41045600175857544, 0.03420457988977432, 0.08023884147405624, 0.2044098973274231, 0.07744821161031723, -0.22903119027614594, 0.04597071185708046, 0.4381207227706909, -0.11937984824180603, -0.5079355835914612, 0.0800270140171051, 0.2788958251476288, -0.022446412593126297, -0.3251895308494568, -0.028990119695663452, -0.1375666856765747, -0.1057898998260498, -0.060774751007556915, -0.3373032510280609, -0.17937082052230835, -0.1255444586277008, 0.09067606180906296, 0.3532906472682953, 0.18372219800949097, 0.0025233516935259104, 0.19831916689872742, 0.0875002071261406, 0.09169640392065048, -0.04099858179688454, -0.08475134521722794, -0.2627120316028595, -0.0530717596411705, -0.10212385654449463, -0.2281789928674698, 0.35387036204338074, -0.16535861790180206, 0.131599560379982, -0.1804145872592926, -0.16255228221416473, 0.13817474246025085, 0.15890008211135864, 0.14422263205051422, -0.0423487089574337, -0.052406761795282364, 0.18930435180664062, 0.05287633836269379, 0.1297251135110855, 0.18339310586452484, 0.12137554585933685, 0.05733340233564377, -0.4876326024532318, 0.39626023173332214, 0.22120577096939087, -0.23777781426906586, -0.001122376648709178, -0.2719418704509735, 0.38298603892326355, 0.07406914979219437, -0.2033727765083313, -0.41818907856941223, -0.08008372038602829, 0.19111675024032593, -0.039720483124256134, 0.013189156539738178, -0.21155542135238647, 0.028055990114808083, 0.7285460233688354, -0.04859166964888573, 0.12457135319709778, 0.32358160614967346, 0.059991348534822464, -0.3478962182998657, -0.1036471351981163, 0.2656371295452118, 0.2524610161781311, 0.16888287663459778, 0.03447243943810463, -0.2457796186208725, 0.0697835385799408, -0.24631668627262115, 0.21266289055347443, -0.170022115111351, 0.31204187870025635, 0.25232234597206116, 0.2579420506954193, -0.09083336591720581, -0.3237207233905792, 0.21228285133838654, 0.06416353583335876, -0.17307502031326294, -0.07264206558465958, 0.12474488466978073, -0.584955096244812, 0.08082886040210724, -0.034167855978012085, -0.03810138255357742, -0.016772735863924026, -0.1312210112810135, 0.2779836356639862, -0.10684936493635178, -0.22511832416057587, 0.09363202005624771, 0.1526288241147995, 0.1410517692565918, 0.3215619921684265, -0.15053948760032654, -0.09842734783887863, 0.08955453336238861, -0.17313961684703827, 0.2038693130016327, -0.27667611837387085, -0.14300291240215302, 0.16350485384464264, -0.28362733125686646, 0.14757944643497467, 0.004993131849914789, -0.11611451953649521, 0.22532807290554047, 0.0014100016560405493, -0.12808549404144287, 0.08566029369831085, 0.0665535107254982, -0.0019538006745278835, -0.0868929773569107, 0.17881672084331512, 0.00025616263155825436, -0.27659520506858826, 0.14351202547550201, -0.07958145439624786, -0.13019314408302307, -0.2419975847005844, -0.1360197812318802, -0.03662671148777008, -0.12731309235095978, 0.21194353699684143, 0.12727168202400208, 0.17385828495025635, -0.020060358569025993, 0.13977067172527313, -0.2271186113357544, 0.13215811550617218, 0.06141562759876251, -0.3314783275127411, -0.4550286531448364, 0.4973483681678772, -0.3342221677303314, -0.4806956946849823, -0.07830691337585449, 0.23799842596054077, 0.09255333244800568, 0.14837071299552917, -0.010284384712576866, 0.05220774561166763, 0.028137899935245514, -0.1056247353553772, -0.13353180885314941, -0.07558473199605942, 0.22328099608421326, 0.0499512143433094, -0.3037290573120117, -0.2746918797492981, -0.23579539358615875, 0.20794248580932617, 0.20492061972618103, 0.263414591550827, -0.12024150788784027, 0.3656337857246399, 0.05333930253982544, -0.08017127215862274, 0.3792726397514343, -0.2271360605955124, 0.3559430241584778, 0.14136792719364166, 0.35600993037223816, -0.07882764935493469, 0.1340625137090683, 0.014635007828474045, 0.12372854351997375, 0.13729897141456604, 0.215459406375885, 0.058851249516010284, -0.08199430257081985, 0.15825608372688293, -0.22250878810882568, -0.2787991166114807, -0.034670159220695496, -0.004950192756950855, 0.19613631069660187, 0.12918062508106232, 0.13599348068237305, 0.280916303396225, -0.07043343782424927, 0.13365104794502258, -0.015693750232458115, 0.09849889576435089, 0.2371206134557724, 0.009574777446687222, -0.22623500227928162, 0.007519309874624014, -0.652853786945343, 0.2266407012939453, 0.04364212229847908, 0.44489413499832153, -0.07678885012865067, -0.026188747957348824, 0.022468283772468567, -0.09364336729049683, 0.4091225862503052, -0.18597154319286346, 0.00891911331564188, 0.12686273455619812, 0.08579117804765701, -0.21883738040924072, 0.25003135204315186, -0.14072242379188538, 0.2030114382505417, 0.10329282283782959, 0.5091678500175476, -0.23363028466701508, -0.23300975561141968, -0.23554591834545135, 0.09392333030700684, -0.057526845484972, -0.042986296117305756, -0.14435501396656036, -0.44679975509643555, -0.3533782660961151, -0.21025465428829193, 0.1509636789560318, 0.27180519700050354, 0.012835794128477573, -0.22133009135723114, -0.16222473978996277, -0.10475768148899078, -0.12314993143081665, 0.03570200502872467, 0.5159393548965454, -0.03441302850842476, -0.23642610013484955, -0.06106419488787651, 0.38760966062545776, 0.5010233521461487, 0.24545332789421082, 0.3669740855693817, -0.015975285321474075, 0.31436237692832947, -0.2426520735025406, -0.08631832897663116, 0.126604825258255, -0.11031179130077362, -0.15426838397979736, -0.1599004715681076, 0.017320996150374413, -0.2730468213558197, -0.24986667931079865, 0.3559224009513855, -0.34050047397613525, -0.34127023816108704, 0.2102394551038742, 0.19655805826187134, 0.0432872548699379, 0.18248358368873596, -0.012373493053019047, -0.08224274218082428, -0.16851241886615753, 0.16956079006195068, 0.4016488492488861, 0.6361593008041382, 0.19992627203464508, 0.13829219341278076, 0.23826777935028076, -0.4594605565071106, 0.3034123480319977, -0.3537912964820862, 0.12689091265201569, 0.008530808612704277, -0.11922129988670349, 0.02025434374809265, -0.03546630218625069, 0.15451516211032867, 0.3107582628726959, -0.32313215732574463, -0.1146349310874939, -0.030042484402656555, -0.2551209628582001, -0.003330258186906576, 0.5017737746238708, -0.09507746249437332, -0.22485540807247162, -0.4415159821510315, 0.29655101895332336, -0.05494692549109459, -0.06186707317829132, 0.05191515013575554, -0.47238191962242126, -0.11072361469268799, -0.4088996350765228, 0.12367775291204453, 0.21837569773197174, 0.13656215369701385, 0.17820140719413757, -0.0031650324817746878, -0.3499232232570648, 0.08558148145675659, -0.2730821967124939, 0.10712676495313644, 0.04331449046730995, -0.16207583248615265, 0.001500394893810153, -0.2565670609474182, 0.0872301533818245, -0.27161601185798645, -0.08785200864076614, 0.09304848313331604, -0.07506026327610016, 0.24398481845855713, -0.22040173411369324, -0.14669975638389587, -0.16389089822769165, 0.20333167910575867, 0.010682749561965466, -0.46763503551483154, -0.33357441425323486, -0.14382849633693695, -0.2313895970582962, -0.13003793358802795, -0.16971997916698456, 0.2600756287574768, 0.13517959415912628, 0.1510024517774582, 0.13700900971889496, 0.056049007922410965, -0.08843357861042023, -0.17635101079940796, 0.465064138174057, 0.26223140954971313, -0.12365734577178955, 0.4710167944431305, -0.28631678223609924, -0.21001023054122925, -0.3078346848487854, 0.22972625494003296, 0.1554909348487854, 0.0013846475630998611, 0.42787662148475647, -0.2936455309391022, -0.05807974934577942, 0.007017405703663826, 0.24532026052474976, -0.021640615537762642, 0.20507800579071045, 0.12841682136058807, -0.21365351974964142, -0.2873196601867676, 0.10483318567276001, 0.00014498572272714227, 0.056778255850076675, 0.20856043696403503, 0.1526239514350891, 0.006749847438186407, 0.07553627341985703, -0.4331635534763336, 0.06784050166606903, 0.003624098142609, 0.04145943373441696, -0.23932215571403503, -0.04430374503135681, 0.16860546171665192, 0.02447633072733879, 0.17095674574375153, 0.2797457277774811, -0.13724899291992188, -0.3465655446052551, -0.17489059269428253, 0.042577777057886124, 0.03822281211614609, 0.04302508011460304, -0.04029311239719391, -0.12848733365535736, -0.39098116755485535, -0.04847215116024017, -0.03653726354241371, -0.2076302021741867, 0.011532680131494999, 0.02470996603369713, 0.05180080235004425, -0.0518038310110569, 0.17748375236988068, -0.3837350904941559, 0.03659224137663841, 0.5289478898048401, -0.12756909430027008, 0.06418292224407196, -0.10250849276781082, -0.05918397381901741, -0.353666752576828, 0.09341859072446823, 0.08690785616636276, 0.22312164306640625, 0.07451575994491577, -0.19032733142375946, -0.10019533336162567, 0.046596869826316833, 0.2613399028778076, 0.15995314717292786, -0.30404403805732727, -0.24557559192180634, -0.20664852857589722, 0.32042399048805237, -0.027994491159915924, -0.36141616106033325, 0.06845152378082275, -0.035643719136714935, -0.09359638392925262, -0.028059223666787148, 0.100739486515522, 0.12769603729248047, 0.16286589205265045, -0.07484722882509232, 0.20598143339157104, -0.201607346534729, 0.16918885707855225, 0.2724510133266449, 0.047648657113313675, 0.07858486473560333, 0.0853438749909401, 0.13072469830513, 0.23264743387699127, -0.06378650665283203, 0.238037571310997, 0.1747804433107376, 0.438009649515152, 0.0003988613316323608, -0.35644179582595825, -0.1003863662481308, 0.14545516669750214, 0.20469897985458374, 0.11481036245822906, 0.41700804233551025, 0.5189779996871948, -0.05397642031311989, -0.16722574830055237, -0.08109820634126663, -0.32987186312675476, 0.08464920520782471, -0.20884954929351807, -0.05453883484005928, -0.27820292115211487, -0.09903863817453384, -0.03911849111318588, 0.010335961356759071, -0.2764606177806854, 0.3306734263896942, -0.10374420136213303, -0.029026847332715988, 0.11754089593887329, -0.1363612860441208, 0.16782251000404358, -0.15584208071231842, 0.14259472489356995, -0.2394946664571762, 0.2592136859893799, 0.23251277208328247, -0.26232200860977173, 0.050044946372509, 0.26866644620895386, 0.3535163104534149, -0.022188786417245865, 0.3180563151836395, -0.1428147703409195, -0.03269007429480553, -0.25525516271591187, 0.08215770870447159, 0.3031460642814636, 0.5636500716209412, -0.36626946926116943, 0.28996384143829346, 0.260136216878891, -0.18914249539375305, 0.09212935715913773, 0.2320956289768219, 0.029670966789126396, 0.1361730694770813, 0.006497944705188274, -0.1326591670513153, -0.09259440004825592, 0.0035676006227731705, -0.3585827648639679, -0.15226812660694122, -0.309541255235672, 0.07109731435775757, 0.18033595383167267, 0.15235182642936707, -0.24316634237766266, 0.1753508746623993, -0.13663989305496216, 0.4984896779060364, -0.09991118311882019, -0.3718564510345459, -0.06493496894836426, -0.2801881730556488, 0.10281174629926682, 0.2295001596212387, -0.10787763446569443, -0.061144255101680756, 0.02550153248012066, 0.30898961424827576, 0.25230130553245544, 0.16202248632907867, -0.042419034987688065, 0.16242483258247375, -0.13163445889949799, -0.0019905436784029007, -0.22839827835559845, 0.015350548550486565, 0.497454971075058, -0.030979547649621964, 0.027828609570860863, -0.17827659845352173, 0.3114951252937317, 0.09402480721473694, 0.2528327405452728, -0.3936328887939453, 0.15177275240421295, -0.23979903757572174, 0.1761244237422943, 0.22574381530284882, 0.4020519554615021, -0.07621319591999054, -0.43374910950660706, -0.29315170645713806, 0.15048441290855408, 0.2197718620300293, 0.0212780199944973, 0.3779354393482208, 0.2600667476654053, 0.5090692639350891, -0.09424267709255219, 0.17677420377731323, -0.14761826395988464, 0.1466529667377472, -0.29418668150901794, -0.23870259523391724, -0.07402844727039337, 0.24827910959720612, -0.10432884097099304, -0.3028807044029236, 0.1387009471654892, 0.21626152098178864, -0.007795597426593304, 0.1863371878862381, -0.23965293169021606, -0.15635651350021362, 0.09993302077054977, 0.0075556812807917595, -0.24242649972438812, 0.30356281995773315, -0.0031742050778120756, 0.031187325716018677, 0.0408196859061718, -0.1368035227060318, 0.2584666609764099, 0.21736913919448853, -0.1042623445391655, -0.15882086753845215, 0.3664552867412567, 0.00756149273365736, -0.11919429153203964, -0.033696845173835754, 0.4409787654876709, 0.2317563146352768, -0.2997822165489197, -0.11005408316850662, -0.1903906613588333 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
Hi ! Thanks for your help @bhavitvyamalik :) Maybe let's start with `gzip` ? I think it's the most common use case, then if we're fine with it we can add other compression methods
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
34
the compression format requested when saving a dataset in json format is not respected
[ -0.1618843972682953, 0.10158956795930862, -0.17754359543323517, 0.08863437175750732, 0.12269137799739838, 0.043288521468639374, -0.14768750965595245, 0.5746110677719116, -0.30934765934944153, 0.24850519001483917, 0.13491936028003693, 0.3526560366153717, 0.1636086404323578, 0.03443625569343567, -0.3071485757827759, 0.005276415962725878, 0.007272736635059118, 0.44682785868644714, 0.18784303963184357, 0.020207807421684265, -0.13187724351882935, 0.28913789987564087, 0.06135326623916626, -0.03299228474497795, -0.1833743005990982, -0.2044394314289093, 0.2033262550830841, 0.10762478411197662, -0.4899389445781708, -0.27113616466522217, 0.025511130690574646, 0.01941313035786152, 0.10008243471384048, 0.02464740164577961, -0.00009931487875292078, 0.04111742973327637, 0.33254918456077576, -0.16587600111961365, -0.23127001523971558, 0.08069329708814621, -0.3735502362251282, -0.3338076174259186, 0.0037718520034104586, -0.266519159078598, -0.09653148800134659, -0.5717682242393494, -0.05292683094739914, -0.40333014726638794, 0.46494588255882263, -0.0006800423143431544, 0.3523452877998352, 0.026874687522649765, -0.005449783056974411, -0.055033519864082336, -0.19530066847801208, 0.39183762669563293, -0.02980503812432289, 0.06940963119268417, -0.05582166835665703, 0.38109010457992554, -0.012051690369844437, 0.1552397757768631, 0.13713303208351135, 0.003090496174991131, -0.07345506548881531, -0.11184490472078323, -0.12573698163032532, 0.18130895495414734, 0.11109684407711029, -0.04719528555870056, 0.5590528845787048, -0.08929134905338287, -0.33088794350624084, 0.10507824271917343, -0.06902113556861877, -0.1801798939704895, 0.17910806834697723, 0.23957431316375732, 0.020148394629359245, 0.1519693285226822, -0.3501548767089844, 0.008722187951207161, -0.3295555114746094, 0.023263748735189438, 0.24249868094921112, -0.17352263629436493, -0.22944290935993195, -0.13633376359939575, -0.0938073918223381, -0.09976466000080109, -0.06874661147594452, -0.30542808771133423, -0.06513627618551254, -0.21910452842712402, 0.14906899631023407, -0.3598191738128662, -0.06264866143465042, -0.40548309683799744, 0.37957730889320374, 0.0796901136636734, 0.1835181713104248, 0.12986508011817932, 0.27567991614341736, -0.09048482030630112, 0.23317351937294006, 0.02313988469541073, 0.27178359031677246, -0.1669597327709198, 0.1819896101951599, -0.02592281438410282, 0.10673706978559494, -0.08380486071109772, 0.01698269695043564, 0.08050143718719482, -0.021544074639678, -0.09166194498538971, 0.07474876940250397, -0.12385884672403336, -0.19249717891216278, 0.13114671409130096, -0.23824867606163025, -0.046510349959135056, -0.30641287565231323, -0.03687538579106331, 0.1506083905696869, 0.029950547963380814, 0.054366663098335266, 0.37655600905418396, 0.039818424731492996, 0.059105128049850464, -0.21866072714328766, -0.0239688940346241, 0.14609581232070923, -0.19209489226341248, 0.2216067910194397, -0.17812921106815338, 0.25084030628204346, 0.21682903170585632, -0.010360000655055046, -0.1769835650920868, 0.2124769389629364, 0.007386521901935339, 0.2800987958908081, 0.18625031411647797, 0.263543039560318, 0.0832500159740448, -0.0043023740872740746, -0.07264839857816696, -0.22454418241977692, 0.2522083520889282, -0.4694753885269165, -0.02231731079518795, -0.21980106830596924, 0.2983131408691406, 0.07488442212343216, 0.11126019060611725, -0.006246537435799837, 0.12025992572307587, 0.04568955674767494, -0.1860615611076355, -0.06193200498819351, 0.024706043303012848, 0.06576412916183472, -0.1905222088098526, 0.019336840137839317, 0.0805877149105072, -0.5409584641456604, -0.02512647956609726, 0.21462440490722656, -0.05574657768011093, 0.31304624676704407, 0.5125010013580322, -0.23343513906002045, -0.08359707146883011, -0.04197947308421135, 0.39858704805374146, 0.4680023491382599, -0.09665609151124954, -0.40463733673095703, 0.3096538782119751, -0.04210389778017998, 0.13208897411823273, 0.2531832158565521, -0.15258996188640594, 0.25964993238449097, -0.048533737659454346, 0.32518526911735535, 0.12673848867416382, 0.09145447611808777, 0.07859829813241959, -0.25887295603752136, -0.17331385612487793, 0.12457241863012314, -0.09559762477874756, -0.41045600175857544, 0.03420457988977432, 0.08023884147405624, 0.2044098973274231, 0.07744821161031723, -0.22903119027614594, 0.04597071185708046, 0.4381207227706909, -0.11937984824180603, -0.5079355835914612, 0.0800270140171051, 0.2788958251476288, -0.022446412593126297, -0.3251895308494568, -0.028990119695663452, -0.1375666856765747, -0.1057898998260498, -0.060774751007556915, -0.3373032510280609, -0.17937082052230835, -0.1255444586277008, 0.09067606180906296, 0.3532906472682953, 0.18372219800949097, 0.0025233516935259104, 0.19831916689872742, 0.0875002071261406, 0.09169640392065048, -0.04099858179688454, -0.08475134521722794, -0.2627120316028595, -0.0530717596411705, -0.10212385654449463, -0.2281789928674698, 0.35387036204338074, -0.16535861790180206, 0.131599560379982, -0.1804145872592926, -0.16255228221416473, 0.13817474246025085, 0.15890008211135864, 0.14422263205051422, -0.0423487089574337, -0.052406761795282364, 0.18930435180664062, 0.05287633836269379, 0.1297251135110855, 0.18339310586452484, 0.12137554585933685, 0.05733340233564377, -0.4876326024532318, 0.39626023173332214, 0.22120577096939087, -0.23777781426906586, -0.001122376648709178, -0.2719418704509735, 0.38298603892326355, 0.07406914979219437, -0.2033727765083313, -0.41818907856941223, -0.08008372038602829, 0.19111675024032593, -0.039720483124256134, 0.013189156539738178, -0.21155542135238647, 0.028055990114808083, 0.7285460233688354, -0.04859166964888573, 0.12457135319709778, 0.32358160614967346, 0.059991348534822464, -0.3478962182998657, -0.1036471351981163, 0.2656371295452118, 0.2524610161781311, 0.16888287663459778, 0.03447243943810463, -0.2457796186208725, 0.0697835385799408, -0.24631668627262115, 0.21266289055347443, -0.170022115111351, 0.31204187870025635, 0.25232234597206116, 0.2579420506954193, -0.09083336591720581, -0.3237207233905792, 0.21228285133838654, 0.06416353583335876, -0.17307502031326294, -0.07264206558465958, 0.12474488466978073, -0.584955096244812, 0.08082886040210724, -0.034167855978012085, -0.03810138255357742, -0.016772735863924026, -0.1312210112810135, 0.2779836356639862, -0.10684936493635178, -0.22511832416057587, 0.09363202005624771, 0.1526288241147995, 0.1410517692565918, 0.3215619921684265, -0.15053948760032654, -0.09842734783887863, 0.08955453336238861, -0.17313961684703827, 0.2038693130016327, -0.27667611837387085, -0.14300291240215302, 0.16350485384464264, -0.28362733125686646, 0.14757944643497467, 0.004993131849914789, -0.11611451953649521, 0.22532807290554047, 0.0014100016560405493, -0.12808549404144287, 0.08566029369831085, 0.0665535107254982, -0.0019538006745278835, -0.0868929773569107, 0.17881672084331512, 0.00025616263155825436, -0.27659520506858826, 0.14351202547550201, -0.07958145439624786, -0.13019314408302307, -0.2419975847005844, -0.1360197812318802, -0.03662671148777008, -0.12731309235095978, 0.21194353699684143, 0.12727168202400208, 0.17385828495025635, -0.020060358569025993, 0.13977067172527313, -0.2271186113357544, 0.13215811550617218, 0.06141562759876251, -0.3314783275127411, -0.4550286531448364, 0.4973483681678772, -0.3342221677303314, -0.4806956946849823, -0.07830691337585449, 0.23799842596054077, 0.09255333244800568, 0.14837071299552917, -0.010284384712576866, 0.05220774561166763, 0.028137899935245514, -0.1056247353553772, -0.13353180885314941, -0.07558473199605942, 0.22328099608421326, 0.0499512143433094, -0.3037290573120117, -0.2746918797492981, -0.23579539358615875, 0.20794248580932617, 0.20492061972618103, 0.263414591550827, -0.12024150788784027, 0.3656337857246399, 0.05333930253982544, -0.08017127215862274, 0.3792726397514343, -0.2271360605955124, 0.3559430241584778, 0.14136792719364166, 0.35600993037223816, -0.07882764935493469, 0.1340625137090683, 0.014635007828474045, 0.12372854351997375, 0.13729897141456604, 0.215459406375885, 0.058851249516010284, -0.08199430257081985, 0.15825608372688293, -0.22250878810882568, -0.2787991166114807, -0.034670159220695496, -0.004950192756950855, 0.19613631069660187, 0.12918062508106232, 0.13599348068237305, 0.280916303396225, -0.07043343782424927, 0.13365104794502258, -0.015693750232458115, 0.09849889576435089, 0.2371206134557724, 0.009574777446687222, -0.22623500227928162, 0.007519309874624014, -0.652853786945343, 0.2266407012939453, 0.04364212229847908, 0.44489413499832153, -0.07678885012865067, -0.026188747957348824, 0.022468283772468567, -0.09364336729049683, 0.4091225862503052, -0.18597154319286346, 0.00891911331564188, 0.12686273455619812, 0.08579117804765701, -0.21883738040924072, 0.25003135204315186, -0.14072242379188538, 0.2030114382505417, 0.10329282283782959, 0.5091678500175476, -0.23363028466701508, -0.23300975561141968, -0.23554591834545135, 0.09392333030700684, -0.057526845484972, -0.042986296117305756, -0.14435501396656036, -0.44679975509643555, -0.3533782660961151, -0.21025465428829193, 0.1509636789560318, 0.27180519700050354, 0.012835794128477573, -0.22133009135723114, -0.16222473978996277, -0.10475768148899078, -0.12314993143081665, 0.03570200502872467, 0.5159393548965454, -0.03441302850842476, -0.23642610013484955, -0.06106419488787651, 0.38760966062545776, 0.5010233521461487, 0.24545332789421082, 0.3669740855693817, -0.015975285321474075, 0.31436237692832947, -0.2426520735025406, -0.08631832897663116, 0.126604825258255, -0.11031179130077362, -0.15426838397979736, -0.1599004715681076, 0.017320996150374413, -0.2730468213558197, -0.24986667931079865, 0.3559224009513855, -0.34050047397613525, -0.34127023816108704, 0.2102394551038742, 0.19655805826187134, 0.0432872548699379, 0.18248358368873596, -0.012373493053019047, -0.08224274218082428, -0.16851241886615753, 0.16956079006195068, 0.4016488492488861, 0.6361593008041382, 0.19992627203464508, 0.13829219341278076, 0.23826777935028076, -0.4594605565071106, 0.3034123480319977, -0.3537912964820862, 0.12689091265201569, 0.008530808612704277, -0.11922129988670349, 0.02025434374809265, -0.03546630218625069, 0.15451516211032867, 0.3107582628726959, -0.32313215732574463, -0.1146349310874939, -0.030042484402656555, -0.2551209628582001, -0.003330258186906576, 0.5017737746238708, -0.09507746249437332, -0.22485540807247162, -0.4415159821510315, 0.29655101895332336, -0.05494692549109459, -0.06186707317829132, 0.05191515013575554, -0.47238191962242126, -0.11072361469268799, -0.4088996350765228, 0.12367775291204453, 0.21837569773197174, 0.13656215369701385, 0.17820140719413757, -0.0031650324817746878, -0.3499232232570648, 0.08558148145675659, -0.2730821967124939, 0.10712676495313644, 0.04331449046730995, -0.16207583248615265, 0.001500394893810153, -0.2565670609474182, 0.0872301533818245, -0.27161601185798645, -0.08785200864076614, 0.09304848313331604, -0.07506026327610016, 0.24398481845855713, -0.22040173411369324, -0.14669975638389587, -0.16389089822769165, 0.20333167910575867, 0.010682749561965466, -0.46763503551483154, -0.33357441425323486, -0.14382849633693695, -0.2313895970582962, -0.13003793358802795, -0.16971997916698456, 0.2600756287574768, 0.13517959415912628, 0.1510024517774582, 0.13700900971889496, 0.056049007922410965, -0.08843357861042023, -0.17635101079940796, 0.465064138174057, 0.26223140954971313, -0.12365734577178955, 0.4710167944431305, -0.28631678223609924, -0.21001023054122925, -0.3078346848487854, 0.22972625494003296, 0.1554909348487854, 0.0013846475630998611, 0.42787662148475647, -0.2936455309391022, -0.05807974934577942, 0.007017405703663826, 0.24532026052474976, -0.021640615537762642, 0.20507800579071045, 0.12841682136058807, -0.21365351974964142, -0.2873196601867676, 0.10483318567276001, 0.00014498572272714227, 0.056778255850076675, 0.20856043696403503, 0.1526239514350891, 0.006749847438186407, 0.07553627341985703, -0.4331635534763336, 0.06784050166606903, 0.003624098142609, 0.04145943373441696, -0.23932215571403503, -0.04430374503135681, 0.16860546171665192, 0.02447633072733879, 0.17095674574375153, 0.2797457277774811, -0.13724899291992188, -0.3465655446052551, -0.17489059269428253, 0.042577777057886124, 0.03822281211614609, 0.04302508011460304, -0.04029311239719391, -0.12848733365535736, -0.39098116755485535, -0.04847215116024017, -0.03653726354241371, -0.2076302021741867, 0.011532680131494999, 0.02470996603369713, 0.05180080235004425, -0.0518038310110569, 0.17748375236988068, -0.3837350904941559, 0.03659224137663841, 0.5289478898048401, -0.12756909430027008, 0.06418292224407196, -0.10250849276781082, -0.05918397381901741, -0.353666752576828, 0.09341859072446823, 0.08690785616636276, 0.22312164306640625, 0.07451575994491577, -0.19032733142375946, -0.10019533336162567, 0.046596869826316833, 0.2613399028778076, 0.15995314717292786, -0.30404403805732727, -0.24557559192180634, -0.20664852857589722, 0.32042399048805237, -0.027994491159915924, -0.36141616106033325, 0.06845152378082275, -0.035643719136714935, -0.09359638392925262, -0.028059223666787148, 0.100739486515522, 0.12769603729248047, 0.16286589205265045, -0.07484722882509232, 0.20598143339157104, -0.201607346534729, 0.16918885707855225, 0.2724510133266449, 0.047648657113313675, 0.07858486473560333, 0.0853438749909401, 0.13072469830513, 0.23264743387699127, -0.06378650665283203, 0.238037571310997, 0.1747804433107376, 0.438009649515152, 0.0003988613316323608, -0.35644179582595825, -0.1003863662481308, 0.14545516669750214, 0.20469897985458374, 0.11481036245822906, 0.41700804233551025, 0.5189779996871948, -0.05397642031311989, -0.16722574830055237, -0.08109820634126663, -0.32987186312675476, 0.08464920520782471, -0.20884954929351807, -0.05453883484005928, -0.27820292115211487, -0.09903863817453384, -0.03911849111318588, 0.010335961356759071, -0.2764606177806854, 0.3306734263896942, -0.10374420136213303, -0.029026847332715988, 0.11754089593887329, -0.1363612860441208, 0.16782251000404358, -0.15584208071231842, 0.14259472489356995, -0.2394946664571762, 0.2592136859893799, 0.23251277208328247, -0.26232200860977173, 0.050044946372509, 0.26866644620895386, 0.3535163104534149, -0.022188786417245865, 0.3180563151836395, -0.1428147703409195, -0.03269007429480553, -0.25525516271591187, 0.08215770870447159, 0.3031460642814636, 0.5636500716209412, -0.36626946926116943, 0.28996384143829346, 0.260136216878891, -0.18914249539375305, 0.09212935715913773, 0.2320956289768219, 0.029670966789126396, 0.1361730694770813, 0.006497944705188274, -0.1326591670513153, -0.09259440004825592, 0.0035676006227731705, -0.3585827648639679, -0.15226812660694122, -0.309541255235672, 0.07109731435775757, 0.18033595383167267, 0.15235182642936707, -0.24316634237766266, 0.1753508746623993, -0.13663989305496216, 0.4984896779060364, -0.09991118311882019, -0.3718564510345459, -0.06493496894836426, -0.2801881730556488, 0.10281174629926682, 0.2295001596212387, -0.10787763446569443, -0.061144255101680756, 0.02550153248012066, 0.30898961424827576, 0.25230130553245544, 0.16202248632907867, -0.042419034987688065, 0.16242483258247375, -0.13163445889949799, -0.0019905436784029007, -0.22839827835559845, 0.015350548550486565, 0.497454971075058, -0.030979547649621964, 0.027828609570860863, -0.17827659845352173, 0.3114951252937317, 0.09402480721473694, 0.2528327405452728, -0.3936328887939453, 0.15177275240421295, -0.23979903757572174, 0.1761244237422943, 0.22574381530284882, 0.4020519554615021, -0.07621319591999054, -0.43374910950660706, -0.29315170645713806, 0.15048441290855408, 0.2197718620300293, 0.0212780199944973, 0.3779354393482208, 0.2600667476654053, 0.5090692639350891, -0.09424267709255219, 0.17677420377731323, -0.14761826395988464, 0.1466529667377472, -0.29418668150901794, -0.23870259523391724, -0.07402844727039337, 0.24827910959720612, -0.10432884097099304, -0.3028807044029236, 0.1387009471654892, 0.21626152098178864, -0.007795597426593304, 0.1863371878862381, -0.23965293169021606, -0.15635651350021362, 0.09993302077054977, 0.0075556812807917595, -0.24242649972438812, 0.30356281995773315, -0.0031742050778120756, 0.031187325716018677, 0.0408196859061718, -0.1368035227060318, 0.2584666609764099, 0.21736913919448853, -0.1042623445391655, -0.15882086753845215, 0.3664552867412567, 0.00756149273365736, -0.11919429153203964, -0.033696845173835754, 0.4409787654876709, 0.2317563146352768, -0.2997822165489197, -0.11005408316850662, -0.1903906613588333 ]
https://github.com/huggingface/datasets/issues/3475
The rotten_tomatoes dataset of movie reviews contains some reviews in Spanish
Hi @puzzler10, thanks for reporting. Please note this dataset is not hosted on Hugging Face Hub. See: https://github.com/huggingface/datasets/blob/c8f914473b041833fd47178fa4373cdcb56ac522/datasets/rotten_tomatoes/rotten_tomatoes.py#L42 If there are issues with the source data of a dataset, you should contact the data owners/creators instead. In the homepage associated with this dataset (http://www.cs.cornell.edu/people/pabo/movie-review-data/), you can find the authors of the dataset and how to contact them: > If you have any questions or comments regarding this site, please send email to Bo Pang or Lillian Lee. P.S.: Please also note that the example you gave of non-English review is in Portuguese (not Spanish). ;)
## Describe the bug See title. I don't think this is intentional and they probably should be removed. If they stay the dataset description should be at least updated to make it clear to the user. ## Steps to reproduce the bug Go to the [dataset viewer](https://huggingface.co/datasets/viewer/?dataset=rotten_tomatoes) for the dataset, set the offset to 4160 for the train dataset, and scroll through the results. I found ones at index 4166 and 4173. There's others too (e.g. index 2888) but those two are easy to find like that. ## Expected results English movie reviews only. ## Actual results Example of a Spanish movie review (4173): > "É uma pena que , mais tarde , o próprio filme abandone o tom de paródia e passe a utilizar os mesmos clichês que havia satirizado "
95
The rotten_tomatoes dataset of movie reviews contains some reviews in Spanish
[ -0.1193128302693367, 0.5047330856323242, -0.45717358589172363, 0.09266021102666855, 0.22912287712097168, -0.062437962740659714, -0.0210634283721447, 0.15175218880176544, -0.001774936798028648, -0.05439576134085655, -0.4547422230243683, -0.12747062742710114, 0.1558765470981598, -0.14605073630809784, 0.1167815774679184, 0.22087602317333221, 0.021017249673604965, -0.025348814204335213, -0.2026960253715515, -0.2724965810775757, 0.02105538174510002, 0.38982775807380676, 0.28164270520210266, 0.08395955711603165, -0.3438349664211273, 0.17493069171905518, 0.42297935485839844, -0.1833450049161911, 0.003239772515371442, -0.33799490332603455, 0.037672970443964005, 0.04642307758331299, -0.23381464183330536, 0.413840651512146, -0.00010502788791200146, 0.05369723215699196, 0.3921374976634979, -0.17456382513046265, 0.010560987517237663, -0.09688210487365723, -0.11593588441610336, -0.07590638101100922, -0.06169892102479935, 0.06412296742200851, -0.19669713079929352, -0.24407954514026642, 0.09679640829563141, -0.5216356515884399, -0.0818939283490181, 0.12779171764850616, 0.30410489439964294, -0.06780130416154861, -0.41581830382347107, -0.22716890275478363, 0.469562292098999, 0.47245416045188904, -0.13974535465240479, 0.07240606844425201, 0.3871084153652191, -0.03038080781698227, -0.23361480236053467, 0.082410529255867, 0.09538213163614273, -0.2385856807231903, -0.4542786478996277, -0.09081171452999115, -0.1345498114824295, -0.03603408858180046, 0.3579372465610504, 0.2524673640727997, 0.03953765332698822, -0.26891303062438965, -0.26048511266708374, 0.05645298957824707, -0.09370898455381393, 0.12980204820632935, -0.17349521815776825, 0.29599806666374207, -0.028163744136691093, 0.023108642548322678, -0.06009911000728607, 0.05438240244984627, 0.28309476375579834, -0.026246583089232445, 0.19427956640720367, 0.2586548328399658, -0.05110014230012894, -0.05842861905694008, -0.0887329950928688, 0.014155372977256775, 0.27616748213768005, 0.06573710590600967, -0.006806343328207731, -0.1450517475605011, 0.17696450650691986, -0.026351265609264374, -0.03765476495027542, 0.05349084734916687, 0.23404617607593536, -0.2562450170516968, 0.05164973437786102, 0.10706373304128647, -0.05402471125125885, 0.07830210775136948, 0.31004104018211365, -0.07200752943754196, 0.354318767786026, 0.007475908380001783, 0.23840603232383728, 0.13722679018974304, 0.08354847878217697, -0.03137354180216789, 0.2103085070848465, -0.12056463211774826, 0.08441020548343658, 0.31414133310317993, 0.06454046070575714, -0.18051926791667938, -0.186167910695076, 0.005569244734942913, 0.1621856838464737, -0.1810370236635208, -0.08286513388156891, 0.14253488183021545, 0.04290821775794029, 0.229517862200737, -0.36189764738082886, 0.0645708367228508, 0.01722574234008789, -0.5109716057777405, -0.3391192853450775, 0.11352954059839249, -0.12417750060558319, -0.11842580139636993, 0.1099688708782196, 0.07548515498638153, 0.37980183959007263, -0.10445356369018555, 0.3095818758010864, -0.26053452491760254, -0.20052467286586761, -0.26074570417404175, 0.24207569658756256, 0.10888219624757767, 0.49443209171295166, 0.2844627797603607, 0.017473654821515083, -0.05825294926762581, -0.1983642876148224, 0.36030521988868713, -0.21606720983982086, 0.1784246563911438, -0.06515301764011383, 0.2032359391450882, 0.05542881041765213, -0.21965384483337402, -0.10469742119312286, 0.13732439279556274, 0.25967875123023987, 0.02037629298865795, 0.11789576709270477, -0.07172560691833496, 0.011839132755994797, 0.3020710051059723, -0.2266213595867157, 0.34124037623405457, -0.3791244626045227, -0.15190815925598145, -0.21102356910705566, -0.3710510730743408, 0.22433288395404816, 0.4425223171710968, -0.02140803635120392, -0.1269315928220749, -0.16853396594524384, 0.42117443680763245, -0.060412295162677765, -0.0958668515086174, -0.18415296077728271, 0.25730717182159424, 0.2939580976963043, -0.04955880716443062, 0.21030691266059875, 0.1316179633140564, 0.20533038675785065, -0.03962560370564461, -0.1941957324743271, 0.06349482387304306, 0.11788035184144974, -0.01930089108645916, -0.06241721287369728, -0.07916474342346191, 0.0696769505739212, 0.04021166265010834, 0.19897916913032532, -0.09168127924203873, 0.03199547156691551, 0.05014125257730484, 0.232852965593338, 0.2450217604637146, -0.05643228441476822, 0.15684279799461365, 0.1341266930103302, 0.1999606490135193, 0.034627050161361694, 0.07820811122655869, -0.006805437617003918, -0.20323368906974792, -0.21887047588825226, 0.13036230206489563, -0.12371842563152313, -0.3822130858898163, -0.4161755442619324, 0.020633907988667488, -0.04684989154338837, -0.005429515149444342, 0.33062389492988586, 0.24781808257102966, -0.3287489116191864, 0.27657806873321533, -0.1506626009941101, -0.04781176894903183, -0.3418448269367218, -0.2945479452610016, 0.1975483000278473, 0.0891076996922493, -0.040615975856781006, -0.10676100105047226, 0.06602640450000763, 0.09800656884908676, 0.03356970101594925, -0.1780698150396347, 0.011851305142045021, 0.06554549187421799, 0.19162911176681519, 0.30255886912345886, 0.1458054929971695, -0.02375042997300625, 0.12676388025283813, -0.03594246506690979, -0.14091964066028595, 0.3474617898464203, 0.05164676532149315, -0.05349937081336975, 0.05459756404161453, 0.3530005216598511, -0.057607073336839676, 0.04917304590344429, 0.29960083961486816, -0.20002837479114532, 0.3930639922618866, 0.12678544223308563, -0.12286578863859177, -0.7506654858589172, 0.2906060218811035, -0.10074250400066376, 0.046065982431173325, 0.16283591091632843, -0.05019458010792732, -0.08230060338973999, 0.6074778437614441, -0.1305391639471054, 0.48753875494003296, 0.10200704634189606, 0.0434391051530838, 0.038275185972452164, 0.10598037391901016, 0.06836996972560883, 0.05064919590950012, 0.09307306259870529, 0.03447250649333, 0.027740752324461937, 0.11352366954088211, -0.3473738729953766, 0.014797510579228401, 0.0016184482956305146, -0.1289866715669632, 0.2462831288576126, 0.028821593150496483, -0.3179425001144409, -0.394279807806015, 0.06573283672332764, -0.07516564428806305, -0.11738841235637665, -0.1569339483976364, -0.06956797093153, -0.38871651887893677, -0.15788069367408752, -0.05396871641278267, -0.15137460827827454, 0.02915409579873085, -0.11777649074792862, 0.3981194794178009, -0.4031370282173157, -0.10415077209472656, 0.3536238968372345, -0.13101686537265778, 0.22003817558288574, -0.21259354054927826, -0.05329162999987602, 0.03882172703742981, -0.4707484543323517, -0.034858718514442444, 0.2055623084306717, 0.1788780689239502, -0.28067731857299805, -0.014811063185334206, -0.5549666881561279, -0.1800403892993927, 0.012515864335000515, 0.018905239179730415, 0.1381533294916153, -0.0021923885215073824, 0.00800035148859024, -0.13775363564491272, -0.07558339089155197, 0.07911253720521927, 0.06777632981538773, 0.014568543061614037, -0.001272434601560235, -0.09716778993606567, 0.04137544333934784, -0.2178267389535904, -0.2521893382072449, -0.07795481383800507, -0.37290310859680176, -0.07794631272554398, 0.1566496193408966, -0.28032124042510986, 0.07590553164482117, 0.0731457844376564, -0.21899135410785675, 0.13762731850147247, 0.04525650292634964, -0.1820223033428192, 0.16070856153964996, -0.30992886424064636, 0.07733592391014099, 0.28010207414627075, -0.040111299604177475, -0.20607951283454895, -0.03224436938762665, 0.24651435017585754, 0.07271261513233185, -0.18508173525333405, -0.4451901614665985, -0.008426522836089134, -0.16774849593639374, 0.04905574768781662, 0.15471233427524567, -0.33072429895401, 0.14488428831100464, -0.21185699105262756, -0.32271915674209595, -0.04057977348566055, -0.09390586614608765, 0.23465245962142944, -0.2948880195617676, -0.05959157273173332, -0.26068711280822754, 0.22307038307189941, 0.08277904987335205, 0.15790215134620667, -0.04740474373102188, 0.10355333983898163, 0.20311014354228973, 0.1532573699951172, 0.444476455450058, -0.18758755922317505, -0.03435080125927925, -0.005373372696340084, -0.15427705645561218, 0.10631586611270905, 0.3354232609272003, -0.021274149417877197, -0.3421318829059601, -0.12374775856733322, 0.09021351486444473, -0.2666609585285187, 0.07513285428285599, 0.11305221170186996, 0.2161867320537567, 0.03892628476023674, 0.004246098455041647, -0.015778981149196625, 0.3131496012210846, -0.12849676609039307, -0.2484830617904663, -0.129707932472229, -0.014818986877799034, -0.0503612644970417, -0.07272479683160782, 0.032931841909885406, 0.08414018899202347, 0.0823490247130394, 0.13510648906230927, 0.3145836889743805, -0.34493327140808105, 0.06134085729718208, 0.19938640296459198, -0.06557346135377884, 0.23096780478954315, 0.09387584030628204, 0.06891857087612152, 0.04464925080537796, -0.18258173763751984, -0.0005081734270788729, -0.08914780616760254, -0.5598308444023132, 0.17152173817157745, 0.32900547981262207, -0.1298939436674118, -0.09245466440916061, -0.003945938777178526, 0.013235228136181831, 0.0555572584271431, -0.04752378910779953, 0.2663254141807556, -0.2909303307533264, -0.28969618678092957, -0.08183111250400543, 0.06559906899929047, 0.5021655559539795, -0.22443406283855438, -0.0275044497102499, -0.14940598607063293, 0.009532020427286625, -0.09667085111141205, 0.1311122477054596, 0.1288999766111374, 0.0035065612755715847, 0.10250625759363174, -0.1292058825492859, -0.4134068787097931, -0.02917819656431675, 0.03356332331895828, 0.2598477303981781, -0.06615456938743591, -0.29182252287864685, 0.16595663130283356, -0.41279032826423645, 0.13676278293132782, 0.34024885296821594, 0.2728422284126282, -0.08998018503189087, 0.13214872777462006, -0.5174341797828674, 0.2309531420469284, -0.12310639768838882, 0.3295682668685913, -0.07123874127864838, 0.20968276262283325, -0.25946569442749023, 0.21850834786891937, 0.1283162534236908, -0.032868318259716034, -0.27885696291923523, 0.026631876826286316, -0.2851297855377197, -0.008538240566849709, 0.35738661885261536, 0.7225693464279175, 0.2540660500526428, 0.10185492038726807, -0.20714730024337769, -0.11092203110456467, -0.09005926549434662, -0.09980905801057816, -0.23716171085834503, -0.034789055585861206, 0.005057634320110083, -0.05813959613442421, 0.07579435408115387, 0.14914566278457642, 0.21879854798316956, -0.08750028163194656, 0.15963220596313477, -0.4848252534866333, 0.17149822413921356, 0.27649781107902527, -0.07495757937431335, 0.0193492379039526, -0.18121980130672455, 0.13889801502227783, 0.2758249342441559, -0.0315130241215229, -0.11212148517370224, 0.13257786631584167, 0.20813454687595367, -0.02147052250802517, 0.19194911420345306, -0.49325481057167053, 0.04791781306266785, 0.02669835090637207, 0.24676282703876495, 0.07996472716331482, -0.13392944633960724, -0.10315775871276855, 0.22091363370418549, 0.07050871849060059, 0.31225988268852234, 0.30692124366760254, 0.4338362514972687, 0.38925087451934814, 0.043939366936683655, 0.25992411375045776, 0.18773780763149261, -0.026255907490849495, -0.16152949631214142, -0.2815413773059845, 0.06657452881336212, 0.39886969327926636, 0.13845889270305634, -0.2738843858242035, 0.15904536843299866, 0.02727789804339409, -0.15892206132411957, -0.6223613619804382, 0.18288055062294006, -0.008753710426390171, -0.19734083116054535, 0.24888867139816284, -0.10725662857294083, 0.12585103511810303, -0.024702301248908043, 0.35825034976005554, -0.21260397136211395, -0.3541123867034912, 0.2913739085197449, 0.338917076587677, -0.13925932347774506, 0.18579617142677307, -0.04163481667637825, -0.4015185534954071, -0.306569367647171, 0.12668494880199432, 0.07177812606096268, -0.6930684447288513, -0.059057775884866714, -0.17802441120147705, -0.20739932358264923, -0.4656945765018463, -0.08100548386573792, -0.03290434926748276, 0.522089958190918, -0.17853951454162598, -0.18815192580223083, 0.4707677662372589, 0.04172852635383606, 0.23829419910907745, -0.05453037470579147, -0.11177010834217072, -0.1730722337961197, -0.020452206954360008, -0.14061163365840912, -0.36856934428215027, -0.11793555319309235, -0.3616591691970825, -0.11202163994312286, 0.05839860066771507, 0.09273489564657211, -0.010500327683985233, -0.06500952690839767, 0.2075282484292984, 0.19473817944526672, 0.03659427911043167, -0.37296923995018005, -0.014927765354514122, 0.01389725599437952, 0.07156681269407272, 0.0011234473204240203, 0.07939671725034714, 0.17487382888793945, -0.1984720081090927, 0.017280779778957367, 0.03845851495862007, 0.26496976613998413, -0.0030636321753263474, 0.39596858620643616, -0.12072651088237762, -0.11847779154777527, 0.10166499018669128, -0.12825196981430054, -0.12810763716697693, 0.25591254234313965, 0.16652725636959076, 0.046912889927625656, 0.4313673675060272, 0.021917935460805893, 0.14016327261924744, -0.022270414978265762, 0.021119551733136177, 0.4423387944698334, 0.025908710435032845, -0.0804084911942482, 0.46079838275909424, 0.4433688223361969, 0.08617985993623734, 0.14410459995269775, -0.2500336766242981, -0.48669856786727905, 0.09758376330137253, 0.25432518124580383, -0.3886115252971649, -0.04148053005337715, -0.07879893481731415, -0.0814770758152008, 0.1214270368218422, 0.19903776049613953, 0.18216826021671295, 0.23392878472805023, 0.7025933265686035, -0.014941511675715446, 0.34350553154945374, -0.1753706932067871, 0.17718064785003662, 0.07952728867530823, 0.2711668908596039, 0.19886717200279236, -0.029694994911551476, 0.009971207939088345, -0.06415379792451859, 0.2249872237443924, -0.24045030772686005, 0.2807372510433197, 0.22770243883132935, 0.2630005478858948, -0.058826886117458344, 0.09959312528371811, 0.4293012320995331, 0.4000422954559326, -0.17871007323265076, 0.24307496845722198, -0.01106170192360878, 0.21559299528598785, -0.03368417173624039, 0.22397032380104065, -0.2751528024673462, -0.11126667261123657, -0.1340876668691635, -0.2594335675239563, -0.16699790954589844, 0.13600003719329834, -0.39848288893699646, -0.06917431950569153, -0.10125879943370819, 0.1659090369939804, -0.22985704243183136, 0.18180201947689056, -0.23358868062496185, -0.13088873028755188, 0.16904592514038086, -0.4480989873409271, 0.09337196499109268, 0.006079533603042364, 0.45690926909446716, 0.3079948127269745, 0.4373982548713684, -0.010451626032590866, 0.34373554587364197, 0.1640305519104004, 0.2219695895910263, 0.30566051602363586, -0.0058522820472717285, -0.25962162017822266, -0.06243439018726349, 0.204414963722229, 0.2026018351316452, 0.25000694394111633, 0.053671084344387054, 0.08646498620510101, 0.25456854701042175, -0.2200188934803009, 0.4179057776927948, 0.45523494482040405, 0.20779035985469818, 0.26337388157844543, 0.1277417242527008, -0.3391187787055969, 0.10429762303829193, -0.40392130613327026, -0.19286943972110748, -0.24014194309711456, -0.45753559470176697, 0.10457656532526016, -0.3139381408691406, -0.023795111104846, -0.19851833581924438, 0.1758762001991272, -0.0605669841170311, 0.44797736406326294, -0.27664294838905334, -0.007437593769282103, 0.07459142059087753, -0.05986928567290306, -0.1684553027153015, 0.06593567132949829, 0.09765341877937317, -0.10366712510585785, -0.20596951246261597, 0.08263392001390457, 0.16697074472904205, 0.48349127173423767, 0.011942058801651001, -0.031109051778912544, -0.2621823847293854, -0.1680225133895874, -0.28166791796684265, -0.09107823669910431, 0.05760185793042183, 0.3968830406665802, 0.07474455237388611, -0.00220505497418344, -0.2350359708070755, -0.13941706717014313, 0.18895184993743896, -0.05563792958855629, -0.6491861343383789, -0.012514987960457802, 0.6238551735877991, -0.06318812072277069, -0.10056374967098236, 0.41729936003685, -0.32845768332481384, 0.22237634658813477, 0.14641088247299194, -0.5648806691169739, -0.01219255942851305, 0.35328903794288635, 0.3247925043106079, -0.24741792678833008, -0.10586951673030853, -0.2618032991886139, 0.24185101687908173, 0.5987884998321533, -0.18360356986522675, -0.13731983304023743, -0.0779130607843399, -0.13256356120109558, 0.13484638929367065, -0.35560280084609985, -0.200781911611557, -0.07481355220079422, -0.04310380294919014, -0.09870154410600662, -0.07082425057888031, -0.2651810944080353, 0.16725221276283264, 0.3023439645767212, 0.01619763858616352, -0.27446430921554565, 0.058514293283224106, 0.005579878576099873, -0.2003786712884903, 0.10071158409118652, 0.27341845631599426, 0.06765784323215485, 0.2286035120487213, -0.058195922523736954, 0.15101395547389984, -0.41733288764953613, 0.011470436118543148, -0.18098312616348267, 0.27835962176322937, 0.2170528769493103, -0.38403597474098206, -0.03947325050830841, -0.14063668251037598 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
As discussed, I remember I set `decoded=False` here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
32
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
> I set decoded=False here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed https://github.com/huggingface/datasets/pull/3430 will add more control to decoding, so I think it's OK to enable decoding in `__iter__` for now. After we merge the linked PR, the user can easily disable it again.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
61
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
@mariosasko I wonder why there is no issue in `Audio` feature with decoding disabled in `__iter__`, whereas there is in `Image` feature. Enabling decoding in `__iter__` will make fail Audio regressions tests: https://github.com/huggingface/datasets/runs/4608657230?check_suite_focus=true ``` =========================== short test summary info ============================ FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_not_decoded FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_decoded ========================= 2 failed, 15 passed in 8.37s =========================
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
52
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Please also note that the regression tests were implemented in accordance with the specifications: - when doing a `map` (wich calls `__iter__`) of a function that doesn't access the audio field, the decoding should be disabled; this is why the decoding is disabled in `__iter__` (and only enabled in `__getitem__`).
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
50
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
> I wonder why there is no issue in Audio feature with decoding disabled in __iter__, whereas there is in Image feature. @albertvillanova Not sure if I understand this part. Currently, both the Image and the Audio feature don't decode data in `__iter__`, so their behavior is aligned there.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
49
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Therefore, this is not an issue, neither for Audio nor Image feature. Could you please elaborate more on the expected use case? @lhoestq @NielsRogge The expected use cases (in accordance with the specs: see #2324): - decoding should be enabled when accessing a specific item (`__getitem__`) - decoding should be disabled while iterating (`__iter__`) to allow preprocessing of non-audio/image features (like label or text, for example) using `.map` - decoding should be enabled in a `.map` only if the `.map` function accesses the audio/image feature (implemented using `LazyDict`)
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
88
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
For me it's not an issue, actually. I just (mistakenly) tried to iterate over a PyTorch Dataset instead of a PyTorch DataLoader, i.e. I did this: `batch = next(iter(train_ds)) ` whereas I actually wanted to do `batch = next(iter(train_dataloader))` and then it turned out that in the first case, the image was a string of bytes rather than a Pillow image, hence Quentin opened an issue.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
66
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Thanks @NielsRogge for the context. So IMO everything is working as expected. I'm closing this issue. Feel free to reopen it again if further changes of the specs should be addressed.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
31
Iterating over a vision dataset doesn't decode the images
[ -0.2075009047985077, -0.061513371765613556, -0.2164805382490158, 0.29497742652893066, 0.2789612114429474, 0.06742436438798904, 0.2225886583328247, 0.20230479538440704, 0.08510158956050873, 0.15157760679721832, -0.004495979752391577, 0.14031238853931427, 0.17992053925991058, -0.06350911408662796, -0.19905796647071838, 0.019118843600153923, -0.08768688142299652, 0.472859650850296, -0.13920541107654572, -0.36964088678359985, -0.1464625746011734, 0.12355320900678635, -0.09709423780441284, -0.36880046129226685, 0.010713384486734867, -0.17745691537857056, -0.22245194017887115, 0.06171378120779991, -0.07670001685619354, -0.1352427452802658, -0.22129148244857788, 0.18183200061321259, 0.01081161480396986, 0.27639415860176086, -0.00010299846326233819, 0.22185401618480682, 0.18429653346538544, -0.13228905200958252, -0.11754854023456573, 0.277123361825943, -0.22073127329349518, -0.11948730051517487, -0.1847561001777649, -0.32969892024993896, -0.2654097080230713, -0.3905964195728302, 0.3640819787979126, -0.3004443049430847, 0.25026434659957886, -0.11397789418697357, 0.2809516191482544, -0.052703771740198135, -0.13989821076393127, 0.2591385841369629, -0.028201261535286903, 0.243852898478508, -0.020052673295140266, -0.05855720490217209, -0.21441930532455444, 0.13368408381938934, -0.258878231048584, 0.5366966128349304, -0.03515509143471718, 0.19196632504463196, -0.06764765083789825, 0.13073889911174774, -0.1774914711713791, -0.2648460268974304, 0.10245607793331146, -0.09779540449380875, 0.19494864344596863, 0.05419343337416649, -0.34327444434165955, -0.1447637528181076, -0.29792553186416626, -0.21977005898952484, -0.045139532536268234, 0.24002471566200256, -0.19297976791858673, 0.013674662448465824, -0.16561947762966156, 0.10147154331207275, -0.2828770875930786, 0.16487744450569153, -0.26060041785240173, -0.21471522748470306, -0.2180556356906891, 0.19037307798862457, 0.34028545022010803, 0.10127325356006622, 0.3282994031906128, -0.02191063016653061, -0.07406105846166611, -0.2718721926212311, -0.15024636685848236, -0.07979024946689606, 0.1418403834104538, 0.26734834909439087, -0.10603287070989609, -0.0023800181224942207, 0.28920847177505493, 0.36367660760879517, 0.10334493964910507, 0.008004453964531422, 0.015824023634195328, -0.2421949803829193, -0.1505315601825714, 0.33263301849365234, 0.023490870371460915, -0.1259196400642395, -0.1808874011039734, -0.02864821068942547, -0.14469818770885468, 0.0010903018992394209, -0.06488294154405594, -0.14270679652690887, 0.045503098517656326, -0.009457625448703766, -0.11057297885417938, -0.011201598681509495, -0.3961608111858368, -0.1254490166902542, -0.25011441111564636, 0.27157512307167053, 0.35625576972961426, 0.06957521289587021, 0.25658658146858215, 0.03799750283360481, -0.3525667190551758, -0.33600562810897827, -0.29086771607398987, -0.022513093426823616, -0.09166357666254044, 0.10571194440126419, 0.03337717801332474, 0.2871256470680237, 0.04910679906606674, -0.24270151555538177, -0.18166176974773407, -0.19266146421432495, 0.2397342175245285, -0.3216128647327423, 0.7469437718391418, 0.10800193250179291, 0.025156667456030846, 0.035401713103055954, -0.009159315377473831, -0.1502973735332489, 0.0648859366774559, 0.06370847672224045, -0.0610673725605011, 0.45808348059654236, 0.12162135541439056, 0.18311966955661774, -0.17130960524082184, -0.052855391055345535, 0.26698872447013855, 0.42053717374801636, 0.1582687348127365, -0.21067176759243011, -0.03816818445920944, -0.12318314611911774, 0.049021072685718536, -0.015624377876520157, 0.2213742434978485, 0.4253239929676056, -0.5784273743629456, 0.1935417652130127, -0.05686634033918381, -0.084373839199543, 0.21043092012405396, 0.31092119216918945, 0.1177259311079979, -0.013933144509792328, -0.23766832053661346, 0.35574111342430115, 0.09309479594230652, -0.2765215039253235, -0.33369767665863037, 0.3342477083206177, 0.1817426085472107, 0.08655039966106415, 0.145135298371315, 0.2989424169063568, 0.1473626047372818, -0.08340467512607574, -0.40747225284576416, 0.09183647483587265, -0.35905006527900696, -0.07375961542129517, -0.06203088536858559, 0.08488473296165466, 0.1516232043504715, 0.2963295578956604, 0.19410273432731628, 0.09192109107971191, 0.22366806864738464, -0.2300306260585785, 0.4226287007331848, -0.30917641520500183, 0.046397048979997635, 0.09825912863016129, -0.13583925366401672, -0.2872789204120636, 0.31688225269317627, 0.23316195607185364, -0.09688084572553635, 0.0004911641008220613, 0.17558860778808594, -0.004872728139162064, -0.27794674038887024, 0.13025148212909698, 0.06347040832042694, -0.15819208323955536, -0.3520928919315338, 0.12813962996006012, 0.28513145446777344, 0.5370110869407654, -0.14220397174358368, 0.051480092108249664, 0.007765758316963911, 0.17059621214866638, -0.047978319227695465, -0.1973259150981903, -0.12783028185367584, 0.36618009209632874, -0.07070303708314896, -0.11906913667917252, -0.06482604146003723, -0.003475077683106065, 0.03430706262588501, -0.29631975293159485, 0.22667889297008514, 0.1242562010884285, 0.2280450314283371, 0.1167365238070488, 0.04041454941034317, -0.014302789233624935, 0.18064860999584198, -0.6749418377876282, 0.05094515159726143, -0.02776484750211239, 0.22534576058387756, 0.03907995671033859, 0.038910120725631714, 0.0949636697769165, 0.14755643904209137, 0.24222224950790405, 0.09812691807746887, -0.10641299933195114, 0.14962856471538544, -0.195618137717247, -0.25761324167251587, -0.3645716905593872, -0.0022742252331227064, -0.18603408336639404, 0.027192318812012672, -0.09905270487070084, -0.3886701166629791, 0.30782562494277954, 0.6006301045417786, -0.032323628664016724, -0.06313560903072357, -0.3221796751022339, -0.062425799667835236, 0.17795103788375854, 0.3176772892475128, 0.11426779627799988, -0.029709136113524437, 0.21418848633766174, 0.17022663354873657, -0.06489842385053635, -0.19433017075061798, 0.021833978593349457, -0.17059706151485443, 0.3728632628917694, 0.5000660419464111, 0.22910965979099274, -0.06724255532026291, -0.18320949375629425, -0.44639649987220764, -0.28550592064857483, 0.03260430693626404, -0.14423862099647522, 0.06412266939878464, 0.43279168009757996, -0.3634900450706482, -0.6434280276298523, -0.11467235535383224, 0.27894124388694763, 0.15134425461292267, -0.2942577004432678, -0.20032361149787903, -0.009385041892528534, -0.10191771388053894, 0.12581004202365875, -0.02744120918214321, 0.10601568222045898, 0.35339248180389404, 0.09027714282274246, -0.3309023082256317, -0.2161332666873932, -0.06567351520061493, 0.13445521891117096, 0.204412579536438, -0.2054312378168106, 0.25802019238471985, -0.27602577209472656, -0.04437686502933502, -0.06899525970220566, -0.23812755942344666, 0.44105860590934753, -0.3557792901992798, 0.1191462054848671, -0.13242965936660767, 0.12633958458900452, -0.16053956747055054, -0.05631618946790695, 0.155707448720932, 0.09802506119012833, -0.17909254133701324, -0.07359286397695541, -0.06416776031255722, -0.3275492489337921, -0.2052321881055832, -0.14007842540740967, 0.11328548192977905, -0.22995616495609283, 0.10808410495519638, 0.23087146878242493, 0.20998379588127136, 0.31727299094200134, 0.2715466022491455, -0.057766739279031754, -0.15887771546840668, -0.0830475315451622, -0.27114954590797424, 0.22444632649421692, 0.2250899374485016, -0.21467125415802002, -0.38291388750076294, -0.0052087013609707355, -0.12171174585819244, 0.4685303270816803, 0.25765326619148254, -0.408906489610672, -0.027053261175751686, -0.0640614777803421, -0.40847745537757874, -0.03924184665083885, -0.08516693860292435, -0.011086043901741505, 0.017047012224793434, -0.20124134421348572, -0.45691514015197754, -0.12261298298835754, 0.1680278331041336, 0.10559312999248505, 0.24969494342803955, -0.09654722362756729, 0.14296363294124603, 0.21634650230407715, 0.25395476818084717, 0.2167961597442627, -0.2739427983760834, 0.2966919541358948, -0.08248429745435715, 0.5348895788192749, 0.11233071237802505, -0.09613259881734848, 0.16252289712429047, 0.09803277254104614, 0.01159750297665596, 0.12668363749980927, -0.19127289950847626, -0.5865309238433838, -0.11115308851003647, 0.273896187543869, -0.5363723039627075, -0.3821747601032257, -0.0860481709241867, 0.13189293444156647, 0.005788952112197876, 0.1163811907172203, 0.4895443618297577, 0.09681641310453415, 0.09623528271913528, -0.11307695508003235, -0.03477967157959938, 0.21535880863666534, 0.02855081483721733, -0.06723693758249283, -0.12219969928264618, -0.07117151468992233, 0.16235770285129547, -0.012166337110102177, 0.4387287199497223, -0.005011597648262978, -0.3948154151439667, 0.1433407962322235, -0.23554778099060059, 0.49414265155792236, -0.16876880824565887, 0.05868576467037201, 0.08539330959320068, -0.11724507063627243, -0.07943559437990189, 0.18114173412322998, -0.24040140211582184, 0.03064318373799324, -0.17630819976329803, -0.061043012887239456, -0.19140806794166565, -0.10860828310251236, 0.29928722977638245, 0.16962091624736786, -0.03800421953201294, -0.00948818027973175, -0.15894217789173126, -0.4129020571708679, -0.22562521696090698, -0.28131741285324097, -0.022327637299895287, -0.04923608899116516, 0.018734538927674294, -0.1480012983083725, -0.11851124465465546, -0.16653229296207428, 0.20981691777706146, 0.23925508558750153, 0.21898020803928375, 0.10939200967550278, 0.043521661311388016, 0.47593191266059875, 0.2861022651195526, 0.00784335657954216, 0.629414439201355, 0.29128575325012207, -0.15384548902511597, 0.43677279353141785, -0.32056885957717896, 0.14874933660030365, 0.46172192692756653, -0.06365017592906952, -0.32183218002319336, 0.28981325030326843, -0.004002129193395376, -0.4775966703891754, 0.395352303981781, 0.38292041420936584, -0.04470134899020195, -0.3793390393257141, -0.05191639065742493, 0.19562019407749176, -0.25092610716819763, -0.06941155344247818, 0.10842518508434296, 0.17699287831783295, -0.14067374169826508, 0.4841528832912445, 0.34437283873558044, 0.5736188888549805, -0.11881779134273529, 0.20322096347808838, 0.1891171634197235, 0.1863722950220108, 0.2679421305656433, 0.151911199092865, 0.39720356464385986, -0.08091601729393005, -0.22319987416267395, -0.03417094051837921, 0.04636843129992485, 0.11752738803625107, 0.10889741778373718, -0.0650712102651596, 0.04213671386241913, 0.47068777680397034, 0.15454499423503876, 0.1277439147233963, -0.08878236263990402, 0.026464687660336494, 0.00223431340418756, 0.43250972032546997, 0.2784593999385834, 0.053433921188116074, 0.002959047444164753, 0.05883564054965973, -0.2866687476634979, -0.05856369063258171, -0.07380498945713043, 0.02273956686258316, 0.3206709623336792, -0.09077844023704529, 0.01828690618276596, -0.27981773018836975, -0.456004798412323, -0.24881961941719055, 0.051780350506305695, -0.048630908131599426, -0.13693150877952576, -0.09944725036621094, 0.13197454810142517, 0.08473899215459824, -0.2265850156545639, -0.10455311089754105, -0.25943684577941895, 0.3094817101955414, 0.06533343344926834, -0.017108159139752388, -0.09727928042411804, 0.1971820443868637, 0.011274789460003376, -0.13675741851329803, 0.07611719518899918, -0.20230868458747864, -0.061071936041116714, 0.16096827387809753, 0.15788933634757996, -0.334907203912735, 0.02689078077673912, 0.1871010810136795, -0.20515361428260803, 0.0692608430981636, 0.37179458141326904, 0.10199066996574402, -0.18228034675121307, -0.11320116370916367, 0.20933878421783447, 0.007668252568691969, -0.1478423923254013, 0.37953171133995056, 0.04340039938688278, -0.18129850924015045, -0.3670825958251953, -0.30253955721855164, 0.11383143067359924, -0.36441782116889954, 0.1460311859846115, -0.22281961143016815, 0.09167852252721786, 0.13401997089385986, 0.17471764981746674, -0.055890511721372604, -0.300624817609787, -0.2589971721172333, -0.1277858465909958, -0.03373861685395241, 0.26193979382514954, -0.27455195784568787, 0.2781202495098114, -0.22513064742088318, 0.1116059347987175, -0.04529210925102234, 0.06680590659379959, -0.3810885548591614, -0.02050871215760708, -0.2221192866563797, 0.21868270635604858, -0.09863203018903732, -0.034644514322280884, 0.007836863398551941, 0.09597054123878479, 0.34933653473854065, 0.31665343046188354, -0.1674272119998932, -0.22435984015464783, -0.06744787842035294, 0.07010331004858017, 0.12146035581827164, -0.04507008194923401, 0.1657639890909195, -0.2437323033809662, -0.18839949369430542, -0.2499101161956787, -0.06089828908443451, -0.1376664936542511, -0.19021576642990112, 0.1399214267730713, 0.0162394717335701, 0.03227713331580162, 0.40116238594055176, -0.34662529826164246, 0.01999148726463318, 0.45444515347480774, 0.09696625918149948, -0.10182396322488785, 0.11813671141862869, 0.04067428782582283, 0.32076311111450195, 0.10618887096643448, -0.03348059579730034, -0.1119844913482666, 0.5369054675102234, -0.12201406806707382, 0.277123361825943, 0.13049480319023132, 0.5154079794883728, 0.3055487275123596, -0.06509962677955627, -0.24623818695545197, -0.0030956007540225983, 0.2611868381500244, -0.13888126611709595, 0.03991710767149925, 0.1477363556623459, -0.2021944522857666, 0.22743023931980133, 0.457013875246048, 0.08881969749927521, 0.17664511501789093, 0.17219696938991547, -0.02665228582918644, 0.25694459676742554, -0.25958967208862305, 0.11201171576976776, 0.3198448717594147, -0.06933897733688354, 0.057891130447387695, 0.24900366365909576, 0.17630994319915771, 0.034960322082042694, 0.7515878081321716, -0.27589988708496094, 0.22070924937725067, -0.23237712681293488, 0.16133010387420654, -0.1100725531578064, -0.15797019004821777, 0.24953436851501465, -0.06501467525959015, 0.1439310610294342, 0.3839974105358124, -0.13698868453502655, -0.3768429756164551, 0.12339704483747482, -0.08688884973526001, -0.16916561126708984, 0.19991303980350494, 0.0012002618750557303, 0.1396293342113495, -0.260892778635025, -0.12254607677459717, -0.15339045226573944, -0.004416016861796379, 0.29058268666267395, -0.17529579997062683, 0.31647989153862, 0.0803786888718605, 0.03240785002708435, -0.05354791507124901, -0.08207568526268005, -0.32349538803100586, 0.20814993977546692, -0.13801461458206177, 0.43091899156570435, 0.13939915597438812, 0.017567498609423637, 0.4122120141983032, 0.14310164749622345, 0.1324821561574936, 0.12689410150051117, -0.17516739666461945, 0.11025199294090271, -0.2595064043998718, -0.4306817054748535, -0.2894183099269867, 0.2122570127248764, 0.012410609051585197, 0.16019269824028015, 0.42513346672058105, 0.18182151019573212, -0.1190832257270813, -0.15581810474395752, 0.11229027062654495, -0.14476336538791656, 0.003744210582226515, 0.10301238298416138, -0.38118699193000793, 0.1955699920654297, -0.1702696830034256, -0.3472461700439453, -0.43201127648353577, -0.36501526832580566, -0.010161271318793297, -0.31946370005607605, 0.1459643691778183, 0.0821198970079422, 0.11872495710849762, -0.3109244406223297, 0.4546639323234558, 0.11612079292535782, 0.33153051137924194, -0.16575446724891663, -0.10244792699813843, -0.16482967138290405, 0.06515542417764664, -0.18739719688892365, -0.5280065536499023, -0.26798591017723083, 0.527018666267395, 0.36898931860923767, -0.06833931058645248, 0.3486548066139221, -0.05826626718044281, 0.4570537805557251, 0.10079819709062576, -0.23090685904026031, -0.3830578625202179, 0.11675652116537094, -0.03245018795132637, -0.0696675032377243, -0.3183087408542633, 0.1948687583208084, 0.0008926583104766905, 0.2720828652381897, 0.040816452354192734, -0.1970919519662857, -0.09549237787723541, -0.4114866256713867, 0.22762425243854523, 0.07926511764526367, 0.3517199158668518, -0.364525705575943, -0.17007644474506378, -0.1780943125486374, -0.20118530094623566, -0.27422505617141724, 0.2346436232328415, 0.25608301162719727, 0.5309063196182251, -0.17385834455490112, 0.17329354584217072, -0.057536620646715164, -0.07476601004600525, 0.11525195837020874, 0.3273012340068817, -0.10940003395080566, 0.3992849588394165, -0.3225115239620209, 0.0008225009078159928, 0.07686108350753784, 0.18059398233890533, 0.16075502336025238, 0.1520051509141922, -0.22329959273338318, -0.5641223788261414, 0.3832990825176239, -0.3874495029449463, -0.18170540034770966, 0.1972031146287918, -0.25373131036758423, -0.02924414537847042, 0.22800670564174652, -0.2473149299621582, 0.00337230390869081, 0.14610233902931213, -0.05396295338869095, -0.21177615225315094, 0.14444006979465485, 0.038607485592365265, -0.22899660468101501, 0.022852469235658646, 0.34719613194465637, 0.3959115743637085, -0.36616387963294983, -0.06209119036793709, -0.048802174627780914 ]