html_url
stringlengths
48
51
title
stringlengths
5
268
comment
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/888
Nested lists are zipped unexpectedly
Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`. See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details
I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ```
27
Nested lists are zipped unexpectedly I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ``` Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`. See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details
[ 0.22983808815479279, -0.46769365668296814, -0.10918628424406052, 0.3930582106113434, 0.011223278939723969, -0.0073929438367486, 0.24145394563674927, 0.04362594708800316, 0.17048244178295135, 0.12772119045257568, -0.1480693370103836, 0.43593499064445496, 0.23617592453956604, 0.29456809163093567, -0.06695269048213959, -0.09880327433347702, 0.2758640944957733, -0.07476748526096344, -0.19310013949871063, -0.11464742571115494, -0.313623309135437, 0.2664887011051178, -0.3605993390083313, 0.05519578233361244, 0.08430561423301697, -0.056815922260284424, -0.1831730604171753, 0.14511315524578094, 0.16575650870800018, -0.08426464349031448, 0.5213050246238708, 0.03798091784119606, -0.08861979097127914, 0.505612850189209, -0.00011407573038013652, 0.2123832404613495, 0.19921816885471344, -0.058528006076812744, -0.24967460334300995, -0.34811216592788696, 0.00217309407889843, -0.42330050468444824, 0.19105850160121918, -0.27396160364151, -0.057896923273801804, -0.2668321132659912, -0.027284452691674232, -0.4505228102207184, 0.5443425178527832, 0.06471089273691177, 0.20450884103775024, 0.28377896547317505, 0.02361307479441166, 0.04814406484365463, 0.2327335625886917, 0.02051394060254097, -0.1190875917673111, 0.015384410507977009, 0.15558327734470367, 0.07093944400548935, 0.11597000807523727, -0.018671732395887375, 0.042326536029577255, 0.0694480761885643, 0.26141345500946045, 0.46439608931541443, -0.2956531345844269, -0.45149531960487366, -0.31632351875305176, 0.25303518772125244, 0.056080009788274765, -0.1317228376865387, -0.3857865035533905, -0.5079483389854431, -0.31579142808914185, -0.47941726446151733, 0.23641912639141083, 0.14485253393650055, -0.09737417846918106, 0.21249420940876007, -0.1825151890516281, 0.17445804178714752, -0.06920202076435089, 0.3213106095790863, -0.17477352917194366, 0.3411729037761688, -0.23863713443279266, 0.1546948403120041, -0.10075706988573074, -0.11286712437868118, 0.149595245718956, -0.45613744854927063, 0.24088099598884583, 0.12730176746845245, -0.18510547280311584, -0.04078777879476547, 0.05415843054652214, -0.3483130633831024, 0.06750669330358505, 0.10403628647327423, -0.008132493123412132, 0.1614094078540802, -0.3872070610523224, -0.06633224338293076, 0.29792508482933044, 0.2695170044898987, -0.08650874346494675, -0.029597477987408638, -0.14834992587566376, 0.29683324694633484, 0.11758201569318771, 0.015988999977707863, 0.2882221043109894, 0.06998562067747116, -0.13799776136875153, -0.030700193718075752, 0.3500604033470154, 0.1445540189743042, -0.3362065255641937, 0.10176121443510056, -0.47386831045150757, -0.07496584951877594, -0.03369717672467232, 0.06388787180185318, -0.3206654191017151, 0.15250086784362793, -0.007156530395150185, 0.2471446841955185, -0.13455796241760254, 0.34465962648391724, -0.2371739149093628, -0.19042819738388062, -0.06528469175100327, 0.06634964793920517, -0.04209805279970169, -0.09537894278764725, 0.16548748314380646, 0.21257935464382172, 0.18123355507850647, -0.26764383912086487, 0.0392451211810112, 0.015230133198201656, 0.3261403739452362, 0.1474464237689972, -0.10082107037305832, 0.349975049495697, 0.22308850288391113, -0.18122892081737518, -0.1014808937907219, 0.05665633827447891, -0.5195724964141846, -0.05185062065720558, 0.15812735259532928, 0.13382002711296082, -0.43782779574394226, 0.09688641130924225, -0.08043115586042404, 0.1471613347530365, 0.3309531807899475, 0.36691465973854065, 0.03437375649809837, 0.03424999117851257, -0.5084051489830017, -0.22939054667949677, 0.00032671846565790474, -0.07389391958713531, -0.20717966556549072, -0.026230186223983765, -0.10192669183015823, 0.07165775448083878, 0.2804761826992035, 0.35139521956443787, -0.1295994222164154, 0.2629663944244385, -0.3151409924030304, 0.26500341296195984, 0.10253293812274933, 0.017197106033563614, -0.3716726005077362, 0.2160811424255371, -0.15127047896385193, 0.5964808464050293, 0.016699619591236115, 0.009715770371258259, 0.0972152128815651, -0.18604007363319397, 0.40227988362312317, 0.1987629532814026, 0.335321843624115, -0.20426103472709656, -0.12044820934534073, -0.08450000733137131, 0.4401877522468567, -0.2315007746219635, -0.5066458582878113, 0.0658126026391983, -0.2022053599357605, -0.053566668182611465, 0.2737060487270355, -0.08461806923151016, -0.022978516295552254, 0.42625582218170166, -0.050876546651124954, 0.17802654206752777, 0.006601582746952772, 0.05734305828809738, -0.5211536288261414, 0.17285116016864777, -0.1369989663362503, -0.1579049676656723, -0.37929344177246094, -0.10826145857572556, -0.11523158848285675, 0.3877604603767395, -0.18136608600616455, -0.08647613227367401, 0.15967027842998505, 0.15048907697200775, -0.07181909680366516, -0.12627160549163818, -0.10379786044359207, 0.1233520582318306, 0.07140316069126129, 0.09061755985021591, -0.6953415274620056, 0.3920571804046631, 0.27893805503845215, 0.05484826862812042, -0.21763572096824646, 0.231730654835701, -0.04565838724374771, -0.2940315902233124, 0.0523771233856678, 0.22494424879550934, 0.23389598727226257, -0.15886549651622772, -0.42497578263282776, 0.029803868383169174, 0.3272545337677002, -0.01993437111377716, -0.1682199239730835, 0.41484588384628296, -0.07353012263774872, -0.08609752357006073, -0.42207279801368713, 0.4835677444934845, -0.09402411431074142, 0.4029446244239807, -0.1599099338054657, -0.06250570714473724, 0.048062101006507874, 0.18928277492523193, -0.20367535948753357, -0.20968951284885406, -0.05292198061943054, 0.2995164096355438, 0.1877165585756302, 0.27527865767478943, -0.24358204007148743, 0.44708988070487976, 0.7448374032974243, 0.035088539123535156, -0.07206787914037704, 0.27816182374954224, -0.019539574161171913, -0.24792014062404633, -0.0599321611225605, 0.09525951743125916, 0.3652766942977905, 0.0646609291434288, 0.2216389924287796, 0.11589206010103226, -0.12297403067350388, -0.25365883111953735, -0.007781089749187231, 0.26398998498916626, 0.15660223364830017, -0.010072242468595505, 0.28188642859458923, -0.07502370327711105, -0.25094738602638245, 0.11762961000204086, -0.012141894549131393, 0.0026538793463259935, -0.15096138417720795, 0.337189644575119, -0.3686795234680176, 0.011347560212016106, 0.05871044099330902, -0.5471538305282593, -0.09465943276882172, -0.3144315779209137, -0.12469872832298279, 0.2293178141117096, -0.03630400821566582, -0.021085703745484352, 0.5416876077651978, 0.007450817618519068, 0.2658099830150604, 0.05521800369024277, -0.0712556466460228, 0.0766027569770813, -0.23920577764511108, 0.07236629724502563, -0.07379667460918427, -0.21919915080070496, -0.019730012863874435, 0.2536245882511139, -0.21254046261310577, -0.21881508827209473, -0.20200389623641968, 0.0020512593910098076, -0.4176458418369293, 0.28686466813087463, 0.12449724972248077, 0.3577864170074463, 0.08635292202234268, -0.13630586862564087, 0.028689933940768242, 0.7422841787338257, -0.29044225811958313, 0.033361002802848816, 0.15720470249652863, -0.013065044768154621, -0.27049916982650757, -0.3338177502155304, -0.20838510990142822, -0.06913463026285172, 0.6958266496658325, 0.23053495585918427, 0.13449569046497345, 0.19840770959854126, -0.060645218938589096, -0.20142515003681183, 0.3159996271133423, -0.1195727214217186, -0.2812664210796356, -0.31806138157844543, 0.29089227318763733, -0.15029306709766388, -0.43292391300201416, -0.17166176438331604, -0.23204068839550018, 0.16322489082813263, -0.05224636569619179, -0.2677067220211029, -0.05195913463830948, -0.33534082770347595, 0.26345670223236084, 0.11473353952169418, -0.018323760479688644, 0.32300901412963867, 0.005467921961098909, 0.0031284589786082506, -0.09694898128509521, -0.08483423292636871, 0.25130191445350647, 0.031140681356191635, 0.182737797498703, 0.14954033493995667, 0.28817903995513916, 0.06946614384651184, 0.37160784006118774, 0.4487588703632355, -0.05758809670805931, 0.07087434828281403, -0.2050475925207138, 0.05901513621211052, -0.35775265097618103, -0.028577346354722977, -0.3248996436595917, -0.09132615476846695, -0.11345522850751877, 0.14707441627979279, -0.04454753175377846, -0.14247854053974152, 0.22771619260311127, 0.240680530667305, 0.05880390852689743, -0.17939317226409912, 0.05935174971818924, -0.13863138854503632, -0.0676756501197815, 0.1251193732023239, 0.10052042454481125, -0.25914615392684937, -0.2106325924396515, -0.1890939176082611, -0.27044788002967834, 0.32280233502388, -0.1335505098104477, -0.4832400977611542, -0.3275099992752075, -0.29353848099708557, 0.08657459914684296, 0.06585893779993057, 0.3359496295452118, 0.12101253122091293, -0.33325958251953125, 0.1720491349697113, 0.004210073500871658, 0.6275283098220825, 0.18353484570980072, -0.10389149188995361, 0.23929400742053986, -0.37928423285484314, -0.559338390827179, -0.2233465611934662, -0.3037457764148712, 0.05824348330497742, -0.07339600473642349, 0.7011975049972534, -0.4322921931743622, -0.2735143005847931, -0.15425658226013184, 0.022594362497329712, -0.18238471448421478, -0.11031955480575562, -0.17269356548786163, -0.038367558270692825, -0.08098496496677399, -0.3157391846179962, 0.12110310792922974, 0.02206261083483696, -0.2013716697692871, -0.5030108690261841, -0.03026982583105564, -0.14972208440303802, 0.03272803872823715, -0.1705443561077118, 0.2045021802186966, 0.18523824214935303, -0.05334290489554405, 0.18296296894550323, 0.39058810472488403, -0.3235557973384857, 0.5041462779045105, 0.16338686645030975, -0.4202212691307068, -0.05676962062716484, -0.052258145064115524, -0.038741063326597214, 0.17073386907577515, -0.27894917130470276, 0.34131380915641785, -0.2047436237335205, 0.185743048787117, -0.42332661151885986, 0.02619018405675888, 0.5656725168228149, 0.16400472819805145, -0.18570558726787567, -0.44884175062179565, 0.46330803632736206, -0.036238741129636765, -0.23612360656261444, 0.21302148699760437, -0.477150022983551, -0.22495047748088837, 0.08511753380298615, -0.09771621972322464, 0.6535152792930603, -0.014114675112068653, 0.3276808559894562, 0.7303428053855896, 0.2532285451889038, 0.6516911387443542, -0.20090186595916748, 0.10172615200281143, -0.037872184067964554, -0.25535711646080017, -0.23215211927890778, -0.09909269213676453, -0.24376864731311798, 0.07220958918333054, -0.16714829206466675, 0.32491910457611084, -0.20173928141593933, -0.09809098392724991, -0.10916657745838165, -0.2246541678905487, 0.36767762899398804, -0.19161970913410187, -0.24702753126621246, 0.09235923737287521, 0.14395438134670258, 0.2766932249069214, -0.02904682233929634, -0.1788528710603714, -0.3586543798446655, -0.08180202543735504, 0.01690121926367283, 0.05191899836063385, -0.04198683798313141, 0.29307299852371216, 0.5869743824005127, -0.08690045773983002, -0.15372289717197418, 0.3690280318260193, 0.14239069819450378, -0.10047311335802078, -0.09462162107229233, -0.1521722674369812, -0.21621173620224, 0.11406965553760529, 0.14033415913581848, -0.19924387335777283, 0.18698899447917938, 0.1408907175064087, -0.06719611585140228, -0.058378830552101135, -0.12352646142244339, -0.028111059218645096, -0.15394222736358643, 0.3628598749637604, -0.17322854697704315, -0.35801029205322266, -0.1335517168045044, 0.1337675154209137, -0.07433050125837326, 0.009340994991362095, 0.14063817262649536, -0.07206393033266068, -0.1272352635860443, 0.17935335636138916, -0.17114569246768951, -0.38433384895324707, -0.10063193738460541, 0.453182190656662, 0.3465636968612671, 0.2332887351512909, 0.5220942497253418, 0.2117370069026947, -0.013121322728693485, -0.04133632779121399, 0.10719820857048035, 0.2450931817293167, 0.04290815815329552, 0.2102348506450653, -0.22966276109218597, 0.0036054493393749, -0.1185465157032013, 0.4313838481903076, 0.14014317095279694, -0.006807354278862476, -0.3198302388191223, -0.22560067474842072, -0.11995923519134521, 0.11462299525737762, 0.13805295526981354, 0.08693215996026993, -0.3789413571357727, 0.12099874764680862, 0.01727328449487686, -0.29595375061035156, -0.24424917995929718, 0.04403356835246086, -0.17470009624958038, 0.07344017922878265, 0.16506297886371613, -0.06725223362445831, 0.25270986557006836, 0.07984848320484161, 0.14228574931621552, 0.1194663867354393, -0.21475499868392944, -0.2483881711959839, -0.07793883234262466, 0.024730823934078217, -0.11276637762784958, -0.11586234718561172, 0.04022062197327614, 0.07329291105270386, 0.002465099561959505, -0.2223985642194748, 0.0620977021753788, 0.0523645356297493, 0.10281448066234589, 0.0934443399310112, 0.11878982186317444, 0.1133367195725441, -0.0887405276298523, 0.02199467085301876, -0.11390652507543564, 0.3333355188369751, -0.08804280310869217, -0.008274443447589874, -0.3272548317909241, -0.03759755939245224, -0.3286816477775574, -0.004741199314594269, -0.08733838051557541, 0.051862895488739014, 0.3860621750354767, -0.1540910005569458, -0.17579710483551025, -0.14739425480365753, 0.3297916352748871, 0.41876959800720215, -0.18397673964500427, -0.11483398079872131, -0.31605759263038635, 0.15244744718074799, -0.04300165921449661, -0.19445179402828217, 0.2041417956352234, 0.414258748292923, 0.047866467386484146, 0.3599613308906555, 0.07953770458698273, 0.1255013346672058, 0.010744240134954453, -0.20781543850898743, 0.0908517837524414, -0.0719289630651474, 0.32820311188697815, 0.2948700785636902, -0.012540056370198727, 0.18776483833789825, 0.13932639360427856, -0.10762191563844681, 0.13662166893482208, 0.5006199479103088, 0.44555047154426575, 0.15728385746479034, 0.4649832248687744, 0.25764039158821106, 0.16203197836875916, -0.39606210589408875, -0.0934358686208725, 0.21196380257606506, -0.006873567122966051, 0.11351413279771805, 0.24205651879310608, 0.1350424587726593, 0.03175896033644676, -0.2465144246816635, -0.07105109095573425, 0.13779832422733307, 0.0352618508040905, -0.39077532291412354, 0.08548948168754578, -0.023465607315301895, -0.07257843017578125, -0.19070212543010712, -0.024769866839051247, -0.3372780978679657, 0.25776106119155884, -0.10212238878011703, 0.16907744109630585, -0.17884239554405212, 0.0724068358540535, -0.03903302922844887, 0.16087499260902405, -0.011252211406826973, 0.39894431829452515, 0.32080376148223877, -0.16319318115711212, 0.009652681648731232, 0.005760703235864639, 0.168915793299675, 0.07398757338523865, -0.002523173112422228, 0.18512360751628876, 0.08491905778646469, -0.16913467645645142, -0.09216849505901337, 0.1738833785057068, -0.2618691325187683, -0.12276984751224518, 0.32155221700668335, 0.18026159703731537, -0.09504672884941101, 0.3788059651851654, 0.18229089677333832, 0.3223473131656647, -0.41412684321403503, 0.3234875202178955, -0.3690630793571472, 0.06902070343494415, -0.13747918605804443, -0.21402840316295624, -0.4857172667980194, -0.1849493682384491, 0.4549839496612549, 0.062296342104673386, 0.3871013820171356, 0.07716701924800873, 0.10508984327316284, -0.1980639547109604, 0.566041886806488, 0.15628743171691895, 0.0848105400800705, 0.2197214812040329, -0.016659947112202644, -0.128570094704628, 0.19372297823429108, 0.02821284346282482, 0.07469182461500168, 0.04112515226006508, 0.20855724811553955, -0.01267961785197258, 0.19190919399261475, -0.2487945258617401, -0.31452125310897827, -0.23960024118423462, 0.12383949756622314, -0.6030550003051758, -0.21362698078155518, 0.05460997298359871, 0.13221079111099243, 0.022782156243920326, -0.13036854565143585, 0.31845080852508545, -0.05312297120690346, -0.04057812690734863, 0.005519222933799028, 0.2425614446401596, -0.3423749506473541, 0.18141014873981476, 0.06021549925208092, 0.3718811571598053, -0.14782103896141052, -0.02522716298699379, -0.12647074460983276, -0.25781184434890747, -0.13136310875415802, 0.07531384378671646, 0.5303559303283691, -0.10085274279117584, 0.3721916377544403, -0.16195304691791534, 0.26645052433013916, -0.02188328467309475, -0.1117807999253273, 0.24698235094547272, -0.44014865159988403, -0.32895544171333313, 0.25834694504737854, -0.2655962407588959, 0.12131407111883163, 0.1467086374759674, 0.6770501732826233, -0.009260238148272038, 0.1449609100818634, 0.22927351295948029, -0.1296214759349823, 0.4818064868450165, -0.20918354392051697, -0.40573593974113464, 0.15188851952552795, -0.1456567794084549, 0.15262991189956665, -0.22122599184513092, -0.008383547887206078, -0.090432308614254, 0.4702814221382141, -0.3118603825569153, -0.30276212096214294, 0.02987741306424141, -0.04297832399606705, -0.08237142860889435, -0.24349024891853333, 0.3457027077674866, 0.12186364829540253, -0.2046685367822647, 0.3793981969356537, -0.22598284482955933 ]
https://github.com/huggingface/datasets/issues/888
Nested lists are zipped unexpectedly
Thanks. This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ```
28
Nested lists are zipped unexpectedly I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ``` Thanks. This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
[ 0.218467578291893, -0.317218154668808, -0.154552161693573, 0.4096401035785675, 0.01980806700885296, 0.0022652377374470234, 0.18132208287715912, 0.12848228216171265, 0.12042009085416794, 0.11076238006353378, -0.089426688849926, 0.5233141183853149, 0.33097410202026367, 0.20519134402275085, -0.10971160233020782, -0.0653214380145073, 0.3139225244522095, -0.05463330075144768, -0.02898242138326168, -0.07130450010299683, -0.31602758169174194, 0.2633286118507385, -0.37391743063926697, 0.04648701846599579, 0.1322619616985321, -0.05219101533293724, -0.25759750604629517, 0.3128821849822998, 0.10925858467817307, -0.07227536290884018, 0.4127611219882965, -0.07933785021305084, -0.10829514265060425, 0.40870201587677, -0.00011303026985842735, 0.15144246816635132, 0.23433415591716766, -0.10969033092260361, -0.22925609350204468, -0.2896880507469177, 0.1124606803059578, -0.4846196472644806, 0.11443903297185898, -0.25473830103874207, -0.03969753906130791, -0.2845834791660309, -0.1264146864414215, -0.6383928060531616, 0.4745346009731293, -0.12578393518924713, 0.2245388925075531, 0.2374022901058197, 0.06650903075933456, 0.0422537662088871, 0.2652527689933777, -0.08348151296377182, -0.0373358316719532, 0.10731220990419388, 0.2651542127132416, -0.010515605099499226, 0.14353260397911072, -0.08464798331260681, -0.10272930562496185, 0.04347530007362366, 0.14240342378616333, 0.3884352147579193, -0.36565470695495605, -0.4055752456188202, -0.31646522879600525, 0.13160595297813416, 0.12937721610069275, -0.08039181679487228, -0.33274686336517334, -0.4394012987613678, -0.34039467573165894, -0.43658533692359924, 0.14432308077812195, 0.29442545771598816, -0.03516111150383949, 0.20338881015777588, -0.14298038184642792, 0.14549702405929565, 0.026514163240790367, 0.3943553864955902, -0.0928066149353981, 0.5669502019882202, -0.1781393140554428, 0.20753361284732819, -0.1415400505065918, -0.09789227694272995, 0.32173290848731995, -0.5392987132072449, 0.11955372989177704, 0.08275336027145386, -0.0811445564031601, 0.028947189450263977, -0.025487666949629784, -0.2950788140296936, 0.020924676209688187, 0.24300768971443176, 0.00975812878459692, 0.09698085486888885, -0.24644039571285248, -0.09636320173740387, 0.34391629695892334, 0.23050659894943237, -0.15677735209465027, 0.04801107943058014, -0.19938924908638, 0.24592147767543793, 0.06420563161373138, -0.07430244237184525, 0.33138951659202576, -0.018140776082873344, 0.0041832695715129375, 0.09408248215913773, 0.32470938563346863, -0.00661276001483202, -0.3000761866569519, -0.017223099246621132, -0.6085447669029236, -0.12700603902339935, -0.015708912163972855, -0.021210944280028343, -0.2186056226491928, 0.23459452390670776, -0.06605704873800278, 0.38466063141822815, -0.1284174770116806, 0.21589656174182892, -0.19649463891983032, -0.1969263106584549, -0.14036023616790771, 0.04982846602797508, -0.022842949256300926, -0.07315726578235626, 0.1988917887210846, 0.3086189329624176, 0.09859903156757355, -0.3232753574848175, 0.06425559520721436, 0.05886342376470566, 0.2998340427875519, 0.07703116536140442, 0.04181831330060959, 0.33012086153030396, 0.2961992621421814, -0.17138031125068665, -0.08284736424684525, 0.19172801077365875, -0.6464293003082275, -0.06232384592294693, 0.13489611446857452, 0.1534038782119751, -0.4481496214866638, 0.04457968473434448, 0.03835935518145561, -0.03740464895963669, 0.3544827103614807, 0.24287982285022736, 0.014559073373675346, 0.09948171675205231, -0.3080235719680786, -0.1964317262172699, -0.1299648880958557, -0.06101583316922188, -0.28429412841796875, 0.11406148225069046, -0.24709674715995789, 0.1278834044933319, 0.4151366055011749, 0.16777905821800232, -0.15441180765628815, 0.21560707688331604, -0.3377678394317627, 0.292314738035202, 0.12592177093029022, 0.13458722829818726, -0.41449692845344543, 0.30280444025993347, -0.18075348436832428, 0.5522428154945374, 0.038271334022283554, -0.005897123832255602, -0.1193743348121643, -0.13126708567142487, 0.4894067347049713, 0.1428719460964203, 0.39699819684028625, -0.19767586886882782, -0.23311828076839447, -0.03538685664534569, 0.47138646245002747, -0.1843082308769226, -0.5262547135353088, 0.14787894487380981, -0.1520499289035797, -0.16896693408489227, 0.34518060088157654, -0.12723389267921448, 0.03505660593509674, 0.4289444088935852, 0.004361622501164675, -0.00037805738975293934, -0.02413027174770832, 0.08164636790752411, -0.335589736700058, 0.09892235696315765, -0.22584602236747742, -0.2860860228538513, -0.4463808834552765, -0.018376819789409637, -0.14772194623947144, 0.2564419209957123, -0.17006655037403107, -0.030860351398587227, 0.17361509799957275, 0.20906071364879608, -0.11638852208852768, -0.3199605643749237, -0.010587800294160843, 0.01950431987643242, 0.3265605866909027, 0.09761330485343933, -0.6830200552940369, 0.4054059088230133, 0.28759297728538513, -0.01138533279299736, -0.1458498239517212, 0.06954362243413925, 0.1524823158979416, -0.2553291916847229, 0.018016565591096878, 0.320751428604126, 0.15931150317192078, -0.18358169496059418, -0.34262701869010925, -0.1545606255531311, 0.15208570659160614, -0.024511490017175674, 0.024227891117334366, 0.5047951936721802, -0.06884046643972397, -0.03771982714533806, -0.27108579874038696, 0.5477914214134216, -0.25547781586647034, 0.43147990107536316, -0.21039609611034393, -0.054799895733594894, -0.0019469567341729999, 0.1101340726017952, -0.14516519010066986, -0.17827655375003815, -0.05194949358701706, 0.36978086829185486, 0.13206003606319427, 0.22170570492744446, -0.12725381553173065, 0.5368794798851013, 0.6226248145103455, 0.014943412505090237, -0.10852323472499847, 0.23665620386600494, -0.01727074570953846, -0.23394976556301117, -0.08270296454429626, 0.13183030486106873, 0.4769054353237152, 0.16632413864135742, 0.23832818865776062, 0.06337370723485947, -0.04665718972682953, -0.29883792996406555, 0.041532792150974274, 0.2948475480079651, 0.1417437642812729, 0.018941454589366913, 0.24715954065322876, -0.1103719100356102, -0.189018115401268, 0.1310890167951584, -0.06761985272169113, -0.05555073171854019, -0.18472778797149658, 0.4284864366054535, -0.41488081216812134, 0.12867067754268646, 0.008958880789577961, -0.6086061596870422, -0.12592794001102448, -0.36743080615997314, -0.09627683460712433, 0.16301783919334412, -0.03327234461903572, -0.07937285304069519, 0.318337619304657, -0.05088208243250847, 0.20746664702892303, 0.03442753106355667, -0.09795364737510681, 0.05492331087589264, -0.3040454387664795, 0.11654487997293472, -0.09927598387002945, -0.17880454659461975, -0.13281086087226868, 0.2860112488269806, -0.06282934546470642, -0.09838087111711502, -0.1677880883216858, -0.06133335828781128, -0.3298398554325104, 0.43589338660240173, -0.00530358636751771, 0.27402785420417786, 0.14201383292675018, -0.16843314468860626, -0.05738823488354683, 0.8114555478096008, -0.22420044243335724, -0.05300116539001465, 0.1051102802157402, -0.12211094796657562, -0.26190170645713806, -0.2897171080112457, -0.24179042875766754, -0.0876348540186882, 0.544813334941864, 0.23490305244922638, 0.06521326303482056, 0.012659912928938866, -0.09158409386873245, -0.4041171073913574, 0.4660039246082306, -0.20621544122695923, -0.29371875524520874, -0.3625420033931732, 0.38377147912979126, -0.17041976749897003, -0.3073127269744873, -0.14110493659973145, -0.23179711401462555, 0.20737577974796295, -0.05514974892139435, -0.2060275375843048, 0.06941095739603043, -0.290857195854187, 0.17785178124904633, 0.0170106403529644, 0.015463591553270817, 0.252792626619339, 0.11662675440311432, -0.02286679670214653, -0.12349410355091095, -0.08333180844783783, 0.13360531628131866, -0.11749934405088425, 0.31879013776779175, -0.014285624027252197, 0.16774268448352814, 0.015016145072877407, 0.24843773245811462, 0.37850871682167053, 0.11093534529209137, 0.17586290836334229, -0.1604476273059845, 0.04115259647369385, -0.2754456400871277, -0.033614400774240494, -0.48886844515800476, -0.06389759480953217, -0.1470773071050644, 0.10494989901781082, -0.03063235804438591, -0.2773483395576477, 0.20617078244686127, 0.05425987392663956, -0.06454550474882126, -0.12424778193235397, 0.06563380360603333, -0.13539382815361023, -0.02988995425403118, 0.15482786297798157, 0.07809183746576309, -0.286678671836853, -0.2804621160030365, -0.2260524034500122, -0.3523412048816681, 0.3581947982311249, -0.125172957777977, -0.5212160348892212, -0.3446735441684723, -0.06810223311185837, 0.2324882596731186, 0.015518220141530037, 0.24906256794929504, 0.17685140669345856, -0.37717270851135254, 0.0962262824177742, -0.0448237843811512, 0.5204251408576965, 0.22176049649715424, -0.03320414200425148, 0.326082319021225, -0.13752886652946472, -0.47867119312286377, -0.2850194573402405, -0.3057844936847687, 0.21254393458366394, -0.11465539783239365, 0.6859158873558044, -0.40321046113967896, -0.10479035973548889, -0.06628865748643875, 0.10852908343076706, -0.13283133506774902, -0.2047203779220581, -0.20618507266044617, -0.010784349404275417, -0.019001837819814682, -0.24658970534801483, 0.042860452085733414, 0.16728448867797852, -0.30294039845466614, -0.45079177618026733, 0.02026405744254589, -0.1985381841659546, 0.019310224801301956, -0.20843487977981567, 0.2844071388244629, 0.10697158426046371, -0.004723253194242716, 0.14851035177707672, 0.4633731245994568, -0.3736361861228943, 0.6574380993843079, 0.23145143687725067, -0.21348363161087036, -0.01995597407221794, -0.08278647065162659, 0.09313282370567322, 0.15651774406433105, -0.2462543249130249, 0.34248456358909607, -0.19023287296295166, 0.09401317685842514, -0.2823222279548645, -0.1878386288881302, 0.4364059567451477, 0.024759024381637573, -0.16641296446323395, -0.4040619432926178, 0.4862028658390045, -0.15261279046535492, -0.29207322001457214, 0.17256665229797363, -0.7546373605728149, -0.15074121952056885, 0.06666495651006699, -0.0745660811662674, 0.7946736216545105, 0.13339918851852417, 0.16289016604423523, 0.5988461971282959, 0.1569937914609909, 0.34403279423713684, -0.23016738891601562, 0.12906183302402496, -0.12002448737621307, -0.18316814303398132, -0.15182547271251678, -0.10168135911226273, -0.2299709916114807, 0.21756751835346222, -0.17132742702960968, 0.3684466481208801, -0.3066551387310028, -0.20795898139476776, -0.08208083361387253, -0.28849780559539795, 0.27631568908691406, -0.13973823189735413, -0.36777955293655396, 0.08314068615436554, 0.088959701359272, 0.18205659091472626, 0.016274040564894676, -0.22328579425811768, -0.40190669894218445, -0.18286427855491638, 0.16947145760059357, 0.18818603456020355, 0.07377152144908905, 0.23820731043815613, 0.5669974088668823, -0.09083852171897888, -0.2376578152179718, 0.23088735342025757, 0.03782167285680771, 0.008316823281347752, -0.05109255388379097, -0.08689498901367188, -0.04980828985571861, 0.10957126319408417, 0.139397531747818, -0.0793701559305191, 0.0019788844510912895, 0.14298732578754425, -0.1889209896326065, -0.03809232637286186, -0.13223838806152344, -0.0750022754073143, -0.26701974868774414, 0.3036192059516907, -0.06649821996688843, -0.49306946992874146, -0.0863877460360527, 0.16255706548690796, 0.09610708802938461, -0.04421486705541611, 0.14096088707447052, -0.05844849720597267, -0.06000133231282234, 0.21543076634407043, -0.20956602692604065, -0.38989025354385376, -0.1302577406167984, 0.48185333609580994, 0.3542090654373169, 0.3314029276371002, 0.5364958643913269, 0.11738233268260956, -0.005248041357845068, -0.06158895418047905, 0.177438423037529, 0.17317569255828857, 0.055557310581207275, 0.23084132373332977, -0.26145392656326294, 0.13894878327846527, 0.025560494512319565, 0.24954009056091309, 0.15380454063415527, 0.09332121163606644, -0.27478212118148804, -0.2578541934490204, -0.012397440150380135, 0.07527019828557968, 0.24699386954307556, 0.02641262859106064, -0.3694911301136017, 0.01665671542286873, -0.0655563548207283, -0.29434770345687866, -0.2588207721710205, 0.11872720718383789, -0.07350511848926544, 0.07066284120082855, 0.06329476833343506, -0.049891989678144455, 0.09830579161643982, 0.17550890147686005, 0.1788017302751541, 0.09733524173498154, -0.09398368746042252, -0.2423441857099533, -0.08931944519281387, 0.03993825986981392, -0.09944643825292587, -0.051298271864652634, 0.031225644052028656, 0.061943937093019485, 0.11776768416166306, -0.14081773161888123, -0.08007699251174927, -0.0501602441072464, 0.11515945941209793, 0.04947642236948013, 0.17524439096450806, 0.009220208041369915, -0.1670500785112381, 0.06506481021642685, -0.16281425952911377, 0.3521941900253296, -0.07341598719358444, 0.022996360436081886, -0.20476511120796204, -0.03578351065516472, -0.3333118259906769, -0.11818893998861313, -0.06016433984041214, 0.27368462085723877, 0.44233083724975586, -0.17544607818126678, -0.09912613779306412, -0.1710657924413681, 0.300239235162735, 0.46212106943130493, -0.10710642486810684, -0.05822249501943588, -0.42283743619918823, 0.18977008759975433, -0.03016524575650692, -0.22065015137195587, 0.04779740050435066, 0.40675029158592224, -0.011504463851451874, 0.3411339521408081, 0.0762355774641037, 0.004460104741156101, 0.18758441507816315, -0.1609860211610794, 0.21293678879737854, 0.06910629570484161, 0.2861248552799225, 0.44576549530029297, -0.01882324367761612, 0.1424776017665863, 0.19348479807376862, -0.18987618386745453, 0.07587438076734543, 0.4038380980491638, 0.43553829193115234, 0.10026367008686066, 0.540444016456604, 0.19175098836421967, -0.05077290162444115, -0.38685670495033264, -0.11489229649305344, 0.1924687623977661, 0.16131649911403656, 0.1440424919128418, 0.3425576686859131, 0.13288919627666473, -0.02334040217101574, -0.1878124624490738, -0.10280442237854004, 0.16399559378623962, 0.1770242303609848, -0.41655653715133667, 0.015662331134080887, -0.15860065817832947, -0.1736982762813568, -0.09607823193073273, -0.028438027948141098, -0.21678389608860016, 0.20088928937911987, -0.1973615437746048, 0.11106890439987183, -0.20864573121070862, 0.14262457191944122, 0.0291807372123003, 0.11351554095745087, -0.12199336290359497, 0.3748132884502411, 0.4225364923477173, -0.16913631558418274, 0.1362069994211197, -0.021462133154273033, 0.19881190359592438, 0.11221280694007874, -0.06230303272604942, 0.057576049119234085, 0.10412369668483734, -0.2180207073688507, -0.05220429599285126, 0.1724109798669815, -0.20578721165657043, -0.18325987458229065, 0.294532835483551, 0.20708678662776947, -0.13004162907600403, 0.5459812879562378, 0.2538110017776489, 0.37271907925605774, -0.32818830013275146, 0.2841488718986511, -0.2704305648803711, -0.030711796134710312, -0.18450064957141876, -0.35614168643951416, -0.4568122327327728, -0.22689899802207947, 0.34889987111091614, 0.12652085721492767, 0.301301509141922, 0.06697782874107361, 0.11086118221282959, -0.14327014982700348, 0.5278856754302979, 0.12736378610134125, -0.07210402190685272, 0.15256252884864807, -0.05744478479027748, -0.09450119733810425, 0.30243980884552, -0.12914955615997314, 0.07928527146577835, -0.01666930317878723, 0.0780356377363205, 0.08335693180561066, 0.19776184856891632, -0.2263825237751007, -0.27168604731559753, -0.3187078833580017, 0.20240949094295502, -0.6554201245307922, -0.24554602801799774, 0.35899683833122253, 0.20674362778663635, 0.003262080019339919, -0.14578410983085632, 0.2539193034172058, -0.029918842017650604, 0.007100981660187244, -0.018425067886710167, 0.04419250041246414, -0.24374547600746155, 0.18840548396110535, 0.15711675584316254, 0.4281649887561798, -0.06770795583724976, -0.07355576753616333, -0.13802531361579895, -0.27737829089164734, -0.1953834593296051, 0.14497512578964233, 0.5468010902404785, 0.03243282437324524, 0.34504222869873047, -0.10001355409622192, 0.3605943024158478, -0.10937166959047318, -0.1459469199180603, 0.10215026140213013, -0.2745302617549896, -0.23567914962768555, 0.21474160254001617, -0.27249035239219666, 0.09016603976488113, 0.07185062021017075, 0.600497305393219, 0.025568297132849693, 0.2015388458967209, 0.2285080999135971, -0.09280822426080704, 0.38094282150268555, -0.10586752742528915, -0.4406690299510956, 0.27559351921081543, -0.13676993548870087, 0.10998789221048355, -0.2000231146812439, 0.20153243839740753, -0.07027153670787811, 0.5745111703872681, -0.24510648846626282, -0.11490670591592789, 0.028858603909611702, -0.05631078779697418, -0.11137696355581284, -0.18281380832195282, 0.21705414354801178, 0.14658433198928833, -0.176692396402359, 0.2814047634601593, -0.16167254745960236 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yes right now `ArrayXD` can only be used as a column feature type, not a subtype. With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes. For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset. What do you think ?
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
85
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Yes right now `ArrayXD` can only be used as a column feature type, not a subtype. With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes. For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset. What do you think ?
[ -0.16160675883293152, 0.0108413090929389, -0.06661882996559143, 0.1772325336933136, 0.31333473324775696, 0.0057713002897799015, 0.5568305850028992, 0.11533597111701965, -0.1397416740655899, 0.07902085036039352, 0.16181111335754395, 0.061189375817775726, -0.24828694760799408, 0.28827953338623047, 0.14333677291870117, -0.4168107509613037, 0.1650112271308899, 0.2572270631790161, 0.05538110435009003, 0.11300931870937347, -0.18978208303451538, -0.20306110382080078, -0.222962886095047, 0.19242583215236664, -0.20328259468078613, -0.13255764544010162, -0.23127779364585876, -0.17466406524181366, -0.21545641124248505, -0.48739761114120483, 0.32940512895584106, 0.14319786429405212, 0.24261781573295593, 0.13768234848976135, -0.00011549243208719417, -0.010750917717814445, 0.39260226488113403, 0.013296060264110565, -0.19533121585845947, 0.027706753462553024, 0.077362060546875, -0.4880393445491791, 0.11426662653684616, -0.3838251233100891, 0.10638990253210068, -0.9378995299339294, -0.041639287024736404, -0.08971881121397018, 0.1050879955291748, 0.05009256303310394, 0.19229212403297424, 0.17157778143882751, 0.38996508717536926, -0.010545269586145878, 0.48360949754714966, 0.3242563307285309, -0.27070152759552, -0.0386970229446888, 0.3831055462360382, 0.139705091714859, 0.07713527977466583, -0.17487680912017822, -0.028489571064710617, 0.057424891740083694, 0.47208598256111145, 0.17139732837677002, 0.2727370858192444, -0.16845813393592834, -0.10269489884376526, 0.4105270504951477, 0.4952406883239746, -0.23191136121749878, -0.3075929880142212, -0.3115685284137726, 0.003265273990109563, -0.17538051307201385, -0.10730887949466705, 0.2137761414051056, -0.12963402271270752, -0.014075318351387978, -0.15349949896335602, 0.15485535562038422, -0.441832035779953, 0.3143468499183655, 0.1075732409954071, 0.1329273134469986, 0.07352124154567719, 0.24177247285842896, -0.24761109054088593, -0.5056384801864624, 0.431692510843277, -0.23609162867069244, -0.027042493224143982, 0.14070236682891846, 0.007250863127410412, -0.008092082105576992, -0.16986554861068726, -0.340078741312027, 0.47705644369125366, -0.10004974901676178, 0.34790167212486267, 0.011199748143553734, 0.16620099544525146, 0.0931355208158493, 0.04096757993102074, 0.34059977531433105, -0.12125588208436966, -0.2747880816459656, -0.15112809836864471, 0.1171402558684349, 0.17133471369743347, 0.07277170568704605, -0.2241661101579666, -0.12836913764476776, 0.2919894754886627, -0.10561338812112808, 0.21828415989875793, 0.3313555419445038, 0.06216684356331825, -0.020299382507801056, -0.5062046051025391, -0.13050898909568787, -0.03679493069648743, 0.12053610384464264, 0.06741978973150253, 0.13499079644680023, -0.08093307167291641, 0.3865691125392914, 0.13140442967414856, -0.005581425037235022, -0.09676570445299149, -0.12211450934410095, -0.16393405199050903, -0.04322650656104088, -0.031128205358982086, 0.26601019501686096, -0.03623165935277939, -0.08435306698083878, 0.12068603187799454, 0.15194125473499298, -0.06731314212083817, 0.10368386656045914, 0.11265780031681061, 0.08755797892808914, -0.19350050389766693, -0.2413790076971054, -0.2568313777446747, 0.00925458688288927, -0.23371705412864685, 0.3463327884674072, 0.019690942019224167, -0.2524258494377136, -0.45456814765930176, 0.12534357607364655, -0.24851179122924805, -0.03749159723520279, -0.23031391203403473, 0.22046813368797302, 0.27251216769218445, 0.019248535856604576, 0.10926008224487305, -0.07481478154659271, 0.040369585156440735, -0.45842406153678894, -0.016177011653780937, -0.06293398886919022, -0.27941182255744934, 0.11302556842565536, 0.005277429707348347, -0.010395878925919533, -0.13504928350448608, -0.023258432745933533, -0.18222163617610931, 0.0009785305010154843, -0.05833243578672409, 0.199472576379776, 0.46916210651397705, 0.20010675489902496, -0.04428647458553314, 0.0683371052145958, 0.09939936548471451, -0.18403922021389008, 0.3197767436504364, 0.060017216950654984, -0.045810069888830185, -0.1721125692129135, -0.2826557457447052, 0.314598023891449, -0.09646159410476685, -0.1695908010005951, -0.08001212030649185, -0.5706949830055237, 0.30614668130874634, 0.14844298362731934, 0.09845537692308426, -0.07344653457403183, 0.04198403283953667, -0.4109465181827545, 0.2504277229309082, -0.40954476594924927, 0.24873599410057068, -0.07554122060537338, 0.26015058159828186, -0.09079929441213608, 0.11705820262432098, -0.2781343162059784, -0.8328419327735901, 0.20760822296142578, -0.34549322724342346, -0.10670012980699539, 0.029505116865038872, -0.18897244334220886, -0.17043040692806244, 0.14569848775863647, -0.1304066926240921, 0.1564949005842209, 0.08730123192071915, 0.0034691605251282454, 0.056150637567043304, -0.29687756299972534, -0.25163134932518005, -0.3527005612850189, -0.06088244169950485, -0.020740829408168793, -0.405630886554718, 0.4219987690448761, 0.1468450278043747, -0.26536479592323303, -0.2945560812950134, 0.28713876008987427, -0.0391312874853611, -0.0812380239367485, -0.04055655747652054, 0.2517082989215851, -0.09432339668273926, 0.00020192180818412453, -0.5369094610214233, 0.1763537973165512, 0.03466954827308655, -0.174386665225029, 0.36293578147888184, 0.006033468991518021, 0.026515701785683632, -0.13104216754436493, 0.23020371794700623, 0.4568028748035431, -0.0022059702314436436, 0.42854583263397217, -0.17449481785297394, -0.040405694395303726, -0.07211746275424957, 0.19695548713207245, -0.0736597552895546, -0.1658548265695572, -0.2773374617099762, 0.23618440330028534, 0.15943874418735504, -0.02603735961019993, -0.20235152542591095, 0.15954703092575073, 0.2601909637451172, -0.10219023376703262, 0.04606076702475548, 0.14008884131908417, -0.25512927770614624, 0.07293681800365448, 0.166390523314476, 0.15240579843521118, 0.16845200955867767, 0.20516909658908844, -0.12232398241758347, -0.023149676620960236, -0.16202029585838318, -0.09881550073623657, 0.21741892397403717, 0.17602801322937012, 0.492413192987442, 0.09497563540935516, 0.4513033330440521, -0.18522746860980988, -0.1904086172580719, -0.004028518218547106, 0.027308253571391106, 0.07143695652484894, -0.15418697893619537, 0.05634747073054314, -0.0956588014960289, -0.06152563542127609, -0.08484504371881485, -0.6617184281349182, -0.047957178205251694, 0.010170326568186283, 0.0034054217394441366, 0.002337697660550475, -0.17642055451869965, 0.21829518675804138, 0.07076925784349442, -0.12850625813007355, 0.20332811772823334, -0.15065830945968628, -0.16653701663017273, 0.0061284019611775875, -0.02454981952905655, 0.06364990025758743, 0.2478211373090744, -0.0018948290962725878, 0.008557853288948536, 0.2448374629020691, 0.08238334953784943, -0.33131831884384155, -0.31513598561286926, -0.00829798448830843, -0.15285660326480865, 0.2326389104127884, 0.4319125711917877, -0.04954412952065468, 0.17052656412124634, -0.31250882148742676, 0.310434490442276, 0.012928747572004795, -0.2742743492126465, 0.13886472582817078, -0.21981771290302277, 0.1748548448085785, -0.1059623658657074, 0.007748772855848074, -0.17929890751838684, -0.36208975315093994, 0.32484012842178345, 0.41524893045425415, 0.19818469882011414, 0.24612289667129517, 0.35202884674072266, 0.17199380695819855, -0.0005938864196650684, 0.01703890971839428, 0.14466214179992676, 0.25584930181503296, 0.38286471366882324, -0.02664874866604805, -0.18193553388118744, -0.13551071286201477, -0.917507529258728, 0.09743988513946533, 0.37258830666542053, 0.06004801020026207, -0.17031487822532654, -0.15634918212890625, 0.2750994861125946, 0.08539414405822754, -0.013637417927384377, 0.44565582275390625, 0.12303993105888367, 0.01617847941815853, -0.09629260003566742, -0.04932839050889015, 0.32279253005981445, 0.2541523277759552, -0.02902200073003769, 0.2366010844707489, 0.3795798420906067, -0.11615127325057983, 0.6229425072669983, 0.033570125699043274, -0.434372216463089, 0.31520548462867737, -0.28014087677001953, -0.1684265434741974, -0.19517739117145538, -0.0541304387152195, -0.14075972139835358, -0.0307092797011137, -0.09051726013422012, -0.06000113859772682, -0.11867185682058334, -0.350157231092453, 0.18309137225151062, 0.19644631445407867, 0.04432658478617668, 0.01433405838906765, 0.12710818648338318, 0.056277766823768616, 0.3102787137031555, -0.13237066566944122, 0.010312624275684357, -0.3922722637653351, -0.23436063528060913, -0.26271751523017883, -0.2672697603702545, 0.1622459441423416, -0.0061250124126672745, -0.2194528579711914, 0.07165665924549103, -0.016159476712346077, 0.3092055916786194, 0.585497260093689, 0.10129328072071075, 0.30754536390304565, -0.21156960725784302, 0.06563015282154083, -0.04789527505636215, 0.3690643608570099, -0.14956875145435333, -0.2604699432849884, 0.4619356095790863, 0.11156843602657318, -0.4515565037727356, -0.1744282990694046, -0.0168557558208704, -0.12022537738084793, -0.29053014516830444, 0.15743428468704224, -0.3936348855495453, -0.025870267301797867, 0.31979212164878845, 0.2921332120895386, -0.03643912449479103, -0.13938714563846588, -0.13649070262908936, -0.09234733879566193, -0.18672916293144226, -0.25910043716430664, 0.029978513717651367, 0.3263770341873169, 0.15823763608932495, -0.38265082240104675, -0.4629873037338257, -0.1317448616027832, -0.27406904101371765, 0.050140172243118286, 0.4171845018863678, -0.10655281692743301, 0.15909935534000397, -0.31151652336120605, 0.04253791272640228, 0.2721479833126068, 0.16537787020206451, 0.16229408979415894, 0.04125281795859337, 0.004972527269273996, 0.10177052021026611, 0.41327229142189026, 0.17759396135807037, -0.13184261322021484, 0.13685166835784912, 0.03409232571721077, 0.08792330324649811, -0.22651879489421844, -0.21322180330753326, 0.4135328233242035, -0.35429075360298157, -0.02084476500749588, -0.3419041931629181, 0.6716288328170776, -0.027588550001382828, 0.11438383162021637, 0.20112507045269012, 0.31245091557502747, -0.18801458179950714, 0.24367138743400574, 0.6279749870300293, 0.8101688027381897, 0.08266136050224304, 0.09251116961240768, 0.6586753726005554, 0.03957438841462135, -0.03682181239128113, 0.40765368938446045, 0.06281526386737823, -0.4858427047729492, 0.10586252808570862, -0.15238052606582642, -0.28381094336509705, 0.23521430790424347, 0.0837629958987236, -0.1277519315481186, -0.004428454674780369, -0.06409475207328796, 0.4120751917362213, 0.1050514504313469, 0.01339728757739067, -0.35040947794914246, -0.22083817422389984, -0.17912451922893524, 0.045685190707445145, 0.05591708794236183, -0.46033090353012085, -0.04901525378227234, -0.3513246476650238, 0.025260716676712036, 0.02597874402999878, -0.12475086003541946, -0.23738731443881989, -0.37297627329826355, -0.0640471801161766, 0.41746795177459717, -0.5670103430747986, 0.11837185174226761, 0.2152530997991562, -0.017715899273753166, -0.2802427113056183, -0.12612386047840118, -0.07662622630596161, 0.16729390621185303, -0.24284188449382782, -0.24451525509357452, -0.3188093304634094, 0.2764322757720947, 0.06746285408735275, -0.09184961020946503, -0.10105381906032562, 0.035077646374702454, -0.03839745745062828, -0.1744721233844757, -0.014175904914736748, 0.2645861804485321, -0.3808223307132721, -0.0809333398938179, -0.21530510485172272, -0.052479442209005356, -0.12549851834774017, 0.06651699542999268, 0.0475817546248436, 0.07882080972194672, -0.09338295459747314, 0.18830762803554535, 0.1496841162443161, -0.099390409886837, -0.020406285300850868, 0.5038694143295288, 0.36247581243515015, 0.30462369322776794, 0.2016722410917282, 0.059965722262859344, -0.17358748614788055, 0.34852010011672974, 0.4494472146034241, -0.5054560303688049, 0.1632678061723709, 0.14183980226516724, -0.247815802693367, -0.13639916479587555, 0.5404835343360901, 0.03942675143480301, 0.2122337371110916, -0.0787895992398262, 0.011773563921451569, -0.42032086849212646, 0.4531818628311157, 0.08423461019992828, 0.3178561329841614, -0.29624199867248535, 0.006682442966848612, -0.01644064486026764, -0.0033689597621560097, -0.25555291771888733, 0.0823919028043747, 0.13992387056350708, -0.12069259583950043, -0.43550243973731995, -0.06975579261779785, 0.08993710577487946, 0.13022221624851227, 0.05679670348763466, 0.04314382001757622, -0.47321653366088867, -0.13663581013679504, -0.06306152790784836, 0.1465228945016861, 0.11138664931058884, -0.07509605586528778, 0.1088625118136406, -0.035666029900312424, -0.3903195858001709, -0.17364589869976044, -0.03850515931844711, -0.18061032891273499, -0.19874146580696106, -0.07515617460012436, 0.29431280493736267, 0.030744660645723343, -0.32632526755332947, 0.03146219253540039, -0.11105907708406448, 0.24274612963199615, 0.08386868238449097, 0.11728575080633163, -0.02869264967739582, -0.07102211564779282, -0.07779128104448318, 0.2803206741809845, -0.020983818918466568, -0.24576324224472046, 0.33637377619743347, -0.27816760540008545, -0.4002951979637146, -0.1711631417274475, 0.5554985404014587, 0.22211723029613495, -0.10556631535291672, 0.07754197716712952, 0.09827757626771927, 0.16081295907497406, -0.39342981576919556, 0.02503722719848156, 0.1438300460577011, 0.051938243210315704, 0.23611749708652496, 0.4788053333759308, 0.33442115783691406, -0.07776150852441788, -0.02870430238544941, 0.11932671070098877, -0.13267597556114197, -0.0002070450282189995, 0.043733902275562286, 0.6355381608009338, -0.12587706744670868, 0.04851926490664482, 0.48112767934799194, 0.19399365782737732, 0.4050464928150177, 0.0457957498729229, 0.0016183889238163829, 0.38234108686447144, 0.3568307161331177, -0.10435467213392258, 0.24558447301387787, -0.051192402839660645, 0.07298659533262253, 0.17937487363815308, 0.4925744831562042, -0.04423649236559868, 0.2195575088262558, 0.7067700624465942, 0.23347444832324982, -0.05546247959136963, -0.2771452069282532, -0.1155780702829361, 0.006322128232568502, -0.08221028000116348, -0.07511759549379349, -0.16911014914512634, -0.37987953424453735, -0.37404555082321167, -0.23215968906879425, -0.4588370621204376, 0.29069995880126953, -0.23360010981559753, 0.2934195399284363, -0.4083951413631439, 0.5953150987625122, 0.21683794260025024, 0.05169187858700752, -0.12795551121234894, 0.5140503644943237, 0.4316699802875519, -0.07813194394111633, -0.03609073534607887, 0.47019824385643005, 0.22004185616970062, 0.21576915681362152, -0.32170626521110535, 0.005828233435750008, -0.09644468128681183, -0.22047513723373413, 0.10554728657007217, 0.06033859774470329, 0.14767880737781525, 0.17962490022182465, 0.2984698712825775, 0.06714314222335815, -0.09874439239501953, 0.21739566326141357, 0.1905701607465744, -0.09632132202386856, -0.2707988917827606, 0.38875946402549744, -0.2764687240123749, -0.08806104958057404, 0.013379799202084541, -0.08520811051130295, -0.3422192335128784, -0.03592292219400406, 0.25393274426460266, -0.16863328218460083, 0.06422367691993713, 0.038551997393369675, 0.051269564777612686, -0.21651995182037354, 0.5640593767166138, 0.03776927292346954, 0.37527331709861755, -0.000887062109541148, 0.01805480755865574, -0.366932213306427, 0.2662679851055145, -0.28437539935112, 0.03498837724328041, 0.3976563811302185, 0.1515055149793625, -0.03191511705517769, 0.09352106600999832, 0.23489733040332794, 0.24834975600242615, -0.04760679230093956, 0.3987118601799011, -0.38231831789016724, -0.046815793961286545, 0.3674168288707733, 0.04574643820524216, -0.016674648970365524, -0.32895714044570923, 0.23131658136844635, -0.3987187445163727, -0.03986867889761925, 0.18515075743198395, 0.09116384387016296, 0.07333098351955414, 0.010179062373936176, 0.4556727707386017, -0.052139077335596085, -0.005795820150524378, 0.1570112407207489, -0.03470044210553169, -0.32264798879623413, -0.3023771345615387, -0.2103191316127777, 0.2482529729604721, 0.16881084442138672, 0.4968723952770233, -0.2597641348838806, 0.16700363159179688, -0.011452867649495602, -0.1393120288848877, -0.0138447480276227, 0.14292468130588531, -0.22754010558128357, 0.5355845093727112, -0.455338716506958, -0.026294052600860596, -0.032797928899526596, -0.064630888402462, 0.04573006555438042, 0.09547467529773712, -0.10814770311117172, -0.5193561911582947, 0.6752315759658813, -0.06918982416391373, -0.41022297739982605, 0.189043328166008, -0.11859250068664551, 0.5248751640319824, -0.0722406804561615, -0.2589220702648163, 0.034366365522146225, 0.3283541798591614, 0.019148770719766617, 0.08816155791282654, 0.04105024412274361, 0.07246720045804977, -0.09392175078392029, -0.21722981333732605, 0.17764945328235626, -0.13183000683784485, -0.1210472583770752, -0.32506853342056274, -0.512897253036499 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
> Yes right now ArrayXD can only be used as a column feature type, not a subtype. Meaning it can't be nested under `Sequence`? If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
45
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> > Yes right now ArrayXD can only be used as a column feature type, not a subtype. Meaning it can't be nested under `Sequence`? If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested.
[ -0.14969123899936676, 0.04668300971388817, -0.08322661370038986, 0.11906949430704117, 0.2730071544647217, 0.12014701217412949, 0.6236193776130676, 0.13252924382686615, 0.00043083849595859647, 0.116999551653862, 0.2726782560348511, 0.21372073888778687, -0.1482151746749878, 0.0873369574546814, 0.14949755370616913, -0.35231921076774597, 0.23041756451129913, 0.3752017319202423, 0.19842690229415894, 0.08082573860883713, -0.15122221410274506, -0.09654192626476288, -0.2307996302843094, 0.3625940680503845, -0.2430005967617035, -0.11532238870859146, -0.1199120581150055, -0.0832742229104042, -0.13971927762031555, -0.5142062902450562, 0.4007093608379364, 0.02552160993218422, 0.23229339718818665, 0.11462144553661346, -0.00011815007019322366, -0.014663474634289742, 0.43486344814300537, 0.05916488543152809, -0.12298297137022018, -0.004892941564321518, 0.10119439661502838, -0.40425145626068115, 0.26446273922920227, -0.4277370870113373, -0.024051375687122345, -0.9039797186851501, 0.04272982105612755, 0.006663696374744177, 0.12529365718364716, 0.2079317569732666, 0.14422713220119476, 0.1297575831413269, 0.47644948959350586, -0.18067523837089539, 0.4600850045681, 0.14056555926799774, -0.29449522495269775, -0.08078375458717346, 0.5120015144348145, 0.1438998430967331, 0.09920620173215866, -0.31352099776268005, -0.13095737993717194, 0.07073863595724106, 0.440623015165329, 0.3419974148273468, 0.24607542157173157, -0.2585653066635132, -0.26238664984703064, 0.33972400426864624, 0.4132303297519684, -0.17509858310222626, -0.12347867339849472, -0.18438325822353363, 0.03575187548995018, -0.28762906789779663, 0.01657632738351822, 0.10873962193727493, -0.22630049288272858, 0.015462047420442104, -0.009694348089396954, 0.1207381933927536, -0.4009545147418976, 0.3173990845680237, 0.16751433908939362, 0.2928389310836792, 0.07076099514961243, 0.26307693123817444, -0.10442537814378738, -0.34819599986076355, 0.5756610035896301, -0.2738816738128662, 0.10033334046602249, 0.21774746477603912, -0.07035157084465027, 0.022967640310525894, -0.17509759962558746, -0.36436429619789124, 0.40702763199806213, -0.03971618041396141, 0.23409463465213776, -0.06545944511890411, 0.26244524121284485, 0.15167084336280823, -0.08502329885959625, 0.3085598051548004, -0.013591102324426174, -0.2896937131881714, -0.09561748057603836, 0.13514168560504913, 0.06933934986591339, 0.04238055273890495, -0.2960185706615448, -0.07982108741998672, 0.28779909014701843, -0.03630640357732773, 0.2192566990852356, 0.22945038974285126, 0.057604290544986725, 0.0001431590790161863, -0.49100348353385925, -0.21630293130874634, -0.04690917581319809, 0.22784830629825592, 0.13352976739406586, -0.09123362600803375, -0.1209777221083641, 0.3931640088558197, 0.11456481367349625, 0.053909994661808014, -0.1054861843585968, -0.020338118076324463, -0.13856039941310883, 0.02613137848675251, -0.09256841242313385, 0.1498640477657318, 0.13249726593494415, -0.0177039485424757, 0.18242283165454865, 0.11767939478158951, 0.11834204941987991, 0.16720883548259735, 0.10507944971323013, 0.12161093950271606, -0.0390886627137661, 0.021390914916992188, 0.060771722346544266, -0.0322827510535717, -0.21467013657093048, 0.34453973174095154, -0.1502041518688202, -0.2812196910381317, -0.4611910283565521, 0.09512492269277573, -0.2679344713687897, 0.026811400428414345, -0.08556273579597473, 0.05317409709095955, 0.32062846422195435, -0.009289880283176899, 0.07006034255027771, 0.00848793052136898, 0.09411873668432236, -0.39101049304008484, 0.01025363989174366, -0.20701146125793457, -0.3107103407382965, 0.105007603764534, -0.18326851725578308, -0.05113761126995087, -0.10334017127752304, -0.034176621586084366, -0.18306420743465424, 0.21111330389976501, -0.24384339153766632, 0.3546355664730072, 0.4485321342945099, 0.12384391576051712, 0.0761413425207138, 0.09373996406793594, 0.04588404670357704, -0.12583357095718384, 0.27544713020324707, 0.12349831312894821, -0.042081888765096664, -0.2332233190536499, -0.1978227198123932, 0.13695503771305084, -0.06502313166856766, -0.32272207736968994, 0.09249094873666763, -0.361409991979599, 0.45328661799430847, 0.03468731790781021, -0.055667757987976074, 0.1533399522304535, -0.145034521818161, -0.38503575325012207, 0.1831590086221695, -0.4505038261413574, 0.1036105826497078, 0.11987770348787308, 0.21426764130592346, -0.07738371193408966, 0.06935615837574005, -0.34800291061401367, -0.7058074474334717, 0.19832029938697815, -0.33186250925064087, -0.05108070373535156, -0.03232908621430397, -0.15907306969165802, -0.21612676978111267, 0.18692897260189056, -0.22822150588035583, 0.12363172322511673, 0.06549843400716782, -0.010188442654907703, 0.12699265778064728, -0.2844233214855194, -0.3284105658531189, -0.33247408270835876, -0.027413571253418922, -0.04622945189476013, -0.56764817237854, 0.43373462557792664, -0.015260045416653156, -0.38344451785087585, -0.2677716612815857, 0.2581297755241394, 0.04498567059636116, -0.06546346843242645, 0.0735674723982811, 0.20841041207313538, -0.08868258446455002, -0.12370770424604416, -0.5375248193740845, 0.09253554791212082, -0.032605234533548355, -0.47554975748062134, 0.14851009845733643, 0.1747865378856659, 0.0008853503968566656, -0.26541346311569214, 0.12460960447788239, 0.3514433205127716, 0.2006993591785431, 0.5677334070205688, -0.16230182349681854, 0.04681209474802017, -0.05057789385318756, 0.19669418036937714, -0.06600236147642136, -0.08247128874063492, -0.050801824778318405, 0.2496979683637619, 0.05010364204645157, -0.04162270575761795, -0.1632539927959442, 0.2374584674835205, 0.3121313750743866, -0.07191430032253265, 0.07125389575958252, 0.0841197744011879, -0.12054602056741714, 0.014147688634693623, 0.1988028585910797, -0.22633107006549835, 0.18352589011192322, 0.14530044794082642, -0.10914663970470428, 0.11527220159769058, -0.34589478373527527, -0.09470769762992859, 0.11840546876192093, 0.04162568971514702, 0.4965812861919403, 0.06266164779663086, 0.2471480518579483, -0.21607637405395508, -0.1896665394306183, -0.19802260398864746, -0.08871062844991684, 0.10409301519393921, -0.25190281867980957, 0.045072875916957855, -0.2113896906375885, -0.08832091093063354, 0.009317969903349876, -0.5655488967895508, 0.06710739433765411, -0.08814142644405365, -0.12486246228218079, 0.135356605052948, -0.08412386476993561, 0.2511501610279083, -0.052202917635440826, -0.24216966331005096, 0.25636643171310425, -0.09641128778457642, -0.2533523738384247, -0.0717594102025032, 0.026772087439894676, 0.061580292880535126, 0.15546481311321259, 0.06907658278942108, -0.04495888203382492, 0.2691808342933655, -0.03381863981485367, -0.35501715540885925, -0.27524179220199585, 0.049920883029699326, -0.20361678302288055, 0.2274007350206375, 0.4706684648990631, 0.1386541724205017, 0.07063237577676773, -0.5315937995910645, 0.33677366375923157, 0.053576137870550156, -0.30530864000320435, 0.2561754882335663, -0.17802907526493073, 0.055512379854917526, -0.02164231240749359, -0.08927727490663528, -0.13822633028030396, -0.35350146889686584, 0.1806747168302536, 0.5079566240310669, 0.26377153396606445, 0.07049593329429626, 0.26265043020248413, 0.2246546596288681, 0.03756108507514, -0.08087240904569626, 0.18133686482906342, 0.2828778326511383, 0.4597241282463074, -0.17452503740787506, -0.2502918839454651, -0.02276647835969925, -0.8539388179779053, 0.03768802061676979, 0.16834202408790588, 0.17711631953716278, -0.1344534456729889, -0.1827837973833084, 0.19936205446720123, 0.10495241731405258, -0.035828277468681335, 0.3669698238372803, 0.10599532723426819, 0.005178309511393309, -0.14730262756347656, -0.0526268407702446, 0.4297557473182678, 0.0648394301533699, 0.005989579018205404, 0.20775018632411957, 0.3540017604827881, -0.29048189520835876, 0.4884467124938965, 0.23391667008399963, -0.27608203887939453, 0.32800737023353577, -0.27279385924339294, -0.1918720304965973, -0.33950313925743103, -0.048878610134124756, -0.25942569971084595, 0.034766048192977905, -0.13296626508235931, -0.05614212155342102, -0.13260558247566223, -0.3195642828941345, 0.18137143552303314, 0.3871625065803528, 0.05190805718302727, 0.025386180728673935, -0.001442761393263936, -0.012157564982771873, 0.2845228612422943, -0.09572244435548782, -0.029859555885195732, -0.25486835837364197, -0.13678021728992462, -0.21716535091400146, -0.2505751848220825, 0.18649132549762726, -0.030669493600726128, -0.4782131612300873, -0.11282192915678024, -0.06053207814693451, 0.2148711234331131, 0.5360190272331238, 0.04493125155568123, 0.11405809223651886, -0.08362853527069092, 0.12719951570034027, -0.12068333476781845, 0.470215380191803, -0.20562230050563812, -0.2539266347885132, 0.5924779176712036, 0.17681679129600525, -0.4166944921016693, -0.1383584588766098, -0.02370391972362995, -0.03764621540904045, -0.38036051392555237, 0.18942716717720032, -0.4217667579650879, 0.03247819468379021, 0.361216276884079, 0.23127825558185577, -0.08398892730474472, -0.17920850217342377, -0.14394141733646393, -0.25511834025382996, -0.12620405852794647, -0.30268940329551697, 0.07540605962276459, 0.3523683249950409, 0.1189747229218483, -0.4888962507247925, -0.34451809525489807, -0.040381401777267456, -0.21985265612602234, -0.05913770571351051, 0.42528125643730164, -0.24750174582004547, 0.042838748544454575, -0.31036630272865295, -0.03876526281237602, 0.06783819943666458, 0.12221180647611618, 0.16962771117687225, 0.03648899495601654, 0.07773129642009735, -0.1879543662071228, 0.452688604593277, 0.07881047576665878, -0.22874882817268372, 0.2178768515586853, 0.07107948511838913, 0.016012083739042282, -0.13281284272670746, -0.2347790151834488, 0.43641579151153564, -0.323469877243042, -0.06711406260728836, -0.3596932590007782, 0.5855869054794312, 0.10399560630321503, 0.10381961613893509, 0.208175390958786, 0.1932811290025711, -0.2010703682899475, 0.2021731734275818, 0.6190623044967651, 0.8599430918693542, -0.006221471820026636, 0.128830686211586, 0.7438941597938538, 0.1930783987045288, 0.23251450061798096, 0.42360958456993103, 0.05578869953751564, -0.48510977625846863, -0.11736451834440231, -0.2180396318435669, -0.3682941496372223, 0.21326851844787598, 0.1600598394870758, -0.2500903010368347, 0.10496111959218979, -0.21315616369247437, 0.4065156877040863, 0.2036917507648468, -0.05238475650548935, -0.15432575345039368, -0.15826502442359924, -0.23679094016551971, 0.05686301738023758, 0.11289273202419281, -0.5091957449913025, -0.10736630856990814, -0.27369406819343567, -0.036219678819179535, -0.040634650737047195, -0.103113554418087, -0.04975326731801033, -0.22193646430969238, 0.01160944253206253, 0.3405352532863617, -0.4945540726184845, 0.09693799167871475, 0.24018746614456177, 0.05453658476471901, -0.39380428194999695, -0.09496528655290604, -0.15820053219795227, 0.15757855772972107, -0.2412565052509308, -0.22492077946662903, -0.35603415966033936, 0.3116673529148102, -0.03913480043411255, 0.0634174570441246, 0.023866191506385803, -0.03190036863088608, -0.1545080691576004, -0.0965009406208992, 0.06433562189340591, 0.152196004986763, -0.25869980454444885, -0.2742079794406891, -0.08163823932409286, -0.12325205653905869, -0.18287402391433716, 0.035598933696746826, 0.12393265217542648, -0.10153598338365555, -0.07288575172424316, 0.0388311892747879, 0.1103442832827568, 0.03555009886622429, -0.006754887755960226, 0.6729299426078796, 0.34189021587371826, 0.3343162536621094, 0.32739681005477905, 0.02594863809645176, -0.1585267335176468, 0.15650048851966858, 0.6011660695075989, -0.4475325644016266, 0.24175752699375153, 0.10944078862667084, -0.2066463977098465, -0.20436108112335205, 0.5340684652328491, -0.10072747617959976, 0.24585305154323578, -0.2113160938024521, -0.05598750337958336, -0.3951449692249298, 0.4105904698371887, 0.11978043615818024, 0.25701308250427246, -0.3223985731601715, 0.06891222298145294, 0.0030375770293176174, -0.250508189201355, -0.2125859260559082, -0.012768905609846115, -0.09301725775003433, -0.06765288859605789, -0.3429589569568634, 0.015115014277398586, 0.13785819709300995, 0.17098338901996613, 0.06573430448770523, 0.06986185908317566, -0.3820562958717346, -0.13145887851715088, -0.038152605295181274, 0.18835681676864624, 0.16337567567825317, -0.13746875524520874, 0.2331009805202484, 0.0005481066182255745, -0.29752740263938904, -0.1349497139453888, -0.10466060787439346, -0.19488060474395752, -0.009615094400942326, -0.10157564282417297, 0.2930638790130615, 0.08488695323467255, -0.41998913884162903, -0.03634583577513695, -0.222824364900589, 0.16538934409618378, 0.061190783977508545, -0.0188490878790617, -0.08095860481262207, -0.09231928735971451, -0.04861947149038315, 0.2589794099330902, 0.0017547376919537783, -0.17033490538597107, 0.4338003993034363, -0.22935020923614502, -0.3992440402507782, -0.2450805902481079, 0.5093846917152405, 0.23236152529716492, -0.19324181973934174, 0.12199924141168594, 0.015304693020880222, 0.10136447101831436, -0.34276461601257324, 0.07777152955532074, 0.2787526845932007, 0.024666128680109978, 0.15709711611270905, 0.3537631332874298, 0.20225833356380463, 0.018243765458464622, 0.04867665842175484, 0.02175605669617653, 0.009951841086149216, -0.09068702161312103, 0.06765615940093994, 0.6141079068183899, -0.012181953527033329, 0.14867185056209564, 0.46650227904319763, 0.08639250695705414, 0.33220115303993225, 0.12019748985767365, 0.09878174215555191, 0.295276939868927, 0.4559450149536133, -0.12175468355417252, 0.3147563338279724, 0.049368225038051605, -0.008923082612454891, 0.21641279757022858, 0.600694477558136, -0.1371317356824875, 0.19764071702957153, 0.5118812322616577, 0.17623358964920044, -0.06589306145906448, -0.2277880311012268, 0.016727346926927567, 0.0745888203382492, -0.08215472847223282, -0.09257335215806961, -0.04774272441864014, -0.2798781394958496, -0.4828265905380249, -0.11672726273536682, -0.35593584179878235, 0.1859840601682663, -0.2634459435939789, 0.2670087218284607, -0.4153421223163605, 0.7211952209472656, 0.21319012343883514, -0.037368424236774445, 0.007402690127491951, 0.5196147561073303, 0.2977161109447479, -0.022733934223651886, -0.07104028016328812, 0.4569801390171051, 0.31916388869285583, 0.24897867441177368, -0.28541743755340576, 0.015456965193152428, -0.16175797581672668, -0.26678019762039185, 0.05961983650922775, 0.12580208480358124, 0.11705566942691803, 0.24199813604354858, 0.29201653599739075, 0.0533626414835453, -0.09571947157382965, 0.27827346324920654, 0.1897236406803131, 0.00015453188098035753, -0.16817504167556763, 0.43837353587150574, -0.3106484115123749, -0.2009638547897339, 0.17286954820156097, 0.04155583307147026, -0.4118330180644989, 0.09327574819326401, 0.27616751194000244, -0.15684948861598969, 0.08164496719837189, 0.02301720343530178, 0.047156594693660736, -0.2880280911922455, 0.5047279596328735, -0.030245941132307053, 0.5685745477676392, -0.05713815242052078, -0.03958626836538315, -0.3826923668384552, 0.35459479689598083, -0.3610598146915436, -0.0181548111140728, 0.43158987164497375, 0.14604729413986206, 0.004890688229352236, 0.19876623153686523, 0.1994727998971939, 0.12666164338588715, -0.2016124576330185, 0.3863152265548706, -0.3414885699748993, -0.14087437093257904, 0.40991079807281494, 0.15353025496006012, -0.21024733781814575, -0.22670376300811768, 0.22068727016448975, -0.26354318857192993, -0.0387195460498333, 0.2351824790239334, -0.023665424436330795, 0.049142803996801376, -0.021845385432243347, 0.45459243655204773, 0.11392419040203094, 0.16129224002361298, 0.148078054189682, 0.023916304111480713, -0.25108975172042847, -0.21179115772247314, -0.20257261395454407, 0.2957008183002472, 0.1632515788078308, 0.4352884590625763, -0.2515105605125427, 0.2785424590110779, -0.14914552867412567, 0.010939209721982479, 0.07570760697126389, 0.07073026150465012, -0.3185373544692993, 0.6374909281730652, -0.5367569327354431, -0.025510160252451897, 0.0312042199075222, -0.2014324814081192, 0.027492113411426544, 0.15252238512039185, -0.06132292002439499, -0.5150297284126282, 0.6163956522941589, 0.020746372640132904, -0.4586501121520996, 0.1995031088590622, -0.09506513923406601, 0.496427446603775, -0.1267412304878235, -0.13463865220546722, -0.08362898230552673, 0.37562310695648193, -0.015766650438308716, -0.028753060847520828, 0.045597780495882034, 0.034092918038368225, -0.02456533908843994, -0.1855209320783615, 0.025475692003965378, -0.07557091116905212, -0.1420813500881195, -0.3219665586948395, -0.5487017035484314 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yea unfortunately.. That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects. We already have an ExtensionArray that allows us to use them as column types but not for subtypes. Maybe we can extend it, I haven't experimented with that yet
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
48
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Yea unfortunately.. That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects. We already have an ExtensionArray that allows us to use them as column types but not for subtypes. Maybe we can extend it, I haven't experimented with that yet
[ -0.021221138536930084, 0.16213667392730713, 0.019125379621982574, 0.19337540864944458, 0.35349538922309875, 0.1465555876493454, 0.6769055128097534, 0.10014121234416962, -0.13536350429058075, 0.16975048184394836, 0.17544125020503998, 0.24838726222515106, -0.21873261034488678, -0.04890624061226845, 0.1682206243276596, -0.4851909577846527, 0.13466903567314148, 0.3015386462211609, 0.0228542722761631, 0.07043515890836716, -0.04694278910756111, -0.13799096643924713, -0.2132531851530075, 0.29887235164642334, -0.32131144404411316, 0.0069468216970562935, -0.04158512502908707, -0.26098310947418213, -0.2811126410961151, -0.5396838784217834, 0.4548950493335724, -0.13678766787052155, 0.21576032042503357, 0.054125603288412094, -0.00011805730900960043, 0.13916519284248352, 0.47175291180610657, 0.1158180832862854, -0.2676098644733429, -0.07280868291854858, 0.11657288670539856, -0.37658610939979553, 0.22548049688339233, -0.29493096470832825, 0.07462921738624573, -0.8747574090957642, -0.0137048764154315, -0.04804162308573723, -0.0390082523226738, 0.22313474118709564, 0.13902944326400757, 0.153065025806427, 0.39176005125045776, -0.13804225623607635, 0.556293785572052, 0.2029254138469696, -0.3444996476173401, -0.03317710757255554, 0.2575598955154419, 0.1419358253479004, 0.07369422912597656, -0.25204500555992126, 0.03174674138426781, 0.15357916057109833, 0.33294805884361267, 0.30480748414993286, 0.31533166766166687, -0.21418151259422302, -0.09369149804115295, 0.35839518904685974, 0.418932169675827, -0.1743401736021042, -0.21960340440273285, -0.15802429616451263, 0.03511722758412361, -0.0825665071606636, -0.0719241201877594, 0.14024803042411804, -0.14358529448509216, -0.05951308459043503, -0.0816430076956749, 0.2340327650308609, -0.4148142337799072, 0.2877811789512634, 0.18843090534210205, 0.06270289421081543, 0.117731973528862, 0.24689248204231262, -0.12417393922805786, -0.2687942683696747, 0.37284350395202637, -0.2962968349456787, -0.08790320158004761, 0.16725510358810425, 0.010468203574419022, 0.10180368274450302, -0.17798100411891937, -0.29509103298187256, 0.3978039026260376, -0.00786568969488144, 0.262418657541275, 0.052132539451122284, 0.2533879578113556, 0.1738925576210022, -0.022785289213061333, 0.2581659257411957, -0.05248083174228668, -0.06772720813751221, -0.146170973777771, -0.0010091145522892475, 0.07352011650800705, 0.029686300083994865, -0.26029372215270996, -0.15661165118217468, 0.4041575789451599, -0.1065991222858429, 0.19349993765354156, 0.316132515668869, 0.08387976139783859, -0.05441340431571007, -0.5178289413452148, -0.12695282697677612, 0.0819736197590828, 0.053861163556575775, 0.14109615981578827, -0.020064430311322212, -0.09959040582180023, 0.4002569317817688, 0.04665103182196617, -0.09121638536453247, -0.11674734205007553, -0.0064965784549713135, -0.24958612024784088, -0.1215880960226059, 0.05176854878664017, 0.15789781510829926, -0.01781010814011097, -0.0600430965423584, 0.1222066655755043, 0.18484924733638763, 0.14433373510837555, 0.08231982588768005, 0.14576001465320587, 0.1453523188829422, -0.11780501902103424, -0.1048184484243393, 0.0018955061677843332, -0.03247717767953873, -0.24537178874015808, 0.1876767873764038, -0.03543588146567345, -0.26381799578666687, -0.5372962951660156, 0.08828392624855042, -0.22880889475345612, 0.04093058779835701, -0.3024856746196747, -0.03184224292635918, 0.1760607659816742, 0.007588584907352924, 0.07603176683187485, -0.1696106195449829, 0.24479444324970245, -0.35987353324890137, 0.12709730863571167, -0.19725801050662994, -0.2495066523551941, 0.03882872313261032, -0.28042593598365784, -0.053051725029945374, -0.02347699925303459, -0.05678051337599754, -0.27082040905952454, 0.06504423171281815, -0.1856781244277954, 0.30916672945022583, 0.5356980562210083, 0.34054020047187805, 0.029240567237138748, -0.14999298751354218, 0.10011714696884155, -0.10540322214365005, 0.22798272967338562, 0.03750209882855415, -0.06673503667116165, -0.10722032934427261, -0.2658884525299072, 0.2532441020011902, -0.18292750418186188, -0.23415331542491913, 0.01666710153222084, -0.45941272377967834, 0.2168780118227005, 0.09800111502408981, -0.0008799897623248398, 0.0604754239320755, 0.008152125403285027, -0.45294541120529175, 0.04859495535492897, -0.4307851493358612, 0.2427631914615631, -0.0922989621758461, 0.30016058683395386, 0.07037561386823654, 0.16709354519844055, -0.3774501383304596, -0.6568464636802673, 0.2559567093849182, -0.34696125984191895, 0.039664171636104584, 0.07442517578601837, -0.16714732348918915, -0.11282390356063843, 0.20923393964767456, -0.040151774883270264, 0.2129950076341629, 0.044458191841840744, -0.00403612433001399, 0.15634045004844666, -0.21692994236946106, -0.20365847647190094, -0.4877377450466156, -0.05524040758609772, 0.0020817958284169436, -0.40645918250083923, 0.4541438817977905, -0.03633534163236618, -0.24640607833862305, -0.35278815031051636, 0.22592352330684662, -0.10121431946754456, -0.0033879014663398266, 0.025004493072628975, 0.17070484161376953, 0.03524558246135712, -0.1194285899400711, -0.45587611198425293, 0.03069230727851391, -0.07539965212345123, -0.37799084186553955, 0.14928989112377167, 0.15263506770133972, 0.017934061586856842, -0.17377570271492004, 0.10945111513137817, 0.38741329312324524, 0.24843211472034454, 0.5152691006660461, -0.09536352008581161, 0.15822482109069824, -0.03142249211668968, 0.23996827006340027, -0.14967817068099976, -0.1498091071844101, -0.13299092650413513, 0.13232597708702087, 0.024152426049113274, 0.04989302530884743, -0.09742521494626999, 0.05434116721153259, 0.22938419878482819, -0.06082504615187645, 0.06624539941549301, 0.14791198074817657, -0.2643361985683441, 0.12474286556243896, 0.23347851634025574, -0.06964165717363358, 0.07612167298793793, 0.17350198328495026, 0.007999042049050331, -0.08982113748788834, -0.30069512128829956, -0.10953200608491898, 0.18242959678173065, 0.16651658713817596, 0.5337378978729248, 0.005829622503370047, 0.32145026326179504, -0.1366490125656128, -0.14775896072387695, 0.0287921205163002, -0.018866421654820442, 0.028834734112024307, -0.21764340996742249, 0.08991536498069763, -0.27399587631225586, 0.045877113938331604, -0.04085111245512962, -0.5973740220069885, 0.1676328331232071, -0.0625089481472969, -0.10865350067615509, -0.014019770547747612, -0.20819257199764252, 0.27538150548934937, 0.02049022726714611, -0.18512631952762604, 0.18970268964767456, -0.10982532054185867, -0.17616865038871765, -0.04812578484416008, -0.11759216338396072, 0.024251924827694893, 0.27322643995285034, -0.004463392775505781, -0.08651196956634521, 0.26221728324890137, -0.0713404044508934, -0.37593141198158264, -0.37475061416625977, 0.058373890817165375, -0.1334773153066635, 0.27128374576568604, 0.6011121869087219, -0.08819691836833954, 0.05690368264913559, -0.48771801590919495, 0.36608201265335083, -0.049885183572769165, -0.23717136681079865, 0.43115922808647156, -0.2244032919406891, 0.11039780080318451, -0.10153546929359436, -0.047570496797561646, -0.082307830452919, -0.29281121492385864, 0.2672375440597534, 0.44237229228019714, 0.20788656175136566, 0.1900184601545334, 0.367729127407074, 0.2935209572315216, -0.05950957536697388, -0.041813720017671585, 0.21013972163200378, 0.38512396812438965, 0.5554253458976746, -0.13260453939437866, -0.23906609416007996, 0.04697273299098015, -0.918272078037262, 0.059865470975637436, 0.27455654740333557, 0.09657372534275055, -0.05319180339574814, -0.1662643551826477, 0.24675485491752625, 0.1517782360315323, 0.0734160989522934, 0.23633630573749542, 0.07301407307386398, 0.030682599171996117, -0.09715946018695831, -0.07205405831336975, 0.3589547276496887, 0.0592510923743248, -0.05444182828068733, 0.05993104353547096, 0.2749345600605011, -0.25004836916923523, 0.49267318844795227, 0.03234492614865303, -0.39531809091567993, 0.2900141775608063, -0.2813071608543396, -0.15717321634292603, -0.27303341031074524, -0.03837724030017853, -0.20336641371250153, 0.02025318704545498, -0.07475582510232925, -0.0579003281891346, -0.04694727063179016, -0.3705843687057495, 0.20490017533302307, 0.34179261326789856, 0.04603329673409462, -0.059337958693504333, 0.06811529397964478, -0.10480740666389465, 0.1422339826822281, -0.09608889371156693, 0.015192967839539051, -0.3160894215106964, -0.10015764832496643, -0.21411336958408356, -0.23987747728824615, 0.13525405526161194, 0.03665788471698761, -0.35345950722694397, -0.08990772068500519, 0.18761657178401947, 0.2133788764476776, 0.5379567742347717, 0.006975939031690359, 0.28435954451560974, -0.12436579912900925, 0.14485308527946472, -0.004066926892846823, 0.3810844421386719, -0.25074532628059387, -0.21404315531253815, 0.5493083596229553, 0.20647352933883667, -0.4260234534740448, -0.19977015256881714, 0.01150857750326395, 0.004529871046543121, -0.3076280355453491, -0.014659668318927288, -0.31752943992614746, 0.035064391791820526, 0.43450480699539185, 0.29855528473854065, -0.018632763996720314, -0.014090974815189838, -0.19720104336738586, -0.18793149292469025, -0.06825798004865646, -0.3189403712749481, -0.006039848551154137, 0.3794982135295868, 0.05505738779902458, -0.3710646331310272, -0.4575193524360657, -0.036651741713285446, -0.20410798490047455, 0.021998876705765724, 0.4698270857334137, -0.18202583491802216, 0.11306272447109222, -0.38933223485946655, 0.015756741166114807, 0.3853178918361664, 0.13869421184062958, 0.11581220477819443, -0.033930350095033646, 0.1972130686044693, -0.052170634269714355, 0.391681969165802, -0.011400212533771992, -0.15004639327526093, 0.13453033566474915, 0.034018926322460175, -0.02900138683617115, -0.018413405865430832, -0.18756327033042908, 0.37662220001220703, -0.3450862467288971, -0.06278828531503677, -0.34352803230285645, 0.6501122117042542, 0.08761867880821228, 0.131352037191391, 0.23997901380062103, 0.4366549551486969, -0.19134700298309326, 0.312968373298645, 0.706778883934021, 0.7163442373275757, 0.019093064591288567, 0.14177469909191132, 0.5875766277313232, 0.048664286732673645, 0.28398144245147705, 0.3927367329597473, 0.12997335195541382, -0.44775494933128357, 0.08775655925273895, -0.11774938553571701, -0.342625230550766, 0.27841079235076904, 0.1346614956855774, -0.1673145741224289, -0.1764114946126938, -0.2258792519569397, 0.5874394178390503, 0.17034214735031128, 0.017973115667700768, -0.3542061150074005, -0.17259252071380615, -0.06089865043759346, 0.07368877530097961, 0.1389007568359375, -0.5042871236801147, -0.03248334303498268, -0.22971294820308685, -0.19759894907474518, 0.00374510302208364, -0.2245839685201645, -0.06362930685281754, -0.2012910097837448, -0.09640941768884659, 0.44809794425964355, -0.4837576448917389, 0.2040233463048935, 0.2226618081331253, 0.14459912478923798, -0.2737851142883301, -0.14725278317928314, -0.06846301257610321, 0.20307430624961853, -0.3200405538082123, -0.17941996455192566, -0.32341471314430237, 0.19670729339122772, 0.07858895510435104, 0.005545437335968018, 0.04696515575051308, 0.007979709655046463, -0.18573537468910217, -0.09393040835857391, 0.020762763917446136, 0.27109289169311523, -0.3104757070541382, -0.07629697769880295, -0.2866951823234558, -0.14704957604408264, -0.14738599956035614, 0.040967557579278946, 0.023046236485242844, -0.1762247085571289, -0.08339304476976395, 0.05496402457356453, 0.16994239389896393, 0.03785199671983719, -0.044075168669223785, 0.6143614649772644, 0.41088080406188965, 0.34308063983917236, 0.2616027891635895, 0.04669136554002762, -0.16338123381137848, 0.1584559977054596, 0.7001401782035828, -0.5357524156570435, 0.17567051947116852, 0.09490006417036057, -0.29780590534210205, -0.16409602761268616, 0.5314986705780029, -0.0296772513538599, 0.23332607746124268, -0.24501226842403412, -0.02022307924926281, -0.37627553939819336, 0.41653987765312195, 0.0881204828619957, 0.30439916253089905, -0.26103833317756653, -0.043973520398139954, -0.020467881113290787, -0.0843433365225792, -0.20425371825695038, 0.000011454364539531525, 0.02686719223856926, -0.04686404764652252, -0.48332473635673523, -0.04496007785201073, 0.11465346813201904, -0.028198350220918655, 0.0764419436454773, 0.04695483297109604, -0.3073558211326599, -0.09387250989675522, -0.06958412379026413, 0.14457522332668304, 0.07500700652599335, -0.1609964817762375, 0.13167032599449158, -0.018496138975024223, -0.29221776127815247, -0.11029102653265, -0.11734828352928162, -0.17165151238441467, -0.18854863941669464, -0.10036291927099228, 0.3707653284072876, 0.021867433562874794, -0.4096222221851349, -0.06227465718984604, -0.2591801583766937, 0.21437259018421173, 0.1431509107351303, 0.01041122805327177, 0.03387079015374184, -0.014072459191083908, 0.010854567401111126, 0.2403659224510193, -0.048933085054159164, -0.2167774736881256, 0.3667788505554199, -0.28439033031463623, -0.32875770330429077, -0.2931699752807617, 0.3823818266391754, 0.3120447099208832, -0.13002711534500122, 0.14662295579910278, 0.12182653695344925, 0.09573957324028015, -0.26359906792640686, 0.059946782886981964, 0.2136290818452835, -0.1237894743680954, 0.19577160477638245, 0.38094857335090637, 0.17333254218101501, 0.029395008459687233, -0.049951743334531784, 0.07471776753664017, -0.05832839757204056, 0.04048045724630356, 0.15803734958171844, 0.772752583026886, -0.088963083922863, 0.04687100648880005, 0.3463779091835022, 0.05720171332359314, 0.3092590570449829, -0.13760557770729065, -0.04992477595806122, 0.4082038104534149, 0.11940613389015198, -0.1470286250114441, 0.2353639304637909, 0.036515429615974426, 0.1436934769153595, 0.29086318612098694, 0.5998581051826477, -0.0655347928404808, 0.15461386740207672, 0.645866334438324, 0.12957994639873505, -0.06089935824275017, -0.3079257905483246, -0.1705603301525116, 0.0009384134318679571, -0.017082903534173965, -0.31977972388267517, -0.07181652635335922, -0.3400314450263977, -0.3777700662612915, -0.200176402926445, -0.321960985660553, 0.19667461514472961, -0.24144960939884186, 0.13999295234680176, -0.2682490646839142, 0.6058334708213806, 0.1733974814414978, 0.018611237406730652, -0.011450986377894878, 0.4665209949016571, 0.19313468039035797, -0.11038435995578766, -0.10411953926086426, 0.3926159739494324, 0.23527535796165466, 0.32067039608955383, -0.24029362201690674, -0.10840556770563126, -0.03841720148921013, -0.2632306218147278, 0.0478273443877697, 0.14192280173301697, 0.20506297051906586, 0.12602511048316956, 0.2356913536787033, 0.05492246150970459, -0.0762816071510315, 0.1294136345386505, 0.10683530569076538, -0.024024322628974915, -0.18707780539989471, 0.44499945640563965, -0.20764969289302826, -0.14979563653469086, 0.14667560160160065, -0.06259465962648392, -0.2974494993686676, -0.141936257481575, 0.18498727679252625, -0.11328200995922089, 0.006852250080555677, -0.004378404933959246, 0.03154374659061432, -0.15522755682468414, 0.5530233979225159, 0.04631219431757927, 0.4742757976055145, -0.08364703506231308, -0.04956541210412979, -0.29237255454063416, 0.2667787969112396, -0.49525660276412964, -0.0020590946078300476, 0.49606403708457947, 0.25623616576194763, -0.006530219689011574, 0.13963104784488678, 0.148706316947937, 0.3494862914085388, -0.06305824965238571, 0.420866996049881, -0.24862010776996613, -0.18346107006072998, 0.42881059646606445, 0.016288679093122482, -0.11657299846410751, -0.3974458575248718, 0.22012288868427277, -0.22666999697685242, -0.024923602119088173, 0.2209421545267105, 0.025128042325377464, 0.16647784411907196, 0.10088129341602325, 0.5126072764396667, 0.021320777013897896, 0.0937747210264206, 0.23486675322055817, 0.00714145926758647, -0.3104788362979889, -0.2480718046426773, -0.24171046912670135, 0.14544473588466644, 0.04298853874206543, 0.43806663155555725, -0.22617632150650024, 0.1597028523683548, -0.0859447568655014, -0.08571161329746246, 0.07238510251045227, 0.1899729073047638, -0.20992502570152283, 0.5638704299926758, -0.6787699460983276, -0.0031186845153570175, -0.024871133267879486, -0.24679423868656158, 0.05844995006918907, 0.0574178472161293, -0.16132919490337372, -0.35934922099113464, 0.6176452040672302, -0.1556900143623352, -0.4157746136188507, 0.14466619491577148, -0.09502348303794861, 0.4629298746585846, -0.1521490216255188, -0.2348790019750595, -0.12059726566076279, 0.35657623410224915, 0.04179021343588829, 0.01968359388411045, 0.01532475184649229, 0.08727289736270905, -0.009389796294271946, -0.23243747651576996, 0.13488535583019257, -0.09557242691516876, -0.02585625648498535, -0.3619653880596161, -0.5236231088638306 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Cool So please consider this issue as a feature request for: ``` Array3D(shape=(None, 137, 2), dtype="float32") ``` its a way to represent videos, poses, and other cool sequences
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
28
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Cool So please consider this issue as a feature request for: ``` Array3D(shape=(None, 137, 2), dtype="float32") ``` its a way to represent videos, poses, and other cool sequences
[ -0.1195080503821373, 0.24245095252990723, -0.08252320438623428, 0.09619449824094772, 0.3023016154766083, -0.0807921290397644, 0.6678083539009094, 0.1274508833885193, -0.45234474539756775, 0.26682180166244507, 0.3651498258113861, 0.15331649780273438, -0.25517597794532776, 0.1488417237997055, 0.2744101583957672, -0.4257732927799225, 0.13714876770973206, 0.571872353553772, 0.18966056406497955, 0.11347045004367828, -0.08112349361181259, -0.09107144176959991, -0.15861709415912628, 0.18719446659088135, -0.30315735936164856, -0.01808459684252739, -0.17795439064502716, -0.3297397196292877, -0.13452474772930145, -0.4514864683151245, 0.2623901963233948, 0.03896358609199524, 0.1677662432193756, 0.14945995807647705, -0.0001254905655514449, -0.01678788661956787, 0.514005184173584, 0.00554816797375679, -0.19652003049850464, 0.07104697078466415, 0.03904906287789345, -0.5094622373580933, 0.23154430091381073, -0.2614160180091858, -0.04862793907523155, -0.5891056656837463, -0.037330951541662216, -0.0661957636475563, -0.03660215809941292, 0.13774915039539337, 0.0999123752117157, 0.24490545690059662, 0.18954233825206757, -0.0658867135643959, 0.5248131155967712, 0.610653281211853, -0.4015273153781891, -0.0032518061343580484, 0.4093415141105652, 0.04848233610391617, 0.0090826116502285, -0.04466811195015907, -0.11383803188800812, 0.15280041098594666, 0.37134137749671936, 0.12533901631832123, 0.41572341322898865, -0.3516635298728943, -0.11975041776895523, 0.38046738505363464, 0.5132589936256409, -0.2269846647977829, -0.16332805156707764, -0.1825217604637146, 0.13759303092956543, -0.11918658018112183, -0.16815777122974396, 0.2776915431022644, -0.3058534860610962, -0.1067291870713234, -0.3200056850910187, 0.18121737241744995, -0.45197606086730957, 0.4415169954299927, 0.23196527361869812, -0.03246123716235161, 0.02653316967189312, 0.15501071512699127, -0.1543135941028595, -0.20966891944408417, 0.6051816344261169, -0.31449297070503235, 0.17138038575649261, 0.026673348620533943, 0.23157815635204315, 0.0007794559351168573, -0.17810523509979248, -0.25845596194267273, 0.2240983098745346, 0.0240558460354805, 0.18966864049434662, 0.0009135304135270417, 0.33610740303993225, 0.054935578256845474, -0.23508906364440918, 0.15510952472686768, 0.019665861502289772, -0.2865146994590759, -0.10869497805833817, 0.16412200033664703, 0.05238337069749832, 0.08128046989440918, -0.09288263320922852, -0.1581505984067917, 0.21445614099502563, 0.14459237456321716, 0.22469787299633026, 0.33234408497810364, 0.09896357357501984, -0.02121850475668907, -0.6472468972206116, -0.11901732534170151, 0.04935091361403465, 0.16761191189289093, 0.11621154099702835, 0.02179509960114956, -0.14202140271663666, 0.42019644379615784, 0.04133071377873421, -0.10683614760637283, -0.13273097574710846, 0.028479550033807755, -0.2020908147096634, 0.03455158323049545, 0.14741957187652588, 0.27192726731300354, 0.06823868304491043, -0.10987839102745056, 0.2920939028263092, 0.11498736590147018, 0.2518877685070038, 0.13041535019874573, 0.26805660128593445, 0.18439741432666779, -0.17666056752204895, -0.029183797538280487, -0.010827014222741127, 0.023978333920240402, -0.20191439986228943, 0.25281670689582825, 0.03599921241402626, -0.291166752576828, -0.4017092287540436, 0.06757298111915588, -0.13321146368980408, 0.1147957369685173, 0.011066877283155918, 0.03926670551300049, 0.12916193902492523, -0.09209580719470978, 0.09193312376737595, -0.06536276638507843, 0.09205585718154907, -0.4038435220718384, 0.11009106785058975, 0.05874355509877205, -0.3762674331665039, -0.0060137053951621056, -0.17853358387947083, 0.05989007651805878, -0.05814729258418083, -0.09338337928056717, -0.24550065398216248, 0.1491202563047409, -0.2815335988998413, 0.09785499423742294, 0.595565140247345, 0.06837105751037598, -0.06656933575868607, 0.12860387563705444, 0.0778096467256546, -0.19110463559627533, 0.2700210213661194, 0.17735224962234497, -0.07449762523174286, -0.09173276275396347, -0.3189816474914551, 0.31595101952552795, -0.17401279509067535, -0.20624901354312897, 0.08530283719301224, -0.48056042194366455, 0.5045509934425354, 0.12277800589799881, 0.09113038331270218, -0.01219190750271082, -0.0017254179110750556, -0.3954717516899109, 0.10352995991706848, -0.5231145024299622, 0.22635914385318756, 0.06486676633358002, 0.327250212430954, -0.10172900557518005, 0.014255188405513763, -0.2904200851917267, -0.7621379494667053, 0.11185770481824875, -0.3817783296108246, 0.03239664062857628, -0.09285927563905716, -0.09416515380144119, -0.009801526553928852, 0.14356748759746552, -0.15883661806583405, 0.1365588754415512, 0.018694451078772545, 0.22345474362373352, 0.17552244663238525, -0.09271074086427689, -0.14796774089336395, -0.48860591650009155, 0.16053928434848785, -0.09355971217155457, -0.3995206654071808, 0.6104871034622192, -0.030408846214413643, -0.341274231672287, -0.23336653411388397, 0.30264511704444885, 0.11167935281991959, -0.1268322616815567, 0.07595419138669968, 0.023276323452591896, -0.04671349376440048, -0.007260394282639027, -0.5716795325279236, 0.14518116414546967, 0.16953931748867035, -0.5125939846038818, 0.3018425703048706, 0.23807527124881744, -0.02086583338677883, -0.26939424872398376, 0.2650478780269623, 0.5354461669921875, 0.01639949344098568, 0.5599130988121033, -0.1488923281431198, 0.10691025853157043, -0.08349434286355972, 0.3042314350605011, -0.17105834186077118, -0.2814382314682007, -0.07708235085010529, 0.3216002285480499, 0.2348313331604004, -0.08163881301879883, -0.12026134878396988, 0.16733117401599884, 0.3450404405593872, -0.10630373656749725, 0.11705758422613144, 0.10448294132947922, -0.16724015772342682, 0.030595334246754646, 0.2194490134716034, -0.24864411354064941, -0.009597602300345898, 0.11336766928434372, -0.15090447664260864, -0.0167221799492836, -0.17900019884109497, -0.1775202751159668, 0.23999810218811035, 0.1978992521762848, 0.537718653678894, 0.17349794507026672, 0.2530478835105896, -0.23421433568000793, -0.2563256025314331, -0.2838899791240692, 0.07821610569953918, -0.002949264831840992, -0.1662905365228653, 0.0819263681769371, -0.09859714657068253, -0.17535850405693054, -0.05382215604186058, -0.8407208919525146, -0.054961953312158585, -0.01614256389439106, -0.1332009881734848, -0.018301060423254967, -0.12504452466964722, 0.29046398401260376, 0.13499779999256134, -0.11611288785934448, 0.1887720674276352, -0.12794221937656403, -0.23948076367378235, -0.020878750830888748, 0.0010635001817718148, -0.047881387174129486, 0.19386078417301178, 0.11021652072668076, -0.028572235256433487, 0.08936008810997009, 0.19561420381069183, -0.44369134306907654, -0.41406747698783875, 0.07615552842617035, -0.05464698746800423, 0.30432379245758057, 0.6237303018569946, -0.028849545866250992, 0.14163582026958466, -0.4335574507713318, 0.37200209498405457, 0.030733486637473106, -0.19801613688468933, 0.2701033353805542, -0.1913008987903595, 0.13115081191062927, -0.0774388536810875, 0.12743815779685974, -0.043630801141262054, -0.2877105474472046, 0.17427122592926025, 0.45358923077583313, 0.22852256894111633, 0.0646868422627449, 0.3853495419025421, 0.306438148021698, 0.03193904086947441, 0.061769839376211166, 0.25028952956199646, 0.31398630142211914, 0.344000905752182, -0.15348178148269653, -0.15167862176895142, -0.07957840710878372, -0.8197314739227295, -0.04146014526486397, 0.19953665137290955, 0.005626445170491934, -0.3204472064971924, -0.1587315797805786, 0.28159236907958984, 0.021230850368738174, 0.04662557318806648, 0.3734772801399231, 0.12325979024171829, 0.11930464953184128, -0.0999315157532692, -0.2473718225955963, 0.3200203478336334, 0.1477469652891159, -0.16016702353954315, 0.010415482334792614, 0.42386719584465027, -0.2608790397644043, 0.600872278213501, -0.010327782481908798, -0.3659655451774597, 0.31635230779647827, -0.16807596385478973, -0.03080143593251705, -0.21455217897891998, -0.024850433692336082, -0.14439016580581665, 0.087409108877182, -0.09681336581707001, -0.051510199904441833, -0.19671201705932617, -0.2967807650566101, 0.14977304637432098, 0.2748064696788788, -0.06452995538711548, 0.016301507130265236, -0.04853339493274689, -0.1632584184408188, 0.1895655244588852, -0.17047441005706787, 0.09037834405899048, -0.26275888085365295, -0.1558353155851364, -0.13048024475574493, -0.2118912935256958, 0.25596994161605835, -0.02616465464234352, -0.31734612584114075, -0.07321327179670334, 0.07022147625684738, 0.19077260792255402, 0.6411179900169373, 0.017914118245244026, 0.12417624890804291, -0.0189875029027462, 0.08274248242378235, -0.09361589699983597, 0.7690868377685547, -0.24368968605995178, -0.12895308434963226, 0.4463678002357483, 0.03623925894498825, -0.4153813421726227, -0.192095085978508, -0.11460518836975098, -0.07105283439159393, -0.3726537227630615, 0.12698064744472504, -0.2047904133796692, -0.0257868655025959, 0.3133610486984253, 0.3239355683326721, -0.018565654754638672, -0.09819407016038895, -0.11918453127145767, -0.1535012573003769, -0.19673074781894684, -0.3282923698425293, -0.04001285880804062, 0.32376325130462646, 0.24263347685337067, -0.48547616600990295, -0.3750821352005005, -0.11223509162664413, -0.06753336638212204, -0.12783268094062805, 0.39817774295806885, -0.06365451961755753, 0.07895426452159882, -0.45024213194847107, 0.019328534603118896, 0.22274529933929443, -0.13193461298942566, 0.24970832467079163, 0.02498268522322178, 0.19441169500350952, -0.06538718938827515, 0.5268791913986206, 0.2793330252170563, 0.007095566019415855, 0.041104380041360855, 0.08464358001947403, 0.09077138453722, -0.18725600838661194, -0.10357734560966492, 0.38377106189727783, -0.448593407869339, -0.10142186284065247, -0.2877461314201355, 0.5306916832923889, -0.055160824209451675, 0.18104583024978638, 0.09352349489927292, 0.4269599914550781, -0.21412916481494904, 0.2697048783302307, 0.6378158926963806, 0.9567363262176514, 0.034047070890665054, 0.3521610200405121, 0.6656084060668945, -0.0162937231361866, 0.24306969344615936, 0.37266838550567627, 0.14535190165042877, -0.4971998631954193, -0.026708010584115982, -0.1719360202550888, -0.4330451190471649, 0.18196533620357513, 0.13267700374126434, -0.25654980540275574, -0.05614196136593819, -0.14850495755672455, 0.2846318483352661, 0.07065470516681671, -0.03625377267599106, -0.10296571999788284, -0.14468687772750854, -0.09484564512968063, 0.001089860568754375, 0.01237594522535801, -0.3828652799129486, -0.1385522335767746, -0.3460877537727356, -0.022886918857693672, 0.03275587782263756, -0.14556585252285004, 0.002141831209883094, -0.2827852666378021, 0.041915811598300934, 0.3617229759693146, -0.6093156933784485, 0.030667416751384735, 0.08797958493232727, 0.051580559462308884, -0.2078799307346344, -0.11856716126203537, -0.10194594413042068, 0.33508968353271484, -0.29274168610572815, -0.20244604349136353, -0.3291122317314148, 0.30696001648902893, -0.03669314831495285, 0.034351248294115067, 0.1367974877357483, 0.0006996681331656873, -0.09086118638515472, -0.15946078300476074, 0.015069989487528801, 0.2453799694776535, -0.16309785842895508, -0.34232112765312195, -0.2061370462179184, -0.10854242742061615, -0.04235946387052536, -0.0009980378672480583, 0.0876535028219223, -0.20882819592952728, -0.2218291461467743, 0.14765720069408417, 0.10276655107736588, -0.049763862043619156, -0.006663153413683176, 0.46247708797454834, 0.20398446917533875, 0.3091703951358795, 0.350884348154068, -0.07022537291049957, -0.18640896677970886, 0.20116011798381805, 0.4627944529056549, -0.5874418616294861, 0.18544067442417145, 0.1240343376994133, -0.2766520082950592, -0.08491922914981842, 0.48946240544319153, -0.13674525916576385, 0.34552446007728577, -0.1024446040391922, -0.0035816857125610113, -0.3030042350292206, 0.1414211392402649, 0.08511349558830261, 0.36112138628959656, -0.2015335112810135, -0.12058448046445847, 0.002042594365775585, -0.15577538311481476, -0.16037750244140625, 0.027445906773209572, 0.15076938271522522, 0.07184888422489166, -0.6480780243873596, -0.16031479835510254, -0.1307605355978012, 0.17008017003536224, 0.04278814047574997, 0.06924021989107132, -0.47201448678970337, -0.04957585781812668, -0.044677138328552246, 0.21609969437122345, 0.08680333942174911, -0.07375982403755188, 0.16761532425880432, 0.049484983086586, -0.32841452956199646, -0.1556381732225418, -0.09086523205041885, -0.14411482214927673, -0.15055634081363678, -0.06302042305469513, 0.3078474700450897, -0.09977684915065765, -0.3593613803386688, -0.12164945900440216, -0.19800612330436707, 0.311601459980011, 0.10844823718070984, 0.05448494851589203, -0.012075095437467098, -0.01243972685188055, -0.06978552788496017, 0.2384708821773529, -0.07673750072717667, -0.18828816711902618, 0.35753822326660156, -0.2864847183227539, -0.3052311837673187, -0.24008996784687042, 0.3885742127895355, 0.02248816378414631, -0.24479039013385773, 0.07347472012042999, 0.106697678565979, 0.08827965706586838, -0.2088204026222229, -0.03263486176729202, 0.13868652284145355, -0.0958515927195549, 0.1512497365474701, 0.4127179980278015, 0.11994052678346634, 0.04771311581134796, -0.014456317760050297, 0.06681405752897263, -0.20373232662677765, 0.02146289497613907, 0.13469360768795013, 0.5152417421340942, -0.09642010927200317, 0.04653141275048256, 0.36290207505226135, 0.11971922218799591, 0.3032965064048767, -0.0718872919678688, -0.09997506439685822, 0.2413759082555771, 0.18972352147102356, -0.14816538989543915, 0.28054457902908325, 0.07977644354104996, 0.04726776108145714, 0.24415047466754913, 0.5410900115966797, 0.038821496069431305, 0.08458703756332397, 0.25966063141822815, 0.11917560547590256, -0.04987892508506775, -0.45478111505508423, -0.0564659908413887, 0.009520345367491245, 0.0025746964383870363, -0.0519646592438221, -0.03451581671833992, -0.21873033046722412, -0.21390321850776672, -0.12415869534015656, -0.3498767018318176, 0.16360220313072205, -0.027808288112282753, 0.23095197975635529, -0.05943549424409866, 0.7911982536315918, 0.14746205508708954, 0.03510621190071106, -0.08233124017715454, 0.365471750497818, 0.1892615705728531, -0.08421798795461655, -0.2363676130771637, 0.34243321418762207, 0.3028407096862793, 0.3057921826839447, -0.4137304127216339, -0.002747045597061515, -0.04820678010582924, -0.25140175223350525, 0.0007556345080956817, 0.11046930402517319, 0.19965322315692902, 0.36558598279953003, 0.24302634596824646, 0.05292975530028343, -0.07758483290672302, 0.10956551134586334, 0.26216110587120056, -0.0590658076107502, -0.26083633303642273, 0.47481676936149597, -0.3683915138244629, -0.07728362828493118, 0.02005930431187153, -0.021400900557637215, -0.44130247831344604, -0.09221429377794266, 0.34336888790130615, -0.22229309380054474, -0.031497515738010406, 0.007883762940764427, 0.00036615040153265, -0.40764790773391724, 0.4685802459716797, 0.05657997727394104, 0.5203978419303894, -0.1426037847995758, -0.05702965706586838, -0.1997389942407608, 0.22563084959983826, -0.18276652693748474, 0.06312686204910278, 0.36024972796440125, 0.2822043299674988, -0.07029414921998978, 0.1351904422044754, 0.08179658651351929, 0.34292837977409363, -0.009584576822817326, 0.3274746239185333, -0.3078692555427551, 0.07214699685573578, 0.3332427442073822, 0.06983468681573868, -0.08409184217453003, -0.3582057058811188, 0.15510667860507965, -0.3811796009540558, -0.04116975516080856, 0.18657808005809784, 0.047658439725637436, 0.0602169930934906, 0.34296777844429016, 0.4439251124858856, 0.002110225846990943, 0.07944109290838242, 0.125515878200531, -0.1302102655172348, -0.1910487413406372, -0.1506790816783905, 0.017183125019073486, 0.4100223779678345, -0.030390817672014236, 0.5122295022010803, -0.25263646245002747, 0.46741560101509094, -0.15937550365924835, 0.14068353176116943, 0.1890547126531601, 0.2505681812763214, -0.14291009306907654, 0.4738934338092804, -0.6883046627044678, 0.06143666058778763, 0.11719150841236115, -0.24475319683551788, 0.10541806370019913, 0.1444072723388672, -0.09446520358324051, -0.39616143703460693, 0.6354133486747742, -0.2361481785774231, -0.5173563957214355, 0.18918170034885406, -0.09221460670232773, 0.32424628734588623, -0.04866454005241394, -0.3283880054950714, -0.08397306501865387, 0.40840959548950195, 0.02945653721690178, 0.0013385164784267545, 0.10201624035835266, -0.09592778980731964, -0.010798640549182892, -0.15528814494609833, 0.1843915730714798, -0.01526765525341034, -0.1727767288684845, -0.42699718475341797, -0.5472990274429321 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq well, so sequence of sequences doesn't work either... ``` pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648 ```
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
23
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> @lhoestq well, so sequence of sequences doesn't work either... ``` pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648 ```
[ -0.16009224951267242, 0.15517275035381317, -0.13657985627651215, 0.20118556916713715, 0.23780415952205658, 0.002426737919449806, 0.561533510684967, 0.08139846473932266, -0.1561109721660614, 0.1868874430656433, 0.3679425120353699, 0.1477249264717102, -0.19520969688892365, -0.07515119016170502, 0.19821752607822418, -0.37402018904685974, 0.1051328033208847, 0.4515884220600128, 0.09581458568572998, 0.0815604031085968, -0.12967900931835175, -0.10000788420438766, -0.25318464636802673, 0.23153097927570343, -0.25456854701042175, -0.11556398123502731, -0.1887790858745575, -0.2444770634174347, -0.06532866507768631, -0.6357088685035706, 0.2661864161491394, 0.04157527536153793, 0.11110695451498032, 0.2200848013162613, -0.00012018423876725137, -0.04306384548544884, 0.4993036091327667, 0.05532143637537956, -0.186354398727417, -0.04839180409908295, -0.01658676005899906, -0.5161790251731873, 0.2466992437839508, -0.2830972671508789, 0.025600900873541832, -0.6335043907165527, -0.05077819153666496, -0.11116923391819, 0.09917943179607391, 0.21628880500793457, 0.13575796782970428, 0.10129918903112411, 0.2948572039604187, -0.13792572915554047, 0.4939412772655487, 0.18564938008785248, -0.26454541087150574, -0.006446549203246832, 0.42438316345214844, 0.007799400947988033, 0.003983770497143269, -0.2259995937347412, -0.0914997085928917, 0.19466091692447662, 0.3239567279815674, 0.25442516803741455, 0.17280130088329315, -0.268416166305542, -0.11674302071332932, 0.46339887380599976, 0.5487831234931946, -0.1992020457983017, -0.20620276033878326, -0.1623501181602478, 0.025136731564998627, -0.24955160915851593, -0.01685645617544651, 0.22302386164665222, -0.2625143527984619, -0.06791090220212936, -0.2960219979286194, 0.22520498931407928, -0.3634755611419678, 0.3561136722564697, 0.27390459179878235, 0.07418566197156906, 0.036259621381759644, 0.1922668069601059, -0.04267692193388939, -0.16010448336601257, 0.4481905400753021, -0.2737983167171478, 0.04113292694091797, 0.2004852592945099, -0.04778306558728218, 0.08125247061252594, -0.17875464260578156, -0.25985822081565857, 0.3866293132305145, 0.10062500834465027, 0.28537309169769287, -0.049744416028261185, 0.24079227447509766, 0.01129125989973545, -0.1565425843000412, 0.22878646850585938, -0.03543683886528015, -0.19554834067821503, -0.15343855321407318, 0.1481020301580429, 0.11318189650774002, 0.10706869512796402, -0.08411251753568649, -0.26716142892837524, 0.3421695828437805, -0.010037432424724102, 0.16210304200649261, 0.26288875937461853, -0.0015812247293069959, 0.15848015248775482, -0.7266275882720947, -0.22755950689315796, -0.010235152207314968, 0.2344362586736679, 0.06736987084150314, -0.07876672595739365, -0.14435340464115143, 0.3206440508365631, 0.06907204538583755, 0.017556633800268173, -0.22207507491111755, -0.028284123167395592, -0.1574113816022873, 0.14800989627838135, -0.0056370762176811695, 0.1456129401922226, 0.13143104314804077, -0.0021544364280998707, 0.12790808081626892, 0.04693041741847992, 0.24037829041481018, -0.05914200842380524, 0.180851012468338, 0.18605296313762665, -0.1897391527891159, 0.07943669706583023, -0.013282930478453636, -0.1411847621202469, -0.20696918666362762, 0.33736246824264526, -0.07481353729963303, -0.2489270567893982, -0.23960290849208832, 0.119537353515625, -0.2464340627193451, 0.143636092543602, -0.05677540600299835, 0.022128526121377945, 0.35044240951538086, 0.0329592265188694, 0.09728662669658661, -0.04631367698311806, 0.13431496918201447, -0.3639494776725769, 0.03161083534359932, 0.02917044423520565, -0.4040640592575073, 0.10277464240789413, -0.017000602558255196, 0.042076870799064636, 0.0010880747577175498, 0.00022284770966507494, -0.2483721226453781, 0.31674036383628845, -0.33989235758781433, 0.3151928186416626, 0.47719651460647583, 0.2314244657754898, -0.14764823019504547, 0.078026682138443, 0.00870540738105774, -0.18054050207138062, 0.28362295031547546, 0.12470687180757523, -0.07068226486444473, -0.17883005738258362, -0.281487375497818, 0.19679394364356995, -0.06826873123645782, -0.26830363273620605, -0.04745173454284668, -0.35633209347724915, 0.3282259404659271, 0.009510166943073273, -0.03000844456255436, -0.05791105329990387, -0.061150819063186646, -0.3634938597679138, 0.09846705198287964, -0.3985057771205902, 0.16821983456611633, 0.31026825308799744, 0.2540777325630188, -0.10700555145740509, 0.018003081902861595, -0.22155669331550598, -0.6752676367759705, 0.13675092160701752, -0.3360017240047455, -0.07144661992788315, -0.16087572276592255, -0.04218553006649017, -0.17713022232055664, 0.25564002990722656, -0.2550114095211029, 0.15288260579109192, 0.07672783732414246, 0.172239288687706, 0.23793020844459534, -0.2839880883693695, -0.12917238473892212, -0.24621206521987915, 0.02356717549264431, -0.03468562290072441, -0.4833650588989258, 0.634550154209137, -0.06430463492870331, -0.3637024462223053, -0.21964019536972046, 0.13412484526634216, 0.04577116668224335, -0.11066710948944092, 0.08895688503980637, 0.22542142868041992, 0.06352410465478897, -0.16462363302707672, -0.49934032559394836, 0.003828472923487425, 0.12411940842866898, -0.5690359473228455, 0.09151936322450638, 0.23022551834583282, 0.006118438672274351, -0.2539626955986023, 0.10378077626228333, 0.33098435401916504, 0.009148302488029003, 0.5892525911331177, -0.1080666333436966, -0.05829663947224617, -0.022379033267498016, 0.20746207237243652, -0.10527981072664261, -0.1419222205877304, 0.04791339859366417, 0.36491936445236206, 0.33323726058006287, -0.059375178068876266, -0.08091501146554947, 0.07297588139772415, 0.23314528167247772, -0.05247654393315315, 0.003004876896739006, 0.08715902268886566, -0.1870851367712021, -0.04042128473520279, 0.1665884554386139, -0.2382635772228241, 0.1528134047985077, 0.15056641399860382, -0.15060527622699738, -0.014065600000321865, -0.31691065430641174, -0.22607384622097015, 0.13855136930942535, 0.15584291517734528, 0.5817116498947144, 0.1286945343017578, 0.33343803882598877, -0.13192905485630035, -0.19320033490657806, -0.37912455201148987, 0.05765239894390106, 0.151216059923172, -0.1938260942697525, 0.17379584908485413, -0.14543971419334412, 0.03654840216040611, 0.02811899036169052, -0.6938300728797913, 0.04465801268815994, -0.09636001288890839, -0.1944793462753296, 0.05386388301849365, -0.10521381348371506, 0.21629337966442108, 0.12007112056016922, -0.21245402097702026, 0.28098264336586, -0.061084821820259094, -0.1656043827533722, -0.09610563516616821, -0.012270829640328884, 0.03605817258358002, 0.21402350068092346, 0.047059569507837296, 0.002929729176685214, 0.1734703928232193, -0.08416201174259186, -0.4023244082927704, -0.3385604918003082, 0.07223167270421982, -0.08918319642543793, 0.2077840119600296, 0.5260068774223328, 0.0793338418006897, -0.043328907340765, -0.500162661075592, 0.3418543338775635, 0.17125961184501648, -0.27878883481025696, 0.35814571380615234, -0.2093985229730606, 0.1884746253490448, 0.02640087530016899, -0.08357426524162292, -0.013348674401640892, -0.3030289113521576, 0.2011640965938568, 0.5015563368797302, 0.2515639066696167, 0.28234899044036865, 0.35745421051979065, 0.26337093114852905, -0.04834924265742302, -0.0047425623051822186, 0.16474001109600067, 0.3353201150894165, 0.35850292444229126, -0.10839662700891495, -0.2562660574913025, -0.10587418079376221, -0.8942082524299622, 0.06576965749263763, 0.33065563440322876, -0.053446926176548004, -0.2664451003074646, -0.29601094126701355, 0.2652876377105713, -0.044468652456998825, 0.12494626641273499, 0.3958423435688019, 0.15150555968284607, -0.027753297239542007, -0.07511438429355621, -0.06603426486253738, 0.4360361695289612, 0.014645981602370739, 0.03303522989153862, 0.012260491959750652, 0.3850981593132019, -0.1809917390346527, 0.6154462099075317, 0.23864257335662842, -0.29489633440971375, 0.24687495827674866, -0.268777072429657, -0.016100425273180008, -0.380498468875885, 0.14055947959423065, -0.2149466723203659, 0.13250012695789337, -0.1396264284849167, -0.08481418341398239, -0.15572994947433472, -0.18568554520606995, 0.21088868379592896, 0.3257867693901062, -0.05601200461387634, 0.027061883360147476, -0.01248882245272398, -0.006273772567510605, 0.215773344039917, -0.07226109504699707, 0.008547170087695122, -0.1657002717256546, -0.12190940976142883, -0.28322240710258484, -0.3324122428894043, 0.25492626428604126, -0.042073093354701996, -0.41643330454826355, -0.06957404315471649, 0.047071486711502075, 0.17468085885047913, 0.5719998478889465, 0.05720924213528633, 0.2247128188610077, -0.1525764912366867, 0.11330433934926987, -0.13672590255737305, 0.502954363822937, -0.16148407757282257, -0.21734978258609772, 0.5037887692451477, 0.14878366887569427, -0.39885422587394714, -0.17282648384571075, -0.14505121111869812, 0.10501791536808014, -0.3108477294445038, 0.037408482283353806, -0.3851982355117798, 0.035042498260736465, 0.22700446844100952, 0.45198923349380493, 0.030862800776958466, -0.1545880138874054, -0.1730755716562271, -0.23413774371147156, -0.16797031462192535, -0.17699715495109558, -0.07721477001905441, 0.33253416419029236, 0.11854100227355957, -0.5217427015304565, -0.28310874104499817, -0.22187474370002747, -0.21664613485336304, -0.11684463918209076, 0.4292851686477661, -0.09597242623567581, 0.1976204216480255, -0.42441123723983765, -0.02171230874955654, 0.27566245198249817, 0.07550507038831711, 0.20742276310920715, 0.047186244279146194, 0.11861704289913177, -0.15475918352603912, 0.3812931478023529, 0.1365736722946167, -0.09779183566570282, 0.12088340520858765, 0.08734152466058731, 0.1731404811143875, -0.030942639335989952, -0.1182432621717453, 0.28587448596954346, -0.38705796003341675, -0.24091894924640656, -0.2526105046272278, 0.6065801978111267, 0.034512054175138474, 0.13066424429416656, 0.20119744539260864, 0.37899550795555115, -0.19072845578193665, 0.15445126593112946, 0.5385934114456177, 0.8276062607765198, -0.1091827005147934, 0.10955888777971268, 0.6449868083000183, 0.10660700500011444, 0.3623758554458618, 0.4651370942592621, 0.11031899601221085, -0.46435537934303284, -0.14541561901569366, -0.09503913670778275, -0.4753384292125702, 0.18984325230121613, 0.22017374634742737, -0.2813175916671753, 0.1027403473854065, -0.2025313526391983, 0.4250152111053467, 0.11371003836393356, -0.17043298482894897, -0.10864847153425217, -0.12362662702798843, -0.20006290078163147, 0.05827039107680321, 0.047661472111940384, -0.35268160700798035, -0.1718631386756897, -0.1864738166332245, -0.09502162784337997, -0.10464556515216827, -0.07011505216360092, -0.01499996893107891, -0.3250385820865631, -0.045402642339468, 0.483661025762558, -0.7281644940376282, 0.01985151879489422, 0.14081266522407532, 0.05783597007393837, -0.17666292190551758, -0.07002711296081543, -0.18267320096492767, 0.0984092727303505, -0.28285062313079834, -0.16208124160766602, -0.32189276814460754, 0.18635940551757812, 0.009795996360480785, 0.08413280546665192, 0.13133394718170166, -0.10874056816101074, -0.13770441710948944, 0.051309771835803986, 0.17947079241275787, 0.13635008037090302, -0.22458361089229584, -0.20159544050693512, -0.05018461123108864, -0.2770042419433594, -0.13446730375289917, 0.03154073283076286, 0.14421117305755615, -0.15306173264980316, -0.1088704764842987, 0.08988074213266373, 0.048056669533252716, -0.08801305294036865, 0.026798177510499954, 0.6479649543762207, 0.20055797696113586, 0.4696873128414154, 0.26974159479141235, -0.05491959676146507, -0.19102278351783752, 0.059600312262773514, 0.5864033102989197, -0.6140021681785583, 0.13773265480995178, 0.08553154766559601, -0.10888046026229858, -0.01705579273402691, 0.5587219595909119, -0.14631737768650055, 0.3311341404914856, -0.09944973886013031, -0.08585242927074432, -0.3952619433403015, 0.2944923937320709, 0.03458377346396446, 0.27144908905029297, -0.24112190306186676, -0.005689054261893034, -0.04902445524930954, -0.017764253541827202, -0.20132113993167877, -0.02743501029908657, -0.10238414257764816, 0.07542731612920761, -0.5516828298568726, -0.006327491719275713, 0.006059520412236452, 0.11832677572965622, 0.0839465856552124, 0.1277218759059906, -0.40312933921813965, -0.16667379438877106, 0.04904517903923988, 0.16361038386821747, 0.14344868063926697, -0.13647811114788055, 0.10579179227352142, 0.016442859545350075, -0.20591595768928528, -0.19042114913463593, -0.08907704055309296, -0.1587846875190735, -0.1524304747581482, -0.17989283800125122, 0.3732469081878662, 0.013350117951631546, -0.4500884413719177, -0.09930761158466339, -0.32066357135772705, 0.3353326618671417, 0.08383090049028397, 0.03387025371193886, 0.05185200646519661, -0.06759746372699738, -0.13659977912902832, 0.2506701648235321, 0.02524249255657196, -0.28265994787216187, 0.3494507670402527, -0.45874178409576416, -0.38218140602111816, -0.1372290700674057, 0.45602816343307495, 0.28274059295654297, -0.19411751627922058, 0.07832363992929459, 0.06015453860163689, 0.13809767365455627, -0.2400977462530136, -0.03450779244303703, 0.07294362038373947, -0.012486044317483902, 0.14425021409988403, 0.3384779095649719, 0.21486684679985046, -0.13689491152763367, 0.08492553234100342, 0.10684175789356232, -0.04437483474612236, -0.005737141706049442, 0.005963584873825312, 0.6895567178726196, 0.022173864766955376, 0.06496802717447281, 0.40456268191337585, 0.08228712528944016, 0.3356211483478546, -0.025246426463127136, -0.09287048876285553, 0.33535102009773254, 0.288738489151001, -0.028422784060239792, 0.1966654360294342, -0.09208783507347107, -0.06860002875328064, 0.28639838099479675, 0.5743154883384705, -0.2170490175485611, 0.10652400553226471, 0.35711729526519775, 0.2653895318508148, 0.06380278617143631, -0.25551509857177734, -0.11675411462783813, 0.07686389982700348, -0.0006844780873507261, -0.10983223468065262, -0.02754918672144413, -0.1941813826560974, -0.3827087879180908, -0.15051086246967316, -0.38975968956947327, 0.23271168768405914, -0.1659679114818573, 0.21777436137199402, -0.3669430613517761, 0.6742686033248901, 0.21016688644886017, -0.03691352903842926, -0.17137058079242706, 0.531313419342041, 0.32480674982070923, -0.07920821011066437, -0.10937253385782242, 0.36681291460990906, 0.3572760820388794, 0.3015877604484558, -0.24070623517036438, 0.07957588881254196, -0.1918935924768448, -0.2566194236278534, -0.0545770563185215, 0.15614716708660126, 0.17200766503810883, 0.0037671991158276796, 0.2482558637857437, 0.07094907015562057, -0.1256272941827774, 0.3689880073070526, 0.2804296910762787, 0.037074945867061615, -0.19326597452163696, 0.3348277807235718, -0.27187153697013855, -0.19034552574157715, 0.1311916559934616, 0.006321645341813564, -0.4402505159378052, 0.1030828133225441, 0.31913042068481445, -0.12231282144784927, 0.020165907219052315, 0.045044999569654465, 0.03412163257598877, -0.36949458718299866, 0.47349482774734497, 0.15778540074825287, 0.6076856255531311, -0.07976892590522766, -0.14120420813560486, -0.26721152663230896, 0.28978145122528076, -0.44175899028778076, 0.07409483939409256, 0.3080432713031769, 0.25790807604789734, -0.04874974116683006, 0.2920186519622803, 0.07726958394050598, 0.2233109474182129, -0.047986406832933426, 0.3701364994049072, -0.35345882177352905, -0.13685181736946106, 0.3459899425506592, 0.04852142184972763, -0.21195241808891296, -0.2849331498146057, 0.24081188440322876, -0.3483986556529999, 0.018724458292126656, 0.1598379760980606, 0.16104596853256226, 0.011611461639404297, 0.24859878420829773, 0.44378986954689026, 0.11999855935573578, 0.07787085324525833, 0.13558192551136017, 0.01829398050904274, -0.27655908465385437, -0.207203671336174, -0.037706345319747925, 0.35013124346733093, 0.15345874428749084, 0.46727126836776733, -0.24801291525363922, 0.3416922688484192, -0.06838801503181458, 0.0491897389292717, 0.0788111761212349, 0.32670867443084717, -0.24871833622455597, 0.4114186763763428, -0.5436213612556458, 0.0665593221783638, 0.02993915043771267, -0.1942570060491562, 0.13547049462795258, 0.108058862388134, -0.12194142490625381, -0.5837484002113342, 0.6118192076683044, -0.16556774079799652, -0.41068077087402344, 0.10208790004253387, -0.014481729827821255, 0.33523982763290405, -0.12222883105278015, -0.13298459351062775, 0.01589108258485794, 0.49492183327674866, -0.03308650106191635, -0.20153741538524628, 0.012879926711320877, 0.002036575460806489, 0.036507051438093185, -0.16226448118686676, 0.21191130578517914, -0.007995584979653358, -0.14545579254627228, -0.38979578018188477, -0.5064122676849365 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Working with Arrow can be quite fun sometimes. You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741). Let me know if it works. I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
67
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Working with Arrow can be quite fun sometimes. You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741). Let me know if it works. I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week.
[ -0.22131329774856567, 0.1979745328426361, -0.01570148579776287, 0.3644239902496338, 0.3536304831504822, 0.01218507532030344, 0.5489980578422546, 0.1765434294939041, -0.22645023465156555, 0.20632697641849518, 0.21527975797653198, 0.23048271238803864, -0.1810270994901657, 0.0037146923132240772, 0.28497937321662903, -0.37633320689201355, 0.1525060534477234, 0.38059866428375244, 0.0335732139647007, 0.136076420545578, -0.03977440297603607, -0.0720347985625267, -0.12139484286308289, 0.11141888797283173, -0.4059671461582184, -0.004856023006141186, -0.17471392452716827, -0.12007389217615128, -0.23102587461471558, -0.5286950469017029, 0.18104767799377441, 0.06852599233388901, 0.0716024711728096, 0.2211991548538208, -0.00012125130888307467, 0.0870126262307167, 0.5184178948402405, 0.07389429211616516, -0.3144260048866272, -0.025352681055665016, 0.1473909169435501, -0.41041943430900574, 0.2535744607448578, -0.22328875958919525, 0.052412766963243484, -0.6484948396682739, 0.07178676873445511, -0.025283513590693474, 0.16901899874210358, 0.2796272337436676, 0.15558144450187683, 0.2720472812652588, 0.32037097215652466, -0.12939490377902985, 0.4958256781101227, 0.4110754132270813, -0.2912881672382355, -0.03751750290393829, 0.24390153586864471, 0.09630883485078812, -0.20482851564884186, -0.08129701763391495, -0.046104852110147476, 0.12726376950740814, 0.4374938905239105, 0.2534181773662567, 0.18010954558849335, -0.27132466435432434, 0.1292911022901535, 0.31187593936920166, 0.5142437815666199, -0.29844754934310913, -0.16867907345294952, -0.24064743518829346, 0.06960593163967133, -0.12141970545053482, 0.05004050210118294, 0.20967121422290802, -0.37587082386016846, -0.17506636679172516, -0.255900114774704, 0.053194500505924225, -0.38254398107528687, 0.19387418031692505, 0.33223071694374084, -0.07293035835027695, -0.07717245817184448, 0.19577902555465698, 0.09489639848470688, -0.08444462716579437, 0.44890981912612915, -0.3274933695793152, -0.060361579060554504, 0.1682138890028, -0.026026921346783638, 0.19145125150680542, -0.06189263239502907, -0.24891157448291779, 0.35572943091392517, -0.014637969434261322, 0.09079525619745255, -0.026043705642223358, 0.4090190529823303, -0.030046265572309494, -0.16669774055480957, 0.24244312942028046, 0.026846090331673622, -0.05644775927066803, -0.012662186287343502, 0.14587268233299255, 0.13689102232456207, 0.002378713106736541, -0.3036978542804718, -0.3543189465999603, 0.43893763422966003, -0.1597701609134674, 0.2262706756591797, 0.2719848155975342, 0.05805513262748718, 0.05274194851517677, -0.38728195428848267, -0.16341018676757812, -0.05120525881648064, 0.2605150640010834, 0.007941064424812794, -0.16952402889728546, -0.07498316466808319, 0.3475952446460724, -0.11349576711654663, -0.07718385756015778, -0.20060665905475616, 0.014129198156297207, -0.18721851706504822, -0.0355551578104496, 0.18567678332328796, -0.0006743670674040914, 0.17128677666187286, -0.1005149632692337, 0.11025776714086533, 0.03648647665977478, 0.22940872609615326, -0.0032722284086048603, 0.07451838999986649, 0.243153378367424, -0.10598641633987427, 0.07599540054798126, -0.10074453055858612, -0.10354039072990417, -0.19389675557613373, 0.3595404028892517, -0.007273038383573294, -0.31636369228363037, -0.3604942858219147, 0.06773672997951508, -0.18848080933094025, 0.10953199863433838, -0.33342528343200684, 0.02415168099105358, 0.2464960813522339, 0.19292546808719635, 0.04680989682674408, -0.07888063788414001, 0.11973113566637039, -0.41869550943374634, 0.2552206516265869, 0.15068332850933075, -0.3296789228916168, -0.07641982287168503, -0.17745673656463623, -0.1453167349100113, 0.014685695059597492, 0.14076383411884308, -0.22774836421012878, 0.31680265069007874, -0.19699929654598236, 0.16468343138694763, 0.5898754596710205, 0.14218072593212128, -0.19427450001239777, 0.04892859235405922, -0.035942163318395615, -0.133045494556427, 0.2738952040672302, 0.13370518386363983, -0.08580346405506134, 0.00036215464933775365, -0.2265041619539261, 0.24272789061069489, -0.20607760548591614, -0.12842315435409546, -0.10287167876958847, -0.4257866442203522, 0.2570197284221649, 0.18265782296657562, 0.1883198320865631, -0.20023298263549805, -0.07634574919939041, -0.44529154896736145, 0.15099413692951202, -0.4555949866771698, 0.31997397541999817, 0.2012670785188675, 0.2738686501979828, -0.06866119056940079, 0.09198234230279922, -0.19715538620948792, -0.6865983605384827, 0.2245500385761261, -0.3239841163158417, 0.11369135975837708, -0.11731148511171341, -0.038934554904699326, -0.047036509960889816, 0.23423480987548828, -0.18901179730892181, 0.01694318652153015, 0.030437573790550232, 0.007918043993413448, 0.24688491225242615, -0.15512563288211823, -0.1208430603146553, -0.32371678948402405, -0.0724276453256607, 0.08797334134578705, -0.4804655611515045, 0.3551847040653229, -0.026848062872886658, -0.32553306221961975, -0.2417755424976349, 0.12611205875873566, -0.0964423194527626, -0.06996434926986694, -0.03479292616248131, 0.13794593513011932, -0.17182472348213196, 0.00948710460215807, -0.4415685832500458, 0.06687922775745392, 0.03407064825296402, -0.36494284868240356, 0.33189377188682556, 0.09767092019319534, 0.009557470679283142, -0.26819902658462524, 0.023220304399728775, 0.33312636613845825, 0.10535398125648499, 0.5135989785194397, -0.046988826245069504, -0.012194075621664524, -0.09000051766633987, 0.2590038776397705, -0.0001807558146538213, -0.09548351913690567, 0.07814100384712219, 0.1912848800420761, 0.30239903926849365, 0.10074245929718018, -0.09008602052927017, 0.018184637650847435, 0.3622382879257202, -0.0750444158911705, -0.015478301793336868, 0.21645793318748474, -0.3582887649536133, -0.044305603951215744, 0.11466166377067566, -0.223690927028656, 0.09582317620515823, 0.18965066969394684, -0.09621598571538925, -0.003070821752771735, -0.12162399291992188, -0.24560315907001495, 0.23082083463668823, 0.10904458910226822, 0.4995392858982086, 0.08597957342863083, 0.24744704365730286, -0.2025015503168106, -0.2954273521900177, -0.11554164439439774, 0.11008289456367493, 0.21187923848628998, -0.31031936407089233, -0.03645075485110283, 0.0036002446431666613, -0.026373708620667458, -0.04725774750113487, -0.41877028346061707, -0.0772794634103775, -0.0021732370369136333, -0.11590100079774857, 0.03878394514322281, -0.13915151357650757, 0.2060876488685608, 0.0957125648856163, -0.1754155457019806, 0.16913588345050812, -0.0827372744679451, -0.15556700527668, -0.07009506970643997, -0.06287511438131332, 0.02738763578236103, 0.43251094222068787, -0.006215392611920834, 0.10227807611227036, 0.06940041482448578, 0.0075327446684241295, -0.38656261563301086, -0.31805717945098877, 0.001493669580668211, -0.18850071728229523, 0.3855706751346588, 0.5089981555938721, 0.012955485843122005, 0.07049579173326492, -0.23512513935565948, 0.42832887172698975, -0.0620499812066555, -0.27895012497901917, 0.29511508345603943, -0.2495296448469162, 0.013223136775195599, -0.0754205733537674, -0.06257763504981995, 0.0871271938085556, -0.30139532685279846, 0.4161205589771271, 0.38923272490501404, 0.2587944269180298, 0.27752190828323364, 0.45375558733940125, 0.361279159784317, -0.15781958401203156, 0.07667720317840576, 0.2665536105632782, 0.08845020085573196, 0.4034973084926605, -0.031774960458278656, -0.25915080308914185, -0.060695502907037735, -0.675292432308197, 0.079135961830616, 0.18781208992004395, -0.13350048661231995, -0.0855480283498764, -0.34913697838783264, 0.3653407096862793, -0.01757197454571724, 0.25127261877059937, 0.320279598236084, 0.13091906905174255, 0.022084681317210197, -0.030239516869187355, -0.15392625331878662, 0.40978625416755676, -0.05654600262641907, -0.11664928495883942, -0.04449569061398506, 0.36856260895729065, -0.27815163135528564, 0.718797504901886, 0.15942874550819397, -0.19088011980056763, 0.17351984977722168, -0.18885312974452972, 0.08687392622232437, -0.2385745644569397, -0.050661686807870865, 0.03568919375538826, 0.08391397446393967, -0.03302638977766037, -0.005040839780122042, -0.014654007740318775, -0.15483655035495758, 0.24451805651187897, 0.09448901563882828, 0.0179522093385458, -0.09380534291267395, 0.2726665437221527, 0.0028945861849933863, 0.12385760992765427, -0.1495916098356247, 0.017494957894086838, -0.388908326625824, -0.18019655346870422, -0.1647976040840149, -0.3463923931121826, 0.2637684643268585, -0.01108642015606165, -0.28536278009414673, 0.0391523540019989, -0.3850507140159607, 0.11644380539655685, 0.42422598600387573, -0.1564016193151474, 0.2217940092086792, -0.020632030442357063, 0.19370588660240173, -0.15111765265464783, 0.6794903874397278, -0.1187504231929779, -0.34091219305992126, 0.42746901512145996, 0.15534824132919312, -0.560575008392334, -0.08464288711547852, -0.16528663039207458, 0.2461472749710083, -0.31589576601982117, 0.10867024213075638, -0.4143291711807251, -0.14333312213420868, 0.4140109717845917, 0.39137178659439087, -0.05456625297665596, -0.1851384937763214, -0.21211452782154083, -0.3040747344493866, -0.18586842715740204, -0.1297888308763504, 0.01284948829561472, 0.37273237109184265, 0.14850127696990967, -0.3051453232765198, -0.2967607378959656, 0.016408689320087433, -0.1248372346162796, -0.05243940278887749, 0.40779954195022583, -0.24689248204231262, 0.17859075963497162, -0.21985788643360138, -0.06658665835857391, 0.32682234048843384, 0.2026309072971344, 0.05367202311754227, -0.1761282980442047, 0.1134071871638298, -0.03934428095817566, 0.4988563656806946, 0.20186373591423035, -0.11459249258041382, 0.15126283466815948, 0.12141762673854828, 0.25226739048957825, -0.18702030181884766, -0.08605068922042847, 0.41176918148994446, -0.2626805603504181, -0.22547557950019836, -0.32364434003829956, 0.5513415932655334, 0.042740657925605774, 0.2184249311685562, 0.3525516092777252, 0.4389825761318207, -0.22359345853328705, 0.24008633196353912, 0.4835231602191925, 0.8892113566398621, -0.15078943967819214, 0.2404496669769287, 0.6072923541069031, 0.005506041459739208, 0.2729436159133911, 0.23931749165058136, 0.2225944846868515, -0.5379682183265686, -0.051148638129234314, 0.07093498855829239, -0.35193508863449097, 0.2847345173358917, 0.10380260646343231, -0.11337261646986008, -0.04175906628370285, -0.13837328553199768, 0.41227054595947266, 0.06635534763336182, 0.12671369314193726, -0.29731303453445435, -0.30451035499572754, -0.08275666832923889, 0.031222546473145485, 0.045403312891721725, -0.3888428807258606, -0.05923342704772949, -0.11341805756092072, -0.07888441532850266, -0.07339520752429962, -0.21809233725070953, -0.06166767328977585, -0.5097699165344238, -0.09594094008207321, 0.47218090295791626, -0.4421563148498535, 0.20038646459579468, 0.1333453357219696, 0.12538331747055054, -0.08046210557222366, -0.10254965722560883, -0.0346536785364151, 0.13244080543518066, -0.18098194897174835, -0.06683438271284103, -0.324770450592041, 0.1169549971818924, 0.05005257576704025, -0.09297873824834824, 0.007003182545304298, -0.1274043619632721, -0.07828426361083984, -0.03454815223813057, -0.054657090455293655, 0.19909799098968506, -0.2799140512943268, -0.20941400527954102, -0.2535102963447571, -0.15702208876609802, -0.1931712031364441, 0.03919856622815132, 0.16045843064785004, -0.12081096321344376, -0.07206925004720688, -0.0012570900144055486, 0.028834983706474304, -0.06945009529590607, -0.045507337898015976, 0.5458695292472839, 0.21700650453567505, 0.5177695751190186, 0.35891783237457275, -0.04987542703747749, -0.18147635459899902, -0.0332917720079422, 0.6822744607925415, -0.7731730341911316, 0.29393935203552246, 0.1818493902683258, -0.24213433265686035, -0.1677030324935913, 0.5106964111328125, -0.12476348131895065, 0.1342894434928894, -0.10646215081214905, 0.10379153490066528, -0.48086458444595337, 0.29909324645996094, 0.20305286347866058, 0.35783156752586365, -0.1786760687828064, -0.09278754144906998, 0.07187802344560623, 0.1234477087855339, -0.1977476328611374, -0.005034760572016239, 0.0958978533744812, 0.016148848459124565, -0.40357452630996704, -0.042503245174884796, 0.2448577731847763, 0.039789482951164246, 0.03277735039591789, 0.019810359925031662, -0.36077311635017395, -0.13902123272418976, -0.03786222264170647, 0.14554138481616974, -0.0371490940451622, -0.1967010796070099, 0.2865373492240906, -0.022482894361019135, -0.2330080270767212, -0.29793068766593933, 0.154882550239563, -0.07795627415180206, -0.18536297976970673, -0.28412696719169617, 0.34110820293426514, -0.09695369750261307, -0.3457176685333252, 0.017938848584890366, -0.2194335162639618, 0.29884836077690125, 0.02713940665125847, 0.14375168085098267, 0.1295875608921051, -0.03720821812748909, -0.009506305679678917, 0.21392963826656342, 0.10749693214893341, -0.21734194457530975, 0.20242194831371307, -0.43661820888519287, -0.41645899415016174, -0.14296287298202515, 0.3953700065612793, 0.3089132606983185, -0.06144391745328903, 0.12813261151313782, 0.10379344969987869, 0.12793049216270447, -0.20232447981834412, 0.014338918961584568, 0.1377171128988266, -0.18967287242412567, 0.14611724019050598, 0.3554196357727051, 0.06051824241876602, -0.006622578017413616, -0.10272609442472458, 0.18622276186943054, -0.07402331382036209, 0.0466206893324852, 0.10862159729003906, 0.4495129883289337, 0.0012584250653162599, -0.027555212378501892, 0.4771542549133301, 0.017501134425401688, 0.2943623960018158, -0.07106200605630875, -0.08561141788959503, 0.36960089206695557, 0.13612478971481323, 0.01289933081716299, 0.08575387299060822, -0.12888503074645996, 0.10216211527585983, 0.2327347695827484, 0.3544171452522278, -0.05589401721954346, -0.018651191145181656, 0.7463921904563904, 0.24879492819309235, -0.013441077433526516, -0.35476505756378174, -0.053871139883995056, -0.1985652893781662, -0.12775744497776031, -0.07943292707204819, -0.0791807472705841, -0.259542852640152, -0.07938116043806076, -0.20000259578227997, -0.4033377766609192, 0.22919103503227234, -0.12262655049562454, 0.08475611358880997, -0.32994961738586426, 0.6227360367774963, 0.21933332085609436, 0.0030641211196780205, -0.16118460893630981, 0.47447139024734497, 0.2397124469280243, -0.21449781954288483, -0.3211137652397156, 0.6006444692611694, 0.4467814862728119, 0.33915475010871887, -0.20908895134925842, 0.0397164449095726, 0.027590986341238022, -0.1698436439037323, -0.06829226016998291, 0.07739616930484772, 0.2278272807598114, 0.1914864182472229, 0.14241085946559906, 0.051817476749420166, -0.13753969967365265, 0.034178268164396286, 0.2019420564174652, -0.07642338424921036, -0.12304996699094772, 0.21567517518997192, -0.31015387177467346, -0.23950614035129547, -0.01633930206298828, -0.12589354813098907, -0.39758825302124023, -0.06258182972669601, 0.4661116600036621, -0.19911326467990875, -0.04362662509083748, -0.2300647646188736, 0.035197313874959946, -0.19803082942962646, 0.5869737863540649, 0.16210223734378815, 0.4991670548915863, -0.3921728730201721, -0.047975003719329834, -0.3389754593372345, 0.23386931419372559, -0.46708235144615173, 0.11459645628929138, 0.277180552482605, 0.3103746771812439, -0.12250348180532455, 0.0611136369407177, 0.20082122087478638, 0.2744983434677124, 0.06808552145957947, 0.37295278906822205, -0.26228103041648865, 0.03418507054448128, 0.30850499868392944, -0.029282959178090096, -0.014893501065671444, -0.43451741337776184, 0.2661921977996826, -0.38398271799087524, -0.02356858365237713, 0.08238422125577927, 0.2193204015493393, 0.23613491654396057, 0.0669233649969101, 0.4159297049045563, -0.00654591154307127, 0.026806555688381195, 0.15884320437908173, -0.23405538499355316, -0.3672114312648773, -0.14263738691806793, -0.24646501243114471, 0.23775452375411987, 0.11278947442770004, 0.49681511521339417, -0.3303937613964081, 0.1746419072151184, -0.22607460618019104, 0.022077055647969246, 0.04351606220006943, 0.29013964533805847, -0.1415720283985138, 0.4183505177497864, -0.6275553107261658, 0.12061263620853424, 0.10109461098909378, -0.16842730343341827, 0.051266226917505264, 0.02539895474910736, -0.2978527545928955, -0.48068201541900635, 0.5629159212112427, -0.37719348073005676, -0.45624276995658875, 0.07515908777713776, 0.031800802797079086, 0.41643279790878296, -0.21714957058429718, -0.4832143485546112, 0.015603636391460896, 0.31505948305130005, 0.06084592640399933, -0.04681815952062607, 0.16616347432136536, -0.029331529513001442, 0.10804753750562668, -0.15059711039066315, 0.3135237693786621, -0.10692175477743149, -0.17431625723838806, -0.26263684034347534, -0.5996119379997253 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus) Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
37
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus) Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
[ -0.37457698583602905, 0.1280573457479477, -0.04761984944343567, 0.20823952555656433, 0.24055059254169464, -0.0033122042659670115, 0.4983980059623718, 0.1474626511335373, -0.2932835817337036, 0.18660195171833038, 0.28144076466560364, -0.0539637953042984, -0.19091714918613434, -0.11750134080648422, 0.22293582558631897, -0.2851477861404419, 0.1425437331199646, 0.372378945350647, 0.0049168625846505165, 0.02820022962987423, -0.08748191595077515, -0.1740167886018753, -0.25961339473724365, -0.11417939513921738, -0.28675538301467896, -0.19243216514587402, -0.2385251671075821, -0.14165805280208588, -0.1820695996284485, -0.5740129351615906, 0.1513039469718933, 0.0021340083330869675, 0.26765137910842896, 0.41988372802734375, -0.00012584032083395869, 0.014041922986507416, 0.5327545404434204, -0.029669921845197678, -0.30781716108322144, 0.18047970533370972, 0.11603829264640808, -0.5670769214630127, 0.07550254464149475, -0.27681636810302734, 0.0667390301823616, -0.6155688166618347, 0.0792861059308052, -0.09356801956892014, 0.08113247156143188, 0.2686920166015625, 0.07581441849470139, 0.11476588249206543, 0.23322594165802002, -0.20198294520378113, 0.4513537585735321, 0.2915465533733368, -0.1934944987297058, 0.09871786832809448, 0.4797883927822113, 0.2244323194026947, -0.13446533679962158, -0.09340976923704147, -0.22578158974647522, 0.2786092162132263, 0.22499623894691467, 0.16199292242527008, 0.502918004989624, -0.2946101725101471, 0.1333664059638977, 0.34473752975463867, 0.5489016771316528, -0.11152392625808716, -0.20930516719818115, -0.29748716950416565, -0.06867735832929611, -0.11758138239383698, -0.24315613508224487, 0.24193261563777924, -0.28526169061660767, -0.1375112682580948, -0.2829042375087738, 0.12524373829364777, -0.3688946068286896, 0.30381643772125244, 0.2715145945549011, 0.008697272278368473, 0.08807887881994247, 0.24282172322273254, -0.03252463787794113, -0.147288978099823, 0.3926500082015991, -0.15541186928749084, -0.118412546813488, 0.14313958585262299, 0.058882106095552444, 0.15500569343566895, -0.03807288035750389, -0.2888381779193878, 0.4321165084838867, -0.10634457319974899, 0.013870390132069588, -0.04733853042125702, 0.5867910385131836, -0.09263017028570175, -0.12876668572425842, 0.3904907703399658, -0.1972956508398056, -0.041649334132671356, 0.10457820445299149, 0.10699733346700668, -0.062018781900405884, 0.20882907509803772, -0.2877633273601532, -0.4063180088996887, 0.40933072566986084, -0.10461664199829102, 0.07107935100793839, 0.16944029927253723, 0.06700120121240616, 0.10731086879968643, -0.32121947407722473, -0.05982676148414612, -0.17917302250862122, 0.35382306575775146, -0.0039114682003855705, -0.025315728038549423, -0.0678943619132042, 0.2610296607017517, -0.03805471211671829, -0.0714614987373352, -0.16402506828308105, -0.08083625882863998, -0.2309168130159378, -0.026076504960656166, 0.25225919485092163, 0.1547977775335312, 0.2087249606847763, -0.22512204945087433, 0.23052673041820526, 0.05265877768397331, 0.10992413014173508, -0.11922076344490051, 0.20410504937171936, 0.30685821175575256, -0.03177611529827118, 0.09199842065572739, -0.06526883691549301, 0.060340169817209244, -0.23986436426639557, 0.4755082130432129, -0.12243280559778214, -0.2511700391769409, -0.27568289637565613, 0.03254876285791397, -0.23423177003860474, 0.08592945337295532, -0.33214691281318665, 0.08391966670751572, 0.4152872860431671, 0.08845482766628265, 0.11650088429450989, -0.12336718291044235, 0.06684474647045135, -0.44321998953819275, 0.03639976680278778, 0.1962481588125229, -0.3947768807411194, 0.09624277800321579, -0.017629655078053474, 0.1693822592496872, 0.28342077136039734, 0.12042548507452011, -0.0769042819738388, 0.25577738881111145, -0.19146813452243805, 0.24487316608428955, 0.5503530502319336, 0.03743954002857208, -0.32487592101097107, 0.23411522805690765, -0.02353864163160324, -0.2791972756385803, 0.39459332823753357, 0.11496579647064209, 0.09642237424850464, -0.05185936391353607, -0.13846611976623535, 0.36126837134361267, -0.23456338047981262, 0.07399830222129822, -0.1379670351743698, -0.5268690586090088, 0.09479932487010956, 0.16226811707019806, 0.33257561922073364, -0.10041531175374985, 0.03537296876311302, -0.35604429244995117, 0.16480238735675812, -0.40082475543022156, 0.3126732110977173, 0.14927096664905548, 0.22881485521793365, -0.1841282993555069, 0.20839931070804596, -0.18135744333267212, -0.6962058544158936, 0.2876124083995819, -0.5014756917953491, 0.07391597330570221, 0.03917274996638298, -0.04297010973095894, -0.16205506026744843, 0.07031470537185669, -0.06924895942211151, 0.01743571273982525, -0.05595416575670242, 0.06695101410150528, 0.37305501103401184, -0.18423748016357422, -0.06454761326313019, -0.3771052956581116, 0.05736761912703514, -0.0027470113709568977, -0.36069589853286743, 0.20456522703170776, 0.002369373571127653, -0.42562636733055115, -0.19670672714710236, 0.07872682064771652, -0.06718727946281433, -0.10911671817302704, -0.02989947237074375, 0.190669983625412, -0.10572667419910431, -0.12659482657909393, -0.5945067405700684, 0.11334311962127686, -0.0075299544259905815, -0.17096345126628876, 0.30668628215789795, 0.12030494213104248, -0.03838630020618439, -0.27616140246391296, 0.15489813685417175, 0.22504107654094696, 0.09560380131006241, 0.44436195492744446, -0.04831818491220474, -0.1787988394498825, 0.05368490517139435, 0.10913453996181488, 0.023280644789338112, -0.18723367154598236, 0.05734255537390709, 0.13116392493247986, 0.24369946122169495, 0.017907625064253807, -0.10047278553247452, -0.06741374731063843, 0.23301774263381958, -0.041327930986881256, 0.19553504884243011, 0.12481995671987534, -0.36510735750198364, -0.07162617146968842, 0.14101822674274445, -0.26243406534194946, 0.18577976524829865, 0.22643795609474182, 0.002550479955971241, 0.007685218006372452, -0.024962840601801872, -0.2826307713985443, 0.16993272304534912, 0.03705423325300217, 0.5360174179077148, 0.2710425853729248, 0.2685304284095764, -0.15290586650371552, -0.2596243917942047, -0.07022596895694733, 0.12421221286058426, 0.1814393252134323, -0.27336573600769043, 0.010387847200036049, 0.0000492696235596668, -0.13574494421482086, -0.04129476472735405, -0.3904166519641876, 0.07417146861553192, 0.08749210089445114, -0.037295352667570114, 0.07033690810203552, -0.1533445566892624, 0.16520360112190247, -0.03977664187550545, -0.04183248057961464, 0.23442882299423218, -0.27108249068260193, -0.09374285489320755, -0.009346351958811283, -0.2818736135959625, -0.032399989664554596, 0.3056124150753021, -0.0038345518987625837, 0.14192888140678406, 0.09929704666137695, 0.09660042077302933, -0.25070613622665405, -0.2788379192352295, -0.03410249948501587, 0.021712882444262505, 0.32309502363204956, 0.4574573040008545, 0.1499737799167633, 0.11795705556869507, -0.17523109912872314, 0.3148294985294342, -0.11351829022169113, -0.2176908552646637, 0.1710081845521927, -0.31605908274650574, 0.03262829780578613, -0.12103459239006042, -0.04946521297097206, 0.011216740123927593, -0.3729516863822937, 0.06965872645378113, 0.4055187404155731, 0.22052961587905884, 0.30844831466674805, 0.4828365445137024, 0.23675492405891418, 0.12433063983917236, 0.16583119332790375, 0.1984269917011261, 0.21511834859848022, 0.457296222448349, -0.029348814859986305, -0.2974745035171509, -0.19027790427207947, -0.698136568069458, 0.018409552052617073, 0.3738331198692322, -0.2694816291332245, -0.02456974983215332, -0.3942730128765106, 0.10623683035373688, 0.05831680819392204, 0.28455179929733276, 0.3782830834388733, -0.047419022768735886, -0.025409523397684097, -0.0703161358833313, -0.058421239256858826, 0.24947702884674072, 0.12398888170719147, 0.11730802804231644, -0.030874166637659073, 0.4462180435657501, -0.19458675384521484, 0.7147111892700195, 0.0947728231549263, -0.30389347672462463, 0.27079179883003235, -0.14014121890068054, 0.017061324790120125, -0.27030330896377563, 0.03720121830701828, 0.0961645245552063, 0.12775196135044098, -0.2376379668712616, 0.14757658541202545, -0.05910496041178703, -0.38616183400154114, 0.17759722471237183, 0.04710395634174347, -0.07902541011571884, -0.04445957764983177, 0.28124773502349854, -0.2039055973291397, 0.13388676941394806, -0.07929112017154694, 0.0368061363697052, -0.31275102496147156, -0.2526506781578064, -0.19027043879032135, -0.47111204266548157, 0.14106117188930511, 0.043360818177461624, -0.10229195654392242, 0.12383612245321274, -0.3025414049625397, 0.2792181372642517, 0.43464308977127075, 0.00072507094591856, 0.23956254124641418, -0.07878131419420242, 0.20655742287635803, -0.09702403098344803, 0.6973790526390076, -0.18041598796844482, -0.08164245635271072, 0.32599717378616333, 0.19557800889015198, -0.5518752336502075, -0.2422313392162323, -0.06724076718091965, 0.09544383734464645, -0.13721860945224762, 0.11831485480070114, -0.43524375557899475, 0.12174045294523239, 0.31662237644195557, 0.4247948229312897, -0.05360999330878258, -0.22969748079776764, -0.29663753509521484, -0.3348878026008606, -0.21743875741958618, -0.039017144590616226, 0.10083714127540588, 0.32696449756622314, 0.19873465597629547, -0.378271222114563, -0.40087631344795227, -0.04080647975206375, -0.07394584268331528, 0.0705564022064209, 0.37428873777389526, 0.026395956054329872, 0.01728280447423458, -0.27327850461006165, 0.1370515525341034, 0.3507029116153717, 0.11350257694721222, -0.004342522006481886, 0.08757683634757996, 0.17090274393558502, 0.014583664014935493, 0.4518882632255554, 0.30746006965637207, -0.048116400837898254, -0.03616930544376373, 0.1742117553949356, 0.31808143854141235, -0.1563243716955185, -0.01637726090848446, 0.2593967318534851, -0.3316493630409241, -0.458772748708725, -0.29227498173713684, 0.5466747283935547, 0.10496897995471954, 0.17239266633987427, 0.2966720759868622, 0.26433372497558594, -0.30653658509254456, 0.44640424847602844, 0.5022369027137756, 0.8925890922546387, -0.1167147159576416, 0.21795041859149933, 0.37229660153388977, 0.28579095005989075, 0.2620517909526825, 0.3009267747402191, 0.18851503729820251, -0.47038668394088745, 0.061144378036260605, 0.10758201777935028, -0.427489310503006, 0.19379498064517975, 0.33183300495147705, -0.21362879872322083, 0.05559779703617096, -0.2017824798822403, 0.3583781123161316, -0.019515635445713997, 0.05693709850311279, -0.07708102464675903, -0.2509153485298157, -0.03002081625163555, -0.022096719592809677, 0.10721603035926819, -0.3095639944076538, -0.1783050298690796, -0.11493949592113495, -0.18043172359466553, -0.15787997841835022, -0.3014231026172638, -0.12944363057613373, -0.3661159574985504, -0.02638239786028862, 0.3523420989513397, -0.5593372583389282, 0.012738719582557678, 0.09759191423654556, 0.09047645330429077, 0.05141431465744972, -0.0709390863776207, -0.06835857778787613, 0.2398952841758728, -0.2562885582447052, 0.10048430413007736, -0.35814201831817627, 0.16166885197162628, -0.017057951539754868, -0.06351441144943237, 0.010568469762802124, -0.1707506775856018, -0.10433361679315567, -0.14738377928733826, 0.0010238738032057881, 0.09475450217723846, -0.2414884716272354, -0.3821027874946594, -0.19393299520015717, -0.08715688437223434, -0.08788123726844788, -0.02874336764216423, 0.0897853896021843, -0.07565514743328094, 0.24119699001312256, 0.07993730157613754, -0.14551781117916107, -0.05001227557659149, 0.026844952255487442, 0.6528427004814148, -0.030886702239513397, 0.4302845299243927, 0.3163837194442749, -0.04794100672006607, -0.1371319442987442, -0.005801999941468239, 0.46905753016471863, -0.6159564256668091, 0.3625897467136383, 0.15116167068481445, -0.2743062376976013, -0.005991222336888313, 0.4451172649860382, -0.07272578030824661, 0.27754417061805725, -0.16059371829032898, -0.004994535818696022, -0.4703556001186371, 0.23545563220977783, 0.12058322131633759, 0.3705756366252899, -0.15225942432880402, -0.22070083022117615, 0.09761717915534973, 0.16113895177841187, -0.1268954873085022, -0.0327618233859539, 0.008386896923184395, 0.016170386224985123, -0.6082538962364197, 0.14832593500614166, 0.08972158282995224, 0.15009252727031708, -0.0480172224342823, 0.046520330011844635, -0.22602368891239166, -0.0851692333817482, 0.026853810995817184, 0.2054857611656189, -0.031073592603206635, -0.05226441100239754, 0.3520440459251404, -0.1590043604373932, -0.343104749917984, -0.1962457001209259, 0.173691526055336, -0.025874819606542587, -0.20292575657367706, -0.2717234194278717, 0.3582446575164795, 0.009540851227939129, -0.17172673344612122, 0.16339123249053955, -0.28244930505752563, 0.29184889793395996, 0.06435596197843552, 0.20599055290222168, 0.19214047491550446, -0.06766527146100998, -0.03455150127410889, 0.14832894504070282, 0.21149912476539612, -0.21681983768939972, 0.1892523169517517, -0.409017950296402, -0.4071275293827057, -0.02742995321750641, 0.3321337401866913, 0.31508347392082214, -0.042648978531360626, 0.005769339390099049, 0.07252614200115204, 0.11303377151489258, -0.2808317244052887, 0.04481375217437744, 0.11336605995893478, -0.0556093193590641, 0.1534714251756668, 0.4482027292251587, 0.09660328924655914, -0.09774481505155563, -0.1922982633113861, 0.2072158306837082, 0.07309967279434204, 0.05315050855278969, -0.03883861005306244, 0.4976266920566559, 0.06062169000506401, -0.10856874287128448, 0.36378568410873413, -0.025639165192842484, 0.4311864376068115, -0.015195522457361221, 0.017849935218691826, 0.42529407143592834, 0.2894138991832733, -0.026755770668387413, 0.03566551208496094, -0.1030525416135788, -0.027633773162961006, 0.43691301345825195, 0.45024046301841736, -0.08807768672704697, 0.04227358475327492, 0.42867809534072876, 0.33602339029312134, 0.00454026460647583, -0.38617879152297974, -0.1956738531589508, -0.1396336704492569, -0.12592710554599762, -0.23163250088691711, -0.08977663516998291, -0.08556020259857178, -0.16629691421985626, -0.227753147482872, -0.4116137623786926, 0.0615374781191349, -0.1246621310710907, 0.006956349592655897, -0.2559811770915985, 0.5384843349456787, 0.08665657043457031, -0.02746092714369297, -0.23189476132392883, 0.47046953439712524, 0.2490825355052948, -0.11127186566591263, -0.10512051731348038, 0.5898386240005493, 0.5599620938301086, 0.4387233853340149, -0.25530287623405457, -0.011218210682272911, -0.020123528316617012, -0.1263951063156128, -0.317931205034256, 0.17763106524944305, 0.24755945801734924, 0.08267776668071747, 0.1629333198070526, -0.01251321379095316, -0.12059881538152695, 0.22892549633979797, 0.16149811446666718, -0.23850499093532562, 0.03324354439973831, 0.30799585580825806, -0.2352721393108368, -0.1989794373512268, 0.04378494620323181, -0.06363482773303986, -0.4537602961063385, -0.09030403941869736, 0.5740739703178406, -0.37442758679389954, 0.010804054327309132, -0.08257527649402618, -0.018042713403701782, -0.35962727665901184, 0.6653101444244385, 0.25633108615875244, 0.680273711681366, -0.24637247622013092, 0.015094570815563202, -0.3281954228878021, 0.30732354521751404, -0.5743765830993652, 0.19132070243358612, 0.18576529622077942, 0.4029054343700409, -0.07870423793792725, 0.07603885978460312, 0.13967449963092804, 0.2906523644924164, -0.0944429486989975, 0.5938668251037598, -0.2642403542995453, 0.018314937129616737, 0.01358592975884676, 0.03210175037384033, -0.02003577910363674, -0.492080420255661, 0.2735622823238373, -0.4048546254634857, -0.06116047501564026, 0.07246322184801102, 0.09605557471513748, 0.35312119126319885, 0.3399708867073059, 0.5330657958984375, -0.01385181862860918, 0.15225251019001007, 0.09773950278759003, -0.03381464630365372, -0.4907103478908539, -0.023254770785570145, -0.25354254245758057, 0.16726814210414886, 0.11767894774675369, 0.3558972179889679, -0.34109431505203247, 0.3061566650867462, -0.0457976795732975, -0.12813019752502441, -0.018648933619260788, 0.28608274459838867, -0.08825289458036423, 0.2683671712875366, -0.5508409142494202, 0.09477470815181732, 0.03822033479809761, -0.18668624758720398, 0.0787467509508133, 0.01346652302891016, -0.21530018746852875, -0.5623298287391663, 0.6698251366615295, -0.3410615026950836, -0.5061423778533936, -0.11337734013795853, 0.04407810419797897, 0.22925207018852234, -0.12405923753976822, -0.2394159436225891, 0.034779299050569534, 0.35170412063598633, 0.16227027773857117, -0.21053530275821686, 0.11080576479434967, -0.13352328538894653, -0.008062409237027168, -0.19486555457115173, 0.2667156457901001, -0.08929820358753204, -0.23011887073516846, -0.6121370792388916, -0.6397609114646912 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
42
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported.
[ -0.15002942085266113, 0.20671339333057404, -0.04670095816254616, 0.2796340584754944, 0.44586852192878723, -0.01490243524312973, 0.6093959212303162, 0.129800483584404, -0.3220187723636627, 0.19370673596858978, 0.2713223695755005, 0.31502172350883484, -0.16626285016536713, -0.13409128785133362, 0.28403905034065247, -0.3528671860694885, 0.19875068962574005, 0.41374480724334717, -0.02612782083451748, 0.053942129015922546, -0.0769718736410141, -0.18087078630924225, -0.23428234457969666, 0.1500307321548462, -0.48750972747802734, 0.016220632940530777, -0.26092529296875, -0.08983985334634781, -0.20832745730876923, -0.60322105884552, 0.25451958179473877, 0.03925022482872009, 0.02570677548646927, 0.21639004349708557, -0.00011871290917042643, 0.07178954035043716, 0.523374617099762, 0.10011813789606094, -0.3757009506225586, -0.020713312551379204, 0.12989673018455505, -0.4313425123691559, 0.29274722933769226, -0.3118661344051361, -0.044427890330553055, -0.6730902791023254, -0.00523346709087491, -0.09253101050853729, 0.08519717305898666, 0.2867686450481415, 0.15314149856567383, 0.149640753865242, 0.26104608178138733, -0.21679294109344482, 0.5045084953308105, 0.30869683623313904, -0.23492595553398132, -0.09653907269239426, 0.26609379053115845, 0.027072399854660034, -0.08678407967090607, -0.1411193311214447, -0.04996584728360176, 0.2337396889925003, 0.3484748899936676, 0.3037254810333252, 0.2073812484741211, -0.21040944755077362, 0.025628814473748207, 0.355341374874115, 0.5374168157577515, -0.21185266971588135, -0.14257104694843292, -0.1533830612897873, 0.007465846370905638, -0.13599659502506256, -0.03676075488328934, 0.21092337369918823, -0.30659765005111694, -0.08608125150203705, -0.27233365178108215, 0.15102164447307587, -0.38944852352142334, 0.2965712547302246, 0.19560620188713074, 0.018337886780500412, 0.0433373898267746, 0.23431454598903656, -0.019764814525842667, -0.16946829855442047, 0.520833432674408, -0.29110071063041687, -0.022575806826353073, 0.1274237334728241, 0.047996435314416885, 0.1595189869403839, -0.07552417367696762, -0.3094816505908966, 0.3864963948726654, -0.055451907217502594, 0.13264958560466766, 0.044081855565309525, 0.3791768550872803, 0.021210990846157074, -0.15554647147655487, 0.2336510419845581, -0.12819357216358185, -0.08994054794311523, 0.005532967858016491, 0.07010103017091751, 0.00222190422937274, 0.04704424366354942, -0.2628851532936096, -0.2715015113353729, 0.4232482314109802, -0.09344026446342468, 0.26949751377105713, 0.18733331561088562, 0.027152618393301964, 0.03920578956604004, -0.5091848373413086, -0.1334916651248932, -0.07821968197822571, 0.23539628088474274, 0.08063284307718277, -0.0823206901550293, -0.06162756681442261, 0.305497407913208, -0.11721370369195938, -0.14750967919826508, -0.23557522892951965, 0.016607845202088356, -0.2514522075653076, -0.025388291105628014, 0.1708398163318634, 0.22888508439064026, 0.1449013203382492, -0.047035641968250275, 0.06509370356798172, 0.11351460218429565, 0.28954052925109863, -0.01059188973158598, 0.13578753173351288, 0.19527558982372284, -0.2065051645040512, 0.03022053837776184, -0.012939189560711384, -0.11328303068876266, -0.17925840616226196, 0.383002907037735, 0.018222196027636528, -0.3663840889930725, -0.28733259439468384, 0.09464296698570251, -0.2151794582605362, 0.061382099986076355, -0.07093950361013412, 0.17182564735412598, 0.21121984720230103, 0.15108317136764526, 0.06083037704229355, -0.03335048630833626, 0.04179089516401291, -0.440171480178833, 0.2193191945552826, 0.1395142525434494, -0.4058804512023926, 0.055462803691625595, -0.1631770133972168, -0.06644047796726227, -0.015645042061805725, -0.024564262479543686, -0.2742757797241211, 0.27727141976356506, -0.19553758203983307, 0.22987504303455353, 0.5872296690940857, 0.16619862616062164, -0.24383887648582458, -0.036898430436849594, 0.003327298676595092, -0.1664951592683792, 0.22623887658119202, 0.16005167365074158, -0.1171489879488945, 0.06815140694379807, -0.17702001333236694, 0.30294865369796753, -0.1542990356683731, -0.15962721407413483, -0.10558892041444778, -0.3996219336986542, 0.3469386696815491, 0.21012306213378906, 0.14834724366664886, -0.11168411374092102, -0.10295321047306061, -0.3682802617549896, 0.11748392879962921, -0.4526262581348419, 0.2587614357471466, 0.13189618289470673, 0.3844105303287506, -0.15946610271930695, 0.09330607950687408, -0.2613687515258789, -0.6854181885719299, 0.29858484864234924, -0.24929729104042053, 0.17300434410572052, -0.09013509005308151, 0.022700684145092964, -0.09971420466899872, 0.1692352294921875, -0.20327691733837128, -0.00197852635756135, 0.06796669960021973, 0.05060054361820221, 0.23363839089870453, -0.19736415147781372, -0.1905951052904129, -0.31078922748565674, -0.06122450903058052, 0.0008909995667636395, -0.3421289324760437, 0.5485238432884216, -0.017251690849661827, -0.3967371881008148, -0.35981839895248413, 0.07436570525169373, -0.008519093506038189, -0.045928552746772766, -0.023860516026616096, 0.19298900663852692, -0.013087630271911621, -0.12980465590953827, -0.4362178146839142, 0.10466514527797699, 0.030957216396927834, -0.3927153944969177, 0.2777428925037384, 0.2070196568965912, -0.0343698188662529, -0.29543623328208923, 0.04061076417565346, 0.3032570481300354, 0.07001731544733047, 0.514380931854248, -0.06755707412958145, 0.01706635020673275, 0.02478637546300888, 0.21326406300067902, -0.007307439111173153, -0.11725359410047531, -0.001455271034501493, 0.2322855442762375, 0.2657832205295563, 0.013867221772670746, -0.09002245217561722, 0.05861471965909004, 0.32436054944992065, -0.08001409471035004, 0.0507926344871521, 0.08368505537509918, -0.29458871483802795, -0.019324157387018204, 0.21280905604362488, -0.21050554513931274, 0.19794805347919464, 0.20746281743049622, -0.04820087552070618, 0.11027027666568756, -0.27565640211105347, -0.14830954372882843, 0.23555906116962433, 0.1429792046546936, 0.5560611486434937, 0.022247618064284325, 0.2309233546257019, -0.2626541554927826, -0.2959458529949188, -0.1668587028980255, 0.16685061156749725, 0.256940096616745, -0.30189865827560425, -0.05855945870280266, -0.14594000577926636, -0.03431764617562294, -0.035540733486413956, -0.4733990430831909, 0.03934255614876747, 0.0014648009091615677, -0.14789216220378876, 0.02219654619693756, -0.11769726127386093, 0.2584048807621002, 0.048003848642110825, -0.09063871949911118, 0.2260761559009552, -0.06722835451364517, -0.13706736266613007, -0.11124287545681, -0.16639305651187897, 0.023018086329102516, 0.30569982528686523, 0.060775723308324814, -0.025573713704943657, 0.1304396092891693, 0.008615181781351566, -0.3728976547718048, -0.3643663227558136, 0.07001633942127228, -0.09638497233390808, 0.3734639286994934, 0.4846831262111664, 0.03400934115052223, 0.07078364491462708, -0.2421434223651886, 0.4771787226200104, -0.003509987611323595, -0.27951499819755554, 0.32249706983566284, -0.21451003849506378, 0.043125033378601074, -0.08843815326690674, -0.20025144517421722, 0.04335508123040199, -0.3384426236152649, 0.21440821886062622, 0.37705662846565247, 0.21819192171096802, 0.2402547150850296, 0.48269522190093994, 0.3846854269504547, -0.026259465143084526, 0.07251248508691788, 0.19789880514144897, 0.2519870698451996, 0.34460917115211487, -0.06192656233906746, -0.20835688710212708, -0.08896604925394058, -0.7822162508964539, 0.06586376577615738, 0.33430325984954834, -0.13283921778202057, -0.1330108493566513, -0.3091554045677185, 0.3684861958026886, -0.056636445224285126, 0.14051556587219238, 0.3780660033226013, 0.1708715558052063, -0.021762996912002563, -0.08045932650566101, -0.11399899423122406, 0.38617637753486633, 0.0908232182264328, -0.07788708060979843, -0.00791226327419281, 0.42250481247901917, -0.1440057009458542, 0.677736759185791, 0.09871851652860641, -0.27112632989883423, 0.20372305810451508, -0.21572430431842804, 0.0048963832668960094, -0.2505936026573181, 0.026511425152420998, -0.12178456783294678, 0.08886293321847916, -0.15233305096626282, -0.01915033720433712, -0.03637371584773064, -0.3188767731189728, 0.12181314080953598, 0.1965552568435669, -0.06244060397148132, -0.03971794247627258, 0.13161413371562958, -0.030843868851661682, 0.10222551226615906, -0.09183590114116669, 0.10499964654445648, -0.2875979542732239, -0.07567933946847916, -0.1908872425556183, -0.42048075795173645, 0.12403466552495956, -0.05752646550536156, -0.3283363878726959, 0.13981282711029053, -0.0885651633143425, 0.15244212746620178, 0.3744049370288849, -0.10428771376609802, 0.17585614323616028, -0.14145871996879578, 0.15694820880889893, -0.1547943502664566, 0.6634985208511353, -0.17584004998207092, -0.2710123062133789, 0.5152454376220703, 0.14071372151374817, -0.5415212512016296, -0.21296879649162292, -0.20953989028930664, 0.24580919742584229, -0.27251580357551575, 0.15201236307621002, -0.41028791666030884, -0.032701022922992706, 0.37731313705444336, 0.35969117283821106, -0.03273070976138115, -0.09448544681072235, -0.22166204452514648, -0.34115225076675415, -0.06819093227386475, -0.11541131138801575, -0.07278866320848465, 0.31529006361961365, 0.12361004203557968, -0.3971577286720276, -0.37359538674354553, -0.04002496972680092, -0.17212940752506256, -0.01045171543955803, 0.45889532566070557, -0.23808567225933075, 0.16494640707969666, -0.23977874219417572, 0.0009242199594154954, 0.2648695409297943, 0.19213096797466278, 0.11757948994636536, -0.06438007205724716, 0.10528822988271713, -0.057262394577264786, 0.44947996735572815, 0.25927430391311646, -0.05408548563718796, 0.05743074417114258, 0.16395783424377441, 0.1375255286693573, -0.12498538941144943, -0.026865867897868156, 0.4133700132369995, -0.3308495581150055, -0.18988573551177979, -0.3715828061103821, 0.6200920939445496, 0.041490793228149414, 0.15148723125457764, 0.35556691884994507, 0.3764859437942505, -0.24240742623806, 0.31652840971946716, 0.5446490049362183, 0.9667254090309143, -0.12890443205833435, 0.21344348788261414, 0.6495652198791504, 0.0029647385235875845, 0.28280243277549744, 0.25408512353897095, 0.22778335213661194, -0.5002321600914001, -0.03399975970387459, -0.006579850800335407, -0.39275965094566345, 0.20695048570632935, 0.21497806906700134, -0.18650367856025696, -0.001237162621691823, -0.21826234459877014, 0.43582943081855774, 0.10367447137832642, 0.0344059020280838, -0.21346798539161682, -0.11787810921669006, -0.07300404459238052, 0.08956761658191681, 0.005827167071402073, -0.43819543719291687, -0.11544888466596603, -0.10171493887901306, -0.19784106314182281, -0.013527752831578255, -0.12549397349357605, -0.02390381135046482, -0.34957149624824524, 0.0696786493062973, 0.37010908126831055, -0.5165644884109497, 0.020865488797426224, 0.10904323309659958, 0.057287879288196564, -0.14020617306232452, -0.09696952253580093, 0.026019996032118797, 0.2428460270166397, -0.18427428603172302, -0.01305948942899704, -0.3214934766292572, 0.26306092739105225, 0.03283022344112396, -0.20511981844902039, 0.0229538232088089, -0.13531237840652466, -0.1692553013563156, -0.17502343654632568, -0.05511526018381119, 0.2479521781206131, -0.2530687153339386, -0.1780591607093811, -0.08158958703279495, -0.14631740748882294, -0.17387764155864716, 0.06660247594118118, 0.11702555418014526, -0.1410750150680542, 0.0025070926640182734, 0.13004152476787567, 0.023549528792500496, -0.070921890437603, 0.020520223304629326, 0.5894402265548706, 0.291307270526886, 0.430231511592865, 0.3094700276851654, -0.0467933714389801, -0.1781943291425705, 0.0038346596993505955, 0.6479718685150146, -0.5415278673171997, 0.22304528951644897, 0.1170610785484314, -0.2020018845796585, -0.12187626957893372, 0.47087362408638, -0.11451660841703415, 0.28162699937820435, -0.18627725541591644, 0.11730355024337769, -0.4731614887714386, 0.2905723750591278, 0.22204053401947021, 0.4258413314819336, -0.26732948422431946, -0.16887715458869934, -0.005042762495577335, -0.01911395788192749, -0.2316867560148239, 0.07894884049892426, 0.027929916977882385, 0.06788384169340134, -0.5748076438903809, -0.10592658072710037, 0.1317712366580963, 0.08111821115016937, 0.10176602751016617, 0.0013397722505033016, -0.38815611600875854, -0.15802529454231262, -0.0020912562031298876, 0.15583191812038422, 0.058741629123687744, -0.17484232783317566, 0.20193175971508026, -0.1383805274963379, -0.25600340962409973, -0.22967207431793213, 0.03893222659826279, -0.02139146625995636, -0.21820011734962463, -0.18092571198940277, 0.3834414482116699, -0.02543577551841736, -0.31178930401802063, 0.026955805718898773, -0.25204113125801086, 0.29809996485710144, 0.11875294893980026, 0.07039433717727661, 0.12290556728839874, -0.05840719863772392, -0.07515380531549454, 0.1965293288230896, 0.040466323494911194, -0.2731577157974243, 0.2590333819389343, -0.4374721646308899, -0.3664402961730957, -0.2270938605070114, 0.45812350511550903, 0.3234950006008148, -0.11106880754232407, 0.07360720634460449, 0.15905213356018066, 0.1698397397994995, -0.22207054495811462, 0.04900210723280907, 0.21036772429943085, -0.11934701353311539, 0.1806746870279312, 0.301337331533432, 0.08320250362157822, -0.0033878262620419264, -0.1054542139172554, 0.11712837219238281, -0.022933026775717735, 0.025282399728894234, 0.08340533822774887, 0.46520572900772095, -0.10984394699335098, -0.051815979182720184, 0.3878832161426544, -0.019609462469816208, 0.22277653217315674, 0.007995285093784332, -0.0850413367152214, 0.41476187109947205, 0.0869295671582222, -0.051775168627500534, 0.1325203776359558, -0.029311655089259148, 0.11169847100973129, 0.27157801389694214, 0.3833851218223572, -0.12040777504444122, -0.02678379975259304, 0.6152068376541138, 0.22237272560596466, -0.04603666439652443, -0.4197404682636261, -0.1864471137523651, -0.14554932713508606, -0.03401205688714981, -0.08270592242479324, -0.1281297653913498, -0.23598797619342804, -0.15408514440059662, -0.16394348442554474, -0.4509732723236084, 0.2512566149234772, -0.08055601269006729, 0.0692254975438118, -0.29031291604042053, 0.7235404253005981, 0.18264858424663544, 0.015535876154899597, -0.13641634583473206, 0.4172532856464386, 0.34538987278938293, -0.12965789437294006, -0.18104298412799835, 0.49450889229774475, 0.3849448561668396, 0.42389562726020813, -0.4110918641090393, -0.032411061227321625, 0.005664502736181021, -0.21467258036136627, -0.05592771992087364, 0.05933837592601776, 0.23705676198005676, 0.18803825974464417, 0.177080437541008, 0.07763747870922089, -0.1500832736492157, 0.10098239034414291, 0.25142839550971985, -0.035795945674180984, -0.22356025874614716, 0.2157307118177414, -0.22515235841274261, -0.2205972969532013, 0.05898232012987137, -0.07665282487869263, -0.4713689386844635, -0.14397358894348145, 0.4179425835609436, -0.16830888390541077, -0.00664564361795783, -0.0709948018193245, 0.04235740005970001, -0.2739174962043762, 0.4860861003398895, 0.01011020690202713, 0.5837240815162659, -0.2782606780529022, -0.10448810458183289, -0.39047205448150635, 0.3186706602573395, -0.5196855068206787, 0.10719481855630875, 0.26804226636886597, 0.36915770173072815, -0.0757022425532341, 0.11052598804235458, 0.1447150558233261, 0.17749559879302979, 0.00622567581012845, 0.42663970589637756, -0.3925257921218872, -0.010361983440816402, 0.25644201040267944, 0.00764390267431736, -0.08664190024137497, -0.3860507607460022, 0.16128744184970856, -0.34793803095817566, -0.018234867602586746, 0.17642411589622498, 0.1481562703847885, 0.2485915720462799, 0.22585923969745636, 0.5414072871208191, -0.057941894978284836, 0.15316888689994812, 0.24250158667564392, -0.15872038900852203, -0.36442872881889343, -0.1778416484594345, -0.15898071229457855, 0.24178452789783478, 0.07554657012224197, 0.43354421854019165, -0.2603599429130554, 0.23520635068416595, -0.16380378603935242, -0.0019347363850101829, 0.027669193223118782, 0.24005962908267975, -0.1374569982290268, 0.40335747599601746, -0.600619375705719, 0.0910600945353508, -0.021642988547682762, -0.16584520041942596, 0.09278053790330887, 0.056539446115493774, -0.223238006234169, -0.4527823030948639, 0.6323033571243286, -0.31646624207496643, -0.4803245961666107, 0.025567153468728065, -0.010818860493600368, 0.3791210651397705, -0.115454763174057, -0.34465041756629944, -0.09048217535018921, 0.3934347629547119, 0.002851862693205476, -0.10305988788604736, 0.1104021891951561, 0.05311809107661247, 0.0731436237692833, -0.16793617606163025, 0.24423344433307648, -0.19231703877449036, -0.12970805168151855, -0.38424986600875854, -0.5637409090995789 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi @lhoestq, Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays? e.g.: `datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))` `Array3D(shape=(None, 137, 2), dtype="float32")`
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
29
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Hi @lhoestq, Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays? e.g.: `datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))` `Array3D(shape=(None, 137, 2), dtype="float32")`
[ -0.20844480395317078, 0.003984818700700998, -0.0901310071349144, 0.041179586201906204, 0.3527275621891022, -0.03630097955465317, 0.6182538866996765, 0.09212616086006165, -0.19569121301174164, 0.19286739826202393, 0.24202550947666168, 0.047522544860839844, -0.2796558141708374, 0.04918193072080612, 0.24265451729297638, -0.34459400177001953, 0.2176741659641266, 0.40564823150634766, 0.13021166622638702, 0.01604536734521389, -0.15405668318271637, -0.1357143372297287, -0.31794971227645874, 0.25071099400520325, -0.16508127748966217, -0.006374624092131853, -0.2581346929073334, -0.11908312886953354, -0.09530188888311386, -0.4796813130378723, 0.4352334141731262, 0.10036581754684448, 0.21723327040672302, 0.1735837757587433, -0.0001256443210877478, -0.015190785750746727, 0.45407378673553467, 0.005307263229042292, -0.22720077633857727, 0.10617323964834213, 0.05165168642997742, -0.42385485768318176, 0.16830608248710632, -0.32537195086479187, 0.09302476048469543, -1.015885353088379, 0.03741733357310295, -0.16508102416992188, -0.004755106754601002, -0.02511664479970932, 0.09717316925525665, 0.11753567308187485, 0.5744311809539795, -0.05445749685168266, 0.4038921296596527, 0.3394402861595154, -0.29644379019737244, 0.0017572760116308928, 0.6183668375015259, 0.1803768277168274, 0.16332519054412842, -0.3020036518573761, -0.15559160709381104, 0.10847631096839905, 0.36687585711479187, 0.0900714248418808, 0.2777225077152252, -0.19633649289608002, -0.10393193364143372, 0.352525919675827, 0.4946058988571167, -0.20986545085906982, -0.2475663274526596, -0.29316964745521545, 0.0062060728669166565, -0.09687068313360214, -0.1634800285100937, 0.13155345618724823, -0.2634223997592926, -0.038159675896167755, -0.2493409365415573, 0.02785218507051468, -0.4791491627693176, 0.39236968755722046, 0.18320991098880768, 0.3168773055076599, 0.07805400341749191, 0.21022242307662964, -0.1305961012840271, -0.4713122248649597, 0.539920449256897, -0.1946742981672287, -0.03934747725725174, 0.1770700067281723, -0.010968223214149475, 0.03823244199156761, -0.14360982179641724, -0.39140236377716064, 0.3296515941619873, -0.1347406655550003, 0.22335024178028107, 0.003693534294143319, 0.2935345768928528, 0.1309707760810852, -0.11200326681137085, 0.44398146867752075, -0.005043873097747564, -0.25733867287635803, -0.10001371800899506, 0.01767556741833687, 0.14946237206459045, 0.1185554638504982, -0.3885904550552368, -0.06656154990196228, 0.2135729044675827, -0.007295569870620966, 0.11256388574838638, 0.30525609850883484, 0.08393745124340057, -0.08253337442874908, -0.5444917678833008, -0.19525516033172607, -0.03425674885511398, 0.11300326138734818, 0.1320810616016388, 0.06446220725774765, -0.09581029415130615, 0.3358776271343231, 0.019079439342021942, -0.0274250078946352, -0.049289003014564514, -0.0743572860956192, -0.16969765722751617, -0.2090103179216385, -0.07422733306884766, 0.2425675392150879, 0.02305632270872593, -0.24549098312854767, 0.29633310437202454, 0.25895845890045166, -0.10091472417116165, 0.17458955943584442, 0.13552379608154297, 0.08654208481311798, -0.12460830807685852, -0.14219330251216888, -0.15301787853240967, 0.06598272174596786, -0.20352092385292053, 0.45759013295173645, 0.03496413305401802, -0.2632194757461548, -0.519005298614502, 0.06348104774951935, -0.2189638316631317, -0.05992108955979347, -0.013463580049574375, 0.15403805673122406, 0.24651506543159485, -0.02626074105501175, 0.07057502120733261, -0.10210186243057251, 0.10381726920604706, -0.3753695785999298, 0.05500762164592743, -0.19843468070030212, -0.41594719886779785, 0.052062492817640305, 0.03623069077730179, 0.0176681075245142, -0.24960957467556, -0.1657964289188385, -0.13680493831634521, 0.13067924976348877, -0.14763309061527252, 0.15542656183242798, 0.41962549090385437, 0.0659344270825386, 0.026214295998215675, 0.1470687836408615, 0.10740566998720169, -0.20007333159446716, 0.2734326720237732, 0.05881017446517944, 0.02316071093082428, -0.0664212703704834, -0.36638593673706055, 0.2728356420993805, -0.10102839022874832, -0.27700844407081604, 0.034904852509498596, -0.5597997903823853, 0.3022977411746979, 0.20052164793014526, 0.10874401777982712, 0.0053191776387393475, 0.06421619653701782, -0.34755709767341614, 0.36981454491615295, -0.4612916111946106, 0.20463275909423828, -0.04516139626502991, 0.33030641078948975, -0.1753944754600525, 0.17330941557884216, -0.31765955686569214, -0.7671210765838623, 0.24276289343833923, -0.3001497685909271, -0.08346769958734512, 0.1464916318655014, 0.03407161310315132, -0.12144371122121811, 0.17298151552677155, -0.22080233693122864, 0.0893113911151886, -0.03169098123908043, -0.0686631128191948, 0.16656747460365295, -0.25477802753448486, -0.2116599828004837, -0.42588621377944946, 0.015258285216987133, -0.04175766557455063, -0.5153889656066895, 0.35710322856903076, 0.11930142343044281, -0.37394979596138, -0.311686635017395, 0.2690057158470154, -0.10388533025979996, -0.20808817446231842, -0.11685288697481155, 0.2687581479549408, -0.10845678299665451, 0.014357496984302998, -0.5090373158454895, 0.12129633873701096, -0.0007313807145692408, -0.3114992380142212, 0.4452402889728546, 0.1880425363779068, 0.0074210260063409805, -0.30562496185302734, 0.29827335476875305, 0.4102923572063446, 0.13029995560646057, 0.4531942307949066, -0.1391332596540451, -0.01430860348045826, -0.0755283311009407, 0.214080810546875, 0.04932444915175438, -0.11155840754508972, -0.11174143105745316, 0.2841159999370575, 0.11762004345655441, -0.09520123898983002, -0.12548568844795227, 0.15263649821281433, 0.17837655544281006, -0.08802773803472519, 0.06175941601395607, 0.15660806000232697, -0.17420250177383423, 0.12631230056285858, 0.16004320979118347, 0.05948876217007637, 0.1768953800201416, 0.1391759067773819, -0.22937318682670593, 0.05311673879623413, -0.16666966676712036, -0.15808163583278656, 0.2809896767139435, 0.05688430741429329, 0.4773673713207245, 0.10187405347824097, 0.2846909165382385, -0.20708878338336945, -0.1774292290210724, -0.1415565311908722, -0.03247266262769699, 0.08082036674022675, -0.14079473912715912, 0.04415884613990784, -0.14672213792800903, -0.1975245624780655, 0.0022281864657998085, -0.677045464515686, 0.013374371454119682, -0.023938527330756187, -0.10550381243228912, 0.023071998730301857, -0.08057637512683868, 0.27858132123947144, -0.07870689779520035, -0.12861183285713196, 0.26233726739883423, -0.15323323011398315, -0.14768990874290466, 0.014616571366786957, -0.09394218027591705, -0.00714843487367034, 0.18498100340366364, -0.06404983997344971, -0.13560070097446442, 0.23879268765449524, 0.1510269194841385, -0.19452297687530518, -0.3252478539943695, -0.0284236092120409, -0.06775332242250443, 0.26548317074775696, 0.4885599911212921, -0.17511722445487976, 0.1404494345188141, -0.3283764719963074, 0.32279935479164124, -0.11914465576410294, -0.24913273751735687, 0.17542129755020142, -0.18403813242912292, 0.010526441037654877, -0.10253652185201645, 0.0885615274310112, -0.1960027515888214, -0.24939972162246704, 0.20906990766525269, 0.46572211384773254, 0.21657200157642365, 0.29885074496269226, 0.45659059286117554, 0.21074742078781128, -0.00910615548491478, -0.11954151839017868, 0.3286368250846863, 0.23012343049049377, 0.4304119348526001, -0.003097257809713483, -0.14937491714954376, -0.1261465847492218, -0.8431597948074341, 0.11973506212234497, 0.3775201141834259, 0.1666361391544342, -0.10065720230340958, -0.18611104786396027, 0.13863804936408997, 0.0683845579624176, 0.03450797125697136, 0.3450484871864319, 0.08374635875225067, 0.08081156015396118, -0.2081264853477478, -0.06665956974029541, 0.38704967498779297, 0.20042817294597626, -0.005589950364083052, 0.2823004722595215, 0.30347830057144165, -0.19050215184688568, 0.6329150795936584, -0.06740763038396835, -0.34575870633125305, 0.2688486874103546, -0.15779782831668854, -0.15022917091846466, -0.11617796868085861, -0.20452171564102173, -0.07198665291070938, 0.0357283391058445, -0.21119992434978485, -0.07226196676492691, -0.04872778803110123, -0.34219083189964294, 0.12180464714765549, 0.3561451733112335, 0.04759974405169487, 0.11592204123735428, -0.06617637723684311, -0.05638961121439934, 0.26703399419784546, -0.10155961662530899, 0.11031116545200348, -0.318511426448822, -0.20994292199611664, -0.3018074929714203, -0.310098260641098, 0.23420380055904388, -0.05153755471110344, -0.2744895815849304, -0.034687891602516174, 0.06658168137073517, 0.2780241370201111, 0.5870453715324402, 0.1450059860944748, 0.16731920838356018, -0.03043619729578495, 0.13689552247524261, -0.05560717731714249, 0.3812728822231293, -0.09376177936792374, -0.22236809134483337, 0.512732207775116, 0.09894425421953201, -0.43374037742614746, -0.21741604804992676, -0.020359452813863754, -0.09682817757129669, -0.259322851896286, 0.08138292282819748, -0.26990076899528503, -0.01494110468775034, 0.37943342328071594, 0.1416918784379959, -0.07761343568563461, -0.22966627776622772, -0.15840187668800354, -0.08758878707885742, -0.16140244901180267, -0.29808905720710754, -0.09822098910808563, 0.3584461510181427, 0.11973925679922104, -0.41499143838882446, -0.3605049252510071, -0.12431273609399796, -0.16322556138038635, -0.021389354020357132, 0.37610262632369995, -0.20708423852920532, 0.047063734382390976, -0.2696417570114136, -0.0585356205701828, 0.2221454679965973, -0.048772603273391724, 0.15636363625526428, 0.13894933462142944, 0.04723295941948891, -0.04505528509616852, 0.5575079917907715, 0.18058322370052338, -0.1562362015247345, 0.16046683490276337, 0.050111692398786545, 0.11213023215532303, -0.15791195631027222, -0.300976037979126, 0.521943986415863, -0.4097982347011566, 0.07912147045135498, -0.3341865539550781, 0.5171601176261902, -0.06430427730083466, 0.20471259951591492, 0.3343687355518341, 0.2912314832210541, -0.1984201967716217, 0.1640220731496811, 0.6330124139785767, 0.8277630805969238, 0.1401897817850113, 0.1410457044839859, 0.7423073649406433, -0.04478856921195984, -0.09040150791406631, 0.5768285393714905, 0.11317049711942673, -0.48755520582199097, 0.10666530579328537, -0.20292475819587708, -0.3054344058036804, 0.23310750722885132, 0.15186354517936707, -0.12394613027572632, -0.021685127168893814, -0.09885038435459137, 0.4097415506839752, 0.2667940557003021, -0.010626562871038914, -0.27631068229675293, -0.16566132009029388, -0.11895586550235748, -0.0065223476849496365, 0.05287998542189598, -0.5251210331916809, -0.15814396739006042, -0.3651202619075775, 0.008471881039440632, -0.022208187729120255, -0.1836153268814087, -0.028426721692085266, -0.2258722335100174, 0.04506300389766693, 0.48007506132125854, -0.5878511071205139, 0.191748708486557, 0.15929678082466125, -0.015608538873493671, -0.34682872891426086, -0.11093246936798096, -0.06943219155073166, 0.17533092200756073, -0.1501414179801941, -0.20986635982990265, -0.38197657465934753, 0.33886516094207764, 0.0652787908911705, -0.15678763389587402, -0.007610434666275978, -0.04682913050055504, -0.14082229137420654, -0.2539263069629669, -0.03923845291137695, 0.2380228042602539, -0.26311787962913513, -0.11700128018856049, -0.2332715541124344, -0.060596153140068054, -0.1205427497625351, -0.029441004619002342, 0.1776784360408783, 0.0005440592649392784, 0.013040667399764061, 0.18196944892406464, 0.15438078343868256, -0.041154686361551285, -0.06017525866627693, 0.5626741647720337, 0.18864896893501282, 0.3105586767196655, 0.26676204800605774, 0.026135943830013275, -0.09321151673793793, 0.2646549642086029, 0.43704408407211304, -0.5262245535850525, 0.171775683760643, 0.11614812165498734, -0.14271891117095947, -0.09367790818214417, 0.3504415452480316, -0.06581606715917587, 0.32710692286491394, -0.12833271920681, -0.053061939775943756, -0.27289849519729614, 0.34119659662246704, -0.042077332735061646, 0.3002487123012543, -0.26209956407546997, -0.036827538162469864, 0.05631804093718529, -0.03351183235645294, -0.14393621683120728, 0.08405257016420364, 0.2423199564218521, -0.19258266687393188, -0.47767314314842224, -0.07778456062078476, 0.08311395347118378, 0.15272779762744904, -0.03447022661566734, 0.005704160314053297, -0.5085957050323486, -0.011931149289011955, -0.037454791367053986, 0.20353810489177704, 0.1438111960887909, -0.14731162786483765, 0.12347236275672913, -0.021133365109562874, -0.3804355263710022, -0.10492579638957977, -0.12080582976341248, -0.171505868434906, -0.11652909964323044, -0.09322898089885712, 0.3691185414791107, 0.1329869031906128, -0.2661278545856476, 0.08691398799419403, -0.17108727991580963, 0.26449912786483765, 0.14528633654117584, 0.06373510509729385, 0.04026973620057106, -0.11367019265890121, -0.12270277738571167, 0.25895488262176514, 0.012605749070644379, -0.2605254650115967, 0.513220489025116, -0.36071470379829407, -0.31772908568382263, -0.2466166764497757, 0.6039422154426575, 0.22002163529396057, -0.10873458534479141, 0.0422896072268486, 0.05186312273144722, 0.0542953796684742, -0.29337266087532043, 0.008341556414961815, 0.36200615763664246, 0.16836488246917725, 0.07968442887067795, 0.39618435502052307, 0.3050343692302704, -0.08191664516925812, 0.07811493426561356, 0.15114538371562958, -0.0342172309756279, 0.022940970957279205, 0.02214139513671398, 0.6143952012062073, -0.09793220460414886, 0.07841283828020096, 0.4165045917034149, 0.09844179451465607, 0.40632012486457825, 0.24997049570083618, 0.01537011656910181, 0.4456943869590759, 0.42482179403305054, -0.07881155610084534, 0.20081818103790283, -0.04261504486203194, 0.015703001990914345, 0.14235684275627136, 0.4935704469680786, -0.05587461218237877, 0.1126008927822113, 0.76382976770401, 0.12660294771194458, 0.08974847197532654, -0.2980307936668396, -0.1383945345878601, 0.038678087294101715, -0.0417293980717659, -0.058402951806783676, -0.08549115061759949, -0.3334425389766693, -0.3653240203857422, -0.1893305629491806, -0.3462079167366028, 0.1235823705792427, -0.2630017101764679, 0.15517781674861908, -0.44779151678085327, 0.6662032604217529, 0.20661738514900208, 0.04867164418101311, -0.08896324038505554, 0.4410881996154785, 0.3619869649410248, 0.06269490718841553, -0.14304393529891968, 0.5823983550071716, 0.3293173015117645, 0.35081949830055237, -0.3735731840133667, -0.10254644602537155, -0.13755276799201965, -0.18386836349964142, 0.12467707693576813, 0.19955670833587646, 0.09577757120132446, 0.2726627588272095, 0.2463156282901764, -0.0009987583616748452, -0.017351917922496796, 0.17821569740772247, 0.33533284068107605, -0.10916019976139069, -0.24788567423820496, 0.22198325395584106, -0.33797138929367065, -0.06725165992975235, 0.09293267875909805, -0.002986211096867919, -0.4135432541370392, -0.017028653994202614, 0.2774389982223511, -0.20019833743572235, -0.051287077367305756, 0.0032044285908341408, -0.014380521140992641, -0.2667311728000641, 0.5101759433746338, 0.059889547526836395, 0.4724581837654114, 0.020974958315491676, -0.13032260537147522, -0.35636162757873535, 0.37548840045928955, -0.21778960525989532, 0.09494311362504959, 0.33243581652641296, 0.1496601700782776, 0.03297450393438339, -0.029118960723280907, 0.2620595693588257, 0.20709483325481415, -0.025027906522154808, 0.4323694407939911, -0.3074166774749756, 0.002020518761128187, 0.3492784798145294, 0.0656786859035492, -0.14663368463516235, -0.23382455110549927, 0.1958296298980713, -0.4173716604709625, -0.11056871712207794, 0.16052117943763733, 0.02188439853489399, 0.10339697450399399, 0.0660809874534607, 0.4318189024925232, -0.010429194197058678, 0.13003426790237427, 0.21824471652507782, -0.0676097497344017, -0.27455565333366394, -0.20899701118469238, -0.12324237078428268, 0.2718919813632965, 0.155533567070961, 0.45570889115333557, -0.2516748905181885, 0.2150695025920868, -0.06576580554246902, -0.0497676357626915, 0.006862466223537922, 0.1790616810321808, -0.24236956238746643, 0.543867826461792, -0.5492837429046631, -0.07794428616762161, 0.16378705203533173, -0.2548533082008362, 0.05688440799713135, 0.21449029445648193, -0.13880924880504608, -0.4605124890804291, 0.5378776788711548, 0.05517709255218506, -0.47425517439842224, 0.0790155827999115, -0.18475519120693207, 0.3659093379974365, -0.09476917237043381, -0.24039778113365173, -0.036639243364334106, 0.35718345642089844, 0.07307447493076324, 0.18862688541412354, 0.09951695799827576, 0.10057459771633148, -0.10191133618354797, -0.21682584285736084, -0.014438599348068237, -0.07122953236103058, -0.07717916369438171, -0.337457537651062, -0.4207014739513397 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
38
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point.
[ -0.0987301841378212, 0.2157677412033081, -0.03618964925408363, 0.19808165729045868, 0.333523690700531, -0.014813951216638088, 0.6729165315628052, 0.09411279112100601, -0.2653335630893707, 0.19205287098884583, 0.3300926983356476, 0.2847851812839508, -0.185158371925354, -0.0952645093202591, 0.24232974648475647, -0.390093058347702, 0.17594115436077118, 0.4636600613594055, 0.08268783241510391, 0.05195615440607071, -0.052008919417858124, -0.13845132291316986, -0.2443881332874298, 0.29183146357536316, -0.3977600336074829, -0.007421267684549093, -0.2625420093536377, -0.22839459776878357, -0.1936274617910385, -0.509043276309967, 0.3147088289260864, -0.0006437033298425376, 0.11578947305679321, 0.22048456966876984, -0.0001211161506944336, 0.05601269379258156, 0.49807289242744446, 0.05634045600891113, -0.26768141984939575, -0.12664516270160675, 0.09791728854179382, -0.3960360288619995, 0.24923843145370483, -0.34385475516319275, -0.03365904837846756, -0.8026284575462341, 0.019316818565130234, 0.022197894752025604, 0.07842444628477097, 0.25141531229019165, 0.1347983032464981, 0.13276992738246918, 0.29146894812583923, -0.19927746057510376, 0.4904194474220276, 0.3490466773509979, -0.2730584740638733, -0.08437936007976532, 0.30835890769958496, 0.04972045123577118, -0.01959899254143238, -0.2024354487657547, -0.069188192486763, 0.1527658998966217, 0.3510461747646332, 0.3043108880519867, 0.332536906003952, -0.22807137668132782, -0.040340498089790344, 0.4299197793006897, 0.5088963508605957, -0.15752708911895752, -0.17081117630004883, -0.12800531089305878, 0.08625270426273346, -0.09454674273729324, -0.062422022223472595, 0.23521286249160767, -0.28722497820854187, -0.07062118500471115, -0.1919652372598648, 0.1625070571899414, -0.4509168565273285, 0.36065447330474854, 0.2118673026561737, 0.08092338591814041, -0.011421038769185543, 0.2249787598848343, -0.09353484958410263, -0.22924987971782684, 0.5371072888374329, -0.35070452094078064, 0.03743944689631462, 0.22593504190444946, 0.11728135496377945, 0.13557855784893036, -0.1068529486656189, -0.23853035271167755, 0.419149249792099, -0.00498301163315773, 0.1828809231519699, -0.06394481658935547, 0.3001134693622589, 0.10840214043855667, -0.19019287824630737, 0.2092389315366745, -0.020874598994851112, -0.11744572222232819, -0.07927340269088745, 0.16554108262062073, 0.04669056087732315, 0.06182294711470604, -0.2769743800163269, -0.28441092371940613, 0.4106665849685669, -0.07095617800951004, 0.2312161922454834, 0.2673470973968506, 0.09081138670444489, 0.029430219903588295, -0.580867350101471, -0.14972276985645294, -0.025487015023827553, 0.21216370165348053, 0.09222917258739471, -0.1061183512210846, -0.1419936716556549, 0.40518346428871155, 0.02285941131412983, -0.09561310708522797, -0.1998203992843628, 0.007038304582238197, -0.20481464266777039, -0.05898230895400047, 0.10277542471885681, 0.11233022063970566, 0.1261424571275711, -0.010921656154096127, 0.05620570108294487, 0.10104881227016449, 0.23483237624168396, 0.04992591589689255, 0.17283879220485687, 0.14020103216171265, -0.18908976018428802, -0.06464624404907227, -0.03354641795158386, -0.18142671883106232, -0.21893908083438873, 0.37103670835494995, -0.07449102401733398, -0.2519066333770752, -0.42253008484840393, 0.09550770372152328, -0.27651506662368774, 0.06513513624668121, -0.05947105213999748, 0.07526055723428726, 0.23037301003932953, 0.0628448948264122, 0.040109168738126755, -0.031093696132302284, 0.24735590815544128, -0.3945894241333008, 0.18736089766025543, -0.001576447393745184, -0.31778690218925476, -0.018428776413202286, -0.1473832130432129, -0.049786414951086044, -0.07660578191280365, -0.08500620722770691, -0.2563999891281128, 0.2750624120235443, -0.22004500031471252, 0.26535412669181824, 0.6616539359092712, 0.2300470471382141, -0.027521921321749687, 0.009354747831821442, 0.020385917276144028, -0.1692550927400589, 0.20736607909202576, 0.07747606933116913, -0.16636095941066742, -0.03758279234170914, -0.31474316120147705, 0.2284334897994995, -0.17251689732074738, -0.23746314644813538, -0.001448909635655582, -0.37010422348976135, 0.4319518208503723, 0.13115771114826202, 0.07571239769458771, -0.025696594268083572, -0.05931514874100685, -0.4242018461227417, 0.061776697635650635, -0.47538527846336365, 0.23887284100055695, 0.09565462172031403, 0.36807936429977417, -0.11749491840600967, 0.10337330400943756, -0.198799267411232, -0.6633151769638062, 0.14799381792545319, -0.32694733142852783, 0.0684962347149849, -0.10351544618606567, -0.012729288078844547, -0.11671769618988037, 0.1993872970342636, -0.19578976929187775, 0.06805571913719177, 0.046556971967220306, 0.08328162878751755, 0.1992710828781128, -0.16044090688228607, -0.22584250569343567, -0.4588732123374939, 0.01664620451629162, -0.022931896150112152, -0.3702346980571747, 0.5743257999420166, -0.0487578846514225, -0.351561963558197, -0.3371126353740692, 0.13422738015651703, 0.059917233884334564, -0.07955540716648102, 0.03011123649775982, 0.14923536777496338, -0.08305275440216064, -0.07877491414546967, -0.4900362193584442, 0.086402028799057, 0.03160789608955383, -0.4731906056404114, 0.21939623355865479, 0.18136577308177948, -0.009098240174353123, -0.24578696489334106, 0.06350400298833847, 0.37478429079055786, 0.08795520663261414, 0.5813250541687012, -0.12697216868400574, 0.06605547666549683, -0.016617190092802048, 0.18731755018234253, -0.06378559023141861, -0.09889967739582062, -0.04136276617646217, 0.18754880130290985, 0.21956148743629456, -0.04123936966061592, -0.08149759471416473, 0.01240189652889967, 0.2831690013408661, -0.07639075070619583, 0.048575691878795624, 0.09435010701417923, -0.26220282912254333, 0.02413022331893444, 0.20714807510375977, -0.2704460024833679, 0.09333831816911697, 0.1391812562942505, -0.07425018399953842, 0.050627097487449646, -0.2858198285102844, -0.17548418045043945, 0.19577988982200623, 0.08461971580982208, 0.5732080936431885, 0.11509521305561066, 0.27379998564720154, -0.2092379629611969, -0.20143888890743256, -0.17613142728805542, 0.08516915887594223, 0.15053780376911163, -0.23911868035793304, 0.06941157579421997, -0.09600178152322769, 0.008092120289802551, -0.06270875781774521, -0.5734019875526428, 0.056291040033102036, -0.04109751060605049, -0.12515920400619507, -0.007177920080721378, -0.14935466647148132, 0.2693190276622772, 0.09402389824390411, -0.18454304337501526, 0.2232491672039032, -0.13778196275234222, -0.23207665979862213, -0.08101291209459305, -0.13977214694023132, 0.022912923246622086, 0.1893300861120224, 0.03117060661315918, -0.094059057533741, 0.09993623942136765, 0.03549905866384506, -0.41188108921051025, -0.4540098011493683, 0.09965094178915024, -0.11424867808818817, 0.33446940779685974, 0.5833547115325928, -0.014906994067132473, 0.0700235441327095, -0.32299092411994934, 0.42943739891052246, -0.001149641931988299, -0.2277640551328659, 0.3517604172229767, -0.2792392671108246, 0.07885252684354782, -0.10591056942939758, -0.09403110295534134, 0.03769698739051819, -0.24897973239421844, 0.19794386625289917, 0.48871487379074097, 0.20298480987548828, 0.20317302644252777, 0.481077641248703, 0.34841081500053406, -0.08084601908922195, 0.04298042878508568, 0.28675204515457153, 0.2725437581539154, 0.46230897307395935, -0.13022223114967346, -0.22611643373966217, -0.04215065762400627, -0.9024538993835449, 0.0799669548869133, 0.2271852046251297, 0.0157995093613863, -0.19567067921161652, -0.1324647217988968, 0.36340370774269104, -0.02110460214316845, 0.1189388632774353, 0.294412225484848, 0.1568295657634735, 0.0415896438062191, -0.1517075002193451, -0.07371947914361954, 0.4391624927520752, 0.10085099190473557, -0.022989237681031227, -0.02762906812131405, 0.2658875584602356, -0.18810680508613586, 0.6245253682136536, 0.11906222999095917, -0.3782254457473755, 0.1852210909128189, -0.26738494634628296, -0.026986582204699516, -0.22190047800540924, 0.07073339074850082, -0.18249942362308502, 0.1632908135652542, -0.0858730897307396, -0.06857761740684509, -0.0720275416970253, -0.2815802991390228, 0.11583484709262848, 0.24489246308803558, -0.05778829753398895, -0.023054998368024826, 0.022707894444465637, -0.026449259370565414, 0.16119448840618134, -0.1319911926984787, 0.08043072372674942, -0.2733573317527771, -0.1079016700387001, -0.18916763365268707, -0.28289154171943665, 0.24397428333759308, 0.017774665728211403, -0.28275632858276367, 0.07095447182655334, 0.06768526881933212, 0.1395311951637268, 0.4566805064678192, -0.13472868502140045, 0.23836469650268555, -0.11452178657054901, 0.09296619147062302, -0.17609940469264984, 0.543880820274353, -0.15666311979293823, -0.23141883313655853, 0.5165033936500549, 0.23146632313728333, -0.5232294797897339, -0.18866290152072906, -0.1555231660604477, 0.1535920649766922, -0.34654319286346436, 0.14943893253803253, -0.39069557189941406, -0.011744524352252483, 0.33688127994537354, 0.37387728691101074, 0.00406288355588913, -0.12060043215751648, -0.16477519273757935, -0.2754904627799988, -0.08474811911582947, -0.2419990599155426, -0.08588247001171112, 0.3476138114929199, 0.09770242124795914, -0.41913142800331116, -0.35736459493637085, 0.036763280630111694, -0.17707465589046478, -0.0007150131859816611, 0.4346477687358856, -0.2874871492385864, 0.07126747071743011, -0.33941495418548584, -0.020310454070568085, 0.23010094463825226, 0.1398196667432785, 0.17750780284404755, -0.06623145192861557, 0.14350692927837372, -0.09264200925827026, 0.43530452251434326, 0.0863301157951355, -0.08822699636220932, 0.07839521020650864, 0.11919806152582169, 0.10829231142997742, -0.013370067812502384, -0.07988855242729187, 0.41913315653800964, -0.33059704303741455, -0.16199931502342224, -0.31911540031433105, 0.6340945959091187, -0.0104079470038414, 0.1801794171333313, 0.2604026794433594, 0.42164522409439087, -0.18942387402057648, 0.2551967203617096, 0.5969880819320679, 0.8620147109031677, 0.0378393828868866, 0.17221906781196594, 0.691613495349884, 0.03553736209869385, 0.2889752686023712, 0.3305402398109436, 0.11083472520112991, -0.5170727372169495, 0.040055859833955765, -0.0893092229962349, -0.42948588728904724, 0.23980048298835754, 0.2657107412815094, -0.24768143892288208, -0.012587870471179485, -0.2438177466392517, 0.480745404958725, 0.15651285648345947, -0.053697582334280014, -0.20151843130588531, -0.13086755573749542, -0.0795704796910286, 0.06043672934174538, 0.018454156816005707, -0.39001864194869995, -0.1430814117193222, -0.21994948387145996, -0.14418549835681915, -0.036611683666706085, -0.049515221267938614, 0.04606587812304497, -0.34484419226646423, -0.050212230533361435, 0.5167233347892761, -0.5515488982200623, 0.06684958934783936, 0.16535170376300812, 0.05594606697559357, -0.2133408784866333, -0.11794150620698929, -0.03661831468343735, 0.24716949462890625, -0.23610685765743256, -0.1293754130601883, -0.3045613467693329, 0.2676641047000885, 0.044494304805994034, -0.08408837020397186, 0.053834620863199234, -0.12565965950489044, -0.060356296598911285, -0.05455732345581055, -0.02921091951429844, 0.19369812309741974, -0.21707452833652496, -0.15098628401756287, -0.1145186573266983, -0.15925639867782593, -0.12182068079710007, 0.038919415324926376, 0.12157893925905228, -0.14108391106128693, -0.1378934681415558, 0.11774883419275284, 0.07046477496623993, -0.01194863859564066, -0.05164891853928566, 0.5510174036026001, 0.31042733788490295, 0.390157014131546, 0.2568706274032593, -0.01922086998820305, -0.1990414559841156, 0.07806727290153503, 0.5724343657493591, -0.6061898469924927, 0.1683153659105301, 0.13291464745998383, -0.17899639904499054, -0.10070192813873291, 0.5450156927108765, -0.11705208569765091, 0.29163193702697754, -0.12734976410865784, 0.07248473167419434, -0.3985956907272339, 0.251529723405838, 0.18339087069034576, 0.31320425868034363, -0.24128934741020203, -0.07183989137411118, 0.058363087475299835, -0.10336291790008545, -0.21089136600494385, 0.05641735717654228, 0.05434207245707512, 0.007361630443483591, -0.5352552533149719, -0.01729764975607395, 0.03816671296954155, 0.07228130102157593, 0.09405316412448883, 0.014677164144814014, -0.36736106872558594, -0.13025632500648499, -0.08369170129299164, 0.17340563237667084, 0.1289806365966797, -0.1058807522058487, 0.20104338228702545, -0.016797564923763275, -0.2995280921459198, -0.21056106686592102, -0.04313652589917183, -0.13081257045269012, -0.19201207160949707, -0.0990220159292221, 0.33999666571617126, 0.02073018252849579, -0.4380854070186615, -0.10245728492736816, -0.2397683560848236, 0.2741338014602661, 0.07252483814954758, 0.020697806030511856, 0.08923317492008209, -0.04558822512626648, -0.05078686773777008, 0.221990704536438, 0.010541188530623913, -0.24015510082244873, 0.37989455461502075, -0.420901358127594, -0.278828889131546, -0.3206585943698883, 0.3866513669490814, 0.23733733594417572, -0.20531892776489258, 0.13427942991256714, 0.16002541780471802, 0.1335507482290268, -0.29314619302749634, 0.11275449395179749, 0.15652957558631897, -0.06778079271316528, 0.15653949975967407, 0.32399997115135193, 0.10539931803941727, -0.017161579802632332, -0.08242881298065186, 0.09631706029176712, -0.11413079500198364, 0.013692386448383331, 0.10669033974409103, 0.6419891119003296, -0.12013738602399826, 0.10073841363191605, 0.41036486625671387, -0.006851079408079386, 0.22833025455474854, -0.1362488716840744, -0.10213117301464081, 0.36180391907691956, 0.13664807379245758, -0.11503516137599945, 0.26374492049217224, 0.014405559748411179, 0.04237861931324005, 0.19450224936008453, 0.5667411684989929, -0.12465911358594894, 0.07764428108930588, 0.6018323302268982, 0.2360677570104599, 0.0012247044360265136, -0.35763081908226013, -0.11528665572404861, -0.03901222348213196, -0.0028820789884775877, -0.17662055790424347, -0.11265017092227936, -0.2524789273738861, -0.3445050120353699, -0.12694326043128967, -0.39857643842697144, 0.1758277714252472, -0.0852205827832222, 0.16137699782848358, -0.30827057361602783, 0.7386056184768677, 0.19287417829036713, 0.019134074449539185, -0.09083826839923859, 0.4798513948917389, 0.3387978672981262, -0.15448179841041565, -0.19703462719917297, 0.4266255497932434, 0.3237746059894562, 0.3594304621219635, -0.3366149067878723, -0.05496527627110481, -0.08874253183603287, -0.24887758493423462, 0.040842656046152115, 0.10509806126356125, 0.21212123334407806, 0.09204288572072983, 0.24404966831207275, 0.05473661795258522, -0.10427995026111603, 0.23550742864608765, 0.2357185035943985, 0.005596408154815435, -0.19128376245498657, 0.34885886311531067, -0.28892627358436584, -0.18701086938381195, 0.050445422530174255, -0.07543212175369263, -0.3536974787712097, -0.10602563619613647, 0.34067270159721375, -0.10863030701875687, -0.0013781412271782756, -0.08088740706443787, 0.04094453528523445, -0.24565373361110687, 0.44762516021728516, 0.07333815842866898, 0.5915701985359192, -0.1646004319190979, -0.0669570043683052, -0.3540525436401367, 0.369466096162796, -0.42730197310447693, 0.0692673772573471, 0.2883574068546295, 0.2724441885948181, -0.06474869698286057, 0.1407485157251358, 0.09317174553871155, 0.2419680505990982, 0.04848194867372513, 0.37809014320373535, -0.3498036861419678, -0.11154739558696747, 0.29032090306282043, 0.027509456500411034, -0.10340394079685211, -0.3440866470336914, 0.14826442301273346, -0.39785245060920715, -0.013310762122273445, 0.2130664438009262, 0.10515870898962021, 0.19912491738796234, 0.21046769618988037, 0.5235127806663513, -0.020421158522367477, 0.09538642317056656, 0.1667880117893219, -0.06462957710027695, -0.24806064367294312, -0.17214202880859375, -0.18310534954071045, 0.2971842288970947, 0.04492921754717827, 0.4057399332523346, -0.18767967820167542, 0.2667945623397827, -0.14431586861610413, -0.1357727199792862, 0.10330972075462341, 0.24412940442562103, -0.22406964004039764, 0.45084288716316223, -0.6143878102302551, 0.01965310238301754, 0.00964260846376419, -0.22102223336696625, 0.06379284709692001, 0.06435170024633408, -0.14374792575836182, -0.4331991672515869, 0.6617777943611145, -0.29927346110343933, -0.45785680413246155, 0.07304932177066803, -0.04486936703324318, 0.4074340760707855, -0.1394214630126953, -0.2819712460041046, -0.06147634983062744, 0.4609857499599457, 0.014607408083975315, -0.01931147836148739, 0.017254924401640892, 0.00479519460350275, 0.09183388948440552, -0.17302682995796204, 0.1973404586315155, -0.09373687952756882, -0.11257395893335342, -0.4181852638721466, -0.5695385336875916 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq, thanks for the update. I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here? I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version) Below are my modifications of this class. ``` class ArrayExtensionArray(pa.ExtensionArray): def __array__(self): zero_copy_only = _is_zero_copy_only(self.storage.type) return self.to_numpy(zero_copy_only=zero_copy_only) def __getitem__(self, i): return self.storage[i] def to_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage size = 1 for i in range(self.type.ndims): size *= self.type.shape[i] storage = storage.flatten() numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only) numpy_arr = numpy_arr.reshape(len(self), *self.type.shape) return numpy_arr def to_list_of_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage shape = self.type.shape arrays = [] for dim in range(1, self.type.ndims): assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}" first_dim_offsets = np.array([off.as_py() for off in storage.offsets]) for i in range(len(storage)): storage_el = storage[i:i+1] first_dim = first_dim_offsets[i+1] - first_dim_offsets[i] # flatten storage for dim in range(self.type.ndims): storage_el = storage_el.flatten() numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only) arrays.append(numpy_arr.reshape(first_dim, *shape[1:])) return arrays def to_pylist(self): zero_copy_only = _is_zero_copy_only(self.storage.type) if self.type.shape[0] is None: return self.to_list_of_numpy(zero_copy_only=zero_copy_only) else: return self.to_numpy(zero_copy_only=zero_copy_only).tolist() ``` I ran few tests and it works as expected. Let me know what you think.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
224
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> @lhoestq, thanks for the update. I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here? I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version) Below are my modifications of this class. ``` class ArrayExtensionArray(pa.ExtensionArray): def __array__(self): zero_copy_only = _is_zero_copy_only(self.storage.type) return self.to_numpy(zero_copy_only=zero_copy_only) def __getitem__(self, i): return self.storage[i] def to_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage size = 1 for i in range(self.type.ndims): size *= self.type.shape[i] storage = storage.flatten() numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only) numpy_arr = numpy_arr.reshape(len(self), *self.type.shape) return numpy_arr def to_list_of_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage shape = self.type.shape arrays = [] for dim in range(1, self.type.ndims): assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}" first_dim_offsets = np.array([off.as_py() for off in storage.offsets]) for i in range(len(storage)): storage_el = storage[i:i+1] first_dim = first_dim_offsets[i+1] - first_dim_offsets[i] # flatten storage for dim in range(self.type.ndims): storage_el = storage_el.flatten() numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only) arrays.append(numpy_arr.reshape(first_dim, *shape[1:])) return arrays def to_pylist(self): zero_copy_only = _is_zero_copy_only(self.storage.type) if self.type.shape[0] is None: return self.to_list_of_numpy(zero_copy_only=zero_copy_only) else: return self.to_numpy(zero_copy_only=zero_copy_only).tolist() ``` I ran few tests and it works as expected. Let me know what you think.
[ 0.008176423609256744, 0.11728616058826447, -0.10610848665237427, 0.2801871597766876, 0.40251272916793823, -0.06431593000888824, 0.5933444499969482, 0.10925879329442978, -0.23324084281921387, 0.22073668241500854, 0.12759004533290863, 0.30223605036735535, -0.2472837120294571, -0.02119613252580166, 0.20192156732082367, -0.31352925300598145, 0.08904027193784714, 0.5067413449287415, 0.048885200172662735, -0.027319638058543205, -0.053291115909814835, -0.06954813003540039, -0.16074322164058685, 0.1468549519777298, -0.2513419985771179, 0.06874468177556992, -0.24435073137283325, -0.2243446409702301, -0.17733778059482574, -0.46978604793548584, 0.2879074811935425, 0.18886980414390564, 0.028783809393644333, 0.08598385006189346, -0.00012308113218750805, 0.05414187163114548, 0.33211222290992737, -0.0007846304215490818, -0.2714816927909851, -0.08199887722730637, 0.20156319439411163, -0.44006624817848206, 0.2384079098701477, -0.325506329536438, -0.013981509022414684, -0.8362495303153992, -0.04946451261639595, -0.11109057068824768, 0.0708758607506752, 0.2057911455631256, 0.10444268584251404, 0.07360970228910446, 0.2843000888824463, -0.07893656939268112, 0.46993330121040344, 0.3682921528816223, -0.28825071454048157, -0.12759138643741608, 0.39754602313041687, 0.14315913617610931, -0.04000852629542351, -0.21010857820510864, -0.13134178519248962, 0.14171740412712097, 0.3835511803627014, 0.22648534178733826, 0.2187139242887497, -0.23538614809513092, 0.07335396111011505, 0.39445948600769043, 0.5115249752998352, -0.245364248752594, -0.19431278109550476, -0.23479852080345154, 0.08977100253105164, -0.046754930168390274, -0.08563566207885742, 0.32830408215522766, -0.22025112807750702, -0.048760853707790375, -0.3536950349807739, 0.22864076495170593, -0.5123705863952637, 0.3541974723339081, 0.19024688005447388, 0.07740066200494766, -0.014647369273006916, 0.20342932641506195, -0.10737096518278122, -0.2308216542005539, 0.5585182309150696, -0.3572504222393036, 0.03193170949816704, 0.23998981714248657, 0.06889282166957855, 0.10284439474344254, -0.06907959282398224, -0.4354405701160431, 0.3606014549732208, -0.046096522361040115, 0.19357459247112274, -0.02136446163058281, 0.27438807487487793, 0.030405612662434578, -0.1026981845498085, 0.2985350489616394, -0.0004930716822855175, -0.05969610437750816, -0.2731170654296875, 0.11011266708374023, 0.14550183713436127, 0.0948343425989151, -0.17044971883296967, -0.15998582541942596, 0.4061378538608551, -0.03821544721722603, 0.26063650846481323, 0.2152998298406601, 0.0485566221177578, 0.019086675718426704, -0.7071173191070557, -0.1580285280942917, -0.04215964302420616, 0.12784861028194427, 0.11433608829975128, 0.0015045565087348223, -0.05143478512763977, 0.3788040280342102, 0.012026866897940636, -0.13033980131149292, -0.1523469239473343, -0.08060795068740845, -0.15515701472759247, 0.0050093745812773705, 0.07768358290195465, 0.24271635711193085, 0.028572071343660355, 0.0373319648206234, 0.10993100702762604, 0.01457188930362463, 0.0978122279047966, 0.07484964281320572, 0.2582394480705261, 0.12244939804077148, -0.1893649846315384, -0.06657502800226212, -0.07664773613214493, -0.03259693831205368, -0.2722558081150055, 0.43971097469329834, -0.054420702159404755, -0.24220626056194305, -0.344739705324173, 0.06494614481925964, -0.21170973777770996, 0.11843644082546234, -0.11556454747915268, 0.09895668923854828, 0.2430276721715927, 0.039920829236507416, 0.051766011863946915, -0.06574296951293945, 0.1976650208234787, -0.44576945900917053, 0.13961191475391388, 0.00011059299868065864, -0.4662366807460785, 0.061758868396282196, -0.08357087522745132, -0.04976724460721016, -0.025561049580574036, -0.1201092004776001, -0.20076358318328857, 0.1728934347629547, -0.2748223841190338, 0.3207063674926758, 0.5103985071182251, 0.32857733964920044, -0.11692319810390472, 0.08306850492954254, 0.03261295706033707, -0.08533021807670593, 0.2711332142353058, 0.07905614376068115, -0.1332361400127411, 0.05368264392018318, -0.36956587433815, 0.1610984355211258, -0.09287608414888382, -0.16003340482711792, -0.09354186803102493, -0.4882470965385437, 0.31238076090812683, 0.14473165571689606, 0.1749596893787384, 0.007329885847866535, -0.043804194778203964, -0.4492785930633545, 0.2552008032798767, -0.534247875213623, 0.2359110414981842, 0.10789348930120468, 0.38742849230766296, -0.07322908937931061, 0.0397922545671463, -0.1910848319530487, -0.672508716583252, 0.1904430240392685, -0.4558869004249573, 0.04814659804105759, -0.030142832547426224, -0.050547946244478226, -0.1543775200843811, 0.1480966955423355, -0.17346876859664917, 0.12580086290836334, 0.0503978505730629, 0.1491033434867859, 0.2341417670249939, -0.29194343090057373, -0.0407898835837841, -0.38327547907829285, -0.13402339816093445, -0.10488791018724442, -0.5120513439178467, 0.6572323441505432, 0.07240644097328186, -0.2904247045516968, -0.29729101061820984, 0.14710000157356262, 0.028033506125211716, -0.03708609938621521, -0.11880754679441452, 0.12292864173650742, -0.06583015620708466, -0.11311651766300201, -0.47026869654655457, 0.16960003972053528, -0.03390403836965561, -0.2905181050300598, 0.29762184619903564, 0.114475779235363, -0.07829964905977249, -0.18411356210708618, 0.1907571256160736, 0.5881357789039612, 0.08519525080919266, 0.5646950006484985, -0.14793552458286285, -0.013357779942452908, -0.12367860972881317, 0.17819459736347198, -0.011322543025016785, -0.15541036427021027, -0.16188013553619385, 0.23071308434009552, 0.2857262194156647, -0.03258368372917175, -0.1471516638994217, 0.166283518075943, 0.28299835324287415, -0.05734116956591606, -0.08306055516004562, 0.06545325368642807, -0.14172746241092682, 0.0683533251285553, 0.11915172636508942, -0.10409193485975266, 0.23946057260036469, 0.1961163580417633, -0.18192097544670105, -0.009021037258207798, -0.17368775606155396, -0.16778500378131866, 0.28292229771614075, 0.16134896874427795, 0.5691130757331848, 0.14033478498458862, 0.376708447933197, -0.32647761702537537, -0.27857786417007446, -0.10179655253887177, 0.014397973194718361, 0.14712956547737122, -0.20310455560684204, 0.05800500884652138, -0.10777556151151657, -0.006899649277329445, -0.12375769764184952, -0.5938737392425537, -0.02993740141391754, 0.009284253232181072, -0.07544346898794174, -0.009201690554618835, -0.19013671576976776, 0.17173656821250916, 0.193296879529953, -0.1336854100227356, 0.2393604964017868, -0.09473729878664017, -0.1887863278388977, 0.0840671956539154, -0.1397702544927597, -0.0063823070377111435, 0.22087302803993225, 0.020799074321985245, -0.09176551550626755, 0.13037478923797607, -0.025486553087830544, -0.4571228325366974, -0.36359280347824097, 0.10560809820890427, -0.08762669563293457, 0.2829621434211731, 0.5301012396812439, -0.06093231216073036, 0.06966714560985565, -0.2881968021392822, 0.38874000310897827, 0.0011955416994169354, -0.20870621502399445, 0.2950402796268463, -0.2056499719619751, 0.1029595360159874, -0.08822185546159744, -0.08088809251785278, -0.025119688361883163, -0.21631848812103271, 0.2204163372516632, 0.3758435547351837, 0.29480981826782227, 0.23027309775352478, 0.4909335970878601, 0.280951589345932, -0.040837209671735764, 0.09598815441131592, 0.16386373341083527, 0.26213914155960083, 0.36901921033859253, -0.06387584656476974, -0.16033130884170532, -0.10584093630313873, -0.8136042952537537, 0.08774002641439438, 0.33708804845809937, -0.033591218292713165, -0.341825932264328, -0.09185153245925903, 0.1671682596206665, -0.078074149787426, 0.06882845610380173, 0.33884257078170776, 0.09134294092655182, 0.05526883155107498, -0.030465785413980484, -0.04430659860372543, 0.4142758548259735, 0.1505996286869049, -0.008293644525110722, 0.010647786781191826, 0.28313589096069336, -0.19887980818748474, 0.5975481867790222, 0.09073780477046967, -0.28712600469589233, 0.10083518922328949, -0.25428715348243713, -0.05416681617498398, -0.21911382675170898, -0.01260408852249384, -0.1798831671476364, 0.12918588519096375, -0.23109295964241028, 0.05995325744152069, -0.12822405993938446, -0.3053784668445587, 0.2517750859260559, 0.337226003408432, -0.05729486048221588, -0.05843676999211311, 0.1691228598356247, 0.1370239555835724, 0.2135797142982483, -0.16073529422283173, 0.12209910899400711, -0.35600745677948, -0.1773286908864975, -0.33377695083618164, -0.3037218749523163, 0.14179889857769012, -0.04029518738389015, -0.26248034834861755, 0.0064571332186460495, 0.09194513410329819, 0.25787055492401123, 0.5154533982276917, -0.02653353475034237, 0.24619370698928833, -0.16229453682899475, 0.16181741654872894, -0.05371881276369095, 0.5656303763389587, -0.0027279211208224297, -0.27752411365509033, 0.5173034071922302, 0.17405496537685394, -0.3937615156173706, -0.3545573353767395, -0.10321810841560364, 0.08117440342903137, -0.21071715652942657, 0.05780056118965149, -0.37995243072509766, -0.1724504679441452, 0.2668899893760681, 0.39651617407798767, -0.009154364466667175, -0.15723799169063568, -0.16606959700584412, -0.11688893288373947, -0.14534835517406464, -0.19576144218444824, -0.1858881711959839, 0.43369442224502563, -0.007019837386906147, -0.44504252076148987, -0.33570560812950134, -0.11893113702535629, -0.13905028998851776, -0.00025842388276942074, 0.5432815551757812, -0.20231054723262787, -0.0015578552847728133, -0.3428713381290436, -0.008044501766562462, 0.25601640343666077, 0.11394769698381424, 0.18244607746601105, 0.09794174879789352, 0.23491841554641724, -0.09105195850133896, 0.3822701871395111, 0.23727993667125702, -0.21989959478378296, 0.04489741101861, 0.10271516442298889, 0.12670958042144775, -0.004162431228905916, -0.1936788260936737, 0.3796473443508148, -0.41808515787124634, -0.04669816419482231, -0.3388857841491699, 0.618941605091095, 0.0008021346875466406, 0.19761832058429718, 0.29698190093040466, 0.40211737155914307, -0.2434064894914627, 0.17325229942798615, 0.5898040533065796, 0.8234217166900635, 0.021046416833996773, 0.09118437767028809, 0.7183232307434082, 0.06493085622787476, 0.04760507121682167, 0.382261723279953, 0.23093852400779724, -0.44901230931282043, 0.05412638932466507, -0.09496887773275375, -0.3679797053337097, 0.20827654004096985, 0.3048761785030365, -0.10940247029066086, -0.0617867074906826, -0.06985849887132645, 0.4589509963989258, 0.08709626644849777, -0.05680353194475174, -0.2477205991744995, -0.12354399263858795, -0.14305411279201508, -0.016434554010629654, -0.10084838420152664, -0.42525383830070496, -0.025596419349312782, -0.34479597210884094, -0.1840115636587143, 0.005428068805485964, -0.07518235594034195, -0.07571544498205185, -0.4166595935821533, 0.007047491613775492, 0.5495269298553467, -0.5068943500518799, 0.0692053809762001, 0.07176998257637024, -0.12239962816238403, -0.21667832136154175, -0.11113516986370087, -0.23613817989826202, 0.27415603399276733, -0.1455594152212143, -0.22168013453483582, -0.3660663962364197, 0.2566590905189514, 0.13540853559970856, 0.012582945637404919, -0.015862341970205307, -0.10128770768642426, -0.01871919073164463, -0.14519235491752625, -0.023818908259272575, 0.4159703552722931, -0.39388877153396606, -0.1620084047317505, -0.13568012416362762, -0.19298289716243744, -0.0884038507938385, -0.0010424816282466054, 0.10951888561248779, -0.10162363201379776, -0.09753816574811935, 0.13914276659488678, 0.08001989126205444, -0.0463300421833992, -0.03899658843874931, 0.6464519500732422, 0.2786625921726227, 0.39943796396255493, 0.10479270666837692, 0.08500703424215317, -0.1724824160337448, 0.13714325428009033, 0.4867991507053375, -0.5715529918670654, 0.25765806436538696, 0.09076081216335297, -0.16967694461345673, -0.0290165226906538, 0.5399847030639648, -0.04421276971697807, 0.45266973972320557, -0.1568920612335205, 0.11090036481618881, -0.308482825756073, 0.14643169939517975, 0.21145063638687134, 0.45774930715560913, -0.28757715225219727, 0.06321892142295837, 0.02018267847597599, -0.0414055697619915, -0.1726883202791214, -0.043985672295093536, 0.0355859138071537, -0.09427648037672043, -0.5580288767814636, -0.02808181755244732, 0.02230175957083702, 0.07942990213632584, 0.019278764724731445, -0.04438622295856476, -0.525162935256958, -0.08225639909505844, 0.011078929528594017, 0.18505482375621796, 0.1398025006055832, 0.024303121492266655, 0.09043490886688232, -0.07219339162111282, -0.2565630376338959, -0.2234506905078888, -0.0548696294426918, -0.13822290301322937, -0.18300944566726685, -0.1036137118935585, 0.3470057249069214, -0.015655580908060074, -0.4039357304573059, -0.09755170345306396, -0.26940858364105225, 0.23711033165454865, 0.17209839820861816, 0.07145994901657104, 0.03956141695380211, -0.036238737404346466, -0.18818634748458862, 0.2440890371799469, -0.030385103076696396, -0.2020336091518402, 0.22807271778583527, -0.40997838973999023, -0.4220009446144104, -0.21879450976848602, 0.43999508023262024, 0.23592694103717804, -0.1673676073551178, 0.005628563929349184, -0.004719675052911043, 0.12148997187614441, -0.2195078432559967, 0.09441861510276794, 0.24326519668102264, 0.023019062355160713, 0.15900591015815735, 0.4403977394104004, 0.284952849149704, -0.15593993663787842, -0.011290577240288258, 0.12147975713014603, -0.047719620168209076, 0.054185815155506134, 0.13685400784015656, 0.6701658368110657, -0.04939933121204376, 0.08553332835435867, 0.456831157207489, -0.018363701179623604, 0.22316522896289825, -0.07504002004861832, -0.11584074795246124, 0.4804665446281433, 0.0057456823997199535, -0.11400368064641953, 0.18912197649478912, -0.011435708962380886, 0.05595552921295166, 0.21982251107692719, 0.45990195870399475, -0.030586645007133484, 0.038623128086328506, 0.6613848805427551, 0.0790279433131218, -0.08434492349624634, -0.3169948160648346, -0.12863542139530182, -0.07051115483045578, 0.0905369445681572, -0.05334925279021263, -0.17381054162979126, -0.21117110550403595, -0.34725022315979004, -0.10796160995960236, -0.4550621211528778, 0.24164356291294098, -0.17537106573581696, 0.23239776492118835, -0.3419376611709595, 0.580836296081543, 0.20178304612636566, 0.03611719608306885, -0.1317174881696701, 0.4449384808540344, 0.30952098965644836, -0.01740030199289322, -0.18000341951847076, 0.3680499792098999, 0.2668585181236267, 0.40843185782432556, -0.1282460242509842, -0.15569505095481873, 0.0157012976706028, -0.254336953163147, 0.0782623365521431, 0.05552733689546585, 0.18520861864089966, 0.028357772156596184, 0.19955475628376007, 0.04248274862766266, -0.07925388216972351, 0.2689213156700134, 0.26960763335227966, 0.00731011014431715, -0.1913246363401413, 0.3418930470943451, -0.18094706535339355, -0.19397960603237152, -0.02638142555952072, -0.20455895364284515, -0.4663585424423218, -0.09440721571445465, 0.23060105741024017, -0.08285915851593018, -0.01672542095184326, 0.03321490436792374, 0.014934577979147434, -0.19093437492847443, 0.30693233013153076, 0.0963122621178627, 0.4915095269680023, -0.23890168964862823, -0.07601533830165863, -0.22823257744312286, 0.3368024528026581, -0.32844120264053345, 0.08920738101005554, 0.31151333451271057, 0.3918774425983429, -0.04111950844526291, -0.004877589177340269, 0.09927155077457428, 0.12932072579860687, 0.0404658280313015, 0.4305921792984009, -0.3858344852924347, -0.022685809060931206, 0.36560559272766113, -0.03403761610388756, -0.04085622355341911, -0.28741586208343506, 0.15306760370731354, -0.3587377369403839, -0.04010532796382904, 0.1956932097673416, 0.2613583505153656, 0.12650272250175476, 0.25451546907424927, 0.3684666156768799, -0.08613020926713943, -0.02510671503841877, 0.1655198335647583, -0.12692396342754364, -0.2944830358028412, -0.11343976855278015, -0.1281646490097046, 0.3101486265659332, 0.20087692141532898, 0.5762242674827576, -0.1929151862859726, 0.22459140419960022, -0.14272040128707886, -0.124384805560112, 0.1041136234998703, 0.20118208229541779, -0.22285686433315277, 0.4451677203178406, -0.5870538949966431, 0.11539865285158157, -0.023612255230545998, -0.16266445815563202, 0.20379556715488434, 0.1254851222038269, -0.1950470358133316, -0.4592522978782654, 0.6747373938560486, -0.30883005261421204, -0.4959324598312378, 0.13023585081100464, -0.00855688564479351, 0.2961153984069824, -0.10748699307441711, -0.30792075395584106, -0.06517858803272247, 0.44239020347595215, -0.0427200086414814, 0.2331916093826294, 0.03886745497584343, 0.004646846558898687, 0.09753330051898956, -0.17147429287433624, 0.14177647233009338, 0.03408391773700714, -0.14227041602134705, -0.43825623393058777, -0.5738332271575928 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Thanks for diving into this ! Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint). Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to. Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases. In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet): ```python from datasets import Dataset, Features, Array3D # this works matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix]]}) print(d.to_pandas()) # this should work as well matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]}) print(d.to_pandas()) ``` I'll be happy to help you on this :)
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
164
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Thanks for diving into this ! Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint). Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to. Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases. In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet): ```python from datasets import Dataset, Features, Array3D # this works matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix]]}) print(d.to_pandas()) # this should work as well matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]}) print(d.to_pandas()) ``` I'll be happy to help you on this :)
[ 0.08111847192049026, 0.06608657538890839, -0.07496587932109833, 0.19978973269462585, 0.505993664264679, -0.06205614656209946, 0.6662257313728333, 0.2228141874074936, -0.23516830801963806, 0.21039460599422455, 0.20339010655879974, 0.3141411542892456, -0.16791626811027527, 0.15190987288951874, 0.16147221624851227, -0.5264520645141602, 0.1352110654115677, 0.4473283886909485, -0.03704619035124779, 0.08682149648666382, -0.08640177547931671, -0.12689000368118286, -0.23473072052001953, 0.19982795417308807, -0.3560609221458435, 0.043541453778743744, -0.41793298721313477, -0.1319015473127365, -0.1962912678718567, -0.3397132456302643, 0.26750367879867554, 0.13947318494319916, 0.15465904772281647, 0.19404681026935577, -0.00011625656043179333, -0.020186040550470352, 0.2754315137863159, 0.0027224933728575706, -0.16532756388187408, -0.15045450627803802, 0.17563600838184357, -0.4560697376728058, 0.1426975429058075, -0.37676626443862915, -0.0597970224916935, -0.7914655804634094, -0.15580220520496368, -0.05657678842544556, 0.05843973904848099, 0.18194793164730072, 0.18608981370925903, 0.19707243144512177, 0.3445557951927185, 0.0070052677765488625, 0.33721354603767395, 0.26620417833328247, -0.3337915539741516, -0.07435370981693268, 0.2205042839050293, -0.13642923533916473, -0.019756369292736053, -0.08120159804821014, -0.09356309473514557, 0.12538890540599823, 0.3703870177268982, 0.25596240162849426, 0.4412608742713928, -0.30595508217811584, -0.0385078564286232, 0.48660290241241455, 0.5266441106796265, -0.22638316452503204, -0.14868886768817902, -0.21056021749973297, 0.03260502591729164, -0.07202192395925522, -0.11340725421905518, 0.3932400047779083, -0.2839551270008087, -0.025907212868332863, -0.16177071630954742, 0.2671578824520111, -0.4738793671131134, 0.34360337257385254, 0.015359184704720974, 0.17688988149166107, 0.06007503718137741, 0.10677867382764816, -0.07881467044353485, -0.33436819911003113, 0.6473373770713806, -0.26837655901908875, 0.16954293847084045, 0.15767638385295868, 0.12607890367507935, 0.05479848384857178, 0.03995120897889137, -0.30566850304603577, 0.2611987590789795, -0.06626975536346436, 0.256530225276947, -0.05405595526099205, 0.31413784623146057, 0.07778170704841614, -0.09619879722595215, 0.29313620924949646, -0.1910160779953003, -0.03534415364265442, -0.19153349101543427, 0.200077623128891, 0.14076697826385498, 0.13481713831424713, -0.09582213312387466, -0.337719589471817, 0.38947466015815735, -0.07044298946857452, 0.3181087076663971, 0.284415066242218, 0.05033827945590019, 0.0295110996812582, -0.7314226627349854, -0.10564526170492172, -0.07943295687437057, 0.133323073387146, 0.06327685713768005, 0.023406166583299637, -0.06656678020954132, 0.39163851737976074, 0.0048371790908277035, 0.03448865935206413, -0.17721469700336456, 0.13832809031009674, -0.24071861803531647, -0.1582004576921463, 0.05804603174328804, 0.31111276149749756, 0.032392311841249466, 0.0656854659318924, 0.1681855469942093, -0.049258068203926086, 0.04737738519906998, 0.09438396245241165, 0.19244782626628876, 0.19079546630382538, -0.21833348274230957, -0.2042364478111267, -0.04821757599711418, -0.24087631702423096, -0.2660064697265625, 0.3408504128456116, 0.12376460433006287, -0.11474809795618057, -0.2962649464607239, 0.12578192353248596, -0.2576969563961029, 0.033282581716775894, 0.01898728497326374, 0.1656402200460434, 0.12303241342306137, 0.1861087828874588, 0.06707470864057541, -0.01631770096719265, 0.2285507172346115, -0.43909069895744324, 0.1310141235589981, 0.14341995120048523, -0.3788298964500427, 0.18397842347621918, 0.09020665287971497, 0.04728258401155472, -0.02048952691257, -0.18598465621471405, -0.19585637748241425, 0.2340259999036789, -0.10922655463218689, 0.20456582307815552, 0.43827834725379944, 0.10317009687423706, -0.05083243548870087, 0.03968983143568039, -0.10085480660200119, -0.05749097093939781, 0.1844581812620163, 0.0679805800318718, -0.2325880527496338, 0.008638192899525166, -0.33130255341529846, 0.36175337433815, -0.04681247100234032, -0.1340915709733963, -0.11938419193029404, -0.45664292573928833, 0.5288206338882446, 0.16047042608261108, 0.23125877976417542, -0.029357142746448517, -0.03789457306265831, -0.4135743975639343, 0.21313311159610748, -0.5370694994926453, 0.20640681684017181, -0.011047625914216042, 0.31823694705963135, -0.2316170483827591, 0.10172685980796814, -0.149708554148674, -0.6831337809562683, 0.20955760776996613, -0.2615555226802826, 0.13485491275787354, -0.1627294421195984, 0.01614794321358204, -0.21377605199813843, 0.0864836648106575, -0.1614554077386856, 0.0513463020324707, 0.15556779503822327, -0.05177036672830582, 0.10157351195812225, -0.23288601636886597, -0.12568378448486328, -0.2842235267162323, 0.037397224456071854, -0.07183052599430084, -0.2994236350059509, 0.6068704128265381, -0.024052228778600693, -0.22567979991436005, -0.20272588729858398, 0.1907719522714615, 0.15968142449855804, -0.01749461703002453, -0.003947733901441097, 0.16419079899787903, -0.10857383906841278, -0.010828401893377304, -0.5107398629188538, 0.22013583779335022, -0.008872684091329575, -0.2927837669849396, 0.32595503330230713, 0.14844048023223877, 0.03126758337020874, -0.2186177670955658, 0.14610804617404938, 0.5942313075065613, -0.20543844997882843, 0.500114917755127, -0.1696750968694687, 0.10784222930669785, -0.04400954023003578, 0.10705763101577759, -0.12064138799905777, -0.16747555136680603, -0.14909976720809937, 0.2324407398700714, 0.10000862926244736, -0.05006514489650726, -0.2019975483417511, 0.1650599241256714, 0.22095206379890442, -0.078921839594841, -0.038237739354372025, 0.038913410156965256, -0.1205163449048996, 0.08636026084423065, 0.2220534235239029, -0.09775767475366592, 0.10828277468681335, 0.20698171854019165, -0.13472303748130798, 0.08056854456663132, -0.34351205825805664, -0.1386648565530777, 0.28596553206443787, 0.1962881237268448, 0.5069099068641663, 0.030930815264582634, 0.3337842524051666, -0.24852192401885986, -0.21829892694950104, -0.07449102401733398, 0.049750227481126785, 0.13413061201572418, -0.33795079588890076, 0.13352248072624207, -0.15747055411338806, -0.002397703705355525, 0.0058323391713202, -0.7622509598731995, -0.09216867387294769, -0.01247662678360939, -0.08174913376569748, -0.0018149232491850853, -0.20646879076957703, 0.1749800443649292, 0.15165427327156067, -0.18108923733234406, 0.09891427308320999, -0.18234996497631073, -0.22283223271369934, -0.024092482402920723, -0.11540909111499786, 0.059505973011255264, 0.13913771510124207, 0.16856740415096283, -0.019469963386654854, 0.11554709821939468, 0.127130925655365, -0.29603907465934753, -0.30225908756256104, 0.04355073347687721, -0.24273812770843506, 0.3763854503631592, 0.4350399076938629, 0.014104999601840973, 0.039559945464134216, -0.18879777193069458, 0.35453787446022034, 0.23146378993988037, -0.12808117270469666, 0.3346900939941406, -0.10325022786855698, 0.08458500355482101, -0.11869614571332932, 0.015142066404223442, 0.028119882568717003, -0.2963919937610626, 0.18469403684139252, 0.39974546432495117, 0.26376453042030334, 0.2296730875968933, 0.5827409625053406, 0.31166738271713257, 0.05216651409864426, 0.12234422564506531, 0.1999588906764984, 0.20725353062152863, 0.4295158088207245, 0.0321396067738533, -0.22796998918056488, -0.18159519135951996, -0.8064334392547607, 0.1123272255063057, 0.26516255736351013, -0.00034325255546718836, -0.40038254857063293, -0.11923235654830933, 0.41955140233039856, -0.06583815813064575, 0.12927520275115967, 0.4766249656677246, 0.16270455718040466, -0.00513183930888772, -0.1331639289855957, -0.07624206691980362, 0.3462717831134796, 0.25579842925071716, -0.08544004708528519, -0.01971331052482128, 0.2788514494895935, -0.08597177267074585, 0.5770146250724792, -0.054512377828359604, -0.33539465069770813, 0.2743913531303406, -0.2290358990430832, -0.04861608147621155, -0.12065759301185608, -0.08301801979541779, -0.2085779756307602, -0.00003264382394263521, -0.08837034553289413, -0.10227576643228531, -0.12557923793792725, -0.30676043033599854, 0.00678524374961853, 0.23127178847789764, -0.2400398850440979, -0.05070309713482857, 0.019486360251903534, 0.014084728434681892, 0.1986009031534195, -0.10478916019201279, 0.14625829458236694, -0.31060150265693665, -0.07703594863414764, -0.13766464591026306, -0.2555587589740753, 0.10499288141727448, -0.0008797934278845787, -0.01418751385062933, 0.02473091334104538, 0.06883250921964645, 0.08966706693172455, 0.39669695496559143, -0.14018596708774567, 0.34562575817108154, -0.18024837970733643, 0.12161704152822495, -0.1736607849597931, 0.6282702684402466, -0.08472515642642975, -0.1932671219110489, 0.538568377494812, 0.10903783142566681, -0.4343971610069275, -0.2760935127735138, -0.22830909490585327, 0.024592578411102295, -0.2875916659832001, 0.11803537607192993, -0.36855238676071167, -0.1481015831232071, 0.21786339581012726, 0.3199220597743988, 0.016555994749069214, -0.19508318603038788, -0.2308908849954605, -0.204019233584404, -0.0511283315718174, -0.1320183277130127, -0.04581697657704353, 0.39670106768608093, 0.05910167470574379, -0.3044268488883972, -0.3976418375968933, -0.10712427645921707, -0.13806882500648499, 0.15466955304145813, 0.3969092071056366, -0.15833687782287598, 0.0423838347196579, -0.3037189543247223, -0.007843632251024246, 0.08202197402715683, 0.07756751775741577, 0.1756754219532013, 0.04586774855852127, 0.021585583686828613, 0.02758856490254402, 0.35618025064468384, 0.23916731774806976, -0.1144338846206665, -0.06430406123399734, -0.022166699171066284, 0.12716692686080933, -0.19658710062503815, -0.08221373707056046, 0.45066016912460327, -0.3617120683193207, 0.008282513357698917, -0.264437735080719, 0.6715801358222961, -0.09013792127370834, 0.11709459125995636, 0.26619547605514526, 0.5690855979919434, -0.1716611385345459, 0.2838438153266907, 0.6202149987220764, 1.0007250308990479, -0.029507676139473915, 0.10523060709238052, 0.7753409743309021, -0.11384792625904083, 0.06444690376520157, 0.32658469676971436, 0.21640503406524658, -0.4182461202144623, 0.15953852236270905, -0.11146102100610733, -0.3246538043022156, 0.11798902601003647, 0.122096486389637, -0.20341183245182037, -0.07146073877811432, -0.2789860963821411, 0.29905781149864197, 0.12347736954689026, -0.04420363903045654, -0.11723170429468155, -0.20518727600574493, -0.23192593455314636, 0.0663265734910965, -0.0482189804315567, -0.3505474925041199, -0.1049228087067604, -0.3317459523677826, -0.22373729944229126, -0.028911052271723747, 0.0008952200296334922, 0.0034468660596758127, -0.3338736891746521, 0.00881137978285551, 0.3812495768070221, -0.5121400356292725, 0.0015976461581885815, 0.1844593584537506, -0.0920746922492981, -0.16402572393417358, -0.20304369926452637, -0.12689240276813507, 0.45988982915878296, -0.2843438684940338, -0.0914335697889328, -0.37323233485221863, 0.34922266006469727, 0.04239141196012497, -0.10336443781852722, -0.08978163450956345, -0.02454441785812378, 0.09144815057516098, -0.18662811815738678, -0.021514376625418663, 0.22343383729457855, -0.21825413405895233, -0.03237979859113693, -0.05990680307149887, 0.015726320445537567, -0.10669758915901184, 0.0959213525056839, 0.044111356139183044, -0.04285478591918945, -0.05443374440073967, 0.17282146215438843, 0.044839322566986084, -0.06784939020872116, -0.004351763054728508, 0.44378772377967834, 0.33730432391166687, 0.2604781985282898, 0.20112481713294983, -0.06189977005124092, -0.20484764873981476, 0.11338531225919724, 0.35871797800064087, -0.48496919870376587, 0.17921528220176697, 0.10195605456829071, -0.23708060383796692, -0.13287462294101715, 0.4973861277103424, 0.05487276613712311, 0.222071573138237, -0.046580515801906586, 0.14591744542121887, -0.4149115979671478, 0.11465781927108765, 0.1664491593837738, 0.2982110381126404, -0.32588571310043335, 0.08797960728406906, 0.02754017896950245, -0.010067450813949108, -0.2889706492424011, 0.05061107873916626, 0.10506418347358704, -0.009065916761755943, -0.5112303495407104, -0.12081197649240494, 0.01937154121696949, 0.0840829387307167, 0.14213670790195465, -0.06217798590660095, -0.4542084038257599, -0.17414242029190063, -0.1730617731809616, 0.14615340530872345, 0.11530067771673203, -0.11779849231243134, 0.16031482815742493, -0.11153726279735565, -0.34318578243255615, -0.2813436686992645, -0.07264940440654755, 0.021530989557504654, -0.15320022404193878, -0.1249304935336113, 0.32407858967781067, -0.011986981146037579, -0.2783174216747284, -0.24678745865821838, -0.2576206922531128, 0.19585251808166504, 0.14999912679195404, 0.04499205946922302, 0.04423614591360092, -0.04113691672682762, -0.12212962657213211, 0.25788554549217224, -0.05487941578030586, -0.27847152948379517, 0.29667115211486816, -0.3331167995929718, -0.3128950297832489, -0.3269761800765991, 0.482107937335968, 0.20513105392456055, -0.17484141886234283, 0.010280746966600418, 0.10690610110759735, 0.2002280205488205, -0.3558771014213562, 0.0239388607442379, 0.026456229388713837, 0.019504403695464134, 0.22805944085121155, 0.40765315294265747, 0.1806117743253708, -0.09155090153217316, -0.16125734150409698, 0.059835877269506454, -0.11766111105680466, 0.02238467149436474, 0.0006825007149018347, 0.5625863671302795, -0.2342291921377182, 0.10410193353891373, 0.4643879234790802, 0.08357127010822296, 0.19189763069152832, -0.10585232824087143, -0.11867274343967438, 0.26474350690841675, 0.08168043941259384, -0.08268919587135315, 0.055542733520269394, 0.03835957124829292, 0.08321761339902878, 0.0390603169798851, 0.3929705321788788, -0.08853918313980103, 0.034425750374794006, 0.5620691180229187, 0.18304568529129028, 0.10937659442424774, -0.2962392568588257, -0.11325374990701675, -0.0964520275592804, -0.0015242700465023518, 0.07342137396335602, -0.2210584282875061, -0.31476840376853943, -0.3613390028476715, -0.08067693561315536, -0.4869595170021057, 0.18534886837005615, -0.09471472352743149, 0.19958072900772095, -0.2643705904483795, 0.6058090925216675, 0.13354544341564178, 0.16240449249744415, -0.23956653475761414, 0.27640390396118164, 0.3889532685279846, -0.14088673889636993, -0.31854772567749023, 0.31085631251335144, 0.3091471493244171, 0.38206183910369873, -0.4403642416000366, -0.1288667917251587, -0.007554442621767521, -0.2716626822948456, 0.13830752670764923, 0.03807985037565231, 0.17865659296512604, 0.2999188303947449, 0.32669568061828613, 0.11148619651794434, -0.17850464582443237, 0.22614777088165283, 0.2892926037311554, 0.06282199919223785, -0.2804660201072693, 0.3225160539150238, -0.2205842137336731, -0.05367561802268028, -0.016114044934511185, -0.21474166214466095, -0.3772144913673401, -0.12831974029541016, 0.24848319590091705, -0.07962823659181595, 0.0010222651762887836, -0.048282165080308914, 0.07473178207874298, -0.09626355022192001, 0.39854004979133606, 0.0026091383770108223, 0.5584182739257812, -0.29542404413223267, 0.07281551510095596, -0.40153002738952637, 0.29601964354515076, -0.3695738613605499, -0.006359860301017761, 0.2887958288192749, 0.3542708456516266, -0.016345560550689697, 0.11017732322216034, 0.0010072902077808976, 0.29767924547195435, 0.008311199955642223, 0.4255392253398895, -0.3503307104110718, 0.087559774518013, 0.19518187642097473, 0.004893992096185684, -0.01315179094672203, -0.284847617149353, 0.12863494455814362, -0.42236360907554626, 0.060182854533195496, 0.15698806941509247, 0.17056582868099213, 0.19108273088932037, 0.3271723985671997, 0.47621145844459534, -0.07264218479394913, -0.007685455027967691, 0.13584023714065552, -0.0648113489151001, -0.36276713013648987, 0.006072044372558594, -0.18506579101085663, 0.22747941315174103, 0.1393573135137558, 0.4237057566642761, -0.19741210341453552, 0.11693314462900162, -0.14795920252799988, -0.09168445318937302, 0.07306219637393951, 0.19579008221626282, -0.10127492994070053, 0.34776297211647034, -0.4079718589782715, 0.10937488079071045, -0.11230232566595078, -0.12913691997528076, 0.0720415860414505, 0.17944201827049255, -0.16684460639953613, -0.5900036692619324, 0.7276579737663269, -0.2650006115436554, -0.5538643002510071, 0.1625072956085205, -0.03115684725344181, 0.3296847939491272, -0.027208125218749046, -0.3190825581550598, -0.07868646085262299, 0.355477899312973, -0.016446826979517937, 0.07744100689888, 0.12848016619682312, -0.017558658495545387, 0.05848194658756256, -0.11630269885063171, 0.0996355190873146, -0.05306078866124153, -0.05590059235692024, -0.46430864930152893, -0.5050976276397705 ]
https://github.com/huggingface/datasets/issues/883
Downloading/caching only a part of a datasets' dataset.
I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger. This makes the task impossible with limited memory resources.
Hi, I want to use the validation data *only* (of natural question). I don't want to have the whole dataset cached in my machine, just the dev set. Is this possible? I can't find a way to do it in the docs. Thank you, Sapir
40
Downloading/caching only a part of a datasets' dataset. Hi, I want to use the validation data *only* (of natural question). I don't want to have the whole dataset cached in my machine, just the dev set. Is this possible? I can't find a way to do it in the docs. Thank you, Sapir I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger. This makes the task impossible with limited memory resources.
[ -0.25964680314064026, 0.01766231656074524, -0.1444138139486313, 0.056028131395578384, 0.005209038034081459, 0.19323386251926422, 0.07143530249595642, 0.4244529902935028, -0.20966261625289917, 0.12258368730545044, -0.16739635169506073, -0.31124910712242126, 0.038280706852674484, 0.34310126304626465, 0.27335450053215027, 0.3157152533531189, -0.04495959356427193, 0.44453930854797363, -0.01358809508383274, 0.17978787422180176, 0.1321713775396347, -0.3596688210964203, 0.09004431962966919, 0.1798126995563507, -0.034314509481191635, -0.01303782407194376, 0.35245493054389954, -0.1729031354188919, -0.3025224506855011, -0.26461267471313477, 0.5076565742492676, 0.15685048699378967, 0.09876774996519089, -0.36249813437461853, -0.00012160291225882247, 0.049305401742458344, 0.01573346182703972, -0.25930389761924744, -0.1948629915714264, 0.17479664087295532, -0.3646429777145386, 0.22111977636814117, -0.10162681341171265, -0.11095341295003891, -0.26299336552619934, 0.14961682260036469, 0.09973695129156113, -0.11486514657735825, 0.38685303926467896, 0.38198578357696533, 0.07266806066036224, 0.2527623474597931, -0.25827211141586304, 0.08188468217849731, -0.4386487305164337, -0.12059642374515533, -0.1113693118095398, 0.22935155034065247, 0.34018296003341675, 0.17426058650016785, 0.15087895095348358, 0.36091381311416626, 0.20375840365886688, 0.33654579520225525, 0.5206007957458496, -0.10590162873268127, 0.22139717638492584, -0.5290887355804443, 0.3528995215892792, 0.36347532272338867, 0.8179835677146912, -0.2111039012670517, -0.17093724012374878, 0.038157958537340164, -0.11082878708839417, -0.32449549436569214, -0.027646560221910477, 0.34986498951911926, -0.30382755398750305, 0.5577998161315918, -0.6025671362876892, -0.5060827136039734, -0.45143675804138184, 0.021116429939866066, -0.07199575006961823, -0.11113438755273819, 0.02679070644080639, -0.07933801412582397, 0.20384706556797028, 0.3404908776283264, 0.4757576286792755, -0.10106347501277924, -0.3275684416294098, 0.205073744058609, -0.15561415255069733, -0.46301308274269104, -0.4531761705875397, 0.11245422810316086, 0.27693748474121094, 0.21562038362026215, -0.028127217665314674, 0.1360061764717102, 0.019645551219582558, 0.0326850526034832, 0.332405686378479, 0.25715380907058716, 0.2097780406475067, 0.30000483989715576, 0.12624254822731018, -0.2836255729198456, 0.043548714369535446, -0.03837950900197029, 0.016626084223389626, 0.179397314786911, -0.03524768352508545, 0.20058856904506683, -0.19222182035446167, -0.5734277963638306, 0.028257744386792183, -0.16242197155952454, -0.02685702219605446, -0.10421251505613327, 0.011744454503059387, 0.37207233905792236, -0.23376980423927307, -0.033817704766988754, -0.41448280215263367, 0.12903662025928497, -0.024403991177678108, -0.7614009976387024, -0.13534760475158691, 0.20018522441387177, -0.15188172459602356, 0.15370303392410278, 0.3087081015110016, -0.25763094425201416, 0.25714513659477234, -0.2327069789171219, -0.05363374203443527, -0.014496540650725365, 0.38221052289009094, -0.24052071571350098, 0.3597933053970337, 0.3008718192577362, -0.1003432646393776, 0.14360135793685913, -0.003702861722558737, 0.06776505708694458, -0.2702769935131073, 0.2140786051750183, -0.024043507874011993, -0.7160579562187195, 0.1329771876335144, 0.030605869367718697, -0.29154714941978455, 0.04982536658644676, -0.018612785264849663, 0.2691909670829773, 0.10030640661716461, -0.04243580624461174, -0.028077293187379837, 0.10428326576948166, -0.09310870617628098, 0.056956786662340164, 0.35391825437545776, 0.0054564462043344975, -0.3496728241443634, -0.04554517939686775, 0.07576389610767365, -0.22234314680099487, -0.0782371386885643, 0.17968910932540894, -0.35260239243507385, 0.2832120358943939, -0.03499346971511841, -0.05158982053399086, 0.6107289791107178, -0.033008113503456116, -0.3416728973388672, 0.050378430634737015, 0.03749696537852287, -0.3896386921405792, -0.10716891288757324, 0.19743962585926056, 0.13916686177253723, 0.07822484523057938, -0.5371803045272827, 0.4953876733779907, -0.004566313698887825, -0.2572207450866699, -0.09021472185850143, -0.13359655439853668, 0.05097409337759018, -0.034462206065654755, 0.31878435611724854, 0.5672202110290527, 0.09345193952322006, 0.21098431944847107, -0.0654318630695343, -0.1826462596654892, 0.17790590226650238, 0.14419791102409363, 0.18083778023719788, -0.25674620270729065, -0.10360545665025711, -0.26432767510414124, -0.3934875428676605, 0.28961318731307983, 0.019008493050932884, -0.6332793235778809, 0.5450121760368347, -0.14664071798324585, -0.21262265741825104, -0.2811497747898102, 0.19851893186569214, -0.3874564468860626, -0.06836052238941193, -0.07877162843942642, 0.5183346271514893, -0.22211512923240662, -0.43320634961128235, 0.24598635733127594, -0.03884296864271164, -0.008598036132752895, -0.03470982611179352, -0.07734750956296921, -0.013626830652356148, 0.23322755098342896, -0.07802601158618927, -0.23260416090488434, -0.14388269186019897, -0.07709337770938873, 0.0010282470611855388, 0.2435716837644577, -0.18943315744400024, -0.03823862597346306, -0.05799579992890358, 0.44801661372184753, 0.11334430426359177, -0.12201698869466782, 0.038968537002801895, -0.12640763819217682, 0.037879545241594315, 0.0592169314622879, -0.2691621780395508, 0.4455895721912384, -0.04258140176534653, 0.1304670125246048, 0.04025453329086304, -0.07881209999322891, 0.203436017036438, -0.374523401260376, 0.014410175383090973, -0.2602582573890686, 0.05388649180531502, -0.1644444614648819, 0.3352130353450775, -0.038239121437072754, -0.21191559731960297, -0.1100306510925293, 0.1415117233991623, 0.07419023662805557, 0.018071431666612625, -0.10578255355358124, -0.16951720416545868, -0.0013910012785345316, 0.18381516635417938, 0.18740615248680115, 0.3733816146850586, 0.05544290319085121, 0.3742058575153351, 0.17276063561439514, 0.0835786983370781, -0.032236579805612564, 0.05898749455809593, -0.24225403368473053, -0.18201316893100739, -0.03363655507564545, -0.35632655024528503, -0.18242990970611572, -0.17958512902259827, 0.4001222550868988, 0.12011651694774628, -0.04542272910475731, -0.17487169802188873, 0.016267724335193634, -0.4271828532218933, -0.04919826611876488, -0.04826386272907257, 0.13937576115131378, -0.1046886071562767, 0.21753540635108948, 0.06364172697067261, 0.1797724813222885, -0.0330219492316246, 0.0858021080493927, -0.28279393911361694, 0.4851481318473816, -0.33806148171424866, 0.07533080875873566, -0.053701892495155334, -0.14759236574172974, -0.06960339099168777, 0.10151844471693039, 0.12138574570417404, 0.14349879324436188, 0.3591325879096985, -0.0873144119977951, -0.1552484929561615, -0.3242344856262207, 0.1137351468205452, -0.020188510417938232, 0.4564115107059479, -0.042691659182310104, -0.1663057804107666, 0.5134210586547852, 0.1645120084285736, 0.11842856556177139, -0.180262953042984, -0.22821678221225739, -0.31514549255371094, -0.17132212221622467, 0.20472382009029388, 0.22880853712558746, -0.18348395824432373, -0.22066031396389008, -0.35844728350639343, -0.15974368155002594, 0.11364928632974625, -0.10769636929035187, 0.19319316744804382, 0.22256018221378326, -0.016939520835876465, -0.23973794281482697, -0.320649653673172, 0.040339395403862, -0.22679762542247772, -0.36747780442237854, 0.23914125561714172, -0.041413843631744385, -0.2598351538181305, 0.17996524274349213, -0.07110445946455002, 0.032201264053583145, 0.35133635997772217, -0.37241077423095703, -0.1565227210521698, 0.065055251121521, -0.09567352384328842, -0.1702406108379364, -0.06970413774251938, 0.2953815162181854, -0.5932691693305969, 0.10543254017829895, 0.007493006065487862, -0.058772437274456024, -0.05026018247008324, 0.02455703541636467, 0.22466662526130676, 0.06052432954311371, 0.12988977134227753, 0.3504851758480072, 0.8538553714752197, -0.1514461189508438, -0.16269271075725555, 0.015423009172081947, 0.08801866322755814, 0.44685301184654236, -0.03791854530572891, -0.07487008720636368, 0.28854045271873474, -0.04939113184809685, -0.2889496386051178, 0.026813000440597534, -0.1392238587141037, -0.10486816614866257, -0.33181482553482056, 0.05057704821228981, -0.011321498081088066, -0.013926668092608452, 0.09299905598163605, -0.1182703748345375, 0.08119592070579529, 0.5327087640762329, 0.01873970776796341, 0.01373924221843481, -0.11024316400289536, 0.2959984540939331, 0.05838626250624657, 0.11002571135759354, 0.11785104870796204, -0.5235832929611206, -0.16305653750896454, -0.09819662570953369, 0.08885416388511658, -0.22713062167167664, -0.07141164690256119, 0.034540366381406784, 0.03168540075421333, 0.2360617071390152, 0.10143899917602539, 0.5184095501899719, -0.2011040896177292, 0.23302823305130005, -0.18854515254497528, -0.3180353343486786, 0.06453196704387665, -0.19065365195274353, 0.09452439099550247, -0.07631970196962357, 0.07637406885623932, 0.007356872782111168, -0.19364069402217865, -0.01876276545226574, -0.06994203478097916, 0.23332898318767548, -0.3665069043636322, 0.06821557134389877, 0.0472644567489624, -0.011142907664179802, 0.029032237827777863, 0.45406267046928406, 0.11341369897127151, -0.005889172665774822, 0.3645142912864685, 0.0731295794248581, -0.35488051176071167, 0.09758492559194565, 0.0919061154127121, 0.3425660729408264, 0.09172038733959198, 0.0567643977701664, 0.1430366486310959, 0.1277785748243332, 0.146190345287323, 0.07647983729839325, 0.22140276432037354, 0.011715183034539223, -0.19093522429466248, -0.06235690414905548, 0.002300867112353444, 0.19117425382137299, 0.1707252562046051, -0.08378738164901733, -0.2795102894306183, 0.3804680109024048, -0.0915222018957138, -0.2260640561580658, 0.4861375689506531, -0.3498322069644928, -0.2019875943660736, -0.25668472051620483, -0.3647642731666565, 0.17655088007450104, 0.07982215285301208, -0.08599436283111572, 0.3306177258491516, -0.25268295407295227, -0.10094348341226578, -0.23970995843410492, 0.4438517391681671, 0.8610079884529114, -0.12279321998357773, 0.20629535615444183, -0.3994812071323395, -0.20299777388572693, 0.3680363893508911, -0.5688802003860474, 0.056961651891469955, -0.21964633464813232, -0.7584601640701294, -0.29061129689216614, -0.25420257449150085, 0.18654918670654297, 0.3905203342437744, 0.2456165999174118, 0.24059811234474182, 0.14171238243579865, 0.4928068220615387, 0.12051152437925339, 0.17552770674228668, 0.10432925075292587, -0.028876209631562233, 0.07134439796209335, 0.022588757798075676, -0.12703807651996613, 0.2708651125431061, -0.15567103028297424, 0.09180580824613571, 0.05719563737511635, -0.03729719668626785, -0.30125901103019714, 0.048936400562524796, -0.4606751501560211, -0.24964389204978943, -0.18142741918563843, -0.05147096514701843, -0.013131731189787388, 0.4394465684890747, 0.5612176060676575, 0.22548557817935944, -0.2542150318622589, 0.24225561320781708, 0.06512965261936188, 0.08861170709133148, -0.24627499282360077, 0.01819128543138504, 0.0016428478993475437, -0.3460488021373749, 0.14013119041919708, 0.4257396459579468, -0.09959090501070023, -0.2508586645126343, 0.037326693534851074, 0.19672593474388123, -0.08068452030420303, -0.11191735416650772, -0.1610899120569229, 0.11513493955135345, 0.33565977215766907, -0.006050288677215576, 0.048964615911245346, 0.3836348354816437, -0.34826281666755676, 0.20783032476902008, -0.1432589888572693, -0.31189900636672974, -0.06963326036930084, 0.40855124592781067, 0.26087793707847595, -0.20658661425113678, 0.24441534280776978, -0.6133478879928589, -0.07046931982040405, -0.20923368632793427, -0.02196972817182541, 0.19121281802654266, -0.16492725908756256, 0.0004836084845010191, -0.2133575677871704, -0.40108391642570496, -0.34025120735168457, 0.04907050356268883, 0.3917354345321655, 0.19112423062324524, -0.1881875991821289, -0.26551201939582825, -0.23197007179260254, 0.051117781549692154, -0.1082254946231842, 0.37423112988471985, -0.062148112803697586, -0.01692194677889347, -0.1252293437719345, 0.41880515217781067, -0.18443197011947632, -0.17766614258289337, -0.00533459335565567, 0.2531559467315674, -0.1674048900604248, 0.14995700120925903, -0.0022159037180244923, -0.13745462894439697, -0.17547066509723663, 0.028130602091550827, -0.34563058614730835, -0.14691072702407837, -0.07462403923273087, 0.19917070865631104, -0.008558588102459908, 0.03843381255865097, 0.11710255593061447, 0.040287140756845474, -0.0568370595574379, 0.05200313776731491, 0.20149247348308563, -0.012229886837303638, 0.25753989815711975, 0.2684290409088135, 0.45379331707954407, -0.018110258504748344, -0.5937932133674622, -0.009499569423496723, 0.07445170730352402, 0.22088897228240967, 0.03988755866885185, 0.4148596227169037, 0.016925716772675514, -0.05388833209872246, -0.33198344707489014, -0.16682054102420807, 0.05328001454472542, -0.14995111525058746, -0.03980599716305733, 0.11859548091888428, 0.14689722657203674, -0.023800000548362732, 0.19886547327041626, 0.8052163124084473, -0.0924873799085617, 0.22915157675743103, 0.5309457778930664, 0.11367591470479965, 0.004029458854347467, -0.1860905885696411, 0.3704553246498108, -0.3041720688343048, -0.18236956000328064, 0.14364783465862274, 0.11347463726997375, 0.1958092451095581, 0.4399091899394989, -0.0908520296216011, 0.16776959598064423, -0.23482178151607513, 0.016801074147224426, 0.43658682703971863, -0.026141071692109108, -0.19897325336933136, 0.11531183123588562, 0.25904184579849243, 0.2069092094898224, 0.03517835587263107, -0.1256253719329834, 0.15616099536418915, 0.16701075434684753, 0.20039846003055573, -0.1934618353843689, -0.2356664538383484, -0.06925132870674133, 0.16923072934150696, -0.08887111395597458, 0.12843748927116394, -0.18442179262638092, -0.3254106938838959, 0.25705739855766296, -0.4299589991569519, -0.2986116111278534, 0.017088036984205246, 0.19216984510421753, -0.07248716801404953, -0.20842456817626953, 0.00670401006937027, 0.25631237030029297, 0.3134518265724182, 0.16231369972229004, -0.4159722924232483, 0.24703802168369293, 0.10646379739046097, -0.09724317491054535, 0.21710731089115143, 0.28171661496162415, 0.1689375340938568, -0.09128732234239578, -0.13461318612098694, 0.1551799327135086, -0.259552001953125, -0.0017361146165058017, 0.31581178307533264, 0.23927631974220276, -0.23977935314178467, -0.067815400660038, 0.22925806045532227, 0.014197106473147869, 0.08870761841535568, -0.019853582605719566, -0.27657943964004517, 0.2951280176639557, 0.18548952043056488, 0.041108183562755585, 0.2854752242565155, 0.017252406105399132, 0.014039241708815098, 0.44036832451820374, -0.39012640714645386, 0.20034624636173248, -0.5645323991775513, 0.040173355489969254, 0.6362972259521484, -0.1602793037891388, 0.164434552192688, 0.06626345962285995, 0.056820690631866455, -0.028910240158438683, -0.09938345104455948, -0.2132302224636078, 0.13085278868675232, 0.1542665809392929, -0.003908819518983364, -0.2629950940608978, 0.5772284865379333, 0.06706544756889343, 0.09503443539142609, -0.18485185503959656, 0.05803323909640312, -0.34191131591796875, 0.16476473212242126, -0.07586556673049927, 0.04354246333241463, 0.07810638099908829, 0.12365303933620453, 0.12600743770599365, 0.5432230830192566, -0.06590573489665985, -0.016243234276771545, -0.03206836059689522, 0.5045497417449951, -0.10674604773521423, 0.1457097828388214, 0.0873919352889061, 0.5286428928375244, 0.1306840032339096, -0.22847959399223328, 0.41679731011390686, 0.11578308790922165, -0.15635167062282562, 0.39525651931762695, -0.10518557578325272, 0.43802914023399353, 0.3276388645172119, 0.5421129465103149, -0.056315645575523376, 0.2171081304550171, 0.09718835353851318, 0.187505304813385, -0.035778533667325974, 0.19166643917560577, -0.4345729649066925, -0.04358668997883797, 0.19062592089176178, -0.13639427721500397, -0.5238878726959229, 0.031088555231690407, -0.15248309075832367, 0.2835088074207306, -0.024536045268177986, -0.1028691902756691, 0.21823430061340332, -0.3127642273902893, 0.04781437665224075, 0.18078745901584625, 0.42469555139541626, 0.17292436957359314, -0.25991159677505493, -0.25854161381721497, -0.37705302238464355, 0.13918869197368622, 0.42957666516304016, -0.08863179385662079, -0.20418474078178406, -0.12641867995262146, 0.3098583519458771, 0.21691663563251495, -0.2114594429731369, -0.4354211091995239, 0.0923214927315712, 0.29907819628715515, -0.3669799864292145, -0.17880938947200775, 0.2019105702638626, 0.09158087521791458, 0.020091645419597626, -0.14148002862930298, 0.44815489649772644, 0.06117883697152138, -0.3696342408657074, -0.4982995390892029, -0.35215631127357483 ]
https://github.com/huggingface/datasets/issues/880
Add SQA
I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq
## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
16
Add SQA ## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq
[ -0.0640096440911293, -0.23120813071727753, -0.20991775393486023, -0.12106887251138687, 0.09991464018821716, -0.19758325815200806, 0.0337970107793808, 0.3069659173488617, 0.1483604609966278, 0.05627007782459259, -0.16755744814872742, -0.002632460556924343, -0.07126038521528244, 0.54438316822052, 0.15001574158668518, -0.1045537143945694, 0.027217747643589973, 0.1428319215774536, -0.2944616973400116, 0.07118546962738037, -0.19629357755184174, 0.09148728847503662, 0.02157144993543625, 0.031230054795742035, -0.23689067363739014, -0.08445483446121216, -0.10731817036867142, -0.19233770668506622, -0.19041131436824799, -0.19726982712745667, 0.005409052595496178, 0.07224739342927933, 0.1686425656080246, 0.27304232120513916, -0.00010593253682600334, -0.13431185483932495, -0.0751999244093895, -0.09753285348415375, -0.09391915053129196, 0.050660885870456696, -0.16079659759998322, 0.09261225163936615, -0.11105205863714218, -0.07712991535663605, -0.5252557992935181, 0.2041902393102646, -0.07481037825345993, -0.3007480502128601, 0.5820887684822083, 0.2628443241119385, 0.21861276030540466, 0.09285782277584076, 0.0751178190112114, -0.21747124195098877, 0.375223845243454, 0.004958278965204954, -0.35867705941200256, -0.006589327938854694, 0.4021379351615906, -0.3480503261089325, 0.054840341210365295, 0.453035831451416, 0.26569658517837524, -0.22763262689113617, 0.15250642597675323, 0.1255037933588028, 0.27363377809524536, 0.03347918391227722, 0.06746535748243332, 0.2694990038871765, 0.33357852697372437, -0.09275422245264053, -0.1821047067642212, -0.1886131763458252, 0.014417653903365135, 0.12352511286735535, -0.28337788581848145, 0.11862517148256302, -0.3490375578403473, 0.016779866069555283, -0.18077452480793, -0.2453863024711609, -0.34967148303985596, 0.10179892927408218, 0.01791546307504177, 0.5167187452316284, -0.019233735278248787, -0.19486652314662933, -0.08310753852128983, -0.13312707841396332, -0.04276912659406662, -0.04725297912955284, 0.2443593442440033, 0.2530238628387451, -0.5382792949676514, -0.2720511555671692, 0.2136116623878479, 0.1150442510843277, 0.24359552562236786, 0.19212128221988678, 0.4720064699649811, -0.07239028811454773, 0.03146502003073692, -0.29650577902793884, 0.16723529994487762, 0.4781273901462555, -0.003513600444421172, 0.04268651083111763, -0.1635616272687912, 0.11457378417253494, 0.0696563571691513, 0.01853528805077076, 0.011364241130650043, 0.4373455047607422, -0.2889092266559601, 0.0332341305911541, 0.12173619121313095, 0.07776477187871933, -0.318722665309906, 0.20002825558185577, -0.22166062891483307, -0.08587232232093811, -0.04617737978696823, 0.30673491954803467, -0.2722221910953522, 0.09639538824558258, 0.16178642213344574, 0.1525752693414688, 0.03762376680970192, -0.12058306485414505, -0.0992913469672203, -0.1381368637084961, -0.13890616595745087, 0.3276243805885315, 0.2592448890209198, 0.07565629482269287, -0.11824056506156921, -0.11059030145406723, 0.12366805225610733, 0.06711180508136749, -0.11901921033859253, -0.12577776610851288, 0.27192822098731995, 0.0063793351873755455, -0.11961735039949417, -0.24746395647525787, 0.006988453213125467, -0.1855599284172058, -0.0826091393828392, 0.20460952818393707, 0.08662484586238861, 0.082259401679039, -0.04584408551454544, 0.29353469610214233, -0.0351126454770565, -0.3378950357437134, 0.05606367811560631, 0.38475948572158813, 0.054407477378845215, -0.07861100882291794, 0.16120336949825287, 0.07706920802593231, -0.16406871378421783, -0.0699191689491272, 0.2680045962333679, 0.1623661071062088, 0.04373892769217491, 0.0179176926612854, -0.06027066335082054, 0.29521214962005615, -0.4049220383167267, 0.15581107139587402, 0.16239993274211884, 0.4924625754356384, 0.16054567694664001, 0.44698047637939453, -0.30206140875816345, 0.042209774255752563, -0.051084455102682114, -0.10682498663663864, -0.061165064573287964, 0.2619520127773285, -0.023306503891944885, 0.22269843518733978, 0.17959219217300415, -0.09816852957010269, 0.1247621402144432, 0.25691458582878113, -0.24345022439956665, -0.03648875653743744, -0.26056426763534546, -0.3209443986415863, -0.14991985261440277, 0.5569961667060852, -0.00815743301063776, -0.09472595155239105, -0.1503634750843048, -0.22697286307811737, 0.08972020447254181, -0.24181517958641052, -0.10534588992595673, -0.20263154804706573, 0.4181382954120636, -0.1816871613264084, 0.06699083000421524, -0.5491581559181213, -0.5756067037582397, -0.14826083183288574, -0.1463892161846161, 0.27864909172058105, 0.033906735479831696, -0.45097821950912476, -0.37333375215530396, 0.13270120322704315, 0.0075059751980006695, -0.03430493175983429, 0.2479700744152069, 0.18692177534103394, 0.2428169846534729, -0.0500190407037735, -0.0937461405992508, 0.15501509606838226, -0.04245203733444214, -0.11471232026815414, -0.1329629123210907, 0.19869019091129303, -0.1225990578532219, 0.04561177268624306, -0.01856730505824089, 0.31479066610336304, -0.13383710384368896, 0.1751376986503601, 0.33474013209342957, 0.1550748348236084, -0.1319166123867035, -0.26256465911865234, 0.08056052774190903, 0.47349846363067627, 0.03268883749842644, -0.05275559797883034, -0.19237664341926575, 0.4993889629840851, 0.12382903695106506, -0.09807752072811127, -0.28532886505126953, 0.4043615758419037, -0.18164877593517303, 0.26818856596946716, 0.15086761116981506, 0.03465000167489052, -0.011712837964296341, -0.08246678858995438, -0.13107001781463623, 0.1497400850057602, 0.41464442014694214, 0.13672217726707458, -0.2725355327129364, -0.06833978742361069, -0.3361949324607849, 0.3972049951553345, 0.2918221056461334, -0.2563175559043884, 0.33813968300819397, 0.09304661303758621, -0.04481197148561478, -0.09962374716997147, 0.017471332103013992, 0.18983280658721924, 0.1904865950345993, 0.26559722423553467, -0.13405774533748627, 0.13256525993347168, -0.03513064235448837, -0.13049262762069702, 0.004788823891431093, 0.07298604398965836, -0.10768213123083115, 0.35938259959220886, 0.30606040358543396, 0.11291392147541046, -0.0875154435634613, -0.08116593211889267, -0.2993248403072357, -0.04683905839920044, -0.02178523689508438, 0.1793803870677948, 0.21822331845760345, -0.22646336257457733, 0.033400390297174454, -0.3110872805118561, 0.015767347067594528, 0.011648260988295078, 0.6521464586257935, -0.13621295988559723, -0.19080126285552979, 0.22196686267852783, 0.07426212728023529, 0.910795271396637, -0.16975799202919006, -0.04776886850595474, -0.22346584498882294, -0.27868935465812683, 0.12758615612983704, 0.30619779229164124, 0.07741764187812805, -0.046121902763843536, 0.505206286907196, -0.18181057274341583, 0.388017863035202, -0.08808954805135727, -0.36542627215385437, 0.09200017899274826, -0.020826183259487152, 0.08689852058887482, -0.013521140441298485, 0.051957178860902786, -0.24621249735355377, -0.3117583096027374, 0.09624515473842621, -0.2440948635339737, -0.1063673198223114, -0.04039027914404869, 0.21756254136562347, -0.09077584743499756, -0.11262281984090805, -0.49638041853904724, -0.06177256628870964, -0.30341577529907227, 0.47608205676078796, 0.22979892790317535, -0.02886044979095459, -0.019428210332989693, -0.07751049846410751, 0.03436904400587082, -0.15266041457653046, 0.10680754482746124, -0.2156095653772354, 0.16385425627231598, 0.22276581823825836, -0.12402582168579102, -0.21182438731193542, -0.4943145215511322, -0.3110438585281372, -0.02379804663360119, 0.07631302624940872, -0.17100811004638672, -0.06842820346355438, -0.22005616128444672, 0.00275921868160367, -0.15199509263038635, 0.1327393501996994, 0.45159703493118286, -0.07667966932058334, -0.2075054794549942, -0.051312532275915146, 0.20858782529830933, 0.5510806441307068, 0.06167963147163391, -0.1596294641494751, 0.13309355080127716, 0.22650285065174103, 0.032637644559144974, 0.6488931179046631, 0.05898095294833183, 0.0846872478723526, 0.2585301697254181, 0.06455814838409424, -0.11768758296966553, -0.27836549282073975, 0.07523349672555923, -0.19348695874214172, -0.15774358808994293, 0.09850555658340454, 0.4758583605289459, 0.26839694380760193, 0.04499330744147301, -0.15292178094387054, 0.1253431737422943, -0.2520807683467865, -0.1979159414768219, 0.40554359555244446, 0.03700745478272438, 0.4625869691371918, -0.0875202938914299, -0.15340296924114227, 0.007968469522893429, -0.3550320863723755, 0.09139824658632278, -0.09228925406932831, 0.02587466686964035, -0.4211956560611725, -0.545346200466156, -0.21823637187480927, -0.2534332573413849, 0.36966559290885925, 0.4543711841106415, -0.010350946336984634, -0.07004699110984802, -0.4352985620498657, -0.08193063735961914, -0.07562700659036636, 0.17007000744342804, 0.062229450792074203, -0.351493239402771, 0.012110540643334389, -0.24428091943264008, 0.07734327018260956, 0.1962987780570984, -0.3358928859233856, -0.33675292134284973, -0.05379901081323624, 0.38742730021476746, -0.3562623858451843, 0.05812482163310051, 0.22642123699188232, -0.04866824299097061, -0.056243617087602615, 0.00869179330766201, -0.08542322367429733, -0.1264295130968094, 0.0051178280264139175, 0.2333197444677353, 0.36871519684791565, 0.03640441969037056, 0.2235223352909088, -0.03960427641868591, -0.09243998676538467, -0.03612811863422394, 0.02631983906030655, 0.1368790566921234, 0.08308365195989609, 0.0011646917555481195, 0.12474313378334045, -0.14307032525539398, -0.1977374404668808, -0.04887280985713005, 0.4001818299293518, -0.20859213173389435, -0.06987112015485764, -0.1505303531885147, -0.15440590679645538, -0.021157149225473404, 0.24885639548301697, 0.10119853168725967, 0.3039298355579376, 0.03486320748925209, 0.13763989508152008, -0.28290173411369324, -0.17388230562210083, -0.1508072316646576, -0.005853430368006229, 0.11366882920265198, -0.13431984186172485, 0.46861740946769714, -0.2742680609226227, -0.23761384189128876, -0.03224163502454758, 0.4682999849319458, -0.19623669981956482, 0.10280046612024307, 0.015681298449635506, 1.031785249710083, -0.16589443385601044, 0.371108740568161, 0.1415889710187912, -0.09747318178415298, 0.20487946271896362, -0.35030046105384827, 0.14481857419013977, -0.1310684084892273, -0.35931265354156494, -0.05615733563899994, 0.03995201736688614, -0.08056139200925827, -0.004561763256788254, -0.39126700162887573, 0.13894937932491302, 0.17560400068759918, 0.3666847050189972, 0.2946522533893585, 0.2584337592124939, 0.0696527436375618, -0.015262751840054989, -0.5002803802490234, 0.21082258224487305, 0.11168444901704788, -0.23970220983028412, -0.05027751624584198, 0.04814454913139343, -0.13714048266410828, -0.12770259380340576, -0.19424819946289062, 0.07074674963951111, -0.43007102608680725, -0.04620245471596718, 0.28614747524261475, -0.10574427992105484, 0.11062460392713547, 0.21241670846939087, -0.02672741934657097, -0.06047823280096054, -0.39435067772865295, 0.010164206847548485, -0.26562395691871643, 0.22791899740695953, 0.07281871140003204, -0.029102683067321777, 0.2924778461456299, -0.20395894348621368, -0.11701802164316177, 0.22735589742660522, 0.3363112807273865, -0.47573480010032654, -0.4612273573875427, 0.07218065857887268, 0.3284936845302582, -0.12560445070266724, 0.0085256677120924, 0.12944135069847107, -0.11915720999240875, -0.14173631370067596, 0.2308950275182724, 0.0601024404168129, 0.05940648913383484, 0.10530474036931992, 0.4885719418525696, -0.1789284348487854, -0.03572951257228851, 0.11766288429498672, 0.4107629358768463, -0.03855319693684578, 0.24713289737701416, 0.30283841490745544, -0.2766369879245758, -0.4391758143901825, -0.10437683761119843, 0.238376647233963, -0.4756166934967041, -0.029951833188533783, -0.16431254148483276, -0.34473732113838196, -0.03330216929316521, 0.5254314541816711, 0.40611910820007324, -0.09939439594745636, -0.06070874631404877, -0.052087292075157166, 0.10303852707147598, 0.6272665858268738, 0.3372286558151245, 0.14480550587177277, 0.09636000543832779, -0.18211323022842407, -0.08785869926214218, 0.2447618991136551, -0.45429477095603943, -0.09256435185670853, -0.3687019348144531, 0.24349738657474518, -0.07208404690027237, -0.26314666867256165, 0.2722587287425995, 0.061476025730371475, 0.1426132321357727, -0.10436476767063141, -0.3949481248855591, -0.40382614731788635, 0.05970696732401848, 0.09715518355369568, 0.1380208134651184, -0.05525269731879234, -0.15080519020557404, -0.14379750192165375, -0.09282287210226059, -0.1315385401248932, 0.05426855757832527, -0.3340458571910858, 0.011097201146185398, -0.17889808118343353, 0.036332014948129654, -0.12402859330177307, -0.18147726356983185, 0.009952236898243427, -0.20889326930046082, -0.18226145207881927, 0.13467848300933838, -0.039241403341293335, 0.0597427599132061, -0.06569326668977737, 0.0799398347735405, 0.5429303050041199, 0.49983450770378113, -0.1578965038061142, 0.05912229046225548, 0.08367446810007095, -0.315489798784256, -0.04431559145450592, 0.27736103534698486, -0.0831809863448143, -0.1181730255484581, 0.0842386931180954, 0.14060121774673462, 0.338583379983902, -0.41730955243110657, -0.0755341649055481, -0.07988560944795609, -0.20253439247608185, 0.33300405740737915, 0.26379790902137756, -0.08641237020492554, -0.09990443289279938, 0.3682369589805603, 0.214971661567688, -0.03560131415724754, -0.03854512423276901, 0.17312142252922058, 0.19376535713672638, 0.2517055869102478, 0.06414743512868881, -0.018476909026503563, -0.014470883645117283, -0.14129534363746643, -0.03342645242810249, -0.20271269977092743, 0.14487893879413605, -0.052562959492206573, 0.07548633962869644, 0.22673559188842773, 0.3809478282928467, -0.008970723487436771, 0.19590605795383453, -0.10536497831344604, 0.14689399302005768, 0.2529245615005493, 0.07748093456029892, 0.17939217388629913, -0.022717369720339775, -0.42151111364364624, -0.15691711008548737, 0.10768063366413116, -0.1497700810432434, 0.06964609771966934, -0.24268361926078796, -0.37097790837287903, -0.12688490748405457, -0.08962792903184891, -0.04089928790926933, 0.5435219407081604, -0.1635991781949997, 0.1739097386598587, -0.06868285685777664, 0.04791974648833275, 0.06702263653278351, 0.3332650363445282, -0.09288334101438522, 0.2201663851737976, 0.21919773519039154, 0.3239123523235321, 0.03367137536406517, 0.4749954342842102, -0.0025974013842642307, 0.23134897649288177, -0.4086587429046631, 0.3700214624404907, -0.2205609679222107, -0.1524350345134735, -0.0604492723941803, 0.24555639922618866, 0.2833980321884155, -0.04615674540400505, 0.22767072916030884, 0.2533395290374756, -0.2943521738052368, 0.2517377436161041, -0.012923342175781727, 0.03222440183162689, -0.2853599190711975, 0.11916053295135498, -0.05435018241405487, -0.04607412591576576, -0.04951152950525284, -0.06128473952412605, -0.5117422938346863, 0.18014758825302124, -0.2863978147506714, -0.29686784744262695, -0.012534799985587597, -0.07364929467439651, 0.1288129985332489, -0.18761198222637177, 0.27551546692848206, 0.23958800733089447, 0.42375269532203674, -0.05105077102780342, -0.36064383387565613, -0.04626104235649109, -0.141885444521904, 0.1449594497680664, -0.1167031079530716, 0.15624099969863892, -0.036334484815597534, 0.2164870947599411, 0.34770333766937256, -0.11189481616020203, -0.37252336740493774, -0.381007581949234, 0.2364695817232132, -0.40078112483024597, 0.3359994888305664, 0.1742292046546936, 0.09775470942258835, 0.17200163006782532, -0.32176026701927185, -0.042753443121910095, 0.012744610197842121, 0.17850689589977264, 0.058219410479068756, 0.1562902331352234, 0.03902362287044525, -0.21072305738925934, -0.11475009471178055, 0.029792355373501778, 0.367997944355011, -0.1752372533082962, -0.18964223563671112, 0.2272828370332718, -0.24851766228675842, -0.19828028976917267, 0.04250464588403702, 0.34403422474861145, 0.311731219291687, -0.041539266705513, -0.30808502435684204, 0.36481213569641113, 0.00514834513887763, 0.14547814428806305, 0.4213908612728119, -0.14115025103092194, 0.09803662449121475, 0.00034571465221233666, -0.07008875906467438, -0.07283828407526016, 0.1219622790813446, -0.0429597832262516, 0.08873333781957626, 0.060238491743803024, -0.20106874406337738, 0.3448045551776886, -0.09215987473726273, -0.21583959460258484, 0.026481259614229202, 0.04321634769439697, 0.0877085030078888, -0.15869750082492828, -0.5564059019088745, -0.09048876166343689, 0.19629381597042084, -0.012719019316136837, -0.07325662672519684, 0.6972962021827698, 0.08562948554754257, -0.14791840314865112, -0.1298852115869522, 0.1628674417734146, 0.06223731115460396, -0.1279260665178299, -0.30265870690345764, -0.5541507005691528 ]
https://github.com/huggingface/datasets/issues/880
Add SQA
@thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings: ``` import pandas as pd import ast data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t') def _parse_answer_coordinates(answer_coordinate_str): """Parses the answer_coordinates of a question. Args: answer_coordinate_str: A string representation of a Python list of tuple strings. For example: "['(1, 4)','(1, 3)', ...]" """ try: answer_coordinates = [] # make a list of strings coords = ast.literal_eval(answer_coordinate_str) # parse each string as a tuple for row_index, column_index in sorted( ast.literal_eval(coord) for coord in coords): answer_coordinates.append((row_index, column_index)) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_coordinate_str) return answer_coordinates def _parse_answer_text(answer_text): """Populates the answer_texts field of `answer` by parsing `answer_text`. Args: answer_text: A string representation of a Python list of strings. For example: "[u'test', u'hello', ...]" """ try: answer = [] for value in ast.literal_eval(answer_text): answer.append(value) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_text) return answer data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str)) data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt)) ``` Here I'm using Pandas to read in one of the TSV files (the dev set).
## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
185
Add SQA ## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). @thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings: ``` import pandas as pd import ast data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t') def _parse_answer_coordinates(answer_coordinate_str): """Parses the answer_coordinates of a question. Args: answer_coordinate_str: A string representation of a Python list of tuple strings. For example: "['(1, 4)','(1, 3)', ...]" """ try: answer_coordinates = [] # make a list of strings coords = ast.literal_eval(answer_coordinate_str) # parse each string as a tuple for row_index, column_index in sorted( ast.literal_eval(coord) for coord in coords): answer_coordinates.append((row_index, column_index)) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_coordinate_str) return answer_coordinates def _parse_answer_text(answer_text): """Populates the answer_texts field of `answer` by parsing `answer_text`. Args: answer_text: A string representation of a Python list of strings. For example: "[u'test', u'hello', ...]" """ try: answer = [] for value in ast.literal_eval(answer_text): answer.append(value) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_text) return answer data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str)) data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt)) ``` Here I'm using Pandas to read in one of the TSV files (the dev set).
[ -0.0640096440911293, -0.23120813071727753, -0.20991775393486023, -0.12106887251138687, 0.09991464018821716, -0.19758325815200806, 0.0337970107793808, 0.3069659173488617, 0.1483604609966278, 0.05627007782459259, -0.16755744814872742, -0.002632460556924343, -0.07126038521528244, 0.54438316822052, 0.15001574158668518, -0.1045537143945694, 0.027217747643589973, 0.1428319215774536, -0.2944616973400116, 0.07118546962738037, -0.19629357755184174, 0.09148728847503662, 0.02157144993543625, 0.031230054795742035, -0.23689067363739014, -0.08445483446121216, -0.10731817036867142, -0.19233770668506622, -0.19041131436824799, -0.19726982712745667, 0.005409052595496178, 0.07224739342927933, 0.1686425656080246, 0.27304232120513916, -0.00010593253682600334, -0.13431185483932495, -0.0751999244093895, -0.09753285348415375, -0.09391915053129196, 0.050660885870456696, -0.16079659759998322, 0.09261225163936615, -0.11105205863714218, -0.07712991535663605, -0.5252557992935181, 0.2041902393102646, -0.07481037825345993, -0.3007480502128601, 0.5820887684822083, 0.2628443241119385, 0.21861276030540466, 0.09285782277584076, 0.0751178190112114, -0.21747124195098877, 0.375223845243454, 0.004958278965204954, -0.35867705941200256, -0.006589327938854694, 0.4021379351615906, -0.3480503261089325, 0.054840341210365295, 0.453035831451416, 0.26569658517837524, -0.22763262689113617, 0.15250642597675323, 0.1255037933588028, 0.27363377809524536, 0.03347918391227722, 0.06746535748243332, 0.2694990038871765, 0.33357852697372437, -0.09275422245264053, -0.1821047067642212, -0.1886131763458252, 0.014417653903365135, 0.12352511286735535, -0.28337788581848145, 0.11862517148256302, -0.3490375578403473, 0.016779866069555283, -0.18077452480793, -0.2453863024711609, -0.34967148303985596, 0.10179892927408218, 0.01791546307504177, 0.5167187452316284, -0.019233735278248787, -0.19486652314662933, -0.08310753852128983, -0.13312707841396332, -0.04276912659406662, -0.04725297912955284, 0.2443593442440033, 0.2530238628387451, -0.5382792949676514, -0.2720511555671692, 0.2136116623878479, 0.1150442510843277, 0.24359552562236786, 0.19212128221988678, 0.4720064699649811, -0.07239028811454773, 0.03146502003073692, -0.29650577902793884, 0.16723529994487762, 0.4781273901462555, -0.003513600444421172, 0.04268651083111763, -0.1635616272687912, 0.11457378417253494, 0.0696563571691513, 0.01853528805077076, 0.011364241130650043, 0.4373455047607422, -0.2889092266559601, 0.0332341305911541, 0.12173619121313095, 0.07776477187871933, -0.318722665309906, 0.20002825558185577, -0.22166062891483307, -0.08587232232093811, -0.04617737978696823, 0.30673491954803467, -0.2722221910953522, 0.09639538824558258, 0.16178642213344574, 0.1525752693414688, 0.03762376680970192, -0.12058306485414505, -0.0992913469672203, -0.1381368637084961, -0.13890616595745087, 0.3276243805885315, 0.2592448890209198, 0.07565629482269287, -0.11824056506156921, -0.11059030145406723, 0.12366805225610733, 0.06711180508136749, -0.11901921033859253, -0.12577776610851288, 0.27192822098731995, 0.0063793351873755455, -0.11961735039949417, -0.24746395647525787, 0.006988453213125467, -0.1855599284172058, -0.0826091393828392, 0.20460952818393707, 0.08662484586238861, 0.082259401679039, -0.04584408551454544, 0.29353469610214233, -0.0351126454770565, -0.3378950357437134, 0.05606367811560631, 0.38475948572158813, 0.054407477378845215, -0.07861100882291794, 0.16120336949825287, 0.07706920802593231, -0.16406871378421783, -0.0699191689491272, 0.2680045962333679, 0.1623661071062088, 0.04373892769217491, 0.0179176926612854, -0.06027066335082054, 0.29521214962005615, -0.4049220383167267, 0.15581107139587402, 0.16239993274211884, 0.4924625754356384, 0.16054567694664001, 0.44698047637939453, -0.30206140875816345, 0.042209774255752563, -0.051084455102682114, -0.10682498663663864, -0.061165064573287964, 0.2619520127773285, -0.023306503891944885, 0.22269843518733978, 0.17959219217300415, -0.09816852957010269, 0.1247621402144432, 0.25691458582878113, -0.24345022439956665, -0.03648875653743744, -0.26056426763534546, -0.3209443986415863, -0.14991985261440277, 0.5569961667060852, -0.00815743301063776, -0.09472595155239105, -0.1503634750843048, -0.22697286307811737, 0.08972020447254181, -0.24181517958641052, -0.10534588992595673, -0.20263154804706573, 0.4181382954120636, -0.1816871613264084, 0.06699083000421524, -0.5491581559181213, -0.5756067037582397, -0.14826083183288574, -0.1463892161846161, 0.27864909172058105, 0.033906735479831696, -0.45097821950912476, -0.37333375215530396, 0.13270120322704315, 0.0075059751980006695, -0.03430493175983429, 0.2479700744152069, 0.18692177534103394, 0.2428169846534729, -0.0500190407037735, -0.0937461405992508, 0.15501509606838226, -0.04245203733444214, -0.11471232026815414, -0.1329629123210907, 0.19869019091129303, -0.1225990578532219, 0.04561177268624306, -0.01856730505824089, 0.31479066610336304, -0.13383710384368896, 0.1751376986503601, 0.33474013209342957, 0.1550748348236084, -0.1319166123867035, -0.26256465911865234, 0.08056052774190903, 0.47349846363067627, 0.03268883749842644, -0.05275559797883034, -0.19237664341926575, 0.4993889629840851, 0.12382903695106506, -0.09807752072811127, -0.28532886505126953, 0.4043615758419037, -0.18164877593517303, 0.26818856596946716, 0.15086761116981506, 0.03465000167489052, -0.011712837964296341, -0.08246678858995438, -0.13107001781463623, 0.1497400850057602, 0.41464442014694214, 0.13672217726707458, -0.2725355327129364, -0.06833978742361069, -0.3361949324607849, 0.3972049951553345, 0.2918221056461334, -0.2563175559043884, 0.33813968300819397, 0.09304661303758621, -0.04481197148561478, -0.09962374716997147, 0.017471332103013992, 0.18983280658721924, 0.1904865950345993, 0.26559722423553467, -0.13405774533748627, 0.13256525993347168, -0.03513064235448837, -0.13049262762069702, 0.004788823891431093, 0.07298604398965836, -0.10768213123083115, 0.35938259959220886, 0.30606040358543396, 0.11291392147541046, -0.0875154435634613, -0.08116593211889267, -0.2993248403072357, -0.04683905839920044, -0.02178523689508438, 0.1793803870677948, 0.21822331845760345, -0.22646336257457733, 0.033400390297174454, -0.3110872805118561, 0.015767347067594528, 0.011648260988295078, 0.6521464586257935, -0.13621295988559723, -0.19080126285552979, 0.22196686267852783, 0.07426212728023529, 0.910795271396637, -0.16975799202919006, -0.04776886850595474, -0.22346584498882294, -0.27868935465812683, 0.12758615612983704, 0.30619779229164124, 0.07741764187812805, -0.046121902763843536, 0.505206286907196, -0.18181057274341583, 0.388017863035202, -0.08808954805135727, -0.36542627215385437, 0.09200017899274826, -0.020826183259487152, 0.08689852058887482, -0.013521140441298485, 0.051957178860902786, -0.24621249735355377, -0.3117583096027374, 0.09624515473842621, -0.2440948635339737, -0.1063673198223114, -0.04039027914404869, 0.21756254136562347, -0.09077584743499756, -0.11262281984090805, -0.49638041853904724, -0.06177256628870964, -0.30341577529907227, 0.47608205676078796, 0.22979892790317535, -0.02886044979095459, -0.019428210332989693, -0.07751049846410751, 0.03436904400587082, -0.15266041457653046, 0.10680754482746124, -0.2156095653772354, 0.16385425627231598, 0.22276581823825836, -0.12402582168579102, -0.21182438731193542, -0.4943145215511322, -0.3110438585281372, -0.02379804663360119, 0.07631302624940872, -0.17100811004638672, -0.06842820346355438, -0.22005616128444672, 0.00275921868160367, -0.15199509263038635, 0.1327393501996994, 0.45159703493118286, -0.07667966932058334, -0.2075054794549942, -0.051312532275915146, 0.20858782529830933, 0.5510806441307068, 0.06167963147163391, -0.1596294641494751, 0.13309355080127716, 0.22650285065174103, 0.032637644559144974, 0.6488931179046631, 0.05898095294833183, 0.0846872478723526, 0.2585301697254181, 0.06455814838409424, -0.11768758296966553, -0.27836549282073975, 0.07523349672555923, -0.19348695874214172, -0.15774358808994293, 0.09850555658340454, 0.4758583605289459, 0.26839694380760193, 0.04499330744147301, -0.15292178094387054, 0.1253431737422943, -0.2520807683467865, -0.1979159414768219, 0.40554359555244446, 0.03700745478272438, 0.4625869691371918, -0.0875202938914299, -0.15340296924114227, 0.007968469522893429, -0.3550320863723755, 0.09139824658632278, -0.09228925406932831, 0.02587466686964035, -0.4211956560611725, -0.545346200466156, -0.21823637187480927, -0.2534332573413849, 0.36966559290885925, 0.4543711841106415, -0.010350946336984634, -0.07004699110984802, -0.4352985620498657, -0.08193063735961914, -0.07562700659036636, 0.17007000744342804, 0.062229450792074203, -0.351493239402771, 0.012110540643334389, -0.24428091943264008, 0.07734327018260956, 0.1962987780570984, -0.3358928859233856, -0.33675292134284973, -0.05379901081323624, 0.38742730021476746, -0.3562623858451843, 0.05812482163310051, 0.22642123699188232, -0.04866824299097061, -0.056243617087602615, 0.00869179330766201, -0.08542322367429733, -0.1264295130968094, 0.0051178280264139175, 0.2333197444677353, 0.36871519684791565, 0.03640441969037056, 0.2235223352909088, -0.03960427641868591, -0.09243998676538467, -0.03612811863422394, 0.02631983906030655, 0.1368790566921234, 0.08308365195989609, 0.0011646917555481195, 0.12474313378334045, -0.14307032525539398, -0.1977374404668808, -0.04887280985713005, 0.4001818299293518, -0.20859213173389435, -0.06987112015485764, -0.1505303531885147, -0.15440590679645538, -0.021157149225473404, 0.24885639548301697, 0.10119853168725967, 0.3039298355579376, 0.03486320748925209, 0.13763989508152008, -0.28290173411369324, -0.17388230562210083, -0.1508072316646576, -0.005853430368006229, 0.11366882920265198, -0.13431984186172485, 0.46861740946769714, -0.2742680609226227, -0.23761384189128876, -0.03224163502454758, 0.4682999849319458, -0.19623669981956482, 0.10280046612024307, 0.015681298449635506, 1.031785249710083, -0.16589443385601044, 0.371108740568161, 0.1415889710187912, -0.09747318178415298, 0.20487946271896362, -0.35030046105384827, 0.14481857419013977, -0.1310684084892273, -0.35931265354156494, -0.05615733563899994, 0.03995201736688614, -0.08056139200925827, -0.004561763256788254, -0.39126700162887573, 0.13894937932491302, 0.17560400068759918, 0.3666847050189972, 0.2946522533893585, 0.2584337592124939, 0.0696527436375618, -0.015262751840054989, -0.5002803802490234, 0.21082258224487305, 0.11168444901704788, -0.23970220983028412, -0.05027751624584198, 0.04814454913139343, -0.13714048266410828, -0.12770259380340576, -0.19424819946289062, 0.07074674963951111, -0.43007102608680725, -0.04620245471596718, 0.28614747524261475, -0.10574427992105484, 0.11062460392713547, 0.21241670846939087, -0.02672741934657097, -0.06047823280096054, -0.39435067772865295, 0.010164206847548485, -0.26562395691871643, 0.22791899740695953, 0.07281871140003204, -0.029102683067321777, 0.2924778461456299, -0.20395894348621368, -0.11701802164316177, 0.22735589742660522, 0.3363112807273865, -0.47573480010032654, -0.4612273573875427, 0.07218065857887268, 0.3284936845302582, -0.12560445070266724, 0.0085256677120924, 0.12944135069847107, -0.11915720999240875, -0.14173631370067596, 0.2308950275182724, 0.0601024404168129, 0.05940648913383484, 0.10530474036931992, 0.4885719418525696, -0.1789284348487854, -0.03572951257228851, 0.11766288429498672, 0.4107629358768463, -0.03855319693684578, 0.24713289737701416, 0.30283841490745544, -0.2766369879245758, -0.4391758143901825, -0.10437683761119843, 0.238376647233963, -0.4756166934967041, -0.029951833188533783, -0.16431254148483276, -0.34473732113838196, -0.03330216929316521, 0.5254314541816711, 0.40611910820007324, -0.09939439594745636, -0.06070874631404877, -0.052087292075157166, 0.10303852707147598, 0.6272665858268738, 0.3372286558151245, 0.14480550587177277, 0.09636000543832779, -0.18211323022842407, -0.08785869926214218, 0.2447618991136551, -0.45429477095603943, -0.09256435185670853, -0.3687019348144531, 0.24349738657474518, -0.07208404690027237, -0.26314666867256165, 0.2722587287425995, 0.061476025730371475, 0.1426132321357727, -0.10436476767063141, -0.3949481248855591, -0.40382614731788635, 0.05970696732401848, 0.09715518355369568, 0.1380208134651184, -0.05525269731879234, -0.15080519020557404, -0.14379750192165375, -0.09282287210226059, -0.1315385401248932, 0.05426855757832527, -0.3340458571910858, 0.011097201146185398, -0.17889808118343353, 0.036332014948129654, -0.12402859330177307, -0.18147726356983185, 0.009952236898243427, -0.20889326930046082, -0.18226145207881927, 0.13467848300933838, -0.039241403341293335, 0.0597427599132061, -0.06569326668977737, 0.0799398347735405, 0.5429303050041199, 0.49983450770378113, -0.1578965038061142, 0.05912229046225548, 0.08367446810007095, -0.315489798784256, -0.04431559145450592, 0.27736103534698486, -0.0831809863448143, -0.1181730255484581, 0.0842386931180954, 0.14060121774673462, 0.338583379983902, -0.41730955243110657, -0.0755341649055481, -0.07988560944795609, -0.20253439247608185, 0.33300405740737915, 0.26379790902137756, -0.08641237020492554, -0.09990443289279938, 0.3682369589805603, 0.214971661567688, -0.03560131415724754, -0.03854512423276901, 0.17312142252922058, 0.19376535713672638, 0.2517055869102478, 0.06414743512868881, -0.018476909026503563, -0.014470883645117283, -0.14129534363746643, -0.03342645242810249, -0.20271269977092743, 0.14487893879413605, -0.052562959492206573, 0.07548633962869644, 0.22673559188842773, 0.3809478282928467, -0.008970723487436771, 0.19590605795383453, -0.10536497831344604, 0.14689399302005768, 0.2529245615005493, 0.07748093456029892, 0.17939217388629913, -0.022717369720339775, -0.42151111364364624, -0.15691711008548737, 0.10768063366413116, -0.1497700810432434, 0.06964609771966934, -0.24268361926078796, -0.37097790837287903, -0.12688490748405457, -0.08962792903184891, -0.04089928790926933, 0.5435219407081604, -0.1635991781949997, 0.1739097386598587, -0.06868285685777664, 0.04791974648833275, 0.06702263653278351, 0.3332650363445282, -0.09288334101438522, 0.2201663851737976, 0.21919773519039154, 0.3239123523235321, 0.03367137536406517, 0.4749954342842102, -0.0025974013842642307, 0.23134897649288177, -0.4086587429046631, 0.3700214624404907, -0.2205609679222107, -0.1524350345134735, -0.0604492723941803, 0.24555639922618866, 0.2833980321884155, -0.04615674540400505, 0.22767072916030884, 0.2533395290374756, -0.2943521738052368, 0.2517377436161041, -0.012923342175781727, 0.03222440183162689, -0.2853599190711975, 0.11916053295135498, -0.05435018241405487, -0.04607412591576576, -0.04951152950525284, -0.06128473952412605, -0.5117422938346863, 0.18014758825302124, -0.2863978147506714, -0.29686784744262695, -0.012534799985587597, -0.07364929467439651, 0.1288129985332489, -0.18761198222637177, 0.27551546692848206, 0.23958800733089447, 0.42375269532203674, -0.05105077102780342, -0.36064383387565613, -0.04626104235649109, -0.141885444521904, 0.1449594497680664, -0.1167031079530716, 0.15624099969863892, -0.036334484815597534, 0.2164870947599411, 0.34770333766937256, -0.11189481616020203, -0.37252336740493774, -0.381007581949234, 0.2364695817232132, -0.40078112483024597, 0.3359994888305664, 0.1742292046546936, 0.09775470942258835, 0.17200163006782532, -0.32176026701927185, -0.042753443121910095, 0.012744610197842121, 0.17850689589977264, 0.058219410479068756, 0.1562902331352234, 0.03902362287044525, -0.21072305738925934, -0.11475009471178055, 0.029792355373501778, 0.367997944355011, -0.1752372533082962, -0.18964223563671112, 0.2272828370332718, -0.24851766228675842, -0.19828028976917267, 0.04250464588403702, 0.34403422474861145, 0.311731219291687, -0.041539266705513, -0.30808502435684204, 0.36481213569641113, 0.00514834513887763, 0.14547814428806305, 0.4213908612728119, -0.14115025103092194, 0.09803662449121475, 0.00034571465221233666, -0.07008875906467438, -0.07283828407526016, 0.1219622790813446, -0.0429597832262516, 0.08873333781957626, 0.060238491743803024, -0.20106874406337738, 0.3448045551776886, -0.09215987473726273, -0.21583959460258484, 0.026481259614229202, 0.04321634769439697, 0.0877085030078888, -0.15869750082492828, -0.5564059019088745, -0.09048876166343689, 0.19629381597042084, -0.012719019316136837, -0.07325662672519684, 0.6972962021827698, 0.08562948554754257, -0.14791840314865112, -0.1298852115869522, 0.1628674417734146, 0.06223731115460396, -0.1279260665178299, -0.30265870690345764, -0.5541507005691528 ]
https://github.com/huggingface/datasets/issues/879
boolq does not load
Hi ! It runs on my side without issues. I tried ```python from datasets import load_dataset load_dataset("boolq") ``` What version of datasets and tensorflow are your runnning ? Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful.
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
47
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False. Hi ! It runs on my side without issues. I tried ```python from datasets import load_dataset load_dataset("boolq") ``` What version of datasets and tensorflow are your runnning ? Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful.
[ -0.31424370408058167, -0.1296663135290146, -0.13981486856937408, 0.22436583042144775, 0.08980418741703033, 0.0106662567704916, 0.42538681626319885, 0.30319744348526, 0.4457683861255646, -0.12459511309862137, -0.08600859344005585, 0.330985426902771, -0.18556813895702362, 0.48244741559028625, 0.041710421442985535, -0.02541426755487919, -0.1236407607793808, 0.08377556502819061, -0.013211757875978947, -0.06779202073812485, -0.43351686000823975, 0.3662601709365845, -0.4190509021282196, 0.17288102209568024, -0.1200268417596817, -0.27644580602645874, -0.011229954659938812, 0.2354564219713211, -0.3227617144584656, -0.340230792760849, 0.12919342517852783, 0.039989352226257324, 0.2798752784729004, 0.19758543372154236, -0.00010042171197710559, 0.047427576035261154, 0.4136010706424713, 0.09128167480230331, -0.2201257199048996, -0.2904612123966217, -0.17259334027767181, -0.3197641670703888, 0.17700687050819397, -0.17048458755016327, -0.07812997698783875, -0.05451535806059837, -0.05542892962694168, 0.07697319984436035, 0.4125244617462158, 0.46009936928749084, 0.3143284320831299, 0.07579854130744934, 0.11705716699361801, -0.19515137374401093, 0.19319261610507965, -0.16269806027412415, 0.15155252814292908, 0.20156969130039215, 0.04193715751171112, -0.2938947379589081, 0.15875208377838135, 0.26375865936279297, -0.1833396852016449, -0.24602867662906647, 0.012176088988780975, -0.20740245282649994, -0.10173852741718292, -0.3344743549823761, 0.23517084121704102, 0.01414512936025858, 0.5186156034469604, -0.12240980565547943, -0.27338218688964844, -0.056683965027332306, 0.14293795824050903, -0.1925472468137741, 0.189398393034935, 0.09149972349405289, 0.0534333810210228, -0.06353049725294113, 0.18509873747825623, -0.48960787057876587, -0.03764289990067482, -0.03542077913880348, -0.13839027285575867, 0.27597615122795105, -0.1215398907661438, 0.051884397864341736, 0.19128082692623138, -0.17118032276630402, 0.11334650963544846, 0.20802651345729828, -0.15228992700576782, 0.15849602222442627, -0.517992377281189, 0.03580505773425102, 0.15612804889678955, -0.027178924530744553, -0.03639867156744003, 0.1296272724866867, -0.1894538253545761, 0.018725134432315826, -0.09171900898218155, 0.20680953562259674, 0.004621418192982674, 0.5135238766670227, 0.38422104716300964, 0.2736549973487854, 0.15835772454738617, 0.10752894729375839, -0.22334781289100647, 0.03422906994819641, -0.5201331973075867, -0.3621056079864502, -0.1302109658718109, 0.24921715259552002, 0.23662787675857544, -0.08484694361686707, -0.353836327791214, -0.17399512231349945, -0.32246777415275574, -0.13475631177425385, 0.34326207637786865, 0.6987858414649963, 0.04301285371184349, -0.12656380236148834, 0.05251098796725273, 0.2696886658668518, -0.3483472168445587, -0.07061191648244858, -0.28774163126945496, 0.3017652928829193, -0.03071449138224125, -0.15547476708889008, 0.29760074615478516, -0.1689217984676361, 0.3525429368019104, 0.0606396347284317, -0.2498083859682083, -0.09909328818321228, 0.2741266191005707, -0.2546376883983612, -0.3732604682445526, 0.2511187195777893, 0.0047496589832007885, 0.015163111500442028, 0.2008352130651474, 0.23038507997989655, -0.041110873222351074, 0.20554311573505402, -0.2143671065568924, -0.2891755998134613, 0.04164493456482887, 0.3372690677642822, -0.022981103509664536, -0.27757567167282104, -0.14184485375881195, 0.1758437603712082, 0.11507409811019897, -0.1472824364900589, -0.2639818787574768, -0.327143132686615, -0.10467816889286041, -0.21856945753097534, 0.39932677149772644, 0.45461368560791016, -0.3941670060157776, -0.2644501328468323, -0.3861929476261139, -0.21174052357673645, 0.005800563842058182, 0.2955782115459442, -0.13708795607089996, 0.5168126821517944, -0.20740357041358948, 0.08613356202840805, 0.264697402715683, -0.2111937701702118, -0.18445056676864624, 0.19702595472335815, -0.014966350980103016, -0.034875109791755676, -0.2750909626483917, -0.04452814906835556, 0.12034166604280472, 0.1673649102449417, 0.13170622289180756, 0.14151345193386078, 0.2968444228172302, -0.2430078685283661, -0.14651980996131897, -0.12238762527704239, 0.07106394320726395, 0.34577977657318115, 0.23013025522232056, -0.05355305224657059, -0.058450739830732346, -0.41137468814849854, 0.06856784969568253, 0.15321531891822815, -0.299167275428772, 0.1951565146446228, 0.3404022455215454, -0.11517976969480515, 0.196804478764534, 0.02545403689146042, -0.3794718384742737, 0.15445245802402496, -0.2339850217103958, -0.03783377259969711, -0.06209656223654747, 0.15337631106376648, -0.32667800784111023, 0.0734999030828476, -0.1862199902534485, -0.052406247705221176, 0.1931237131357193, -0.1655137687921524, -0.056977760046720505, 0.0857943668961525, -0.3088473677635193, 0.2691083252429962, -0.02353767305612564, 0.1346352994441986, -0.21374058723449707, 0.10543198883533478, -0.14657124876976013, -0.09275206178426743, 0.2968965470790863, 0.2993907034397125, 0.19807428121566772, 0.029988955706357956, -0.02120034582912922, 0.24328869581222534, 0.12887714803218842, 0.10437469929456711, -0.04127274081110954, -0.5058262944221497, 0.1112552285194397, -0.03842379152774811, 0.3070509731769562, 0.13301290571689606, 0.07425760477781296, 0.08087393641471863, 0.09009424597024918, 0.2717496454715729, -0.08599074929952621, 0.19372613728046417, 0.14446809887886047, 0.1817195564508438, 0.24008625745773315, 0.029275033622980118, -0.006894427351653576, -0.12920209765434265, 0.48108813166618347, -0.04004419967532158, -0.02557036653161049, 0.028518909588456154, -0.14774173498153687, 0.0691421777009964, 0.4380705654621124, 0.10779520124197006, 0.1224580779671669, 0.026605304330587387, -0.12259268760681152, 0.12353425472974777, 0.1176418662071228, 0.15315482020378113, 0.27107807993888855, 0.20761537551879883, -0.4852927625179291, -0.10210233926773071, -0.04211936891078949, -0.2693489193916321, 0.17331098020076752, -0.19383591413497925, 0.0288222748786211, 0.20616132020950317, -0.06930699944496155, -0.12480208277702332, -0.18517203629016876, -0.22500480711460114, 0.0909520760178566, 0.27746349573135376, -0.19736617803573608, -0.06494847685098648, -0.08353541791439056, -0.3896835446357727, 0.1917286217212677, -0.10835713148117065, -0.03044523112475872, -0.35120776295661926, 0.12872111797332764, -0.029634768143296242, -0.0343707837164402, 0.2476261705160141, 0.06126447394490242, 0.31483012437820435, 0.1070157065987587, -0.08508282899856567, -0.13643158972263336, -0.2685339152812958, -0.22659912705421448, 0.13108468055725098, 0.18702036142349243, 0.08184891194105148, 0.2532466650009155, -0.09901420027017593, 0.0883716270327568, -0.05349056050181389, -0.22254878282546997, -0.08780573308467865, -0.09443217515945435, 0.33476483821868896, 0.11848366260528564, 0.06661172211170197, -0.05646247789263725, -0.2238020896911621, 0.352350115776062, -0.16339318454265594, -0.021188268437981606, 0.17259451746940613, 0.17168284952640533, -0.057861823588609695, -0.22050175070762634, -0.5058788657188416, -0.5898677110671997, -0.49117645621299744, 0.09636962413787842, 0.06363258510828018, 0.19667008519172668, 0.3625301122665405, -0.029489990323781967, 0.19606167078018188, 0.07129956781864166, -0.04950740188360214, 0.005585447885096073, -0.15990720689296722, 0.26207849383354187, -0.06519913673400879, -0.27832597494125366, 0.04343957453966141, -0.0880056768655777, 0.43292880058288574, -0.25399935245513916, -0.30814722180366516, 0.0036390512250363827, -0.06442714482545853, -0.09770183265209198, -0.062060654163360596, -0.1536533385515213, -0.1169777512550354, 0.06116193160414696, 0.013872158713638783, 0.066351018846035, -0.32576999068260193, 0.22716699540615082, 0.019183604046702385, 0.19687522947788239, -0.06557711213827133, 0.34696516394615173, -0.36505037546157837, 0.6071888208389282, 0.18263855576515198, 0.19847212731838226, 0.20669905841350555, 0.2602948546409607, 0.08824338018894196, 0.022589657455682755, -0.7111613750457764, 0.011996230110526085, 0.19723156094551086, -0.17378705739974976, 0.022320281714200974, -0.07429338246583939, 0.004897631239145994, -0.23215827345848083, -0.18119566142559052, -0.17401012778282166, -0.2393469363451004, -0.05550071597099304, -0.3643966317176819, 0.022895177826285362, -0.021846789866685867, 0.36738401651382446, -0.210863396525383, 0.0025237284135073423, 0.08582723140716553, 0.19720347225666046, 0.14641089737415314, -0.09420531988143921, -0.530360758304596, -0.5024213790893555, -0.3433583974838257, 0.24143339693546295, -0.26804959774017334, 0.23922115564346313, -0.13718223571777344, 0.020919766277074814, 0.10316560417413712, -0.11034764349460602, 0.4958159327507019, -0.13108491897583008, -0.11984989792108536, 0.3111148476600647, -0.08520318567752838, -0.2169421762228012, -0.15604454278945923, -0.21457445621490479, 0.24877284467220306, 0.0919610932469368, 0.4482046067714691, -0.25025975704193115, 0.018346207216382027, 0.014994236640632153, -0.18054580688476562, -0.2933082580566406, -0.49806761741638184, -0.43711310625076294, -0.1474030464887619, -0.3785991072654724, -0.06842706352472305, -0.24365289509296417, 0.2505199909210205, -0.23808802664279938, -0.01734073832631111, -0.04460795223712921, -0.2353481948375702, 0.1815386414527893, 0.16367731988430023, 0.5122847557067871, -0.19213557243347168, 0.09656836092472076, 0.04631645232439041, 0.0618036687374115, 0.11009138077497482, 0.38773319125175476, -0.17459136247634888, -0.2596474289894104, -0.03162575140595436, -0.01945151947438717, 0.29708388447761536, -0.10348479449748993, -0.2948686182498932, 0.3071790337562561, -0.0516144223511219, 0.11024937778711319, 0.025938495993614197, 0.014743717387318611, 0.25328564643859863, 0.1661938577890396, -0.04914317652583122, -0.416154682636261, 0.1546279489994049, -0.02642643451690674, 0.059389520436525345, 0.20633161067962646, -0.21293547749519348, -0.02973317913711071, 0.2763856053352356, -0.06480035185813904, 0.5007880926132202, -0.18125048279762268, -0.19337968528270721, 0.34079185128211975, 0.2174999713897705, 0.403896301984787, -0.166914165019989, 0.2915233075618744, -0.5527961850166321, -0.019656112417578697, 0.2265731692314148, -0.13747186958789825, -0.040273457765579224, -0.25862547755241394, -0.5010091662406921, 0.2584689259529114, -0.19388720393180847, 0.3548450469970703, 0.025168171152472496, 0.23960824310779572, -0.19910958409309387, 0.068602554500103, -0.2652856111526489, 0.19740067422389984, -0.11810239404439926, 0.3159298300743103, -0.17480064928531647, -0.06731472164392471, 0.33890581130981445, -0.12134182453155518, -0.09729843586683273, 0.39279669523239136, -0.1331140547990799, 0.249198779463768, 0.18692044913768768, -0.08594416081905365, 0.13711099326610565, 0.48024222254753113, 0.03609427437186241, 0.22734560072422028, -0.1351349651813507, 0.0657629519701004, -0.01932092383503914, -0.09433333575725555, -0.11217896640300751, 0.16035352647304535, 0.2917369604110718, -0.11767976731061935, -0.3513070344924927, 0.49825745820999146, -0.05396293103694916, 0.08089589327573776, -0.20774883031845093, 0.09667699038982391, -0.01973562128841877, -0.279284805059433, -0.05826517194509506, -0.07770644873380661, 0.08353351801633835, -0.11277393251657486, 0.19551227986812592, 0.15039610862731934, -0.0459568053483963, 0.28497254848480225, -0.10047951340675354, -0.2767525017261505, -0.03683273121714592, 0.16316521167755127, -0.02025935798883438, 0.26787447929382324, 0.7444612979888916, 0.31481868028640747, -0.04340742900967598, -0.40688931941986084, -0.11198483407497406, 0.10229530185461044, -0.0354899987578392, 0.23432044684886932, 0.20252732932567596, -0.09757453203201294, 0.2175716608762741, 0.07019314169883728, 0.03324772045016289, -0.04878702759742737, -0.07802523672580719, -0.49767881631851196, -0.2899363934993744, 0.5084164142608643, -0.23844243586063385, -0.07176150381565094, -0.02268308773636818, -0.02330079674720764, 0.025399573147296906, 0.17862409353256226, -0.4123269319534302, -0.004747377708554268, -0.5003228187561035, -0.13860130310058594, -0.1944635510444641, -0.29094207286834717, 0.13505207002162933, 0.18392840027809143, 0.25737735629081726, -0.0973939374089241, -0.12594342231750488, -0.28203749656677246, 0.027912314981222153, 0.01861208863556385, -0.05061643198132515, 0.13413289189338684, -0.03560986369848251, -0.21929317712783813, 0.02694302424788475, 0.12454719841480255, -0.019081994891166687, -0.1418265551328659, 0.04285541921854019, 0.23098532855510712, 0.06642148643732071, 0.14982324838638306, -0.10485836118459702, 0.39251068234443665, -0.1542082577943802, -0.10917706787586212, 0.08928191661834717, 0.0404636450111866, 0.14543168246746063, 0.004115916322916746, -0.0036401196848601103, -0.05702286958694458, 0.07639944553375244, 0.07887478917837143, 0.15677590668201447, -0.20101036131381989, 0.2653379738330841, -0.1736508309841156, 0.050991445779800415, 0.6181185841560364, -0.22273126244544983, 0.11171533167362213, 0.09685038030147552, 0.3101873993873596, -0.22786465287208557, 0.19033297896385193, -0.2262129932641983, -0.02693580463528633, 0.004427649546414614, 0.1368972361087799, -0.2643558979034424, -0.18580353260040283, 0.19441960752010345, 0.18683786690235138, 0.23788383603096008, 0.12075325846672058, 0.0021418221294879913, 0.282804936170578, -0.21377505362033844, -0.16572074592113495, 0.18048448860645294, 0.18042196333408356, 0.004253933671861887, 0.36043745279312134, -0.27135610580444336, -0.044931475073099136, 0.05942516028881073, 0.25073739886283875, 0.19731655716896057, -0.39613595604896545, -0.1421322375535965, 0.3903942406177521, -0.007781106047332287, -0.2976875901222229, -0.26082783937454224, 0.4449038505554199, -0.104410320520401, -0.05675722658634186, -0.11783592402935028, 0.13538098335266113, -0.3331623375415802, -0.09494414925575256, -0.5158829092979431, -0.09019411355257034, -0.045439328998327255, -0.13128861784934998, 0.025201644748449326, 0.042016252875328064, -0.11481423676013947, 0.07308041304349899, -0.1637791246175766, -0.3743656277656555, 0.2009001076221466, 0.25306951999664307, -0.243772491812706, -0.115078404545784, 0.39142879843711853, 0.15331944823265076, 0.3194284737110138, 0.19700521230697632, 0.08292855322360992, 0.3079623281955719, 0.5380838513374329, -0.3283621072769165, -0.0000052483869694697205, 0.01990870200097561, -0.13135755062103271, 0.0346752367913723, 0.3137902021408081, 0.21487988531589508, 0.3973918855190277, 0.2980225086212158, 0.24294288456439972, -0.17194019258022308, 0.19439879059791565, 0.0471305325627327, 0.16509267687797546, 0.004055693279951811, 0.6533148288726807, -0.051562946289777756, 0.010702834464609623, -0.20286211371421814, -0.04924894869327545, -0.5103917121887207, -0.08797316998243332, 0.29993128776550293, 0.2265714854001999, 0.05600643903017044, -0.2306608408689499, 0.13659992814064026, -0.32440975308418274, 0.4204716682434082, 0.4334076941013336, 0.46494296193122864, -0.41408297419548035, 0.14577078819274902, -0.4007865786552429, 0.04661446809768677, 0.06586012244224548, -0.0020459627266973257, -0.10973818600177765, 0.031468238681554794, -0.04250212758779526, -0.08670993894338608, 0.13193996250629425, 0.039900269359350204, 0.22278974950313568, -0.17746542394161224, -0.4814169108867645, 0.13286328315734863, 0.046192966401576996, 0.16846366226673126, 0.024455560371279716, -0.13321588933467865, 0.19251643121242523, -0.42588070034980774, 0.09932909905910492, -0.03769570589065552, -0.25573715567588806, 0.18412119150161743, -0.24341166019439697, 0.2420443445444107, 0.002827636431902647, 0.2686466872692108, 0.010274446569383144, -0.024136871099472046, -0.1938566416501999, -0.328902930021286, -0.14308586716651917, 0.012500462122261524, 0.31627923250198364, 0.20124243199825287, -0.04066761955618858, 0.21811901032924652, -0.13729533553123474, 0.16710497438907623, -0.010154063813388348, -0.17509935796260834, -0.1615075021982193, -0.04802420362830162, 0.25217729806900024, -0.15830540657043457, 0.05238507315516472, 0.14598868787288666, 0.046681273728609085, 0.15648020803928375, -0.404548704624176, -0.06978638470172882, 0.49094170331954956, -0.01894371584057808, -0.06520017236471176, -0.05440162494778633, 0.24222372472286224, 0.1531125009059906, 0.024958867579698563, -0.3776169717311859, 0.024551309645175934, 0.3022920787334442, -0.025207510218024254, 0.07761704921722412, 0.30288180708885193, 0.4011400640010834, 0.09646791964769363, -0.09904174506664276, -0.28320884704589844, 0.16158698499202728, 0.09360720217227936, 0.07789618521928787, 0.02055577002465725 ]
https://github.com/huggingface/datasets/issues/879
boolq does not load
hey i do the exact same commands. for me it fails i guess might be issues with caching maybe? thanks best rabeeh On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <notifications@github.com> wrote: > Hi ! It runs on my side without issues. I tried > > from datasets import load_datasetload_dataset("boolq") > > What version of datasets and tensorflow are your runnning ? > Also if you manage to get a minimal reproducible script (on google colab > for example) that would be useful. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A> > . >
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
117
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False. hey i do the exact same commands. for me it fails i guess might be issues with caching maybe? thanks best rabeeh On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <notifications@github.com> wrote: > Hi ! It runs on my side without issues. I tried > > from datasets import load_datasetload_dataset("boolq") > > What version of datasets and tensorflow are your runnning ? > Also if you manage to get a minimal reproducible script (on google colab > for example) that would be useful. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A> > . >
[ -0.31424370408058167, -0.1296663135290146, -0.13981486856937408, 0.22436583042144775, 0.08980418741703033, 0.0106662567704916, 0.42538681626319885, 0.30319744348526, 0.4457683861255646, -0.12459511309862137, -0.08600859344005585, 0.330985426902771, -0.18556813895702362, 0.48244741559028625, 0.041710421442985535, -0.02541426755487919, -0.1236407607793808, 0.08377556502819061, -0.013211757875978947, -0.06779202073812485, -0.43351686000823975, 0.3662601709365845, -0.4190509021282196, 0.17288102209568024, -0.1200268417596817, -0.27644580602645874, -0.011229954659938812, 0.2354564219713211, -0.3227617144584656, -0.340230792760849, 0.12919342517852783, 0.039989352226257324, 0.2798752784729004, 0.19758543372154236, -0.00010042171197710559, 0.047427576035261154, 0.4136010706424713, 0.09128167480230331, -0.2201257199048996, -0.2904612123966217, -0.17259334027767181, -0.3197641670703888, 0.17700687050819397, -0.17048458755016327, -0.07812997698783875, -0.05451535806059837, -0.05542892962694168, 0.07697319984436035, 0.4125244617462158, 0.46009936928749084, 0.3143284320831299, 0.07579854130744934, 0.11705716699361801, -0.19515137374401093, 0.19319261610507965, -0.16269806027412415, 0.15155252814292908, 0.20156969130039215, 0.04193715751171112, -0.2938947379589081, 0.15875208377838135, 0.26375865936279297, -0.1833396852016449, -0.24602867662906647, 0.012176088988780975, -0.20740245282649994, -0.10173852741718292, -0.3344743549823761, 0.23517084121704102, 0.01414512936025858, 0.5186156034469604, -0.12240980565547943, -0.27338218688964844, -0.056683965027332306, 0.14293795824050903, -0.1925472468137741, 0.189398393034935, 0.09149972349405289, 0.0534333810210228, -0.06353049725294113, 0.18509873747825623, -0.48960787057876587, -0.03764289990067482, -0.03542077913880348, -0.13839027285575867, 0.27597615122795105, -0.1215398907661438, 0.051884397864341736, 0.19128082692623138, -0.17118032276630402, 0.11334650963544846, 0.20802651345729828, -0.15228992700576782, 0.15849602222442627, -0.517992377281189, 0.03580505773425102, 0.15612804889678955, -0.027178924530744553, -0.03639867156744003, 0.1296272724866867, -0.1894538253545761, 0.018725134432315826, -0.09171900898218155, 0.20680953562259674, 0.004621418192982674, 0.5135238766670227, 0.38422104716300964, 0.2736549973487854, 0.15835772454738617, 0.10752894729375839, -0.22334781289100647, 0.03422906994819641, -0.5201331973075867, -0.3621056079864502, -0.1302109658718109, 0.24921715259552002, 0.23662787675857544, -0.08484694361686707, -0.353836327791214, -0.17399512231349945, -0.32246777415275574, -0.13475631177425385, 0.34326207637786865, 0.6987858414649963, 0.04301285371184349, -0.12656380236148834, 0.05251098796725273, 0.2696886658668518, -0.3483472168445587, -0.07061191648244858, -0.28774163126945496, 0.3017652928829193, -0.03071449138224125, -0.15547476708889008, 0.29760074615478516, -0.1689217984676361, 0.3525429368019104, 0.0606396347284317, -0.2498083859682083, -0.09909328818321228, 0.2741266191005707, -0.2546376883983612, -0.3732604682445526, 0.2511187195777893, 0.0047496589832007885, 0.015163111500442028, 0.2008352130651474, 0.23038507997989655, -0.041110873222351074, 0.20554311573505402, -0.2143671065568924, -0.2891755998134613, 0.04164493456482887, 0.3372690677642822, -0.022981103509664536, -0.27757567167282104, -0.14184485375881195, 0.1758437603712082, 0.11507409811019897, -0.1472824364900589, -0.2639818787574768, -0.327143132686615, -0.10467816889286041, -0.21856945753097534, 0.39932677149772644, 0.45461368560791016, -0.3941670060157776, -0.2644501328468323, -0.3861929476261139, -0.21174052357673645, 0.005800563842058182, 0.2955782115459442, -0.13708795607089996, 0.5168126821517944, -0.20740357041358948, 0.08613356202840805, 0.264697402715683, -0.2111937701702118, -0.18445056676864624, 0.19702595472335815, -0.014966350980103016, -0.034875109791755676, -0.2750909626483917, -0.04452814906835556, 0.12034166604280472, 0.1673649102449417, 0.13170622289180756, 0.14151345193386078, 0.2968444228172302, -0.2430078685283661, -0.14651980996131897, -0.12238762527704239, 0.07106394320726395, 0.34577977657318115, 0.23013025522232056, -0.05355305224657059, -0.058450739830732346, -0.41137468814849854, 0.06856784969568253, 0.15321531891822815, -0.299167275428772, 0.1951565146446228, 0.3404022455215454, -0.11517976969480515, 0.196804478764534, 0.02545403689146042, -0.3794718384742737, 0.15445245802402496, -0.2339850217103958, -0.03783377259969711, -0.06209656223654747, 0.15337631106376648, -0.32667800784111023, 0.0734999030828476, -0.1862199902534485, -0.052406247705221176, 0.1931237131357193, -0.1655137687921524, -0.056977760046720505, 0.0857943668961525, -0.3088473677635193, 0.2691083252429962, -0.02353767305612564, 0.1346352994441986, -0.21374058723449707, 0.10543198883533478, -0.14657124876976013, -0.09275206178426743, 0.2968965470790863, 0.2993907034397125, 0.19807428121566772, 0.029988955706357956, -0.02120034582912922, 0.24328869581222534, 0.12887714803218842, 0.10437469929456711, -0.04127274081110954, -0.5058262944221497, 0.1112552285194397, -0.03842379152774811, 0.3070509731769562, 0.13301290571689606, 0.07425760477781296, 0.08087393641471863, 0.09009424597024918, 0.2717496454715729, -0.08599074929952621, 0.19372613728046417, 0.14446809887886047, 0.1817195564508438, 0.24008625745773315, 0.029275033622980118, -0.006894427351653576, -0.12920209765434265, 0.48108813166618347, -0.04004419967532158, -0.02557036653161049, 0.028518909588456154, -0.14774173498153687, 0.0691421777009964, 0.4380705654621124, 0.10779520124197006, 0.1224580779671669, 0.026605304330587387, -0.12259268760681152, 0.12353425472974777, 0.1176418662071228, 0.15315482020378113, 0.27107807993888855, 0.20761537551879883, -0.4852927625179291, -0.10210233926773071, -0.04211936891078949, -0.2693489193916321, 0.17331098020076752, -0.19383591413497925, 0.0288222748786211, 0.20616132020950317, -0.06930699944496155, -0.12480208277702332, -0.18517203629016876, -0.22500480711460114, 0.0909520760178566, 0.27746349573135376, -0.19736617803573608, -0.06494847685098648, -0.08353541791439056, -0.3896835446357727, 0.1917286217212677, -0.10835713148117065, -0.03044523112475872, -0.35120776295661926, 0.12872111797332764, -0.029634768143296242, -0.0343707837164402, 0.2476261705160141, 0.06126447394490242, 0.31483012437820435, 0.1070157065987587, -0.08508282899856567, -0.13643158972263336, -0.2685339152812958, -0.22659912705421448, 0.13108468055725098, 0.18702036142349243, 0.08184891194105148, 0.2532466650009155, -0.09901420027017593, 0.0883716270327568, -0.05349056050181389, -0.22254878282546997, -0.08780573308467865, -0.09443217515945435, 0.33476483821868896, 0.11848366260528564, 0.06661172211170197, -0.05646247789263725, -0.2238020896911621, 0.352350115776062, -0.16339318454265594, -0.021188268437981606, 0.17259451746940613, 0.17168284952640533, -0.057861823588609695, -0.22050175070762634, -0.5058788657188416, -0.5898677110671997, -0.49117645621299744, 0.09636962413787842, 0.06363258510828018, 0.19667008519172668, 0.3625301122665405, -0.029489990323781967, 0.19606167078018188, 0.07129956781864166, -0.04950740188360214, 0.005585447885096073, -0.15990720689296722, 0.26207849383354187, -0.06519913673400879, -0.27832597494125366, 0.04343957453966141, -0.0880056768655777, 0.43292880058288574, -0.25399935245513916, -0.30814722180366516, 0.0036390512250363827, -0.06442714482545853, -0.09770183265209198, -0.062060654163360596, -0.1536533385515213, -0.1169777512550354, 0.06116193160414696, 0.013872158713638783, 0.066351018846035, -0.32576999068260193, 0.22716699540615082, 0.019183604046702385, 0.19687522947788239, -0.06557711213827133, 0.34696516394615173, -0.36505037546157837, 0.6071888208389282, 0.18263855576515198, 0.19847212731838226, 0.20669905841350555, 0.2602948546409607, 0.08824338018894196, 0.022589657455682755, -0.7111613750457764, 0.011996230110526085, 0.19723156094551086, -0.17378705739974976, 0.022320281714200974, -0.07429338246583939, 0.004897631239145994, -0.23215827345848083, -0.18119566142559052, -0.17401012778282166, -0.2393469363451004, -0.05550071597099304, -0.3643966317176819, 0.022895177826285362, -0.021846789866685867, 0.36738401651382446, -0.210863396525383, 0.0025237284135073423, 0.08582723140716553, 0.19720347225666046, 0.14641089737415314, -0.09420531988143921, -0.530360758304596, -0.5024213790893555, -0.3433583974838257, 0.24143339693546295, -0.26804959774017334, 0.23922115564346313, -0.13718223571777344, 0.020919766277074814, 0.10316560417413712, -0.11034764349460602, 0.4958159327507019, -0.13108491897583008, -0.11984989792108536, 0.3111148476600647, -0.08520318567752838, -0.2169421762228012, -0.15604454278945923, -0.21457445621490479, 0.24877284467220306, 0.0919610932469368, 0.4482046067714691, -0.25025975704193115, 0.018346207216382027, 0.014994236640632153, -0.18054580688476562, -0.2933082580566406, -0.49806761741638184, -0.43711310625076294, -0.1474030464887619, -0.3785991072654724, -0.06842706352472305, -0.24365289509296417, 0.2505199909210205, -0.23808802664279938, -0.01734073832631111, -0.04460795223712921, -0.2353481948375702, 0.1815386414527893, 0.16367731988430023, 0.5122847557067871, -0.19213557243347168, 0.09656836092472076, 0.04631645232439041, 0.0618036687374115, 0.11009138077497482, 0.38773319125175476, -0.17459136247634888, -0.2596474289894104, -0.03162575140595436, -0.01945151947438717, 0.29708388447761536, -0.10348479449748993, -0.2948686182498932, 0.3071790337562561, -0.0516144223511219, 0.11024937778711319, 0.025938495993614197, 0.014743717387318611, 0.25328564643859863, 0.1661938577890396, -0.04914317652583122, -0.416154682636261, 0.1546279489994049, -0.02642643451690674, 0.059389520436525345, 0.20633161067962646, -0.21293547749519348, -0.02973317913711071, 0.2763856053352356, -0.06480035185813904, 0.5007880926132202, -0.18125048279762268, -0.19337968528270721, 0.34079185128211975, 0.2174999713897705, 0.403896301984787, -0.166914165019989, 0.2915233075618744, -0.5527961850166321, -0.019656112417578697, 0.2265731692314148, -0.13747186958789825, -0.040273457765579224, -0.25862547755241394, -0.5010091662406921, 0.2584689259529114, -0.19388720393180847, 0.3548450469970703, 0.025168171152472496, 0.23960824310779572, -0.19910958409309387, 0.068602554500103, -0.2652856111526489, 0.19740067422389984, -0.11810239404439926, 0.3159298300743103, -0.17480064928531647, -0.06731472164392471, 0.33890581130981445, -0.12134182453155518, -0.09729843586683273, 0.39279669523239136, -0.1331140547990799, 0.249198779463768, 0.18692044913768768, -0.08594416081905365, 0.13711099326610565, 0.48024222254753113, 0.03609427437186241, 0.22734560072422028, -0.1351349651813507, 0.0657629519701004, -0.01932092383503914, -0.09433333575725555, -0.11217896640300751, 0.16035352647304535, 0.2917369604110718, -0.11767976731061935, -0.3513070344924927, 0.49825745820999146, -0.05396293103694916, 0.08089589327573776, -0.20774883031845093, 0.09667699038982391, -0.01973562128841877, -0.279284805059433, -0.05826517194509506, -0.07770644873380661, 0.08353351801633835, -0.11277393251657486, 0.19551227986812592, 0.15039610862731934, -0.0459568053483963, 0.28497254848480225, -0.10047951340675354, -0.2767525017261505, -0.03683273121714592, 0.16316521167755127, -0.02025935798883438, 0.26787447929382324, 0.7444612979888916, 0.31481868028640747, -0.04340742900967598, -0.40688931941986084, -0.11198483407497406, 0.10229530185461044, -0.0354899987578392, 0.23432044684886932, 0.20252732932567596, -0.09757453203201294, 0.2175716608762741, 0.07019314169883728, 0.03324772045016289, -0.04878702759742737, -0.07802523672580719, -0.49767881631851196, -0.2899363934993744, 0.5084164142608643, -0.23844243586063385, -0.07176150381565094, -0.02268308773636818, -0.02330079674720764, 0.025399573147296906, 0.17862409353256226, -0.4123269319534302, -0.004747377708554268, -0.5003228187561035, -0.13860130310058594, -0.1944635510444641, -0.29094207286834717, 0.13505207002162933, 0.18392840027809143, 0.25737735629081726, -0.0973939374089241, -0.12594342231750488, -0.28203749656677246, 0.027912314981222153, 0.01861208863556385, -0.05061643198132515, 0.13413289189338684, -0.03560986369848251, -0.21929317712783813, 0.02694302424788475, 0.12454719841480255, -0.019081994891166687, -0.1418265551328659, 0.04285541921854019, 0.23098532855510712, 0.06642148643732071, 0.14982324838638306, -0.10485836118459702, 0.39251068234443665, -0.1542082577943802, -0.10917706787586212, 0.08928191661834717, 0.0404636450111866, 0.14543168246746063, 0.004115916322916746, -0.0036401196848601103, -0.05702286958694458, 0.07639944553375244, 0.07887478917837143, 0.15677590668201447, -0.20101036131381989, 0.2653379738330841, -0.1736508309841156, 0.050991445779800415, 0.6181185841560364, -0.22273126244544983, 0.11171533167362213, 0.09685038030147552, 0.3101873993873596, -0.22786465287208557, 0.19033297896385193, -0.2262129932641983, -0.02693580463528633, 0.004427649546414614, 0.1368972361087799, -0.2643558979034424, -0.18580353260040283, 0.19441960752010345, 0.18683786690235138, 0.23788383603096008, 0.12075325846672058, 0.0021418221294879913, 0.282804936170578, -0.21377505362033844, -0.16572074592113495, 0.18048448860645294, 0.18042196333408356, 0.004253933671861887, 0.36043745279312134, -0.27135610580444336, -0.044931475073099136, 0.05942516028881073, 0.25073739886283875, 0.19731655716896057, -0.39613595604896545, -0.1421322375535965, 0.3903942406177521, -0.007781106047332287, -0.2976875901222229, -0.26082783937454224, 0.4449038505554199, -0.104410320520401, -0.05675722658634186, -0.11783592402935028, 0.13538098335266113, -0.3331623375415802, -0.09494414925575256, -0.5158829092979431, -0.09019411355257034, -0.045439328998327255, -0.13128861784934998, 0.025201644748449326, 0.042016252875328064, -0.11481423676013947, 0.07308041304349899, -0.1637791246175766, -0.3743656277656555, 0.2009001076221466, 0.25306951999664307, -0.243772491812706, -0.115078404545784, 0.39142879843711853, 0.15331944823265076, 0.3194284737110138, 0.19700521230697632, 0.08292855322360992, 0.3079623281955719, 0.5380838513374329, -0.3283621072769165, -0.0000052483869694697205, 0.01990870200097561, -0.13135755062103271, 0.0346752367913723, 0.3137902021408081, 0.21487988531589508, 0.3973918855190277, 0.2980225086212158, 0.24294288456439972, -0.17194019258022308, 0.19439879059791565, 0.0471305325627327, 0.16509267687797546, 0.004055693279951811, 0.6533148288726807, -0.051562946289777756, 0.010702834464609623, -0.20286211371421814, -0.04924894869327545, -0.5103917121887207, -0.08797316998243332, 0.29993128776550293, 0.2265714854001999, 0.05600643903017044, -0.2306608408689499, 0.13659992814064026, -0.32440975308418274, 0.4204716682434082, 0.4334076941013336, 0.46494296193122864, -0.41408297419548035, 0.14577078819274902, -0.4007865786552429, 0.04661446809768677, 0.06586012244224548, -0.0020459627266973257, -0.10973818600177765, 0.031468238681554794, -0.04250212758779526, -0.08670993894338608, 0.13193996250629425, 0.039900269359350204, 0.22278974950313568, -0.17746542394161224, -0.4814169108867645, 0.13286328315734863, 0.046192966401576996, 0.16846366226673126, 0.024455560371279716, -0.13321588933467865, 0.19251643121242523, -0.42588070034980774, 0.09932909905910492, -0.03769570589065552, -0.25573715567588806, 0.18412119150161743, -0.24341166019439697, 0.2420443445444107, 0.002827636431902647, 0.2686466872692108, 0.010274446569383144, -0.024136871099472046, -0.1938566416501999, -0.328902930021286, -0.14308586716651917, 0.012500462122261524, 0.31627923250198364, 0.20124243199825287, -0.04066761955618858, 0.21811901032924652, -0.13729533553123474, 0.16710497438907623, -0.010154063813388348, -0.17509935796260834, -0.1615075021982193, -0.04802420362830162, 0.25217729806900024, -0.15830540657043457, 0.05238507315516472, 0.14598868787288666, 0.046681273728609085, 0.15648020803928375, -0.404548704624176, -0.06978638470172882, 0.49094170331954956, -0.01894371584057808, -0.06520017236471176, -0.05440162494778633, 0.24222372472286224, 0.1531125009059906, 0.024958867579698563, -0.3776169717311859, 0.024551309645175934, 0.3022920787334442, -0.025207510218024254, 0.07761704921722412, 0.30288180708885193, 0.4011400640010834, 0.09646791964769363, -0.09904174506664276, -0.28320884704589844, 0.16158698499202728, 0.09360720217227936, 0.07789618521928787, 0.02055577002465725 ]
https://github.com/huggingface/datasets/issues/879
boolq does not load
Could you check if it works on the master branch ? You can use `load_dataset("boolq", script_version="master")` to do so. We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
43
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False. Could you check if it works on the master branch ? You can use `load_dataset("boolq", script_version="master")` to do so. We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881
[ -0.31424370408058167, -0.1296663135290146, -0.13981486856937408, 0.22436583042144775, 0.08980418741703033, 0.0106662567704916, 0.42538681626319885, 0.30319744348526, 0.4457683861255646, -0.12459511309862137, -0.08600859344005585, 0.330985426902771, -0.18556813895702362, 0.48244741559028625, 0.041710421442985535, -0.02541426755487919, -0.1236407607793808, 0.08377556502819061, -0.013211757875978947, -0.06779202073812485, -0.43351686000823975, 0.3662601709365845, -0.4190509021282196, 0.17288102209568024, -0.1200268417596817, -0.27644580602645874, -0.011229954659938812, 0.2354564219713211, -0.3227617144584656, -0.340230792760849, 0.12919342517852783, 0.039989352226257324, 0.2798752784729004, 0.19758543372154236, -0.00010042171197710559, 0.047427576035261154, 0.4136010706424713, 0.09128167480230331, -0.2201257199048996, -0.2904612123966217, -0.17259334027767181, -0.3197641670703888, 0.17700687050819397, -0.17048458755016327, -0.07812997698783875, -0.05451535806059837, -0.05542892962694168, 0.07697319984436035, 0.4125244617462158, 0.46009936928749084, 0.3143284320831299, 0.07579854130744934, 0.11705716699361801, -0.19515137374401093, 0.19319261610507965, -0.16269806027412415, 0.15155252814292908, 0.20156969130039215, 0.04193715751171112, -0.2938947379589081, 0.15875208377838135, 0.26375865936279297, -0.1833396852016449, -0.24602867662906647, 0.012176088988780975, -0.20740245282649994, -0.10173852741718292, -0.3344743549823761, 0.23517084121704102, 0.01414512936025858, 0.5186156034469604, -0.12240980565547943, -0.27338218688964844, -0.056683965027332306, 0.14293795824050903, -0.1925472468137741, 0.189398393034935, 0.09149972349405289, 0.0534333810210228, -0.06353049725294113, 0.18509873747825623, -0.48960787057876587, -0.03764289990067482, -0.03542077913880348, -0.13839027285575867, 0.27597615122795105, -0.1215398907661438, 0.051884397864341736, 0.19128082692623138, -0.17118032276630402, 0.11334650963544846, 0.20802651345729828, -0.15228992700576782, 0.15849602222442627, -0.517992377281189, 0.03580505773425102, 0.15612804889678955, -0.027178924530744553, -0.03639867156744003, 0.1296272724866867, -0.1894538253545761, 0.018725134432315826, -0.09171900898218155, 0.20680953562259674, 0.004621418192982674, 0.5135238766670227, 0.38422104716300964, 0.2736549973487854, 0.15835772454738617, 0.10752894729375839, -0.22334781289100647, 0.03422906994819641, -0.5201331973075867, -0.3621056079864502, -0.1302109658718109, 0.24921715259552002, 0.23662787675857544, -0.08484694361686707, -0.353836327791214, -0.17399512231349945, -0.32246777415275574, -0.13475631177425385, 0.34326207637786865, 0.6987858414649963, 0.04301285371184349, -0.12656380236148834, 0.05251098796725273, 0.2696886658668518, -0.3483472168445587, -0.07061191648244858, -0.28774163126945496, 0.3017652928829193, -0.03071449138224125, -0.15547476708889008, 0.29760074615478516, -0.1689217984676361, 0.3525429368019104, 0.0606396347284317, -0.2498083859682083, -0.09909328818321228, 0.2741266191005707, -0.2546376883983612, -0.3732604682445526, 0.2511187195777893, 0.0047496589832007885, 0.015163111500442028, 0.2008352130651474, 0.23038507997989655, -0.041110873222351074, 0.20554311573505402, -0.2143671065568924, -0.2891755998134613, 0.04164493456482887, 0.3372690677642822, -0.022981103509664536, -0.27757567167282104, -0.14184485375881195, 0.1758437603712082, 0.11507409811019897, -0.1472824364900589, -0.2639818787574768, -0.327143132686615, -0.10467816889286041, -0.21856945753097534, 0.39932677149772644, 0.45461368560791016, -0.3941670060157776, -0.2644501328468323, -0.3861929476261139, -0.21174052357673645, 0.005800563842058182, 0.2955782115459442, -0.13708795607089996, 0.5168126821517944, -0.20740357041358948, 0.08613356202840805, 0.264697402715683, -0.2111937701702118, -0.18445056676864624, 0.19702595472335815, -0.014966350980103016, -0.034875109791755676, -0.2750909626483917, -0.04452814906835556, 0.12034166604280472, 0.1673649102449417, 0.13170622289180756, 0.14151345193386078, 0.2968444228172302, -0.2430078685283661, -0.14651980996131897, -0.12238762527704239, 0.07106394320726395, 0.34577977657318115, 0.23013025522232056, -0.05355305224657059, -0.058450739830732346, -0.41137468814849854, 0.06856784969568253, 0.15321531891822815, -0.299167275428772, 0.1951565146446228, 0.3404022455215454, -0.11517976969480515, 0.196804478764534, 0.02545403689146042, -0.3794718384742737, 0.15445245802402496, -0.2339850217103958, -0.03783377259969711, -0.06209656223654747, 0.15337631106376648, -0.32667800784111023, 0.0734999030828476, -0.1862199902534485, -0.052406247705221176, 0.1931237131357193, -0.1655137687921524, -0.056977760046720505, 0.0857943668961525, -0.3088473677635193, 0.2691083252429962, -0.02353767305612564, 0.1346352994441986, -0.21374058723449707, 0.10543198883533478, -0.14657124876976013, -0.09275206178426743, 0.2968965470790863, 0.2993907034397125, 0.19807428121566772, 0.029988955706357956, -0.02120034582912922, 0.24328869581222534, 0.12887714803218842, 0.10437469929456711, -0.04127274081110954, -0.5058262944221497, 0.1112552285194397, -0.03842379152774811, 0.3070509731769562, 0.13301290571689606, 0.07425760477781296, 0.08087393641471863, 0.09009424597024918, 0.2717496454715729, -0.08599074929952621, 0.19372613728046417, 0.14446809887886047, 0.1817195564508438, 0.24008625745773315, 0.029275033622980118, -0.006894427351653576, -0.12920209765434265, 0.48108813166618347, -0.04004419967532158, -0.02557036653161049, 0.028518909588456154, -0.14774173498153687, 0.0691421777009964, 0.4380705654621124, 0.10779520124197006, 0.1224580779671669, 0.026605304330587387, -0.12259268760681152, 0.12353425472974777, 0.1176418662071228, 0.15315482020378113, 0.27107807993888855, 0.20761537551879883, -0.4852927625179291, -0.10210233926773071, -0.04211936891078949, -0.2693489193916321, 0.17331098020076752, -0.19383591413497925, 0.0288222748786211, 0.20616132020950317, -0.06930699944496155, -0.12480208277702332, -0.18517203629016876, -0.22500480711460114, 0.0909520760178566, 0.27746349573135376, -0.19736617803573608, -0.06494847685098648, -0.08353541791439056, -0.3896835446357727, 0.1917286217212677, -0.10835713148117065, -0.03044523112475872, -0.35120776295661926, 0.12872111797332764, -0.029634768143296242, -0.0343707837164402, 0.2476261705160141, 0.06126447394490242, 0.31483012437820435, 0.1070157065987587, -0.08508282899856567, -0.13643158972263336, -0.2685339152812958, -0.22659912705421448, 0.13108468055725098, 0.18702036142349243, 0.08184891194105148, 0.2532466650009155, -0.09901420027017593, 0.0883716270327568, -0.05349056050181389, -0.22254878282546997, -0.08780573308467865, -0.09443217515945435, 0.33476483821868896, 0.11848366260528564, 0.06661172211170197, -0.05646247789263725, -0.2238020896911621, 0.352350115776062, -0.16339318454265594, -0.021188268437981606, 0.17259451746940613, 0.17168284952640533, -0.057861823588609695, -0.22050175070762634, -0.5058788657188416, -0.5898677110671997, -0.49117645621299744, 0.09636962413787842, 0.06363258510828018, 0.19667008519172668, 0.3625301122665405, -0.029489990323781967, 0.19606167078018188, 0.07129956781864166, -0.04950740188360214, 0.005585447885096073, -0.15990720689296722, 0.26207849383354187, -0.06519913673400879, -0.27832597494125366, 0.04343957453966141, -0.0880056768655777, 0.43292880058288574, -0.25399935245513916, -0.30814722180366516, 0.0036390512250363827, -0.06442714482545853, -0.09770183265209198, -0.062060654163360596, -0.1536533385515213, -0.1169777512550354, 0.06116193160414696, 0.013872158713638783, 0.066351018846035, -0.32576999068260193, 0.22716699540615082, 0.019183604046702385, 0.19687522947788239, -0.06557711213827133, 0.34696516394615173, -0.36505037546157837, 0.6071888208389282, 0.18263855576515198, 0.19847212731838226, 0.20669905841350555, 0.2602948546409607, 0.08824338018894196, 0.022589657455682755, -0.7111613750457764, 0.011996230110526085, 0.19723156094551086, -0.17378705739974976, 0.022320281714200974, -0.07429338246583939, 0.004897631239145994, -0.23215827345848083, -0.18119566142559052, -0.17401012778282166, -0.2393469363451004, -0.05550071597099304, -0.3643966317176819, 0.022895177826285362, -0.021846789866685867, 0.36738401651382446, -0.210863396525383, 0.0025237284135073423, 0.08582723140716553, 0.19720347225666046, 0.14641089737415314, -0.09420531988143921, -0.530360758304596, -0.5024213790893555, -0.3433583974838257, 0.24143339693546295, -0.26804959774017334, 0.23922115564346313, -0.13718223571777344, 0.020919766277074814, 0.10316560417413712, -0.11034764349460602, 0.4958159327507019, -0.13108491897583008, -0.11984989792108536, 0.3111148476600647, -0.08520318567752838, -0.2169421762228012, -0.15604454278945923, -0.21457445621490479, 0.24877284467220306, 0.0919610932469368, 0.4482046067714691, -0.25025975704193115, 0.018346207216382027, 0.014994236640632153, -0.18054580688476562, -0.2933082580566406, -0.49806761741638184, -0.43711310625076294, -0.1474030464887619, -0.3785991072654724, -0.06842706352472305, -0.24365289509296417, 0.2505199909210205, -0.23808802664279938, -0.01734073832631111, -0.04460795223712921, -0.2353481948375702, 0.1815386414527893, 0.16367731988430023, 0.5122847557067871, -0.19213557243347168, 0.09656836092472076, 0.04631645232439041, 0.0618036687374115, 0.11009138077497482, 0.38773319125175476, -0.17459136247634888, -0.2596474289894104, -0.03162575140595436, -0.01945151947438717, 0.29708388447761536, -0.10348479449748993, -0.2948686182498932, 0.3071790337562561, -0.0516144223511219, 0.11024937778711319, 0.025938495993614197, 0.014743717387318611, 0.25328564643859863, 0.1661938577890396, -0.04914317652583122, -0.416154682636261, 0.1546279489994049, -0.02642643451690674, 0.059389520436525345, 0.20633161067962646, -0.21293547749519348, -0.02973317913711071, 0.2763856053352356, -0.06480035185813904, 0.5007880926132202, -0.18125048279762268, -0.19337968528270721, 0.34079185128211975, 0.2174999713897705, 0.403896301984787, -0.166914165019989, 0.2915233075618744, -0.5527961850166321, -0.019656112417578697, 0.2265731692314148, -0.13747186958789825, -0.040273457765579224, -0.25862547755241394, -0.5010091662406921, 0.2584689259529114, -0.19388720393180847, 0.3548450469970703, 0.025168171152472496, 0.23960824310779572, -0.19910958409309387, 0.068602554500103, -0.2652856111526489, 0.19740067422389984, -0.11810239404439926, 0.3159298300743103, -0.17480064928531647, -0.06731472164392471, 0.33890581130981445, -0.12134182453155518, -0.09729843586683273, 0.39279669523239136, -0.1331140547990799, 0.249198779463768, 0.18692044913768768, -0.08594416081905365, 0.13711099326610565, 0.48024222254753113, 0.03609427437186241, 0.22734560072422028, -0.1351349651813507, 0.0657629519701004, -0.01932092383503914, -0.09433333575725555, -0.11217896640300751, 0.16035352647304535, 0.2917369604110718, -0.11767976731061935, -0.3513070344924927, 0.49825745820999146, -0.05396293103694916, 0.08089589327573776, -0.20774883031845093, 0.09667699038982391, -0.01973562128841877, -0.279284805059433, -0.05826517194509506, -0.07770644873380661, 0.08353351801633835, -0.11277393251657486, 0.19551227986812592, 0.15039610862731934, -0.0459568053483963, 0.28497254848480225, -0.10047951340675354, -0.2767525017261505, -0.03683273121714592, 0.16316521167755127, -0.02025935798883438, 0.26787447929382324, 0.7444612979888916, 0.31481868028640747, -0.04340742900967598, -0.40688931941986084, -0.11198483407497406, 0.10229530185461044, -0.0354899987578392, 0.23432044684886932, 0.20252732932567596, -0.09757453203201294, 0.2175716608762741, 0.07019314169883728, 0.03324772045016289, -0.04878702759742737, -0.07802523672580719, -0.49767881631851196, -0.2899363934993744, 0.5084164142608643, -0.23844243586063385, -0.07176150381565094, -0.02268308773636818, -0.02330079674720764, 0.025399573147296906, 0.17862409353256226, -0.4123269319534302, -0.004747377708554268, -0.5003228187561035, -0.13860130310058594, -0.1944635510444641, -0.29094207286834717, 0.13505207002162933, 0.18392840027809143, 0.25737735629081726, -0.0973939374089241, -0.12594342231750488, -0.28203749656677246, 0.027912314981222153, 0.01861208863556385, -0.05061643198132515, 0.13413289189338684, -0.03560986369848251, -0.21929317712783813, 0.02694302424788475, 0.12454719841480255, -0.019081994891166687, -0.1418265551328659, 0.04285541921854019, 0.23098532855510712, 0.06642148643732071, 0.14982324838638306, -0.10485836118459702, 0.39251068234443665, -0.1542082577943802, -0.10917706787586212, 0.08928191661834717, 0.0404636450111866, 0.14543168246746063, 0.004115916322916746, -0.0036401196848601103, -0.05702286958694458, 0.07639944553375244, 0.07887478917837143, 0.15677590668201447, -0.20101036131381989, 0.2653379738330841, -0.1736508309841156, 0.050991445779800415, 0.6181185841560364, -0.22273126244544983, 0.11171533167362213, 0.09685038030147552, 0.3101873993873596, -0.22786465287208557, 0.19033297896385193, -0.2262129932641983, -0.02693580463528633, 0.004427649546414614, 0.1368972361087799, -0.2643558979034424, -0.18580353260040283, 0.19441960752010345, 0.18683786690235138, 0.23788383603096008, 0.12075325846672058, 0.0021418221294879913, 0.282804936170578, -0.21377505362033844, -0.16572074592113495, 0.18048448860645294, 0.18042196333408356, 0.004253933671861887, 0.36043745279312134, -0.27135610580444336, -0.044931475073099136, 0.05942516028881073, 0.25073739886283875, 0.19731655716896057, -0.39613595604896545, -0.1421322375535965, 0.3903942406177521, -0.007781106047332287, -0.2976875901222229, -0.26082783937454224, 0.4449038505554199, -0.104410320520401, -0.05675722658634186, -0.11783592402935028, 0.13538098335266113, -0.3331623375415802, -0.09494414925575256, -0.5158829092979431, -0.09019411355257034, -0.045439328998327255, -0.13128861784934998, 0.025201644748449326, 0.042016252875328064, -0.11481423676013947, 0.07308041304349899, -0.1637791246175766, -0.3743656277656555, 0.2009001076221466, 0.25306951999664307, -0.243772491812706, -0.115078404545784, 0.39142879843711853, 0.15331944823265076, 0.3194284737110138, 0.19700521230697632, 0.08292855322360992, 0.3079623281955719, 0.5380838513374329, -0.3283621072769165, -0.0000052483869694697205, 0.01990870200097561, -0.13135755062103271, 0.0346752367913723, 0.3137902021408081, 0.21487988531589508, 0.3973918855190277, 0.2980225086212158, 0.24294288456439972, -0.17194019258022308, 0.19439879059791565, 0.0471305325627327, 0.16509267687797546, 0.004055693279951811, 0.6533148288726807, -0.051562946289777756, 0.010702834464609623, -0.20286211371421814, -0.04924894869327545, -0.5103917121887207, -0.08797316998243332, 0.29993128776550293, 0.2265714854001999, 0.05600643903017044, -0.2306608408689499, 0.13659992814064026, -0.32440975308418274, 0.4204716682434082, 0.4334076941013336, 0.46494296193122864, -0.41408297419548035, 0.14577078819274902, -0.4007865786552429, 0.04661446809768677, 0.06586012244224548, -0.0020459627266973257, -0.10973818600177765, 0.031468238681554794, -0.04250212758779526, -0.08670993894338608, 0.13193996250629425, 0.039900269359350204, 0.22278974950313568, -0.17746542394161224, -0.4814169108867645, 0.13286328315734863, 0.046192966401576996, 0.16846366226673126, 0.024455560371279716, -0.13321588933467865, 0.19251643121242523, -0.42588070034980774, 0.09932909905910492, -0.03769570589065552, -0.25573715567588806, 0.18412119150161743, -0.24341166019439697, 0.2420443445444107, 0.002827636431902647, 0.2686466872692108, 0.010274446569383144, -0.024136871099472046, -0.1938566416501999, -0.328902930021286, -0.14308586716651917, 0.012500462122261524, 0.31627923250198364, 0.20124243199825287, -0.04066761955618858, 0.21811901032924652, -0.13729533553123474, 0.16710497438907623, -0.010154063813388348, -0.17509935796260834, -0.1615075021982193, -0.04802420362830162, 0.25217729806900024, -0.15830540657043457, 0.05238507315516472, 0.14598868787288666, 0.046681273728609085, 0.15648020803928375, -0.404548704624176, -0.06978638470172882, 0.49094170331954956, -0.01894371584057808, -0.06520017236471176, -0.05440162494778633, 0.24222372472286224, 0.1531125009059906, 0.024958867579698563, -0.3776169717311859, 0.024551309645175934, 0.3022920787334442, -0.025207510218024254, 0.07761704921722412, 0.30288180708885193, 0.4011400640010834, 0.09646791964769363, -0.09904174506664276, -0.28320884704589844, 0.16158698499202728, 0.09360720217227936, 0.07789618521928787, 0.02055577002465725 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> neat feature I dint get these clearly, can you please elaborate like how to work on these
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
18
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load > neat feature I dint get these clearly, can you please elaborate like how to work on these
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
18
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no?
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Thanks thomwolf and julien-c I'm still confusion on what you guys said, I have solved the problem as follows: 1. read the csv file using pandas from s3 2. Convert to dictionary key as column name and values as list column data 3. convert it to Dataset using `from datasets import Dataset` `train_dataset = Dataset.from_dict(train_dict)`
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
55
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Thanks thomwolf and julien-c I'm still confusion on what you guys said, I have solved the problem as follows: 1. read the csv file using pandas from s3 2. Convert to dictionary key as column name and values as list column data 3. convert it to Dataset using `from datasets import Dataset` `train_dataset = Dataset.from_dict(train_dict)`
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
We were brainstorming around your use-case. Let's keep the issue open for now, I think this is an interesting question to think about.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
23
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load We were brainstorming around your use-case. Let's keep the issue open for now, I think this is an interesting question to think about.
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> We were brainstorming around your use-case. > > Let's keep the issue open for now, I think this is an interesting question to think about. Sure thomwolf, Thanks for your concern
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
32
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load > We were brainstorming around your use-case. > > Let's keep the issue open for now, I think this is an interesting question to think about. Sure thomwolf, Thanks for your concern
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
I agree it would be cool to have that feature. Also that's good to know that pandas supports this. For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
45
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load I agree it would be cool to have that feature. Also that's good to know that pandas supports this. For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Any updates on this issue? I face a similar issue. I have many parquet files in S3 and I would like to train on them. To be honest I even face issues with only getting the last layer embedding out of them.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
42
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Any updates on this issue? I face a similar issue. I have many parquet files in S3 and I would like to train on them. To be honest I even face issues with only getting the last layer embedding out of them.
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Hi dorlavie, You can find one solution that i have mentioned above, that can help you. And there is one more solution also which is downloading files locally
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
28
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Hi dorlavie, You can find one solution that i have mentioned above, that can help you. And there is one more solution also which is downloading files locally
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> Hi dorlavie, > You can find one solution that i have mentioned above, that can help you. > And there is one more solution also which is downloading files locally mahesh1amour, thanks for the fast reply Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB). In addition, due to security concerns I am not allowed to save the data locally
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
68
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load > Hi dorlavie, > You can find one solution that i have mentioned above, that can help you. > And there is one more solution also which is downloading files locally mahesh1amour, thanks for the fast reply Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB). In addition, due to security concerns I am not allowed to save the data locally
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset` boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html) ```python import boto3 s3 = boto3.client('s3') s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME') ``` datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html) ```python from datasets import load_dataset dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv']) ```
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
46
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load @dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset` boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html) ```python import boto3 s3 = boto3.client('s3') s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME') ``` datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html) ```python from datasets import load_dataset dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv']) ```
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Thanks @philschmid for the suggestion. As I mentioned in the previous comment, due to security issues I can not save the data locally. I need to read it from S3 and process it directly. I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
61
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Thanks @philschmid for the suggestion. As I mentioned in the previous comment, due to security issues I can not save the data locally. I need to read it from S3 and process it directly. I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases?
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ? Or is it the use of the `boto3` library that is not allowed in your case ?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
37
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ? Or is it the use of the `boto3` library that is not allowed in your case ?
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@lhoestq yes you are correct. I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3. I am allowed to save the output of any model locally. It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
47
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load @lhoestq yes you are correct. I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3. I am allowed to save the output of any model locally. It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk **sagemaker start training job** ```python pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'}) ``` **in the train.py script** ```python from datasets import load_from_disk train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN']) ``` I have created an example of how to use transformers and datasets with sagemaker. https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3 The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
127
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load @dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk **sagemaker start training job** ```python pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'}) ``` **in the train.py script** ```python from datasets import load_from_disk train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN']) ``` I have created an example of how to use transformers and datasets with sagemaker. https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3 The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
[ -0.2508123517036438, -0.24077585339546204, -0.05315203592181206, 0.5038028359413147, 0.24267713725566864, 0.037979625165462494, 0.42341020703315735, 0.23022307455539703, 0.05345631390810013, 0.01227165199816227, -0.02131924033164978, 0.38559630513191223, -0.23641817271709442, 0.4087209403514862, -0.07339145243167877, 0.1519465148448944, 0.0036897161044180393, 0.11744148284196854, 0.24157485365867615, 0.16631223261356354, -0.042883288115262985, 0.2773870527744293, -0.05713614448904991, 0.10906578600406647, -0.18401886522769928, 0.013616897165775299, 0.014627896249294281, 0.35061880946159363, -0.07507679611444473, -0.508487343788147, 0.01081719808280468, -0.019077010452747345, 0.4783020317554474, 0.38333550095558167, -0.00011392125452402979, -0.028652740642428398, 0.3157629072666168, 0.045018889009952545, -0.42292144894599915, -0.38482150435447693, -0.5591979026794434, 0.1110939010977745, 0.15265841782093048, -0.03746155649423599, -0.35072454810142517, -0.06534089893102646, -0.3116801977157593, -0.2656855285167694, 0.4028451144695282, 0.6623784899711609, 0.17820391058921814, 0.1914706826210022, -0.07310477644205093, -0.3078444004058838, 0.2821199297904968, 0.020372778177261353, 0.001827283762395382, 0.2220328450202942, -0.27150723338127136, 0.1779985874891281, 0.2951642572879791, 0.2709996700286865, -0.4019230008125305, 0.11394522339105606, 0.536594569683075, 0.03048735298216343, 0.3513379991054535, 0.07847274094820023, 0.1274641454219818, 0.17057016491889954, 0.580099880695343, -0.1361253559589386, -0.45439866185188293, -0.18491844832897186, -0.21418294310569763, -0.28249239921569824, 0.19152647256851196, 0.08946355432271957, 0.03748943656682968, 0.028242936357855797, -0.046469662338495255, -0.04667987301945686, -0.09882097691297531, 0.24660372734069824, 0.03392036259174347, 0.4405601918697357, -0.2780041992664337, 0.06335610151290894, 0.2615092396736145, 0.07033845037221909, 0.34218713641166687, -0.11327245086431503, 0.018123222514986992, 0.046664461493492126, -0.2519854009151459, 0.1674017608165741, -0.015359225682914257, 0.2122863531112671, -0.06997973471879959, 0.19386352598667145, 0.3034304082393646, -0.07399244606494904, 0.39966413378715515, 0.2401908040046692, 0.38833072781562805, -0.16802968084812164, 0.09138302505016327, 0.00038863273221068084, -0.09941120445728302, 0.4869210720062256, 0.07859824597835541, -0.193486288189888, -0.3133125603199005, -0.5367282032966614, 0.12409597635269165, 0.2688182592391968, 0.3971949815750122, -0.3510352671146393, -0.26587754487991333, -0.08602000027894974, -0.11921301484107971, -0.19657698273658752, 0.26948273181915283, 0.4972228705883026, -0.3471308648586273, -0.11398603767156601, -0.11797160655260086, 0.21108844876289368, -0.21435391902923584, 0.08540395647287369, -0.19831837713718414, 0.24345354735851288, -0.3190564215183258, 0.022750571370124817, 0.14867912232875824, -0.5799322724342346, 0.516852617263794, -0.07386434823274612, 0.005125320516526699, -0.34400901198387146, 0.14929023385047913, -0.21646510064601898, 0.17776091396808624, 0.18144027888774872, 0.1935323178768158, 0.25707536935806274, -0.053781718015670776, -0.07601596415042877, -0.18203336000442505, 0.08557575941085815, -0.18490618467330933, -0.47977152466773987, 0.04127863049507141, 0.22406265139579773, -0.26578280329704285, -0.16027185320854187, -0.05942172929644585, -0.18594948947429657, 0.2781679928302765, -0.09843111038208008, -0.3887004256248474, 0.04533284530043602, -0.11810208857059479, -0.2207811176776886, 0.4690742790699005, 0.31921684741973877, -0.35374125838279724, 0.10859649628400803, -0.47165200114250183, 0.11384626477956772, 0.0835108757019043, 0.21051724255084991, -0.3659236431121826, 0.4489595293998718, -0.3048425614833832, 0.13289394974708557, 0.5610046982765198, -0.2565933167934418, 0.006054080557078123, 0.08536121249198914, -0.04215054586529732, -0.1606784611940384, 0.13422055542469025, -0.0630413219332695, -0.13407112658023834, -0.10856460779905319, 0.016782158985733986, 0.3441392183303833, 0.038288574665784836, 0.038852933794260025, -0.15669913589954376, -0.02476918138563633, 0.12574104964733124, 0.2443980872631073, 0.11008301377296448, -0.022054394707083702, -0.03737039864063263, -0.19640256464481354, -0.05566796287894249, -0.11840027570724487, -0.043488629162311554, 0.46798020601272583, 0.27330708503723145, 0.30110964179039, -0.0028266413137316704, 0.15164974331855774, -0.27425694465637207, 0.13330328464508057, 0.04489481821656227, -0.27727168798446655, -0.06685946136713028, 0.010664567351341248, -0.2895236313343048, 0.0034120569471269846, -0.45207467675209045, 0.09890705347061157, 0.1053081527352333, 0.313804030418396, 0.23262767493724823, -0.0971175953745842, -0.1190226674079895, -0.3059861361980438, 0.33053648471832275, -0.015123347751796246, -0.30880823731422424, 0.11353131383657455, -0.4051395058631897, -0.05489615350961685, 0.0869036465883255, 0.04399274289608002, 0.1716848611831665, 0.11763525754213333, 0.015081849880516529, 0.17876999080181122, 0.12436060607433319, 0.22744950652122498, -0.2144688218832016, 0.15621058642864227, -0.11996525526046753, 0.030691877007484436, 0.17973566055297852, -0.13345010578632355, 0.1356184482574463, 0.08357411623001099, -0.044440142810344696, 0.477192223072052, -0.02671038545668125, 0.18943867087364197, 0.13970716297626495, 0.015092464163899422, 0.26960989832878113, -0.16948793828487396, -0.020414888858795166, -0.13537119328975677, 0.04767541587352753, -0.1200013980269432, 0.11466863751411438, 0.07627566903829575, -0.07292750477790833, -0.1295502930879593, 0.38346007466316223, 0.09598356485366821, -0.0108040077611804, -0.269636869430542, -0.22965864837169647, -0.14496952295303345, 0.06536217033863068, 0.4955294132232666, 0.3665240406990051, 0.22105877101421356, 0.09654667228460312, -0.035579752177000046, -0.05398065596818924, -0.18552199006080627, 0.2379353642463684, 0.42375826835632324, 0.4380975067615509, 0.3556295335292816, -0.37812820076942444, -0.07472339272499084, -0.24020704627037048, -0.16073410212993622, 0.1642102152109146, 0.2822509706020355, -0.400240421295166, 0.18900397419929504, -0.0598929263651371, -0.16963954269886017, -0.2982717454433441, -0.3548646867275238, -0.10320303589105606, -0.2554676830768585, -0.11922687292098999, 0.27691003680229187, -0.26685553789138794, -0.02729078195989132, 0.0960368737578392, 0.012836320325732231, -0.07400573790073395, -0.05529942363500595, -0.34183892607688904, -0.24718013405799866, -0.17040467262268066, 0.05501198768615723, 0.2183094173669815, 0.09588564187288284, 0.265896201133728, -0.18654926121234894, 0.10830072313547134, -0.4633403718471527, -0.0825941413640976, -0.017645832151174545, -0.008096206933259964, 0.30249565839767456, 0.27422913908958435, 0.08020821958780289, 0.2997989356517792, -0.24657905101776123, 0.4653750956058502, -0.01209848653525114, 0.02043500542640686, 0.23647531867027283, -0.021339179947972298, -0.1121436208486557, -0.03339564427733421, -0.380959689617157, 0.06997234374284744, -0.4534810185432434, -0.37556666135787964, 0.01129195187240839, 0.14405296742916107, 0.27534475922584534, 0.332894891500473, 0.2299247831106186, -0.20995710790157318, 0.3361964225769043, -0.2096320390701294, -0.2037045657634735, 0.12677884101867676, -0.2523747384548187, -0.26398029923439026, 0.3304710388183594, -0.0450141616165638, 0.8056796193122864, -0.10353224724531174, -0.2581111490726471, -0.028182264417409897, 0.05415448918938637, -0.31354761123657227, -0.14228057861328125, -0.24673902988433838, 0.30801403522491455, 0.2088041752576828, -0.08564653992652893, -0.007817595265805721, -0.32584840059280396, 0.09111154079437256, -0.21481910347938538, 0.21225236356258392, -0.20177623629570007, 0.8904485702514648, -0.005194277036935091, 0.44290873408317566, 0.14702212810516357, -0.21184666454792023, 0.4529937207698822, -0.10638076066970825, 0.18244612216949463, -0.10482355952262878, -0.2602478265762329, -0.11808334290981293, 0.16645333170890808, -0.29006490111351013, 0.1482962667942047, -0.2593998908996582, -0.06323497742414474, -0.294541597366333, 0.06319397687911987, -0.3335378170013428, -0.21664035320281982, 0.010893254540860653, -0.26459938287734985, 0.13347791135311127, -0.1084316223859787, 0.03714049980044365, -0.05224750190973282, 0.17822813987731934, 0.1964566707611084, 0.2740265727043152, 0.1798410564661026, -0.03609476611018181, -0.2892719507217407, -0.02285691536962986, -0.3024628460407257, 0.3309323191642761, -0.04492918401956558, 0.14456067979335785, -0.1725991666316986, -0.22848063707351685, 0.10859179496765137, -0.21206337213516235, 0.5687649846076965, -0.28860777616500854, 0.07599002867937088, 0.2566807270050049, -0.18740668892860413, -0.4711454510688782, -0.26581546664237976, -0.06750299781560898, 0.24600063264369965, 0.02893855795264244, 0.40878060460090637, -0.1191488653421402, -0.4835369288921356, 0.1473180502653122, -0.05674191564321518, -0.08621883392333984, -0.20473510026931763, -0.34796541929244995, -0.12316655367612839, -0.38239142298698425, -0.07729631662368774, -0.06978614628314972, 0.3471003472805023, 0.09936118125915527, -0.20500598847866058, 0.054041698575019836, 0.08447512984275818, 0.026173865422606468, -0.04633666202425957, 0.47267207503318787, 0.03306068107485771, 0.2310323268175125, 0.27234527468681335, 0.37697678804397583, 0.10945414751768112, 0.3990892469882965, 0.20310190320014954, -0.46864140033721924, -0.1039532944560051, 0.030713684856891632, 0.4628864824771881, -0.02348087914288044, -0.1841692179441452, 0.10565736889839172, 0.14306503534317017, 0.1544756442308426, -0.16916996240615845, 0.10934098809957504, 0.40401116013526917, 0.043530676513910294, -0.3053804337978363, -0.5429382920265198, -0.013674812391400337, 0.08267633616924286, 0.09192303568124771, -0.06263139843940735, -0.3203946352005005, -0.20804142951965332, 0.26093432307243347, 0.4015890061855316, 0.6901719570159912, -0.07239136099815369, 0.29669004678726196, 0.5587424039840698, 0.091060109436512, 0.0016883985372260213, 0.27744242548942566, -0.10427061468362808, -0.513931930065155, 0.19549034535884857, 0.0833374559879303, -0.18157586455345154, -0.009392020292580128, 0.23393352329730988, -0.1757303774356842, 0.20524370670318604, -0.21967840194702148, 0.09337573498487473, -0.17336434125900269, 0.1602146476507187, -0.16883450746536255, -0.05021024867892265, -0.12187584489583969, 0.04973205551505089, -0.0692729502916336, 0.08205097168684006, -0.10364146530628204, -0.20974096655845642, 0.03377455845475197, -0.23093976080417633, 0.07481484115123749, 0.27534350752830505, 0.008100297302007675, 0.03432643413543701, -0.2805507481098175, -0.1951703429222107, 0.12133742868900299, 0.24472060799598694, 0.31641000509262085, 0.035131435841321945, -0.08934478461742401, 0.1010996550321579, -0.36822912096977234, -0.27635708451271057, -0.26085832715034485, -0.09564278274774551, 0.1849866360425949, -0.21080227196216583, -0.049981050193309784, 0.12406258285045624, -0.061371397227048874, -0.37628671526908875, -0.03358462452888489, -0.03504534810781479, 0.27548766136169434, -0.43170255422592163, -0.2545206844806671, -0.13191282749176025, -0.11611331254243851, -0.19192035496234894, 0.1608152538537979, 0.2287702113389969, -0.12014244496822357, 0.015218384563922882, -0.15043146908283234, -0.2745186388492584, 0.05840279534459114, 0.5248114466667175, -0.10167934000492096, 0.15216974914073944, 0.6307945847511292, 0.07103478908538818, -0.11384967714548111, -0.2894233763217926, -0.299648255109787, 0.018356792628765106, -0.29094380140304565, 0.1833905428647995, 0.24349476397037506, -0.06892102211713791, 0.24410222470760345, 0.3077547252178192, 0.17140524089336395, -0.09898371249437332, -0.05082643777132034, -0.5483644008636475, -0.028405411168932915, 0.04740867391228676, -0.15348821878433228, 0.36200425028800964, 0.1767360121011734, -0.3220781683921814, -0.08176019042730331, -0.17704379558563232, -0.29933011531829834, 0.0011039981618523598, -0.11980102211236954, 0.2405625730752945, -0.21579480171203613, -0.27803704142570496, 0.21135690808296204, 0.06209738552570343, 0.1622253656387329, -0.35582053661346436, -0.07771089673042297, -0.2533760666847229, -0.06813248246908188, 0.12217020988464355, 0.14418238401412964, 0.009542269632220268, 0.133641317486763, -0.14447623491287231, -0.33204367756843567, -0.13068337738513947, 0.06708995997905731, 0.1010914221405983, -0.003990592435002327, 0.28405630588531494, 0.09248101711273193, 0.021907776594161987, -0.1482173055410385, -0.1065019741654396, -0.19945460557937622, -0.17430131137371063, 0.008558843284845352, 0.20157209038734436, -0.1814141422510147, -0.21467243134975433, 0.04384169355034828, 0.003066619858145714, 0.07939716428518295, 0.07924085855484009, 0.3128156363964081, -0.4647558629512787, 0.05156727880239487, 0.16024866700172424, 0.5055215954780579, 0.39061540365219116, -0.07990369200706482, 0.21403570473194122, 0.31187307834625244, 0.23815800249576569, -0.11352482438087463, -0.2740481495857239, -0.19607160985469818, -0.23409955203533173, -0.006974395830184221, -0.06986615806818008, -0.06775607913732529, 0.05826183781027794, 0.20018184185028076, -0.04572822153568268, 0.1784249246120453, 0.14799942076206207, 0.12701857089996338, 0.2794734239578247, -0.32117408514022827, 0.04061462730169296, 0.28040358424186707, 0.1732439547777176, 0.14498330652713776, 0.3777577877044678, -0.1555621325969696, 0.1443803459405899, -0.2752646505832672, 0.19547295570373535, -0.12804119288921356, -0.6779025793075562, 0.10114549100399017, 0.041398726403713226, -0.09672266244888306, -0.0895925909280777, -0.13703227043151855, 0.32861027121543884, 0.031061293557286263, 0.06254489719867706, -0.36785224080085754, 0.08398853987455368, -0.14665265381336212, -0.08804589509963989, -0.34064173698425293, 0.007626811508089304, -0.032551366835832596, 0.1551518589258194, 0.1516616940498352, -0.03498738259077072, -0.08578809350728989, 0.0875559076666832, -0.04003489017486572, -0.043663594871759415, 0.07095508277416229, 0.39618781208992004, -0.2319025695323944, -0.40200352668762207, 0.18865370750427246, -0.12193799018859863, -0.07899967581033707, 0.00034417700953781605, 0.07150515913963318, 0.5281404256820679, 0.3324435353279114, 0.1592506319284439, 0.004360869526863098, -0.04787854477763176, -0.1837081015110016, -0.053013768047094345, 0.059683963656425476, 0.16823235154151917, 0.3104557394981384, 0.46307045221328735, 0.17038270831108093, -0.14674095809459686, 0.12417149543762207, -0.14532621204853058, 0.32080769538879395, -0.030400648713111877, 0.17152033746242523, 0.17503507435321808, -0.24030408263206482, -0.20717652142047882, 0.21401996910572052, -0.5623784065246582, -0.24554474651813507, 0.37041333317756653, 0.07338857650756836, 0.05771315470337868, -0.11649630963802338, 0.0590369813144207, 0.16942785680294037, 0.5225656032562256, 0.19724109768867493, 0.30793192982673645, -0.4567180871963501, -0.0008990046917460859, -0.5817422270774841, -0.012712881900370121, 0.16453276574611664, 0.27163228392601013, 0.15987320244312286, 0.18563216924667358, -0.24485887587070465, -0.07578214257955551, 0.24620383977890015, 0.29718270897865295, 0.1082034707069397, 0.2338162213563919, -0.15741275250911713, -0.13475298881530762, 0.15149764716625214, -0.12748834490776062, 0.08999023586511612, -0.1791542023420334, 0.07476437836885452, -0.047214802354574203, 0.03622938692569733, -0.27515003085136414, 0.023700928315520287, 0.0012946821516379714, -0.16671891510486603, 0.5104469060897827, -0.2578534185886383, 0.4464893341064453, -0.032104216516017914, 0.10998201370239258, -0.46616828441619873, 0.04895126074552536, -0.14958493411540985, 0.11494464427232742, 0.07384185492992401, 0.2687284052371979, -0.025266865268349648, 0.38490548729896545, -0.4096687436103821, 0.2747509777545929, -0.16085609793663025, -0.3426372706890106, -0.04149268567562103, 0.11783400923013687, 0.07679344713687897, 0.3193472921848297, 0.0821506530046463, -0.03794265538454056, 0.034878671169281006, 0.0631607249379158, -0.5235249996185303, -0.21494482457637787, 0.6017237305641174, -0.43991944193840027, -0.048564184457063675, -0.0070461793802678585, 0.22706884145736694, 0.11177464574575424, -0.14164403080940247, -0.41971680521965027, 0.10787154734134674, 0.2636764645576477, 0.10843643546104431, -0.04471749812364578, 0.33933940529823303, 0.2886272370815277, 0.1458839625120163, -0.09167230129241943, 0.19398321211338043, 0.1492437720298767, -0.13217724859714508, -0.1302175372838974, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/877
DataLoader(datasets) become more and more slowly within iterations
Hi ! Thanks for reporting. Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) It would be nice to know whether it comes from the dataloader or not
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot!
38
DataLoader(datasets) become more and more slowly within iterations Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot! Hi ! Thanks for reporting. Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) It would be nice to know whether it comes from the dataloader or not
[ -0.3241675794124603, -0.06809350103139877, -0.12075755000114441, 0.237543523311615, -0.04798700660467148, -0.05512576922774315, 0.4634111523628235, -0.010447201319038868, 0.2775009870529175, 0.13589203357696533, -0.05749458819627762, 0.44069743156433105, -0.037949755787849426, -0.033811941742897034, -0.2684333026409149, 0.012352890335023403, -0.0058119758032262325, 0.18658165633678436, -0.4923050105571747, -0.12448865175247192, 0.032785527408123016, 0.01309740636497736, -0.2001437246799469, -0.22243326902389526, -0.10729187726974487, -0.12398392707109451, 0.13693828880786896, 0.1350969523191452, -0.10981105268001556, -0.42476722598075867, 0.0017358852783218026, 0.19508762657642365, 0.3713124096393585, 0.6450660824775696, -0.00011759154585888609, 0.05950586870312691, 0.031834762543439865, 0.2282906025648117, -0.26630017161369324, 0.4214518666267395, 0.04679799824953079, -0.44103944301605225, 0.1777760088443756, -0.150221586227417, 0.3183619976043701, -0.16722941398620605, -0.36222660541534424, -0.12706764042377472, 0.03635978326201439, -0.05228375270962715, 0.11143331229686737, 0.5388420820236206, -0.5062482357025146, 0.014491954818367958, -0.04277962073683739, -0.22505812346935272, -0.171298086643219, 0.35825613141059875, 0.7214534282684326, 0.0632605329155922, -0.48669013381004333, 0.26705238223075867, 0.06604111194610596, 0.32117077708244324, 0.1695445477962494, 0.15094918012619019, 0.40484508872032166, -0.2836862802505493, -0.06200005114078522, 0.30783531069755554, 0.73811274766922, -0.03541744872927666, -0.29901668429374695, -0.09106385707855225, 0.010506737045943737, -0.19039638340473175, 0.06546349078416824, -0.3881111145019531, -0.35748982429504395, -0.1338215321302414, -0.3717269003391266, -0.026922065764665604, 0.06790971010923386, -0.04724226891994476, -0.11196860671043396, -0.06574034690856934, 0.04553540423512459, -0.13034532964229584, 0.18957772850990295, -0.2349325567483902, 0.29860919713974, -0.19546657800674438, 0.17114411294460297, 0.14892296493053436, -0.6994069814682007, -0.0902780070900917, -0.28484073281288147, 0.05218213051557541, -0.08911550045013428, -0.018170129507780075, 0.3548935353755951, 0.11027242243289948, -0.06674764305353165, 0.060079917311668396, 0.1825917512178421, 0.11781642585992813, 0.0049758898094296455, -0.2424708604812622, 0.11380058526992798, 0.09382013976573944, -0.19686675071716309, 0.05885402858257294, -0.22029778361320496, -0.31057339906692505, 0.6017611026763916, -0.13016076385974884, -0.1296999305486679, 0.11861767619848251, -0.2490781992673874, -0.17236919701099396, 0.12757979333400726, -0.23051764070987701, 0.3537153899669647, 0.24711288511753082, -0.1536795198917389, 0.4567594528198242, -0.23972663283348083, -0.05037686973810196, -0.25768229365348816, -0.43240076303482056, -0.11311787366867065, -0.24187815189361572, -0.16231229901313782, 0.31754398345947266, -0.037221454083919525, -0.2119467556476593, 0.07735316455364227, 0.44992339611053467, 0.2396332174539566, 0.011467967182397842, 0.06375008076429367, -0.2298676073551178, -0.18952782452106476, -0.0006903748144395649, -0.09460979700088501, 0.3075326681137085, 0.0369766429066658, 0.11283637583255768, -0.06899800151586533, 0.20156681537628174, -0.6437557339668274, 0.07854976505041122, -0.03944424167275429, 0.13801273703575134, 0.20789872109889984, -0.1920040398836136, -0.27479735016822815, -0.06468306481838226, -0.17526789009571075, 0.08440019190311432, 0.057530272752046585, -0.36100539565086365, -0.05839534476399422, -0.08916860818862915, -0.012256578542292118, 0.3467792272567749, -0.23515333235263824, 0.020275631919503212, -0.179660826921463, 0.03479558229446411, 0.44474145770072937, 0.4324100911617279, -0.34429991245269775, 0.6609278321266174, -0.4009306728839874, -0.2704448699951172, 0.48175549507141113, -0.21737438440322876, -0.43202081322669983, 0.7465633153915405, -0.15813091397285461, 0.26181381940841675, 0.31242844462394714, 0.40266406536102295, 0.4636732339859009, -0.27875155210494995, 0.24230961501598358, 0.19207097589969635, 0.19545204937458038, 0.21776476502418518, -0.14720311760902405, 0.13826687633991241, 0.23421397805213928, 0.21699091792106628, -0.08548276871442795, 0.34672829508781433, -0.0216150414198637, -0.20398904383182526, 0.4737635552883148, -0.2093392312526703, -0.07136798650026321, 0.36196252703666687, -0.15184062719345093, -0.15508897602558136, 0.14037948846817017, 0.1130165085196495, -0.5651842355728149, 0.21888014674186707, 0.017456647008657455, -0.24433796107769012, 0.312285453081131, 0.11911503225564957, -0.17051532864570618, 0.0810035690665245, -0.2775762677192688, 0.06339163333177567, 0.03831976652145386, 0.1155603677034378, -0.10989648103713989, -0.33753156661987305, 0.005483950488269329, 0.3593549132347107, -0.05421286076307297, 0.07246450334787369, 0.11106326431035995, 0.2941329777240753, 0.4734764099121094, -0.13572843372821808, 0.2266165167093277, -0.3497348129749298, -0.002291630720719695, -0.1050766110420227, -0.13632291555404663, 0.25493815541267395, 0.25484490394592285, 0.4663395583629608, 0.45704641938209534, 0.08390549570322037, 0.19686239957809448, 0.09204300493001938, 0.151091068983078, -0.11825963854789734, 0.22993505001068115, -0.1504812240600586, 0.327210932970047, 0.3399004340171814, -0.4314763844013214, 0.30466514825820923, -0.15575212240219116, -0.27258729934692383, 0.07484012842178345, 0.012878132052719593, -0.09948991984128952, 0.36360856890678406, 0.41378799080848694, 0.1891224980354309, 0.5586001873016357, 0.21355050802230835, -0.1636326164007187, 0.12998081743717194, 0.08290072530508041, 0.08679264783859253, -0.2338923215866089, 0.17535202205181122, -0.2699447572231293, -0.005141782574355602, -0.19180022180080414, -0.019730398431420326, 0.4462369680404663, 0.03285016119480133, 0.18072478473186493, -0.19301238656044006, 0.2182897925376892, -0.14759662747383118, -0.019637154415249825, 0.20656493306159973, 0.273713082075119, 0.40082719922065735, -0.029416508972644806, -0.08975810557603836, -0.316469669342041, -0.2832607626914978, 0.0854964554309845, 0.36030668020248413, -0.09956750273704529, 0.20977714657783508, -0.25020304322242737, 0.19539552927017212, -0.1894836127758026, -0.3557632565498352, -0.1991950124502182, -0.26041749119758606, -0.19258858263492584, 0.07874426245689392, 0.2964644730091095, -0.00978629570454359, 0.10028278827667236, -0.019254721701145172, 0.23097962141036987, 0.07351858913898468, -0.1692907214164734, 0.032754216343164444, -0.0956837609410286, -0.019179783761501312, 0.2025860697031021, -0.17797791957855225, 0.06359707564115524, -0.093472421169281, 0.18409106135368347, -0.3834208548069, 0.1968766450881958, -0.1433962881565094, 0.044530998915433884, 0.16536074876785278, -0.02526179701089859, 0.3253195285797119, -0.021857382729649544, -0.10167941451072693, 0.11566513031721115, -0.13829316198825836, -0.03162673860788345, -0.024584978818893433, -0.19355273246765137, 0.11500024795532227, 0.3658196032047272, 0.07103951275348663, -0.27027541399002075, -0.10066511482000351, -0.22871673107147217, 0.03875172138214111, 0.13283811509609222, -0.152526393532753, -0.11260230839252472, 0.07761554419994354, 0.25645527243614197, 0.026457220315933228, -0.023487772792577744, -0.7568576335906982, 0.40948450565338135, 0.09237945079803467, 0.048086412250995636, -0.25903084874153137, -0.11156810820102692, 0.2096380889415741, 0.25769513845443726, -0.4277707636356354, 0.023392071947455406, -0.131412073969841, 0.2236769050359726, -0.19261719286441803, 0.1394822746515274, -0.1026298999786377, -0.16370443999767303, -0.06422891467809677, 0.07135890424251556, -0.07321340590715408, -0.16029931604862213, -0.2642506957054138, 0.07125013321638107, -0.13423842191696167, 0.29183369874954224, -0.2233045995235443, 0.4822225272655487, 0.21656455099582672, -0.12052378803491592, 0.08852018415927887, -0.09224756062030792, 0.09819716960191727, 0.1598917692899704, -0.38915756344795227, -0.2941407263278961, -0.11473432183265686, -0.33262574672698975, 0.32354864478111267, -0.34575363993644714, 0.019070008769631386, 0.03778001666069031, -0.005389143247157335, -0.10342777520418167, -0.009617935866117477, 0.14078333973884583, -0.16080017387866974, 0.2850828170776367, -0.1276015043258667, 0.055117785930633545, -0.312248170375824, -0.13164858520030975, 0.07561112195253372, 0.16637049615383148, 0.010002375580370426, -0.349104642868042, -0.42167478799819946, 0.16171643137931824, -0.481585830450058, 0.057886797934770584, -0.03318917006254196, 0.5251986384391785, 0.3719904124736786, 0.08601775765419006, 0.3544756770133972, 0.07998465746641159, 0.52579265832901, 0.20511960983276367, -0.22329175472259521, 0.002348430221900344, -0.47582823038101196, 0.014171904884278774, -0.1697370857000351, -0.24898943305015564, 0.2695688307285309, 0.34607627987861633, 0.40944990515708923, -0.06740036606788635, -0.1872820258140564, -0.09539204835891724, 0.11432768404483795, -0.21026302874088287, -0.5684311389923096, -0.15205225348472595, 0.10213843733072281, 0.16262908279895782, 0.10562364012002945, -0.5356789231300354, 0.2143605500459671, 0.03225424885749817, -0.018900524824857712, -0.08365565538406372, -0.20378415286540985, 0.3269461989402771, 0.07475817948579788, 0.11293427646160126, 0.14727123081684113, 0.36089426279067993, 0.014741271734237671, -0.06843897700309753, 0.1255161613225937, 0.15688200294971466, -0.022056734189391136, -0.16957765817642212, 0.18080726265907288, 0.097210593521595, 0.3712499141693115, 0.21939155459403992, -0.051894061267375946, 0.18395337462425232, -0.12597833573818207, 0.16054947674274445, -0.18193842470645905, -0.2642447054386139, 0.5638895630836487, 0.030971065163612366, -0.4069399833679199, -0.17196181416511536, 0.483460932970047, 0.09894070774316788, -0.010549562983214855, 0.3498973250389099, -0.5904164910316467, 0.014225167222321033, -0.15940409898757935, 0.14201831817626953, 0.7446194291114807, -0.12648740410804749, -0.012597412802278996, 0.06594860553741455, 0.35847243666648865, 0.05031824856996536, -0.17367541790008545, -0.02918507158756256, -0.2662472724914551, -0.42744728922843933, 0.001396492007188499, -0.3462824821472168, 0.48857489228248596, 0.15713103115558624, -0.07120703160762787, 0.16933298110961914, -0.16534733772277832, -0.02675240859389305, -0.1823568344116211, 0.16070903837680817, -0.0941552147269249, -0.4092687964439392, -0.33053216338157654, 0.050294455140829086, -0.11556100845336914, 0.1641431450843811, -0.13590940833091736, -0.1962168663740158, 0.08008015155792236, 0.29779043793678284, -0.05492500588297844, -0.18548142910003662, -0.3081086277961731, -0.00602789456024766, 0.520976185798645, -0.2394125610589981, -0.12475641071796417, 0.029319392517209053, 0.06417980790138245, -0.15904000401496887, 0.04305180907249451, 0.2172892838716507, -0.02779342047870159, 0.36008939146995544, 0.1343168318271637, -0.2849559485912323, 0.10392744094133377, -0.004829073790460825, 0.2251022756099701, 0.3471119999885559, 0.09378588199615479, -0.2201293706893921, 0.037797246128320694, 0.17099198698997498, 0.25264137983322144, -0.20162013173103333, -0.1696680188179016, 0.21427446603775024, 0.14977183938026428, -0.10010415315628052, 0.052983637899160385, 0.49443408846855164, -0.24532689154148102, 0.3979704976081848, 0.04845539107918739, -0.3939453363418579, -0.1342615932226181, 0.2439272403717041, 0.39664942026138306, -0.0035277865827083588, 0.5114949941635132, 0.04572327062487602, -0.2285662591457367, -0.12651793658733368, 0.26428210735321045, 0.08481200784444809, -0.257910817861557, 0.23708443343639374, 0.08470658212900162, 0.3823509216308594, 0.1951829195022583, 0.03654186800122261, -0.04635602980852127, -0.0795816034078598, -0.41962283849716187, -0.393562912940979, -0.1383424699306488, -0.13418793678283691, -0.034408777952194214, 0.025478696450591087, -0.2641661763191223, -0.12822362780570984, -0.09127500653266907, 0.2852686941623688, -0.19153039157390594, -0.1164882704615593, -0.08780407160520554, -0.06698355823755264, 0.12309951335191727, -0.23248307406902313, 0.09892499446868896, 0.3156079053878784, 0.033266980201005936, 0.13626240193843842, -0.038309160619974136, -0.17202021181583405, 0.09350953251123428, 0.1423202008008957, -0.053863413631916046, -0.15655465424060822, 0.0857352688908577, -0.03154012933373451, 0.11663126945495605, -0.10027153789997101, -0.059549011290073395, -0.07750063389539719, 0.031365394592285156, 0.05108867213129997, 0.3887105882167816, -0.1345026195049286, -0.10912003368139267, 0.27311041951179504, 0.02565782703459263, 0.2094871997833252, 0.21662534773349762, -0.0087040476500988, 0.11752419173717499, -0.2616751194000244, -0.2864660620689392, 0.12584657967090607, 0.09324470162391663, -0.11848223209381104, 0.3263697624206543, -0.5417139530181885, 0.28818219900131226, 0.04694247245788574, 0.1405947208404541, 0.4909064769744873, -0.11220541596412659, -0.3595331013202667, -0.04697837308049202, 0.11881668865680695, -0.055132992565631866, -0.3106616735458374, -0.043538641184568405, 0.1552535742521286, -0.067174531519413, 0.1591499298810959, -0.02645457163453102, 0.029160520061850548, 0.10337380319833755, -0.19615952670574188, -0.0410270094871521, -0.2628025710582733, -0.14731502532958984, 0.12065237015485764, 0.26351526379585266, 0.12237522751092911, 0.33780163526535034, 0.42589375376701355, -0.24132628738880157, 0.1406068354845047, 0.08709029108285904, 0.28670039772987366, 0.33311691880226135, 0.15724916756153107, -0.16726648807525635, -0.4285086989402771, -0.10220282524824142, 0.5111818909645081, -0.24317295849323273, -0.15942859649658203, 0.06122809648513794, -0.05945239216089249, 0.14790333807468414, -0.10620418190956116, -0.24636287987232208, 0.27216389775276184, -0.1473356932401657, -0.2630119323730469, 0.05484064295887947, 0.001562872203066945, -0.13661450147628784, 0.08780927956104279, -0.2911331057548523, 0.028630750253796577, -0.2513045370578766, 0.2572129964828491, 0.16574549674987793, -0.4683091938495636, -0.44428426027297974, 0.14633673429489136, -0.090418241918087, -0.21343612670898438, 0.06121203303337097, -0.17092716693878174, 0.275265097618103, 0.17691224813461304, 0.28115910291671753, 0.2175336331129074, 0.3926667273044586, 0.08407361805438995, -0.11590774357318878, -0.3157942593097687, -0.10600005090236664, 0.13319234549999237, 0.17595793306827545, -0.26660555601119995, 0.07880620658397675, 0.22366297245025635, 0.01096305251121521, -0.21974246203899384, -0.21316595375537872, -0.13890327513217926, -0.11741190403699875, -0.4200175404548645, 0.22549016773700714, 0.15226995944976807, 0.20541587471961975, -0.25529545545578003, 0.010122611187398434, -0.3215104639530182, -0.26942121982574463, 0.3446248173713684, -0.4715992212295532, -0.06064307689666748, -0.004403572995215654, 0.015524524264037609, -0.41344353556632996, 0.7372550368309021, 0.4419787526130676, 0.398958683013916, -0.3557169735431671, -0.18958652019500732, -0.4855271577835083, -0.10538442432880402, -0.2492268830537796, -0.12535476684570312, 0.3149222731590271, 0.4505523145198822, 0.09095581620931625, 0.34658005833625793, 0.4759305715560913, 0.0007376017747446895, -0.23305010795593262, 0.1060463935136795, -0.380570650100708, 0.08595635741949081, -0.2519359886646271, 0.19735115766525269, -0.2169904112815857, -0.25610974431037903, 0.5060580372810364, 0.026122065261006355, 0.08500944823026657, 0.13274523615837097, 0.006447478663176298, 0.22028903663158417, 0.5054419636726379, 0.1820293813943863, -0.049119528383016586, 0.01275615580379963, 0.1249493733048439, -0.012005957774817944, -0.026047684252262115, -0.24672450125217438, 0.09297444671392441, 0.02097231335937977, 0.08951980620622635, -0.048032376915216446, -0.06451791524887085, 0.10162845253944397, -0.12254931032657623, 0.327227920293808, -0.12301301956176758, -0.08390871435403824, -0.10536503046751022, -0.02403842657804489, 0.09946133196353912, 0.2704177796840668, 0.02435673400759697, 0.32968398928642273, 0.3303031325340271, 0.22318680584430695, -0.3987433910369873, -0.019525257870554924, 0.1854531615972519, -0.45239025354385376, -0.2727069556713104, -0.23031698167324066, 0.20114275813102722, 0.16967806220054626, 0.2593241035938263, -0.15727132558822632, 0.12485155463218689, 0.5009222030639648, -0.07689368724822998, 0.1301143914461136, 0.3328210413455963, -0.02225005254149437, 0.3303360044956207, -0.07234013825654984, 0.16942930221557617, -0.06518608331680298, -0.19604423642158508, -0.22236265242099762, -0.09461797773838043 ]
https://github.com/huggingface/datasets/issues/877
DataLoader(datasets) become more and more slowly within iterations
> Hi ! Thanks for reporting. > Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) > It would be nice to know whether it comes from the dataloader or not I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s.
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot!
64
DataLoader(datasets) become more and more slowly within iterations Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot! > Hi ! Thanks for reporting. > Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) > It would be nice to know whether it comes from the dataloader or not I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s.
[ -0.31666049361228943, -0.10293739289045334, -0.09790543466806412, 0.24407096207141876, -0.049943361431360245, -0.060161709785461426, 0.4438633620738983, 0.0588657483458519, 0.27120962738990784, 0.12997421622276306, -0.10633566230535507, 0.4185295104980469, -0.03315828740596771, -0.027514023706316948, -0.29837244749069214, -0.004931353032588959, 0.006710103712975979, 0.18829751014709473, -0.47686702013015747, -0.11947081238031387, 0.01796453818678856, 0.05458692088723183, -0.20140264928340912, -0.19119806587696075, -0.10099853575229645, -0.12060389667749405, 0.1409040242433548, 0.1710788607597351, -0.1337464302778244, -0.42460986971855164, -0.013865810818970203, 0.19352670013904572, 0.39524534344673157, 0.6482264399528503, -0.00011782017827499658, 0.05661879852414131, 0.02649948000907898, 0.21208582818508148, -0.2565653920173645, 0.40059322118759155, 0.05977132171392441, -0.4337363839149475, 0.16833645105361938, -0.15134844183921814, 0.2930932939052582, -0.19664913415908813, -0.36132803559303284, -0.13670751452445984, 0.06310754269361496, -0.02522549033164978, 0.09394112229347229, 0.5212469100952148, -0.47035306692123413, 0.029714815318584442, -0.033709101378917694, -0.1853238195180893, -0.16927556693553925, 0.38148579001426697, 0.735979437828064, 0.05645432323217392, -0.5058463215827942, 0.2526671588420868, 0.05179442837834358, 0.3203217387199402, 0.17747025191783905, 0.15480896830558777, 0.3938535153865814, -0.29733240604400635, -0.06327104568481445, 0.32360443472862244, 0.7466244101524353, -0.021077418699860573, -0.2943335473537445, -0.0697084590792656, -0.012460021302103996, -0.21960532665252686, 0.0809602439403534, -0.34007948637008667, -0.3324066400527954, -0.13574492931365967, -0.3238392472267151, -0.030991334468126297, 0.023505903780460358, -0.04908822476863861, -0.08604596555233002, -0.06609185039997101, 0.06496436148881912, -0.1187758594751358, 0.23688477277755737, -0.2670111358165741, 0.32847321033477783, -0.19628576934337616, 0.1320451945066452, 0.1515493541955948, -0.6910883188247681, -0.10199164599180222, -0.31915774941444397, 0.03199460729956627, -0.059574756771326065, 0.0018928860081359744, 0.3282817304134369, 0.133409321308136, -0.08339478075504303, 0.05044045299291611, 0.1658601462841034, 0.1284778118133545, -0.005222099833190441, -0.20748847723007202, 0.10975732654333115, 0.13368040323257446, -0.23767313361167908, 0.02820575051009655, -0.2098194658756256, -0.3414178192615509, 0.5878221988677979, -0.15038777887821198, -0.14326182007789612, 0.13015995919704437, -0.2243591547012329, -0.22268429398536682, 0.12001149356365204, -0.2705481946468353, 0.361421138048172, 0.24293182790279388, -0.1394592523574829, 0.4287477433681488, -0.23865747451782227, -0.048159871250391006, -0.2818550169467926, -0.430222749710083, -0.07409457117319107, -0.22630372643470764, -0.14699296653270721, 0.3179355561733246, -0.003882413497194648, -0.20840242505073547, 0.06032947450876236, 0.4574334919452667, 0.2425083965063095, -0.012822873890399933, 0.11016128957271576, -0.2686161696910858, -0.11842367053031921, -0.006318824831396341, -0.12061996012926102, 0.3061599135398865, 0.05166599527001381, 0.07608610391616821, -0.09695172309875488, 0.18325340747833252, -0.6864615678787231, 0.08343657851219177, -0.06728002429008484, 0.11888813227415085, 0.20859292149543762, -0.18864817917346954, -0.25810012221336365, -0.09795933216810226, -0.23603688180446625, -0.007542601320892572, 0.034741099923849106, -0.3694812059402466, -0.05334584787487984, -0.06925199180841446, 0.010638011619448662, 0.38192012906074524, -0.19733019173145294, 0.03505723550915718, -0.15826645493507385, 0.04541249945759773, 0.4544565975666046, 0.46504756808280945, -0.33759909868240356, 0.6549209356307983, -0.45231595635414124, -0.24646495282649994, 0.48322218656539917, -0.2251611202955246, -0.42849138379096985, 0.8008064031600952, -0.15401209890842438, 0.2838907539844513, 0.3193066418170929, 0.4010234475135803, 0.43096187710762024, -0.2910647690296173, 0.1836385279893875, 0.17515689134597778, 0.20736081898212433, 0.21590666472911835, -0.16109153628349304, 0.15023688971996307, 0.21004629135131836, 0.21987682580947876, -0.0866747573018074, 0.37316784262657166, 0.013806155882775784, -0.24458511173725128, 0.5300360918045044, -0.2338068038225174, -0.0645175576210022, 0.3581281900405884, -0.12760205566883087, -0.17729075253009796, 0.16328072547912598, 0.11612797528505325, -0.5292478799819946, 0.22475148737430573, -0.01825392059981823, -0.2675396203994751, 0.30403974652290344, 0.13151320815086365, -0.17322266101837158, 0.05760835111141205, -0.2893502116203308, 0.060517750680446625, 0.03442429006099701, 0.1301126778125763, -0.13972729444503784, -0.30614379048347473, -0.013617867603898048, 0.34151121973991394, -0.036114584654569626, 0.050060078501701355, 0.09108743816614151, 0.25678756833076477, 0.47689923644065857, -0.10744922608137131, 0.20596693456172943, -0.38155943155288696, 0.0034206814598292112, -0.12450268119573593, -0.14312927424907684, 0.25944674015045166, 0.2545202076435089, 0.49190443754196167, 0.4801597595214844, 0.10596518963575363, 0.2099207639694214, 0.07943706959486008, 0.12122829258441925, -0.13130325078964233, 0.23050320148468018, -0.14944244921207428, 0.3068235516548157, 0.3459584712982178, -0.46678847074508667, 0.33175140619277954, -0.13551566004753113, -0.283447802066803, 0.09631797671318054, -0.0036898800171911716, -0.09473197907209396, 0.4250708520412445, 0.4221166968345642, 0.21276161074638367, 0.5241925120353699, 0.20978568494319916, -0.16578024625778198, 0.10913653671741486, 0.12474730610847473, 0.08734739571809769, -0.26301804184913635, 0.1912246197462082, -0.24784669280052185, 0.01313205435872078, -0.18870775401592255, -0.020451825112104416, 0.45746979117393494, 0.030761469155550003, 0.19611194729804993, -0.194034606218338, 0.24210584163665771, -0.1629878729581833, -0.008556677959859371, 0.2014559954404831, 0.2979944050312042, 0.40725305676460266, -0.051467545330524445, -0.0824853777885437, -0.28565675020217896, -0.30757662653923035, 0.09668546169996262, 0.33802881836891174, -0.11081831157207489, 0.22017984092235565, -0.24319855868816376, 0.18314792215824127, -0.18349789083003998, -0.3231654167175293, -0.20176808536052704, -0.2333119511604309, -0.20808860659599304, 0.14135900139808655, 0.30146586894989014, -0.02484111860394478, 0.14724165201187134, -0.020453520119190216, 0.2273661494255066, 0.049365267157554626, -0.18514835834503174, 0.0364043191075325, -0.09345018118619919, -0.03839970380067825, 0.2595830261707306, -0.17247052490711212, 0.045063648372888565, -0.11903335899114609, 0.1774953454732895, -0.39237430691719055, 0.20009475946426392, -0.13996051251888275, 0.0718216598033905, 0.17243950068950653, -0.058442119508981705, 0.3595059812068939, -0.06975439190864563, -0.09754792600870132, 0.10091251134872437, -0.11513394862413406, -0.005050912499427795, 0.012950493022799492, -0.21459728479385376, 0.11320468783378601, 0.3765968084335327, 0.05370873957872391, -0.27676624059677124, -0.12880320847034454, -0.17058536410331726, 0.034035246819257736, 0.1489666998386383, -0.12206170707941055, -0.13055947422981262, 0.0655796155333519, 0.245095893740654, 0.050167303532361984, 0.01574326679110527, -0.7621068954467773, 0.39514246582984924, 0.06771673262119293, 0.015577378682792187, -0.24871790409088135, -0.07882363349199295, 0.19259463250637054, 0.2423999160528183, -0.44387415051460266, 0.0044753579422831535, -0.10685847699642181, 0.23402179777622223, -0.21260564029216766, 0.10593370348215103, -0.10010914504528046, -0.1356114000082016, -0.06007219851016998, 0.06718665361404419, -0.046824924647808075, -0.14238731563091278, -0.25931665301322937, 0.05233696475625038, -0.08204203844070435, 0.27099964022636414, -0.20039363205432892, 0.4641510844230652, 0.24662019312381744, -0.08608508855104446, 0.13531407713890076, -0.10737144947052002, 0.09270922839641571, 0.1337198168039322, -0.39442673325538635, -0.26073724031448364, -0.11743537336587906, -0.31289100646972656, 0.31408175826072693, -0.35395631194114685, 0.011982877738773823, 0.0010050955461338162, 0.0014409488067030907, -0.09455319494009018, -0.028845634311437607, 0.15463021397590637, -0.15467780828475952, 0.285231351852417, -0.13614188134670258, 0.023717880249023438, -0.3096562922000885, -0.16585248708724976, 0.10997582226991653, 0.20086738467216492, 0.034528832882642746, -0.3326031267642975, -0.407292902469635, 0.13628633320331573, -0.45399999618530273, 0.04848288372159004, -0.009008697234094143, 0.5288019180297852, 0.36691322922706604, 0.06603341549634933, 0.34381285309791565, 0.06050640344619751, 0.554829478263855, 0.2545400559902191, -0.2080102413892746, 0.019586097449064255, -0.45895010232925415, 0.020226703956723213, -0.1629425287246704, -0.25971338152885437, 0.2689764201641083, 0.35518479347229004, 0.46446144580841064, -0.055768609046936035, -0.22315332293510437, -0.12569712102413177, 0.1310104876756668, -0.17778033018112183, -0.5715383887290955, -0.11795290559530258, 0.1032799482345581, 0.14910155534744263, 0.1027582585811615, -0.5400914549827576, 0.21806493401527405, 0.008647030219435692, -0.013799627311527729, -0.07276584953069687, -0.20456083118915558, 0.31140559911727905, 0.07045713067054749, 0.13197901844978333, 0.17893895506858826, 0.35486066341400146, 0.010864714160561562, -0.02649064175784588, 0.13808873295783997, 0.15569284558296204, -0.02588779106736183, -0.17095965147018433, 0.16591134667396545, 0.07665394991636276, 0.32143738865852356, 0.2069881707429886, -0.04952607676386833, 0.1642783135175705, -0.1335681527853012, 0.16712908446788788, -0.18984343111515045, -0.23645704984664917, 0.5697378516197205, 0.014337120577692986, -0.4116794764995575, -0.15412715077400208, 0.46923351287841797, 0.08243709057569504, -0.03293118253350258, 0.3657377362251282, -0.5970942378044128, 0.030387742444872856, -0.1592687964439392, 0.11820807307958603, 0.734568178653717, -0.13996438682079315, -0.0110861761495471, 0.06307078152894974, 0.3613531291484833, 0.04454931989312172, -0.19977834820747375, -0.024523630738258362, -0.26330655813217163, -0.49680569767951965, -0.006457812152802944, -0.33657339215278625, 0.46357667446136475, 0.17439043521881104, -0.07890491932630539, 0.15654996037483215, -0.10586423426866531, -0.08096560090780258, -0.1944640725851059, 0.2345716953277588, -0.08446276187896729, -0.4102785885334015, -0.28105366230010986, 0.03884558752179146, -0.13397575914859772, 0.14214451611042023, -0.11324206739664078, -0.23501890897750854, 0.08510088920593262, 0.32901549339294434, -0.03518367186188698, -0.19625461101531982, -0.31244608759880066, -0.0120786027982831, 0.49142032861709595, -0.26188984513282776, -0.1324983835220337, 0.07068675756454468, 0.051562920212745667, -0.1660018414258957, 0.015661997720599174, 0.21861493587493896, -0.011865326203405857, 0.3512450158596039, 0.1358557939529419, -0.2737427353858948, 0.12673591077327728, -0.024862654507160187, 0.20717932283878326, 0.29733872413635254, 0.07344663888216019, -0.2179531455039978, 0.06714598834514618, 0.15514525771141052, 0.25283679366111755, -0.18122456967830658, -0.17277653515338898, 0.16708748042583466, 0.08984047919511795, -0.07807851582765579, 0.0423072949051857, 0.48580223321914673, -0.2343536913394928, 0.40535736083984375, 0.06505558639764786, -0.42441076040267944, -0.13949303328990936, 0.2559444010257721, 0.33452174067497253, -0.04338011518120766, 0.5527670383453369, 0.054233867675065994, -0.21014702320098877, -0.12251760065555573, 0.3144054710865021, 0.06252622604370117, -0.26771631836891174, 0.248363196849823, 0.11360318213701248, 0.42526793479919434, 0.2227357178926468, 0.026056906208395958, -0.02505570650100708, -0.09711379557847977, -0.3878438472747803, -0.39766982197761536, -0.15205389261245728, -0.15830060839653015, -0.03330804035067558, 0.007874228991568089, -0.25200119614601135, -0.17516273260116577, -0.04619797691702843, 0.26507869362831116, -0.18479816615581512, -0.09129010140895844, -0.07563985884189606, -0.07173889875411987, 0.16888268291950226, -0.1944395899772644, 0.11624273657798767, 0.32306742668151855, 0.022184176370501518, 0.09591057896614075, -0.02787710912525654, -0.15388058125972748, 0.06645414978265762, 0.14953050017356873, -0.09377170354127884, -0.1992667317390442, 0.08279741555452347, -0.0799880176782608, 0.08723041415214539, -0.12433883547782898, -0.11060382425785065, -0.10671121627092361, -0.007849320769309998, 0.06477855145931244, 0.3694908320903778, -0.15744121372699738, -0.12221900373697281, 0.27086448669433594, 0.015159175731241703, 0.17465315759181976, 0.19521847367286682, -0.004496239125728607, 0.1171732097864151, -0.2872151732444763, -0.266662061214447, 0.10802406817674637, 0.11657978594303131, -0.11886546015739441, 0.3841859698295593, -0.5312278866767883, 0.2938060760498047, 0.047239143401384354, 0.15315744280815125, 0.4938792884349823, -0.1071813702583313, -0.32216668128967285, -0.020402416586875916, 0.10874446481466293, -0.04127413406968117, -0.31644073128700256, -0.04323528707027435, 0.1390945017337799, -0.07004374265670776, 0.14130540192127228, -0.020986609160900116, 0.008489338681101799, 0.12090646475553513, -0.17877419292926788, -0.03180397301912308, -0.275497168302536, -0.18329116702079773, 0.11373722553253174, 0.2706339359283447, 0.09249966591596603, 0.3110259771347046, 0.4216327667236328, -0.2320679873228073, 0.14664451777935028, 0.050888996571302414, 0.2746376097202301, 0.34678539633750916, 0.19047515094280243, -0.1923951804637909, -0.46848443150520325, -0.1191159188747406, 0.4923173487186432, -0.23875266313552856, -0.15278910100460052, 0.045761555433273315, -0.05545642971992493, 0.15305078029632568, -0.12370374798774719, -0.21787121891975403, 0.26525047421455383, -0.13031622767448425, -0.2375985085964203, 0.05648684501647949, -0.006805840879678726, -0.1462869942188263, 0.08958783745765686, -0.28629425168037415, 0.08165087550878525, -0.24941182136535645, 0.31622421741485596, 0.1634906381368637, -0.4218566417694092, -0.4552081227302551, 0.13640524446964264, -0.05144277215003967, -0.24443459510803223, 0.04372840002179146, -0.1586102694272995, 0.23640480637550354, 0.1942918300628662, 0.27664270997047424, 0.2307557761669159, 0.4069313704967499, 0.09459073096513748, -0.08649914711713791, -0.3239955008029938, -0.09404951333999634, 0.14226581156253815, 0.17593064904212952, -0.24219705164432526, 0.09370061010122299, 0.23886770009994507, -0.012226949445903301, -0.20298078656196594, -0.2131843864917755, -0.18224482238292694, -0.10115356743335724, -0.4517957866191864, 0.17296269536018372, 0.19040383398532867, 0.16218335926532745, -0.27385765314102173, -0.021747412160038948, -0.3191104531288147, -0.24766744673252106, 0.336148202419281, -0.4791129231452942, -0.03346274048089981, -0.0005315282614901662, 0.015080361627042294, -0.37873658537864685, 0.7244366407394409, 0.42658889293670654, 0.3731870651245117, -0.3712477684020996, -0.20311984419822693, -0.49637022614479065, -0.1356547772884369, -0.1927950233221054, -0.09296349436044693, 0.3313571512699127, 0.42026081681251526, 0.08913584053516388, 0.2848294675350189, 0.44890785217285156, -0.03679216653108597, -0.2154836505651474, 0.14586518704891205, -0.376274436712265, 0.06101948395371437, -0.22512733936309814, 0.24610531330108643, -0.2304224669933319, -0.23883947730064392, 0.5200169682502747, -0.0023027444258332253, 0.07588374614715576, 0.16672079265117645, -0.010662604123353958, 0.2384662926197052, 0.511366069316864, 0.181831955909729, -0.014339602552354336, 0.03555963560938835, 0.07969178259372711, 0.005867305211722851, -0.01019210647791624, -0.21857978403568268, 0.0669599324464798, 0.02829275280237198, 0.09777438640594482, -0.0449020154774189, -0.05187830328941345, 0.07381508499383926, -0.15082718431949615, 0.31386080384254456, -0.16929151117801666, -0.08985723555088043, -0.14281298220157623, -0.04917367920279503, 0.12824702262878418, 0.2565401494503021, 0.0382511280477047, 0.3413081765174866, 0.3397575914859772, 0.21156486868858337, -0.4215077757835388, -0.012690193951129913, 0.1704145222902298, -0.4388910233974457, -0.2576790153980255, -0.18825267255306244, 0.21348454058170319, 0.1332673877477646, 0.29818227887153625, -0.13074249029159546, 0.1505240499973297, 0.5181914567947388, -0.059445250779390335, 0.14137671887874603, 0.3339853882789612, -0.0212694201618433, 0.33722198009490967, -0.05309736356139183, 0.18004997074604034, -0.01834999956190586, -0.2241746038198471, -0.2240968942642212, -0.0788608267903328 ]
https://github.com/huggingface/datasets/issues/876
imdb dataset cannot be loaded
It looks like there was an issue while building the imdb dataset. Could you provide more information about your OS and the version of python and `datasets` ? Also could you try again with ```python dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload") ``` to make sure it's not a corrupted file issue ?
Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ```
51
imdb dataset cannot be loaded Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ``` It looks like there was an issue while building the imdb dataset. Could you provide more information about your OS and the version of python and `datasets` ? Also could you try again with ```python dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload") ``` to make sure it's not a corrupted file issue ?
[ -0.5215919613838196, -0.03979833424091339, -0.12092781066894531, 0.41382864117622375, 0.3087586760520935, 0.3442173898220062, 0.4162835478782654, 0.41161736845970154, 0.18930821120738983, -0.125909686088562, -0.24593766033649445, -0.03637996315956116, -0.2387995570898056, 0.11891885101795197, -0.1006133109331131, -0.19338956475257874, -0.10938972234725952, -0.008348790928721428, 0.008231340907514095, 0.024810589849948883, -0.1954827904701233, 0.26311129331588745, -0.4074181914329529, -0.007381361443549395, -0.5533469319343567, -0.20760485529899597, 0.0664418488740921, 0.24647171795368195, -0.1878921538591385, -0.37773317098617554, 0.43747034668922424, 0.03382742404937744, 0.29852280020713806, 0.42653948068618774, -0.00010842885967576876, 0.06612186133861542, 0.5560088753700256, -0.1408040076494217, -0.3377951383590698, -0.2855280339717865, -0.2910873591899872, -0.07343315333127975, 0.25549495220184326, -0.21219110488891602, -0.061039965599775314, -0.2735617458820343, -0.08767933398485184, -0.46811285614967346, 0.3000148832798004, 0.45948392152786255, 0.25512444972991943, -0.030522635206580162, 0.0760369524359703, -0.14565643668174744, 0.0994294211268425, 0.18256951868534088, 0.009692272171378136, 0.30303874611854553, 0.0760117694735527, 0.017390312626957893, 0.2145235389471054, 0.041525740176439285, -0.2540516257286072, -0.037988368421792984, 0.29627344012260437, 0.027488889172673225, 0.06730219721794128, -0.4677698016166687, 0.03473867103457451, 0.24855898320674896, 0.6612051725387573, -0.08360373973846436, -0.35141268372535706, -0.057288408279418945, 0.15944774448871613, -0.2821141481399536, 0.11256959289312363, 0.2813585698604584, -0.12026719003915787, 0.10454138368368149, -0.40934377908706665, -0.06621990352869034, -0.08582475781440735, 0.17703628540039062, 0.03006187081336975, -0.07027532905340195, 0.05906888097524643, 0.07509086281061172, 0.22232165932655334, -0.10040871798992157, 0.30603280663490295, 0.02870631404221058, 0.011488350108265877, 0.16014815866947174, -0.27223917841911316, 0.06165475398302078, -0.3099360167980194, 0.0013532635057345033, -0.06961105763912201, 0.2496405690908432, -0.20697659254074097, -0.02108314260840416, -0.029209963977336884, 0.2595464289188385, 0.2834855914115906, 0.13758453726768494, 0.03883678466081619, 0.4064238667488098, 0.1448391079902649, 0.23831360042095184, -0.27380767464637756, -0.10596099495887756, -0.22602327167987823, -0.1501702219247818, 0.09803671389818192, 0.13029944896697998, 0.02585870400071144, -0.18133066594600677, -0.5039560794830322, -0.01794326864182949, -0.18610574305057526, 0.0018601632909849286, 0.37570062279701233, 0.39405396580696106, -0.10823506116867065, 0.17110185325145721, 0.18745706975460052, 0.31052061915397644, -0.11816975474357605, -0.06304116547107697, -0.18552426993846893, 0.2731190323829651, -0.18487536907196045, 0.07852047681808472, 0.4066699743270874, -0.1432274729013443, 0.40706297755241394, 0.013879859820008278, 0.09884336590766907, -0.20597754418849945, 0.1962590217590332, -0.3265184462070465, 0.04747059568762779, 0.3069472014904022, 0.28823915123939514, 0.17498241364955902, 0.17507962882518768, -0.02221626602113247, -0.12192646414041519, 0.04349052533507347, -0.2463381141424179, -0.4131361246109009, -0.18293209373950958, 0.27879318594932556, -0.003636368317529559, -0.05503873527050018, -0.42614996433258057, -0.029298122972249985, 0.0431884303689003, -0.18810003995895386, -0.17584629356861115, -0.3051401376724243, -0.17556360363960266, -0.1236037015914917, 0.428363561630249, 0.4742206037044525, -0.28194236755371094, -0.06770174205303192, -0.3545869290828705, -0.10196059197187424, 0.20716673135757446, 0.2522231340408325, -0.30165985226631165, 0.2245979905128479, -0.3644302785396576, 0.10269256681203842, 0.31145215034484863, -0.4896247684955597, -0.1315893530845642, 0.3070099949836731, 0.15195125341415405, 0.1178983747959137, 0.05107006058096886, 0.11782162636518478, 0.323488712310791, 0.015281648375093937, 0.23739543557167053, 0.4272212088108063, -0.033304259181022644, -0.15667830407619476, -0.0633254125714302, -0.20160892605781555, 0.19543582201004028, 0.360102117061615, 0.30826082825660706, 0.002115009119734168, 0.001215088414028287, 0.20979659259319305, 0.2742600440979004, 0.11757446080446243, -0.04087217524647713, 0.20631961524486542, -0.052625399082899094, 0.3531839847564697, -0.05415063723921776, -0.19906075298786163, -0.4411426782608032, 0.19672279059886932, 0.2666040360927582, -0.046510111540555954, -0.15744298696517944, -0.10118744522333145, -0.2758459448814392, -0.17938825488090515, -0.23914149403572083, 0.0034418602008372545, 0.1849973052740097, -0.08312559127807617, -0.013919590972363949, 0.058202024549245834, -0.4372173547744751, 0.3967027962207794, -0.10662049800157547, 0.14306919276714325, -0.3454016149044037, 0.3588089644908905, -0.17270448803901672, -0.2236965149641037, 0.15711663663387299, 0.11874422430992126, 0.18631014227867126, -0.24966701865196228, -0.04658665880560875, 0.43849554657936096, 0.3271716237068176, -0.02822594903409481, -0.07127602398395538, -0.22273001074790955, 0.19801340997219086, -0.3737986087799072, 0.1602862924337387, -0.13035094738006592, 0.051751986145973206, -0.1354394257068634, -0.05916885286569595, 0.16390599310398102, -0.2817699909210205, 0.2440551072359085, 0.22803521156311035, 0.1386641412973404, 0.25115108489990234, -0.09945806115865707, -0.02112773433327675, -0.4406083822250366, 0.18278872966766357, -0.01902732439339161, 0.018330907449126244, -0.014589075930416584, -0.2629706859588623, -0.21277281641960144, 0.4115484058856964, 0.14765092730522156, -0.05337822064757347, 0.13881851732730865, -0.17170728743076324, 0.1022970974445343, -0.07619907706975937, 0.15129664540290833, 0.2494875192642212, 0.176138773560524, -0.09010406583547592, -0.07389329373836517, 0.13710148632526398, -0.11124208569526672, 0.26876962184906006, 0.0630810409784317, 0.13869859278202057, 0.32715094089508057, -0.15743345022201538, -0.043216586112976074, -0.30057331919670105, -0.3626561760902405, 0.11643041670322418, 0.2661471962928772, -0.3761318027973175, -0.07215512543916702, -0.3137325644493103, -0.17084021866321564, -0.08896329253911972, -0.32901355624198914, -0.04070513695478439, -0.32658252120018005, -0.08765699714422226, 0.34477126598358154, 0.32594215869903564, 0.15022917091846466, -0.29541313648223877, -0.14982758462429047, -0.05878855288028717, -0.047469381242990494, -0.07577051967382431, -0.2140558809041977, -0.14742408692836761, 0.12506435811519623, 0.45191285014152527, 0.19955658912658691, 0.2789733111858368, -0.39436131715774536, -0.0972730815410614, 0.021088732406497, 0.15831351280212402, -0.052773479372262955, -0.13729122281074524, 0.19019320607185364, 0.11640581488609314, 0.24807603657245636, 0.11379814893007278, -0.5119882225990295, 0.3313748836517334, -0.14346064627170563, 0.07648257166147232, 0.15951865911483765, 0.07674502581357956, -0.0790894404053688, 0.01460485253483057, -0.47806528210639954, -0.48225489258766174, -0.3378787040710449, -0.08819369971752167, 0.16944339871406555, 0.04301704093813896, 0.20233798027038574, 0.13662682473659515, 0.11543045938014984, 0.31838178634643555, 0.12768451869487762, -0.02958138845860958, -0.32742494344711304, 0.32026565074920654, -0.23034118115901947, -0.16038253903388977, 0.24129535257816315, 0.10508128255605698, 0.14614757895469666, 0.008742520585656166, -0.41404232382774353, 0.09790032356977463, -0.061750058084726334, 0.15730905532836914, -0.0945538729429245, -0.1469498574733734, -0.0430610291659832, 0.06994142383337021, -0.041944317519664764, 0.047037482261657715, -0.09499708563089371, -0.03719884529709816, -0.049197982996702194, 0.16019849479198456, -0.12552949786186218, 0.5187340974807739, -0.32583099603652954, 0.5013357996940613, 0.29362350702285767, -0.20531541109085083, 0.3749496340751648, -0.1927385926246643, 0.1645788699388504, -0.2501031756401062, -0.619615912437439, -0.15460266172885895, -0.12972727417945862, -0.1464291214942932, -0.004847886506468058, -0.11204830557107925, -0.18945451080799103, -0.23245054483413696, 0.12645134329795837, -0.36960044503211975, -0.1551603525876999, 0.0012159483740106225, -0.38506609201431274, 0.07587321847677231, -0.21246063709259033, 0.1771601289510727, -0.02840154990553856, -0.21887004375457764, 0.05556748807430267, 0.3343028128147125, 0.1610332429409027, -0.029077308252453804, -0.15142086148262024, -0.166362926363945, -0.07662338018417358, 0.2000468671321869, 0.0912996456027031, 0.370383083820343, -0.2813599109649658, 0.13102634251117706, 0.09683991223573685, 0.2025262713432312, 0.7217801213264465, -0.38613617420196533, 0.029387352988123894, 0.24998842179775238, -0.03606109693646431, -0.2788175344467163, -0.09031814336776733, -0.1689855009317398, 0.2853345274925232, 0.30457934737205505, 0.4047125279903412, -0.05902213975787163, -0.13517731428146362, 0.3005587160587311, 0.2268383800983429, -0.15105541050434113, -0.20415744185447693, -0.200970858335495, -0.09616157412528992, -0.3041922450065613, -0.1563248336315155, 0.07618236541748047, 0.1681116223335266, -0.1662720888853073, -0.15483763813972473, -0.10710504651069641, -0.0860009640455246, 0.2872052788734436, 0.14290745556354523, 0.44477739930152893, 0.13645699620246887, 0.24284295737743378, 0.29424962401390076, -0.018296726047992706, 0.6086497902870178, 0.5828620791435242, -0.34322023391723633, -0.1498756855726242, -0.005440145265311003, -0.0642554834485054, 0.2022988200187683, 0.07193649560213089, -0.14820678532123566, -0.38289135694503784, -0.023447418585419655, 0.047014351934194565, 0.03672490268945694, 0.0739898830652237, 0.4998266100883484, -0.1790405958890915, -0.35525181889533997, -0.7226406335830688, 0.2665422260761261, 0.2397560030221939, 0.11217978596687317, 0.2370264083147049, 0.012427194975316525, -0.28505995869636536, 0.3875681161880493, 0.013415247201919556, 0.6175723075866699, -0.11116041988134384, -0.13543637096881866, -0.006221157032996416, 0.2396574467420578, 0.19218620657920837, -0.2774067521095276, 0.14783094823360443, -0.35724589228630066, -0.23868593573570251, -0.11308227479457855, -0.17667099833488464, -0.0648912563920021, 0.11646007746458054, -0.28362566232681274, 0.2537153363227844, -0.43407168984413147, -0.19871115684509277, -0.33663901686668396, 0.5193702578544617, -0.18240197002887726, -0.07923183590173721, -0.06007570028305054, 0.20072564482688904, -0.026053808629512787, 0.09329347312450409, 0.054249394685029984, 0.06647574156522751, -0.1279187947511673, 0.014065074734389782, -0.44987913966178894, 0.12065322697162628, -0.0912436991930008, 0.46744823455810547, -0.23630112409591675, -0.18177272379398346, 0.1474533975124359, 0.25132331252098083, 0.18486858904361725, -0.10392069816589355, -0.06160963326692581, 0.14731766283512115, 0.19967776536941528, -0.24311435222625732, -0.07188020646572113, 0.06599152088165283, 0.5382029414176941, 0.018922898918390274, -0.20806200802326202, 0.17049452662467957, -0.019290581345558167, -0.09030509740114212, 0.21195951104164124, -0.14070557057857513, 0.2336818128824234, -0.3958037197589874, -0.30603596568107605, -0.18006570637226105, -0.016764560714364052, -0.08421819657087326, 0.1587504744529724, -0.08186797797679901, -0.033618319779634476, 0.2271261215209961, 0.17788022756576538, -0.21747331321239471, 0.006826965603977442, 0.39887765049934387, 0.05570261925458908, 0.26179224252700806, 0.605458676815033, 0.3335588872432709, -0.18885964155197144, -0.26470279693603516, 0.14525596797466278, 0.18887954950332642, -0.3561073839664459, 0.19683586061000824, 0.07372057437896729, 0.2766796946525574, 0.17669834196567535, 0.08650659769773483, 0.1420450061559677, 0.0673738643527031, -0.1388966143131256, -0.5432537198066711, -0.24287623167037964, 0.23204877972602844, -0.15291492640972137, 0.19400888681411743, -0.14898452162742615, 0.038588687777519226, 0.036277905106544495, -0.08973642438650131, -0.30762600898742676, 0.17045636475086212, -0.3536548316478729, 0.02379583939909935, 0.03326668590307236, -0.12661443650722504, 0.1435004621744156, -0.11723309755325317, 0.20984356105327606, -0.14449720084667206, 0.042180515825748444, -0.2270585596561432, 0.006777988281100988, 0.08305852860212326, -0.0757996141910553, -0.2000369131565094, -0.24022740125656128, -0.18003727495670319, -0.24677185714244843, -0.11152242124080658, -0.12794126570224762, 0.2296338975429535, 0.10456445068120956, 0.25534480810165405, 0.10921895503997803, -0.14400851726531982, -0.15224787592887878, 0.12935790419578552, -0.07847163081169128, 0.10141916573047638, 0.030577125027775764, 0.07428359240293503, 0.12418660521507263, -0.010430820286273956, -0.25653207302093506, 0.02565806172788143, -0.039373740553855896, 0.0003738996456377208, 0.31960979104042053, -0.2303963452577591, 0.2110096514225006, 0.23620544373989105, 0.2677213251590729, 0.6366447806358337, -0.14344654977321625, 0.11936218291521072, -0.10940716415643692, 0.24583978950977325, -0.215884268283844, 0.01601763814687729, 0.25683966279029846, 0.01816287450492382, -0.11340971291065216, 0.1555420309305191, 0.062250494956970215, 0.03348524868488312, -0.18580156564712524, 0.014724747277796268, 0.4976820945739746, -0.02268093079328537, 0.38114795088768005, 0.2872024178504944, -0.0353962667286396, -0.10429644584655762, 0.05454288795590401, 0.1543366014957428, 0.21031486988067627, 0.5497242212295532, -0.3222818076610565, 0.16401682794094086, -0.15616954863071442, 0.033100709319114685, -0.010705909691751003, -0.30653321743011475, 0.04619041830301285, 0.07371677458286285, 0.025626644492149353, -0.13971267640590668, -0.12548939883708954, 0.35160547494888306, -0.29025205969810486, -0.12007623165845871, -0.22687000036239624, 0.07492123544216156, -0.1423203945159912, 0.10956308245658875, -0.17311625182628632, -0.1698087602853775, -0.3732793629169464, -0.05689825862646103, -0.08002122491598129, -0.028450921177864075, 0.1086793914437294, 0.38778793811798096, -0.16573885083198547, -0.30985021591186523, 0.08447238057851791, 0.09710145741701126, 0.17056071758270264, -0.3105941414833069, 0.13445232808589935, 0.2724185287952423, 0.1277645379304886, 0.3165685534477234, 0.14864224195480347, 0.5456300973892212, 0.3749960958957672, -0.24483078718185425, 0.011622989550232887, 0.14870642125606537, -0.15716616809368134, 0.07537516206502914, 0.2999420166015625, 0.1794321984052658, 0.30495211482048035, 0.22859305143356323, 0.2683783769607544, -0.1066693589091301, 0.0680549144744873, -0.023199910297989845, 0.24831975996494293, -0.15450790524482727, 0.3747868239879608, -0.10991039872169495, -0.08394083380699158, -0.3794897496700287, -0.07222510874271393, -0.3162459135055542, -0.1649569571018219, 0.38676944375038147, -0.12320777028799057, 0.0033522318117320538, 0.004055044613778591, 0.08443110436201096, -0.19057366251945496, 0.499254435300827, 0.3944132924079895, 0.10963333398103714, -0.4755224585533142, -0.09285047650337219, -0.5908113718032837, -0.055812712758779526, -0.09844322502613068, -0.07599125057458878, 0.20610260963439941, 0.2298826426267624, -0.12043891847133636, 0.04571189731359482, 0.09333214908838272, 0.13675925135612488, -0.040134333074092865, 0.2172308713197708, -0.2901269495487213, -0.09016188234090805, -0.2090151458978653, 0.055876895785331726, -0.16636694967746735, -0.16740602254867554, 0.08281879127025604, -0.5049989819526672, 0.03604936972260475, 0.0008954743971116841, -0.37204688787460327, 0.1805417835712433, 0.3742021322250366, 0.2840796411037445, -0.09685066342353821, 0.7990049123764038, 0.06983234733343124, -0.03496396914124489, -0.2617933750152588, -0.39250677824020386, -0.1967739760875702, 0.41533827781677246, 0.2645191252231598, 0.3011768162250519, -0.1691695898771286, 0.021093612536787987, -0.312595933675766, 0.3212585747241974, -0.08245502412319183, -0.16788268089294434, -0.35405635833740234, -0.19238202273845673, -0.02009371668100357, 0.033096469938755035, 0.2503877878189087, 0.14318688213825226, -0.06786374002695084, 0.19118104875087738, -0.20780211687088013, -0.31762608885765076, 0.5762022733688354, -0.09044972062110901, -0.15536056458950043, -0.1684877723455429, 0.09653881192207336, 0.2750166952610016, 0.06615615636110306, -0.5203378200531006, 0.09408318996429443, 0.38718536496162415, -0.18954148888587952, -0.10510025918483734, 0.16407008469104767, 0.204343780875206, 0.10316566377878189, -0.08630792051553726, -0.07619987428188324, 0.04985924810171127, -0.14770440757274628, -0.05657516047358513, 0.041075073182582855 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
I see the issue happening again today - [nltk_data] Downloading package stopwords to /root/nltk_data... [nltk_data] Package stopwords is already up-to-date! Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-9-cd4bf8bea840> in <module>() 22 23 ---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train') 25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation') 26 test = load_dataset('cnn_dailymail', '3.0.0', split='test') 5 frames /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' Can someone please take a look ?
``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab
108
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error ``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab I see the issue happening again today - [nltk_data] Downloading package stopwords to /root/nltk_data... [nltk_data] Package stopwords is already up-to-date! Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-9-cd4bf8bea840> in <module>() 22 23 ---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train') 25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation') 26 test = load_dataset('cnn_dailymail', '3.0.0', split='test') 5 frames /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' Can someone please take a look ?
[ -0.22429364919662476, 0.14194555580615997, -0.02257644012570381, 0.2384323924779892, 0.3819936513900757, 0.12616479396820068, 0.6168972253799438, 0.21476022899150848, -0.023176494985818863, 0.13341261446475983, -0.1637570708990097, 0.05823663994669914, -0.37595605850219727, -0.1230773851275444, 0.00858310703188181, 0.11496834456920624, -0.09640133380889893, 0.1582959145307541, -0.2051093578338623, -0.1422850638628006, -0.39015090465545654, 0.18647970259189606, -0.07681800425052643, 0.015992728993296623, -0.2544404864311218, -0.20727293193340302, -0.11916924268007278, 0.4782716631889343, -0.22819186747074127, -0.3415713906288147, 0.2912246882915497, -0.19371247291564941, 0.25961366295814514, 0.6446202397346497, -0.00011036963405786082, 0.1348133087158203, 0.2574554979801178, -0.04598427936434746, -0.5990340709686279, -0.6107159852981567, -0.13449184596538544, -0.1810775101184845, 0.22242698073387146, -0.28574711084365845, -0.054574087262153625, 0.11204538494348526, 0.0625394731760025, 0.019521625712513924, 0.358936071395874, 0.5676549673080444, 0.23820547759532928, 0.25008758902549744, -0.021464478224515915, -0.14232490956783295, -0.1394204944372177, 0.3917783498764038, -0.0832958072423935, 0.5298010110855103, -0.37847891449928284, -0.007452039979398251, 0.30099183320999146, 0.256006121635437, -0.34675687551498413, 0.24812892079353333, 0.31058356165885925, 0.09317097812891006, 0.2014935165643692, -0.3185792863368988, 0.010255605913698673, 0.05206379294395447, 0.46281570196151733, -0.3776446580886841, -0.21393243968486786, -0.026094533503055573, 0.08748046308755875, -0.45195090770721436, 0.34401407837867737, 0.3034417927265167, -0.13032960891723633, 0.05318344756960869, -0.14617466926574707, -0.14383849501609802, -0.18141011893749237, 0.45204856991767883, -0.17188221216201782, 0.216728076338768, -0.057003483176231384, 0.031701426953077316, 0.04019494727253914, 0.054900214076042175, 0.5230502486228943, -0.20129266381263733, 0.11098290979862213, 0.16897539794445038, -0.025916792452335358, 0.061916373670101166, 0.2004215121269226, -0.19873358309268951, -0.19590240716934204, 0.16296948492527008, -0.08147423714399338, -0.2725147306919098, -0.030819259583950043, 0.04203583672642708, 0.056259069591760635, 0.18759822845458984, -0.08704245835542679, 0.5960314869880676, 0.20500248670578003, 0.25872328877449036, -0.012604729272425175, -0.1288866251707077, -0.3524656593799591, -0.24977244436740875, 0.10273817926645279, 0.055645059794187546, 0.6368334293365479, 0.08087032288312912, -0.2626219093799591, -0.17064745724201202, -0.2875085771083832, 0.026668930426239967, 0.18249335885047913, 0.37703701853752136, 0.08791899681091309, -0.0015788626624271274, 0.10185270756483078, 0.298002690076828, -0.0611400306224823, 0.320747047662735, -0.2227896749973297, 0.21217666566371918, -0.11940509080886841, -0.03893471509218216, 0.27058032155036926, -0.22022975981235504, 0.12178537994623184, -0.17325247824192047, -0.013737209141254425, -0.006397238001227379, 0.15506097674369812, -0.17590117454528809, 0.07422428578138351, 0.5078179836273193, -0.10871599614620209, 0.2788080871105194, 0.2708212733268738, 0.026556944474577904, -0.3172297477722168, 0.13267287611961365, -0.17933222651481628, -0.4073958694934845, -0.08903620392084122, 0.19182012975215912, 0.043320246040821075, -0.1540219634771347, 0.05123968422412872, -0.20447485148906708, -0.15101848542690277, -0.1646992713212967, -0.0049314131028950214, -0.19149328768253326, -0.08781344443559647, -0.359704852104187, 0.29434025287628174, 0.6152347922325134, -0.3911418318748474, 0.0004788172373082489, -0.42503809928894043, -0.15409711003303528, 0.17082400619983673, 0.2825906276702881, -0.18108513951301575, 0.41825246810913086, -0.21918146312236786, -0.21099770069122314, 0.46645036339759827, -0.4039044678211212, -0.4069182872772217, 0.16192474961280823, -0.16908469796180725, -0.0231497660279274, 0.014325356110930443, 0.19509358704090118, -0.1637679487466812, 0.08746533840894699, 0.031792670488357544, 0.344090074300766, -0.014081763103604317, 0.07915427535772324, -0.09520319104194641, -0.28910011053085327, 0.1494421660900116, 0.1394832581281662, 0.25371477007865906, 0.20653733611106873, 0.0017709374660626054, 0.05744459107518196, 0.03453671932220459, -0.13401465117931366, -0.019938616082072258, 0.19302888214588165, 0.48965984582901, 0.07062550634145737, -0.3033565580844879, -0.008036268875002861, -0.5152100920677185, 0.1154652088880539, 0.05067925900220871, 0.26885849237442017, -0.2443438321352005, 0.047581449151039124, -0.2807442545890808, -0.12132192403078079, -0.25187239050865173, -0.0720808133482933, 0.14134469628334045, 0.36262431740760803, 0.060217294842004776, 0.06581804156303406, -0.2875790297985077, 0.265007346868515, 0.055536895990371704, 0.14826105535030365, -0.13624058663845062, 0.4147205948829651, -0.19793321192264557, -0.062431540340185165, -0.04360814020037651, 0.13523173332214355, 0.23459604382514954, -0.1446535289287567, -0.13017615675926208, 0.36456698179244995, -0.15087762475013733, -0.07732515782117844, 0.03983456268906593, -0.10547773540019989, 0.07364774495363235, -0.03638342767953873, 0.23429471254348755, 0.36204993724823, 0.15993496775627136, -0.04314310848712921, -0.10023851692676544, 0.2904091775417328, 0.161952406167984, 0.03900686278939247, 0.15386953949928284, -0.03714342787861824, 0.03958963230252266, -0.055520325899124146, 0.10829395800828934, -0.041275620460510254, 0.21163299679756165, 0.09974299371242523, 0.47399839758872986, 0.022757867351174355, -0.13076385855674744, -0.3711324632167816, 0.2705959677696228, -0.13470476865768433, 0.14441987872123718, 0.15061569213867188, -0.2888514995574951, 0.0992453396320343, -0.19000357389450073, 0.14723391830921173, 0.6052933931350708, 0.11647143214941025, 0.032504573464393616, 0.12581440806388855, -0.08708975464105606, -0.07045233249664307, 0.20777972042560577, 0.08836475014686584, 0.2569265067577362, 0.2160898596048355, 0.06952632963657379, 0.06202807277441025, -0.39698582887649536, -0.2876620292663574, 0.04266822710633278, 0.4161449074745178, -0.393161803483963, 0.059592194855213165, -0.12448423355817795, -0.21660523116588593, -0.09777345508337021, -0.5352474451065063, -0.07868808507919312, -0.3155713677406311, -0.15556159615516663, 0.17356960475444794, 0.136760875582695, 0.1662634015083313, -0.12104170024394989, -0.12623023986816406, 0.10589098930358887, -0.4859180748462677, -0.20688454806804657, -0.048475924879312515, -0.017489396035671234, 0.06513438373804092, 0.2804500162601471, -0.10328426212072372, 0.2476302534341812, -0.13129734992980957, -0.12178000062704086, -0.18639975786209106, -0.09073702245950699, -0.0835309699177742, -0.10422536730766296, 0.2084372490644455, 0.2644515633583069, 0.35428187251091003, 0.04678964614868164, -0.19472180306911469, 0.3619302809238434, -0.18281283974647522, 0.02230934612452984, 0.32976189255714417, -0.1260293424129486, -0.01341637596487999, -0.06030938774347305, -0.5458142757415771, -0.5458025336265564, -0.3574637472629547, -0.11933516710996628, 0.12827718257904053, 0.1643214374780655, 0.4390517473220825, 0.14954295754432678, 0.1939636766910553, -0.10657420009374619, 0.004158708732575178, -0.02723453938961029, -0.1540684551000595, 0.4063130021095276, -0.28775298595428467, -0.24397093057632446, 0.1713535189628601, -0.04053157940506935, 0.19018878042697906, -0.16093745827674866, -0.4939943552017212, -0.2556864321231842, -0.0731523260474205, 0.03822851926088333, -0.19877098500728607, -0.0513618104159832, 0.21497207880020142, 0.09620245546102524, -0.10095468908548355, 0.15196190774440765, -0.13013975322246552, -0.04967598244547844, 0.16874666512012482, 0.020316218957304955, -0.21992731094360352, 0.5267882943153381, -0.2912862300872803, 0.5844218134880066, 0.12982162833213806, -0.09765943139791489, 0.3287144601345062, -0.20170393586158752, 0.43552058935165405, -0.21072228252887726, -0.5223431587219238, -0.07874470949172974, 0.28924351930618286, -0.17900392413139343, 0.18003366887569427, 0.05655980482697487, -0.2591913640499115, -0.26430121064186096, -0.04440329223871231, -0.3779844045639038, -0.07434634119272232, 0.11863704025745392, -0.017985668033361435, 0.07816614955663681, -0.05927811935544014, 0.0965210571885109, -0.1504163146018982, -0.1698937863111496, -0.12164269387722015, 0.37820887565612793, 0.01908038929104805, 0.10198818147182465, -0.028879506513476372, 0.027093490585684776, -0.314563125371933, 0.22980664670467377, -0.05207253620028496, 0.07154744118452072, -0.21872077882289886, 0.08311668783426285, -0.028510408475995064, 0.02931073307991028, 0.3612941801548004, -0.09238765388727188, 0.011215397156774998, 0.4276459515094757, 0.07234534621238708, -0.48506367206573486, -0.09465979039669037, -0.27619990706443787, 0.16767306625843048, -0.0012711372692137957, 0.20475035905838013, -0.11704536527395248, -0.16770797967910767, 0.39387115836143494, 0.27331477403640747, -0.07975421845912933, -0.32480666041374207, -0.4682423174381256, -0.3894965946674347, -0.42034047842025757, -0.07653450220823288, -0.12504030764102936, 0.0756569653749466, 0.10526258498430252, -0.12577420473098755, -0.03646106272935867, 0.02046174742281437, 0.11456078290939331, -0.014096644707024097, 0.24215707182884216, 0.06333689391613007, 0.12614576518535614, 0.12316720187664032, 0.15755648910999298, 0.3707532286643982, 0.5872361660003662, -0.10243786126375198, -0.3017362654209137, -0.08541230857372284, 0.13888566195964813, 0.0639617070555687, 0.21509778499603271, -0.20148135721683502, -0.34293633699417114, 0.09438811987638474, 0.19149842858314514, 0.04166151583194733, -0.03606000170111656, 0.5686715841293335, -0.1586034893989563, -0.3970257043838501, -0.2941635847091675, 0.40280789136886597, -0.1327410489320755, 0.1745825707912445, 0.26414376497268677, -0.16212210059165955, -0.19398662447929382, 0.11448348313570023, -0.2864447832107544, 0.7768791317939758, -0.11218404769897461, 0.2149880975484848, 0.675907552242279, 0.10972035676240921, 0.40763869881629944, -0.011414485983550549, 0.13721629977226257, -0.31179574131965637, -0.18353308737277985, -0.15314024686813354, -0.2621164917945862, 0.09902749210596085, 0.2857242226600647, -0.15700344741344452, 0.41382458806037903, -0.2599771022796631, 0.10280691832304001, -0.12730124592781067, 0.16036172211170197, -0.08527810871601105, 0.086126409471035, -0.3096992075443268, 0.18090343475341797, 0.023454345762729645, 0.38863009214401245, -0.22986763715744019, 0.10795562714338303, -0.15125982463359833, -0.2345503866672516, 0.0025136324111372232, 0.12334887683391571, -0.4199484884738922, 0.2769893407821655, -0.017625924199819565, -0.16460676491260529, -0.18694068491458893, 0.24710407853126526, -0.0704437643289566, -0.09757906943559647, -0.11746470630168915, 0.09919709712266922, -0.10496865212917328, -0.09004317969083786, -0.1319466382265091, 0.043658506125211716, 0.2979974150657654, -0.09784308075904846, -0.29418572783470154, 0.065716452896595, -0.14507268369197845, -0.2795203924179077, 0.22773697972297668, 0.05663677304983139, 0.267498254776001, -0.35831180214881897, -0.2808162569999695, -0.04018239304423332, -0.05219987779855728, -0.07768823206424713, 0.14193172752857208, 0.003921553026884794, 0.019712263718247414, 0.07144839316606522, -0.2434995174407959, -0.35598093271255493, -0.16121330857276917, 0.2835136651992798, -0.20988468825817108, 0.060740601271390915, 0.5739113092422485, 0.1368577629327774, -0.20890367031097412, -0.30132821202278137, 0.1953057199716568, 0.039161648601293564, -0.17534160614013672, 0.22514043748378754, 0.23657549917697906, 0.2649995684623718, -0.012553251348435879, 0.25551071763038635, 0.2237347960472107, -0.06297234445810318, -0.19746491312980652, -0.3072936534881592, -0.1711302250623703, 0.028605520725250244, 0.09783919155597687, 0.2520796060562134, 0.0883999615907669, 0.06311094760894775, 0.38338813185691833, -0.26585087180137634, -0.318599134683609, 0.011984273791313171, -0.016288259997963905, -0.061221759766340256, 0.07422389835119247, -0.059522658586502075, 0.5541487336158752, 0.012095516547560692, 0.214797705411911, -0.33515745401382446, -0.06588752567768097, -0.28231003880500793, -0.019232016056776047, 0.12739692628383636, 0.12418340146541595, -0.11537779867649078, 0.08203521370887756, -0.2575685977935791, -0.21829086542129517, -0.12886489927768707, -0.05567975342273712, 0.2382218837738037, -0.06395877152681351, 0.1493336409330368, 0.058908794075250626, -0.0790569931268692, -0.1343449354171753, 0.06020428612828255, -0.25758546590805054, 0.09186315536499023, 0.03790970891714096, 0.1405530571937561, 0.2113550901412964, -0.13552437722682953, -0.4185718297958374, -0.04942972585558891, 0.03348657488822937, 0.02623436599969864, 0.2199251502752304, -0.18697166442871094, -0.010104424320161343, -0.007281802594661713, 0.35884377360343933, 0.1904226690530777, -0.28650015592575073, 0.05406952649354935, 0.21503347158432007, 0.21829292178153992, -0.2886960208415985, 0.07968881726264954, -0.0444067120552063, 0.06192303076386452, 0.1027723178267479, 0.19136817753314972, -0.3624686896800995, 0.06468956917524338, -0.19609016180038452, 0.0315483994781971, 0.3888273239135742, -0.19768986105918884, 0.05164984241127968, 0.3998374938964844, -0.1716943085193634, 0.06772912293672562, 0.28481850028038025, 0.044519610702991486, 0.10667303204536438, 0.5403013229370117, -0.16916504502296448, 0.02743406407535076, -0.2749084234237671, -0.11549869924783707, 0.009339846670627594, -0.3157513439655304, 0.05279729887843132, 0.1499107927083969, -0.027592932805418968, -0.00613235542550683, -0.1501961499452591, 0.272535115480423, -0.45939844846725464, 0.12138230353593826, -0.37641942501068115, 0.37778764963150024, -0.1425219178199768, 0.1625407636165619, -0.15795767307281494, 0.010523304343223572, -0.012090603820979595, 0.044616829603910446, 0.019514886662364006, -0.24715659022331238, 0.2412211000919342, 0.4903680086135864, -0.1194797083735466, -0.14135172963142395, 0.39036428928375244, 0.2625904679298401, -0.13529188930988312, -0.23590238392353058, 0.30254682898521423, 0.3034746050834656, 0.12000046670436859, -0.049258265644311905, 0.48707497119903564, 0.4269421100616455, 0.40906214714050293, 0.003902050433680415, 0.20132194459438324, -0.010010976344347, -0.18893128633499146, -0.02149575762450695, 0.08820028603076935, -0.055045243352651596, 0.5318019986152649, 0.16388502717018127, 0.2567688822746277, -0.24685437977313995, 0.18549613654613495, 0.013369162566959858, -0.01594931073486805, -0.1292082965373993, 0.6912088990211487, -0.256479412317276, -0.10568971186876297, -0.23310965299606323, 0.0544380247592926, -0.5289072394371033, 0.25208428502082825, 0.35357627272605896, 0.08126424252986908, 0.10963645577430725, 0.07250567525625229, 0.07782839238643646, 0.044587407261133194, 0.27820509672164917, 0.34274300932884216, 0.305381715297699, -0.5661411285400391, 0.02439050003886223, -0.6365787386894226, 0.1711902916431427, -0.28920334577560425, -0.04344865679740906, -0.18065106868743896, -0.015652943402528763, -0.13643336296081543, 0.12965911626815796, 0.12616676092147827, 0.053683482110500336, -0.053469181060791016, -0.10564623773097992, -0.28983768820762634, -0.09530303627252579, -0.06266506761312485, 0.025723077356815338, 0.015950409695506096, -0.49501973390579224, 0.024820180609822273, -0.41318070888519287, 0.0006359409308061004, 0.02705782651901245, -0.13350775837898254, 0.039698485285043716, 0.3611615300178528, 0.4533376395702362, -0.026389753445982933, 0.5661259293556213, -0.06055910885334015, -0.19656257331371307, -0.19135266542434692, -0.2649543583393097, -0.159800186753273, 0.2294662594795227, 0.14610408246517181, 0.3851699233055115, -0.30641430616378784, -0.008760491386055946, -0.4270082712173462, 0.29012978076934814, -0.0378122553229332, -0.06739604473114014, -0.20098596811294556, 0.002369516994804144, -0.13161985576152802, 0.19836224615573883, 0.14646199345588684, -0.015197908505797386, -0.08407775312662125, 0.1883648931980133, -0.2635802626609802, -0.38849297165870667, 0.46128344535827637, -0.2634081542491913, -0.24366147816181183, 0.04287542775273323, 0.1699991375207901, -0.09318606555461884, 0.1788189709186554, -0.4839809238910675, 0.3811463713645935, 0.4383370280265808, 0.16402976214885712, -0.21903730928897858, 0.13784706592559814, 0.0010959042701870203, 0.13838522136211395, 0.07924062758684158, 0.4123993515968323, 0.007534682750701904, -0.38257673382759094, -0.034083180129528046, -0.11865542083978653 ]
https://github.com/huggingface/datasets/issues/871
terminate called after throwing an instance of 'google::protobuf::FatalException'
Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side. Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.)
Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted
39
terminate called after throwing an instance of 'google::protobuf::FatalException' Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side. Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.)
[ -0.27569589018821716, -0.6896209120750427, 0.11620399355888367, 0.3686628043651581, 0.33441972732543945, -0.06123006343841553, 0.33480292558670044, 0.15361040830612183, -0.2083389014005661, 0.11798208951950073, -0.06540079414844513, -0.33246099948883057, -0.029531532898545265, 0.40582117438316345, -0.18327921628952026, -0.29906702041625977, 0.01895461231470108, 0.15408912301063538, -0.4621332883834839, -0.002164516830816865, -0.22905513644218445, 0.3899807035923004, -0.21345874667167664, 0.34838855266571045, -0.11307904869318008, 0.11780715733766556, 0.0829802080988884, 0.012772291898727417, -0.09498383104801178, -0.23160457611083984, 0.22116512060165405, -0.09099621325731277, 0.16676515340805054, 0.3702024221420288, -0.000131123248138465, -0.03679075837135315, 0.2655956745147705, 0.057068828493356705, -0.14401380717754364, 0.11046813428401947, -0.05115443095564842, 0.1461777240037918, 0.053619347512722015, 0.036150965839624405, 0.05987928807735443, -0.2049444019794464, 0.20898817479610443, 0.23126375675201416, 0.48973968625068665, 0.01516276877373457, 0.05317847803235054, 0.30633214116096497, 0.3312014639377594, 0.08169929683208466, -0.02704434096813202, -0.11656372249126434, -0.2888149321079254, -0.06281077116727829, -0.11185982823371887, -0.0160782802850008, 0.3052903413772583, 0.01099300105124712, 0.07653294503688812, -0.18105196952819824, -0.16580502688884735, -0.04648638516664505, 0.49198776483535767, -0.3176008462905884, 0.2732110321521759, 0.3026654124259949, 0.5659940242767334, -0.20894478261470795, -0.3208206295967102, 0.28250908851623535, -0.16296371817588806, -0.6633645296096802, 0.029517577961087227, 0.015764474868774414, 0.036827754229307175, 0.28724434971809387, -0.17659428715705872, -0.07471541315317154, -0.3560751676559448, 0.061863839626312256, -0.2483202964067459, 0.34577691555023193, -0.07240995019674301, 0.3870839476585388, 0.1909075826406479, 0.06618931889533997, -0.32798153162002563, 0.27978527545928955, -0.1643180251121521, 0.039190392941236496, -0.35669878125190735, -0.2677066922187805, -0.07975506037473679, 0.1459318995475769, 0.17029476165771484, 0.12136532366275787, -0.08849160373210907, 0.057484034448862076, 0.2507763206958771, 0.11395392566919327, 0.44809308648109436, 0.08888484537601471, -0.09092505276203156, 0.09555651992559433, 0.2637127637863159, 0.19253772497177124, -0.01999787800014019, 0.06089061498641968, 0.17070426046848297, -0.20564788579940796, 0.21660961210727692, -0.03908998519182205, 0.5442742705345154, -0.4371441900730133, -0.398093581199646, 0.32826700806617737, -0.5851675868034363, 0.07343176752328873, 0.10951203852891922, 0.4647294580936432, -0.02187471091747284, 0.15910744667053223, 0.22889935970306396, 0.0017639530124142766, -0.2170955091714859, -0.32988330721855164, -0.032527316361665726, 0.1248779296875, 0.013593084178864956, 0.07924643158912659, -0.09380672127008438, -0.11054529249668121, 0.01896066404879093, -0.16876648366451263, 0.057033833116292953, -0.41750669479370117, -0.03151342272758484, -0.20174187421798706, -0.21511800587177277, 0.047676924616098404, 0.023026088252663612, 0.09130164235830307, 0.06268201023340225, 0.23382428288459778, -0.10884416848421097, -0.019475551322102547, 0.23287296295166016, -0.44189074635505676, -0.11681564897298813, 0.020934712141752243, -0.37186145782470703, 0.07001135498285294, 0.05117736756801605, 0.10088977217674255, 0.01172103825956583, 0.06472527980804443, 0.01120412815362215, -0.11784525215625763, -0.6016011834144592, 0.09555979818105698, 0.21376356482505798, 0.5098159909248352, -0.2983205318450928, -0.2831718325614929, 0.021423691883683205, -0.2185613214969635, 0.13308416306972504, 0.35102570056915283, -0.10740523040294647, 0.47403857111930847, -0.16802284121513367, 0.07712790369987488, 0.4050411581993103, -0.07548562437295914, -0.4074365198612213, 0.2993322014808655, -0.10437498241662979, -0.026438703760504723, -0.23135699331760406, -0.33122628927230835, -0.21086369454860687, -0.09103106707334518, -0.4682711660861969, 0.08347783982753754, 0.004256767686456442, 0.022909000515937805, -0.3265223801136017, -0.27868279814720154, 0.20170114934444427, 0.12925897538661957, 0.0848957821726799, -0.1155645027756691, 0.04390523582696915, 0.5326945781707764, 0.007924564182758331, -0.1599249541759491, -0.07170264422893524, 0.22964371740818024, 0.37246695160865784, 0.09578633308410645, 0.001630739658139646, -0.0008601860026828945, -0.3926892578601837, 0.19199414551258087, -0.15096338093280792, 0.3499157726764679, -0.03398162126541138, 0.13163228332996368, -0.39843177795410156, 0.23843571543693542, -0.3872944414615631, -0.20965608954429626, 0.042325105518102646, 0.1670190393924713, -0.113526351749897, -0.021738369017839432, -0.0022789109498262405, 0.22308719158172607, -0.3238992393016815, 0.1648084819316864, -0.1945527195930481, 0.21807946264743805, -0.12903878092765808, -0.18675239384174347, -0.09208802133798599, 0.20057396590709686, 0.12426253408193588, -0.24721673130989075, -0.08120314031839371, 0.5033462047576904, -0.449703186750412, 0.36225348711013794, 0.12569786608219147, 0.27147090435028076, -0.10726330429315567, -0.7133027911186218, -0.14916476607322693, 0.060578685253858566, 0.044292330741882324, 0.08424825966358185, 0.27216583490371704, 0.020963869988918304, 0.36870071291923523, 0.10027974843978882, 0.04224430024623871, -0.13728652894496918, 0.07694216817617416, -0.12706586718559265, -0.3090759217739105, -0.05677285045385361, 0.1960817575454712, 0.097505122423172, -0.09797322005033493, 0.09257490932941437, -0.31716740131378174, -0.18594637513160706, 0.5001768469810486, -0.38950109481811523, 0.10555274039506912, 0.19409166276454926, 0.2213129997253418, 0.01582769863307476, -0.01677062176167965, -0.37219396233558655, 0.43212565779685974, -0.11884577572345734, -0.044710300862789154, 0.29256805777549744, -0.23492318391799927, 0.30689844489097595, 0.21098273992538452, 0.22688177227973938, -0.09907925873994827, 0.2470557987689972, 0.15112976729869843, 0.12757593393325806, -0.283547580242157, 0.1348000317811966, -0.029207957908511162, 0.31933799386024475, -0.34931230545043945, 0.3340667486190796, -0.2501598298549652, 0.0029519873205572367, -0.08443579822778702, 0.16953635215759277, -0.23277583718299866, -0.11750189960002899, -0.07774621993303299, 0.34786295890808105, 0.2846856713294983, 0.2375229299068451, 0.13631336390972137, 0.2873675525188446, 0.31231650710105896, 0.05048348009586334, 0.07764634490013123, 0.060675282031297684, -0.37154972553253174, -0.1625666320323944, 0.27890631556510925, -0.008419184945523739, 0.17553824186325073, -0.03872806951403618, -0.2875964343547821, -0.19484487175941467, -0.26290959119796753, 0.43664368987083435, -0.2573668956756592, 0.3862493634223938, 0.25499558448791504, 0.3238663673400879, 0.05080539733171463, -0.23213563859462738, 0.3769742548465729, -0.08049871772527695, -0.11127501726150513, 0.14767344295978546, 0.008017650805413723, 0.0012477427953854203, -0.13220171630382538, -0.15455184876918793, -0.0031239185482263565, -0.25350213050842285, 0.3643805682659149, -0.12523242831230164, -0.045461516827344894, 0.15976396203041077, 0.08160360902547836, 0.0978144109249115, 0.032448556274175644, 0.09449722617864609, -0.2424064427614212, 0.07129336148500443, 0.1028505265712738, 0.17086859047412872, -0.10956263542175293, 0.08422239124774933, 0.16288049519062042, 0.40060582756996155, 0.02700469270348549, -0.5209593176841736, -0.0805869773030281, -0.015272979624569416, -0.25423571467399597, -0.0713413879275322, 0.1167050302028656, 0.3368329405784607, 0.08288276940584183, 0.163786843419075, 0.11311206966638565, -0.05771374702453613, 0.36266523599624634, 0.12090245634317398, 0.43644338846206665, 0.1704394370317459, 0.6243669986724854, 0.03596734628081322, 0.44714680314064026, 0.22757314145565033, -0.09470583498477936, 0.31195491552352905, 0.09369418770074844, 0.0500950962305069, -0.06400416791439056, -0.2120331972837448, 0.005694699939340353, -0.1506766527891159, -0.13624823093414307, 0.32139384746551514, -0.12736128270626068, -0.05249301344156265, -0.21991263329982758, 0.3802458941936493, -0.2665288746356964, -0.3836388885974884, -0.1950196623802185, 0.47910821437835693, 0.4469764530658722, -0.2117854505777359, -0.12935104966163635, 0.02105581760406494, 0.1487216353416443, 0.2695368826389313, 0.016481710597872734, 0.0836106538772583, -0.029998965561389923, 0.12476471066474915, -0.1271423101425171, -0.32141900062561035, 0.2202683389186859, 0.08249574899673462, 0.3695676326751709, -0.22897225618362427, -0.05238335579633713, 0.22291673719882965, -0.08946023136377335, 0.3142288327217102, -0.11100228875875473, 0.09588702768087387, -0.022349322214722633, -0.38088780641555786, -0.0712859183549881, -0.17074920237064362, -0.24586404860019684, -0.05346972867846489, 0.11161940544843674, 0.19627542793750763, -0.7227668166160583, -0.14655444025993347, 0.6654107570648193, 0.014880784787237644, -0.2597120404243469, -0.030794931575655937, -0.4269813597202301, -0.42446786165237427, -0.3164529502391815, 0.026061968877911568, 0.1898840218782425, -0.02285246178507805, -0.1808919608592987, 0.10038876533508301, 0.12158417701721191, -0.3787502646446228, 0.16770195960998535, 0.2431923896074295, -0.07777514308691025, -0.29462966322898865, -0.14196284115314484, 0.15226103365421295, -0.24289682507514954, -0.20915740728378296, 0.31842583417892456, 0.23157727718353271, -0.3591952323913574, 0.3091990649700165, 0.19302693009376526, 0.12608209252357483, 0.4352565407752991, -0.23745325207710266, 0.024191156029701233, -0.3933623135089874, 0.1062254086136818, -0.07479836791753769, 0.18969692289829254, 0.6916984915733337, 0.1641768366098404, -0.37326669692993164, 0.1904454380273819, 0.4620968699455261, -0.19210703670978546, 0.03807666152715683, 0.22014078497886658, 0.36272919178009033, -0.14664623141288757, 0.23825640976428986, -0.10888570547103882, 1.2690058946609497, 0.08175548166036606, -0.18399514257907867, 0.3657669425010681, 0.17863184213638306, 0.25740736722946167, -0.27535074949264526, 0.21422329545021057, -0.28460773825645447, -0.2586659789085388, -0.09806407988071442, -0.03248165547847748, -0.03317275270819664, -0.11191357672214508, -0.4678323268890381, 0.32711899280548096, 0.15955738723278046, -0.13850808143615723, 0.20324409008026123, 0.27439069747924805, 0.00848808977752924, -0.006602494511753321, -0.24903351068496704, -0.012261548079550266, -0.0838417336344719, 0.5479552149772644, -0.40077731013298035, -0.04081527516245842, 0.18848876655101776, 0.06910540163516998, -0.5751296281814575, 0.19629831612110138, -0.23015619814395905, 0.008863638155162334, 0.16889306902885437, -0.1305917650461197, 0.31031686067581177, 0.11134209483861923, 0.38878270983695984, 0.15055356919765472, -0.32235032320022583, 0.09068693220615387, -0.23857158422470093, -0.10925140976905823, -0.14395172894001007, 0.2629024386405945, 0.0636340007185936, -0.12798111140727997, -0.4963591396808624, 0.1836189180612564, -0.02756979875266552, -0.1637548804283142, 0.03909101337194443, -0.48679807782173157, -0.11434294283390045, -0.48121175169944763, -0.04990861192345619, 0.06446259468793869, -0.33225733041763306, -0.19103552401065826, -0.02412176877260208, -0.07082035392522812, -0.4919300675392151, -0.04464675858616829, 0.13531991839408875, -0.33588212728500366, -0.0327952541410923, 0.2914809584617615, -0.46472904086112976, 0.4955451786518097, 0.5175930261611938, 0.4059629440307617, 0.034502286463975906, -0.12265012413263321, -0.41053298115730286, -0.10571024566888809, -0.7558625340461731, 0.10901813954114914, -0.046293530613183975, -0.12767066061496735, 0.004685619845986366, 0.6766908764839172, 0.189372256398201, 0.08324678242206573, 0.037534698843955994, -0.02918163128197193, -0.16488195955753326, 0.29037362337112427, 0.03593873605132103, 0.3929036557674408, 0.02639068476855755, 0.6678970456123352, -0.18166892230510712, -0.20870016515254974, -0.13483519852161407, -0.11404281854629517, -0.5952388048171997, 0.043154601007699966, 0.6293126344680786, -0.4968094229698181, 0.25512078404426575, 0.21875381469726562, 0.04709233343601227, 0.3650161325931549, -0.1530410498380661, -0.00855120550841093, 0.0009551864350214601, 0.21529270708560944, 0.14327993988990784, -0.2293226420879364, -0.049996066838502884, 0.06482327729463577, 0.11819731444120407, 0.022332390770316124, 0.1977395862340927, -0.03454729542136192, 0.1043080985546112, 0.16686077415943146, 0.43377524614334106, 0.08937548846006393, -0.32854172587394714, -0.08265721797943115, 0.15691214799880981, 0.3206031024456024, 0.4231327772140503, 0.1758081614971161, -0.022117143496870995, -0.1343773752450943, -0.009830385446548462, 0.25184231996536255, 0.5083558559417725, -0.077610544860363, 0.3535533845424652, -0.23448769748210907, -0.17375962436199188, -0.25267553329467773, 0.40684399008750916, 0.43582218885421753, -0.30305805802345276, -0.07764510810375214, -0.042938243597745895, -0.017499875277280807, -0.13700814545154572, 0.060275327414274216, 0.21706423163414001, -0.07615213096141815, -0.16534283757209778, 0.5258347988128662, 0.07069303840398788, 0.09775915741920471, 0.3721160590648651, 0.2665565609931946, 0.27288752794265747, -0.15310676395893097, -0.05376025289297104, 0.27096226811408997, -0.3218208849430084, 0.23328018188476562, 0.08798910677433014, -0.014997567981481552, 0.3673684597015381, -0.10523660480976105, -0.1762789934873581, -0.0077575682662427425, -0.6213685870170593, 0.5529293417930603, 0.09946241974830627, -0.41194793581962585, -0.16083337366580963, 0.09557126462459564, 0.25796663761138916, 0.1640237420797348, -0.16619138419628143, 0.3881981074810028, 0.09010176360607147, -0.3478374183177948, -0.4924354553222656, 0.562711775302887, -0.12206865847110748, -0.3420296311378479, 0.12244457751512527, 0.0005515515804290771, -0.498129665851593, 0.22306427359580994, -0.15280725061893463, -0.3076905906200409, -0.15389543771743774, 0.17346517741680145, -0.17867957055568695, -0.24127109348773956, -0.3105510175228119, 0.13490812480449677, 0.08297918736934662, -0.1681087166070938, 0.3439396619796753, 0.25360119342803955, -0.23037295043468475, -0.25078049302101135, 0.4816981256008148, 0.0894157662987709, -0.07687656581401825, -0.2228051722049713, 0.20029647648334503, 0.018481560051441193, 0.1735888123512268, 0.17933377623558044, -0.02328828163444996, -0.008465289138257504, 0.23011250793933868, 0.21806946396827698, -0.09707426279783249, -0.030791515484452248, -0.021437404677271843, -0.08976753056049347, 0.1906958669424057, -0.5353975892066956, 0.04914131760597229, -0.11279590427875519, 0.002069719834253192, -0.42661428451538086, 0.2310681790113449, -0.43420153856277466, 0.28868862986564636, 0.2736757695674896, 0.001820667297579348, 0.06864504516124725, 0.15500229597091675, -0.03759688884019852, -0.10033415257930756, 0.3217400908470154, 0.4034503698348999, 0.04916743189096451, -0.33473992347717285, -0.20308010280132294, -0.22732321918010712, 0.3524520993232727, 0.017469584941864014, 0.3788686692714691, 0.348982572555542, 0.07741273194551468, -0.1255187839269638, 0.22824636101722717, 0.13925795257091522, 0.27322033047676086, -0.14632731676101685, 0.2943370044231415, -0.1593061089515686, -0.20223604142665863, -0.3895680904388428, -0.032048299908638, -0.06848588585853577, -0.1479365974664688, 0.1528613120317459, -0.04834732785820961, -0.09997624903917313, 0.01953498274087906, -0.49157747626304626, -0.39923223853111267, -0.13820768892765045, 0.047133155167102814, 0.2893936336040497, -0.0539361909031868, -0.11066171526908875, -0.19351011514663696, -0.16310010850429535, -0.36013057827949524, -0.13715729117393494, 0.13299770653247833, -0.20413164794445038, 0.12725476920604706, -0.011605496518313885, 0.33299651741981506, -0.39214080572128296, -0.02412596344947815, 0.21379418671131134, -0.18174701929092407, -0.3372455835342407, -0.02583344094455242, -0.24926896393299103, -0.07170451432466507, 0.10516379028558731, 0.22073446214199066, 0.12198431044816971, 0.03837982565164566, -0.47200894355773926, 0.005641232710331678, 0.6514025926589966, -0.03940070420503616, -0.10219665616750717, 0.025126416236162186, 0.03071555681526661, 0.3078179657459259, -0.15967890620231628, -0.5445802807807922, 0.06367199867963791, -0.02195141464471817, 0.07918976247310638, -0.24916134774684906, 0.16850104928016663, 0.10204647481441498, -0.03600684180855751, 0.11724061518907547, 0.3234376609325409, 0.24808356165885925, 0.08096307516098022, 0.3928491771221161, -0.04647566378116608 ]
https://github.com/huggingface/datasets/issues/871
terminate called after throwing an instance of 'google::protobuf::FatalException'
closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks
Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted
19
terminate called after throwing an instance of 'google::protobuf::FatalException' Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks
[ -0.18254946172237396, -0.7557111978530884, 0.08364050835371017, 0.5567317008972168, 0.3312144875526428, -0.0441037081182003, 0.22861286997795105, 0.22010166943073273, -0.37961509823799133, 0.3128044903278351, -0.010041490197181702, -0.42508333921432495, 0.0028819746803492308, 0.5060402154922485, -0.22879217565059662, -0.433233380317688, -0.07104767113924026, 0.30942314863204956, -0.3874346613883972, 0.101139135658741, -0.22644588351249695, 0.4186724126338959, -0.2191983312368393, 0.18528366088867188, 0.008175665512681007, 0.19571010768413544, -0.05771857872605324, -0.06671362370252609, -0.35311827063560486, -0.34685322642326355, 0.018220344558358192, -0.20398463308811188, 0.0581338107585907, 0.3137003183364868, -0.00013062372454442084, -0.028428178280591965, 0.23188894987106323, -0.0366353914141655, -0.0024561807513237, 0.11101365089416504, -0.04044672101736069, 0.0954328179359436, -0.043241262435913086, 0.05717005208134651, -0.02147301845252514, -0.24902349710464478, 0.13409747183322906, 0.08242754638195038, 0.4000385105609894, 0.17781458795070648, 0.05987948924303055, 0.07082866877317429, 0.5268979072570801, 0.10118789970874786, 0.13038553297519684, -0.185942605137825, -0.2451234757900238, -0.05441371351480484, -0.08722328394651413, 0.25439387559890747, 0.25192058086395264, 0.012765105813741684, 0.2343602031469345, -0.1039736196398735, -0.15830031037330627, -0.16672173142433167, 0.46949344873428345, -0.3594512641429901, 0.37392351031303406, 0.5036092400550842, 0.4249299466609955, -0.15960738062858582, -0.23899181187152863, 0.19788111746311188, -0.04637577384710312, -0.7821173667907715, 0.021462541073560715, 0.11774004250764847, -0.03140191361308098, 0.31774118542671204, -0.19563637673854828, 0.025042332708835602, -0.39133918285369873, -0.05355014279484749, -0.3420301079750061, 0.10481666773557663, -0.15630696713924408, 0.2693479657173157, 0.3107011318206787, -0.012363308109343052, -0.36895763874053955, 0.44683030247688293, -0.22334721684455872, 0.004629872739315033, -0.316767156124115, -0.28400543332099915, -0.08767513185739517, 0.08858762681484222, 0.34257030487060547, 0.09834152460098267, 0.02997807040810585, -0.04418601840734482, 0.3686298131942749, -0.07317736744880676, 0.4484461545944214, 0.06989680975675583, -0.17500558495521545, -0.04746141657233238, -0.030417131260037422, 0.2391151636838913, -0.08339308947324753, 0.039903655648231506, 0.0878181979060173, -0.3864690065383911, 0.03345109522342682, -0.061244212090969086, 0.5407345294952393, -0.4030382037162781, -0.3742871880531311, 0.5508584976196289, -0.5646089315414429, 0.13828150928020477, -0.015263823792338371, 0.3928346037864685, 0.036888234317302704, 0.3064082860946655, 0.12086150050163269, -0.025470668449997902, -0.18153879046440125, -0.4603443443775177, -0.03245881199836731, 0.057185158133506775, 0.06870530545711517, -0.038194041699171066, -0.22900156676769257, -0.1918761283159256, 0.02742568776011467, -0.1162862703204155, 0.23013541102409363, -0.48243656754493713, -0.05260799825191498, -0.38605764508247375, -0.12722188234329224, 0.05829570069909096, 0.10700852423906326, -0.09415024518966675, 0.003993939142674208, 0.12282184511423111, -0.13687804341316223, 0.10214237868785858, 0.20300716161727905, -0.34195008873939514, -0.20195788145065308, 0.04431810975074768, -0.27579882740974426, 0.24913203716278076, 0.0974385216832161, 0.2676692605018616, 0.07013998925685883, 0.1285991072654724, 0.03754795342683792, -0.29709935188293457, -0.5591113567352295, 0.03338005766272545, 0.21096421778202057, 0.35389116406440735, -0.45210111141204834, -0.1101316288113594, 0.12893728911876678, -0.16270774602890015, 0.20673882961273193, 0.3624172508716583, 0.06594212353229523, 0.2911645174026489, -0.20806920528411865, 0.1842990666627884, 0.38464272022247314, 0.004161858465522528, -0.44751718640327454, 0.4741543233394623, -0.1718916893005371, 0.026861319318413734, -0.08158482611179352, -0.5575344562530518, -0.07633122056722641, 0.0625411793589592, -0.3875141143798828, 0.060940973460674286, -0.05042734742164612, -0.1020275130867958, -0.37869617342948914, -0.33488285541534424, 0.28696590662002563, 0.052184827625751495, 0.0931098610162735, -0.2644413113594055, -0.028908157721161842, 0.34709665179252625, 0.10545378923416138, -0.11647960543632507, -0.05464112013578415, 0.2943664491176605, 0.15999501943588257, -0.01236726064234972, 0.05001925677061081, -0.07154271006584167, -0.059886086732149124, 0.1266554594039917, -0.1815439760684967, 0.23022857308387756, 0.18110747635364532, 0.04776524752378464, -0.4110564887523651, 0.24065205454826355, -0.19585461914539337, -0.1214049682021141, 0.08132819831371307, 0.09050647914409637, 0.003174777841195464, 0.03350647911429405, 0.037717510014772415, 0.037336304783821106, -0.2790016829967499, 0.19658216834068298, -0.1421758383512497, 0.06883736699819565, -0.21338322758674622, -0.11222582310438156, 0.00006986124208196998, 0.22615382075309753, 0.07854649424552917, -0.13267511129379272, -0.13583585619926453, 0.4077901542186737, -0.14598043262958527, 0.17883162200450897, -0.0823337659239769, 0.07999619096517563, -0.1061849296092987, -0.6050520539283752, 0.07276419550180435, 0.0006512382533401251, -0.0793633908033371, 0.08023221045732498, 0.40089914202690125, 0.003371055470779538, 0.4482312798500061, 0.1287202388048172, 0.04078716039657593, -0.29532474279403687, 0.040761303156614304, -0.030797546729445457, -0.26582562923431396, -0.11307722330093384, 0.2272968292236328, 0.049201902002096176, 0.026458587497472763, 0.09018639475107193, -0.37225353717803955, 0.04332859069108963, 0.5868813991546631, -0.3244766294956207, -0.02045118808746338, 0.35209769010543823, 0.19123563170433044, -0.09753964841365814, -0.15231376886367798, -0.2997421324253082, 0.28990015387535095, -0.027874654158949852, 0.11707818508148193, 0.22326402366161346, -0.17305593192577362, 0.17398931086063385, 0.20378494262695312, 0.2063530832529068, -0.04245773330330849, 0.3433322608470917, 0.16077905893325806, 0.0747344046831131, -0.19427452981472015, 0.13785605132579803, -0.08421700447797775, 0.28024744987487793, -0.29426372051239014, 0.206705242395401, -0.3464753329753876, -0.10273055732250214, -0.03601537644863129, 0.20285621285438538, -0.1097780391573906, -0.07750207930803299, -0.01218120101839304, 0.1491120457649231, 0.20925530791282654, 0.09432592242956161, 0.015966549515724182, 0.34568923711776733, 0.3015304505825043, 0.304315984249115, 0.1930476725101471, 0.27217766642570496, -0.3297426402568817, -0.07925591617822647, 0.2436174899339676, -0.09949657320976257, 0.10182075947523117, -0.004535416141152382, -0.2779582440853119, 0.04787765443325043, -0.31904545426368713, 0.3975227475166321, -0.2260143905878067, 0.4261755347251892, 0.2910580039024353, 0.3495922386646271, 0.16240867972373962, -0.12865100800991058, 0.2713702619075775, 0.13101042807102203, -0.21495173871517181, 0.11897527426481247, 0.04337489232420921, 0.10602647066116333, -0.19288471341133118, 0.004767452832311392, 0.07560905814170837, -0.3440091609954834, 0.5978230834007263, 0.07256928831338882, 0.09807935357093811, 0.10024227201938629, 0.2643185257911682, 0.19800923764705658, 0.132068932056427, 0.2236948013305664, -0.3274860084056854, -0.09454190731048584, 0.07023462653160095, 0.060145966708660126, -0.10190266370773315, 0.020338816568255424, 0.12517182528972626, 0.5520705580711365, 0.009498476050794125, -0.6542898416519165, -0.06412345170974731, -0.03937938064336777, -0.32251712679862976, -0.054802097380161285, 0.011852200143039227, 0.21948951482772827, -0.014438384212553501, 0.1663333624601364, 0.12421397119760513, 0.008111173287034035, 0.2320035696029663, 0.10270135849714279, 0.327629029750824, 0.13013193011283875, 0.6841685175895691, 0.1434118151664734, 0.4717104136943817, 0.3242800235748291, 0.0999210849404335, 0.22921088337898254, -0.014260743744671345, 0.15263742208480835, -0.18740971386432648, 0.0287792831659317, 0.20105700194835663, -0.1487104445695877, -0.22891727089881897, 0.3736221194267273, -0.14041702449321747, -0.03571547567844391, -0.0309781301766634, 0.2981743812561035, -0.1749616265296936, -0.3061988353729248, -0.01855519786477089, 0.43171435594558716, 0.1991913914680481, -0.3637695014476776, 0.01991582289338112, 0.09474334120750427, 0.11488863825798035, 0.10373972356319427, -0.14329151809215546, 0.050927016884088516, 0.10690119862556458, 0.12872372567653656, -0.2539623975753784, -0.45311930775642395, 0.23276843130588531, 0.1363755315542221, 0.2795751094818115, -0.21905666589736938, -0.10295544564723969, 0.20033332705497742, -0.14135955274105072, 0.25346800684928894, -0.061666689813137054, 0.004179803654551506, 0.0870194137096405, -0.2812100648880005, -0.010608525015413761, -0.14893363416194916, -0.1682462841272354, -0.0887434110045433, 0.09990810602903366, 0.06295925378799438, -0.6216033697128296, -0.0018602594500407577, 0.6708576679229736, 0.005220734514296055, -0.11654900759458542, 0.1024371087551117, -0.38251256942749023, -0.4406276047229767, -0.27100440859794617, 0.09879841655492783, 0.30511000752449036, 0.14906293153762817, -0.1904391348361969, -0.020802145823836327, 0.0858970358967781, -0.34691816568374634, 0.20354661345481873, 0.28554826974868774, -0.055069584399461746, -0.2784854769706726, -0.090960793197155, 0.0618513822555542, -0.2808569073677063, -0.009250972419977188, 0.32375890016555786, 0.18738093972206116, -0.4014207720756531, 0.37999090552330017, 0.1589241474866867, 0.2553515136241913, 0.5518895387649536, -0.19939954578876495, 0.1199701577425003, -0.36126479506492615, 0.32711371779441833, -0.20009620487689972, 0.3403966724872589, 0.6970120668411255, -0.008873897604644299, -0.27932417392730713, 0.12687493860721588, 0.3541107475757599, -0.30837321281433105, 0.1861293911933899, 0.2749045789241791, 0.4879729449748993, -0.1317806839942932, 0.2013566941022873, -0.029575267806649208, 1.345995545387268, 0.14156049489974976, -0.22120527923107147, 0.3623617887496948, 0.022096402943134308, 0.0692196935415268, -0.3213459253311157, 0.2226085364818573, -0.27525803446769714, -0.2632492780685425, -0.08015698939561844, -0.05651840940117836, -0.021766863763332367, -0.1965670883655548, -0.5029950737953186, 0.14716540277004242, 0.1461593359708786, -0.26655635237693787, 0.02576160803437233, 0.21838690340518951, -0.07239839434623718, 0.02174198254942894, -0.07877369970083237, 0.004436853341758251, -0.12709330022335052, 0.25502559542655945, -0.2989117205142975, 0.017346438020467758, 0.09295457601547241, -0.02031528577208519, -0.7395153641700745, 0.16495558619499207, -0.39726465940475464, -0.23179253935813904, 0.01925424113869667, -0.2671796381473541, 0.25111880898475647, 0.119008868932724, 0.2909451127052307, 0.25532272458076477, -0.3112866282463074, 0.05660301074385643, -0.20902866125106812, -0.22432222962379456, 0.011705275624990463, 0.19835799932479858, 0.04773859307169914, -0.1979285478591919, -0.3976757526397705, 0.18282459676265717, 0.10189418494701385, 0.05944984406232834, 0.1003042533993721, -0.5291590690612793, -0.09066469967365265, -0.5466355085372925, -0.051787812262773514, -0.12373873591423035, -0.1631929874420166, -0.18336933851242065, -0.02248305268585682, -0.058747220784425735, -0.4974468946456909, -0.2320770025253296, 0.12727834284305573, -0.35273316502571106, -0.09558869153261185, 0.15528880059719086, -0.28792843222618103, 0.5394784808158875, 0.4464960992336273, 0.37567803263664246, 0.018543122336268425, -0.08962101489305496, -0.24117928743362427, -0.11865068972110748, -0.5672417283058167, 0.1138516366481781, -0.12961454689502716, -0.1808692216873169, -0.125719353556633, 0.417859822511673, 0.2591116726398468, 0.07293637841939926, 0.0418943390250206, -0.06805486232042313, -0.2588282525539398, 0.22529949247837067, -0.06788983196020126, 0.4425286054611206, -0.016238316893577576, 0.6142116189002991, -0.1967770755290985, -0.04196547344326973, -0.13381674885749817, 0.024128049612045288, -0.46636220812797546, -0.04865008592605591, 0.4135291278362274, -0.5600540637969971, 0.06436702609062195, 0.19842280447483063, 0.06502056866884232, 0.5820103287696838, -0.1316850483417511, -0.0346597284078598, -0.08891354501247406, 0.1771104633808136, 0.07840121537446976, -0.2593676447868347, 0.03057965449988842, 0.10241269320249557, -0.013813639990985394, 0.022781945765018463, 0.1982654482126236, -0.11380937695503235, 0.19058407843112946, 0.07533200085163116, 0.45220860838890076, 0.053157221525907516, -0.2297774851322174, -0.0633598193526268, 0.2922233045101166, 0.5698907375335693, 0.4143059253692627, 0.2580901086330414, -0.0473656952381134, -0.11226556450128555, 0.023515494540333748, 0.3457757830619812, 0.43454810976982117, -0.2133329212665558, 0.34560129046440125, -0.22151266038417816, -0.1793738752603531, -0.17418421804904938, 0.31661227345466614, 0.4049057364463806, -0.3494206368923187, -0.061271779239177704, -0.022374534979462624, -0.017197908833622932, -0.12059769034385681, 0.07805097848176956, 0.2076966017484665, -0.14722421765327454, -0.19904428720474243, 0.49442121386528015, 0.015115739777684212, 0.09519414603710175, 0.20497041940689087, 0.24400854110717773, 0.04349753260612488, -0.008122168481349945, -0.14550438523292542, 0.3248817026615143, -0.3696914613246918, 0.17766426503658295, 0.07455433160066605, 0.06688026338815689, 0.5588197708129883, 0.03862050548195839, -0.2440880984067917, -0.03599044308066368, -0.5670956373214722, 0.5346630215644836, 0.11420334875583649, -0.38488098978996277, -0.2093840390443802, 0.2809019088745117, 0.0738072320818901, 0.22915644943714142, -0.05328701436519623, 0.34046605229377747, 0.20147305727005005, -0.42611265182495117, -0.5190361142158508, 0.48469045758247375, -0.20308510959148407, -0.34809643030166626, 0.19346334040164948, 0.030554212629795074, -0.5891624093055725, 0.30823010206222534, -0.07697341591119766, -0.24848498404026031, -0.20799840986728668, 0.05307812988758087, -0.15189824998378754, -0.05506524816155434, -0.26824647188186646, 0.07076054066419601, 0.12845230102539062, -0.33707109093666077, 0.47789350152015686, 0.4300214350223541, -0.17428554594516754, -0.11025739461183548, 0.46604132652282715, 0.24973198771476746, -0.0895264595746994, -0.2848268151283264, 0.09403861314058304, 0.11769719421863556, 0.07932277023792267, 0.07231718301773071, -0.0033889268524944782, 0.19671528041362762, 0.4727381467819214, 0.35610467195510864, -0.07676485180854797, -0.042094770818948746, -0.03040972352027893, 0.019708625972270966, 0.17989078164100647, -0.6338069438934326, -0.0884634256362915, -0.1270015835762024, 0.06677011400461197, -0.32115092873573303, 0.07482558488845825, -0.5564795136451721, 0.2530536949634552, 0.16314101219177246, -0.00047661946155130863, 0.05404740571975708, 0.1432606279850006, -0.032744813710451126, -0.06775600463151932, 0.27111905813217163, 0.44039005041122437, 0.006404616869986057, -0.285524845123291, -0.2524411976337433, -0.13229967653751373, 0.3613683879375458, -0.24007229506969452, 0.1405518651008606, 0.31548255681991577, 0.15976522862911224, -0.12409967184066772, 0.16821768879890442, 0.26317518949508667, 0.31695613265037537, -0.06289958953857422, 0.3524366021156311, -0.13351629674434662, -0.2348484992980957, -0.3311815559864044, -0.13565930724143982, -0.020817941054701805, -0.13642248511314392, 0.29711437225341797, -0.06578035652637482, -0.14630483090877533, 0.09589244425296783, -0.2550733685493469, -0.3955479860305786, -0.24899089336395264, 0.08861377090215683, 0.2972621023654938, -0.09250489622354507, -0.16019809246063232, -0.2199956327676773, -0.20320533215999603, -0.231445774435997, -0.23219308257102966, 0.21324093639850616, -0.15350386500358582, 0.1309264451265335, -0.08005816489458084, 0.11886370182037354, -0.2190869152545929, 0.04677162691950798, 0.24529701471328735, -0.07437855750322342, -0.33156317472457886, -0.021746361628174782, -0.2387630045413971, -0.029811039566993713, 0.2515648901462555, 0.21706654131412506, 0.14795778691768646, -0.019264254719018936, -0.31965500116348267, -0.0805417001247406, 0.5513910055160522, 0.021487394347786903, -0.08227402716875076, 0.05241665244102478, 0.019332705065608025, 0.3917844891548157, -0.11353546380996704, -0.6487374901771545, 0.10165546089410782, 0.02615305222570896, 0.13447552919387817, -0.256671667098999, 0.267762690782547, -0.1109544038772583, -0.07724864035844803, 0.04697545990347862, 0.3199737071990967, 0.23249509930610657, 0.0502794049680233, 0.3381657898426056, -0.1106577068567276 ]
https://github.com/huggingface/datasets/issues/870
[Feature Request] Add optional parameter in text loading script to preserve linebreaks
Hi ! Thanks for your message. Indeed it's a free feature we can add and that can be useful. If you want to contribute, feel free to open a PR to add it to the text dataset script :)
I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data. I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great. But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines. Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned. But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`.
39
[Feature Request] Add optional parameter in text loading script to preserve linebreaks I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data. I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great. But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines. Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned. But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`. Hi ! Thanks for your message. Indeed it's a free feature we can add and that can be useful. If you want to contribute, feel free to open a PR to add it to the text dataset script :)
[ -0.4354708790779114, 0.2950848639011383, 0.05672142654657364, -0.24413050711154938, -0.09724660217761993, -0.20723778009414673, 0.3331253230571747, 0.17588411271572113, 0.2980455160140991, 0.3277401030063629, 0.5034336447715759, 0.23918838798999786, -0.017637314274907112, 0.13068455457687378, -0.01116173341870308, -0.1541546732187271, -0.1673547625541687, 0.31641826033592224, 0.09484438598155975, 0.09435894340276718, -0.17424267530441284, 0.22894151508808136, -0.23517465591430664, -0.31315693259239197, -0.09428653120994568, 0.17584741115570068, 0.061547353863716125, -0.17628073692321777, 0.04866444319486618, -0.24178384244441986, 0.05369029566645622, 0.46172377467155457, -0.2017269730567932, -0.06298095732927322, -0.00012331247853580862, -0.15191715955734253, 0.18342608213424683, -0.18223153054714203, -0.6022976636886597, -0.11475738883018494, -0.37292712926864624, -0.29144638776779175, -0.09922851622104645, -0.22746926546096802, 0.06226859241724014, 0.34241005778312683, -0.04587868973612785, -0.4363000690937042, 0.2800566256046295, 0.30785664916038513, 0.04951615631580353, 0.10740716755390167, -0.5713550448417664, -0.06632202863693237, 0.5268220901489258, 0.291094034910202, -0.06296026706695557, 0.054802946746349335, 0.016209835186600685, 0.05788179486989975, -0.4066482484340668, 0.30865076184272766, -0.36277440190315247, -0.23989921808242798, 0.3153907060623169, 0.03332606703042984, -0.10405246913433075, 0.019155118614435196, 0.12582279741764069, 0.6455951929092407, 0.6044309139251709, -0.5228230953216553, -0.1811375617980957, -0.5374603271484375, 0.31586959958076477, -0.2599709928035736, 0.07737533748149872, 0.08975471556186676, -0.4800504446029663, 0.10286562889814377, -0.3286263942718506, -0.5799758434295654, -0.2724972069263458, 0.028256438672542572, 0.05155697837471962, 0.0071646166034042835, 0.08528093248605728, -0.12949946522712708, 0.21397554874420166, 0.266727477312088, -0.11557324230670929, -0.3966216742992401, -0.16725970804691315, -0.012048882432281971, 0.18660779297351837, -0.13835109770298004, -0.1339082568883896, 0.02952488511800766, 0.24647346138954163, 0.1903955191373825, 0.2343103289604187, -0.072892926633358, 0.16598603129386902, -0.009608558379113674, -0.1466231644153595, 0.0010831992840394378, 0.6396607756614685, -0.12633010745048523, 0.39626020193099976, -0.05987757816910744, 0.25418972969055176, -0.014752008952200413, 0.3621477484703064, -0.05533873289823532, 0.2506434917449951, 0.21686142683029175, 0.5353248715400696, 0.05078475922346115, -0.10152820497751236, -0.008451723493635654, 0.15770205855369568, -0.27382713556289673, 0.023110514506697655, 0.0231777373701334, 0.2529735863208771, 0.24978965520858765, 0.09393234550952911, 0.3397795855998993, -0.0245639868080616, -0.4520843029022217, -0.011584779247641563, -0.07390636950731277, 0.06909399479627609, 0.4735105037689209, 0.47987985610961914, -0.13225378096103668, 0.018857868388295174, 0.30984434485435486, -0.327287495136261, 0.21258100867271423, -0.25991761684417725, 0.010738705284893513, -0.06240421533584595, 0.0897313803434372, 0.05029568821191788, -0.051447346806526184, -0.2781391441822052, 0.1292174607515335, -0.14427129924297333, 0.39823096990585327, -0.20815002918243408, -0.24237841367721558, -0.012095661833882332, 0.1186780333518982, -0.17463836073875427, -0.1164848729968071, -0.11901207268238068, 0.34083566069602966, 0.23297405242919922, -0.21904149651527405, 0.3949998915195465, -0.06775273382663727, -0.41483673453330994, -0.19052520394325256, 0.12083884328603745, 0.6844406127929688, -0.5018532276153564, -0.3941890001296997, -0.24467822909355164, -0.16177798807621002, 0.1972198337316513, -0.08458483219146729, -0.2083403766155243, 0.3146701455116272, -0.09435930103063583, 0.41318538784980774, 0.5370365381240845, 0.21260255575180054, -0.21132555603981018, 0.41150322556495667, 0.10020411014556885, -0.026850642636418343, 0.3020574450492859, 0.11668107658624649, 0.4532319903373718, 0.08674311637878418, -0.323854923248291, 0.5056163668632507, 0.10821032524108887, 0.20165322721004486, 0.0791892260313034, -0.13299910724163055, 0.3330930471420288, 0.16914398968219757, -0.1261501908302307, -0.03803583234548569, -0.04639497399330139, -0.043689191341400146, 0.17351332306861877, -0.15402285754680634, 0.09815133363008499, -0.05706336721777916, 0.11341935396194458, 0.23441419005393982, -0.031880516558885574, -0.098419189453125, -0.5309463143348694, -0.1450159251689911, 0.14497192203998566, -0.10539563745260239, -0.2306469976902008, -0.35729116201400757, 0.15329179167747498, 0.08999457210302353, 0.08450670540332794, 0.38194242119789124, -0.05448543652892113, 0.07623991370201111, -0.4913650155067444, 0.18557946383953094, -0.20500989258289337, 0.12585879862308502, -0.05961814150214195, 0.297344833612442, -0.04123692959547043, 0.1600445806980133, 0.43207308650016785, -0.14158932864665985, -0.028411557897925377, 0.20375899970531464, 0.035737622529268265, 0.07576349377632141, -0.1862320899963379, 0.5891007781028748, 0.22567342221736908, 0.30132603645324707, -0.3549942672252655, -0.314920574426651, -0.007346769794821739, 0.07858424633741379, 0.0901803970336914, 0.08044102042913437, -0.134243443608284, -0.19157110154628754, -0.20217129588127136, 0.3526659309864044, -0.15033842623233795, 0.33531105518341064, -0.11818256229162216, -0.12177887558937073, -0.2494106888771057, -0.31471720337867737, -0.29096856713294983, -0.42267900705337524, 0.20189844071865082, -0.1425284743309021, 0.37981268763542175, 0.25678279995918274, -0.06510802358388901, -0.08557943999767303, 0.5796650648117065, -0.13687805831432343, 0.3069622218608856, 0.32381150126457214, 0.02114219032227993, -0.14020368456840515, 0.1488453894853592, 0.26987841725349426, 0.38282325863838196, 0.26349711418151855, -0.1487601101398468, 0.0668097659945488, -0.005978135857731104, -0.38443464040756226, 0.2802662253379822, 0.2170623391866684, -0.08574218302965164, 0.3734268546104431, 0.016544001176953316, -0.1488482803106308, -0.3234379291534424, -0.023938791826367378, 0.021003449335694313, -0.08654406666755676, -0.35177430510520935, -0.116726353764534, -0.28428012132644653, -0.25873231887817383, -0.1788252294063568, -0.23894330859184265, -0.35895293951034546, -0.24145562946796417, 0.1967180371284485, -0.1387995481491089, -0.3496542274951935, 0.18348798155784607, -0.26291877031326294, 0.7408042550086975, -0.18333105742931366, -0.5621793270111084, 0.02696935459971428, -0.19429978728294373, 0.08123745024204254, -0.06597860902547836, -0.013845520094037056, 0.1965552717447281, 0.264057457447052, -0.0036521221045404673, 0.09097988158464432, -0.06974873691797256, 0.10315904021263123, 0.04979674890637398, 0.0387130044400692, -0.20219163596630096, 0.492856502532959, 0.17263153195381165, 0.32857730984687805, -0.2593170702457428, -0.17930328845977783, -0.21249271929264069, 0.04189969226717949, 0.1382416933774948, 0.11571426689624786, -0.07701138406991959, -0.3744923770427704, -0.1818041205406189, 0.018616093322634697, -0.2738803029060364, -0.02736688032746315, -0.4108988046646118, 0.00612815422937274, 0.23846235871315002, 0.08895838260650635, 0.03783991187810898, -0.012853691354393959, -0.05263190343976021, 0.04658745974302292, 0.13605283200740814, 0.3777831494808197, 0.018419241532683372, 0.1504376381635666, -0.06235969439148903, -0.05686796456575394, 0.0013305842876434326, 0.38076916337013245, -0.4775213897228241, 0.26294177770614624, -0.12003544718027115, 0.49522873759269714, -0.1220983937382698, -0.03512103483080864, 0.3664516508579254, 0.13640043139457703, 0.08151831477880478, -0.22465702891349792, -0.014771876856684685, 0.27879348397254944, -0.3612315356731415, 0.0486789271235466, 0.23443429172039032, 0.5663763284683228, -0.0025385054759681225, 0.38881075382232666, -0.006831401027739048, 0.1409282237291336, 0.2664141058921814, -0.15724815428256989, 0.3855627775192261, 0.3046708405017853, -0.2800631821155548, -0.3151490390300751, 0.07951144129037857, 0.0812319666147232, 0.20620594918727875, 0.07044229656457901, 0.01934400573372841, -0.12364015728235245, -0.4614216387271881, 0.23981404304504395, -0.5338414907455444, 0.16248886287212372, -0.08308037370443344, 0.2392725795507431, -0.1354089379310608, 0.29150208830833435, -0.24039335548877716, -0.3213287889957428, -0.013779456727206707, 0.3209167718887329, 0.3365841805934906, -0.07237159460783005, -0.27099576592445374, 0.31772854924201965, -0.2754437029361725, 0.11210773885250092, 0.15837009251117706, -0.05398410186171532, 0.06723161786794662, -0.16830064356327057, -0.016609173268079758, 0.23344171047210693, 0.5474968552589417, -0.1255033314228058, -0.382648766040802, -0.16109932959079742, 0.294924259185791, -0.08907357603311539, -0.0021834666840732098, 0.110750712454319, 0.23316848278045654, 0.28051117062568665, -0.05547851696610451, -0.2624712586402893, -0.013530370779335499, 0.2837164103984833, 0.15789826214313507, -0.03680381923913956, -0.6033742427825928, -0.07713036239147186, 0.08219943195581436, -0.09167397767305374, 0.0179508775472641, -0.028875920921564102, 0.01847977004945278, -0.2994564473628998, 0.13003572821617126, 0.30779093503952026, -0.37880659103393555, 0.36495739221572876, -0.09372614324092865, 0.11186975240707397, -0.00285498914308846, -0.04363517090678215, -0.21752388775348663, -0.1295166164636612, -0.06255325675010681, 0.2717798948287964, -0.24329346418380737, -0.35519739985466003, -0.44247063994407654, -0.4403405785560608, 0.6828677654266357, 0.23836486041545868, -0.239762082695961, 0.2966245114803314, -0.011126844212412834, 0.008318474516272545, -0.056601036339998245, -0.04557829722762108, -0.15434452891349792, -0.508024275302887, -0.19811639189720154, -0.408379465341568, 0.37459784746170044, -0.0850752741098404, -0.1184440404176712, 0.019753556698560715, -0.03096655011177063, -0.43121659755706787, 0.15094353258609772, -0.16202878952026367, 0.7613752484321594, 0.4389471709728241, 0.23393069207668304, -0.048315081745386124, -0.05302932485938072, 0.4091445803642273, 0.2154647260904312, 0.04685482010245323, -0.1680988073348999, 0.16031549870967865, -0.12273252010345459, -0.048916544765233994, 0.20176643133163452, 0.06601587682962418, -0.42093923687934875, 0.19257721304893494, 0.1253013014793396, 0.0905519351363182, -0.10945300757884979, 0.3929081857204437, -0.5889465808868408, -0.42461255192756653, 0.15153786540031433, -0.09108835458755493, -0.12652845680713654, 0.010897713713347912, 0.21516452729701996, -0.19846303761005402, 0.4758720397949219, -0.26902827620506287, -0.37315845489501953, 0.10911914706230164, -0.12770269811153412, -0.10770018398761749, -0.09462743252515793, -0.16705019772052765, 0.3970532715320587, 0.41451263427734375, 0.1724785566329956, 0.3433487117290497, -0.12556661665439606, 0.048763029277324677, -0.2599712312221527, 0.142763152718544, -0.07696650177240372, 0.1011260598897934, 0.2524684965610504, -0.01551162637770176, -0.3237226605415344, 0.06454402953386307, 0.20280000567436218, -0.46373891830444336, -0.24522964656352997, -0.3908303678035736, 0.2647170126438141, -0.49404770135879517, -0.07141011208295822, -0.057123780250549316, 0.35704147815704346, -0.18170130252838135, -0.017806068062782288, 0.05781424045562744, 0.32176873087882996, 0.018236298114061356, -0.27628499269485474, -0.1267777681350708, -0.19526489078998566, 0.3264216184616089, -0.02929716743528843, 0.0016725552268326283, 0.45284807682037354, 0.2491423338651657, -0.15439559519290924, -0.24835778772830963, 0.03307446837425232, -0.022710230201482773, -0.6799125671386719, 0.20171071588993073, 0.19616462290287018, 0.17100735008716583, -0.04675566777586937, 0.2048942893743515, -0.29731544852256775, 0.25776901841163635, 0.009928249754011631, -0.25363531708717346, 0.0011220293818041682, -0.03723287209868431, 0.2559601664543152, 0.40142524242401123, 0.21990497410297394, -0.16783881187438965, 0.0035413054283708334, 0.008591112680733204, -0.15610264241695404, -0.023953767493367195, 0.4870345890522003, -0.17659299075603485, 0.011217985302209854, 0.2093713879585266, -0.09702647477388382, -0.2056296467781067, -0.11252503842115402, 0.003166495356708765, 0.04372137412428856, -0.03936339169740677, -0.30894675850868225, 0.22350174188613892, -0.10484042763710022, 0.04511114954948425, -0.11079870164394379, -0.008543235249817371, 0.10963162779808044, -0.13151858747005463, 0.32081061601638794, 0.11527659744024277, -0.21577197313308716, 0.34837597608566284, 0.1890643835067749, 0.3747319281101227, -0.20615623891353607, 0.09693770855665207, -0.3119313418865204, 0.20905007421970367, -0.052951931953430176, 0.2815995514392853, -0.07820195704698563, 0.07849064469337463, -0.15376435220241547, 0.17947596311569214, 0.5239459872245789, 0.12829039990901947, 0.04084722697734833, -0.08445121347904205, -0.2382965385913849, 0.05136869475245476, -0.048998020589351654, 0.08011285960674286, -0.43186265230178833, 0.02195630595088005, 0.10428769886493683, 0.08637460321187973, -0.235726997256279, -0.05892888084053993, 0.06600343436002731, -0.01138000376522541, 0.13130693137645721, 0.2672937512397766, 0.031964633613824844, -0.12378023564815521, 0.19128940999507904, -0.140900120139122, 0.4049850106239319, 0.23786038160324097, 0.16180241107940674, 0.5519500970840454, -0.004450303968042135, -0.047799572348594666, -0.19679677486419678, 0.3016051948070526, 0.018446918576955795, -0.03183845058083534, -0.06800632178783417, 0.38811108469963074, 0.19917958974838257, 0.028522290289402008, -0.12007532268762589, -0.3986966609954834, 0.19488508999347687, 0.2730502784252167, -0.24936051666736603, 0.21825824677944183, 0.19280515611171722, 0.2495427280664444, 0.052886102348566055, 0.023041071370244026, -0.2613331377506256, 0.20509926974773407, -0.06620410829782486, -0.15796826779842377, -0.5553826689720154, -0.021858856081962585, -0.17794878780841827, -0.003302724799141288, 0.03414199501276016, -0.06018800288438797, -0.030757416039705276, 0.11996491998434067, 0.08154357224702835, -0.0037842202000319958, 0.34702765941619873, -0.3495804965496063, 0.2278907150030136, -0.3045918047428131, -0.17196016013622284, -0.11401313543319702, 0.38424426317214966, 0.5464939475059509, -0.04211369529366493, 0.10878368467092514, 0.14233596622943878, 0.2631815969944, -0.033207185566425323, -0.18736174702644348, -0.00522291474044323, 0.09349474310874939, 0.22360533475875854, 0.12160476297140121, 0.5366190671920776, 0.32245099544525146, -0.00004796615758095868, 0.023854359984397888, 0.49615591764450073, 0.18963401019573212, -0.023297995328903198, -0.40567177534103394, 0.40019336342811584, 0.4818977117538452, -0.16913190484046936, -0.40802517533302307, 0.057671334594488144, 0.10501540452241898, -0.2676210105419159, 0.26471853256225586, -0.05597982555627823, -0.17017598450183868, -0.2995608150959015, 0.020115073770284653, 0.040517229586839676, 0.12106909602880478, 0.35036832094192505, 0.0009222334483638406, -0.11068977415561676, -0.041992537677288055, -0.27839282155036926, -0.23083023726940155, -0.05264146998524666, -0.06326178461313248, 0.2438693344593048, -0.24016423523426056, 0.06262926012277603, 0.16710162162780762, -0.3163401484489441, 0.3353947699069977, -0.3051982522010803, -0.3688962459564209, -0.10190536081790924, -0.01817224733531475, 0.16490793228149414, -0.0723787173628807, -0.16757993400096893, -0.08403736352920532, 0.07134605944156647, -0.10590403527021408, -0.13539358973503113, -0.17311814427375793, 0.20333445072174072, 0.3793601989746094, 0.31749430298805237, -0.11669270694255829, -0.16010625660419464, 0.18572589755058289, -0.11306562274694443, 0.15306159853935242, 0.0698588639497757, 0.24862366914749146, -0.23879225552082062, -0.018207138404250145, 0.21963508427143097, 0.21189768612384796, 0.028792234137654305, -0.03899858519434929, 0.05001290142536163, 0.5180230736732483, -0.03314564749598503, 0.1850021332502365, -0.18184201419353485, 0.03067578747868538, -0.11502133309841156, 0.022719457745552063, -0.10713521391153336, -0.22592251002788544, -0.18299944698810577, 0.14178988337516785, 0.07611945271492004, -0.16980017721652985, 0.29569897055625916, -0.2386932522058487, 0.01914631575345993, -0.3457779586315155, 0.44181182980537415, 0.2836974263191223, 0.04356285557150841, -0.7789453864097595, -0.1735748052597046, 0.378414511680603, -0.05041457340121269, 0.014338351786136627, 0.5416890382766724, 0.17807796597480774, 0.21965162456035614, -0.090740866959095, 0.2851370573043823, -0.012517593801021576, -0.3764244019985199, -0.10949262231588364, -0.38449016213417053 ]
https://github.com/huggingface/datasets/issues/866
OSCAR from Inria group
PR is already open here : #348 The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled). As soon as #863 is merged we can start computing them. This will take a bit of time though
## Adding a Dataset - **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/). - **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.* - **Paper:** *[here](https://hal.inria.fr/hal-02148693)* - **Data:** *[here](https://oscar-corpus.com/)* - **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).* I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages.
43
OSCAR from Inria group ## Adding a Dataset - **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/). - **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.* - **Paper:** *[here](https://hal.inria.fr/hal-02148693)* - **Data:** *[here](https://oscar-corpus.com/)* - **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).* I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages. PR is already open here : #348 The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled). As soon as #863 is merged we can start computing them. This will take a bit of time though
[ -0.07900027185678482, -0.06898009777069092, -0.08298540115356445, 0.0613861158490181, -0.08882386237382889, 0.09406142681837082, -0.01224893145263195, 0.29857638478279114, 0.002545601222664118, 0.08631637692451477, -0.5969403982162476, -0.05120440572500229, -0.2450724095106125, 0.07547232508659363, 0.15065567195415497, -0.3321433961391449, 0.052021823823451996, -0.18975968658924103, -0.24470940232276917, -0.29405727982521057, -0.19975242018699646, 0.19000506401062012, 0.1084446907043457, -0.07059825211763382, 0.20794959366321564, -0.21537739038467407, -0.43402770161628723, -0.11183995008468628, -0.13035494089126587, -0.19360320270061493, -0.003015439258888364, 0.2002115547657013, 0.29051321744918823, 0.6354882121086121, -0.00009606563980923966, -0.10570532083511353, -0.05946994572877884, -0.23907150328159332, 0.09472721815109253, -0.11666630208492279, 0.25346073508262634, -0.08267325162887573, -0.19837278127670288, -0.3360143005847931, -0.40459418296813965, -0.370259165763855, -0.02775644324719906, -0.48081445693969727, 0.1629260778427124, 0.179729625582695, 0.2806834876537323, -0.2271086871623993, -0.17510980367660522, -0.21705684065818787, -0.02488916739821434, -0.2869289517402649, -0.31929174065589905, 0.061099354177713394, 0.5420653820037842, -0.07494520395994186, 0.03867120295763016, 0.3806000351905823, 0.10315296053886414, -0.23774601519107819, -0.11790928244590759, -0.045290764421224594, 0.08051509410142899, -0.36046725511550903, 0.15375493466854095, 0.3372948169708252, 0.019772551953792572, -0.3421410620212555, -0.31691816449165344, -0.17639295756816864, -0.049128469079732895, -0.020562641322612762, -0.25189009308815, 0.3864116072654724, 0.036464158445596695, 0.2546267807483673, 0.20601899921894073, -0.2413933128118515, -0.1193951740860939, 0.10102521628141403, 0.03173452243208885, 0.5971215963363647, 0.08017594367265701, -0.1237553209066391, -0.024724895134568214, 0.015379561111330986, -0.03981051221489906, -0.0067006307654082775, 0.02707129344344139, 0.19046583771705627, -0.3079114854335785, -0.32504668831825256, 0.20660579204559326, -0.15933795273303986, 0.4159703850746155, -0.1509898602962494, 0.2482491284608841, 0.17402146756649017, -0.17950479686260223, 0.12143314629793167, 0.28316041827201843, -0.08993585407733917, -0.17440201342105865, -0.11565376818180084, 0.07233292609453201, -0.46011272072792053, 0.08208153396844864, 0.17436349391937256, -0.13573187589645386, 0.1313304901123047, -0.20646297931671143, 0.05415622144937515, -0.07753463834524155, -0.04587147384881973, 0.08064717054367065, -0.053739119321107864, -0.2299363613128662, 0.013793552294373512, -0.0986444503068924, 0.07683858275413513, -0.02589234709739685, 0.01204311940819025, -0.09097384661436081, 0.0679466649889946, -0.10710369795560837, -0.2761721611022949, -0.2034255862236023, 0.21763594448566437, -0.3801760971546173, 0.12884514033794403, 0.17274898290634155, 0.019011707976460457, 0.011964794248342514, -0.23409870266914368, 0.23284006118774414, 0.21338492631912231, 0.36115798354148865, -0.32029491662979126, 0.160958930850029, -0.1494002342224121, 0.2117096334695816, -0.259824275970459, 0.05025143548846245, -0.21921101212501526, -0.471473753452301, -0.029562920331954956, 0.04505777359008789, -0.30233559012413025, -0.15823699533939362, 0.24645453691482544, -0.23152244091033936, -0.1368895173072815, -0.24492445588111877, 0.7459754347801208, 0.0073854089714586735, 0.12476129829883575, -0.0492003932595253, -0.0011194896651431918, -0.3634640872478485, -0.02020338922739029, 0.08913523703813553, 0.26496750116348267, 0.18601785600185394, -0.008804176934063435, 0.04760716110467911, 0.18410757184028625, 0.12004391849040985, 0.33756330609321594, -0.12492023408412933, -0.14938393235206604, 0.002037143800407648, 0.17539583146572113, 0.2010478377342224, -0.2509192228317261, 0.056666430085897446, 0.04135861247777939, 0.006092099007219076, -0.071807362139225, 0.18880033493041992, -0.10691011697053909, 0.36488762497901917, -0.32892200350761414, 0.14531876146793365, 0.6325169205665588, -0.24683311581611633, 0.18295277655124664, -0.23722846806049347, -0.035866834223270416, -0.05154938995838165, 0.26696422696113586, 0.3047328591346741, -0.3177724778652191, 0.1110946461558342, -0.3176097869873047, 0.13686390221118927, -0.19074782729148865, 0.27156350016593933, -0.01990947499871254, 0.19887244701385498, 0.054228492081165314, 0.24059301614761353, -0.4054974317550659, -0.005557041149586439, 0.032198596745729446, -0.06765848398208618, 0.537307858467102, -0.08504515141248703, -0.3493947386741638, -0.19953028857707977, -0.20659205317497253, -0.03813429921865463, -0.0213452260941267, 0.2677496373653412, 0.3026920557022095, 0.08854333311319351, 0.02338148094713688, -0.13735997676849365, -0.08616659790277481, -0.13424818217754364, -0.30868688225746155, -0.0033676677849143744, 0.3649308383464813, -0.09229239076375961, -0.08110567927360535, 0.21294420957565308, 0.40555235743522644, -0.19977006316184998, -0.23720623552799225, 0.10527835041284561, 0.11529885977506638, -0.16469912230968475, 0.09172969311475754, 0.5061905980110168, 0.344753623008728, 0.1893039494752884, -0.5001245737075806, 0.13490386307239532, 0.11442984640598297, 0.18334366381168365, -0.06493856012821198, -0.16151200234889984, 0.29667261242866516, 0.18318478763103485, -0.021967852488160133, 0.2072993963956833, -0.0891563668847084, 0.3712124824523926, -0.04402071610093117, -0.09549732506275177, -0.08472507447004318, 0.03433531895279884, -0.014309389516711235, 0.04682869464159012, 0.11228898912668228, -0.580665111541748, 0.19953130185604095, 0.54948890209198, 0.07855621725320816, 0.30991330742836, 0.1553822159767151, -0.002356515498831868, -0.17783978581428528, -0.08579491823911667, 0.04356279596686363, 0.11411460489034653, 0.30944710969924927, 0.3973642885684967, 0.06152059882879257, 0.19209372997283936, -0.008789417333900928, 0.17326633632183075, -0.1201452910900116, 0.21822507679462433, 0.2752736210823059, 0.2165379673242569, 0.039753507822752, -0.20156417787075043, -0.1670656055212021, 0.0866321325302124, 0.10498672723770142, 0.33353346586227417, 0.10441216081380844, 0.1620950847864151, -0.2809585630893707, -0.2595314085483551, -0.16249164938926697, -0.10266615450382233, -0.002533579943701625, 0.27187809348106384, -0.2838670015335083, -0.19533275067806244, 0.25302931666374207, -0.08991047739982605, 0.3012336492538452, -0.1137072741985321, -0.029750578105449677, 0.1293420046567917, -0.476137638092041, -0.09637139737606049, 0.24891075491905212, 0.2857632637023926, 0.024389035999774933, 0.4065280258655548, 0.10193666070699692, -0.00019428133964538574, -0.055458296090364456, -0.48033401370048523, 0.19790835678577423, -0.21938879787921906, -0.19934691488742828, -0.08391217887401581, -0.3282853364944458, -0.008986500091850758, -0.25606682896614075, 0.11635712534189224, -0.19063617289066315, -0.13587510585784912, -0.023953892290592194, -0.1252666413784027, -0.030645448714494705, -0.10825227200984955, -0.6249167919158936, -0.5535082817077637, -0.39316800236701965, 0.11623682826757431, -0.08693458139896393, 0.19056390225887299, -0.2222541868686676, -0.22369050979614258, -0.05321826785802841, 0.23866768181324005, 0.18234577775001526, -0.2849719822406769, -0.0559283010661602, 0.26150277256965637, -0.38681933283805847, -0.23364683985710144, -0.26820608973503113, -0.3120083808898926, 0.2669038772583008, 0.12761420011520386, -0.09025309979915619, 0.023046718910336494, -0.07228162884712219, -0.3246196210384369, 0.22940990328788757, -0.07988927513360977, 0.29515981674194336, 0.26610812544822693, -0.20857518911361694, -0.06839432567358017, -0.04800383746623993, 0.06692690402269363, 0.18937140703201294, -0.03522496670484543, -0.06917476654052734, 0.21037711203098297, 0.24131575226783752, 0.38951820135116577, -0.07555869221687317, 0.17891153693199158, 0.32576704025268555, 0.31534630060195923, 0.06768684834241867, -0.08754585683345795, -0.20064280927181244, 0.1844976246356964, 0.18577565252780914, 0.027367638424038887, 0.5681688189506531, 0.24407660961151123, -0.7737679481506348, -0.23683680593967438, -0.06652059406042099, -0.2774048149585724, -0.2823314666748047, 0.22674784064292908, -0.006429959088563919, 0.1672702431678772, -0.06945069879293442, -0.33381080627441406, -0.2970196306705475, -0.08676895499229431, 0.18682804703712463, 0.017958583310246468, -0.0448429249227047, 0.13901451230049133, -0.13337697088718414, 0.1693529486656189, -0.3628244698047638, 0.1929846853017807, 0.20518968999385834, -0.07444964349269867, -0.054792534559965134, -0.1376657783985138, 0.014912355691194534, -0.06476161628961563, -0.0724477767944336, -0.392712265253067, -0.000397200376028195, 0.1283618062734604, -0.3000939190387726, 0.07540924847126007, 0.015313655138015747, -0.28246214985847473, 0.06761118024587631, 0.3900359869003296, -0.06619589030742645, -0.47340521216392517, -0.22879357635974884, 0.1623784899711609, -0.009826507419347763, -0.09817016124725342, -0.19043992459774017, -0.022384483367204666, -0.4972303807735443, -0.055700138211250305, 0.10055900365114212, 0.17718605697155, 0.1592845767736435, 0.026854204013943672, -0.026848120614886284, -0.11469271779060364, -0.05039133131504059, 0.3639596700668335, 0.1062978059053421, -0.162011057138443, 0.35485684871673584, 0.18451976776123047, -0.10377056896686554, 0.24752511084079742, 0.27769559621810913, 0.37527525424957275, -0.20403754711151123, -0.26746901869773865, 0.2303117960691452, -0.4009723961353302, 0.30910998582839966, 0.04405606910586357, 0.3894359767436981, 0.2537853717803955, -0.1759381890296936, -0.05484354496002197, -0.16680604219436646, -0.0964002013206482, -0.025258254259824753, 0.2476741075515747, -0.43727603554725647, -0.6188758611679077, 0.3124135732650757, 0.1915920227766037, -0.2940196394920349, 0.32575517892837524, 0.12273609638214111, -0.409298837184906, 0.6036087274551392, -0.008506097830832005, 1.006821870803833, -0.20648187398910522, 0.019267139956355095, -0.07574276626110077, 0.24259333312511444, 0.16570071876049042, -0.3214386999607086, -0.024956300854682922, -0.04086075350642204, -0.16272369027137756, 0.10126948356628418, 0.17930954694747925, 0.005564780905842781, 0.16151362657546997, -0.26215407252311707, 0.09297403693199158, 0.08940515667200089, -0.0839618444442749, 0.08686347305774689, 0.3980657458305359, 0.047687046229839325, -0.31390517950057983, -0.2840455174446106, 0.24094876646995544, -0.0037074012216180563, -0.01646348275244236, 0.03756154328584671, -0.17477144300937653, -0.0627153068780899, 0.3782947361469269, -0.4576450288295746, 0.0030913364607840776, 0.2986183762550354, 0.042079370468854904, -0.13181506097316742, -0.2317110300064087, 0.5097081065177917, 0.05543488636612892, 0.44808387756347656, -0.14881117641925812, -0.08569355309009552, 0.06142425537109375, -0.19982941448688507, -0.19617362320423126, 0.10594136267900467, -0.17274582386016846, 0.40532997250556946, -0.09202281385660172, -0.3007209300994873, 0.2931479215621948, 0.36048346757888794, -0.16099706292152405, -0.2587645351886749, -0.05155304819345474, 0.08585011959075928, 0.06633727252483368, 0.1887252777814865, 0.39182478189468384, -0.30242183804512024, -0.03774266317486763, 0.25994232296943665, 0.23046867549419403, -0.2249956578016281, 0.17143762111663818, -0.012871868908405304, -0.13042649626731873, -0.004618280567228794, -0.011361910030245781, 0.5888925194740295, -0.19107994437217712, 0.028340328484773636, 0.2820192575454712, -0.059793032705783844, -0.2995474636554718, -0.2678389549255371, 0.17368964850902557, 0.027203667908906937, -0.06035109981894493, -0.10441854596138, -0.2405279278755188, 0.19922742247581482, -0.0005384259857237339, 0.2522377669811249, 0.14262014627456665, -0.07045380026102066, 0.033454496413469315, 0.10155247896909714, 0.14909613132476807, -0.03228743001818657, 0.01851159892976284, -0.11886351555585861, 0.0478748194873333, 0.06887772679328918, 0.3429552912712097, -0.5057384967803955, 0.007853479124605656, -0.20167876780033112, 0.2185339331626892, 0.052844349294900894, -0.09391036629676819, -0.06186412274837494, 0.10016325861215591, 0.1176127940416336, -0.018825262784957886, -0.12560822069644928, -0.29540306329727173, -0.13703669607639313, 0.09356414526700974, -0.08994387090206146, 0.23735515773296356, 0.19937749207019806, -0.06182800605893135, -0.16038520634174347, -0.30162855982780457, 0.1719176322221756, 0.10170678049325943, 0.0034254605416208506, 0.08959320932626724, 0.3138921856880188, -0.10096108168363571, -0.045301154255867004, -0.016487013548612595, 0.0591559037566185, 0.14523769915103912, -0.03436862304806709, 0.1639675348997116, 0.037130314856767654, -0.22689762711524963, 0.19593611359596252, 0.24242831766605377, 0.051747165620326996, 0.10042230784893036, 0.23975114524364471, 0.29742443561553955, 0.17094269394874573, 0.31492647528648376, 0.1969352811574936, -0.19823229312896729, 0.014286977238953114, -0.012567398138344288, 0.0564444400370121, 0.3172784745693207, -0.37268486618995667, 0.0981687679886818, 0.12700964510440826, 0.02274540439248085, 0.388813853263855, 0.39590269327163696, 0.2513134777545929, 0.10400541126728058, 0.057098567485809326, -0.0961451306939125, 0.24205633997917175, 0.009486899711191654, 0.2537917196750641, -0.10558844357728958, 0.1361362785100937, -0.02552046999335289, 0.1322360783815384, -0.03628196939826012, 0.4412898123264313, 0.1181599348783493, -0.19809655845165253, 0.43270060420036316, 0.3672031760215759, 0.000272844365099445, 0.18479545414447784, -0.025759601965546608, 0.1654515117406845, 0.2912636995315552, 0.2248012125492096, 0.11230947822332382, 0.07669922709465027, 0.4137377142906189, 0.15456977486610413, 0.06047188118100166, -0.12321091443300247, 0.34489375352859497, 0.14267386496067047, 0.10091637074947357, -0.23859935998916626, -0.1853676587343216, -0.33063921332359314, -0.004949348978698254, -0.10868184268474579, -0.1603011190891266, 0.28621625900268555, 0.01231501717120409, 0.11066204309463501, -0.054554641246795654, -0.030040474608540535, 0.013200477696955204, 0.370794415473938, -0.1473269909620285, 0.26326224207878113, 0.3792479634284973, -0.34744715690612793, -0.16101638972759247, 0.40228310227394104, -0.07344571501016617, 0.008224964141845703, -0.33073318004608154, 0.37710487842559814, -0.016593851149082184, -0.060439977794885635, 0.0015688539715483785, 0.1722237765789032, 0.16570842266082764, -0.12339974194765091, 0.16303600370883942, 0.18447478115558624, -0.17006336152553558, -0.043815575540065765, 0.1857718974351883, -0.1476701945066452, 0.12121385335922241, 0.21909601986408234, 0.21015247702598572, 0.13034065067768097, -0.12940584123134613, 0.029253380373120308, -0.5958344340324402, -0.24516025185585022, 0.2990202307701111, -0.008203327655792236, 0.012321497313678265, -0.13015834987163544, 0.12109658122062683, 0.200407013297081, 0.44568386673927307, 0.19229339063167572, 0.20454375445842743, -0.013814027421176434, -0.3460651636123657, -0.3378748297691345, 0.25690025091171265, -0.14208675920963287, 0.014880246482789516, -0.20770516991615295, 0.2883600890636444, 0.4104830026626587, 0.32000336050987244, -0.34247827529907227, 0.37094539403915405, 0.017937632277607918, 0.006546668242663145, -0.577376663684845, 0.17934441566467285, -0.00444927578791976, 0.15755733847618103, 0.09181394428014755, -0.08193648606538773, -0.11664912104606628, -0.1669202595949173, 0.21606524288654327, -0.2341344952583313, -0.10011295974254608, 0.002920337952673435, 0.11204829812049866, 0.13577055931091309, 0.08029767870903015, 0.22194209694862366, -0.030819738283753395, -0.03282907232642174, 0.07140365988016129, -0.32882198691368103, -0.15407729148864746, 0.3053351044654846, 0.14694733917713165, -0.11982344835996628, -0.2654128670692444, -0.35287854075431824, 0.20711418986320496, 0.27794528007507324, -0.12279003858566284, 0.04934537783265114, -0.21143262088298798, -0.039165910333395004, 0.04662441834807396, -0.14173468947410583, -0.13020291924476624, 0.3917129933834076, -0.04728936403989792, -0.06892863661050797, -0.0754270926117897, -0.29664257168769836, 0.24506744742393494, -0.10273396968841553, -0.3108025789260864, -0.36669594049453735, 0.07276534289121628, 0.25434285402297974, 0.27596017718315125, -0.2505294382572174, 0.2675192356109619, 0.26656296849250793, 0.29539623856544495, -0.0816425308585167, 0.12150664627552032, 0.0683363527059555, -0.22003383934497833, -0.25347036123275757, -0.10436385124921799, -0.011295730248093605, -0.20400992035865784, -0.3458051383495331, -0.2720400094985962 ]
https://github.com/huggingface/datasets/issues/865
Have Trouble importing `datasets`
I'm sorry, this was a problem with my environment. Now that I have identified the cause of environmental dependency, I would like to fix it and try it. Excuse me for making a noise.
I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets. I cloned the newest version of datasets (master branch), and do `pip install -e .`. Then, `import datasets` causes the error below. ``` ~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module> 116 sys.path.append(str(HF_MODULES_CACHE)) 117 --> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True) 119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")): 120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"): ~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok) 221 return 222 try: --> 223 mkdir(name, mode) 224 except OSError: 225 # Cannot rely on checking for EEXIST, since the operating system FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules' ``` The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set. (I use Python 3.8, so `exist_ok` is expected to work.) I've checked some environment variables, and they are set as below. ``` *** NameError: name 'HF_MODULES_CACHE' is not defined *** NameError: name 'hf_cache_home' is not defined *** NameError: name 'XDG_CACHE_HOME' is not defined ``` Should I set some environment variables before using this library? And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set? Thank you in advance.
34
Have Trouble importing `datasets` I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets. I cloned the newest version of datasets (master branch), and do `pip install -e .`. Then, `import datasets` causes the error below. ``` ~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module> 116 sys.path.append(str(HF_MODULES_CACHE)) 117 --> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True) 119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")): 120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"): ~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok) 221 return 222 try: --> 223 mkdir(name, mode) 224 except OSError: 225 # Cannot rely on checking for EEXIST, since the operating system FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules' ``` The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set. (I use Python 3.8, so `exist_ok` is expected to work.) I've checked some environment variables, and they are set as below. ``` *** NameError: name 'HF_MODULES_CACHE' is not defined *** NameError: name 'hf_cache_home' is not defined *** NameError: name 'XDG_CACHE_HOME' is not defined ``` Should I set some environment variables before using this library? And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set? Thank you in advance. I'm sorry, this was a problem with my environment. Now that I have identified the cause of environmental dependency, I would like to fix it and try it. Excuse me for making a noise.
[ -0.26812002062797546, 0.13085855543613434, 0.009197933599352837, 0.1722482591867447, 0.27538448572158813, 0.07383544743061066, 0.20720045268535614, 0.18338431417942047, 0.15290027856826782, -0.10359560698270798, -0.28493770956993103, -0.1424151062965393, -0.1180945485830307, -0.31818917393684387, 0.030697932466864586, 0.15116964280605316, 0.26354292035102844, 0.33810561895370483, -0.3553357720375061, -0.2657528221607208, -0.2365347295999527, 0.19567939639091492, 0.06993410736322403, 0.03837287425994873, -0.30750611424446106, 0.15867707133293152, -0.1923210620880127, 0.3546024560928345, -0.0874139666557312, -0.3079351484775543, 0.31280282139778137, 0.07678139954805374, 0.27572593092918396, 0.711057186126709, -0.00012152312410762534, 0.16253194212913513, 0.19030724465847015, -0.06287179887294769, -0.41912201046943665, -0.32365670800209045, -0.0890151634812355, -0.32846513390541077, 0.1100216656923294, -0.18702852725982666, 0.19901695847511292, -0.2734281122684479, 0.0801439955830574, -0.2908492088317871, 0.499045729637146, 0.36610421538352966, 0.12878558039665222, 0.3562704026699066, 0.15865297615528107, -0.042589906603097916, 0.1484108567237854, 0.4451640844345093, -0.07815418392419815, -0.06638826429843903, -0.008593577891588211, -0.10548140108585358, 0.2778816521167755, 0.001922311377711594, -0.1829761266708374, 0.014080953784286976, 0.4155775308609009, -0.07524846494197845, 0.037734322249889374, -0.31844276189804077, 0.059881262481212616, 0.20001697540283203, 0.7275674939155579, -0.41219562292099, -0.7552507519721985, -0.12534037232398987, -0.19179199635982513, -0.16388484835624695, 0.2845667898654938, -0.08261723816394806, 0.09837732464075089, 0.28586700558662415, 0.00405400525778532, -0.3440301716327667, -0.16610370576381683, 0.3062961995601654, -0.07754886150360107, 0.1118360161781311, 0.00830702856183052, 0.024856125935912132, 0.25210991501808167, -0.18961554765701294, 0.3435188829898834, -0.3411344587802887, 0.0948803722858429, 0.38318827748298645, -0.32095763087272644, -0.0606265664100647, 0.08679168671369553, 0.10253259539604187, -0.06632836163043976, 0.09967133402824402, -0.40052124857902527, -0.02262287773191929, -0.290191650390625, 0.16021758317947388, 0.1484975963830948, 0.2043941617012024, -0.06418251246213913, 0.35253939032554626, 0.2106771022081375, -0.11759769171476364, 0.17626707255840302, -0.07521957159042358, -0.2436429113149643, -0.20416003465652466, 0.03670579195022583, -0.07335218042135239, 0.17528566718101501, -0.3583665192127228, -0.07626098394393921, 0.04999299347400665, -0.0009143304778262973, 0.0625431090593338, -0.01965942233800888, 0.36923107504844666, -0.08634907752275467, 0.17791183292865753, 0.12727105617523193, 0.3368772864341736, -0.29379794001579285, 0.1131301149725914, -0.15512444078922272, 0.31290364265441895, -0.22852911055088043, 0.023686667904257774, 0.29227232933044434, -0.06844627857208252, 0.2617138624191284, -0.12036675214767456, 0.3084433376789093, 0.24678346514701843, 0.08944635093212128, -0.2138565629720688, 0.06180485710501671, 0.6000425219535828, -0.2023259997367859, 0.4967266023159027, 0.3052879571914673, -0.2590164542198181, -0.1908973604440689, -0.05037295073270798, -0.17294497787952423, -0.23695041239261627, -0.19757653772830963, 0.09008253365755081, -0.4204040467739105, 0.05998719856142998, -0.1369481086730957, -0.440809428691864, 0.2870701849460602, -0.2488066852092743, -0.0929098129272461, -0.27486884593963623, 0.2901168763637543, -0.17866241931915283, 0.1630433052778244, 0.7134693264961243, -0.45375463366508484, -0.09063342958688736, -0.40438300371170044, -0.08303605765104294, -0.10283934324979782, 0.3096981942653656, -0.13425299525260925, 0.10728943347930908, -0.24727481603622437, -0.14184138178825378, 0.2915901243686676, -0.44253894686698914, -0.3745618760585785, -0.03541062772274017, 0.0048857638612389565, 0.059153951704502106, 0.19877362251281738, -0.039549365639686584, 0.12416944652795792, -0.21758247911930084, -0.17973966896533966, 0.21305394172668457, 0.030654866248369217, -0.16234415769577026, -0.1035056859254837, -0.2806386947631836, 0.04647265374660492, 0.31103113293647766, 0.41018494963645935, 0.046224333345890045, 0.05792096257209778, 0.1423959881067276, -0.07163169234991074, -0.055881548672914505, 0.14707103371620178, 0.5463568568229675, 0.4187251627445221, 0.21503137052059174, 0.12265802174806595, -0.04351948946714401, -0.27931350469589233, 0.3250386714935303, 0.09440930187702179, -0.03128999471664429, -0.3206387758255005, 0.0869089737534523, -0.12552689015865326, 0.08224274963140488, -0.2658870220184326, -0.06128755584359169, 0.022920744493603706, 0.013284425251185894, 0.04295364394783974, 0.0041299075819551945, -0.13769859075546265, 0.588718593120575, 0.08418599516153336, 0.2985941767692566, -0.3340805172920227, 0.49762171506881714, -0.21974408626556396, -0.024333015084266663, -0.22725427150726318, 0.21323271095752716, 0.03562871739268303, -0.09588771313428879, -0.16539019346237183, 0.22771719098091125, 0.050941672176122665, 0.04039911925792694, -0.08943695574998856, 0.4067894518375397, 0.1685875952243805, -0.3530110716819763, 0.32459375262260437, 0.21886049211025238, 0.07220093905925751, 0.012581335380673409, -0.1360505074262619, -0.17286722362041473, -0.11183122545480728, 0.2684078812599182, 0.06297757476568222, 0.07533223927021027, 0.1597503423690796, -0.01826203428208828, -0.09262743592262268, -0.297341525554657, 0.27647897601127625, 0.14009125530719757, 0.5950945019721985, 0.019513217732310295, 0.28391820192337036, -0.05881131440401077, 0.06487781554460526, -0.046195272356271744, 0.05049452930688858, 0.029605362564325333, -0.24496738612651825, 0.09414073824882507, 0.23930497467517853, 0.34683018922805786, 0.5564561486244202, 0.10727736353874207, -0.1874963343143463, 0.10478691011667252, -0.17522506415843964, 0.015193182975053787, 0.023684071376919746, 0.18322812020778656, 0.14471016824245453, 0.1225249320268631, -0.11152578145265579, 0.05419676750898361, -0.1200409084558487, -0.5026334524154663, 0.0624668262898922, 0.3078272044658661, -0.5334966778755188, 0.21419715881347656, -0.3632020950317383, -0.1724310964345932, -0.17130035161972046, -0.020089391618967056, -0.2281997799873352, -0.3269515037536621, -0.17478398978710175, 0.19582146406173706, -0.05696748197078705, 0.1376829445362091, -0.023150375112891197, -0.1850927174091339, -0.1616007536649704, -0.5011029839515686, -0.16544482111930847, -0.11890406906604767, -0.061578404158353806, -0.08522934466600418, 0.14521580934524536, -0.018659066408872604, 0.11595521867275238, -0.10611490905284882, 0.10914623737335205, -0.3176591992378235, -0.351071298122406, 0.05255779251456261, 0.05059361457824707, 0.30230486392974854, 0.12530487775802612, 0.2575555741786957, 0.19926472008228302, -0.2578483521938324, 0.1370527148246765, 0.06071467697620392, -0.07995418459177017, 0.08623720705509186, 0.030031897127628326, -0.3280068337917328, -0.15326033532619476, -0.12246137112379074, -0.4666891098022461, -0.43572261929512024, -0.22885748744010925, 0.0394914485514164, 0.07015518844127655, 0.6503175497055054, 0.20386703312397003, 0.12933245301246643, 0.10877940058708191, -0.09122072905302048, -0.06349684298038483, -0.014454093761742115, 0.5791622996330261, -0.21206890046596527, -0.2635466158390045, 0.012133601121604443, -0.18412624299526215, 0.272789865732193, 0.18574202060699463, -0.29849696159362793, -0.017807627096772194, -0.13284112513065338, 0.13841530680656433, 0.018292231485247612, 0.39561644196510315, 0.41454052925109863, 0.17499302327632904, 0.09817930310964584, -0.22871236503124237, 0.013999869115650654, -0.12110242992639542, 0.1775330901145935, 0.3473452031612396, -0.1626518964767456, 0.31982630491256714, -0.2939309775829315, 0.8454339504241943, 0.08068089932203293, 0.016349084675312042, 0.416377454996109, 0.19022764265537262, 0.7380410432815552, -0.009634985588490963, -0.4733699858188629, -0.025553349405527115, -0.009458448737859726, -0.23999789357185364, -0.0010801104363054037, -0.0055487570352852345, -0.18450400233268738, -0.13957853615283966, 0.17226751148700714, -0.1525452733039856, -0.15865764021873474, -0.056199971586465836, -0.07250162959098816, 0.10484001785516739, 0.12376018613576889, 0.09191069006919861, -0.23406866192817688, -0.06838314980268478, 0.11896584182977676, 0.5389813184738159, -0.11239258199930191, 0.2590029537677765, -0.4309726655483246, -0.3115493059158325, -0.10102963447570801, 0.10868701338768005, -0.14972810447216034, 0.33636191487312317, -0.11918254941701889, 0.14158619940280914, -0.17876975238323212, 0.1255776286125183, 0.4687942564487457, -0.2233206033706665, -0.3136991858482361, 0.2532341182231903, -0.026599358767271042, -0.5515051484107971, -0.27800849080085754, 0.07867290824651718, 0.14611569046974182, -0.021288037300109863, 0.11743707209825516, -0.36974990367889404, -0.20674192905426025, -0.02115456387400627, 0.49660027027130127, -0.10667627304792404, -0.16650241613388062, -0.19157765805721283, -0.2636028528213501, -0.393165647983551, -0.37317588925361633, -0.05362055078148842, -0.01749405264854431, 0.042743172496557236, 0.269225537776947, -0.07280770689249039, -0.0048150597140192986, 0.39097094535827637, 0.02884364128112793, 0.32214421033859253, -0.18401315808296204, 0.2099015712738037, 0.24200879037380219, -0.19916264712810516, 0.31777578592300415, 0.5349594354629517, -0.2972733974456787, -0.3691241145133972, 0.12901978194713593, 0.043382976204156876, 0.19291284680366516, 0.11767908930778503, -0.08909407258033752, -0.14913685619831085, -0.010816141963005066, -0.04721967503428459, 0.06858091056346893, 0.04971824958920479, 0.03658977895975113, 0.18124942481517792, -0.1543527990579605, -0.34261980652809143, 0.4528336226940155, 0.1937425136566162, 0.07214432954788208, 0.37909993529319763, 0.3884423077106476, -0.16847068071365356, 0.4540010690689087, -0.0736410841345787, 0.880765438079834, -0.025700237601995468, 0.10924261063337326, 0.11452735215425491, -0.16916878521442413, 0.5640379190444946, -0.3705213963985443, -0.07924137264490128, -0.36769676208496094, -0.16442106664180756, -0.10515841841697693, -0.2876475751399994, 0.3911517560482025, 0.2009354531764984, -0.18062835931777954, 0.3654472827911377, -0.0542883537709713, 0.06444747745990753, 0.015721606090664864, 0.20183223485946655, 0.051467932760715485, -0.4242675006389618, -0.09830515086650848, 0.14158053696155548, -0.04290645197033882, 0.5573292970657349, -0.1223062202334404, 0.1680159717798233, -0.343283474445343, -0.13801191747188568, -0.26111388206481934, 0.13598185777664185, -0.14278553426265717, 0.4621765911579132, 0.19321288168430328, -0.2737780809402466, 0.26123881340026855, 0.2018597424030304, 0.5882266163825989, 0.20449848473072052, -0.25995293259620667, 0.07726328819990158, -0.16639095544815063, 0.01658191718161106, 0.06126609817147255, -0.039154499769210815, 0.4917529821395874, 0.053494762629270554, -0.21638326346874237, 0.06012502312660217, -0.2685377895832062, -0.13037095963954926, 0.22577683627605438, -0.2135470062494278, 0.03804478421807289, -0.19370462000370026, -0.254637748003006, 0.16744203865528107, 0.08464394509792328, 0.07278411090373993, 0.05004466325044632, 0.16309337317943573, 0.06116073951125145, 0.3679533898830414, -0.19917848706245422, -0.10899540036916733, -0.20010057091712952, 0.3990020155906677, -0.1630827784538269, -0.053077202290296555, 0.5511960983276367, 0.04856761917471886, -0.2752055525779724, -0.009185375645756721, -0.05087080970406532, 0.02940998412668705, -0.4710201621055603, -0.238077774643898, -0.18881283700466156, -0.37086278200149536, 0.04138493165373802, -0.2812022864818573, 0.32648712396621704, -0.11400452256202698, -0.11132189631462097, -0.39065009355545044, -0.25035980343818665, 0.2954970896244049, -0.1786906123161316, 0.19405201077461243, -0.048775848001241684, -0.05231664702296257, 0.16568072140216827, -0.16565078496932983, -0.21810932457447052, -0.07748567312955856, -0.25161901116371155, -0.0239507295191288, 0.2636095881462097, -0.08443491905927658, 0.043690189719200134, -0.391988068819046, 0.004298040643334389, -0.16591010987758636, -0.3986683189868927, -0.061119142919778824, -0.173518568277359, 0.1971190720796585, 0.12147494405508041, -0.14936695992946625, 0.22293373942375183, -0.1989728957414627, 0.0005996816325932741, -0.25658470392227173, -0.0021225446835160255, 0.11977171897888184, -0.11849185079336166, 0.11764425784349442, 0.1455782651901245, -0.14399953186511993, -0.3486429750919342, 0.21487809717655182, 0.11214902997016907, 0.18453392386436462, 0.07024110853672028, 0.21870319545269012, 0.03993332386016846, -0.0439700148999691, -0.5120843648910522, 0.09814413636922836, -0.2063380926847458, -0.09658101946115494, 0.3869280517101288, -0.359747052192688, 0.22604656219482422, 0.2410663515329361, 0.21137817203998566, 0.38131946325302124, -0.10316608846187592, 0.15484771132469177, 0.4258763790130615, 0.08289025723934174, -0.2561054527759552, -0.2185853123664856, 0.1594652384519577, 0.07057315856218338, 0.0581141822040081, 0.34089529514312744, 0.1401669979095459, -0.11982614547014236, 0.7606735825538635, 0.23118823766708374, 0.6941423416137695, -0.11009591817855835, 0.26432859897613525, 0.38378050923347473, -0.08340795338153839, 0.19188234210014343, 0.23369109630584717, 0.08495478332042694, 0.2238958477973938, 0.36086633801460266, -0.2763064503669739, 0.14869821071624756, -0.020311342552304268, 0.14991948008537292, 0.045103758573532104, -0.5368812680244446, 0.011982200667262077, -0.2342728227376938, 0.22289742529392242, -0.05013793334364891, -0.039492253214120865, 0.040003105998039246, -0.38634753227233887, 0.024756155908107758, -0.06328140944242477, 0.20310355722904205, -0.03348078206181526, 0.12039270997047424, 0.46170493960380554, 0.013436469249427319, -0.06660401821136475, -0.18011003732681274, 0.020031141117215157, -0.41029828786849976, 0.12398653477430344, 0.06871750950813293, -0.18026374280452728, -0.242696151137352, 0.24134467542171478, 0.13215519487857819, -0.06559991836547852, -0.20450879633426666, 0.16770923137664795, 0.12105382978916168, -0.14718689024448395, -0.1756993532180786, 0.4764441251754761, 0.4472575783729553, 0.36503899097442627, 0.03475237265229225, 0.06564805656671524, 0.042932141572237015, -0.058304887264966965, 0.15676714479923248, 0.0065874941647052765, -0.37675362825393677, 0.21042287349700928, 0.22445659339427948, 0.09036634117364883, -0.09394466131925583, -0.32747361063957214, -0.1402045041322708, -0.06106441095471382, -0.29752543568611145, 0.31514060497283936, 0.007453358266502619, -0.1436067670583725, -0.0054712737910449505, -0.020225338637828827, -0.4903227984905243, 0.04249687120318413, 0.4755942225456238, 0.023723112419247627, -0.028277156874537468, -0.03990686684846878, -0.0054832142777740955, 0.010930539108812809, 0.33778291940689087, 0.5781377553939819, 0.2742242217063904, -0.40899404883384705, 0.09746483713388443, -0.8250720500946045, -0.0210972148925066, -0.2424001395702362, -0.1300927698612213, 0.19279515743255615, 0.06579844653606415, 0.00013738384586758912, 0.0886063277721405, 0.26191791892051697, 0.15303201973438263, -0.06720737367868423, -0.07175248116254807, -0.32998692989349365, -0.2705995738506317, 0.0108859958127141, -0.02210727520287037, -0.06709165126085281, -0.33627793192863464, 0.014974068850278854, 0.1458161324262619, -0.036993205547332764, -0.1294063776731491, -0.08583411574363708, 0.20775969326496124, -0.15710227191448212, 0.4208458364009857, -0.13908307254314423, 0.3130938410758972, 0.183028906583786, -0.1593523919582367, -0.2420642375946045, -0.2784916162490845, -0.0913388803601265, -0.007534261327236891, 0.03567169979214668, 0.525451123714447, -0.42021697759628296, -0.3511503338813782, -0.38881921768188477, 0.06769276410341263, 0.20718924701213837, -0.021845662966370583, -0.11916940659284592, 0.3861375153064728, -0.22010745108127594, 0.31553900241851807, 0.2222314476966858, 0.052767522633075714, -0.029281334951519966, 0.37028083205223083, -0.24898484349250793, -0.3444298207759857, 0.44520503282546997, -0.12711447477340698, -0.11873772740364075, -0.12912064790725708, 0.2647627592086792, -0.04215169697999954, -0.2734021246433258, -0.41157668828964233, 0.010954293422400951, 0.1472511887550354, -0.08650555461645126, -0.3207424581050873, 0.03934258595108986, 0.14528726041316986, 0.09057992696762085, -0.059190280735492706, 0.41098520159721375, -0.1266409307718277, -0.008443322032690048, 0.1631881594657898, 0.11226307600736618 ]
https://github.com/huggingface/datasets/issues/864
Unable to download cnn_dailymail dataset
Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2
### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions.
18
Unable to download cnn_dailymail dataset ### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions. Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2
[ -0.30534884333610535, 0.23437324166297913, -0.07922732084989548, 0.17068025469779968, 0.3605644404888153, 0.1738082617521286, 0.5607903003692627, 0.2436560094356537, -0.17192408442497253, 0.07516009360551834, -0.11793925613164902, 0.07677549868822098, -0.2897080183029175, -0.03775282949209213, -0.013057311996817589, -0.029159411787986755, -0.21272553503513336, 0.10676316171884537, -0.19734284281730652, 0.029164433479309082, -0.10671422630548477, 0.09612736105918884, -0.1522001475095749, -0.06974943727254868, -0.2929645776748657, -0.13203632831573486, 0.036387208849191666, 0.17929887771606445, -0.3712780177593231, -0.3521052598953247, 0.3593555688858032, -0.08252071589231491, 0.18734915554523468, 0.4354530870914459, -0.00011129576159873977, 0.2995794713497162, 0.36389443278312683, -0.050040848553180695, -0.46190309524536133, -0.47363775968551636, -0.17969940602779388, -0.1351318061351776, 0.04177413135766983, -0.2966800332069397, -0.0017575750825926661, 0.01226866990327835, -0.03552001714706421, 0.14817498624324799, 0.3508036732673645, 0.6557961106300354, 0.27080968022346497, 0.40348801016807556, 0.35445865988731384, -0.16699033975601196, -0.22140778601169586, 0.15944235026836395, -0.07421854138374329, 0.5186961889266968, -0.40132543444633484, 0.10327737778425217, 0.20565710961818695, 0.12078431248664856, -0.12784050405025482, 0.1728735715150833, 0.05075429007411003, 0.01895022578537464, 0.1369122713804245, -0.4564378559589386, 0.12486786395311356, 0.25986340641975403, 0.41855695843696594, -0.20146331191062927, -0.2431449294090271, 0.119638592004776, 0.14340706169605255, -0.2662440538406372, 0.1472921520471573, 0.30987799167633057, -0.16431359946727753, 0.058200787752866745, -0.2776971757411957, 0.011132937856018543, -0.291574090719223, 0.41405990719795227, -0.23036646842956543, 0.18169952929019928, 0.040302518755197525, 0.07407021522521973, 0.22286494076251984, -0.15204136073589325, 0.40154266357421875, -0.26364821195602417, 0.24718062579631805, 0.07260733842849731, -0.05233708396553993, -0.13678571581840515, 0.054563138633966446, -0.24839763343334198, 0.01371992938220501, 0.01342817023396492, -0.18991681933403015, -0.24806684255599976, 0.0034501017071306705, 0.07252217084169388, -0.003177167382091284, 0.08489473909139633, -0.23781420290470123, 0.6527369618415833, 0.1373990923166275, 0.4710145592689514, -0.11476880311965942, 0.042301807552576065, -0.23180779814720154, -0.13142195343971252, 0.1342499852180481, 0.1773541420698166, 0.5618003606796265, -0.1913478672504425, -0.4141939580440521, 0.2526678442955017, -0.5342703461647034, 0.0010650822659954429, 0.19670656323432922, 0.3225838541984558, -0.16969509422779083, 0.03549404814839363, 0.0004758719587698579, 0.10847683995962143, 0.02816922217607498, 0.08048035204410553, -0.2693050801753998, 0.2859301269054413, -0.11966071277856827, -0.09742292761802673, 0.37190213799476624, -0.35620352625846863, 0.1796887367963791, -0.02280852384865284, 0.10484828054904938, -0.13135023415088654, 0.1455956995487213, -0.2708340287208557, -0.1464383900165558, 0.4110409617424011, -0.10564283281564713, 0.13181862235069275, 0.0854271724820137, 0.04590141400694847, -0.1711774319410324, 0.1168932318687439, -0.023617221042513847, -0.3991507589817047, 0.07574047148227692, 0.24047055840492249, -0.078272745013237, -0.3346486985683441, 0.19673331081867218, -0.2113054245710373, -0.044189613312482834, 0.009028559550642967, -0.13164392113685608, -0.27473536133766174, -0.04888714849948883, -0.19608059525489807, 0.35706424713134766, 0.6024293899536133, -0.4387527406215668, 0.030003666877746582, -0.17706802487373352, -0.22162169218063354, 0.18658407032489777, 0.28598320484161377, -0.33142924308776855, 0.28657400608062744, -0.0801035612821579, -0.2004276067018509, 0.4411761164665222, -0.40873226523399353, -0.5403167605400085, 0.20195625722408295, -0.045744966715574265, 0.07474009692668915, -0.05776625871658325, 0.053031668066978455, 0.0841372087597847, 0.07740706950426102, 0.09538120031356812, 0.491537868976593, -0.1939896047115326, -0.02771584503352642, -0.1510465443134308, -0.3296217918395996, 0.18938516080379486, 0.32965633273124695, 0.43076708912849426, 0.1475803256034851, -0.008207688108086586, 0.10209248960018158, 0.12814757227897644, 0.07092507183551788, -0.05174100771546364, 0.1613204926252365, 0.3219524919986725, -0.03533780574798584, -0.19704093039035797, -0.07640194147825241, -0.39150694012641907, 0.10541979968547821, 0.11943872272968292, 0.1985466182231903, -0.09417983889579773, -0.05775264650583267, -0.48085951805114746, -0.11438480764627457, -0.22680194675922394, 0.04082892835140228, 0.2129354625940323, 0.20927390456199646, 0.1277357041835785, 0.04378760606050491, -0.26015469431877136, 0.3888751268386841, -0.05029691010713577, 0.2067388892173767, -0.1509428173303604, 0.40174973011016846, -0.29262325167655945, -0.05860114470124245, 0.06588731706142426, 0.04778115823864937, 0.25279566645622253, -0.12541398406028748, -0.10623889416456223, 0.11329269409179688, 0.010623600333929062, -0.12690997123718262, -0.06425594538450241, -0.0739673301577568, 0.0886371061205864, -0.16034232079982758, 0.032125841826200485, 0.318096786737442, 0.0794670581817627, 0.036276232451200485, -0.012976734898984432, 0.288482129573822, 0.16335956752300262, -0.04264971986413002, 0.11512965708971024, 0.14970384538173676, 0.2333555519580841, -0.20540417730808258, 0.00169800512958318, -0.07416944205760956, 0.25011250376701355, -0.02940351702272892, 0.3837198317050934, -0.11675924062728882, -0.32276254892349243, -0.29469138383865356, 0.20184987783432007, -0.22361049056053162, -0.0194853525608778, 0.06010156124830246, -0.19776800274848938, 0.1045859307050705, -0.21332783997058868, 0.32377225160598755, 0.44410574436187744, 0.07967696338891983, 0.028869150206446648, 0.10611806064844131, -0.21788088977336884, -0.10609839856624603, 0.159547358751297, 0.2282198816537857, 0.15282021462917328, 0.19166676700115204, -0.042863111943006516, 0.23197270929813385, -0.2976650893688202, -0.4345210790634155, 0.2509981691837311, 0.48847249150276184, -0.31152886152267456, -0.02912556752562523, -0.30287185311317444, -0.10649129748344421, -0.16221563518047333, -0.4730813801288605, -0.08110074698925018, -0.23605646193027496, -0.13590173423290253, 0.2614670693874359, 0.06388542056083679, 0.07232121378183365, -0.30643147230148315, -0.10445524752140045, 0.13256430625915527, -0.3229348957538605, -0.08566799014806747, 0.05517621338367462, -0.03963712230324745, 0.14762361347675323, 0.3995278775691986, -0.09697752445936203, 0.3422373831272125, -0.015432039275765419, -0.13053664565086365, -0.26305875182151794, -0.19279778003692627, -0.00043271449976600707, 0.02216934785246849, 0.24208861589431763, 0.1672898828983307, 0.4309620261192322, 0.022665830329060555, -0.19360589981079102, 0.1404915750026703, 0.05844557285308838, -0.0268692784011364, 0.2278817594051361, -0.2574727237224579, -0.10570396482944489, -0.010170572437345982, -0.4860128164291382, -0.5390895009040833, -0.3269209861755371, -0.15994222462177277, -0.04829037934541702, 0.1959897130727768, 0.42370736598968506, 0.11605262011289597, 0.13853555917739868, -0.15663856267929077, 0.0500074177980423, -0.12225706875324249, -0.12485285103321075, 0.4896653890609741, -0.3741432726383209, -0.38175296783447266, 0.10499514639377594, -0.17454306781291962, 0.2857013940811157, -0.08931316435337067, -0.4778813123703003, -0.20606164634227753, -0.18404531478881836, -0.07793889194726944, -0.1294924020767212, -0.22382156550884247, 0.12385929375886917, -0.05318297818303108, -0.044805675745010376, 0.12145747989416122, -0.11700939387083054, -0.02150370366871357, 0.1581927090883255, 0.07765466719865799, -0.18861757218837738, 0.5733034610748291, 0.026937618851661682, 0.6518713235855103, 0.20295760035514832, -0.2608672082424164, 0.31760114431381226, -0.0788147896528244, 0.22209568321704865, -0.040656574070453644, -0.47316133975982666, -0.04605216532945633, 0.213499516248703, 0.034807346761226654, -0.05965237691998482, -0.2256643921136856, -0.3095942735671997, -0.27220964431762695, -0.1301368623971939, -0.30815181136131287, -0.2545178532600403, 0.07127822935581207, 0.10313981026411057, 0.2053651362657547, 0.09950417280197144, 0.19141517579555511, 0.059102922677993774, -0.16810202598571777, -0.015037136152386665, 0.43139976263046265, 0.07715780287981033, 0.06338679045438766, 0.12956221401691437, -0.05927892029285431, -0.3305476903915405, 0.09203892201185226, -0.09288442879915237, 0.3071431517601013, -0.06199660152196884, 0.18668591976165771, -0.008911165408790112, -0.07653757184743881, 0.23132985830307007, 0.06874306499958038, 0.17000196874141693, 0.2777778208255768, -0.12189023941755295, -0.3610594868659973, -0.2362000048160553, -0.35344764590263367, 0.03378675878047943, 0.2101784199476242, 0.18393361568450928, -0.3156817555427551, -0.06619319319725037, 0.6153855323791504, 0.1403856873512268, -0.05568665638566017, -0.39501097798347473, -0.2080637663602829, -0.3233415484428406, -0.4916284680366516, 0.0996389091014862, -0.12920919060707092, 0.24462805688381195, 0.06658893078565598, -0.18747368454933167, -0.03484727442264557, 0.02179323509335518, 0.1887633055448532, 0.00046043837210163474, 0.12297138571739197, 0.08193038403987885, 0.3935820460319519, 0.13864701986312866, -0.09974135458469391, 0.43611547350883484, 0.4650554955005646, 0.04798513278365135, -0.414446622133255, -0.08821959793567657, 0.14171580970287323, -0.13683226704597473, 0.16665714979171753, -0.2181941270828247, -0.2737370729446411, 0.25231748819351196, 0.24603182077407837, 0.16224397718906403, 0.1378752887248993, 0.46102213859558105, -0.24305613338947296, -0.5729038119316101, -0.361553430557251, 0.18962588906288147, -0.17972628772258759, 0.14135782420635223, 0.13662144541740417, -0.24973620474338531, 0.01722516492009163, 0.010419349186122417, -0.05256044492125511, 0.778984546661377, 0.15485377609729767, 0.044109780341386795, 0.4680342376232147, -0.003757653757929802, 0.30149123072624207, -0.05590089410543442, 0.08382982015609741, -0.3072827160358429, -0.23212695121765137, -0.12282988429069519, -0.22825521230697632, 0.15366022288799286, 0.26825961470603943, -0.21459275484085083, 0.36661770939826965, -0.056844163686037064, 0.14512847363948822, 0.0025311585050076246, 0.3421616852283478, -0.058432403951883316, 0.06554614007472992, -0.06265714764595032, 0.20406238734722137, -0.14442899823188782, 0.40972304344177246, -0.1356852650642395, -0.14900463819503784, -0.0768992155790329, -0.25969016551971436, -0.26328012347221375, 0.1581939458847046, -0.3894183039665222, 0.30091795325279236, 0.09400662034749985, -0.05416317284107208, -0.077586829662323, -0.07200053334236145, 0.037950873374938965, 0.038783226162195206, -0.17527757585048676, 0.08449582010507584, -0.12885786592960358, -0.23654712736606598, -0.05951801687479019, -0.10941404849290848, 0.41440561413764954, -0.2647615671157837, -0.24289877712726593, 0.09646956622600555, 0.0492815226316452, -0.21072222292423248, 0.10666368156671524, 0.01126813143491745, 0.20416167378425598, -0.34075239300727844, -0.25181058049201965, -0.0327814519405365, -0.17753949761390686, -0.12553101778030396, 0.1862044483423233, 0.03604445978999138, -0.03649936988949776, 0.28305068612098694, -0.062081754207611084, -0.19476008415222168, -0.1506979912519455, 0.35120880603790283, -0.10675804316997528, -0.12338736653327942, 0.43479177355766296, 0.07205361127853394, -0.3199327290058136, -0.2920498251914978, 0.07938309013843536, -0.046526771038770676, -0.41478365659713745, 0.08965198695659637, 0.0486430786550045, 0.34030279517173767, 0.06553837656974792, 0.10395961999893188, 0.19103464484214783, 0.0446527823805809, -0.026322415098547935, -0.5710040926933289, -0.2213817536830902, -0.0354623943567276, 0.035440608859062195, 0.22890135645866394, -0.0949719101190567, 0.32620614767074585, 0.20343898236751556, -0.06553869694471359, -0.3433678448200226, 0.13649404048919678, -0.09542266279459, -0.04529321938753128, 0.13594414293766022, -0.1490374058485031, 0.4430595338344574, 0.10090447962284088, 0.19788873195648193, 0.02786426618695259, -0.11768343299627304, -0.2749333381652832, -0.12826873362064362, 0.11908845603466034, 0.16798469424247742, -0.12618324160575867, 0.042002614587545395, -0.19966113567352295, -0.34252363443374634, 0.1667088270187378, 0.02332470566034317, 0.17778868973255157, -0.018748044967651367, 0.04774390161037445, 0.15270547568798065, 0.05769648775458336, -0.15243472158908844, 0.019750669598579407, -0.09334152191877365, 0.34244415163993835, 0.22018739581108093, 0.25267326831817627, 0.10924849659204483, -0.028304245322942734, -0.43533584475517273, -0.08897805958986282, 0.021521762013435364, -0.10898943990468979, 0.39708608388900757, -0.22670696675777435, -0.08440792560577393, 0.11683867871761322, 0.22189757227897644, 0.34275129437446594, -0.24455076456069946, 0.04737711325287819, 0.31645068526268005, 0.25021982192993164, -0.2942928969860077, -0.07446492463350296, 0.1661241203546524, 0.11073006689548492, 0.11224242299795151, 0.07781343162059784, -0.254672110080719, 0.07170955091714859, 0.02375148795545101, 0.13734261691570282, 0.3921360969543457, -0.04000319167971611, 0.1250549703836441, 0.3877001404762268, -0.13047635555267334, -0.006714708171784878, 0.1958848237991333, -0.012120751664042473, 0.07087216526269913, 0.4315569996833801, -0.29081228375434875, -0.01196393370628357, -0.17292380332946777, -0.07347849756479263, 0.22686325013637543, -0.2598976790904999, -0.003940693102777004, 0.22691984474658966, -0.1188616007566452, 0.085306316614151, -0.019769925624132156, 0.10144582390785217, -0.020962519571185112, 0.12613901495933533, -0.48664748668670654, 0.39160653948783875, -0.09983612596988678, 0.3023124933242798, -0.2309105545282364, -0.1329817920923233, -0.22922134399414062, 0.14528174698352814, 0.10430477559566498, -0.16917577385902405, 0.227352112531662, 0.3998037576675415, -0.2776855528354645, -0.15504050254821777, 0.07528366148471832, 0.31081900000572205, -0.08133330196142197, -0.27611491084098816, 0.182285875082016, 0.3667350709438324, -0.03441382944583893, -0.0020705596543848515, 0.4475150406360626, 0.39379656314849854, 0.2824239134788513, 0.04741479456424713, 0.23717650771141052, 0.10837436467409134, -0.15883533656597137, 0.09912880510091782, 0.11139779537916183, 0.2268323004245758, 0.3477739095687866, 0.3200223743915558, 0.22533270716667175, -0.2515420913696289, 0.048018138855695724, -0.09312416613101959, -0.08263905346393585, -0.23183327913284302, 0.561455488204956, 0.04967557638883591, 0.03975948691368103, -0.24078360199928284, -0.053669583052396774, -0.4856574535369873, -0.03480759635567665, 0.3326095640659332, 0.1133723333477974, 0.09824103116989136, -0.1042846292257309, 0.06438920646905899, -0.09752979129552841, 0.31203651428222656, 0.33213239908218384, 0.2571234107017517, -0.6201799511909485, 0.004288012161850929, -0.6339925527572632, 0.17016372084617615, -0.19856587052345276, 0.07438506931066513, -0.01663650944828987, 0.0412023663520813, -0.23117558658123016, 0.31157663464546204, 0.21937991678714752, 0.039545152336359024, 0.011646063067018986, 0.2519511282444, -0.1994517594575882, -0.02942757122218609, 0.16616077721118927, -0.14328183233737946, 0.08303248882293701, -0.4240463376045227, 0.09940433502197266, -0.4774462878704071, 0.017368827015161514, -0.044378675520420074, -0.30667728185653687, -0.03532895818352699, 0.2529793381690979, 0.4154711663722992, 0.05414919555187225, 0.7115378975868225, -0.0803389623761177, -0.2179785966873169, -0.2073073387145996, -0.01567121408879757, -0.2390040010213852, 0.1551913172006607, 0.1466783583164215, 0.37374168634414673, -0.024113371968269348, -0.18985982239246368, -0.4175257086753845, 0.3508703112602234, -0.10771575570106506, -0.1765221804380417, -0.21676643192768097, -0.017920400947332382, -0.19246360659599304, 0.24245047569274902, 0.050992634147405624, 0.08500128984451294, -0.0730699822306633, 0.17927883565425873, -0.3576478660106659, -0.4977724850177765, 0.6089868545532227, -0.23517532646656036, -0.21081194281578064, -0.21934612095355988, 0.12395544350147247, -0.11723757535219193, 0.1133628860116005, -0.4977308511734009, 0.32110515236854553, 0.32384806871414185, -0.012920952402055264, -0.1095668226480484, 0.20090284943580627, 0.2233961969614029, 0.20485477149486542, 0.06408773362636566, 0.3913768529891968, 0.15037229657173157, -0.3911631405353546, -0.057592347264289856, -0.20363329350948334 ]
https://github.com/huggingface/datasets/issues/864
Unable to download cnn_dailymail dataset
I couldn't reproduce unfortunately. I tried ```python from datasets import load_dataset load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload") ``` and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9) Maybe there was an issue with the google drive download link of the dataset ? Are you still having the issue ? If so could your give me more info about your python and requests version ?
### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions.
66
Unable to download cnn_dailymail dataset ### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions. I couldn't reproduce unfortunately. I tried ```python from datasets import load_dataset load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload") ``` and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9) Maybe there was an issue with the google drive download link of the dataset ? Are you still having the issue ? If so could your give me more info about your python and requests version ?
[ -0.30534884333610535, 0.23437324166297913, -0.07922732084989548, 0.17068025469779968, 0.3605644404888153, 0.1738082617521286, 0.5607903003692627, 0.2436560094356537, -0.17192408442497253, 0.07516009360551834, -0.11793925613164902, 0.07677549868822098, -0.2897080183029175, -0.03775282949209213, -0.013057311996817589, -0.029159411787986755, -0.21272553503513336, 0.10676316171884537, -0.19734284281730652, 0.029164433479309082, -0.10671422630548477, 0.09612736105918884, -0.1522001475095749, -0.06974943727254868, -0.2929645776748657, -0.13203632831573486, 0.036387208849191666, 0.17929887771606445, -0.3712780177593231, -0.3521052598953247, 0.3593555688858032, -0.08252071589231491, 0.18734915554523468, 0.4354530870914459, -0.00011129576159873977, 0.2995794713497162, 0.36389443278312683, -0.050040848553180695, -0.46190309524536133, -0.47363775968551636, -0.17969940602779388, -0.1351318061351776, 0.04177413135766983, -0.2966800332069397, -0.0017575750825926661, 0.01226866990327835, -0.03552001714706421, 0.14817498624324799, 0.3508036732673645, 0.6557961106300354, 0.27080968022346497, 0.40348801016807556, 0.35445865988731384, -0.16699033975601196, -0.22140778601169586, 0.15944235026836395, -0.07421854138374329, 0.5186961889266968, -0.40132543444633484, 0.10327737778425217, 0.20565710961818695, 0.12078431248664856, -0.12784050405025482, 0.1728735715150833, 0.05075429007411003, 0.01895022578537464, 0.1369122713804245, -0.4564378559589386, 0.12486786395311356, 0.25986340641975403, 0.41855695843696594, -0.20146331191062927, -0.2431449294090271, 0.119638592004776, 0.14340706169605255, -0.2662440538406372, 0.1472921520471573, 0.30987799167633057, -0.16431359946727753, 0.058200787752866745, -0.2776971757411957, 0.011132937856018543, -0.291574090719223, 0.41405990719795227, -0.23036646842956543, 0.18169952929019928, 0.040302518755197525, 0.07407021522521973, 0.22286494076251984, -0.15204136073589325, 0.40154266357421875, -0.26364821195602417, 0.24718062579631805, 0.07260733842849731, -0.05233708396553993, -0.13678571581840515, 0.054563138633966446, -0.24839763343334198, 0.01371992938220501, 0.01342817023396492, -0.18991681933403015, -0.24806684255599976, 0.0034501017071306705, 0.07252217084169388, -0.003177167382091284, 0.08489473909139633, -0.23781420290470123, 0.6527369618415833, 0.1373990923166275, 0.4710145592689514, -0.11476880311965942, 0.042301807552576065, -0.23180779814720154, -0.13142195343971252, 0.1342499852180481, 0.1773541420698166, 0.5618003606796265, -0.1913478672504425, -0.4141939580440521, 0.2526678442955017, -0.5342703461647034, 0.0010650822659954429, 0.19670656323432922, 0.3225838541984558, -0.16969509422779083, 0.03549404814839363, 0.0004758719587698579, 0.10847683995962143, 0.02816922217607498, 0.08048035204410553, -0.2693050801753998, 0.2859301269054413, -0.11966071277856827, -0.09742292761802673, 0.37190213799476624, -0.35620352625846863, 0.1796887367963791, -0.02280852384865284, 0.10484828054904938, -0.13135023415088654, 0.1455956995487213, -0.2708340287208557, -0.1464383900165558, 0.4110409617424011, -0.10564283281564713, 0.13181862235069275, 0.0854271724820137, 0.04590141400694847, -0.1711774319410324, 0.1168932318687439, -0.023617221042513847, -0.3991507589817047, 0.07574047148227692, 0.24047055840492249, -0.078272745013237, -0.3346486985683441, 0.19673331081867218, -0.2113054245710373, -0.044189613312482834, 0.009028559550642967, -0.13164392113685608, -0.27473536133766174, -0.04888714849948883, -0.19608059525489807, 0.35706424713134766, 0.6024293899536133, -0.4387527406215668, 0.030003666877746582, -0.17706802487373352, -0.22162169218063354, 0.18658407032489777, 0.28598320484161377, -0.33142924308776855, 0.28657400608062744, -0.0801035612821579, -0.2004276067018509, 0.4411761164665222, -0.40873226523399353, -0.5403167605400085, 0.20195625722408295, -0.045744966715574265, 0.07474009692668915, -0.05776625871658325, 0.053031668066978455, 0.0841372087597847, 0.07740706950426102, 0.09538120031356812, 0.491537868976593, -0.1939896047115326, -0.02771584503352642, -0.1510465443134308, -0.3296217918395996, 0.18938516080379486, 0.32965633273124695, 0.43076708912849426, 0.1475803256034851, -0.008207688108086586, 0.10209248960018158, 0.12814757227897644, 0.07092507183551788, -0.05174100771546364, 0.1613204926252365, 0.3219524919986725, -0.03533780574798584, -0.19704093039035797, -0.07640194147825241, -0.39150694012641907, 0.10541979968547821, 0.11943872272968292, 0.1985466182231903, -0.09417983889579773, -0.05775264650583267, -0.48085951805114746, -0.11438480764627457, -0.22680194675922394, 0.04082892835140228, 0.2129354625940323, 0.20927390456199646, 0.1277357041835785, 0.04378760606050491, -0.26015469431877136, 0.3888751268386841, -0.05029691010713577, 0.2067388892173767, -0.1509428173303604, 0.40174973011016846, -0.29262325167655945, -0.05860114470124245, 0.06588731706142426, 0.04778115823864937, 0.25279566645622253, -0.12541398406028748, -0.10623889416456223, 0.11329269409179688, 0.010623600333929062, -0.12690997123718262, -0.06425594538450241, -0.0739673301577568, 0.0886371061205864, -0.16034232079982758, 0.032125841826200485, 0.318096786737442, 0.0794670581817627, 0.036276232451200485, -0.012976734898984432, 0.288482129573822, 0.16335956752300262, -0.04264971986413002, 0.11512965708971024, 0.14970384538173676, 0.2333555519580841, -0.20540417730808258, 0.00169800512958318, -0.07416944205760956, 0.25011250376701355, -0.02940351702272892, 0.3837198317050934, -0.11675924062728882, -0.32276254892349243, -0.29469138383865356, 0.20184987783432007, -0.22361049056053162, -0.0194853525608778, 0.06010156124830246, -0.19776800274848938, 0.1045859307050705, -0.21332783997058868, 0.32377225160598755, 0.44410574436187744, 0.07967696338891983, 0.028869150206446648, 0.10611806064844131, -0.21788088977336884, -0.10609839856624603, 0.159547358751297, 0.2282198816537857, 0.15282021462917328, 0.19166676700115204, -0.042863111943006516, 0.23197270929813385, -0.2976650893688202, -0.4345210790634155, 0.2509981691837311, 0.48847249150276184, -0.31152886152267456, -0.02912556752562523, -0.30287185311317444, -0.10649129748344421, -0.16221563518047333, -0.4730813801288605, -0.08110074698925018, -0.23605646193027496, -0.13590173423290253, 0.2614670693874359, 0.06388542056083679, 0.07232121378183365, -0.30643147230148315, -0.10445524752140045, 0.13256430625915527, -0.3229348957538605, -0.08566799014806747, 0.05517621338367462, -0.03963712230324745, 0.14762361347675323, 0.3995278775691986, -0.09697752445936203, 0.3422373831272125, -0.015432039275765419, -0.13053664565086365, -0.26305875182151794, -0.19279778003692627, -0.00043271449976600707, 0.02216934785246849, 0.24208861589431763, 0.1672898828983307, 0.4309620261192322, 0.022665830329060555, -0.19360589981079102, 0.1404915750026703, 0.05844557285308838, -0.0268692784011364, 0.2278817594051361, -0.2574727237224579, -0.10570396482944489, -0.010170572437345982, -0.4860128164291382, -0.5390895009040833, -0.3269209861755371, -0.15994222462177277, -0.04829037934541702, 0.1959897130727768, 0.42370736598968506, 0.11605262011289597, 0.13853555917739868, -0.15663856267929077, 0.0500074177980423, -0.12225706875324249, -0.12485285103321075, 0.4896653890609741, -0.3741432726383209, -0.38175296783447266, 0.10499514639377594, -0.17454306781291962, 0.2857013940811157, -0.08931316435337067, -0.4778813123703003, -0.20606164634227753, -0.18404531478881836, -0.07793889194726944, -0.1294924020767212, -0.22382156550884247, 0.12385929375886917, -0.05318297818303108, -0.044805675745010376, 0.12145747989416122, -0.11700939387083054, -0.02150370366871357, 0.1581927090883255, 0.07765466719865799, -0.18861757218837738, 0.5733034610748291, 0.026937618851661682, 0.6518713235855103, 0.20295760035514832, -0.2608672082424164, 0.31760114431381226, -0.0788147896528244, 0.22209568321704865, -0.040656574070453644, -0.47316133975982666, -0.04605216532945633, 0.213499516248703, 0.034807346761226654, -0.05965237691998482, -0.2256643921136856, -0.3095942735671997, -0.27220964431762695, -0.1301368623971939, -0.30815181136131287, -0.2545178532600403, 0.07127822935581207, 0.10313981026411057, 0.2053651362657547, 0.09950417280197144, 0.19141517579555511, 0.059102922677993774, -0.16810202598571777, -0.015037136152386665, 0.43139976263046265, 0.07715780287981033, 0.06338679045438766, 0.12956221401691437, -0.05927892029285431, -0.3305476903915405, 0.09203892201185226, -0.09288442879915237, 0.3071431517601013, -0.06199660152196884, 0.18668591976165771, -0.008911165408790112, -0.07653757184743881, 0.23132985830307007, 0.06874306499958038, 0.17000196874141693, 0.2777778208255768, -0.12189023941755295, -0.3610594868659973, -0.2362000048160553, -0.35344764590263367, 0.03378675878047943, 0.2101784199476242, 0.18393361568450928, -0.3156817555427551, -0.06619319319725037, 0.6153855323791504, 0.1403856873512268, -0.05568665638566017, -0.39501097798347473, -0.2080637663602829, -0.3233415484428406, -0.4916284680366516, 0.0996389091014862, -0.12920919060707092, 0.24462805688381195, 0.06658893078565598, -0.18747368454933167, -0.03484727442264557, 0.02179323509335518, 0.1887633055448532, 0.00046043837210163474, 0.12297138571739197, 0.08193038403987885, 0.3935820460319519, 0.13864701986312866, -0.09974135458469391, 0.43611547350883484, 0.4650554955005646, 0.04798513278365135, -0.414446622133255, -0.08821959793567657, 0.14171580970287323, -0.13683226704597473, 0.16665714979171753, -0.2181941270828247, -0.2737370729446411, 0.25231748819351196, 0.24603182077407837, 0.16224397718906403, 0.1378752887248993, 0.46102213859558105, -0.24305613338947296, -0.5729038119316101, -0.361553430557251, 0.18962588906288147, -0.17972628772258759, 0.14135782420635223, 0.13662144541740417, -0.24973620474338531, 0.01722516492009163, 0.010419349186122417, -0.05256044492125511, 0.778984546661377, 0.15485377609729767, 0.044109780341386795, 0.4680342376232147, -0.003757653757929802, 0.30149123072624207, -0.05590089410543442, 0.08382982015609741, -0.3072827160358429, -0.23212695121765137, -0.12282988429069519, -0.22825521230697632, 0.15366022288799286, 0.26825961470603943, -0.21459275484085083, 0.36661770939826965, -0.056844163686037064, 0.14512847363948822, 0.0025311585050076246, 0.3421616852283478, -0.058432403951883316, 0.06554614007472992, -0.06265714764595032, 0.20406238734722137, -0.14442899823188782, 0.40972304344177246, -0.1356852650642395, -0.14900463819503784, -0.0768992155790329, -0.25969016551971436, -0.26328012347221375, 0.1581939458847046, -0.3894183039665222, 0.30091795325279236, 0.09400662034749985, -0.05416317284107208, -0.077586829662323, -0.07200053334236145, 0.037950873374938965, 0.038783226162195206, -0.17527757585048676, 0.08449582010507584, -0.12885786592960358, -0.23654712736606598, -0.05951801687479019, -0.10941404849290848, 0.41440561413764954, -0.2647615671157837, -0.24289877712726593, 0.09646956622600555, 0.0492815226316452, -0.21072222292423248, 0.10666368156671524, 0.01126813143491745, 0.20416167378425598, -0.34075239300727844, -0.25181058049201965, -0.0327814519405365, -0.17753949761390686, -0.12553101778030396, 0.1862044483423233, 0.03604445978999138, -0.03649936988949776, 0.28305068612098694, -0.062081754207611084, -0.19476008415222168, -0.1506979912519455, 0.35120880603790283, -0.10675804316997528, -0.12338736653327942, 0.43479177355766296, 0.07205361127853394, -0.3199327290058136, -0.2920498251914978, 0.07938309013843536, -0.046526771038770676, -0.41478365659713745, 0.08965198695659637, 0.0486430786550045, 0.34030279517173767, 0.06553837656974792, 0.10395961999893188, 0.19103464484214783, 0.0446527823805809, -0.026322415098547935, -0.5710040926933289, -0.2213817536830902, -0.0354623943567276, 0.035440608859062195, 0.22890135645866394, -0.0949719101190567, 0.32620614767074585, 0.20343898236751556, -0.06553869694471359, -0.3433678448200226, 0.13649404048919678, -0.09542266279459, -0.04529321938753128, 0.13594414293766022, -0.1490374058485031, 0.4430595338344574, 0.10090447962284088, 0.19788873195648193, 0.02786426618695259, -0.11768343299627304, -0.2749333381652832, -0.12826873362064362, 0.11908845603466034, 0.16798469424247742, -0.12618324160575867, 0.042002614587545395, -0.19966113567352295, -0.34252363443374634, 0.1667088270187378, 0.02332470566034317, 0.17778868973255157, -0.018748044967651367, 0.04774390161037445, 0.15270547568798065, 0.05769648775458336, -0.15243472158908844, 0.019750669598579407, -0.09334152191877365, 0.34244415163993835, 0.22018739581108093, 0.25267326831817627, 0.10924849659204483, -0.028304245322942734, -0.43533584475517273, -0.08897805958986282, 0.021521762013435364, -0.10898943990468979, 0.39708608388900757, -0.22670696675777435, -0.08440792560577393, 0.11683867871761322, 0.22189757227897644, 0.34275129437446594, -0.24455076456069946, 0.04737711325287819, 0.31645068526268005, 0.25021982192993164, -0.2942928969860077, -0.07446492463350296, 0.1661241203546524, 0.11073006689548492, 0.11224242299795151, 0.07781343162059784, -0.254672110080719, 0.07170955091714859, 0.02375148795545101, 0.13734261691570282, 0.3921360969543457, -0.04000319167971611, 0.1250549703836441, 0.3877001404762268, -0.13047635555267334, -0.006714708171784878, 0.1958848237991333, -0.012120751664042473, 0.07087216526269913, 0.4315569996833801, -0.29081228375434875, -0.01196393370628357, -0.17292380332946777, -0.07347849756479263, 0.22686325013637543, -0.2598976790904999, -0.003940693102777004, 0.22691984474658966, -0.1188616007566452, 0.085306316614151, -0.019769925624132156, 0.10144582390785217, -0.020962519571185112, 0.12613901495933533, -0.48664748668670654, 0.39160653948783875, -0.09983612596988678, 0.3023124933242798, -0.2309105545282364, -0.1329817920923233, -0.22922134399414062, 0.14528174698352814, 0.10430477559566498, -0.16917577385902405, 0.227352112531662, 0.3998037576675415, -0.2776855528354645, -0.15504050254821777, 0.07528366148471832, 0.31081900000572205, -0.08133330196142197, -0.27611491084098816, 0.182285875082016, 0.3667350709438324, -0.03441382944583893, -0.0020705596543848515, 0.4475150406360626, 0.39379656314849854, 0.2824239134788513, 0.04741479456424713, 0.23717650771141052, 0.10837436467409134, -0.15883533656597137, 0.09912880510091782, 0.11139779537916183, 0.2268323004245758, 0.3477739095687866, 0.3200223743915558, 0.22533270716667175, -0.2515420913696289, 0.048018138855695724, -0.09312416613101959, -0.08263905346393585, -0.23183327913284302, 0.561455488204956, 0.04967557638883591, 0.03975948691368103, -0.24078360199928284, -0.053669583052396774, -0.4856574535369873, -0.03480759635567665, 0.3326095640659332, 0.1133723333477974, 0.09824103116989136, -0.1042846292257309, 0.06438920646905899, -0.09752979129552841, 0.31203651428222656, 0.33213239908218384, 0.2571234107017517, -0.6201799511909485, 0.004288012161850929, -0.6339925527572632, 0.17016372084617615, -0.19856587052345276, 0.07438506931066513, -0.01663650944828987, 0.0412023663520813, -0.23117558658123016, 0.31157663464546204, 0.21937991678714752, 0.039545152336359024, 0.011646063067018986, 0.2519511282444, -0.1994517594575882, -0.02942757122218609, 0.16616077721118927, -0.14328183233737946, 0.08303248882293701, -0.4240463376045227, 0.09940433502197266, -0.4774462878704071, 0.017368827015161514, -0.044378675520420074, -0.30667728185653687, -0.03532895818352699, 0.2529793381690979, 0.4154711663722992, 0.05414919555187225, 0.7115378975868225, -0.0803389623761177, -0.2179785966873169, -0.2073073387145996, -0.01567121408879757, -0.2390040010213852, 0.1551913172006607, 0.1466783583164215, 0.37374168634414673, -0.024113371968269348, -0.18985982239246368, -0.4175257086753845, 0.3508703112602234, -0.10771575570106506, -0.1765221804380417, -0.21676643192768097, -0.017920400947332382, -0.19246360659599304, 0.24245047569274902, 0.050992634147405624, 0.08500128984451294, -0.0730699822306633, 0.17927883565425873, -0.3576478660106659, -0.4977724850177765, 0.6089868545532227, -0.23517532646656036, -0.21081194281578064, -0.21934612095355988, 0.12395544350147247, -0.11723757535219193, 0.1133628860116005, -0.4977308511734009, 0.32110515236854553, 0.32384806871414185, -0.012920952402055264, -0.1095668226480484, 0.20090284943580627, 0.2233961969614029, 0.20485477149486542, 0.06408773362636566, 0.3913768529891968, 0.15037229657173157, -0.3911631405353546, -0.057592347264289856, -0.20363329350948334 ]
https://github.com/huggingface/datasets/issues/864
Unable to download cnn_dailymail dataset
No, It's working fine now. Very strange. Here are my python and request versions requests 2.24.0 Python 3.8.2
### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions.
18
Unable to download cnn_dailymail dataset ### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions. No, It's working fine now. Very strange. Here are my python and request versions requests 2.24.0 Python 3.8.2
[ -0.30534884333610535, 0.23437324166297913, -0.07922732084989548, 0.17068025469779968, 0.3605644404888153, 0.1738082617521286, 0.5607903003692627, 0.2436560094356537, -0.17192408442497253, 0.07516009360551834, -0.11793925613164902, 0.07677549868822098, -0.2897080183029175, -0.03775282949209213, -0.013057311996817589, -0.029159411787986755, -0.21272553503513336, 0.10676316171884537, -0.19734284281730652, 0.029164433479309082, -0.10671422630548477, 0.09612736105918884, -0.1522001475095749, -0.06974943727254868, -0.2929645776748657, -0.13203632831573486, 0.036387208849191666, 0.17929887771606445, -0.3712780177593231, -0.3521052598953247, 0.3593555688858032, -0.08252071589231491, 0.18734915554523468, 0.4354530870914459, -0.00011129576159873977, 0.2995794713497162, 0.36389443278312683, -0.050040848553180695, -0.46190309524536133, -0.47363775968551636, -0.17969940602779388, -0.1351318061351776, 0.04177413135766983, -0.2966800332069397, -0.0017575750825926661, 0.01226866990327835, -0.03552001714706421, 0.14817498624324799, 0.3508036732673645, 0.6557961106300354, 0.27080968022346497, 0.40348801016807556, 0.35445865988731384, -0.16699033975601196, -0.22140778601169586, 0.15944235026836395, -0.07421854138374329, 0.5186961889266968, -0.40132543444633484, 0.10327737778425217, 0.20565710961818695, 0.12078431248664856, -0.12784050405025482, 0.1728735715150833, 0.05075429007411003, 0.01895022578537464, 0.1369122713804245, -0.4564378559589386, 0.12486786395311356, 0.25986340641975403, 0.41855695843696594, -0.20146331191062927, -0.2431449294090271, 0.119638592004776, 0.14340706169605255, -0.2662440538406372, 0.1472921520471573, 0.30987799167633057, -0.16431359946727753, 0.058200787752866745, -0.2776971757411957, 0.011132937856018543, -0.291574090719223, 0.41405990719795227, -0.23036646842956543, 0.18169952929019928, 0.040302518755197525, 0.07407021522521973, 0.22286494076251984, -0.15204136073589325, 0.40154266357421875, -0.26364821195602417, 0.24718062579631805, 0.07260733842849731, -0.05233708396553993, -0.13678571581840515, 0.054563138633966446, -0.24839763343334198, 0.01371992938220501, 0.01342817023396492, -0.18991681933403015, -0.24806684255599976, 0.0034501017071306705, 0.07252217084169388, -0.003177167382091284, 0.08489473909139633, -0.23781420290470123, 0.6527369618415833, 0.1373990923166275, 0.4710145592689514, -0.11476880311965942, 0.042301807552576065, -0.23180779814720154, -0.13142195343971252, 0.1342499852180481, 0.1773541420698166, 0.5618003606796265, -0.1913478672504425, -0.4141939580440521, 0.2526678442955017, -0.5342703461647034, 0.0010650822659954429, 0.19670656323432922, 0.3225838541984558, -0.16969509422779083, 0.03549404814839363, 0.0004758719587698579, 0.10847683995962143, 0.02816922217607498, 0.08048035204410553, -0.2693050801753998, 0.2859301269054413, -0.11966071277856827, -0.09742292761802673, 0.37190213799476624, -0.35620352625846863, 0.1796887367963791, -0.02280852384865284, 0.10484828054904938, -0.13135023415088654, 0.1455956995487213, -0.2708340287208557, -0.1464383900165558, 0.4110409617424011, -0.10564283281564713, 0.13181862235069275, 0.0854271724820137, 0.04590141400694847, -0.1711774319410324, 0.1168932318687439, -0.023617221042513847, -0.3991507589817047, 0.07574047148227692, 0.24047055840492249, -0.078272745013237, -0.3346486985683441, 0.19673331081867218, -0.2113054245710373, -0.044189613312482834, 0.009028559550642967, -0.13164392113685608, -0.27473536133766174, -0.04888714849948883, -0.19608059525489807, 0.35706424713134766, 0.6024293899536133, -0.4387527406215668, 0.030003666877746582, -0.17706802487373352, -0.22162169218063354, 0.18658407032489777, 0.28598320484161377, -0.33142924308776855, 0.28657400608062744, -0.0801035612821579, -0.2004276067018509, 0.4411761164665222, -0.40873226523399353, -0.5403167605400085, 0.20195625722408295, -0.045744966715574265, 0.07474009692668915, -0.05776625871658325, 0.053031668066978455, 0.0841372087597847, 0.07740706950426102, 0.09538120031356812, 0.491537868976593, -0.1939896047115326, -0.02771584503352642, -0.1510465443134308, -0.3296217918395996, 0.18938516080379486, 0.32965633273124695, 0.43076708912849426, 0.1475803256034851, -0.008207688108086586, 0.10209248960018158, 0.12814757227897644, 0.07092507183551788, -0.05174100771546364, 0.1613204926252365, 0.3219524919986725, -0.03533780574798584, -0.19704093039035797, -0.07640194147825241, -0.39150694012641907, 0.10541979968547821, 0.11943872272968292, 0.1985466182231903, -0.09417983889579773, -0.05775264650583267, -0.48085951805114746, -0.11438480764627457, -0.22680194675922394, 0.04082892835140228, 0.2129354625940323, 0.20927390456199646, 0.1277357041835785, 0.04378760606050491, -0.26015469431877136, 0.3888751268386841, -0.05029691010713577, 0.2067388892173767, -0.1509428173303604, 0.40174973011016846, -0.29262325167655945, -0.05860114470124245, 0.06588731706142426, 0.04778115823864937, 0.25279566645622253, -0.12541398406028748, -0.10623889416456223, 0.11329269409179688, 0.010623600333929062, -0.12690997123718262, -0.06425594538450241, -0.0739673301577568, 0.0886371061205864, -0.16034232079982758, 0.032125841826200485, 0.318096786737442, 0.0794670581817627, 0.036276232451200485, -0.012976734898984432, 0.288482129573822, 0.16335956752300262, -0.04264971986413002, 0.11512965708971024, 0.14970384538173676, 0.2333555519580841, -0.20540417730808258, 0.00169800512958318, -0.07416944205760956, 0.25011250376701355, -0.02940351702272892, 0.3837198317050934, -0.11675924062728882, -0.32276254892349243, -0.29469138383865356, 0.20184987783432007, -0.22361049056053162, -0.0194853525608778, 0.06010156124830246, -0.19776800274848938, 0.1045859307050705, -0.21332783997058868, 0.32377225160598755, 0.44410574436187744, 0.07967696338891983, 0.028869150206446648, 0.10611806064844131, -0.21788088977336884, -0.10609839856624603, 0.159547358751297, 0.2282198816537857, 0.15282021462917328, 0.19166676700115204, -0.042863111943006516, 0.23197270929813385, -0.2976650893688202, -0.4345210790634155, 0.2509981691837311, 0.48847249150276184, -0.31152886152267456, -0.02912556752562523, -0.30287185311317444, -0.10649129748344421, -0.16221563518047333, -0.4730813801288605, -0.08110074698925018, -0.23605646193027496, -0.13590173423290253, 0.2614670693874359, 0.06388542056083679, 0.07232121378183365, -0.30643147230148315, -0.10445524752140045, 0.13256430625915527, -0.3229348957538605, -0.08566799014806747, 0.05517621338367462, -0.03963712230324745, 0.14762361347675323, 0.3995278775691986, -0.09697752445936203, 0.3422373831272125, -0.015432039275765419, -0.13053664565086365, -0.26305875182151794, -0.19279778003692627, -0.00043271449976600707, 0.02216934785246849, 0.24208861589431763, 0.1672898828983307, 0.4309620261192322, 0.022665830329060555, -0.19360589981079102, 0.1404915750026703, 0.05844557285308838, -0.0268692784011364, 0.2278817594051361, -0.2574727237224579, -0.10570396482944489, -0.010170572437345982, -0.4860128164291382, -0.5390895009040833, -0.3269209861755371, -0.15994222462177277, -0.04829037934541702, 0.1959897130727768, 0.42370736598968506, 0.11605262011289597, 0.13853555917739868, -0.15663856267929077, 0.0500074177980423, -0.12225706875324249, -0.12485285103321075, 0.4896653890609741, -0.3741432726383209, -0.38175296783447266, 0.10499514639377594, -0.17454306781291962, 0.2857013940811157, -0.08931316435337067, -0.4778813123703003, -0.20606164634227753, -0.18404531478881836, -0.07793889194726944, -0.1294924020767212, -0.22382156550884247, 0.12385929375886917, -0.05318297818303108, -0.044805675745010376, 0.12145747989416122, -0.11700939387083054, -0.02150370366871357, 0.1581927090883255, 0.07765466719865799, -0.18861757218837738, 0.5733034610748291, 0.026937618851661682, 0.6518713235855103, 0.20295760035514832, -0.2608672082424164, 0.31760114431381226, -0.0788147896528244, 0.22209568321704865, -0.040656574070453644, -0.47316133975982666, -0.04605216532945633, 0.213499516248703, 0.034807346761226654, -0.05965237691998482, -0.2256643921136856, -0.3095942735671997, -0.27220964431762695, -0.1301368623971939, -0.30815181136131287, -0.2545178532600403, 0.07127822935581207, 0.10313981026411057, 0.2053651362657547, 0.09950417280197144, 0.19141517579555511, 0.059102922677993774, -0.16810202598571777, -0.015037136152386665, 0.43139976263046265, 0.07715780287981033, 0.06338679045438766, 0.12956221401691437, -0.05927892029285431, -0.3305476903915405, 0.09203892201185226, -0.09288442879915237, 0.3071431517601013, -0.06199660152196884, 0.18668591976165771, -0.008911165408790112, -0.07653757184743881, 0.23132985830307007, 0.06874306499958038, 0.17000196874141693, 0.2777778208255768, -0.12189023941755295, -0.3610594868659973, -0.2362000048160553, -0.35344764590263367, 0.03378675878047943, 0.2101784199476242, 0.18393361568450928, -0.3156817555427551, -0.06619319319725037, 0.6153855323791504, 0.1403856873512268, -0.05568665638566017, -0.39501097798347473, -0.2080637663602829, -0.3233415484428406, -0.4916284680366516, 0.0996389091014862, -0.12920919060707092, 0.24462805688381195, 0.06658893078565598, -0.18747368454933167, -0.03484727442264557, 0.02179323509335518, 0.1887633055448532, 0.00046043837210163474, 0.12297138571739197, 0.08193038403987885, 0.3935820460319519, 0.13864701986312866, -0.09974135458469391, 0.43611547350883484, 0.4650554955005646, 0.04798513278365135, -0.414446622133255, -0.08821959793567657, 0.14171580970287323, -0.13683226704597473, 0.16665714979171753, -0.2181941270828247, -0.2737370729446411, 0.25231748819351196, 0.24603182077407837, 0.16224397718906403, 0.1378752887248993, 0.46102213859558105, -0.24305613338947296, -0.5729038119316101, -0.361553430557251, 0.18962588906288147, -0.17972628772258759, 0.14135782420635223, 0.13662144541740417, -0.24973620474338531, 0.01722516492009163, 0.010419349186122417, -0.05256044492125511, 0.778984546661377, 0.15485377609729767, 0.044109780341386795, 0.4680342376232147, -0.003757653757929802, 0.30149123072624207, -0.05590089410543442, 0.08382982015609741, -0.3072827160358429, -0.23212695121765137, -0.12282988429069519, -0.22825521230697632, 0.15366022288799286, 0.26825961470603943, -0.21459275484085083, 0.36661770939826965, -0.056844163686037064, 0.14512847363948822, 0.0025311585050076246, 0.3421616852283478, -0.058432403951883316, 0.06554614007472992, -0.06265714764595032, 0.20406238734722137, -0.14442899823188782, 0.40972304344177246, -0.1356852650642395, -0.14900463819503784, -0.0768992155790329, -0.25969016551971436, -0.26328012347221375, 0.1581939458847046, -0.3894183039665222, 0.30091795325279236, 0.09400662034749985, -0.05416317284107208, -0.077586829662323, -0.07200053334236145, 0.037950873374938965, 0.038783226162195206, -0.17527757585048676, 0.08449582010507584, -0.12885786592960358, -0.23654712736606598, -0.05951801687479019, -0.10941404849290848, 0.41440561413764954, -0.2647615671157837, -0.24289877712726593, 0.09646956622600555, 0.0492815226316452, -0.21072222292423248, 0.10666368156671524, 0.01126813143491745, 0.20416167378425598, -0.34075239300727844, -0.25181058049201965, -0.0327814519405365, -0.17753949761390686, -0.12553101778030396, 0.1862044483423233, 0.03604445978999138, -0.03649936988949776, 0.28305068612098694, -0.062081754207611084, -0.19476008415222168, -0.1506979912519455, 0.35120880603790283, -0.10675804316997528, -0.12338736653327942, 0.43479177355766296, 0.07205361127853394, -0.3199327290058136, -0.2920498251914978, 0.07938309013843536, -0.046526771038770676, -0.41478365659713745, 0.08965198695659637, 0.0486430786550045, 0.34030279517173767, 0.06553837656974792, 0.10395961999893188, 0.19103464484214783, 0.0446527823805809, -0.026322415098547935, -0.5710040926933289, -0.2213817536830902, -0.0354623943567276, 0.035440608859062195, 0.22890135645866394, -0.0949719101190567, 0.32620614767074585, 0.20343898236751556, -0.06553869694471359, -0.3433678448200226, 0.13649404048919678, -0.09542266279459, -0.04529321938753128, 0.13594414293766022, -0.1490374058485031, 0.4430595338344574, 0.10090447962284088, 0.19788873195648193, 0.02786426618695259, -0.11768343299627304, -0.2749333381652832, -0.12826873362064362, 0.11908845603466034, 0.16798469424247742, -0.12618324160575867, 0.042002614587545395, -0.19966113567352295, -0.34252363443374634, 0.1667088270187378, 0.02332470566034317, 0.17778868973255157, -0.018748044967651367, 0.04774390161037445, 0.15270547568798065, 0.05769648775458336, -0.15243472158908844, 0.019750669598579407, -0.09334152191877365, 0.34244415163993835, 0.22018739581108093, 0.25267326831817627, 0.10924849659204483, -0.028304245322942734, -0.43533584475517273, -0.08897805958986282, 0.021521762013435364, -0.10898943990468979, 0.39708608388900757, -0.22670696675777435, -0.08440792560577393, 0.11683867871761322, 0.22189757227897644, 0.34275129437446594, -0.24455076456069946, 0.04737711325287819, 0.31645068526268005, 0.25021982192993164, -0.2942928969860077, -0.07446492463350296, 0.1661241203546524, 0.11073006689548492, 0.11224242299795151, 0.07781343162059784, -0.254672110080719, 0.07170955091714859, 0.02375148795545101, 0.13734261691570282, 0.3921360969543457, -0.04000319167971611, 0.1250549703836441, 0.3877001404762268, -0.13047635555267334, -0.006714708171784878, 0.1958848237991333, -0.012120751664042473, 0.07087216526269913, 0.4315569996833801, -0.29081228375434875, -0.01196393370628357, -0.17292380332946777, -0.07347849756479263, 0.22686325013637543, -0.2598976790904999, -0.003940693102777004, 0.22691984474658966, -0.1188616007566452, 0.085306316614151, -0.019769925624132156, 0.10144582390785217, -0.020962519571185112, 0.12613901495933533, -0.48664748668670654, 0.39160653948783875, -0.09983612596988678, 0.3023124933242798, -0.2309105545282364, -0.1329817920923233, -0.22922134399414062, 0.14528174698352814, 0.10430477559566498, -0.16917577385902405, 0.227352112531662, 0.3998037576675415, -0.2776855528354645, -0.15504050254821777, 0.07528366148471832, 0.31081900000572205, -0.08133330196142197, -0.27611491084098816, 0.182285875082016, 0.3667350709438324, -0.03441382944583893, -0.0020705596543848515, 0.4475150406360626, 0.39379656314849854, 0.2824239134788513, 0.04741479456424713, 0.23717650771141052, 0.10837436467409134, -0.15883533656597137, 0.09912880510091782, 0.11139779537916183, 0.2268323004245758, 0.3477739095687866, 0.3200223743915558, 0.22533270716667175, -0.2515420913696289, 0.048018138855695724, -0.09312416613101959, -0.08263905346393585, -0.23183327913284302, 0.561455488204956, 0.04967557638883591, 0.03975948691368103, -0.24078360199928284, -0.053669583052396774, -0.4856574535369873, -0.03480759635567665, 0.3326095640659332, 0.1133723333477974, 0.09824103116989136, -0.1042846292257309, 0.06438920646905899, -0.09752979129552841, 0.31203651428222656, 0.33213239908218384, 0.2571234107017517, -0.6201799511909485, 0.004288012161850929, -0.6339925527572632, 0.17016372084617615, -0.19856587052345276, 0.07438506931066513, -0.01663650944828987, 0.0412023663520813, -0.23117558658123016, 0.31157663464546204, 0.21937991678714752, 0.039545152336359024, 0.011646063067018986, 0.2519511282444, -0.1994517594575882, -0.02942757122218609, 0.16616077721118927, -0.14328183233737946, 0.08303248882293701, -0.4240463376045227, 0.09940433502197266, -0.4774462878704071, 0.017368827015161514, -0.044378675520420074, -0.30667728185653687, -0.03532895818352699, 0.2529793381690979, 0.4154711663722992, 0.05414919555187225, 0.7115378975868225, -0.0803389623761177, -0.2179785966873169, -0.2073073387145996, -0.01567121408879757, -0.2390040010213852, 0.1551913172006607, 0.1466783583164215, 0.37374168634414673, -0.024113371968269348, -0.18985982239246368, -0.4175257086753845, 0.3508703112602234, -0.10771575570106506, -0.1765221804380417, -0.21676643192768097, -0.017920400947332382, -0.19246360659599304, 0.24245047569274902, 0.050992634147405624, 0.08500128984451294, -0.0730699822306633, 0.17927883565425873, -0.3576478660106659, -0.4977724850177765, 0.6089868545532227, -0.23517532646656036, -0.21081194281578064, -0.21934612095355988, 0.12395544350147247, -0.11723757535219193, 0.1133628860116005, -0.4977308511734009, 0.32110515236854553, 0.32384806871414185, -0.012920952402055264, -0.1095668226480484, 0.20090284943580627, 0.2233961969614029, 0.20485477149486542, 0.06408773362636566, 0.3913768529891968, 0.15037229657173157, -0.3911631405353546, -0.057592347264289856, -0.20363329350948334 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space. I'm sure we can optimize that though What do you think @sgugger ?
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
58
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space. I'm sure we can optimize that though What do you think @sgugger ?
[ -0.14323437213897705, -0.3876416087150574, 0.11331366747617722, 0.32277482748031616, 0.5927129983901978, -0.19819103181362152, 0.2874232530593872, 0.39093005657196045, -0.30917108058929443, 0.17205722630023956, -0.033927783370018005, -0.17978809773921967, -0.3273908793926239, 0.1897953599691391, 0.1685713678598404, -0.06555420905351639, 0.1466009020805359, 0.1161787286400795, -0.037318237125873566, -0.25122809410095215, 0.012230101972818375, 0.033153992146253586, 0.20524418354034424, 0.23632697761058807, -0.5892040729522705, 0.11623270809650421, -0.09766004979610443, 0.02252272330224514, -0.45221659541130066, -0.09203143417835236, 0.06886203587055206, -0.31219086050987244, 0.18920087814331055, 0.5060110688209534, -0.00012865496682934463, -0.08017798513174057, 0.14244456589221954, -0.06957538425922394, 0.020570699125528336, 0.2090909481048584, 0.21447616815567017, -0.06325750052928925, -0.2133895307779312, 0.10531720519065857, 0.21523809432983398, -0.11431078612804413, -0.07098320126533508, -0.03404153510928154, 0.3668510913848877, 0.1840249001979828, 0.06569945067167282, 0.13553957641124725, 0.014897391200065613, 0.10366933792829514, 0.24296662211418152, 0.3396821618080139, -0.03718028590083122, -0.010054975748062134, 0.2122921645641327, -0.1989555060863495, 0.014840477146208286, 0.17005354166030884, 0.0983983725309372, -0.19822904467582703, 0.3284575045108795, 0.21139095723628998, -0.07491788268089294, -0.411359578371048, 0.21207314729690552, 0.38835301995277405, -0.04069850221276283, -0.353956013917923, -0.30829405784606934, -0.39726969599723816, 0.24117659032344818, -0.5351741909980774, 0.09333286434412003, 0.18175329267978668, -0.12999315559864044, 0.05718964338302612, -0.275726318359375, -0.41475746035575867, -0.2204076200723648, -0.09753892570734024, -0.21435515582561493, 0.04974047467112541, -0.22842785716056824, -0.09450717270374298, -0.024709314107894897, -0.15148887038230896, -0.367910772562027, -0.026124905794858932, -0.007287877146154642, 0.19921672344207764, -0.09286592900753021, -0.32427269220352173, -0.11265698820352554, -0.3281562626361847, 0.27174848318099976, -0.4419621229171753, -0.24123342335224152, -0.4030221700668335, -0.12958164513111115, -0.41893166303634644, 0.3993138074874878, 0.4595159888267517, -0.37601548433303833, 0.17993734776973724, 0.1299843192100525, 0.014497577212750912, -0.13884583115577698, -0.05276060476899147, -0.16345460712909698, 0.13290685415267944, 0.07106641680002213, -0.4047496020793915, 0.03130265697836876, -0.22905190289020538, -0.10030380636453629, 0.45911821722984314, -0.3784509301185608, 0.2226308286190033, 0.0510769747197628, 0.3274953365325928, -0.07608165591955185, 0.10531827062368393, 0.010907347314059734, 0.051345862448215485, -0.4180241525173187, -0.017794476822018623, -0.06112922728061676, 0.074220210313797, -0.21511243283748627, 0.18698766827583313, -0.028843974694609642, 0.10445132106542587, 0.0213534627109766, -0.017980823293328285, 0.32312700152397156, -0.09934081882238388, 0.039501506835222244, -0.25104793906211853, 0.1726963222026825, 0.16851383447647095, -0.21159018576145172, 0.44027358293533325, -0.03286978602409363, 0.057306379079818726, -0.057334329932928085, 0.07319361716508865, -0.20251287519931793, -0.4613581895828247, -0.057541925460100174, 0.0954975113272667, -0.03240388631820679, 0.3140638470649719, -0.06195319443941116, 0.32786595821380615, 0.4565284848213196, 0.019855232909321785, 0.025028713047504425, -0.22849473357200623, -0.22651416063308716, 0.009115160442888737, 0.39956972002983093, 0.3902233839035034, -0.4846354126930237, -0.1758756786584854, -0.2054716795682907, 0.3122825026512146, 0.38950014114379883, 0.5888673067092896, 0.007784080691635609, 0.5783098936080933, -0.28118762373924255, 0.23579218983650208, -0.29495128989219666, 0.2546410858631134, -0.43086928129196167, 0.35219037532806396, -0.05787885561585426, -0.05454809218645096, 0.08773001283407211, -0.0587388351559639, 0.18248941004276276, 0.02089708112180233, 0.3823951482772827, 0.0333053320646286, -0.15172311663627625, 0.027263084426522255, -0.3604702651500702, -0.40166449546813965, -0.2655520737171173, 0.01435918640345335, 0.17247946560382843, -0.15730012953281403, -0.3328549265861511, 0.5829166173934937, 0.12978510558605194, -0.10001011937856674, 0.15983477234840393, 0.3174711763858795, 0.08704030513763428, -0.03831508383154869, 0.05242625251412392, -0.07932259142398834, -0.10971567779779434, -0.008805428631603718, -0.30794206261634827, 0.20407246053218842, 0.10638930648565292, -0.2711719572544098, -0.04571347311139107, 0.032010581344366074, 0.07850846648216248, -0.20647117495536804, -0.01803363300859928, -0.19579429924488068, -0.11084599792957306, 0.010617266409099102, -0.07332536578178406, -0.10524938255548477, -0.08429545909166336, 0.07201654464006424, -0.4379628896713257, -0.0457766130566597, -0.023143865168094635, -0.14678090810775757, -0.09454430639743805, 0.36057549715042114, -0.1125408187508583, 0.025116639211773872, -0.07087220996618271, 0.15945123136043549, 0.13058945536613464, 0.06702961027622223, -0.09692887216806412, 0.23769935965538025, 0.28207606077194214, 0.08177270740270615, 0.1023690402507782, 0.18416187167167664, 0.042205605655908585, -0.0524391233921051, -0.11789308488368988, 0.21369434893131256, 0.20884165167808533, 0.1476617008447647, 0.24194835126399994, -0.21807274222373962, -0.10305550694465637, 0.11847659200429916, -0.04439210891723633, -0.2775181233882904, 0.30782702565193176, 0.06344439834356308, 0.28979891538619995, 0.19365379214286804, -0.19925639033317566, -0.09153630584478378, 0.2885443866252899, -0.18789903819561005, 0.024127602577209473, 0.43127745389938354, -0.343695729970932, -0.1197061836719513, -0.10632969439029694, -0.28386297821998596, 0.28307315707206726, 0.08036278933286667, 0.12330938875675201, 0.10929186642169952, 0.14201341569423676, -0.07463846355676651, 0.21126948297023773, 0.2753329873085022, -0.19407042860984802, 0.16109389066696167, 0.13465170562267303, 0.059216804802417755, -0.1989697813987732, 0.08614794164896011, -0.1964777559041977, 0.33857429027557373, -0.4070676267147064, 0.3386445939540863, 0.05772749334573746, 0.013776200823485851, -0.39413824677467346, -0.2747449278831482, -0.18092501163482666, 0.026438681408762932, 0.1926737278699875, -0.23455721139907837, -0.11104266345500946, -0.05266284942626953, 0.3810821771621704, 0.2989981174468994, 0.15778569877147675, 0.26536911725997925, 0.01864982210099697, 0.1821882426738739, -0.3386882245540619, -0.029487090185284615, 0.19135038554668427, -0.18691639602184296, 0.1518472284078598, 0.09830068051815033, -0.2298431098461151, -0.05648890137672424, -0.3236948549747467, 0.21553544700145721, -0.17991670966148376, 0.27948233485221863, 0.20249581336975098, 0.13636396825313568, -0.4355510473251343, 0.09460419416427612, 0.019780568778514862, -0.0027544372715055943, -0.15797829627990723, -0.014179741032421589, -0.12343262881040573, 0.12773235142230988, -0.08377788215875626, -0.26417070627212524, -0.060165923088788986, 0.01954757794737816, 0.3254426419734955, -0.009844731539487839, 0.0360112264752388, 0.2116541564464569, 0.1585821956396103, 0.10042427480220795, -0.051414549350738525, -0.19728049635887146, -0.0010390649549663067, -0.1854289025068283, 0.21259993314743042, 0.00622593704611063, -0.19627274572849274, -0.35622718930244446, -0.05312507227063179, 0.02558671496808529, -0.1569029688835144, -0.5457940101623535, 0.05183978006243706, -0.40503695607185364, -0.3002315163612366, -0.23347119987010956, 0.3785059452056885, 0.11567366868257523, -0.10776980966329575, 0.08498317748308182, 0.09842292964458466, 0.11341962218284607, -0.07525982707738876, -0.24577565491199493, 0.23017413914203644, -0.41631054878234863, 0.35236504673957825, -0.07925859093666077, 0.8787883520126343, 0.31733670830726624, -0.009972263127565384, -0.03509221971035004, -0.03264233097434044, 0.39918625354766846, -0.47046250104904175, -0.19813138246536255, 0.2872302532196045, -0.05922207236289978, -0.33486801385879517, 0.32398438453674316, 0.12258999794721603, 0.45757657289505005, 0.2133396863937378, 0.0612846277654171, 0.2808786630630493, -0.374542772769928, 0.4108826816082001, 0.13387683033943176, 0.17688202857971191, 0.0014605571050196886, 0.13073165714740753, 0.016294127330183983, -0.3149764835834503, 0.06310690194368362, -0.053852569311857224, 0.21750488877296448, 0.0166285652667284, 0.018031612038612366, -0.34134939312934875, -0.6975659132003784, -0.0455714650452137, 0.13274647295475006, 0.07291556894779205, 0.15072095394134521, -0.1237141340970993, 0.1899600476026535, 0.046843595802783966, 0.7578890323638916, 0.28132399916648865, -0.17268119752407074, 0.0055506909266114235, -0.06816734373569489, -0.15127409994602203, 0.047015972435474396, -0.3141686022281647, -0.03362967446446419, 0.5655548572540283, 0.6516925692558289, -0.345150887966156, -0.061959508806467056, 0.11781410127878189, 0.3456679582595825, -0.12289799004793167, 0.0067755975760519505, -0.4224230647087097, 0.0064461142756044865, -0.23933985829353333, 0.24437376856803894, 0.06831569969654083, 0.06791867315769196, -0.07804001867771149, -0.08286164700984955, 0.05857347324490547, -0.08317075669765472, 0.3588619828224182, 0.2406856119632721, 0.3209995627403259, -0.2953762114048004, 0.3806356191635132, -0.037978075444698334, 0.11557348072528839, 0.3630249500274658, 0.19363011419773102, -0.16702555119991302, -0.29682299494743347, 0.25992846488952637, -0.1010313332080841, 0.33703771233558655, 0.5717667937278748, -0.034076157957315445, 0.17665018141269684, 0.13560760021209717, 0.4558734893798828, -0.4732835292816162, 0.5112186074256897, 0.4902336001396179, 0.01288399938493967, -0.5175443887710571, -0.22638216614723206, 0.36986586451530457, 0.08313633501529694, 0.12317071110010147, 0.16517764329910278, 0.3095335364341736, -0.309120237827301, 0.29118719696998596, -0.0016341818263754249, 1.1803638935089111, -0.19709430634975433, 0.599517822265625, 0.11639560759067535, 0.2842217981815338, 0.5852842926979065, -0.2833363115787506, 0.1925700157880783, -0.37457993626594543, -0.0622718445956707, 0.1641658991575241, 0.034252338111400604, -0.14420293271541595, 0.02973167970776558, -0.10812889039516449, 0.15986818075180054, -0.112882100045681, 0.2599039673805237, -0.26083892583847046, 0.3257436752319336, 0.06136735901236534, -0.3731701076030731, -0.239223450422287, -0.052799709141254425, 0.012012509629130363, 0.04643245041370392, -0.15489687025547028, 0.09053739905357361, -0.029698681086301804, -0.3042661249637604, -0.2594524621963501, -0.17319507896900177, -0.02603449858725071, -0.03899133577942848, 0.19949853420257568, -0.3362624943256378, 0.32723888754844666, -0.030260395258665085, 0.25607872009277344, 0.6596658229827881, -0.2298504263162613, 0.05390654131770134, -0.1808631867170334, 0.03558476269245148, -0.018596867099404335, -0.08476678282022476, 0.032778091728687286, 0.05375012010335922, 0.07087991386651993, -0.04615413025021553, 0.01361454464495182, 0.28960904479026794, -0.37089070677757263, -0.18656983971595764, 0.5945255160331726, -0.4801490604877472, 0.014086499810218811, -0.10681375861167908, -0.05100323632359505, -0.14020925760269165, 0.0055738333612680435, 0.17236575484275818, -0.2537519037723541, 0.07292357832193375, 0.04336176812648773, -0.36646386981010437, -0.24039258062839508, 0.17383721470832825, 0.2803504168987274, -0.003643687814474106, 0.7379032373428345, 0.28230246901512146, -0.07195567339658737, -0.08893956243991852, 0.42876744270324707, 0.5030832886695862, -0.4444899559020996, 0.29558461904525757, 0.17805518209934235, -0.0375431627035141, -0.0009517376311123371, 0.1282510906457901, 0.2379666417837143, -0.3074362277984619, -0.16236501932144165, -0.049409255385398865, -0.41655051708221436, 0.047299157828092575, -0.04313712939620018, 0.1312134712934494, 0.14369742572307587, 0.34834757447242737, -0.09295893460512161, 0.15673911571502686, -0.1273816078901291, 0.05358082801103592, -0.01688303053379059, 0.03947678580880165, -0.2568357288837433, -0.054838862270116806, 0.14138473570346832, -0.1418825387954712, -0.09235972166061401, 0.20897848904132843, -0.019302373751997948, -0.07351502031087875, -0.2762780487537384, 0.17426042258739471, 0.01807475835084915, -0.09715009480714798, 0.16589069366455078, 0.13175012171268463, -0.1845957636833191, -0.25571689009666443, 0.3654862940311432, 0.1042429506778717, 0.17103736102581024, -0.2266409695148468, 0.12085269391536713, -0.06821443885564804, -0.14818203449249268, 0.016435345634818077, 0.25396859645843506, 0.3333444893360138, 0.06427212059497833, 0.170420303940773, 0.24899917840957642, -0.0927027016878128, -0.058030471205711365, 0.25915658473968506, 0.25533968210220337, 0.06522534042596817, 0.11809097975492477, -0.22245368361473083, -0.07116825878620148, 0.040091753005981445, 0.16880781948566437, 0.4920580983161926, -0.298249751329422, -0.24906596541404724, 0.46356111764907837, 0.0708703100681305, -0.03735607862472534, -0.07727719843387604, -0.14337973296642303, -0.23362262547016144, -0.20461627840995789, 0.3197959363460541, -0.03753506764769554, 0.06520359218120575, -0.13475237786769867, 0.16325341165065765, -0.12336846441030502, 0.1600245237350464, -0.02923690527677536, 0.5991111397743225, 0.0031003092881292105, 0.11949566006660461, 0.21877822279930115, 0.10102961212396622, 0.23897750675678253, 0.6983100175857544, 0.1785132735967636, 0.19252824783325195, -0.37141457200050354, 0.10881488770246506, -0.192782461643219, -0.49047109484672546, -0.46126335859298706, 0.1844998002052307, -0.1447882503271103, 0.2918328642845154, -0.15451155602931976, 0.5883193612098694, -0.07621929794549942, -0.24932141602039337, -0.1546921581029892, -0.010357974097132683, -0.2898416221141815, -0.11912237852811813, 0.19235342741012573, -0.1257752925157547, 0.17292380332946777, 0.25962018966674805, -0.12387838214635849, 0.01025223545730114, -0.09337262809276581, 0.07947758585214615, -0.10361521691083908, 0.04939785227179527, -0.18210020661354065, 0.18392294645309448, 0.11368974298238754, -0.2876954674720764, 0.2269536703824997, -0.08069262653589249, 0.03670972213149071, -0.2104427069425583, 0.294730544090271, 0.4753103256225586, 0.38731878995895386, -0.22409018874168396, 0.1699613332748413, 0.1405056118965149, 0.08644891530275345, -0.06932328641414642, 0.16387295722961426, 0.3289232552051544, 0.12065213173627853, 0.014166414737701416, -0.08465518057346344, -0.12284024059772491, -0.1579102724790573, 0.24468863010406494, 0.10136877000331879, -0.14892293512821198, 0.22849689424037933, -0.15822118520736694, -0.1319343000650406, -0.2944997251033783, 0.027095351368188858, -0.7009477615356445, 0.5352688431739807, 0.47649529576301575, 0.02529529668390751, 0.12345149368047714, -0.09153277426958084, -0.009524541907012463, -0.1323716789484024, 0.5158681273460388, 0.46906816959381104, -0.013956019654870033, -0.3866826295852661, 0.030835513025522232, -0.2977648973464966, 0.27263715863227844, -0.29091906547546387, 0.3140709698200226, -0.1308751106262207, -0.07553232461214066, 0.02087586000561714, -0.13940386474132538, -0.08279881626367569, -0.2343413233757019, -0.6251948475837708, 0.18009185791015625, -0.1407460868358612, -0.17198395729064941, -0.2263510674238205, 0.08639932423830032, -0.06056951731443405, -0.2573000192642212, 0.4457698464393616, -0.046143464744091034, -0.17050838470458984, 0.029391270130872726, 0.2279556393623352, -0.2168889045715332, 0.17382074892520905, 0.25718018412590027, 0.28152090311050415, 0.049448829144239426, 0.0635211318731308, -0.22895966470241547, -0.2911754250526428, 0.13921208679676056, -0.07182053476572037, 0.12638629972934723, 0.24615243077278137, 0.2943050265312195, -0.31450435519218445, -0.2648555636405945, -0.3899098038673401, 0.0929289236664772, 0.32815709710121155, -0.22421053051948547, -0.24435700476169586, 0.10151637345552444, -0.11490136384963989, 0.034420255571603775, 0.013565345667302608, 0.47776931524276733, -0.12092777341604233, -0.047070007771253586, -0.3605848550796509, -0.24391014873981476, 0.46343234181404114, -0.3155975043773651, -0.4158998131752014, -0.2619023323059082, 0.07823555171489716, 0.3039797246456146, -0.29663535952568054, -0.7923538088798523, 0.10156573355197906, 0.15911565721035004, 0.025392873212695122, -0.4467417895793915, 0.135089710354805, -0.1159248799085617, -0.1337081491947174, -0.1870729625225067, 0.7428534626960754, 0.042723171412944794, -0.19075660407543182, 0.4248630702495575, -0.2602861821651459 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
First I think we should disable padding in the dataset processing and let the data collator do it. Then I'm wondering if you need attention_mask and token_type_ids at this point ? Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like: - input_ids: uint16 or uint32 - token_type_ids: uint8 or bool - attention_mask: bool - special_tokens_mask: bool Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
90
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` First I think we should disable padding in the dataset processing and let the data collator do it. Then I'm wondering if you need attention_mask and token_type_ids at this point ? Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like: - input_ids: uint16 or uint32 - token_type_ids: uint8 or bool - attention_mask: bool - special_tokens_mask: bool Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo
[ -0.22990520298480988, -0.3667338490486145, 0.12432366609573364, 0.2771858274936676, 0.6030974984169006, -0.16952775418758392, 0.3121457099914551, 0.3734356164932251, -0.2599169909954071, 0.15220603346824646, -0.058923739939928055, -0.13221871852874756, -0.28685083985328674, 0.24878762662410736, 0.12459992617368698, -0.1173478364944458, 0.10137621313333511, 0.10978583991527557, -0.08229020982980728, -0.2580445110797882, -0.03824129328131676, -0.0007752580568194389, 0.2506643235683441, 0.2208169847726822, -0.5668447017669678, 0.06288541853427887, -0.040714722126722336, 0.06896049529314041, -0.44908544421195984, -0.06936489045619965, 0.05819147452712059, -0.2989965081214905, 0.2023252546787262, 0.5197607278823853, -0.000124877187772654, -0.05087780952453613, 0.1890181303024292, -0.07571534067392349, -0.006457531824707985, 0.17788013815879822, 0.15704748034477234, -0.09956422448158264, -0.1501626968383789, 0.09196151047945023, 0.22818604111671448, -0.07618613541126251, -0.0426354743540287, -0.06385741382837296, 0.338606059551239, 0.222430020570755, 0.0923963189125061, 0.132118359208107, 0.08140742033720016, 0.0844409316778183, 0.20957225561141968, 0.328849732875824, -0.0522179901599884, 0.014561767689883709, 0.20903155207633972, -0.15241260826587677, -0.021401269361376762, 0.18111415207386017, 0.11391054838895798, -0.16994819045066833, 0.2978735566139221, 0.21827015280723572, -0.11498478800058365, -0.4121505916118622, 0.17696523666381836, 0.4269203245639801, -0.05844671279191971, -0.376487672328949, -0.33862432837486267, -0.41222673654556274, 0.2050083428621292, -0.515677809715271, 0.04918723553419113, 0.19849801063537598, -0.1357264220714569, 0.07472062855958939, -0.2738557457923889, -0.4056920111179352, -0.23554016649723053, -0.06131536886096001, -0.19544869661331177, 0.04069560766220093, -0.21222198009490967, -0.08656206727027893, 0.016696516424417496, -0.11476737260818481, -0.36129996180534363, -0.005836192052811384, -0.014602373354136944, 0.24445632100105286, -0.09029581397771835, -0.30053839087486267, -0.0907198116183281, -0.3367125391960144, 0.29407089948654175, -0.5009042620658875, -0.19073940813541412, -0.3996054232120514, -0.19794225692749023, -0.3644927442073822, 0.37976542115211487, 0.47685500979423523, -0.3775405287742615, 0.20856410264968872, 0.16359272599220276, 0.06162917613983154, -0.1025519147515297, -0.04618307948112488, -0.10709879547357559, 0.10278268903493881, 0.03217226639389992, -0.33459869027137756, 0.09099707007408142, -0.2671130895614624, -0.12784400582313538, 0.40310150384902954, -0.3146034777164459, 0.22814632952213287, 0.04113849997520447, 0.32608717679977417, -0.08707328885793686, 0.16516157984733582, 0.06869470328092575, 0.058192405849695206, -0.44403496384620667, -0.02567340061068535, -0.09422177821397781, 0.08865512907505035, -0.18564149737358093, 0.18091854453086853, 0.011786643415689468, 0.06433777511119843, 0.03665709123015404, 0.009292392991483212, 0.26647210121154785, -0.024775424972176552, 0.08059591799974442, -0.2521767020225525, 0.13305670022964478, 0.16917231678962708, -0.18632477521896362, 0.4540970027446747, 0.005492290947586298, 0.05175470933318138, -0.03620800003409386, 0.04538331925868988, -0.21033506095409393, -0.4931020140647888, -0.09739614278078079, 0.1252601146697998, -0.03896830976009369, 0.2960735559463501, -0.07943703234195709, 0.3503776788711548, 0.44868335127830505, 0.016285203397274017, 0.015041928738355637, -0.1929216980934143, -0.20028473436832428, -0.012583667412400246, 0.3824056088924408, 0.4193098843097687, -0.5442298650741577, -0.1573416143655777, -0.23858894407749176, 0.25319093465805054, 0.38892731070518494, 0.6155259013175964, -0.0056066690012812614, 0.5517371296882629, -0.23533959686756134, 0.1642787903547287, -0.285203754901886, 0.2683781385421753, -0.42224687337875366, 0.3572131395339966, -0.052504561841487885, -0.038831379264593124, 0.10613731294870377, -0.053856104612350464, 0.17444495856761932, 0.012782995589077473, 0.3944084942340851, 0.023889008909463882, -0.2038845717906952, 0.047341715544462204, -0.3813456892967224, -0.4033680260181427, -0.26606684923171997, 0.08000189810991287, 0.1581135094165802, -0.13530483841896057, -0.27350541949272156, 0.5514494776725769, 0.1155518889427185, -0.1455298215150833, 0.1355004757642746, 0.3262096345424652, 0.11132363229990005, -0.06871353834867477, 0.019379140809178352, -0.05324098467826843, -0.21258655190467834, 0.03442050516605377, -0.28656119108200073, 0.2489633560180664, 0.07938100397586823, -0.2721633017063141, -0.057352688163518906, -0.0195423886179924, 0.08133327960968018, -0.20654156804084778, 0.012421512976288795, -0.21589656174182892, -0.09159203618764877, 0.031171951442956924, -0.047937702387571335, -0.04571335390210152, -0.10297941416501999, 0.048843201249837875, -0.502893328666687, -0.045392777770757675, -0.008150597102940083, -0.18823856115341187, -0.03242012485861778, 0.3290526568889618, -0.09951494634151459, 0.04230666160583496, -0.10003823041915894, 0.18438780307769775, 0.12575116753578186, 0.08205398172140121, -0.06106707826256752, 0.23001092672348022, 0.297382652759552, 0.11164773255586624, 0.09347286075353622, 0.20555612444877625, 0.06108349561691284, -0.05170920491218567, -0.11381415277719498, 0.22680610418319702, 0.18315623700618744, 0.13985081017017365, 0.26763859391212463, -0.247964546084404, -0.08639928698539734, 0.12647391855716705, -0.027257338166236877, -0.25842687487602234, 0.31181231141090393, 0.0601302795112133, 0.30705419182777405, 0.1462777704000473, -0.2055976539850235, -0.06560864299535751, 0.30997374653816223, -0.16937148571014404, 0.050930947065353394, 0.40509435534477234, -0.30191054940223694, -0.04691099002957344, -0.07793779671192169, -0.24463877081871033, 0.3169591426849365, 0.10275622457265854, 0.09096810966730118, 0.1304185837507248, 0.07606986910104752, -0.0873517319560051, 0.14894944429397583, 0.2738136947154999, -0.15505166351795197, 0.15036804974079132, 0.1463557332754135, -0.012308991514146328, -0.22403216361999512, 0.06603237986564636, -0.2190811187028885, 0.37895166873931885, -0.38922324776649475, 0.3302794396877289, 0.09087087959051132, 0.01977040432393551, -0.41258305311203003, -0.28434839844703674, -0.2321336269378662, 0.001497832010500133, 0.16708846390247345, -0.18489830195903778, -0.12686412036418915, -0.06847307085990906, 0.3420524299144745, 0.23278090357780457, 0.1725665181875229, 0.29606130719184875, -0.013493216596543789, 0.11166266351938248, -0.3305940628051758, 0.001932572922669351, 0.198281392455101, -0.14900319278240204, 0.15948684513568878, 0.10087211430072784, -0.2657162845134735, -0.0178068820387125, -0.31818896532058716, 0.1642901599407196, -0.19825999438762665, 0.2966388165950775, 0.22478750348091125, 0.18240584433078766, -0.35655292868614197, 0.037891685962677, 0.05568573251366615, -0.008081329986453056, -0.1318664252758026, -0.03017371892929077, -0.17177431285381317, 0.17189252376556396, -0.09726359695196152, -0.3041335344314575, -0.11803042143583298, -0.07441026717424393, 0.3672361373901367, -0.010540999472141266, 0.014780646190047264, 0.20397889614105225, 0.1889282613992691, 0.11712340265512466, 0.02481384575366974, -0.1679043471813202, -0.01293186191469431, -0.13661304116249084, 0.2170596420764923, -0.002062637824565172, -0.21715328097343445, -0.3731190860271454, -0.03924567252397537, 0.029120443388819695, -0.1878812462091446, -0.5029158592224121, 0.025524286553263664, -0.4563644528388977, -0.2719499170780182, -0.22875788807868958, 0.425625741481781, 0.0850241631269455, -0.10879550129175186, 0.07852546870708466, 0.0828622579574585, 0.1354742795228958, -0.0338127464056015, -0.2376568764448166, 0.2106584757566452, -0.401305615901947, 0.4056996703147888, -0.10353611409664154, 0.8882095217704773, 0.3483369052410126, -0.09707766026258469, -0.0007671643979847431, 0.0034501682966947556, 0.36105889081954956, -0.4532392621040344, -0.22272749245166779, 0.2996629476547241, -0.09419109672307968, -0.3264145851135254, 0.2661909759044647, 0.09622339904308319, 0.4384835958480835, 0.1695130318403244, 0.053136829286813736, 0.24638473987579346, -0.36610516905784607, 0.4002574682235718, 0.16994796693325043, 0.16834285855293274, -0.039863064885139465, 0.09640493988990784, -0.005764530040323734, -0.308820903301239, 0.08137348294258118, -0.03675627335906029, 0.19082753360271454, 0.02909396030008793, 0.11779767274856567, -0.3415742516517639, -0.7532610893249512, -0.008954253047704697, 0.15321198105812073, 0.07261515408754349, 0.14563728868961334, -0.14994069933891296, 0.1320819854736328, 0.07809262722730637, 0.7480288147926331, 0.22800183296203613, -0.18668730556964874, -0.024370400235056877, -0.04196769744157791, -0.15490365028381348, 0.04670506343245506, -0.3488084673881531, -0.072211354970932, 0.6041045188903809, 0.6499781012535095, -0.4103460907936096, -0.043279681354761124, 0.11843714863061905, 0.3192984163761139, -0.11545342206954956, 0.017846180126070976, -0.4534139335155487, -0.027014654129743576, -0.22393792867660522, 0.2107052505016327, 0.06875836104154587, 0.052346039563417435, -0.15075069665908813, -0.08437183499336243, 0.08289750665426254, -0.09235329180955887, 0.3055890202522278, 0.3103862404823303, 0.2941119968891144, -0.30238381028175354, 0.3669600784778595, -0.04169558733701706, 0.1407235562801361, 0.36500638723373413, 0.32728898525238037, -0.20096361637115479, -0.3620559871196747, 0.255513995885849, -0.11603608727455139, 0.32363995909690857, 0.5161657929420471, 0.005391071550548077, 0.1600113958120346, 0.15577837824821472, 0.45751693844795227, -0.46536779403686523, 0.535537838935852, 0.4863610565662384, -0.01773684471845627, -0.534907877445221, -0.21123714745044708, 0.4121988117694855, 0.0721784457564354, 0.1378430873155594, 0.19062386453151703, 0.27711594104766846, -0.3334355056285858, 0.2811172902584076, 0.012167314998805523, 1.1012873649597168, -0.2145233452320099, 0.5295484662055969, 0.11700368672609329, 0.26623132824897766, 0.6018496155738831, -0.22903983294963837, 0.1664571315050125, -0.38954871892929077, -0.108055479824543, 0.17801980674266815, 0.06357216089963913, -0.12019902467727661, 0.022074192762374878, -0.18034765124320984, 0.2107706218957901, -0.09395093470811844, 0.19792522490024567, -0.23492710292339325, 0.4142720103263855, 0.06431365013122559, -0.38860079646110535, -0.2565069794654846, -0.03308148309588432, -0.03087618201971054, 0.01326420996338129, -0.15026409924030304, 0.04571632295846939, -0.030022908002138138, -0.31758370995521545, -0.2670260965824127, -0.17951902747154236, -0.12079893052577972, -0.025080673396587372, 0.18491356074810028, -0.36854779720306396, 0.32847362756729126, -0.06861866265535355, 0.29671868681907654, 0.5942740440368652, -0.24109502136707306, 0.03162970766425133, -0.1764056533575058, 0.03358694911003113, -0.016001319512724876, -0.0686836987733841, 0.04614471644163132, 0.05721953511238098, 0.029860198497772217, -0.012481003068387508, -0.000899928214494139, 0.3430388569831848, -0.3757944703102112, -0.24486508965492249, 0.4503362476825714, -0.5107014775276184, 0.02499096840620041, -0.1506495475769043, -0.06124993786215782, -0.13850447535514832, 0.03166203945875168, 0.18083593249320984, -0.27733930945396423, 0.025036673992872238, 0.022024037316441536, -0.3429325520992279, -0.26327428221702576, 0.17846690118312836, 0.25543221831321716, 0.03768603503704071, 0.6541041135787964, 0.3423451781272888, -0.06585168838500977, -0.06430938094854355, 0.39376312494277954, 0.5364493727684021, -0.5111449956893921, 0.29032081365585327, 0.1936585009098053, -0.05047980323433876, 0.0055522737093269825, 0.18929432332515717, 0.21491257846355438, -0.2882864773273468, -0.1783054918050766, -0.03218922019004822, -0.42613765597343445, 0.09593476355075836, -0.06646374613046646, 0.15802086889743805, 0.14050664007663727, 0.3553331792354584, -0.07148630917072296, 0.2126529961824417, -0.15786625444889069, 0.023569587618112564, -0.010570896789431572, 0.06252771615982056, -0.19941024482250214, -0.049463238567113876, 0.17447327077388763, -0.1104816421866417, -0.05720318853855133, 0.2021811604499817, -0.03924695402383804, -0.10360994189977646, -0.2420644909143448, 0.14506277441978455, 0.012896351516246796, -0.06298089772462845, 0.13440167903900146, 0.10398741811513901, -0.16123735904693604, -0.23281534016132355, 0.40761834383010864, 0.07818546891212463, 0.11338719725608826, -0.119184710085392, 0.09421398490667343, -0.09241359680891037, -0.08308859914541245, 0.006390060298144817, 0.17686502635478973, 0.30592456459999084, 0.07717128098011017, 0.17202840745449066, 0.25130361318588257, -0.08411011099815369, 0.01645727828145027, 0.22191733121871948, 0.1959114968776703, 0.10826028138399124, 0.11133763194084167, -0.22978022694587708, -0.08654209971427917, 0.021638737991452217, 0.23154129087924957, 0.46758657693862915, -0.24868318438529968, -0.20543505251407623, 0.4337894022464752, 0.11260725557804108, -0.04127701371908188, -0.07546462118625641, -0.10492399334907532, -0.21652495861053467, -0.09062580019235611, 0.352493017911911, -0.05577225610613823, 0.05193517357110977, -0.11454024165868759, 0.14572001993656158, -0.12388446927070618, 0.16272737085819244, -0.05354839935898781, 0.6416901350021362, -0.003756097983568907, 0.09961006790399551, 0.2106974571943283, 0.052534230053424835, 0.26262208819389343, 0.6772078275680542, 0.18488192558288574, 0.15085574984550476, -0.421551376581192, 0.08044272661209106, -0.14945992827415466, -0.5071741938591003, -0.48762184381484985, 0.1039029136300087, -0.17185983061790466, 0.30666249990463257, -0.14844831824302673, 0.5831758379936218, -0.09195532649755478, -0.2220134139060974, -0.1316651999950409, -0.03544046729803085, -0.2864600718021393, -0.09657768160104752, 0.1660556048154831, -0.133530855178833, 0.13584645092487335, 0.21861304342746735, -0.13285890221595764, 0.04462508112192154, -0.03613920137286186, 0.08609430491924286, -0.07282432913780212, 0.055289097130298615, -0.21371397376060486, 0.17813816666603088, 0.15197458863258362, -0.23927441239356995, 0.23295311629772186, 0.0016608235891908407, -0.010798734612762928, -0.254952609539032, 0.31913435459136963, 0.48273178935050964, 0.3858776092529297, -0.24473333358764648, 0.22694897651672363, 0.1933886557817459, 0.04814537614583969, -0.06902720034122467, 0.13357305526733398, 0.3105464577674866, 0.1057743951678276, 0.0640171617269516, -0.03371661156415939, -0.13936252892017365, -0.16205012798309326, 0.1474631279706955, 0.08714914321899414, -0.12556961178779602, 0.26179203391075134, -0.16873857378959656, -0.1373266726732254, -0.27533993124961853, 0.01009763777256012, -0.7297042608261108, 0.5182318687438965, 0.482671856880188, -0.03653993457555771, 0.1011708527803421, -0.09451518952846527, 0.004882620181888342, -0.12106703221797943, 0.5459302067756653, 0.4561128616333008, 0.04383024945855141, -0.4208499491214752, 0.022986646741628647, -0.273393452167511, 0.28508034348487854, -0.34833061695098877, 0.2294563353061676, -0.15127252042293549, -0.07497978210449219, 0.03982354700565338, -0.08093465119600296, -0.05868089199066162, -0.2328859120607376, -0.6350162625312805, 0.2164500206708908, -0.13537631928920746, -0.2508303225040436, -0.3114379942417145, -0.000275204743957147, -0.0719836950302124, -0.2702167332172394, 0.4331172704696655, 0.0030051632784307003, -0.11676806956529617, 0.014451595023274422, 0.24911168217658997, -0.18843771517276764, 0.11536965519189835, 0.2229568064212799, 0.3003045916557312, 0.058810628950595856, 0.0025343389715999365, -0.22317494451999664, -0.2673754096031189, 0.11543018370866776, -0.11285130679607391, 0.10925078392028809, 0.252975732088089, 0.382111132144928, -0.2819195091724396, -0.2846088409423828, -0.44402390718460083, 0.16056744754314423, 0.35048532485961914, -0.18554797768592834, -0.2507893145084381, 0.1337052881717682, -0.100811667740345, -0.06836235523223877, 0.03406466543674469, 0.49430322647094727, -0.08249209821224213, -0.0416540652513504, -0.3408876657485962, -0.23514512181282043, 0.4602755010128021, -0.30195051431655884, -0.3991839289665222, -0.23789778351783752, 0.06698490679264069, 0.2551589012145996, -0.2525520920753479, -0.8035449981689453, 0.10776550322771072, 0.13089799880981445, -0.009748348966240883, -0.4651970863342285, 0.138701394200325, -0.07489076256752014, -0.14063647389411926, -0.19191253185272217, 0.6681406497955322, 0.06042337790131569, -0.15831217169761658, 0.42592015862464905, -0.2587261199951172 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
> First I think we should disable padding in the dataset processing and let the data collator do it. No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching. For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script.
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
91
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` > First I think we should disable padding in the dataset processing and let the data collator do it. No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching. For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script.
[ -0.24492351710796356, -0.43948736786842346, 0.11735714972019196, 0.3189447820186615, 0.5710241198539734, -0.17657682299613953, 0.25659218430519104, 0.42917561531066895, -0.33907872438430786, 0.1573355346918106, -0.0675724521279335, -0.20117215812206268, -0.30872198939323425, 0.19151002168655396, 0.1266336590051651, -0.14788955450057983, 0.06981934607028961, 0.17317357659339905, -0.12523528933525085, -0.22146888077259064, -0.00031557827605865896, 0.0349695086479187, 0.24222683906555176, 0.17850114405155182, -0.5778369307518005, 0.07625635713338852, -0.07158073037862778, 0.011026292107999325, -0.34619420766830444, -0.03485149145126343, 0.09941381216049194, -0.28658297657966614, 0.20106765627861023, 0.5267562866210938, -0.0001265749306185171, -0.04113183543086052, 0.1517595797777176, -0.08266869932413101, 0.046140946447849274, 0.1951688677072525, 0.19750286638736725, -0.08568206429481506, -0.1636209338903427, 0.07720521092414856, 0.1840522587299347, -0.08896519988775253, -0.02513001672923565, -0.003594686510041356, 0.3703838288784027, 0.22735141217708588, 0.08147551864385605, 0.2212548702955246, -0.02374241314828396, 0.07111754268407822, 0.2784285843372345, 0.28877079486846924, -0.08184041827917099, -0.05091997608542442, 0.2467288225889206, -0.2162988930940628, -0.07551777362823486, 0.11387158185243607, 0.0970572829246521, -0.13825702667236328, 0.29425790905952454, 0.24187609553337097, -0.0901600793004036, -0.43374139070510864, 0.2268635630607605, 0.44426342844963074, -0.0038127258885651827, -0.3651982843875885, -0.32350867986679077, -0.41262590885162354, 0.20021876692771912, -0.46952998638153076, 0.0931721031665802, 0.15728482604026794, -0.17085619270801544, 0.07144783437252045, -0.30421051383018494, -0.3376947343349457, -0.26050108671188354, -0.06027103215456009, -0.18918225169181824, 0.0072352150455117226, -0.20470678806304932, -0.12976470589637756, 0.025829950347542763, -0.08981016278266907, -0.2813790738582611, 0.008646334521472454, -0.005478136707097292, 0.23293045163154602, -0.08753539621829987, -0.2953801155090332, -0.08205711841583252, -0.32091253995895386, 0.2784360349178314, -0.4808044135570526, -0.19114825129508972, -0.42344096302986145, -0.12176172435283661, -0.4122716188430786, 0.4198233187198639, 0.4721469283103943, -0.4405251145362854, 0.14792229235172272, 0.18130309879779816, 0.014089785516262054, -0.11942058056592941, -0.04084111005067825, -0.12773118913173676, 0.08682795614004135, 0.09282837808132172, -0.4029769003391266, 0.03930007293820381, -0.23542506992816925, -0.04726683348417282, 0.33438220620155334, -0.2421364039182663, 0.16467691957950592, -0.01494465209543705, 0.3203735947608948, -0.09538626670837402, 0.20728309452533722, 0.09156374633312225, 0.010971262119710445, -0.4334864020347595, 0.028075261041522026, -0.09207624197006226, 0.07048150897026062, -0.23146004974842072, 0.1855054348707199, 0.05626208707690239, 0.07756464928388596, -0.013214780017733574, -0.060012929141521454, 0.3360005021095276, -0.06065722554922104, 0.031535543501377106, -0.24499496817588806, 0.14178402721881866, 0.2185819447040558, -0.17209477722644806, 0.387331485748291, -0.037259142845869064, 0.12478341162204742, -0.06762558221817017, 0.10889729857444763, -0.17172032594680786, -0.5269578099250793, -0.055834729224443436, 0.0992494747042656, -0.06328514218330383, 0.2949826717376709, -0.10479863733053207, 0.3964318633079529, 0.46083229780197144, -0.03424549847841263, -0.03376561030745506, -0.20151950418949127, -0.24321085214614868, -0.026337837800383568, 0.4121348559856415, 0.4938145577907562, -0.5112314820289612, -0.1573765128850937, -0.24003063142299652, 0.2583681344985962, 0.32618948817253113, 0.6362030506134033, -0.05598613992333412, 0.6048213243484497, -0.24778862297534943, 0.1249571144580841, -0.30700892210006714, 0.2827398180961609, -0.41845598816871643, 0.37414491176605225, -0.04610058292746544, -0.047369539737701416, 0.14157366752624512, -0.05004296079277992, 0.2129470556974411, -0.0024276464246213436, 0.3216814398765564, 0.048709627240896225, -0.2102932631969452, 0.10447101294994354, -0.363808274269104, -0.4317644238471985, -0.2797994017601013, 0.09064794331789017, 0.19368571043014526, -0.11616799980401993, -0.3184913992881775, 0.6250882744789124, 0.056241367012262344, -0.10044533014297485, 0.1612389087677002, 0.3503362834453583, 0.015347113832831383, -0.049900855869054794, 0.04809017851948738, -0.06072521209716797, -0.2662006616592407, 0.017564088106155396, -0.30426153540611267, 0.2425423413515091, 0.12028250843286514, -0.2763027250766754, -0.020358320325613022, -0.06171393394470215, 0.141987144947052, -0.1604050248861313, 0.0006386313471011817, -0.186659574508667, -0.08401510119438171, -0.023110991343855858, -0.0585220642387867, -0.0471782386302948, 0.011355317197740078, 0.023684939369559288, -0.4993113577365875, -0.014662252739071846, 0.007761212531477213, -0.18259578943252563, -0.035643070936203, 0.3575812578201294, -0.13427616655826569, 0.038988299667835236, -0.12328355759382248, 0.166341170668602, 0.08921456336975098, 0.13772906363010406, -0.07223819196224213, 0.31331154704093933, 0.29545238614082336, 0.050973664969205856, 0.0841747373342514, 0.24687637388706207, 0.05954376608133316, -0.07477780431509018, -0.14488916099071503, 0.1593146026134491, 0.16430412232875824, 0.11648128181695938, 0.2938346862792969, -0.2498120814561844, -0.1497594714164734, 0.06342486292123795, -0.03764820843935013, -0.21555428206920624, 0.2923841178417206, 0.04138060659170151, 0.3077191114425659, 0.20180539786815643, -0.1722930371761322, -0.07771141082048416, 0.33626434206962585, -0.20027707517147064, 0.026696735993027687, 0.4785175919532776, -0.2761451005935669, -0.0927359089255333, -0.14043714106082916, -0.2291952669620514, 0.3158211410045624, 0.09738518297672272, 0.08086834847927094, 0.11552475392818451, 0.13170818984508514, -0.08297092467546463, 0.17523740231990814, 0.3304269015789032, -0.1765459030866623, 0.18969525396823883, 0.12552672624588013, 0.10038766264915466, -0.18470533192157745, 0.03161953389644623, -0.24091492593288422, 0.3497813045978546, -0.38094639778137207, 0.28912460803985596, 0.09350834786891937, 0.019760282710194588, -0.4174825847148895, -0.21461111307144165, -0.20945711433887482, 0.053693730384111404, 0.20304477214813232, -0.18450595438480377, -0.1346837282180786, -0.0525900237262249, 0.409863144159317, 0.29637569189071655, 0.13963162899017334, 0.2047351747751236, -0.03466819226741791, 0.1242033913731575, -0.3263195753097534, -0.0076294876635074615, 0.16082410514354706, -0.14000199735164642, 0.11287388950586319, 0.0829416960477829, -0.20214447379112244, 0.0533418133854866, -0.3232712149620056, 0.1798679232597351, -0.19531592726707458, 0.23582009971141815, 0.18651224672794342, 0.21585430204868317, -0.35097989439964294, 0.03460952267050743, -0.018024537712335587, -0.08354147523641586, -0.09088736772537231, 0.0012707891874015331, -0.14161470532417297, 0.1193026453256607, -0.09180721640586853, -0.3632553517818451, -0.08064556121826172, -0.092501200735569, 0.3361853361129761, -0.05783548951148987, 0.012480185367166996, 0.17885999381542206, 0.22010228037834167, 0.1198027953505516, -0.0008885217248462141, -0.15027092397212982, 0.0651717483997345, -0.09148618578910828, 0.20970113575458527, 0.02229703776538372, -0.22807195782661438, -0.38840946555137634, -0.04950551688671112, 0.003450569463893771, -0.150795578956604, -0.5319614410400391, 0.042845167219638824, -0.4780927300453186, -0.26157885789871216, -0.25814348459243774, 0.43614357709884644, 0.178550586104393, -0.05562320724129677, 0.06517335027456284, 0.09482698142528534, 0.08552943170070648, -0.0653800517320633, -0.23834548890590668, 0.16570016741752625, -0.4090299904346466, 0.3104114532470703, -0.1278926283121109, 0.8918730616569519, 0.2818320095539093, -0.030153503641486168, -0.02329363115131855, -0.0228215791285038, 0.3791368305683136, -0.4229275584220886, -0.14718219637870789, 0.268161416053772, -0.08133922517299652, -0.3361048698425293, 0.31713661551475525, 0.13550789654254913, 0.40414541959762573, 0.12335921823978424, 0.05801448971033096, 0.2295859009027481, -0.36385324597358704, 0.4420795738697052, 0.18022756278514862, 0.1680266112089157, -0.04285302013158798, 0.08005879819393158, 0.01876682974398136, -0.3227299451828003, 0.040256790816783905, -0.054111599922180176, 0.208404079079628, 0.005582308862358332, 0.1433923840522766, -0.3114255368709564, -0.734818160533905, -0.06941846013069153, 0.15143215656280518, 0.004126092419028282, 0.12986819446086884, -0.14831185340881348, 0.1331450641155243, 0.059177201241254807, 0.7799116969108582, 0.24423597753047943, -0.18084825575351715, -0.017139678820967674, -0.11898434907197952, -0.19004380702972412, 0.07657457143068314, -0.36295169591903687, -0.1096828430891037, 0.5771896243095398, 0.6488317251205444, -0.38227006793022156, -0.059770435094833374, 0.09835146367549896, 0.33697623014450073, -0.1064751148223877, -0.002855211030691862, -0.4241308867931366, -0.04823657125234604, -0.20513370633125305, 0.20689517259597778, 0.1253678798675537, 0.0427052341401577, -0.15018251538276672, -0.06684119254350662, 0.1060287281870842, -0.05461830645799637, 0.2829439043998718, 0.3270210027694702, 0.2913767993450165, -0.30868467688560486, 0.3943777084350586, -0.03212902694940567, 0.04072357341647148, 0.3370811641216278, 0.25016477704048157, -0.22706957161426544, -0.34912440180778503, 0.2843480706214905, -0.06047290191054344, 0.29917049407958984, 0.5100059509277344, -0.028036121279001236, 0.10720918327569962, 0.1304297149181366, 0.47839227318763733, -0.42163240909576416, 0.44755011796951294, 0.47791430354118347, -0.0455985888838768, -0.48163503408432007, -0.20874761044979095, 0.4050306975841522, 0.09200777113437653, 0.14929471909999847, 0.16798919439315796, 0.26243487000465393, -0.30838924646377563, 0.33867111802101135, -0.027618486434221268, 1.140523910522461, -0.2570117115974426, 0.6073170900344849, 0.10812593251466751, 0.2599501609802246, 0.6181580424308777, -0.26228806376457214, 0.17685575783252716, -0.3545406460762024, -0.156901553273201, 0.1905536949634552, 0.054592981934547424, -0.1465177983045578, 0.09669649600982666, -0.20471639931201935, 0.2035127729177475, -0.0937369242310524, 0.1888553500175476, -0.22858843207359314, 0.3655288517475128, 0.12256768345832825, -0.42320987582206726, -0.2664293944835663, -0.04599333181977272, -0.05118472874164581, 0.06399594992399216, -0.13793903589248657, 0.075469471514225, -0.018138837069272995, -0.29613885283470154, -0.29300200939178467, -0.1532241255044937, -0.07355304062366486, -0.09203417599201202, 0.2486366182565689, -0.2898264527320862, 0.35937535762786865, 0.0114067904651165, 0.22156338393688202, 0.6132360100746155, -0.26595839858055115, 0.06434030085802078, -0.1660611778497696, 0.02612815797328949, -0.023176925256848335, -0.020789558067917824, 0.04847440868616104, 0.048746708780527115, 0.02140604890882969, -0.04092879965901375, -0.01565583050251007, 0.31323081254959106, -0.3416115343570709, -0.21260686218738556, 0.4788942039012909, -0.4908943176269531, 0.03452277183532715, -0.09679275751113892, -0.10157091170549393, -0.13028420507907867, 0.03218298405408859, 0.13768287003040314, -0.2899426221847534, 0.09584084153175354, 0.027760831639170647, -0.3693695664405823, -0.2427588254213333, 0.23257598280906677, 0.28116926550865173, 0.005573587957769632, 0.6309419274330139, 0.3198372423648834, -0.0506039634346962, -0.09400134533643723, 0.3591885268688202, 0.4548470973968506, -0.5871474742889404, 0.32310551404953003, 0.18270662426948547, -0.07760998606681824, 0.0416630357503891, 0.18620339035987854, 0.2471875697374344, -0.26867300271987915, -0.179280623793602, 0.004179641138762236, -0.4433618485927582, 0.0834008976817131, 0.054178450256586075, 0.16332347691059113, 0.1913110315799713, 0.33799970149993896, 0.011527208611369133, 0.20288975536823273, -0.14761677384376526, 0.01849834807217121, -0.015876108780503273, 0.056516844779253006, -0.18893180787563324, -0.08430666476488113, 0.21425031125545502, -0.11004696041345596, -0.0787370577454567, 0.24632132053375244, -0.03654837980866432, -0.10035810619592667, -0.2585129141807556, 0.16443288326263428, 0.011616598814725876, -0.09327656030654907, 0.07466099411249161, 0.122425876557827, -0.1858927607536316, -0.29256492853164673, 0.42653384804725647, 0.10714909434318542, 0.10571017861366272, -0.15915052592754364, 0.1500166356563568, -0.11146029829978943, -0.14536479115486145, 0.025575781241059303, 0.20136591792106628, 0.2704300880432129, 0.08757419884204865, 0.16924837231636047, 0.2338259369134903, -0.10961426049470901, -0.015922069549560547, 0.22439952194690704, 0.28486278653144836, 0.15566134452819824, 0.10207679122686386, -0.17079634964466095, -0.10299857705831528, -0.0018236968899145722, 0.20423230528831482, 0.4692015051841736, -0.25324350595474243, -0.22593460977077484, 0.4052756726741791, 0.09929000586271286, -0.05264608934521675, -0.09935247898101807, -0.134495347738266, -0.1887049674987793, -0.1091620996594429, 0.3316676616668701, -0.08643380552530289, 0.04548190161585808, -0.049517255276441574, 0.1529034823179245, -0.06073104590177536, 0.1428850293159485, -0.021119892597198486, 0.6312287449836731, -0.005785754416137934, 0.08527184277772903, 0.15758997201919556, 0.06308697909116745, 0.26304301619529724, 0.6118046641349792, 0.24052569270133972, 0.16660448908805847, -0.4917706549167633, 0.08646178245544434, -0.18387553095817566, -0.5297772288322449, -0.44317826628685, 0.12679465115070343, -0.1018829271197319, 0.30690449476242065, -0.15979595482349396, 0.5299901366233826, -0.08972572535276413, -0.23195026814937592, -0.16531646251678467, -0.05834747105836868, -0.23865869641304016, -0.10734256356954575, 0.3041731119155884, -0.09967005997896194, 0.1822095811367035, 0.23354847729206085, -0.11556702852249146, 0.03173581883311272, -0.011983565986156464, 0.1258917599916458, -0.0749748945236206, 0.12504766881465912, -0.22414110600948334, 0.15383219718933105, 0.13881933689117432, -0.2075565904378891, 0.23489439487457275, -0.026093658059835434, 0.019562911242246628, -0.26050323247909546, 0.3408118784427643, 0.447201132774353, 0.36920303106307983, -0.21023303270339966, 0.22857511043548584, 0.1935970038175583, 0.068895123898983, -0.04676109179854393, 0.1994187980890274, 0.2860606610774994, 0.18853379786014557, 0.04347802326083183, -0.0506955087184906, -0.14867395162582397, -0.11822603642940521, 0.14325012266635895, 0.07860034704208374, -0.17583726346492767, 0.25103849172592163, -0.11437173932790756, -0.2028605341911316, -0.2750484347343445, 0.026197019964456558, -0.6956093907356262, 0.5344959497451782, 0.4925585389137268, -0.048054758459329605, 0.10111387819051743, -0.04748828336596489, -0.0031143627129495144, -0.05629133805632591, 0.5935717225074768, 0.48527073860168457, 0.07553305476903915, -0.3850587010383606, 0.049232836812734604, -0.2965458631515503, 0.29271581768989563, -0.3322426676750183, 0.3192043602466583, -0.07130984216928482, -0.10959997028112411, -0.014768610708415508, -0.08699695765972137, -0.07450871914625168, -0.24968765676021576, -0.637069046497345, 0.158471018075943, -0.13585138320922852, -0.23814094066619873, -0.2515375018119812, 0.02697804570198059, -0.04756338149309158, -0.3367348611354828, 0.3873051106929779, 0.04777674749493599, -0.10690901428461075, -0.03233752027153969, 0.21245287358760834, -0.18921394646167755, 0.1731821447610855, 0.19584332406520844, 0.27027714252471924, 0.0202768724411726, 0.016923334449529648, -0.1743374615907669, -0.32299867272377014, 0.1347476691007614, -0.09191115945577621, 0.05750652775168419, 0.28628572821617126, 0.30369341373443604, -0.33949846029281616, -0.2640426754951477, -0.42437753081321716, 0.053735606372356415, 0.32865455746650696, -0.16400177776813507, -0.1837846040725708, 0.05681745707988739, -0.08630549907684326, -0.03455431014299393, 0.05834336578845978, 0.5320749878883362, -0.14581824839115143, -0.08057409524917603, -0.37624576687812805, -0.21002836525440216, 0.4452863037586212, -0.34003710746765137, -0.4382005035877228, -0.22180548310279846, 0.036118797957897186, 0.19986768066883087, -0.23387141525745392, -0.756881833076477, 0.12111345678567886, 0.12666133046150208, 0.01930410787463188, -0.4797685146331787, 0.15737642347812653, -0.13839313387870789, -0.1603676676750183, -0.16022130846977234, 0.7219980955123901, 0.082360178232193, -0.1749938726425171, 0.40888139605522156, -0.271299809217453 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
Oh yes right.. Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ?
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
25
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` Oh yes right.. Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ?
[ -0.15845926105976105, -0.32274946570396423, 0.11426512897014618, 0.2783171832561493, 0.605080783367157, -0.0893944725394249, 0.3665045499801636, 0.37571385502815247, -0.250440388917923, 0.16443192958831787, -0.06106599420309067, -0.08094003051519394, -0.37371835112571716, 0.14727118611335754, 0.14738141000270844, 0.03244002163410187, 0.13914147019386292, 0.13548637926578522, -0.07737287878990173, -0.24713775515556335, 0.0194769985973835, -0.030928168445825577, 0.24246658384799957, 0.19485297799110413, -0.5476981401443481, 0.09979359805583954, -0.03192383050918579, -0.03072628751397133, -0.4810978174209595, -0.12518252432346344, 0.10056782513856888, -0.24837610125541687, 0.12872406840324402, 0.4240872859954834, -0.00012953933037351817, -0.018199190497398376, 0.14128431677818298, -0.08144461363554001, 0.05100798234343529, 0.19264619052410126, 0.07134758681058884, -0.07788325101137161, -0.159784734249115, 0.08114006370306015, 0.2066454142332077, -0.10239513218402863, 0.03540363535284996, -0.07941887527704239, 0.3247145116329193, 0.1447518765926361, 0.06381947547197342, 0.11435049027204514, -0.03489004075527191, 0.07471174746751785, 0.31874364614486694, 0.27705147862434387, -0.07556364685297012, 0.005522324237972498, 0.1870391070842743, -0.22821281850337982, -0.07464761286973953, 0.23562969267368317, 0.0775168314576149, -0.201511412858963, 0.3477505147457123, 0.2555219233036041, -0.011826985515654087, -0.39131227135658264, 0.2150575965642929, 0.3343569338321686, -0.005938910413533449, -0.36918962001800537, -0.2815500497817993, -0.47592249512672424, 0.15073491632938385, -0.39837002754211426, 0.06763391941785812, 0.12646527588367462, -0.09996690601110458, 0.11645069718360901, -0.32566630840301514, -0.46263283491134644, -0.215194970369339, -0.04214892163872719, -0.19259704649448395, 0.049902599304914474, -0.20662562549114227, -0.11626993864774704, -0.06090621277689934, -0.12378480285406113, -0.268993616104126, -0.07285565137863159, 0.01814463548362255, 0.24703095853328705, 0.03553980588912964, -0.33577680587768555, -0.0486241914331913, -0.40031367540359497, 0.31790685653686523, -0.5198051333427429, -0.16705948114395142, -0.3840144872665405, -0.2822929918766022, -0.30929771065711975, 0.41901153326034546, 0.4008265435695648, -0.37863224744796753, 0.2864234149456024, 0.1474360078573227, 0.014389545656740665, -0.09818783402442932, -0.08723577111959457, -0.15845642983913422, 0.15296640992164612, 0.08890379965305328, -0.3663327693939209, 0.07947387546300888, -0.242852121591568, -0.11945012956857681, 0.42201727628707886, -0.34227022528648376, 0.2382756769657135, 0.021172624081373215, 0.3271232545375824, -0.10955106467008591, 0.08152228593826294, -0.018698696047067642, 0.04282675310969353, -0.36232253909111023, 0.06961638480424881, -0.05754421651363373, -0.008135983720421791, -0.16749225556850433, 0.18304353952407837, -0.004352194722741842, 0.08699048310518265, 0.09235475957393646, -0.06373860687017441, 0.24531330168247223, -0.026941796764731407, 0.07498839497566223, -0.23835618793964386, 0.21998406946659088, 0.15903005003929138, -0.21992002427577972, 0.44608840346336365, -0.03568878397345543, 0.027039770036935806, -0.06633832305669785, 0.10650423914194107, -0.28451091051101685, -0.5047078132629395, -0.04483926668763161, 0.08486680686473846, 0.013393868692219257, 0.28748589754104614, -0.10683032125234604, 0.3798868954181671, 0.4936857521533966, -0.06471092253923416, 0.046557266265153885, -0.16420727968215942, -0.31961581110954285, -0.01209793146699667, 0.364136666059494, 0.38118284940719604, -0.4837586581707001, -0.19461217522621155, -0.16948610544204712, 0.24518857896327972, 0.284144788980484, 0.6231357455253601, -0.058198653161525726, 0.580136239528656, -0.28976547718048096, 0.2861115336418152, -0.2603812515735626, 0.2289157211780548, -0.458026260137558, 0.3011758625507355, -0.02318105474114418, -0.010198577307164669, 0.037730149924755096, -0.10350184887647629, 0.2780744433403015, -0.018708830699324608, 0.4887699782848358, -0.04056723788380623, -0.19372616708278656, 0.04839051887392998, -0.34716489911079407, -0.3909623920917511, -0.22330144047737122, -0.030192023143172264, 0.1755291372537613, -0.17293165624141693, -0.2678879201412201, 0.5790891051292419, 0.17351120710372925, -0.06456655263900757, 0.224948912858963, 0.32495781779289246, 0.12686830759048462, -0.03760426864027977, 0.037734486162662506, -0.1063973680138588, -0.18409638106822968, 0.000746118021197617, -0.2624865770339966, 0.19736671447753906, 0.06052861362695694, -0.33663320541381836, -0.027903228998184204, -0.030360473319888115, 0.05222760885953903, -0.14900542795658112, -0.009615886025130749, -0.243294820189476, -0.1688450276851654, 0.12207856774330139, -0.0486752986907959, -0.1587260663509369, -0.07926496118307114, 0.05638957768678665, -0.3761591613292694, -0.005961815360933542, 0.02879747934639454, -0.161176398396492, -0.09674271196126938, 0.32955488562583923, -0.17232216894626617, -0.0049665565602481365, -0.07971743494272232, 0.13598380982875824, 0.1103421226143837, 0.10882613807916641, -0.16414952278137207, 0.3137355148792267, 0.3106910288333893, 0.09417301416397095, 0.04822474718093872, 0.21865887939929962, 0.012098374776542187, -0.09836696088314056, -0.1908928006887436, 0.18030330538749695, 0.20872414112091064, 0.06523796170949936, 0.17507003247737885, -0.27778348326683044, -0.0779205858707428, 0.11876426637172699, -0.08124678581953049, -0.32908591628074646, 0.2585926651954651, 0.04744435474276543, 0.29465654492378235, 0.1983218789100647, -0.14921829104423523, -0.07549744844436646, 0.31657177209854126, -0.16172228753566742, 0.037167955189943314, 0.37896305322647095, -0.3250768780708313, -0.09435001760721207, -0.0045815398916602135, -0.31058984994888306, 0.29050758481025696, 0.04628860950469971, 0.13456644117832184, 0.09405633062124252, 0.11507291346788406, -0.06172574311494827, 0.18565957248210907, 0.21066056191921234, -0.1262023001909256, 0.20953074097633362, 0.19208252429962158, -0.000927034008782357, -0.2589699923992157, 0.13656097650527954, -0.1572655290365219, 0.289898544549942, -0.35947930812835693, 0.22821524739265442, 0.07559334486722946, 0.026527078822255135, -0.38851845264434814, -0.2284083366394043, -0.1528204083442688, 0.03312564268708229, 0.25426340103149414, -0.1518007516860962, -0.15186069905757904, -0.015899406746029854, 0.3029645085334778, 0.3114871680736542, 0.24149709939956665, 0.20743894577026367, 0.015308124013245106, 0.12333285808563232, -0.28941792249679565, -0.031588561832904816, 0.15724848210811615, -0.23570884764194489, 0.12229016423225403, 0.11271891742944717, -0.29937365651130676, -0.08174531161785126, -0.2953290343284607, 0.20148032903671265, -0.16485591232776642, 0.196104496717453, 0.24428695440292358, 0.12523153424263, -0.38741227984428406, 0.10481995344161987, 0.01283637061715126, 0.0034774672240018845, -0.1348339468240738, -0.11365951597690582, -0.07705505937337875, 0.14890897274017334, -0.08062130212783813, -0.2752315402030945, -0.07245737314224243, -0.0015946099301800132, 0.39678123593330383, -0.03822487220168114, 0.0059404936619102955, 0.19843743741512299, 0.20222817361354828, 0.09550730139017105, -0.0675063207745552, -0.19601184129714966, -0.00695324782282114, -0.22214701771736145, 0.2693297564983368, -0.020077163353562355, -0.18035206198692322, -0.3509807288646698, -0.03677232190966606, -0.0391576811671257, -0.14396314322948456, -0.5498440861701965, 0.10428133606910706, -0.3475678265094757, -0.21242976188659668, -0.1869572252035141, 0.32366839051246643, 0.1621258407831192, -0.027823494747281075, 0.09540172666311264, 0.07705484330654144, 0.07411383837461472, -0.04607780650258064, -0.15300309658050537, 0.22592903673648834, -0.36706554889678955, 0.30846327543258667, -0.0015543386107310653, 0.8413861989974976, 0.2584564685821533, 0.059178389608860016, 0.017511919140815735, -0.03641383349895477, 0.4315394461154938, -0.42160564661026, -0.19537140429019928, 0.2533493638038635, -0.12667207419872284, -0.38544535636901855, 0.3003959357738495, 0.1515316367149353, 0.3678120970726013, 0.24889880418777466, 0.02202245406806469, 0.3477163016796112, -0.36864998936653137, 0.43263858556747437, 0.008607981726527214, 0.12010529637336731, 0.0394558347761631, 0.10657957196235657, -0.027605406939983368, -0.3450221121311188, 0.12100932747125626, -0.11880970001220703, 0.24717417359352112, -0.013873889110982418, 0.0746995210647583, -0.2114323526620865, -0.8055396676063538, -0.07938627153635025, 0.1710195243358612, 0.0181146077811718, 0.10243147611618042, -0.07023507356643677, 0.1438995748758316, 0.10945762693881989, 0.7522367238998413, 0.1485326886177063, -0.14663580060005188, -0.07310318946838379, -0.032091718167066574, -0.1479647159576416, -0.007332139648497105, -0.31750112771987915, -0.008026182651519775, 0.5544780492782593, 0.8051594495773315, -0.38374871015548706, -0.014599728398025036, 0.012789184227585793, 0.27126139402389526, -0.16306380927562714, 0.04659489169716835, -0.3782895803451538, 0.033482689410448074, -0.18056516349315643, 0.16466651856899261, 0.15064580738544464, 0.04843452572822571, -0.03649560362100601, -0.1383146047592163, 0.036142747849226, -0.046269554644823074, 0.3272368907928467, 0.18011616170406342, 0.3079208433628082, -0.2690190076828003, 0.37926483154296875, 0.022727489471435547, 0.14553891122341156, 0.36325138807296753, 0.27829185128211975, -0.265678346157074, -0.3319883644580841, 0.20269230008125305, -0.17059284448623657, 0.3661510944366455, 0.5202779173851013, -0.019919080659747124, 0.1646706461906433, 0.1409860998392105, 0.38794824481010437, -0.5066111087799072, 0.5397737622261047, 0.5001420974731445, -0.015557968989014626, -0.5173016786575317, -0.2605220377445221, 0.32421061396598816, 0.0890110582113266, 0.10869847983121872, 0.21835751831531525, 0.1754104644060135, -0.4198833405971527, 0.38007497787475586, 0.05823906511068344, 1.092748999595642, -0.2820729613304138, 0.645775556564331, 0.08569292724132538, 0.3474426865577698, 0.6195518374443054, -0.3919822871685028, 0.16632314026355743, -0.3371167778968811, -0.16507814824581146, 0.12396551668643951, 0.08796035498380661, -0.17084208130836487, 0.05176455155014992, -0.14401297271251678, 0.190590500831604, -0.031577952206134796, 0.3619592487812042, -0.26509061455726624, 0.2576610743999481, 0.12457413226366043, -0.33579158782958984, -0.2187574803829193, -0.06758957356214523, 0.08155041933059692, 0.0012555411085486412, -0.1550394892692566, 0.066231369972229, 0.01398929487913847, -0.3324238657951355, -0.2732446491718292, -0.18586979806423187, -0.10231026262044907, 0.03341362625360489, 0.26064810156822205, -0.21934714913368225, 0.26652446389198303, 0.014917266555130482, 0.19572462141513824, 0.6118083596229553, -0.27479779720306396, -0.0073968805372715, -0.14161019027233124, 0.0322248749434948, -0.05541359633207321, -0.10506705939769745, 0.027845168486237526, 0.12154028564691544, 0.10151878744363785, 0.010178891941905022, -0.051777541637420654, 0.24963997304439545, -0.43598484992980957, -0.17438185214996338, 0.5185433030128479, -0.57245934009552, -0.06095210835337639, -0.1661485880613327, -0.05538279935717583, -0.10673511028289795, 0.003390042344108224, 0.12298455834388733, -0.23769144713878632, 0.0719614177942276, 0.04815632477402687, -0.35860711336135864, -0.1936805099248886, 0.30846598744392395, 0.19192354381084442, 0.050071876496076584, 0.6962031126022339, 0.18188528716564178, -0.06952981650829315, -0.04646307975053787, 0.4055948257446289, 0.5893692970275879, -0.37764284014701843, 0.25609177350997925, 0.14960192143917084, -0.09497841447591782, -0.10040989518165588, 0.19209688901901245, 0.24291110038757324, -0.2599297761917114, -0.1791059970855713, -0.04942655190825462, -0.4665803909301758, 0.07210679352283478, 0.003224735613912344, 0.16648806631565094, 0.1396561712026596, 0.3237333297729492, -0.06663607805967331, 0.15344558656215668, -0.1248241513967514, 0.09316111356019974, -0.023892400786280632, 0.10163723677396774, -0.2898566722869873, 0.0022023776546120644, 0.17091506719589233, -0.16633649170398712, -0.09852819889783859, 0.2696661949157715, 0.014739570207893848, -0.06437429040670395, -0.25740674138069153, 0.17161574959754944, 0.05130881816148758, -0.04145272448658943, 0.15218399465084076, 0.07730425894260406, -0.12617062032222748, -0.30966418981552124, 0.3914385735988617, 0.1916748583316803, 0.14035053551197052, -0.22744783759117126, 0.14552664756774902, -0.08630121499300003, -0.13042879104614258, 0.041222285479307175, 0.18996576964855194, 0.3233468532562256, -0.03048994578421116, 0.16294367611408234, 0.18363934755325317, -0.07683733105659485, 0.07090805470943451, 0.2680514454841614, 0.28614920377731323, 0.045373253524303436, 0.12840968370437622, -0.21390998363494873, -0.06523891538381577, 0.06217324733734131, 0.25935879349708557, 0.45853573083877563, -0.32025009393692017, -0.22362855076789856, 0.4694562554359436, 0.08028673380613327, -0.041380707174539566, -0.13148759305477142, -0.08762403577566147, -0.1502097100019455, -0.1225983127951622, 0.2824835777282715, -0.013389013707637787, -0.01832888089120388, -0.13053853809833527, 0.16199903190135956, -0.15487904846668243, 0.13995419442653656, -0.048020221292972565, 0.5657487511634827, 0.00443254504352808, 0.07019948959350586, 0.2165231853723526, 0.08751823753118515, 0.28339341282844543, 0.6908544898033142, 0.2469204068183899, 0.1544194221496582, -0.3074202835559845, 0.0846029594540596, -0.23200824856758118, -0.48089712858200073, -0.39431020617485046, 0.265872985124588, -0.11994195729494095, 0.3273163139820099, -0.13214680552482605, 0.5771370530128479, -0.048139918595552444, -0.23531097173690796, -0.10172692686319351, 0.03923851251602173, -0.32320988178253174, -0.1748601198196411, 0.245391383767128, -0.11985885351896286, 0.1695702224969864, 0.2694949507713318, -0.15149815380573273, 0.02494186908006668, 0.060726989060640335, 0.057839032262563705, -0.06961553543806076, 0.08195363730192184, -0.15156657993793488, 0.14337733387947083, 0.17246155440807343, -0.2777450382709503, 0.26019883155822754, -0.18491534888744354, 0.02362828701734543, -0.24793508648872375, 0.35732218623161316, 0.46144261956214905, 0.4569042921066284, -0.2203868329524994, 0.19613085687160492, 0.13989724218845367, 0.05031635984778404, -0.06493696570396423, 0.2028534859418869, 0.30664265155792236, 0.04743824526667595, 0.051334280520677567, -0.08069878816604614, -0.10919735580682755, -0.06269170343875885, 0.23264841735363007, 0.03531999513506889, -0.07470276951789856, 0.17305132746696472, -0.10697435587644577, -0.1755286157131195, -0.176559180021286, -0.023872505873441696, -0.6561954617500305, 0.4798915982246399, 0.5330015420913696, -0.06577466428279877, 0.23129434883594513, -0.0600784495472908, -0.009169835597276688, -0.10389486700296402, 0.4950034022331238, 0.4832194149494171, -0.08379907160997391, -0.42753809690475464, 0.02575252205133438, -0.2784150242805481, 0.31739574670791626, -0.3863586187362671, 0.2983151078224182, -0.13070233166217804, -0.08447762578725815, 0.021826980635523796, -0.11505211144685745, -0.1574871987104416, -0.2555803954601288, -0.6535035967826843, 0.1622946411371231, -0.10247951000928879, -0.2134438008069992, -0.24217988550662994, 0.08154363930225372, -0.02843387797474861, -0.3112557828426361, 0.4596821665763855, -0.035196319222450256, -0.15141066908836365, 0.013302942737936974, 0.32894405722618103, -0.26159200072288513, 0.1339918076992035, 0.25571948289871216, 0.2501490116119385, 0.00006855431274743751, 0.008156181313097477, -0.1990962028503418, -0.2667853534221649, 0.08872495591640472, -0.0846685916185379, 0.12751857936382294, 0.23068827390670776, 0.2665816843509674, -0.38576337695121765, -0.2505607008934021, -0.40743228793144226, 0.11251942068338394, 0.3654768466949463, -0.1307975798845291, -0.24755246937274933, 0.14535582065582275, -0.15004821121692657, -0.023698557168245316, -0.020541543141007423, 0.45203763246536255, -0.14291584491729736, -0.044998329132795334, -0.24738577008247375, -0.2518763542175293, 0.4671114683151245, -0.3677012026309967, -0.40635716915130615, -0.20259308815002441, 0.029903890565037727, 0.3852634131908417, -0.2789246141910553, -0.8607029318809509, 0.1042313203215599, 0.22063122689723969, 0.015690572559833527, -0.5150172114372253, 0.0325452983379364, -0.020475618541240692, -0.10859360545873642, -0.26271143555641174, 0.8137919902801514, 0.07515904307365417, -0.19300225377082825, 0.43237754702568054, -0.321027547121048 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ). If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however!
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
55
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ). If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however!
[ -0.20229487121105194, -0.2920215129852295, 0.11891688406467438, 0.23009668290615082, 0.6037492156028748, -0.17225316166877747, 0.3156900405883789, 0.38988563418388367, -0.2658645808696747, 0.18251627683639526, -0.03292283043265343, -0.1477782428264618, -0.34277352690696716, 0.2524912655353546, 0.1107928454875946, -0.0713137611746788, 0.10648056119680405, 0.1568867266178131, -0.043426234275102615, -0.22820314764976501, 0.054199449717998505, 0.018276413902640343, 0.24269145727157593, 0.22361750900745392, -0.5773254036903381, 0.09311722964048386, -0.0897388607263565, 0.028962498530745506, -0.49840179085731506, -0.10516225546598434, 0.020069077610969543, -0.2774217128753662, 0.21713580191135406, 0.488703191280365, -0.00012551411055028439, -0.07239092886447906, 0.1390119045972824, -0.06831998378038406, 0.004204552620649338, 0.15632598102092743, 0.203809916973114, -0.09630199521780014, -0.14367258548736572, 0.12506592273712158, 0.238371342420578, -0.10818342864513397, -0.0434221513569355, -0.000037113422877155244, 0.3469853699207306, 0.1695789098739624, 0.0850072130560875, 0.19177143275737762, 0.09784047305583954, 0.051332395523786545, 0.21680106222629547, 0.24415045976638794, -0.04919692501425743, 0.04927179217338562, 0.21340563893318176, -0.24368874728679657, -0.047598786652088165, 0.17664925754070282, 0.11953940987586975, -0.14370658993721008, 0.30661439895629883, 0.19225460290908813, -0.07949114590883255, -0.411546915769577, 0.1700013428926468, 0.4091200530529022, -0.03981151804327965, -0.3814205527305603, -0.28529104590415955, -0.3907460868358612, 0.22809666395187378, -0.5098488926887512, 0.03614336997270584, 0.16512227058410645, -0.11532152444124222, 0.0947936400771141, -0.2568557858467102, -0.3915163576602936, -0.2216070145368576, -0.06956922262907028, -0.27675673365592957, 0.06751560419797897, -0.2188892662525177, -0.09888788312673569, -0.0032568457536399364, -0.09550539404153824, -0.37004080414772034, 0.012171625159680843, -0.04981735348701477, 0.19204500317573547, -0.10572892427444458, -0.3005860447883606, -0.09351063519716263, -0.3335513174533844, 0.2913612127304077, -0.49246007204055786, -0.20839279890060425, -0.408332496881485, -0.17432944476604462, -0.3648548424243927, 0.40702715516090393, 0.4913437068462372, -0.4073665738105774, 0.15880343317985535, 0.15240994095802307, 0.03694382309913635, -0.16341567039489746, -0.08123479783535004, -0.1596003919839859, 0.12071903049945831, 0.016143325716257095, -0.3720569312572479, 0.0639486089348793, -0.2456078827381134, -0.12668395042419434, 0.38390377163887024, -0.3510913848876953, 0.23774084448814392, 0.05505097284913063, 0.3134865462779999, -0.06506514549255371, 0.161382257938385, 0.03475756570696831, 0.041105542331933975, -0.41393595933914185, -0.049407538026571274, -0.07163245975971222, 0.05958428606390953, -0.16052810847759247, 0.19141143560409546, -0.018710801377892494, 0.10060659050941467, 0.04489663243293762, -0.028489496558904648, 0.34211987257003784, -0.07398540526628494, 0.07217223942279816, -0.25574690103530884, 0.1020965650677681, 0.17471978068351746, -0.17398904263973236, 0.4763525724411011, 0.011204052716493607, 0.010973147116601467, -0.012227153405547142, 0.03181859478354454, -0.16118291020393372, -0.5222708582878113, -0.09531144052743912, 0.12089662998914719, -0.013668271712958813, 0.2884070575237274, -0.04817082732915878, 0.3760940134525299, 0.39581671357154846, 0.0022849461529403925, -0.02702370285987854, -0.21761588752269745, -0.18829597532749176, -0.001930902129970491, 0.4034162163734436, 0.3783375322818756, -0.5633425116539001, -0.15488488972187042, -0.21996061503887177, 0.2848348915576935, 0.3699570894241333, 0.6364401578903198, -0.04722542315721512, 0.5527018308639526, -0.24902929365634918, 0.21005921065807343, -0.31504717469215393, 0.2535912096500397, -0.41380205750465393, 0.3480510115623474, -0.12818744778633118, -0.07209703326225281, 0.03793097659945488, -0.0920356810092926, 0.2472728192806244, 0.025330768898129463, 0.45543593168258667, 0.04244329780340195, -0.18594807386398315, 0.0485515333712101, -0.35736510157585144, -0.37546178698539734, -0.2417561113834381, 0.027666190639138222, 0.1375678926706314, -0.14340858161449432, -0.29869624972343445, 0.5591655373573303, 0.12244082242250443, -0.12350583076477051, 0.17124006152153015, 0.30222848057746887, 0.1504046618938446, -0.0457572340965271, 0.034705568104982376, -0.02409244328737259, -0.10813798010349274, -0.006438164506107569, -0.22654666006565094, 0.25548407435417175, 0.07551225274801254, -0.3105173408985138, -0.08789964765310287, -0.009651729837059975, 0.10225985944271088, -0.19118818640708923, 0.016962382942438126, -0.2215738445520401, -0.1310761719942093, 0.0813743993639946, -0.08264577388763428, -0.1217532679438591, -0.11199026554822922, 0.09573982656002045, -0.4077610671520233, -0.06689077615737915, -0.037566956132650375, -0.15568232536315918, -0.044724561274051666, 0.33140814304351807, -0.10876913368701935, 0.02293465845286846, -0.09088213741779327, 0.2122022658586502, 0.059688445180654526, 0.08225133270025253, -0.08399456739425659, 0.23291835188865662, 0.285622775554657, 0.13453063368797302, 0.10351677238941193, 0.17993378639221191, 0.06480834633111954, -0.08361212909221649, -0.06585557013750076, 0.23750054836273193, 0.2314712405204773, 0.1127714291214943, 0.2546750009059906, -0.20774081349372864, -0.05103713646531105, 0.12238842993974686, -0.030318990349769592, -0.2649424076080322, 0.2836708426475525, 0.049579720944166183, 0.2589970529079437, 0.1513911783695221, -0.190586119890213, -0.04249691218137741, 0.2515280842781067, -0.1678774058818817, 0.024790260940790176, 0.37357309460639954, -0.36900004744529724, -0.07845835387706757, -0.05794939771294594, -0.231973797082901, 0.297820508480072, 0.08521608263254166, 0.13627620041370392, 0.12015343457460403, 0.09701207280158997, -0.09164796024560928, 0.15547218918800354, 0.2827512323856354, -0.13166795670986176, 0.16208960115909576, 0.22255074977874756, 0.002868385287001729, -0.2590220868587494, 0.029703965410590172, -0.2065393328666687, 0.36832359433174133, -0.3679230213165283, 0.29502734541893005, 0.05667358264327049, 0.04821140319108963, -0.3758406639099121, -0.27664023637771606, -0.21924732625484467, 0.005715669598430395, 0.20627692341804504, -0.16684576869010925, -0.11793216317892075, -0.09319208562374115, 0.3834418058395386, 0.26328644156455994, 0.1543857306241989, 0.3253230154514313, 0.03473182022571564, 0.09007938951253891, -0.36575159430503845, -0.005399519577622414, 0.1525140106678009, -0.18678250908851624, 0.11739175021648407, 0.14430230855941772, -0.2773667275905609, -0.051535461097955704, -0.300214946269989, 0.18422424793243408, -0.18050026893615723, 0.2566882073879242, 0.2256775051355362, 0.1575402468442917, -0.4216122329235077, 0.034479133784770966, 0.03245329484343529, -0.024878162890672684, -0.12833409011363983, -0.05363927036523819, -0.14091305434703827, 0.1573621779680252, -0.0745350643992424, -0.28414228558540344, -0.14794641733169556, -0.05175059288740158, 0.3619462847709656, -0.02646751143038273, -0.029690517112612724, 0.18292275071144104, 0.16236843168735504, 0.09227811545133591, 0.015093237161636353, -0.21459630131721497, 0.02510586380958557, -0.14104241132736206, 0.19204629957675934, 0.013445224612951279, -0.18893085420131683, -0.3331332504749298, -0.016880426555871964, 0.000805029587354511, -0.15680180490016937, -0.5277710556983948, 0.05393614247441292, -0.4343663156032562, -0.2976067066192627, -0.2196923792362213, 0.3476226031780243, 0.0865408331155777, -0.08606923371553421, 0.04640733823180199, 0.12699972093105316, 0.11927623301744461, -0.07789729535579681, -0.22581788897514343, 0.2165207862854004, -0.4335944354534149, 0.42925843596458435, -0.034552834928035736, 0.8483132123947144, 0.22673021256923676, -0.055065326392650604, 0.01044703833758831, -0.0209996048361063, 0.39378979802131653, -0.4736230671405792, -0.21246634423732758, 0.3288613557815552, -0.12320925295352936, -0.38018348813056946, 0.2800566256046295, 0.12273064255714417, 0.4507923722267151, 0.17596393823623657, 0.04817857965826988, 0.27800408005714417, -0.3748358488082886, 0.37684527039527893, 0.1353835165500641, 0.19445616006851196, 0.006273833103477955, 0.0723593458533287, 0.0427694171667099, -0.33265432715415955, 0.07351280003786087, -0.02317483350634575, 0.16629648208618164, -0.0096780676394701, 0.03377564623951912, -0.280336856842041, -0.7721143960952759, -0.01223917119204998, 0.08970651775598526, 0.09981348365545273, 0.173117995262146, -0.14087530970573425, 0.16403594613075256, 0.030901938676834106, 0.808568000793457, 0.30276548862457275, -0.1947133094072342, -0.02752251736819744, -0.06874077767133713, -0.1778630167245865, 0.016813263297080994, -0.35450875759124756, -0.03587983548641205, 0.5801987648010254, 0.6342154741287231, -0.3662618398666382, -0.04949815943837166, 0.11199498176574707, 0.38165101408958435, -0.11014367640018463, 0.03919142112135887, -0.3996432423591614, -0.019507376477122307, -0.24229960143566132, 0.21025364100933075, 0.07610881328582764, 0.07976052165031433, -0.11548656225204468, -0.08313895016908646, 0.1009417176246643, -0.12104395031929016, 0.3523429334163666, 0.27201053500175476, 0.3041635751724243, -0.2905336320400238, 0.3746732771396637, -0.042687464505434036, 0.11385686695575714, 0.38927435874938965, 0.18023762106895447, -0.16901955008506775, -0.331091970205307, 0.25562602281570435, -0.06774666905403137, 0.3350260555744171, 0.5346240401268005, -0.016122493892908096, 0.21186929941177368, 0.07860693335533142, 0.4518148899078369, -0.413665235042572, 0.5587222576141357, 0.49527278542518616, -0.04027514159679413, -0.5326892137527466, -0.16209353506565094, 0.338435560464859, 0.07385183125734329, 0.12860184907913208, 0.19667468965053558, 0.26280805468559265, -0.30214446783065796, 0.32175570726394653, -0.04300596937537193, 1.1316548585891724, -0.2781011462211609, 0.5939571261405945, 0.06346188485622406, 0.2603398561477661, 0.6253481507301331, -0.32046741247177124, 0.19853533804416656, -0.3777294158935547, -0.11131562292575836, 0.16107261180877686, 0.08449279516935349, -0.14748714864253998, 0.06473705917596817, -0.16991791129112244, 0.19658154249191284, -0.1071447879076004, 0.2627719044685364, -0.2470770627260208, 0.36418667435646057, 0.035759054124355316, -0.3776302933692932, -0.261432409286499, -0.03298564255237579, 0.0006419105920940638, 0.02898479253053665, -0.17432332038879395, 0.08738651126623154, 0.06210121512413025, -0.2995586097240448, -0.274801641702652, -0.19610996544361115, -0.08265335112810135, -0.011710813269019127, 0.20529067516326904, -0.3377431631088257, 0.27421078085899353, -0.06745527684688568, 0.26219427585601807, 0.6511215567588806, -0.20988993346691132, 0.09593808650970459, -0.19487836956977844, 0.06248218193650246, -0.02039162442088127, -0.08507296442985535, 0.002480286406353116, 0.07703607529401779, 0.05032403767108917, 0.0032790631521493196, -0.012032304890453815, 0.29063767194747925, -0.3991994261741638, -0.17370198667049408, 0.5477034449577332, -0.47314733266830444, 0.05589565634727478, -0.09999724477529526, -0.04652601480484009, -0.17363852262496948, 0.02610444836318493, 0.1446433961391449, -0.28541043400764465, 0.03654823079705238, 0.03923368453979492, -0.3762056529521942, -0.23543114960193634, 0.22426167130470276, 0.21781371533870697, 0.03367164731025696, 0.6945823431015015, 0.30771511793136597, -0.02961891144514084, -0.07773014903068542, 0.38602665066719055, 0.5473817586898804, -0.4338846206665039, 0.30995795130729675, 0.18258649110794067, -0.04412340000271797, 0.05022584646940231, 0.20611268281936646, 0.2624812722206116, -0.3000701069831848, -0.17965935170650482, -0.07247058302164078, -0.4185909032821655, 0.0641852617263794, -0.043760836124420166, 0.14171528816223145, 0.19785355031490326, 0.4324570298194885, -0.105850949883461, 0.18310275673866272, -0.1512869894504547, 0.09846615791320801, -0.04877464845776558, 0.0988989993929863, -0.2720246911048889, -0.063587985932827, 0.15789790451526642, -0.11146187037229538, -0.05660954490303993, 0.255033403635025, 0.004463049583137035, -0.10425517708063126, -0.23014627397060394, 0.16267886757850647, 0.031687527894973755, -0.03729217126965523, 0.14046016335487366, 0.108892522752285, -0.16708305478096008, -0.24568594992160797, 0.3883180320262909, 0.14429856836795807, 0.13131405413150787, -0.22012042999267578, 0.13693846762180328, -0.07150042057037354, -0.09516016393899918, -0.03186231479048729, 0.20921386778354645, 0.291655957698822, 0.1146189272403717, 0.1534416377544403, 0.2614183723926544, -0.07020364701747894, -0.012367060407996178, 0.22075942158699036, 0.22435666620731354, 0.07912427932024002, 0.06227325275540352, -0.1821437031030655, -0.1318068653345108, -0.014275346882641315, 0.2707616984844208, 0.4881921708583832, -0.2587161362171173, -0.22578105330467224, 0.5012193322181702, 0.11171375215053558, -0.024602478370070457, -0.09118376672267914, -0.11671549826860428, -0.20402352511882782, -0.1240227073431015, 0.3177521228790283, -0.020763859152793884, 0.0352485217154026, -0.11541789025068283, 0.17993034422397614, -0.08691911399364471, 0.17170342803001404, -0.05115291103720665, 0.5434492230415344, -0.04044576734304428, 0.08517491817474365, 0.18273110687732697, 0.022498760372400284, 0.28413891792297363, 0.6910932064056396, 0.1807815432548523, 0.15452204644680023, -0.35040542483329773, 0.12105444073677063, -0.191940575838089, -0.5043106079101562, -0.44537127017974854, 0.13663184642791748, -0.08864261209964752, 0.28012320399284363, -0.14453068375587463, 0.5805770754814148, -0.10936504602432251, -0.2709631323814392, -0.11861441284418106, 0.008829551748931408, -0.2598235011100769, -0.11745865643024445, 0.19252872467041016, -0.1576162874698639, 0.13528382778167725, 0.2644311785697937, -0.09904174506664276, 0.0462280698120594, -0.095378078520298, 0.05629090219736099, -0.09683509171009064, -0.028759194537997246, -0.20808929204940796, 0.17802415788173676, 0.12505550682544708, -0.24289661645889282, 0.20513573288917542, -0.07109575718641281, 0.05254456400871277, -0.20045219361782074, 0.30620676279067993, 0.48478034138679504, 0.4154983162879944, -0.2384965419769287, 0.19547569751739502, 0.12755660712718964, 0.06699169427156448, -0.06420513242483139, 0.11362721025943756, 0.3247193992137909, 0.1053200289607048, 0.03405294194817543, -0.04335760325193405, -0.14348794519901276, -0.15367375314235687, 0.20623961091041565, 0.07566849887371063, -0.16363009810447693, 0.19700965285301208, -0.10184531658887863, -0.14985765516757965, -0.2699946463108063, 0.026095231994986534, -0.7529441118240356, 0.5340991020202637, 0.4614875614643097, -0.0610114149749279, 0.1280631422996521, -0.08698268979787827, 0.003448647912591696, -0.11105825006961823, 0.4745293855667114, 0.4845033288002014, -0.002414199523627758, -0.410285085439682, -0.04072212055325508, -0.30338042974472046, 0.29303717613220215, -0.36885693669319153, 0.27444761991500854, -0.17348319292068481, -0.08226026594638824, 0.05684289336204529, -0.11731605976819992, -0.09123576432466507, -0.19001992046833038, -0.7031119465827942, 0.13166964054107666, -0.1559225469827652, -0.19537049531936646, -0.23844169080257416, 0.03132396936416626, -0.056543201208114624, -0.24295520782470703, 0.43892207741737366, 0.033359237015247345, -0.12271944433450699, -0.005575118120759726, 0.2359006553888321, -0.2267877161502838, 0.10968507826328278, 0.241694837808609, 0.28184497356414795, 0.02936200238764286, 0.055632345378398895, -0.19805818796157837, -0.29262617230415344, 0.09762270748615265, -0.11604094505310059, 0.12692205607891083, 0.24777381122112274, 0.28430062532424927, -0.25598397850990295, -0.28099316358566284, -0.43146637082099915, 0.16405023634433746, 0.3631724417209625, -0.13042329251766205, -0.26109641790390015, 0.12254569679498672, -0.10379698127508163, -0.015727151185274124, 0.0005373573512770236, 0.5165203213691711, -0.10232040286064148, -0.05670124292373657, -0.36439502239227295, -0.26623693108558655, 0.49034130573272705, -0.3295801877975464, -0.42111653089523315, -0.23799286782741547, 0.051478829234838486, 0.30203521251678467, -0.25522419810295105, -0.7636166214942932, 0.08470593392848969, 0.15405519306659698, 0.014821864664554596, -0.500556230545044, 0.13221216201782227, -0.05908208340406418, -0.15006060898303986, -0.2053280621767044, 0.6773771643638611, 0.07866935431957245, -0.20401117205619812, 0.39915931224823, -0.2519075870513916 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
> Hey guys, > > I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. > > I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? > > I've used the following CMD: > `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` It's actually because of the parameter 'preprocessing_num_worker' when using TPU. I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ). So I think that's maybe where the problem came from. Is there any possibility that all of the cores share the same preprocess dataset? @sgugger @RammMaschine
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
273
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` > Hey guys, > > I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. > > I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? > > I've used the following CMD: > `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` It's actually because of the parameter 'preprocessing_num_worker' when using TPU. I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ). So I think that's maybe where the problem came from. Is there any possibility that all of the cores share the same preprocess dataset? @sgugger @RammMaschine
[ -0.12765197455883026, -0.42183688282966614, 0.10686740279197693, 0.2943582832813263, 0.6427574157714844, -0.1283717304468155, 0.3398815393447876, 0.40121471881866455, -0.24704447388648987, 0.15496258437633514, -0.03813420608639717, -0.12182960659265518, -0.2987709045410156, 0.2704773247241974, 0.1444564014673233, -0.08485866338014603, 0.08005982637405396, 0.15673458576202393, -0.04323248937726021, -0.362417995929718, 0.0178010705858469, 0.01192683819681406, 0.2649845778942108, 0.2487955093383789, -0.5399378538131714, 0.11643664538860321, -0.08904024958610535, 0.08788853883743286, -0.4778912663459778, -0.04612021520733833, 0.038847893476486206, -0.37018632888793945, 0.16013853251934052, 0.5560237765312195, -0.00012619771587196738, -0.05793146416544914, 0.19799953699111938, -0.1043422743678093, 0.04303824529051781, 0.19061356782913208, 0.040133971720933914, 0.016447672620415688, -0.15229366719722748, 0.11741705983877182, 0.16336995363235474, -0.07498133927583694, -0.05051479488611221, -0.03680317848920822, 0.32130783796310425, 0.23684534430503845, 0.08800937235355377, 0.019117018207907677, 0.05100840702652931, 0.0527162104845047, 0.24435067176818848, 0.2661503851413727, -0.03266378492116928, 0.04101201146841049, 0.11234333366155624, -0.05852076783776283, 0.03811527043581009, 0.16591055691242218, 0.1789548546075821, -0.07142703235149384, 0.3485533595085144, 0.2815018594264984, -0.06265929341316223, -0.43815359473228455, 0.17571106553077698, 0.46497786045074463, -0.0341457799077034, -0.34905731678009033, -0.3314686715602875, -0.3132897913455963, 0.25590357184410095, -0.5074101686477661, 0.0019555597100406885, 0.3379592001438141, -0.0914495438337326, 0.07864706218242645, -0.26321014761924744, -0.4374258816242218, -0.24962107837200165, -0.11104794591665268, -0.2281230241060257, -0.015974650159478188, -0.23389005661010742, -0.09319493919610977, -0.039667759090662, -0.05891398712992668, -0.41653206944465637, -0.07057096064090729, -0.0816853940486908, 0.22012130916118622, -0.03197341784834862, -0.26546749472618103, -0.10904940217733383, -0.22945120930671692, 0.24098864197731018, -0.5617983341217041, -0.07861412316560745, -0.4566044807434082, -0.2560945749282837, -0.34591174125671387, 0.35465532541275024, 0.4483875334262848, -0.4579654037952423, 0.1858583688735962, 0.14453564584255219, 0.08264569193124771, -0.21176652610301971, -0.0605403333902359, -0.13897672295570374, 0.12248388677835464, 0.010263200849294662, -0.46551647782325745, 0.05920027941465378, -0.2968013882637024, -0.13978296518325806, 0.3230869472026825, -0.35380908846855164, 0.20237143337726593, 0.04999476671218872, 0.3438812494277954, -0.10232724249362946, 0.04192553833127022, 0.05151296406984329, 0.0887671411037445, -0.4091448485851288, -0.015163802541792393, -0.11641654372215271, 0.11811640858650208, -0.1676010936498642, 0.20578256249427795, -0.05782662704586983, -0.0049617053009569645, 0.04983184486627579, 0.008466253988444805, 0.2533486485481262, -0.04281364381313324, 0.08282322436571121, -0.24643021821975708, 0.21760129928588867, 0.15047763288021088, -0.16833189129829407, 0.4425065517425537, -0.03804953768849373, 0.12250111997127533, -0.0019265752052888274, 0.12407118827104568, -0.20612464845180511, -0.46670734882354736, -0.08318792283535004, 0.11856365203857422, -0.05538203567266464, 0.28088968992233276, -0.03173406794667244, 0.3154489994049072, 0.45043009519577026, -0.00023694838455412537, 0.01709754578769207, -0.17764973640441895, -0.23505668342113495, -0.026318522170186043, 0.3950243592262268, 0.3266686201095581, -0.5285281538963318, -0.14838917553424835, -0.24073189496994019, 0.27789437770843506, 0.4014599025249481, 0.6155526041984558, -0.007139240857213736, 0.5933501124382019, -0.26615601778030396, 0.127445787191391, -0.3081234097480774, 0.27419763803482056, -0.37720412015914917, 0.3744083642959595, -0.0902811661362648, -0.09579335898160934, 0.08434884250164032, -0.04701525345444679, 0.07162556797266006, 0.07653530687093735, 0.3944893181324005, 0.0010770695516839623, -0.14265814423561096, -0.005901162046939135, -0.3934575915336609, -0.3725038170814514, -0.32022738456726074, -0.029391758143901825, 0.12249662727117538, -0.05891328305006027, -0.2856299877166748, 0.5653197765350342, 0.1582311987876892, -0.1308509111404419, 0.19142143428325653, 0.29929906129837036, 0.12775252759456635, -0.08982790261507034, -0.005090613849461079, 0.029559407383203506, -0.08247149735689163, 0.03318758308887482, -0.41747191548347473, 0.1905737966299057, 0.12402231246232986, -0.2531058192253113, -0.04473155364394188, -0.06879040598869324, 0.028263691812753677, -0.2317640483379364, -0.019275885075330734, -0.15465502440929413, -0.04460078477859497, 0.01543040294200182, -0.0248272605240345, -0.12528987228870392, -0.07365352660417557, 0.010647228918969631, -0.509687602519989, -0.024176128208637238, 0.0002797653141897172, -0.1650915890932083, -0.03974493592977524, 0.36768507957458496, -0.14054735004901886, 0.05624821409583092, -0.0805538147687912, 0.13065005838871002, 0.12841619551181793, 0.07485965639352798, -0.06344863772392273, 0.14557433128356934, 0.3039914667606354, 0.1224539577960968, 0.11354479193687439, 0.2218717634677887, 0.11840373277664185, -0.07869243621826172, -0.19110429286956787, 0.2072175294160843, 0.24886950850486755, 0.08002518117427826, 0.2820247411727905, -0.221449613571167, -0.08948288857936859, 0.09871497005224228, -0.05328895151615143, -0.29985737800598145, 0.25179344415664673, 0.12368389964103699, 0.2842863202095032, 0.1805294007062912, -0.18565478920936584, -0.13702183961868286, 0.32394370436668396, -0.19516758620738983, -0.03961459919810295, 0.4245699346065521, -0.30881267786026, -0.07585908472537994, -0.08753340691328049, -0.274056613445282, 0.31538593769073486, 0.11011476814746857, 0.13389602303504944, 0.1187683567404747, 0.1388588547706604, -0.09747042506933212, 0.1322103589773178, 0.24983178079128265, -0.126237690448761, 0.1747724711894989, 0.23923851549625397, -0.07983440905809402, -0.17433945834636688, 0.1291176676750183, -0.19837529957294464, 0.3336583375930786, -0.40301713347435, 0.31301453709602356, 0.12049855291843414, 0.11270637810230255, -0.4343593418598175, -0.29175812005996704, -0.15307161211967468, 0.03251379728317261, 0.15911006927490234, -0.23825252056121826, -0.07506230473518372, -0.1352488100528717, 0.34651732444763184, 0.1934896558523178, 0.1789175271987915, 0.26437968015670776, 0.05685535818338394, 0.16043075919151306, -0.3675191104412079, 0.014615151099860668, 0.12297769635915756, -0.12049231678247452, 0.10667901486158371, 0.09525667876005173, -0.29575565457344055, -0.035000402480363846, -0.25906461477279663, 0.19338908791542053, -0.21138176321983337, 0.2909788489341736, 0.15162472426891327, 0.11462093889713287, -0.36817803978919983, 0.0680626928806305, 0.08829932659864426, -0.03228628635406494, -0.1498589664697647, -0.04419362172484398, -0.14867502450942993, 0.2281104326248169, -0.08747239410877228, -0.30009984970092773, -0.09413706511259079, -0.03129095211625099, 0.4148481488227844, 0.08378379791975021, -0.010025988332927227, 0.21772347390651703, 0.178660050034523, 0.12722618877887726, 0.0197734534740448, -0.15970686078071594, -0.035467542707920074, -0.19114084541797638, 0.19124802947044373, -0.014475347474217415, -0.25731131434440613, -0.3347412347793579, -0.11446011811494827, 0.10400871187448502, -0.201048344373703, -0.5380892157554626, 0.03518560901284218, -0.4793241024017334, -0.2589472234249115, -0.2166309803724289, 0.3814692199230194, 0.03449351340532303, -0.16141916811466217, 0.04667641222476959, 0.07471160590648651, 0.14083951711654663, -0.005469189025461674, -0.23776189982891083, 0.20272976160049438, -0.4108903110027313, 0.32872873544692993, -0.18221083283424377, 0.8339397311210632, 0.34651270508766174, -0.055510539561510086, -0.06442634016275406, -0.08095022290945053, 0.40206393599510193, -0.4588722288608551, -0.1653173714876175, 0.3064305782318115, -0.12174148857593536, -0.3759487271308899, 0.2950253486633301, 0.15795890986919403, 0.4908566176891327, 0.16500580310821533, 0.11033329367637634, 0.24989691376686096, -0.32438424229621887, 0.34504538774490356, 0.11858697980642319, 0.12945108115673065, -0.009000521153211594, 0.07198487222194672, 0.0478033646941185, -0.3362254798412323, 0.05437327176332474, -0.04766927659511566, 0.23885612189769745, 0.0033362426329404116, 0.1545095592737198, -0.330319344997406, -0.6893529295921326, -0.019805045798420906, 0.13923130929470062, -0.02485199086368084, 0.14534896612167358, -0.13204850256443024, 0.21013596653938293, 0.051663096994161606, 0.7545104026794434, 0.2475433498620987, -0.09894239902496338, 0.023930149152874947, -0.05054502561688423, -0.1498231291770935, 0.012249848805367947, -0.37875235080718994, -0.027988146990537643, 0.5659742951393127, 0.535694420337677, -0.3186970353126526, -0.0022770247887820005, 0.16696707904338837, 0.36245399713516235, -0.11114080995321274, -0.009517972357571125, -0.497368723154068, -0.027032291516661644, -0.18537643551826477, 0.11722136288881302, 0.05611510947346687, 0.0575091578066349, -0.1731966733932495, -0.14514072239398956, 0.08876577764749527, -0.06957697868347168, 0.31302881240844727, 0.2091911882162094, 0.32912182807922363, -0.2285306304693222, 0.3800685405731201, -0.017980027943849564, 0.12455947697162628, 0.38653290271759033, 0.32264217734336853, -0.18847525119781494, -0.25840145349502563, 0.1959349811077118, -0.20279957354068756, 0.3252987265586853, 0.47459113597869873, -0.01838844083249569, 0.1406537890434265, 0.1705862134695053, 0.4246029257774353, -0.39473992586135864, 0.48772338032722473, 0.552847683429718, -0.05661642551422119, -0.5213476419448853, -0.27789342403411865, 0.48802119493484497, 0.1094362735748291, 0.13180066645145416, 0.2507796287536621, 0.21391257643699646, -0.27606821060180664, 0.2151191234588623, -0.06300932914018631, 1.0572494268417358, -0.1979903131723404, 0.5809540152549744, 0.13325992226600647, 0.24431537091732025, 0.5600256323814392, -0.16340851783752441, 0.18607135117053986, -0.371761292219162, -0.06836634874343872, 0.17983652651309967, 0.023399462923407555, -0.1514529138803482, 0.07235416769981384, -0.20038367807865143, 0.17060896754264832, -0.1733764261007309, 0.24528485536575317, -0.20342478156089783, 0.34493640065193176, 0.10532496869564056, -0.29194149374961853, -0.2884557247161865, -0.05565907433629036, 0.03997824713587761, 0.07363500446081161, -0.13591180741786957, 0.010236823000013828, -0.0451810285449028, -0.2965849041938782, -0.22857356071472168, -0.151457279920578, -0.06160682812333107, -0.01802191324532032, 0.1356380581855774, -0.4155593514442444, 0.2852841913700104, -0.006104288622736931, 0.20187748968601227, 0.6037322878837585, -0.25524264574050903, 0.08157087862491608, -0.16471092402935028, 0.05550002306699753, -0.06094786897301674, -0.0629587322473526, 0.01835702359676361, 0.03955351188778877, -0.011248323135077953, 0.008124429732561111, -0.031151188537478447, 0.33030858635902405, -0.3478432893753052, -0.14184865355491638, 0.4647273123264313, -0.4978811740875244, -0.007221891079097986, -0.08025786280632019, -0.11551251262426376, -0.12495709955692291, 0.0196051225066185, 0.1544741988182068, -0.31144949793815613, 0.04756291210651398, 0.1161859929561615, -0.46667760610580444, -0.252761572599411, 0.20537146925926208, 0.31277889013290405, 0.11112809926271439, 0.7269282937049866, 0.23976078629493713, -0.0011832350865006447, -0.06012384220957756, 0.3727795481681824, 0.5438685417175293, -0.4371441900730133, 0.3184966444969177, 0.26219603419303894, 0.04887010529637337, 0.029110342264175415, 0.16723336279392242, 0.20235410332679749, -0.23200854659080505, -0.19165265560150146, -0.01157648116350174, -0.3460535705089569, 0.028033189475536346, -0.07239644229412079, 0.1560410112142563, 0.11692529916763306, 0.4359508454799652, 0.03574284538626671, 0.1919005662202835, -0.141484797000885, 0.07000558078289032, -0.0046828812919557095, 0.021400293335318565, -0.2310766726732254, -0.0026914256159216166, 0.15143349766731262, -0.0814434140920639, -0.06478793174028397, 0.166702538728714, 0.0020320413168519735, -0.09801886230707169, -0.22853796184062958, 0.15361428260803223, 0.03983645513653755, -0.038581814616918564, 0.16803696751594543, 0.14964163303375244, -0.19111263751983643, -0.2004622220993042, 0.3976665437221527, 0.14277617633342743, 0.16909216344356537, -0.14834949374198914, 0.14702419936656952, -0.11660221964120865, -0.09888189285993576, -0.05954587087035179, 0.18671363592147827, 0.3183187246322632, 0.06113189086318016, 0.13013388216495514, 0.30523884296417236, -0.07367119193077087, -0.027299880981445312, 0.12900468707084656, 0.1368478685617447, 0.11285552382469177, 0.053834039717912674, -0.25439202785491943, -0.004885843489319086, -0.0355646088719368, 0.2974032759666443, 0.4269481301307678, -0.23302927613258362, -0.14788639545440674, 0.367739200592041, 0.09279420226812363, -0.07726503908634186, -0.021180087700486183, -0.1828501671552658, -0.21824219822883606, -0.12030524760484695, 0.3224656283855438, -0.04300267994403839, 0.0732133612036705, -0.1927623748779297, 0.12278863042593002, -0.19779333472251892, 0.1827685832977295, -0.01051065418869257, 0.6458739638328552, -0.02543998323380947, 0.1201389953494072, 0.24805855751037598, 0.08986217528581619, 0.21716737747192383, 0.6840229034423828, 0.21063080430030823, 0.15595324337482452, -0.41274866461753845, 0.04597782716155052, -0.14763933420181274, -0.5137032270431519, -0.47667551040649414, 0.18075956404209137, -0.1385585069656372, 0.25104451179504395, -0.14363205432891846, 0.5851088166236877, -0.09250212460756302, -0.22861307859420776, -0.15870878100395203, -0.02250175178050995, -0.22477975487709045, -0.12098637223243713, 0.1957593709230423, -0.17298418283462524, 0.17100383341312408, 0.2518327534198761, -0.08500142395496368, 0.10183724015951157, -0.015004074200987816, 0.06564737856388092, -0.09195984899997711, 0.062073007225990295, -0.12430138885974884, 0.15268222987651825, 0.0915936753153801, -0.25558191537857056, 0.20834539830684662, -0.03742325305938721, 0.06236487999558449, -0.1423099935054779, 0.30473804473876953, 0.5044116973876953, 0.40202733874320984, -0.1960880011320114, 0.19831468164920807, 0.12141727656126022, 0.03203767165541649, -0.07649588584899902, 0.16601386666297913, 0.3422461748123169, 0.03078697808086872, 0.057471271604299545, -0.035773541778326035, -0.13747797906398773, -0.010741636157035828, 0.207542285323143, 0.15935416519641876, -0.2030368596315384, 0.30926913022994995, -0.14450667798519135, -0.13663241267204285, -0.33248022198677063, 0.027777519077062607, -0.7808365225791931, 0.6018406748771667, 0.39399269223213196, -0.0382942296564579, 0.07517077773809433, -0.05758415162563324, -0.00581730343401432, -0.1773793250322342, 0.5535492897033691, 0.4052785038948059, 0.052797697484493256, -0.4022139310836792, 0.0409855991601944, -0.26955777406692505, 0.28789231181144714, -0.41127336025238037, 0.28157851099967957, -0.2419726848602295, -0.019810732454061508, -0.006252920720726252, -0.12689755856990814, -0.03191082924604416, -0.27954715490341187, -0.7357214689254761, 0.1375218778848648, -0.11831527203321457, -0.24833500385284424, -0.2567407190799713, 0.08276018500328064, -0.06333073228597641, -0.2646413743495941, 0.39992275834083557, -0.03840303048491478, -0.11065144836902618, 0.031980790197849274, 0.1788470298051834, -0.23643870651721954, 0.1792985051870346, 0.23170910775661469, 0.31243181228637695, 0.13296917080879211, -0.010536693036556244, -0.22968068718910217, -0.29056161642074585, 0.09333290904760361, -0.11130186915397644, 0.19918712973594666, 0.2345944494009018, 0.31899330019950867, -0.21726936101913452, -0.33258387446403503, -0.4254435896873474, 0.23879243433475494, 0.3529757559299469, -0.14538735151290894, -0.2179756462574005, 0.09195418655872345, -0.07556190341711044, -0.07706093043088913, 0.045381173491477966, 0.46682509779930115, -0.1706964373588562, -0.10043150931596756, -0.3269619941711426, -0.25579261779785156, 0.5335488319396973, -0.34895166754722595, -0.37664422392845154, -0.2509163022041321, 0.06261621415615082, 0.22685638070106506, -0.31444016098976135, -0.7230027914047241, 0.19282563030719757, 0.20914964377880096, -0.030504276975989342, -0.4149525463581085, 0.09812885522842407, -0.11217822879552841, -0.12361616641283035, -0.1959388256072998, 0.6790006756782532, 0.053006209433078766, -0.20233580470085144, 0.3828848898410797, -0.27437013387680054 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
34
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
[ -0.2338344156742096, -0.364271342754364, 0.10987386852502823, 0.32716748118400574, 0.5802887678146362, -0.12271138280630112, 0.29484906792640686, 0.40527763962745667, -0.18221302330493927, 0.17751622200012207, -0.048290956765413284, -0.12470754235982895, -0.33843594789505005, 0.22990404069423676, 0.09760384261608124, -0.06416908651590347, 0.1237758994102478, 0.15337181091308594, -0.10449333488941193, -0.23815876245498657, 0.01907588541507721, 0.044405531138181686, 0.24072688817977905, 0.24856612086296082, -0.550933837890625, 0.09611406922340393, -0.053044259548187256, 0.06571183353662491, -0.46004509925842285, -0.06493498384952545, 0.09303636848926544, -0.34680259227752686, 0.21847783029079437, 0.5662022829055786, -0.00012736076314467937, -0.04247851297259331, 0.1586664468050003, -0.03712598234415054, -0.036268673837184906, 0.15158849954605103, 0.12113220244646072, -0.05922449007630348, -0.156009703874588, 0.10394015908241272, 0.26077988743782043, -0.08814173191785812, -0.03481452167034149, -0.06934111565351486, 0.3328700065612793, 0.25467950105667114, 0.08414526283740997, 0.16870729625225067, 0.05308578535914421, 0.02081511914730072, 0.22352099418640137, 0.2778955101966858, -0.03920445963740349, 0.023658525198698044, 0.1884797364473343, -0.1935076117515564, -0.03420776128768921, 0.22108159959316254, 0.11080825328826904, -0.11288011819124222, 0.3315664827823639, 0.19343172013759613, -0.057335738092660904, -0.3944154381752014, 0.24101141095161438, 0.3753354251384735, 0.04061022028326988, -0.4069214165210724, -0.25977838039398193, -0.4071696400642395, 0.21539638936519623, -0.46019721031188965, 0.07862648367881775, 0.15656492114067078, -0.17457778751850128, 0.08693204820156097, -0.28224122524261475, -0.4332435429096222, -0.2624082863330841, -0.06441868841648102, -0.19523410499095917, -0.020498333498835564, -0.2531405985355377, -0.08779969811439514, 0.03168528154492378, -0.05133581906557083, -0.3014712333679199, 0.001802783110179007, -0.013100311160087585, 0.17729970812797546, -0.09295767545700073, -0.2810674011707306, -0.08400865644216537, -0.31322354078292847, 0.27879202365875244, -0.5234857201576233, -0.1843102127313614, -0.4352830946445465, -0.20175540447235107, -0.3546651303768158, 0.41705307364463806, 0.4720199704170227, -0.39601701498031616, 0.1702488213777542, 0.1665724366903305, 0.05489525943994522, -0.1536717414855957, -0.0758734941482544, -0.15475095808506012, 0.07043647766113281, 0.07072265446186066, -0.4381200671195984, 0.12996143102645874, -0.2795090675354004, -0.17100155353546143, 0.38962501287460327, -0.2968336045742035, 0.20341162383556366, 0.02441922388970852, 0.34561458230018616, -0.0571393147110939, 0.15042611956596375, 0.07535757124423981, 0.029503146186470985, -0.43570271134376526, -0.014029711484909058, -0.08743398636579514, 0.06906121969223022, -0.18715554475784302, 0.1723109483718872, -0.004426171537488699, 0.044465214014053345, 0.09751654416322708, -0.030993156135082245, 0.2879877984523773, -0.0614808015525341, 0.06585586816072464, -0.2731790244579315, 0.10983646661043167, 0.19492022693157196, -0.16692350804805756, 0.4897103011608124, -0.0056193009950220585, 0.04675760865211487, 0.004175578709691763, 0.08907178789377213, -0.21380652487277985, -0.5087090730667114, -0.13343729078769684, 0.10733934491872787, -0.022537831217050552, 0.27033188939094543, -0.11418686807155609, 0.37025585770606995, 0.4396829307079315, -0.04403768479824066, -0.02263573929667473, -0.19449388980865479, -0.22295670211315155, -0.012610945850610733, 0.37541842460632324, 0.4236912429332733, -0.5573839545249939, -0.13744793832302094, -0.2831019461154938, 0.27604833245277405, 0.3170410394668579, 0.6052900552749634, -0.0366571880877018, 0.5938894748687744, -0.268099844455719, 0.1369594931602478, -0.2820628881454468, 0.2830561101436615, -0.4317549765110016, 0.36315324902534485, -0.05580196529626846, -0.08128394931554794, 0.06759403645992279, -0.05093079432845116, 0.16017216444015503, 0.04949535056948662, 0.4206688404083252, 0.010539148934185505, -0.19102373719215393, 0.02782980352640152, -0.3491930365562439, -0.3933975100517273, -0.3029136061668396, 0.039149172604084015, 0.20747487246990204, -0.14268054068088531, -0.24288564920425415, 0.5842377543449402, 0.14932341873645782, -0.11760098487138748, 0.1443621665239334, 0.4034584164619446, 0.10615108907222748, -0.04899356886744499, 0.030989887192845345, -0.15463761985301971, -0.15219572186470032, 0.017760515213012695, -0.2466849982738495, 0.18081016838550568, 0.09171146899461746, -0.23610664904117584, -0.09856641292572021, -0.01834709569811821, 0.07846949994564056, -0.18599006533622742, -0.002501938957720995, -0.1868598759174347, -0.13412326574325562, 0.056263409554958344, -0.05349487066268921, -0.08289032429456711, -0.11116946488618851, 0.05576920881867409, -0.48246434330940247, -0.021635321900248528, -0.043836191296577454, -0.18780678510665894, -0.05888580158352852, 0.304709792137146, -0.1567818522453308, 0.049646392464637756, -0.10764813423156738, 0.2003510594367981, 0.06552443653345108, 0.09014609456062317, -0.010425839573144913, 0.18493162095546722, 0.2647392153739929, 0.09367521852254868, 0.13310939073562622, 0.1993815302848816, 0.08280232548713684, -0.06784345209598541, -0.14168061316013336, 0.1253061592578888, 0.1942504495382309, 0.13099123537540436, 0.23536860942840576, -0.2387402504682541, -0.09690095484256744, 0.15268193185329437, -0.006746406201273203, -0.2505143880844116, 0.28710177540779114, 0.04823043942451477, 0.255038321018219, 0.1577136218547821, -0.1824491024017334, -0.09407196193933487, 0.3434642553329468, -0.1666008085012436, 0.05573602393269539, 0.42614391446113586, -0.3578203320503235, -0.09155204892158508, -0.04630734771490097, -0.18885904550552368, 0.37290677428245544, 0.08033167570829391, 0.13410021364688873, 0.10677935183048248, 0.06447166949510574, -0.06726130098104477, 0.14993058145046234, 0.28745123744010925, -0.1175786703824997, 0.17289133369922638, 0.1884489208459854, -0.029573887586593628, -0.2551504075527191, 0.054702211171388626, -0.21725161373615265, 0.3717319071292877, -0.38483092188835144, 0.33060988783836365, 0.09466470032930374, 0.03272593021392822, -0.4031647741794586, -0.20521531999111176, -0.17555435001850128, 0.012752283364534378, 0.16424939036369324, -0.1578892469406128, -0.08293084800243378, -0.09995461255311966, 0.39123809337615967, 0.20137521624565125, 0.19629909098148346, 0.31086912751197815, 0.03309785574674606, 0.13830173015594482, -0.3434259295463562, -0.004555911291390657, 0.16630420088768005, -0.1632995456457138, 0.13639049232006073, 0.11262670159339905, -0.2667166590690613, -0.06242663785815239, -0.24029764533042908, 0.1260366290807724, -0.1923036277294159, 0.27839621901512146, 0.21132677793502808, 0.22930505871772766, -0.3828122317790985, 0.09264994412660599, 0.04352359101176262, -0.019659504294395447, -0.1070595234632492, -0.04211024194955826, -0.1186995804309845, 0.13879422843456268, -0.09324358403682709, -0.3279591202735901, -0.1222924143075943, -0.05318237096071243, 0.36853140592575073, -0.00018625982920639217, -0.008169250562787056, 0.23165886104106903, 0.2695370018482208, 0.13289451599121094, 0.01961423084139824, -0.15548717975616455, 0.008381873369216919, -0.18464791774749756, 0.18035876750946045, 0.04609733074903488, -0.18812601268291473, -0.28214430809020996, 0.0419534370303154, -0.0011362630175426602, -0.17772315442562103, -0.5618311762809753, 0.018451381474733353, -0.4612652659416199, -0.2686639726161957, -0.22510497272014618, 0.4086783826351166, 0.10598669201135635, -0.05961739644408226, 0.059524212032556534, 0.08672080188989639, 0.07464098185300827, -0.09340373426675797, -0.21417255699634552, 0.22364839911460876, -0.4218241572380066, 0.41284483671188354, -0.037665415555238724, 0.8130552172660828, 0.3064291179180145, -0.0688137486577034, -0.006847424898296595, -0.008249563165009022, 0.4584785997867584, -0.4559732973575592, -0.22102783620357513, 0.2777841091156006, -0.14318305253982544, -0.39807283878326416, 0.27017873525619507, 0.1300344616174698, 0.45509129762649536, 0.151554673910141, 0.047805484384298325, 0.2745591104030609, -0.3100081980228424, 0.35273826122283936, 0.11914681643247604, 0.17237859964370728, 0.0011765409726649523, 0.09655357897281647, 0.03634127229452133, -0.29528892040252686, 0.04452028498053551, -0.01820238120853901, 0.16531507670879364, 0.014882504008710384, 0.08540944755077362, -0.3076312839984894, -0.741674542427063, -0.03371430188417435, 0.06533050537109375, 0.01612045243382454, 0.13235396146774292, -0.08564650267362595, 0.18223026394844055, 0.05008644238114357, 0.784026563167572, 0.2417464554309845, -0.14695870876312256, -0.06311940401792526, -0.009090995416045189, -0.22430336475372314, 0.05024094507098198, -0.3604026436805725, -0.007772834971547127, 0.5267230272293091, 0.63596510887146, -0.33792513608932495, -0.04497074708342552, 0.13721424341201782, 0.3818016052246094, -0.10958177596330643, 0.0351179875433445, -0.41706857085227966, -0.07145777344703674, -0.22453048825263977, 0.17310962080955505, 0.08257224410772324, 0.0398784764111042, -0.11766589432954788, -0.10584556311368942, 0.11361696571111679, -0.06077497452497482, 0.3254376947879791, 0.2567201256752014, 0.31784677505493164, -0.3010827302932739, 0.34174269437789917, -0.046281758695840836, 0.1264616698026657, 0.3970066010951996, 0.27151960134506226, -0.25764843821525574, -0.2769014537334442, 0.2349773645401001, -0.10838617384433746, 0.30798110365867615, 0.5227614045143127, -0.06462839990854263, 0.13112707436084747, 0.1553807109594345, 0.4302626848220825, -0.41253572702407837, 0.5151015520095825, 0.5527095794677734, 0.017797570675611496, -0.476574182510376, -0.24693560600280762, 0.43600931763648987, 0.10928352177143097, 0.12752920389175415, 0.21052616834640503, 0.2606099545955658, -0.30308252573013306, 0.27011626958847046, -0.09461906552314758, 1.085961937904358, -0.24211496114730835, 0.5881165266036987, 0.12128191441297531, 0.23719516396522522, 0.5970590114593506, -0.2419915646314621, 0.15632548928260803, -0.33798742294311523, -0.1313246786594391, 0.15050733089447021, 0.05532090365886688, -0.13177728652954102, 0.039905112236738205, -0.16741754114627838, 0.22309811413288116, -0.08007573336362839, 0.19450709223747253, -0.21922026574611664, 0.3541299104690552, 0.050517622381448746, -0.3207404613494873, -0.2754775583744049, -0.03204716742038727, -0.030305005609989166, 0.05071527138352394, -0.16878829896450043, 0.05879555642604828, 0.04056616500020027, -0.2991410493850708, -0.3170067071914673, -0.19163130223751068, -0.06585218012332916, 0.0150370504707098, 0.14939451217651367, -0.3508221209049225, 0.29593896865844727, 0.051183152943849564, 0.2471514642238617, 0.6219084858894348, -0.2682350277900696, 0.05888386070728302, -0.2696530222892761, 0.04399709776043892, -0.06327753514051437, -0.04633353278040886, -0.008113671094179153, 0.06764543801546097, 0.0005953377694822848, 0.00854702852666378, -0.035282284021377563, 0.28030797839164734, -0.34836483001708984, -0.16164369881153107, 0.4436455965042114, -0.4676155745983124, -0.02344289794564247, -0.1549752950668335, -0.11210908740758896, -0.15179692208766937, 0.023320136591792107, 0.17970803380012512, -0.2624882757663727, 0.09788019955158234, 0.011711690574884415, -0.38913601636886597, -0.23711206018924713, 0.2602461874485016, 0.23947018384933472, 0.09086458384990692, 0.6803627610206604, 0.30693531036376953, -0.04329206421971321, -0.07546345144510269, 0.3743826746940613, 0.47306618094444275, -0.4497232437133789, 0.31705260276794434, 0.186017245054245, -0.034631144255399704, 0.033411573618650436, 0.12536877393722534, 0.24583439528942108, -0.3215653896331787, -0.19628404080867767, -0.04284980520606041, -0.4025849997997284, 0.09233315289020538, -0.04289219155907631, 0.15593096613883972, 0.17858536541461945, 0.29704123735427856, -0.013736440800130367, 0.14017976820468903, -0.1373620182275772, 0.12333331257104874, -0.02310596965253353, 0.06876050680875778, -0.19335795938968658, -0.0587351955473423, 0.22722449898719788, -0.16368608176708221, -0.06838947534561157, 0.2042645514011383, 0.014269021339714527, -0.10045218467712402, -0.1986793726682663, 0.149577334523201, 0.002741331933066249, -0.023298604413866997, 0.13062626123428345, 0.05382288247346878, -0.15016590058803558, -0.24430648982524872, 0.42138880491256714, 0.1724330633878708, 0.14141374826431274, -0.13926295936107635, 0.10989746451377869, -0.10065178573131561, -0.06340223550796509, -0.014084664173424244, 0.14695461094379425, 0.260525107383728, 0.05408589169383049, 0.15882785618305206, 0.31577011942863464, -0.08776174485683441, -0.10940881073474884, 0.19934546947479248, 0.1971246302127838, 0.10858432203531265, 0.09518801420927048, -0.26547959446907043, -0.08092644065618515, 0.037871964275836945, 0.2864850163459778, 0.4713859558105469, -0.28420451283454895, -0.17165294289588928, 0.3851943612098694, 0.10270045697689056, -0.047753166407346725, -0.11896449327468872, -0.13358421623706818, -0.20946231484413147, -0.13955099880695343, 0.2914470434188843, -0.052671175450086594, 0.020577505230903625, -0.11722217500209808, 0.18525461852550507, -0.10636571794748306, 0.15240317583084106, -0.020612727850675583, 0.6539318561553955, 0.015220966190099716, 0.06705295294523239, 0.17864760756492615, 0.06885910034179688, 0.2759260833263397, 0.8238025903701782, 0.19720764458179474, 0.16809512674808502, -0.36837702989578247, 0.07338427752256393, -0.21121621131896973, -0.49439477920532227, -0.4449978470802307, 0.1355961710214615, -0.14875277876853943, 0.28098833560943604, -0.16614319384098053, 0.5747609734535217, -0.1352187544107437, -0.254016250371933, -0.14531418681144714, -0.07836544513702393, -0.27354615926742554, -0.14236386120319366, 0.2345365285873413, -0.14494776725769043, 0.19493229687213898, 0.2462964802980423, -0.12182316929101944, 0.01050384808331728, -0.022357137873768806, 0.0733819380402565, -0.15238545835018158, 0.028517451137304306, -0.16889561712741852, 0.18493615090847015, 0.07989425957202911, -0.22073400020599365, 0.21220336854457855, -0.05992776155471802, 0.0100173931568861, -0.24954377114772797, 0.33577078580856323, 0.49797114729881287, 0.3848269283771515, -0.2373093217611313, 0.22710220515727997, 0.1799071729183197, 0.016918683424592018, -0.08358068764209747, 0.08126088231801987, 0.27905890345573425, 0.1057361513376236, 0.03131875395774841, -0.038733404129743576, -0.13931767642498016, -0.06495490670204163, 0.17809076607227325, 0.12972605228424072, -0.2238079160451889, 0.20880025625228882, -0.17843838036060333, -0.17542044818401337, -0.24956639111042023, 0.028815463185310364, -0.7493739724159241, 0.5085183382034302, 0.5131709575653076, -0.031396444886922836, 0.11460140347480774, -0.07970681041479111, -0.006854135077446699, -0.15094193816184998, 0.5040622353553772, 0.464060515165329, -0.010311145335435867, -0.39560508728027344, 0.02115076407790184, -0.3162696361541748, 0.25241386890411377, -0.37454038858413696, 0.31902945041656494, -0.14068084955215454, -0.08349283784627914, -0.008291270583868027, -0.14625775814056396, -0.01148303970694542, -0.24261927604675293, -0.6652162075042725, 0.17915862798690796, -0.17020921409130096, -0.25478196144104004, -0.24937619268894196, 0.02239008992910385, -0.01847456954419613, -0.28225579857826233, 0.4183265268802643, -0.003219353500753641, -0.13225284218788147, -0.011823825538158417, 0.2694909870624542, -0.21865861117839813, 0.1853102445602417, 0.2665773630142212, 0.23033389449119568, 0.03517954424023628, 0.035175107419490814, -0.26408541202545166, -0.30617010593414307, 0.10127381235361099, -0.06812659651041031, 0.15140675008296967, 0.256934255361557, 0.3529640734195709, -0.34323057532310486, -0.2458401471376419, -0.3924255073070526, 0.16208867728710175, 0.3589934706687927, -0.13166770339012146, -0.235791876912117, 0.07621806859970093, -0.10695907473564148, -0.014140520244836807, 0.06052470952272415, 0.4861750304698944, -0.12844745814800262, -0.08054447174072266, -0.37277838587760925, -0.21690090000629425, 0.4692786633968353, -0.22482769191265106, -0.4343768060207367, -0.23054197430610657, 0.041019078344106674, 0.2724093794822693, -0.27141568064689636, -0.8018810153007507, 0.1316695213317871, 0.16681131720542908, -0.005734639707952738, -0.5056576728820801, 0.13500864803791046, -0.08705556392669678, -0.1299729198217392, -0.1699075996875763, 0.7421057820320129, 0.0822320282459259, -0.21329303085803986, 0.4542502462863922, -0.25828680396080017 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
20
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error). I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though) Should we consider replacing the old urls with these ones even though it's not the exact same data ?
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
59
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error). I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though) Should we consider replacing the old urls with these ones even though it's not the exact same data ?
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ...
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
20
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ...
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this.
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
38
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this.
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
20
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much.
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
22
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much.
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Hi I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
46
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Hi I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen.
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
27
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen.
[ -0.44495588541030884, -0.4224763512611389, -0.08150441199541092, 0.4179415702819824, 0.5046884417533875, 0.12449752539396286, 0.12814544141292572, 0.21399666368961334, 0.2786698639392853, 0.0013544472167268395, 0.07271232455968857, -0.11046130955219269, -0.23516137897968292, 0.09720754623413086, 0.28374770283699036, -0.04058201238512993, -0.1238623782992363, -0.002882536966353655, -0.4859328866004944, 0.03903882950544357, -0.2367144376039505, 0.11676373332738876, -0.11184515804052353, -0.06525956094264984, -0.34887000918388367, -0.06710700690746307, -0.13945253193378448, 0.058442194014787674, -0.3605138659477234, -0.2884313762187958, 0.35916751623153687, 0.04849286004900932, 0.21956180036067963, 0.4216260015964508, -0.00010458740871399641, -0.03442484512925148, 0.2609170079231262, -0.1103321835398674, -0.16430558264255524, -0.39196881651878357, -0.3435012698173523, -0.19825942814350128, -0.08634135127067566, -0.08919978141784668, -0.018450329080224037, -0.11762209981679916, -0.11299461126327515, -0.34251588582992554, 0.25244012475013733, 0.3540220260620117, 0.3467806875705719, 0.2697257995605469, 0.3545670211315155, -0.1914295256137848, 0.13827714323997498, 0.1699788123369217, 0.0555044449865818, 0.1284036487340927, -0.007046419661492109, -0.14007705450057983, 0.11668423563241959, 0.13948607444763184, -0.03723452612757683, 0.24165330827236176, 0.10428708046674728, -0.15864478051662445, 0.030770644545555115, -0.2549284100532532, 0.2687597870826721, 0.13920490443706512, 0.3950157165527344, -0.11574245244264603, -0.13140718638896942, 0.15134282410144806, 0.06506244093179703, -0.5738533735275269, 0.22009433805942535, 0.5009630918502808, -0.18637290596961975, 0.19216127693653107, -0.2714761793613434, -0.08709534257650375, 0.02381165325641632, 0.1413063406944275, -0.21970254182815552, 0.29217034578323364, -0.2135499119758606, 0.018389824777841568, 0.18490086495876312, -0.10170958191156387, 0.08809316158294678, -0.01390144508332014, 0.1450829654932022, 0.2526479959487915, -0.2700492739677429, 0.12618140876293182, -0.11457734555006027, 0.12925711274147034, 0.08065427839756012, 0.008612006902694702, -0.2520158290863037, -0.15072117745876312, 0.28814753890037537, -0.025947418063879013, 0.026899414137005806, 0.18884095549583435, -0.21948792040348053, 0.0834905207157135, 0.08342526853084564, 0.19543181359767914, -0.036962587386369705, -0.0546252615749836, -0.31452322006225586, -0.2925902009010315, 0.032648876309394836, -0.09371102601289749, 0.11518827825784683, 0.0685737207531929, -0.28263184428215027, 0.016138987615704536, 0.0049895490519702435, -0.1779201626777649, 0.0023904023692011833, 0.331000953912735, -0.21501639485359192, 0.14857497811317444, 0.2978152334690094, 0.06001143902540207, -0.09709274023771286, -0.10614840686321259, -0.2628639042377472, -0.08037785440683365, -0.1983218789100647, -0.05640789866447449, 0.3051489293575287, -0.09215523302555084, 0.3761110007762909, 0.02296263538300991, -0.179779514670372, -0.18026846647262573, 0.019974134862422943, -0.18305909633636475, 0.11124515533447266, 0.43381837010383606, 0.0693693533539772, 0.2375733107328415, 0.07188070565462112, 0.25477954745292664, -0.0013332911767065525, 0.2246187925338745, -0.04624880850315094, -0.4587918519973755, 0.12388268858194351, 0.3703136742115021, -0.10371299088001251, -0.11541872471570969, 0.024829089641571045, -0.14481107890605927, 0.07044978439807892, 0.25995564460754395, -0.14403320848941803, -0.20330162346363068, -0.16531752049922943, -0.2190621793270111, 0.5277350544929504, 0.39396271109580994, 0.03424232825636864, -0.042103081941604614, -0.4067494571208954, -0.24531999230384827, 0.3608454465866089, 0.2823582887649536, 0.0014633687678724527, 0.14013946056365967, -0.304756224155426, 0.09743096679449081, 0.25194090604782104, -0.21481533348560333, -0.25659364461898804, 0.21181578934192657, -0.21311847865581512, -0.024680987000465393, -0.05190176144242287, 0.09100405126810074, 0.01064529363065958, 0.014503230340778828, 0.2670845687389374, 0.18578998744487762, -0.33121150732040405, 0.024992793798446655, -0.19709858298301697, -0.3113333582878113, 0.44620057940483093, 0.21433934569358826, 0.2483338564634323, -0.07072191685438156, 0.015701722353696823, 0.11446697264909744, 0.3708966076374054, 0.25805890560150146, 0.0792699083685875, -0.03383231535553932, 0.2125309258699417, 0.007950928993523121, -0.2015172690153122, -0.10891464352607727, -0.28369656205177307, 0.1032906249165535, 0.24509914219379425, -0.07786539942026138, 0.05089531093835831, -0.007236271630972624, -0.4273630678653717, 0.04138121381402016, -0.1689588874578476, -0.14934134483337402, 0.165744349360466, -0.07612407952547073, 0.1448952555656433, -0.04929428920149803, -0.07642420381307602, -0.05188116431236267, -0.23853598535060883, 0.07050911337137222, 0.10587911307811737, -0.020405204966664314, -0.30566442012786865, -0.009124472737312317, 0.2450963854789734, -0.0581195130944252, 0.13311047852039337, -0.03723743185400963, -0.13541963696479797, 0.25235962867736816, 0.12333045154809952, 0.2528029978275299, -0.0802929550409317, 0.02518204227089882, 0.15238206088542938, -0.45250675082206726, 0.04305955395102501, 0.041944682598114014, 0.10440744459629059, -0.15762335062026978, 0.218350350856781, -0.03144241124391556, -0.09103292226791382, 0.04189467430114746, 0.17445619404315948, 0.1563681960105896, 0.14778414368629456, -0.02493605948984623, 0.09018321335315704, -0.13318294286727905, 0.321593701839447, -0.09381042420864105, 0.25261732935905457, -0.06541881710290909, -0.06491769850254059, -0.1171582043170929, 0.4020739197731018, 0.15208539366722107, 0.08961903303861618, 0.04423088952898979, -0.3025978207588196, 0.028502363711595535, -0.21578234434127808, 0.3114794194698334, 0.4959135353565216, 0.14464952051639557, 0.16395363211631775, 0.11994926631450653, 0.15693813562393188, -0.2816537916660309, 0.43104788661003113, -0.040102824568748474, 0.23515307903289795, 0.2522009611129761, -0.19616380333900452, -0.05639989301562309, -0.21671491861343384, 0.27789703011512756, 0.01757686212658882, 0.20781201124191284, -0.15782523155212402, -0.24261833727359772, -0.25481972098350525, -0.06735114008188248, -0.46232959628105164, -0.5436559319496155, -0.21787375211715698, -0.13212783634662628, -0.23829977214336395, 0.024033978581428528, -0.036703791469335556, 0.14264315366744995, -0.04206323251128197, -0.10260017961263657, 0.08179482817649841, 0.12687240540981293, 0.002695909235626459, -0.05342762544751167, -0.06353937089443207, 0.18412496149539948, 0.25240033864974976, -0.353583425283432, 0.5754961371421814, -0.30725568532943726, 0.029986660927534103, -0.24281719326972961, -0.13332293927669525, -0.02438797615468502, -0.03700491413474083, 0.08674991130828857, 0.3703729510307312, 0.3781491219997406, 0.2589336931705475, -0.03557761758565903, 0.3693839907646179, -0.2827511131763458, -0.0627756267786026, -0.12146700173616409, 0.12257259339094162, 0.03744375705718994, -0.21731534600257874, -0.5624728202819824, -0.4598301649093628, -0.4110199213027954, -0.0917031392455101, 0.03045947104692459, 0.15629737079143524, 0.15120179951190948, 0.07255600392818451, 0.038224074989557266, 0.14394459128379822, -0.05548917502164841, -0.32776328921318054, -0.3739009499549866, 0.3905154764652252, -0.26703861355781555, -0.44560644030570984, 0.29869529604911804, 0.05988278239965439, 0.46138060092926025, 0.2046908289194107, -0.4112800657749176, 0.39088577032089233, -0.11904460191726685, -0.06690958142280579, 0.04738307744264603, 0.16776379942893982, 0.1566012054681778, -0.04198841378092766, -0.15582726895809174, -0.12715061008930206, -0.11226416379213333, -0.1918482482433319, -0.19831927120685577, 0.537545919418335, -0.19678190350532532, 0.33707237243652344, 0.06683098524808884, 0.7139244675636292, 0.14176532626152039, -0.1678289771080017, 0.20050297677516937, -0.1050601676106453, 0.10603125393390656, 0.12515269219875336, -0.47578710317611694, 0.10092690587043762, -0.13385732471942902, 0.17134085297584534, 0.19571933150291443, 0.007803621236234903, 0.12253482639789581, -0.2567456364631653, 0.00969680491834879, -0.2643202543258667, -0.24601046741008759, 0.06228608638048172, 0.09642194211483002, 0.49882420897483826, 0.17762674391269684, 0.037923410534858704, -0.020069852471351624, -0.017366625368595123, -0.01307416707277298, 0.3110697269439697, 0.15995380282402039, 0.13066640496253967, 0.12602800130844116, -0.08903539925813675, -0.3551565408706665, 0.06514496356248856, -0.00901755876839161, 0.4483254849910736, -0.048891134560108185, -0.18617957830429077, -0.02501433715224266, -0.022950073704123497, 0.5050636529922485, 0.13520412147045135, 0.2418666034936905, -0.09906958788633347, -0.1132146418094635, -0.38819390535354614, -0.008825189433991909, -0.04779975116252899, -0.07923606783151627, 0.17921142280101776, 0.03375992551445961, -0.21138890087604523, -0.18056605756282806, 0.3363742232322693, 0.19658540189266205, -0.24053636193275452, -0.34527140855789185, -0.2148289978504181, -0.3769054710865021, -0.37588921189308167, -0.0632983073592186, 0.0156028401106596, 0.23703759908676147, -0.27106088399887085, -0.054576531052589417, 0.012776108458638191, -0.031476277858018875, 0.08128853142261505, -0.06278879940509796, 0.2074977457523346, 0.017050132155418396, 0.32761186361312866, 0.24725548923015594, 0.24834546446800232, 0.3023760914802551, 0.44997385144233704, -0.07906614243984222, 0.030089549720287323, -0.04503093287348747, -0.031838707625865936, 0.16858455538749695, 0.08830801397562027, -0.12882383167743683, 0.031318049877882004, 0.33650755882263184, 0.1797923743724823, -0.5687043070793152, 0.11871126294136047, 0.41429588198661804, -0.04427749663591385, -0.2248915582895279, -0.29648357629776, 0.1844128668308258, 0.023436158895492554, 0.1980578899383545, 0.22401200234889984, 0.08460889756679535, -0.10260039567947388, -0.37290510535240173, 0.07411118596792221, 0.7303829789161682, 0.004098957870155573, -0.006338006351143122, 0.054139722138643265, -0.2457989752292633, 0.04931694269180298, 0.19654317200183868, 0.05959532782435417, -0.20256531238555908, 0.08234553784132004, 0.07154684513807297, -0.17535798251628876, 0.08994664996862411, 0.16388696432113647, -0.20382468402385712, 0.1945643126964569, -0.09039424359798431, 0.36999234557151794, 0.12374740839004517, 0.2732433080673218, -0.29950013756752014, -0.07650213688611984, -0.18432214856147766, 0.2496200054883957, -0.15795032680034637, 0.5097192525863647, -0.23378778994083405, -0.021878674626350403, 0.2522159218788147, -0.3380149006843567, -0.3348367512226105, -0.01945239119231701, -0.6515511870384216, 0.15432953834533691, -0.20695966482162476, 0.054441895335912704, 0.26658564805984497, 0.07174023985862732, 0.04522360861301422, 0.39728209376335144, -0.1099756583571434, 0.1481291502714157, -0.21824584901332855, -0.1837654858827591, -0.1499452292919159, 0.10437127947807312, 0.03882132098078728, -0.2055927962064743, -0.24223268032073975, -0.030481474474072456, -0.029319336637854576, 0.10185897350311279, 0.16182385385036469, -0.08490904420614243, 0.26290175318717957, -0.15889334678649902, -0.13140760362148285, -0.05291493609547615, -0.08087616413831711, -0.1313953399658203, 0.2391681969165802, 0.08143267780542374, -0.10590144246816635, 0.3598034381866455, 0.12048722058534622, -0.03579362481832504, -0.17569193243980408, 0.4182898700237274, -0.12139342725276947, 0.013303695246577263, 0.40053436160087585, 0.281683087348938, -0.1847718060016632, -0.40773168206214905, 0.0011176469270139933, -0.22806766629219055, -0.254761278629303, 0.21384035050868988, 0.1572367399930954, 0.27001017332077026, -0.04901446774601936, 0.11238730698823929, 0.2817118763923645, -0.22573699057102203, 0.15325051546096802, -0.43748974800109863, -0.36132869124412537, -0.04511813074350357, -0.08016327768564224, 0.16475097835063934, -0.08392883092164993, 0.300749272108078, 0.18408626317977905, 0.3149900734424591, -0.3982216715812683, 0.18447884917259216, -0.05545211583375931, 0.04103294759988785, 0.40864068269729614, -0.1523308902978897, 0.27012547850608826, -0.00010197913070442155, 0.20066925883293152, 0.03595757856965065, -0.3535063564777374, -0.28277528285980225, -0.17894598841667175, 0.07970922440290451, 0.06451481580734253, -0.3131313920021057, 0.2315569967031479, -0.27475690841674805, -0.1528652459383011, 0.17869815230369568, 0.047385651618242264, 0.1009499803185463, -0.048811450600624084, 0.15223349630832672, 0.041071727871894836, 0.0885954350233078, -0.2128453403711319, 0.0700734406709671, -0.0519014336168766, 0.33344340324401855, 0.08323931694030762, -0.06848610192537308, 0.30257779359817505, -0.15398041903972626, -0.0999632179737091, -0.21939340233802795, 0.16003289818763733, -0.20814655721187592, 0.39328816533088684, -0.18479980528354645, -0.011456924490630627, 0.11406099051237106, 0.3009454905986786, 0.33540216088294983, -0.044994696974754333, 0.14369286596775055, 0.13722118735313416, 0.3516528010368347, -0.40804997086524963, 0.17734527587890625, -0.14447957277297974, 0.014858424663543701, -0.07027891278266907, 0.0008017764776013792, 0.022221580147743225, 0.037115685641765594, -0.1540631204843521, 0.20903287827968597, 0.442976713180542, -0.2516423463821411, 0.10131268203258514, 0.20702408254146576, -0.1443159133195877, 0.15125973522663116, 0.053734611719846725, 0.014527343213558197, 0.051147039979696274, 0.3569304943084717, -0.35072070360183716, 0.3197171092033386, -0.12006546556949615, 0.0391065888106823, 0.10245861858129501, -0.29433152079582214, -0.049320269376039505, 0.26261165738105774, -0.25381916761398315, -0.039840489625930786, -0.15696464478969574, 0.2941783666610718, -0.11784762144088745, 0.01443575695157051, -0.15741503238677979, 0.2634161710739136, -0.07960326969623566, -0.02667153999209404, -0.22451964020729065, -0.1667218655347824, -0.2416512668132782, -0.008191046305000782, 0.14872512221336365, -0.17941038310527802, 0.29241591691970825, 0.26599442958831787, -0.021894650533795357, -0.5418654084205627, -0.19380882382392883, 0.16151754558086395, -0.06607075780630112, -0.3661063313484192, 0.09620224684476852, 0.42628440260887146, -0.10736536979675293, 0.167373925447464, 0.47673702239990234, 0.3966049253940582, 0.32193523645401, -0.1423860788345337, 0.08706600219011307, 0.05768774822354317, -0.10058960318565369, -0.1879328489303589, 0.20519056916236877, 0.07906759530305862, -0.04851948842406273, 0.20979399979114532, 0.27238744497299194, -0.23740778863430023, -0.19492122530937195, 0.02356347069144249, -0.13386283814907074, -0.0635162815451622, 0.2793869972229004, -0.13691267371177673, 0.04305896535515785, -0.43184199929237366, 0.23056338727474213, -0.2953837513923645, 0.30974385142326355, 0.576366662979126, -0.05164463445544243, 0.16799236834049225, -0.2874504327774048, 0.11438571661710739, -0.004497481044381857, 0.61336350440979, 0.288921594619751, 0.05591835826635361, -0.4034259021282196, -0.43118515610694885, -0.7414610385894775, 0.010680056177079678, 0.07478440552949905, 0.09362230449914932, -0.17253045737743378, 0.08811262995004654, -0.05380438268184662, 0.06516774743795395, 0.24903486669063568, 0.08209362626075745, 0.19772131741046906, 0.027918944135308266, -0.05663425475358963, -0.05528445541858673, -0.20027483999729156, -0.014396753162145615, 0.13614563643932343, -0.35314419865608215, 0.15829528868198395, -0.38703277707099915, 0.12981867790222168, -0.4399932026863098, 0.2706380784511566, -0.048777054995298386, 0.2809249758720398, 0.28762659430503845, 0.150533527135849, 0.3705020844936371, -0.0907476618885994, -0.054609574377536774, -0.19502271711826324, -0.06907885521650314, -0.15042704343795776, 0.15007130801677704, 0.21825642883777618, 0.17057877779006958, -0.0018081913003697991, -0.30956700444221497, -0.44950833916664124, 0.08449087291955948, 0.0031592175364494324, -0.037231314927339554, -0.19252325594425201, 0.043613284826278687, -0.10814830660820007, -0.10061425715684891, 0.33560144901275635, 0.22991561889648438, -0.1436966359615326, 0.02288414165377617, -0.34513190388679504, -0.38486549258232117, 0.446046382188797, -0.1559341549873352, -0.2160530686378479, -0.2820888161659241, 0.09340731799602509, -0.05358351394534111, -0.009809086099267006, -0.485115647315979, 0.303274005651474, 0.253322571516037, -0.080763079226017, -0.20001286268234253, 0.4165598750114441, -0.11241910606622696, -0.03501320630311966, 0.07450541108846664, 0.4259931147098541, 0.05312447249889374, -0.26619890332221985, -0.20818547904491425, -0.17933610081672668 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns. Currently to add more columns to a dataset, one must use `map`. What you can do is somehting like this: ```python # suppose you have datasets d1, d2, d3 def add_columns(example, index): example.update(d2[index]) example.update(d3[index]) return example full_dataset = d1.map(add_columns, with_indices=True) ```
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
58
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns. Currently to add more columns to a dataset, one must use `map`. What you can do is somehting like this: ```python # suppose you have datasets d1, d2, d3 def add_columns(example, index): example.update(d2[index]) example.update(d3[index]) return example full_dataset = d1.map(add_columns, with_indices=True) ```
[ -0.42260897159576416, -0.08625984191894531, -0.15459904074668884, 0.0781627669930458, 0.10730886459350586, 0.4110480844974518, 0.31150704622268677, 0.46485093235969543, 0.1183016449213028, 0.17059606313705444, -0.17582377791404724, 0.3464905023574829, -0.0750732570886612, 0.5408210158348083, -0.2195972353219986, -0.2845953106880188, 0.15833617746829987, 0.5231662392616272, -0.518383264541626, 0.07941928505897522, -0.436337411403656, -0.1140022873878479, -0.32522836327552795, -0.3519521653652191, -0.33050909638404846, 0.22723154723644257, -0.32632654905319214, 0.04968933016061783, -0.24203166365623474, -0.2773001194000244, 0.1845787614583969, 0.15656235814094543, 0.17375332117080688, 0.1870676875114441, -0.00010186566214542836, -0.006545655895024538, -0.014074279926717281, -0.09879262745380402, -0.23881182074546814, -0.23869958519935608, -0.42746609449386597, -0.5326143503189087, 0.01913505047559738, -0.1855822503566742, 0.007085753604769707, -0.5496057271957397, -0.15158207714557648, -0.19522625207901, -0.03632725402712822, 0.26912692189216614, 0.2765328288078308, -0.002414328046143055, 0.1438429057598114, -0.22053806483745575, -0.032708391547203064, 0.04778487607836723, -0.1488679200410843, -0.23833630979061127, -0.10288417339324951, -0.030481627210974693, 0.2678532898426056, 0.09248106926679611, -0.07866700738668442, -0.095547154545784, 0.023014990612864494, 0.2429492473602295, 0.3289211094379425, -0.4637422561645508, 0.27837488055229187, 0.35957613587379456, 0.5390444397926331, -0.1761263608932495, -0.308894544839859, -0.010775226168334484, 0.27301037311553955, -0.22511300444602966, -0.11531834304332733, 0.17224179208278656, 0.18411482870578766, 0.10558117926120758, 0.0051618474535644054, -0.0969102755188942, -0.2384503036737442, 0.3530951738357544, -0.12394724786281586, 0.5723186731338501, 0.09375826269388199, 0.12462987005710602, 0.16471047699451447, -0.2323433756828308, 0.2123439460992813, -0.23055978119373322, -0.026389334350824356, 0.38262414932250977, -0.5797168612480164, -0.08497465401887894, -0.19414356350898743, -0.24028541147708893, 0.18601109087467194, 0.09343452751636505, 0.01274800393730402, -0.023027289658784866, -0.11488724499940872, 0.2161034643650055, 0.10359641164541245, 0.14304465055465698, 0.11781628429889679, 0.3845243752002716, -0.1129864901304245, -0.21886110305786133, 0.3609624207019806, -0.035208627581596375, -0.3074701130390167, -0.42766648530960083, -0.0928751602768898, -0.012597347609698772, 0.08282128721475601, 0.24912406504154205, 0.09112968295812607, -0.10141408443450928, -0.113104447722435, -0.027137720957398415, -0.024538759142160416, 0.05415213108062744, 0.1044035404920578, 0.7092751860618591, -0.04964004084467888, 0.24613617360591888, 0.22598114609718323, 0.01678461767733097, -0.20028015971183777, 0.3086342513561249, 0.1093926653265953, -0.04771696403622627, 0.1133463904261589, -0.20247411727905273, -0.04651463404297829, 0.351692795753479, 0.13280025124549866, 0.17540554702281952, 0.005613828543573618, -0.24705353379249573, 0.1815115362405777, 0.21985606849193573, 0.13232865929603577, -0.0452631376683712, 0.13458770513534546, -0.1955261379480362, 0.017967354506254196, 0.3099170923233032, -0.1724105328321457, -0.08890135586261749, -0.5252360105514526, 0.20822738111019135, -0.04232420399785042, -0.07005167752504349, -0.3134095072746277, 0.3623366355895996, -0.07714967429637909, 0.05394957214593887, 0.11553459614515305, -0.04746587201952934, 0.06217799708247185, -0.16612474620342255, 0.20095808804035187, 0.11134384572505951, -0.2669387757778168, 0.008026177994906902, 0.15360301733016968, -0.15894535183906555, 0.14460009336471558, -0.060014620423316956, 0.11772659420967102, -0.23453889787197113, -0.0067718420177698135, 0.005961657967418432, 0.3625383675098419, -0.32988882064819336, -0.09269815683364868, -0.032107699662446976, -0.11978302896022797, -0.005957399494946003, 0.24581760168075562, 0.09696430712938309, 0.18389683961868286, 0.28392332792282104, 0.20155589282512665, 0.048202987760305405, 0.035006988793611526, -0.009959890507161617, 0.015168363228440285, -0.12045561522245407, 0.42657363414764404, 0.249477356672287, -0.043199751526117325, 0.2766704261302948, -0.01500449888408184, -0.45884600281715393, 0.3301061987876892, -0.399951696395874, 0.2924726903438568, 0.1318645030260086, 0.12673528492450714, -0.20352190732955933, 0.006723145954310894, -0.11771585047245026, -0.5746806263923645, 0.051952045410871506, 0.28629645705223083, 0.21273523569107056, 0.0785783901810646, -0.12868577241897583, -0.10281211137771606, -0.1928759068250656, 0.009984282776713371, 0.0941530168056488, 0.18350189924240112, 0.04131771996617317, 0.051945652812719345, -0.24933108687400818, -0.3810608685016632, 0.36065900325775146, 0.09509725868701935, -0.04329770430922508, -0.1508485972881317, 0.21309998631477356, 0.1889881044626236, 0.029141433537006378, -0.016535762697458267, 0.27189651131629944, 0.09437435120344162, -0.11734694987535477, 0.16463510692119598, 0.37946003675460815, -0.345246821641922, 0.008248650468885899, 0.047146543860435486, 0.2545299232006073, 0.12269646674394608, 0.2721695005893707, -0.17936375737190247, -0.3759016692638397, 0.1136745885014534, 0.09211308509111404, -0.08164525777101517, 0.47657182812690735, -0.28746482729911804, 0.20871956646442413, -0.09565833956003189, 0.1742873638868332, 0.2577309012413025, -0.0465930700302124, -0.22392845153808594, -0.3543514013290405, -0.016360191628336906, 0.22914287447929382, -0.19165930151939392, -0.023656556382775307, -0.06878204643726349, 0.1239457055926323, 0.2656053602695465, 0.021464502438902855, -0.10228334367275238, -0.0943581759929657, -0.11679235100746155, 0.12439868599176407, 0.22679483890533447, 0.11676101386547089, 0.2644933760166168, 0.39999911189079285, -0.10860548168420792, 0.2540387809276581, -0.27522528171539307, 0.0746823102235794, 0.09163329750299454, 0.03731762245297432, -0.07771065086126328, 0.44814178347587585, 0.22262902557849884, -0.07543545216321945, -0.018563078716397285, -0.22968994081020355, 0.11009463667869568, 0.5023943781852722, -0.0948239415884018, -0.1374456286430359, -0.24187684059143066, -0.013237045146524906, 0.09001635015010834, -0.34679460525512695, 0.022829575464129448, -0.24789932370185852, -0.17961947619915009, 0.1272638589143753, -0.1465986967086792, 0.36094918847084045, -0.30122148990631104, 0.1301998645067215, -0.04144153743982315, -0.0230278167873621, -0.03227124363183975, 0.07153412699699402, 0.19257621467113495, 0.17403045296669006, -0.16116052865982056, -0.08098001033067703, -0.0969499871134758, -0.1195516586303711, 0.2034367471933365, -0.11111489683389664, 0.029660440981388092, 0.02091226913034916, -0.12713304162025452, -0.48543208837509155, 0.01859092153608799, 0.07764990627765656, -0.25647804141044617, -0.1758207082748413, 0.16878867149353027, 0.3261314034461975, 0.06323984265327454, 0.17946796119213104, 0.016681717708706856, 0.018516408279538155, -0.17753984034061432, -0.20748522877693176, -0.23331588506698608, -0.41390261054039, 0.1558995395898819, 0.20399901270866394, 0.28658291697502136, -0.03890044987201691, 0.49309980869293213, -0.061250559985637665, 0.03926752507686615, -0.05907180532813072, -0.12559303641319275, -0.33670562505722046, 0.4871843159198761, -0.13942526280879974, -0.053191982209682465, 0.13053792715072632, -0.259368360042572, 0.12993401288986206, 0.2810859680175781, 0.09498871862888336, -0.210249125957489, -0.03937644511461258, 0.1496008336544037, -0.3974601626396179, 0.2691259980201721, 0.4252673089504242, 0.3284214735031128, -0.10309050977230072, 0.01820923388004303, -0.008902988396584988, 0.08230362832546234, 0.21643665432929993, -0.22021786868572235, -0.20709215104579926, 0.1523672342300415, -0.025881296023726463, -0.19355635344982147, 0.4212956428527832, 0.08821949362754822, 0.17858700454235077, -0.21549953520298004, 0.3437768518924713, 0.06876413524150848, -0.2970072627067566, -0.24225910007953644, 0.09271324425935745, 0.4133456349372864, -0.18660341203212738, 0.05524729937314987, 0.09856188297271729, -0.16638602316379547, 0.02159879356622696, -0.15452423691749573, -0.023114066570997238, 0.2027687430381775, -0.3458370268344879, 0.2905596196651459, -0.3137412965297699, -0.028523219749331474, -0.4043998420238495, 0.08560517430305481, -0.1631052941083908, 0.11877244710922241, -0.03305184841156006, -0.2274540364742279, -0.2630121111869812, -0.24441120028495789, -0.4903450012207031, 0.31733953952789307, 0.15523168444633484, 0.2717689275741577, 0.29129186272621155, -0.022842081263661385, -0.21718929708003998, -0.01644747704267502, 0.6867682337760925, -0.36891844868659973, -0.601341962814331, 0.3722737431526184, -0.007273241877555847, -0.5260190963745117, 0.04125702753663063, -0.16014884412288666, 0.11852316558361053, -0.18681764602661133, 0.6114810705184937, -0.11216076463460922, -0.11285669356584549, 0.5385575294494629, 0.19107308983802795, -0.003089704317972064, -0.06476494669914246, -0.027524609118700027, 0.14650803804397583, -0.09473046660423279, -0.32116180658340454, -0.13061892986297607, 0.5407405495643616, -0.12056845426559448, -0.14923882484436035, -0.23907268047332764, -0.35901975631713867, 0.11346475034952164, 0.16854353249073029, 0.1686146855354309, 0.3236900568008423, -0.05598493665456772, 0.11642524600028992, -0.2771928608417511, 0.31409886479377747, 0.22331154346466064, -0.1735609471797943, -0.40953153371810913, -0.06743816286325455, -0.12441375106573105, 0.37694379687309265, -0.19982312619686127, 0.0715276375412941, 0.22748272120952606, -0.26818081736564636, 0.09857862442731857, -0.13851973414421082, 0.0678737536072731, 0.24223144352436066, 0.08686231076717377, -0.4898301064968109, -0.4183362126350403, 0.29669156670570374, 0.19768480956554413, 0.0894351527094841, 0.43778523802757263, 0.10152269154787064, -0.25740763545036316, -0.000024200880943681113, -0.10518139600753784, 0.6077104806900024, 0.1193208396434784, 0.0889267548918724, 0.049410562962293625, -0.18169768154621124, 0.40472981333732605, 0.021521257236599922, 0.37285715341567993, -0.18717388808727264, -0.24106881022453308, -0.17818321287631989, -0.015463792718946934, 0.18913492560386658, 0.0828683078289032, -0.453823059797287, 0.0597170852124691, -0.4398399591445923, 0.1877661943435669, -0.044106196612119675, 0.09644977748394012, -0.023519329726696014, -0.526238739490509, -0.384625643491745, 0.1481362283229828, 0.04334184154868126, -0.37316814064979553, -0.06815611571073532, 0.04626752808690071, -0.10160433501005173, 0.09218521416187286, -0.1371254026889801, -0.009336809627711773, 0.16085702180862427, 0.02505885437130928, 0.10020501911640167, -0.3422580659389496, -0.11596380919218063, 0.021010907366871834, 0.05216168612241745, 0.016562391072511673, -0.019730547443032265, -0.19123221933841705, -0.0184384323656559, 0.061167750507593155, -0.023227635771036148, -0.16520826518535614, -0.0057617127895355225, 0.23116131126880646, -0.30754148960113525, 0.34741678833961487, 0.16650500893592834, -0.311727911233902, 0.060280367732048035, 0.11855802685022354, -0.12376759201288223, -0.1787293702363968, -0.05172032117843628, 0.2353450506925583, 0.21438783407211304, -0.2692742645740509, 0.19174335896968842, 0.06254655867815018, -0.23332002758979797, 0.09780054539442062, -0.18853618204593658, -0.276343435049057, -0.16054731607437134, 0.5698920488357544, 0.06576768308877945, 0.10761424154043198, 0.24774271249771118, 0.11600330471992493, -0.09715847671031952, -0.16627196967601776, 0.11735177040100098, 0.3057332932949066, -0.1103132963180542, 0.10177667438983917, 0.16779862344264984, -0.11018088459968567, -0.18013766407966614, 0.19382929801940918, -0.027739398181438446, 0.4791877567768097, -0.16449420154094696, -0.2471839189529419, -0.4967115521430969, 0.17976722121238708, 0.37012797594070435, 0.1714562326669693, -0.023921847343444824, 0.15925240516662598, -0.15171310305595398, -0.07942937314510345, -0.36082980036735535, -0.1363077163696289, -0.07174354791641235, 0.04626614227890968, 0.283657968044281, -0.04062904790043831, -0.06850418448448181, -0.07537578046321869, 0.3054107129573822, -0.007498480379581451, -0.016317300498485565, -0.3289111852645874, -0.16387775540351868, 0.002893587574362755, 0.18145962059497833, -0.2591571509838104, 0.027262259274721146, -0.07294519245624542, -0.4046712815761566, -0.2934720814228058, 0.05323690176010132, 0.4485883414745331, -0.28276297450065613, 0.09783930331468582, -0.05205116793513298, -0.1574321687221527, -0.05961420014500618, -0.07696698606014252, 0.050206203013658524, -0.19736544787883759, -0.09686371684074402, 0.29356852173805237, 0.05627802759408951, 0.004974059760570526, -0.1948285847902298, 0.18380001187324524, 0.02696523629128933, -0.04689367115497589, 0.04761514440178871, -0.060211531817913055, 0.06729550659656525, 0.25793540477752686, 0.30721086263656616, 0.1623547375202179, 0.0628557950258255, 0.29268553853034973, 0.21246953308582306, 0.3209308385848999, -0.2774730324745178, -0.36939355731010437, 0.06050466373562813, 0.3878202736377716, 0.45836710929870605, 0.11085037142038345, -0.31411123275756836, -0.2479768842458725, 0.08075273036956787, 0.007925909012556076, 0.02421017736196518, -0.09276209026575089, 0.3725392818450928, 0.531144380569458, 0.07326271384954453, 0.013472836464643478, 0.054465994238853455, 0.16999001801013947, 0.18134552240371704, 0.15948934853076935, -0.057994235306978226, 0.05075179785490036, 0.39659053087234497, -0.19467133283615112, -0.12404504418373108, -0.21430328488349915, 0.023270023986697197, 0.11073590815067291, -0.14145784080028534, 0.08607477694749832, 0.19042319059371948, -0.10143200308084488, -0.016774563118815422, 0.00043581536738201976, -0.011841358616948128, 0.07469379156827927, -0.05610232427716255, -0.1204991489648819, -0.02101861871778965, -0.20383048057556152, -0.07726370543241501, 0.005264747887849808, 0.12869343161582947, -0.2836010456085205, 0.49283933639526367, -0.19139400124549866, 0.07045599073171616, -0.15029117465019226, 0.4490297734737396, 0.3303481638431549, 0.06698810309171677, 0.046275634318590164, -0.09220573306083679, 0.399871826171875, 0.010163639672100544, 0.07211103290319443, 0.20764024555683136, 0.32302790880203247, 0.1880321353673935, 0.23345935344696045, 0.08115928620100021, -0.14555546641349792, -0.14382408559322357, 0.08951228857040405, 0.006291229277849197, 0.0821910947561264, -0.12054020911455154, 0.12355946004390717, 0.3070295751094818, -0.2196788787841797, 0.15585766732692719, -0.13000507652759552, 0.09158279746770859, -0.5912758111953735, 0.0805233046412468, 0.19168366491794586, -0.3469388782978058, 0.028123581781983376, 0.042235296219587326, -0.06976950168609619, -0.28511351346969604, 0.06194848567247391, 0.04958063364028931, -0.03673944249749184, 0.08492055535316467, 0.178498312830925, 0.08298000693321228, 0.4064064919948578, -0.136516734957695, -0.013744921423494816, -0.2608771026134491, -0.05082477629184723, -0.13326263427734375, -0.13481490314006805, 0.035773444920778275, -0.1865975260734558, -0.12009769678115845, 0.13287687301635742, 0.0875818207859993, -0.04220433905720711, 0.3020155131816864, 0.20183148980140686, 0.10865998268127441, 0.20690445601940155, -0.14768189191818237, 0.00717170862480998, 0.21055123209953308, -0.05379483476281166, 0.03185886889696121, -0.33544814586639404, 0.34405454993247986, 0.26875409483909607, 0.1323976367712021, 0.0037174199242144823, 0.14297078549861908, -0.12609711289405823, -0.1846722513437271, 0.2557789981365204, 0.11762085556983948, 0.11471596360206604, -0.20014071464538574, 0.30360883474349976, -0.36005139350891113, -0.19292016327381134, -0.36871108412742615, 0.3780512511730194, 0.116505928337574, 0.20294956862926483, -0.3130413591861725, -0.17150187492370605, 0.11055243760347366, -0.012434262782335281, 0.07063303142786026, 0.212229385972023, -0.14439459145069122, 0.4930887520313263, 0.22225907444953918, -0.2137947380542755, -0.1979365348815918, -0.0625334233045578, 0.030031299218535423, 0.015935400500893593, 0.09250319749116898, -0.20833097398281097, 0.06623171269893646, 0.04416954144835472, -0.4783133864402771, -0.2526848316192627, -0.09528675675392151, 0.30186039209365845, 0.09106173366308212, -0.09330528974533081, -0.09939933568239212, 0.27572131156921387, -0.06090465933084488, -0.3030010759830475, 0.31595903635025024, -0.21515125036239624, 0.051735829561948776, -0.09205145388841629, 0.01670747809112072, -0.015443279407918453, -0.1852017343044281, -0.08377809822559357, -0.38801655173301697 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
That's not really difficult to add, though, no? I think it can be done without copy. Maybe let's add it to the roadmap?
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
23
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) That's not really difficult to add, though, no? I think it can be done without copy. Maybe let's add it to the roadmap?
[ -0.5632331371307373, 0.1566242128610611, -0.10527768731117249, -0.08301129937171936, 0.08748127520084381, 0.16249704360961914, 0.30282312631607056, 0.4194343090057373, -0.22494222223758698, 0.386896014213562, -0.15374933183193207, 0.2858180105686188, -0.1336851418018341, 0.42659613490104675, -0.37740445137023926, -0.11378931254148483, 0.16907766461372375, 0.6831733584403992, -0.48716074228286743, -0.04612120985984802, -0.2769602835178375, 0.0618329681456089, -0.19137150049209595, -0.3543594181537628, -0.5695504546165466, 0.29120704531669617, -0.18520505726337433, 0.14715702831745148, -0.39621755480766296, -0.19704630970954895, 0.29274386167526245, 0.33680522441864014, -0.043901678174734116, 0.10875113308429718, -0.0001123583351727575, 0.020028168335556984, 0.01337698008865118, -0.15886549651622772, -0.223981112241745, -0.28591305017471313, -0.462848037481308, -0.309732049703598, -0.057389166206121445, -0.05910301208496094, 0.10346835106611252, -0.12934593856334686, 0.08931170403957367, -0.23392143845558167, 0.03515057638287544, 0.12969331443309784, 0.18864873051643372, -0.04604657366871834, -0.14946138858795166, -0.302918016910553, 0.03526485338807106, 0.38725706934928894, -0.15969084203243256, -0.11194368451833725, 0.036842312663793564, 0.05101252719759941, 0.14739695191383362, 0.19671398401260376, 0.08474892377853394, -0.10486848652362823, -0.031223958358168602, 0.12785397469997406, 0.2851846218109131, -0.5738030672073364, 0.18949411809444427, 0.437326580286026, 0.3858170807361603, -0.2070240080356598, -0.23101356625556946, -0.10637640953063965, 0.12562167644500732, -0.037894703447818756, -0.008513139560818672, 0.24868866801261902, 0.0003850620414596051, 0.29981091618537903, -0.12661965191364288, -0.32144948840141296, -0.3337572515010834, 0.21925432980060577, 0.0035829374101012945, 0.5095910429954529, 0.1821105182170868, 0.12831993401050568, 0.24797537922859192, -0.08961959183216095, 0.15146547555923462, -0.11211225390434265, -0.18725977838039398, 0.3319093883037567, -0.3466574549674988, -0.10949279367923737, -0.4235309958457947, -0.3127003312110901, 0.3242361843585968, 0.3647492825984955, 0.2044345736503601, -0.05147215351462364, -0.28106892108917236, 0.22247348725795746, 0.13684211671352386, -0.028181327506899834, 0.26270583271980286, 0.22462761402130127, 0.10049303621053696, -0.4747581481933594, 0.4068494439125061, 0.14193537831306458, -0.2541024684906006, -0.6352850198745728, -0.3118082284927368, -0.04954924061894417, 0.03981124609708786, 0.1275729537010193, -0.024405473843216896, -0.2763115465641022, -0.0880286693572998, 0.05476738139986992, -0.19945409893989563, -0.08705982565879822, 0.18451298773288727, 0.5468410849571228, -0.029194319620728493, 0.18385255336761475, 0.16136802732944489, -0.20349538326263428, -0.12286398559808731, 0.11373548209667206, 0.2657364010810852, 0.10903818160295486, 0.09325315058231354, -0.31030237674713135, -0.05343376100063324, 0.10103029012680054, 0.4630497097969055, 0.29352834820747375, 0.0899411141872406, -0.11257995665073395, 0.15728047490119934, 0.2680850028991699, 0.15086551010608673, -0.10604273527860641, 0.07118751853704453, -0.21595843136310577, -0.12776052951812744, 0.31485721468925476, -0.2388090044260025, -0.07895150780677795, -0.6027965545654297, 0.12506774067878723, -0.1908838003873825, -0.1287209838628769, -0.27355408668518066, 0.4014887511730194, -0.10886560380458832, 0.01529473066329956, 0.14861980080604553, 0.1504071205854416, 0.12078922241926193, -0.1274714171886444, 0.12867681682109833, 0.13869717717170715, -0.22286301851272583, -0.1253662109375, 0.14949984848499298, -0.37601619958877563, -0.025756711140275, -0.053454723209142685, -0.09177704155445099, -0.39196524024009705, -0.10962222516536713, 0.23801860213279724, 0.5789762139320374, -0.37249547243118286, -0.04614441841840744, -0.022979341447353363, -0.3579956889152527, -0.1780036836862564, 0.3134597837924957, 0.27452340722084045, 0.1828150749206543, 0.0905679315328598, 0.08838948607444763, 0.28523358702659607, -0.10220254957675934, 0.03735163062810898, 0.04200413078069687, -0.25696220993995667, 0.2918090224266052, 0.22955678403377533, -0.023776205256581306, 0.15687960386276245, 0.25780996680259705, -0.5314159989356995, 0.2531367242336273, -0.47441932559013367, 0.1922057718038559, 0.06557589024305344, 0.43644458055496216, -0.4588060677051544, -0.027983717620372772, 0.05105678364634514, -0.4954914152622223, 0.06990709900856018, 0.12608018517494202, 0.2886119484901428, 0.1175457239151001, -0.3634762763977051, 0.08634896576404572, -0.12819847464561462, -0.0332227498292923, 0.049011144787073135, 0.06382714211940765, -0.017296981066465378, -0.0022059271577745676, -0.09523975849151611, -0.38508591055870056, 0.47186407446861267, 0.1025448739528656, -0.09259628504514694, -0.14657440781593323, 0.22575195133686066, 0.04525582492351532, 0.1224837526679039, -0.07220623642206192, 0.20960552990436554, -0.06795166432857513, -0.26506632566452026, 0.21959970891475677, 0.5704527497291565, -0.43149533867836, 0.146709606051445, 0.26235878467559814, 0.10931337624788284, 0.2668367028236389, -0.15547093749046326, -0.18487122654914856, -0.5273683071136475, -0.025692706927657127, -0.04297252744436264, -0.017655538395047188, 0.5327887535095215, -0.31474530696868896, 0.030716534703969955, 0.04390457645058632, 0.22748365998268127, 0.3138512670993805, -0.013803371228277683, -0.39584770798683167, -0.37874600291252136, -0.07295824587345123, 0.41710925102233887, 0.01607268489897251, 0.18493179976940155, -0.18930231034755707, 0.12077050656080246, 0.34476715326309204, 0.007803749293088913, -0.01848406344652176, -0.007862778380513191, -0.14707040786743164, 0.11438186466693878, 0.2931669354438782, 0.027650007978081703, 0.32052358984947205, 0.37939611077308655, -0.12095452100038528, 0.17997926473617554, -0.2484184354543686, -0.04682224243879318, 0.1409379094839096, -0.013996735215187073, 0.22532688081264496, 0.33007869124412537, 0.3414493501186371, -0.08920647203922272, -0.2700636088848114, -0.3984609842300415, 0.004603428766131401, 0.25167205929756165, -0.1310018002986908, -0.22523915767669678, -0.25230908393859863, 0.009898911230266094, 0.009279167279601097, -0.28265202045440674, -0.2417200207710266, -0.24305282533168793, 0.12820571660995483, 0.13275331258773804, -0.05080818384885788, 0.5702414512634277, -0.2493327260017395, 0.5388223528862, -0.22184228897094727, -0.03556113690137863, -0.12668688595294952, 0.13609033823013306, 0.20553463697433472, 0.09191595762968063, -0.1181463748216629, -0.30788832902908325, 0.09677476435899734, -0.1567498743534088, 0.2157609462738037, -0.2193126678466797, -0.27200207114219666, 0.0924665555357933, 0.09822001308202744, -0.5494910478591919, 0.1595652997493744, 0.002591958036646247, -0.13035579025745392, -0.08010448515415192, 0.027920078486204147, 0.3592712879180908, -0.2882350981235504, -0.0033156522549688816, -0.2200147956609726, 0.026014672592282295, -0.4219439625740051, 0.05974964052438736, -0.23981226980686188, -0.3552930951118469, 0.26299798488616943, 0.3009655773639679, 0.26931822299957275, 0.1727239191532135, 0.5507339835166931, -0.19921107590198517, -0.06103780120611191, -0.1994943469762802, -0.06637886166572571, -0.4897853136062622, 0.5394606590270996, -0.09804540127515793, 0.015326414257287979, 0.08745203167200089, -0.12524199485778809, 0.07777702808380127, 0.44685497879981995, -0.07994873821735382, -0.3376500606536865, 0.12856706976890564, 0.3639603853225708, -0.33463457226753235, 0.11786321550607681, 0.4186059534549713, 0.4637765884399414, -0.047855135053396225, -0.10995855182409286, 0.19229081273078918, 0.26929792761802673, 0.13751427829265594, -0.2730705142021179, -0.21735763549804688, -0.12119287997484207, 0.3359743058681488, 0.07648365199565887, 0.29604634642601013, -0.027423327788710594, 0.20464923977851868, -0.22708721458911896, 0.5847329497337341, 0.274504154920578, -0.023041417822241783, -0.0014796110335737467, 0.3178345859050751, 0.3991067111492157, -0.23026469349861145, 0.11859771609306335, 0.08651901036500931, -0.3438405394554138, 0.0654725506901741, -0.09591520577669144, -0.01790269836783409, 0.17586657404899597, -0.2882613241672516, 0.17323601245880127, -0.2750517427921295, -0.17692425847053528, -0.39535728096961975, 0.05364625155925751, -0.08321274816989899, 0.1600794643163681, 0.06395955383777618, -0.10554423183202744, -0.2958186864852905, -0.1693475991487503, -0.3520299196243286, 0.28366294503211975, 0.2666337788105011, 0.08055931329727173, 0.30792224407196045, -0.03871261328458786, -0.25188905000686646, -0.04214412346482277, 0.8338660597801208, -0.3788582682609558, -0.43784770369529724, 0.22426624596118927, 0.11276574432849884, -0.15773583948612213, 0.09709544479846954, 0.10579373687505722, 0.1632106900215149, -0.07594044506549835, 0.5961196422576904, -0.10549574345350266, -0.15911860764026642, 0.5606842041015625, -0.03160564601421356, -0.08540473878383636, 0.04846979305148125, 0.027789583429694176, 0.03599189221858978, -0.1967308670282364, -0.432086318731308, -0.05556643754243851, 0.3386979103088379, -0.1358342170715332, -0.19203197956085205, -0.30729854106903076, -0.3666210174560547, 0.0244271419942379, 0.20552405714988708, 0.1794954240322113, 0.0950457975268364, -0.08200676739215851, 0.0414193831384182, -0.2957613468170166, 0.5316924452781677, 0.39021623134613037, -0.18229146301746368, -0.5838044285774231, 0.02467636577785015, -0.1763230562210083, 0.47056618332862854, 0.14443235099315643, 0.05014241859316826, 0.06794730573892593, -0.17172524333000183, -0.08216781169176102, -0.04841240495443344, 0.18315066397190094, 0.0039014345966279507, -0.1674986332654953, -0.5671278238296509, -0.10952063649892807, 0.30927303433418274, 0.2783626616001129, 0.07117244601249695, 0.48194006085395813, -0.058345142751932144, -0.3044947385787964, -0.15752072632312775, 0.0009397320100106299, 0.8850581645965576, 0.12602145969867706, 0.3311336040496826, -0.22621998190879822, 0.0032257407438009977, 0.5198000073432922, 0.04783457890152931, 0.20476983487606049, -0.14813446998596191, -0.12419380992650986, -0.2646898031234741, -0.17120236158370972, 0.24455544352531433, 0.2108684778213501, -0.3462074100971222, -0.015807781368494034, -0.1570599228143692, 0.243043452501297, -0.08859898149967194, 0.1055440828204155, -0.15383124351501465, -0.4903739392757416, -0.021616633981466293, 0.048825062811374664, -0.024537399411201477, -0.3043813109397888, -0.14613579213619232, -0.1761864423751831, -0.1279933750629425, -0.08547994494438171, -0.1804274469614029, 0.042326632887125015, -0.10566170513629913, 0.0711875781416893, 0.31749680638313293, -0.3614887595176697, -0.25436073541641235, 0.029308106750249863, 0.1480712741613388, -0.006447406020015478, -0.07093001902103424, 0.04225670173764229, 0.06230271980166435, 0.12890467047691345, 0.03102591633796692, -0.05374497175216675, 0.1355310082435608, 0.13844498991966248, -0.08615134656429291, 0.20909687876701355, 0.12161745131015778, -0.4662897288799286, -0.04729507863521576, 0.019788404926657677, -0.18855737149715424, 0.31847164034843445, 0.049643583595752716, 0.2659672200679779, 0.008173990994691849, -0.24573542177677155, 0.0697665810585022, 0.16110126674175262, -0.1090487465262413, -0.013689706102013588, -0.09451565891504288, -0.2226870059967041, -0.11028599739074707, 0.500826358795166, -0.01638283021748066, -0.07464243471622467, 0.007094312459230423, -0.029205210506916046, -0.04975344240665436, -0.13726483285427094, 0.1912909746170044, 0.17724481225013733, -0.40854403376579285, 0.03787972033023834, 0.013166055083274841, -0.3252488076686859, -0.22657150030136108, 0.41094109416007996, 0.10609359294176102, 0.47808119654655457, -0.008521524257957935, -0.23974545300006866, -0.39051273465156555, 0.06926389783620834, 0.13295140862464905, 0.31093868613243103, -0.04795278236269951, 0.3263039290904999, -0.15588712692260742, -0.25240984559059143, -0.3186056613922119, -0.185745507478714, 0.050136152654886246, -0.041026338934898376, -0.03468777611851692, 0.1839326024055481, -0.11585962027311325, -0.16396737098693848, 0.20497900247573853, 0.15772110223770142, -0.09853003919124603, -0.19688519835472107, -0.13403058052062988, 0.14853928983211517, 0.10730647295713425, -0.2840138077735901, 0.15006697177886963, -0.0432477630674839, -0.46692028641700745, -0.23164156079292297, 0.07554787397384644, 0.3219158947467804, -0.2924268841743469, -0.07703190296888351, -0.033875662833452225, -0.14703242480754852, 0.25085726380348206, -0.10522130876779556, 0.12715961039066315, 0.22978319227695465, -0.1485441029071808, 0.3913187086582184, -0.04529176279902458, -0.0981236919760704, 0.08126746118068695, 0.16266781091690063, 0.11880814284086227, 0.1618901938199997, -0.12164262682199478, -0.1106596440076828, -0.0631338432431221, 0.05542219802737236, 0.40068382024765015, 0.020576585084199905, -0.11960037052631378, 0.2616110146045685, 0.22047631442546844, 0.20985426008701324, -0.18238750100135803, -0.381121426820755, 0.14064165949821472, 0.2541768252849579, 0.3422207236289978, 0.1612042337656021, -0.051761213690042496, -0.07104212045669556, 0.21068798005580902, 0.06981821358203888, 0.29647189378738403, -0.2202174812555313, 0.33699125051498413, 0.25869524478912354, 0.007160666398704052, 0.13034909963607788, -0.08904758095741272, 0.3342758119106293, 0.4624049961566925, -0.006999403238296509, -0.2291436791419983, 0.17349456250667572, 0.4945876896381378, -0.18359032273292542, 0.1120685413479805, -0.17381390929222107, 0.026486679911613464, 0.24521668255329132, 0.05254191532731056, 0.32098111510276794, 0.30819758772850037, -0.11450054496526718, -0.08156610280275345, -0.015973877161741257, 0.009527694433927536, 0.15921248495578766, 0.07785560935735703, -0.050329066812992096, -0.21305006742477417, -0.26538947224617004, -0.23090879619121552, 0.08901195973157883, 0.15502363443374634, -0.3399503827095032, 0.5834517478942871, -0.09750130027532578, 0.149142324924469, -0.1184295117855072, 0.5539999008178711, 0.18605497479438782, 0.08966394513845444, 0.04707534983754158, 0.07833418250083923, 0.3469673991203308, -0.22844669222831726, 0.24334615468978882, 0.402532696723938, 0.28545528650283813, 0.274037629365921, 0.281191349029541, 0.03061598539352417, -0.1462978571653366, -0.23659786581993103, -0.02836940810084343, -0.11632709950208664, 0.19715099036693573, -0.30162644386291504, 0.21505092084407806, 0.21736903488636017, -0.07160436362028122, 0.2614811956882477, -0.0789000615477562, -0.045643892139196396, -0.4272863566875458, -0.01933862455189228, 0.03384653478860855, -0.2840414345264435, 0.14520379900932312, -0.04068894311785698, -0.008873081766068935, -0.3922977149486542, 0.1160329282283783, -0.0790729969739914, -0.09835933893918991, 0.02478218823671341, 0.07877426594495773, 0.2413949966430664, 0.3060615658760071, -0.12304463982582092, 0.12788142263889313, -0.018689317628741264, -0.19878582656383514, -0.26022228598594666, 0.04227980226278305, 0.09911789745092392, -0.130537211894989, -0.1737663298845291, 0.18834514915943146, 0.23803265392780304, 0.07598453015089035, 0.4585738182067871, 0.22357141971588135, 0.3961394727230072, 0.16712172329425812, -0.17096255719661713, 0.0779600441455841, 0.40454939007759094, -0.24395442008972168, 0.05886383354663849, -0.29132816195487976, 0.3434563875198364, 0.25999942421913147, 0.06568842381238937, -0.06036573275923729, 0.03359847888350487, -0.10451401770114899, -0.12723419070243835, 0.26583775877952576, 0.14401517808437347, 0.05299847573041916, -0.34524890780448914, 0.1761564016342163, -0.11529640108346939, -0.2272213101387024, -0.46544843912124634, 0.17026115953922272, 0.10337764769792557, 0.17340359091758728, -0.4425380229949951, -0.22234827280044556, 0.0486697256565094, -0.13155432045459747, 0.15970541536808014, 0.19923946261405945, -0.3781604766845703, 0.5593158006668091, -0.007578773889690638, -0.12051130831241608, -0.2674337923526764, -0.20302432775497437, 0.1023358479142189, -0.025929056107997894, 0.03338583558797836, -0.20701473951339722, 0.19935448467731476, 0.0469619482755661, -0.2782861888408661, -0.1676054298877716, -0.05602530390024185, 0.4199953079223633, 0.20593468844890594, -0.19585050642490387, -0.061831727623939514, 0.30069565773010254, 0.14442308247089386, -0.22987353801727295, 0.4396008849143982, -0.14569564163684845, -0.07543288171291351, -0.12326262891292572, 0.04330363869667053, -0.017035096883773804, -0.21580469608306885, -0.03517036512494087, -0.5163920521736145 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Actually it's doable but requires to update the `Dataset._data_files` schema to support this. I'm re-opening this since we may want to add this in the future
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
26
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Actually it's doable but requires to update the `Dataset._data_files` schema to support this. I'm re-opening this since we may want to add this in the future
[ -0.6200822591781616, 0.11323950439691544, -0.14977429807186127, 0.11423599720001221, 0.12572330236434937, 0.20324283838272095, 0.3956644833087921, 0.39590179920196533, -0.00395543547347188, 0.24560542404651642, -0.20390021800994873, 0.38265112042427063, -0.07559087127447128, 0.5006218552589417, -0.47172507643699646, -0.07975795865058899, 0.18354159593582153, 0.7113137245178223, -0.5424261689186096, -0.011765417642891407, -0.23666585981845856, 0.01135058980435133, -0.3396609127521515, -0.31876856088638306, -0.5360069870948792, 0.2311912178993225, -0.06106121093034744, 0.09879317879676819, -0.30079081654548645, -0.25307902693748474, 0.3102909028530121, 0.36444586515426636, 0.05710994824767113, 0.13876958191394806, -0.00010693979857023805, 0.07275442034006119, -0.08741060644388199, -0.18372751772403717, -0.26889485120773315, -0.2693294286727905, -0.5620734691619873, -0.2944658696651459, -0.07573475688695908, -0.05767437815666199, -0.04068494588136673, -0.3894329369068146, 0.02400677651166916, -0.36157792806625366, -0.04056806117296219, 0.15738654136657715, 0.2330460548400879, -0.01905461587011814, -0.1294500082731247, -0.21837221086025238, -0.02010171301662922, 0.3183133602142334, -0.07680421322584152, -0.17303146421909332, -0.12439027428627014, -0.02067856304347515, -0.0104134576395154, 0.18712769448757172, 0.14813879132270813, -0.1268916130065918, 0.04448102414608002, 0.1418749988079071, 0.33912816643714905, -0.46598324179649353, 0.16331671178340912, 0.41618987917900085, 0.4659191071987152, -0.18597976863384247, -0.20178468525409698, -0.03571229428052902, 0.09924360364675522, -0.15934130549430847, 0.06399796903133392, 0.28538864850997925, 0.13687321543693542, 0.3058355152606964, -0.01084196288138628, -0.10340483486652374, -0.31549355387687683, 0.24077653884887695, -0.24593950808048248, 0.5976787209510803, 0.13537658751010895, 0.09290672838687897, 0.08293416351079941, -0.23026427626609802, 0.164220929145813, -0.1872153878211975, -0.18418413400650024, 0.32171449065208435, -0.5415157675743103, -0.11994291096925735, -0.3733867406845093, -0.135084867477417, 0.3298954963684082, 0.24631930887699127, 0.20447595417499542, 0.04055102542042732, -0.19249394536018372, 0.24526312947273254, 0.23985043168067932, 0.024578901007771492, 0.4051346480846405, 0.1368653029203415, 0.04347270727157593, -0.2887253165245056, 0.21904303133487701, 0.09508920460939407, -0.3077250123023987, -0.6520459055900574, -0.3247910141944885, 0.025201622396707535, 0.03898309916257858, 0.19313228130340576, -0.10303128510713577, -0.14355313777923584, -0.0916430652141571, 0.10843253135681152, 0.05599121004343033, -0.08601219207048416, 0.22217701375484467, 0.7616554498672485, -0.053453948348760605, 0.19213910400867462, 0.17340686917304993, -0.27510905265808105, -0.17553794384002686, 0.18712183833122253, 0.11602243781089783, 0.017479307949543, 0.19046896696090698, -0.1842019259929657, -0.04497069865465164, 0.3144833743572235, 0.3391452133655548, 0.18271136283874512, 0.1533741056919098, -0.22094804048538208, 0.214946910738945, 0.27828431129455566, 0.0714067593216896, -0.09486827254295349, 0.05624135583639145, -0.16822189092636108, -0.014185547828674316, 0.31454774737358093, -0.12276162207126617, 0.03539004549384117, -0.4891717731952667, 0.20898930728435516, -0.20081301033496857, -0.04636445641517639, -0.24995379149913788, 0.33363547921180725, -0.10402905195951462, -0.05009082332253456, 0.02917921543121338, -0.017504675313830376, 0.07481888681650162, -0.11277472227811813, 0.16829617321491241, 0.10644123703241348, -0.28142043948173523, -0.06913553178310394, 0.18472249805927277, -0.41505178809165955, -0.07116914540529251, -0.013475396670401096, -0.03603541478514671, -0.31526365876197815, -0.1420890986919403, 0.24415506422519684, 0.4369240403175354, -0.41757261753082275, -0.09724939614534378, -0.029699811711907387, -0.22387756407260895, -0.12852813303470612, 0.24076659977436066, 0.1232248991727829, 0.16265708208084106, 0.12466353923082352, 0.12263351678848267, 0.16225188970565796, 0.034325115382671356, 0.00879483763128519, -0.04358427971601486, -0.2390638291835785, 0.38197240233421326, 0.16399087011814117, -0.07838824391365051, 0.12246805429458618, 0.1311323195695877, -0.48377829790115356, 0.48675626516342163, -0.3978930413722992, 0.2967706024646759, 0.14093033969402313, 0.20175087451934814, -0.42657116055488586, -0.014051226899027824, -0.08382491022348404, -0.5214064121246338, 0.08320343494415283, 0.08629665523767471, 0.2248169630765915, 0.06638333946466446, -0.2890554964542389, 0.03489778935909271, -0.2273237705230713, -0.06026081368327141, 0.05649574100971222, 0.20552682876586914, -0.004534888081252575, -0.12166837602853775, -0.15377052128314972, -0.3518800139427185, 0.37662622332572937, 0.15874871611595154, -0.11544834822416306, -0.11709902435541153, 0.26998138427734375, 0.1768975555896759, 0.13533009588718414, -0.05521098151803017, 0.22024695575237274, -0.008487572893500328, -0.14993175864219666, 0.25185760855674744, 0.5035163164138794, -0.29178357124328613, 0.06240064278244972, 0.2550007104873657, 0.20711159706115723, 0.09822965413331985, 0.008116843178868294, -0.16664659976959229, -0.4425744414329529, 0.05847502872347832, 0.04488277807831764, -0.10633961856365204, 0.620135486125946, -0.36998599767684937, 0.031468506902456284, -0.014405773021280766, 0.179300457239151, 0.3834829032421112, -0.043476592749357224, -0.4043263792991638, -0.3500218689441681, -0.04279316961765289, 0.35111886262893677, -0.13547702133655548, 0.2653810381889343, -0.18877927958965302, 0.11071283370256424, 0.2804252505302429, 0.07044870406389236, -0.08747805655002594, -0.2053278237581253, -0.20894750952720642, 0.12778009474277496, 0.3520626425743103, 0.10632114112377167, 0.3652786314487457, 0.35361331701278687, -0.1055605486035347, 0.16053743660449982, -0.2328374683856964, -0.03678794577717781, 0.160050168633461, -0.10951852798461914, 0.12940892577171326, 0.5694364309310913, 0.3345159590244293, -0.15476150810718536, -0.20279498398303986, -0.34469735622406006, 0.05457919090986252, 0.3210363984107971, -0.164470374584198, -0.12371622025966644, -0.3376924991607666, -0.0289662703871727, -0.02055644430220127, -0.22820870578289032, -0.1973007470369339, -0.1747501641511917, 0.009784084744751453, 0.12020283192396164, -0.0833282619714737, 0.5366838574409485, -0.28343039751052856, 0.36714163422584534, -0.14752976596355438, 0.045587923377752304, -0.08101911842823029, 0.11552862077951431, 0.15028592944145203, 0.15372182428836823, -0.09493132680654526, -0.06008736789226532, -0.05424097180366516, -0.15207982063293457, 0.16897358000278473, -0.20864902436733246, -0.02282979153096676, 0.07508055120706558, 0.0956631526350975, -0.4917033016681671, 0.13739170134067535, 0.05813710764050484, -0.16525046527385712, -0.031513772904872894, 0.11853262037038803, 0.4089575707912445, -0.10360825806856155, -0.0026438580825924873, -0.1406349390745163, 0.11247822642326355, -0.3971731960773468, -0.030006008222699165, -0.21585983037948608, -0.3724108338356018, 0.21062634885311127, 0.1946970522403717, 0.25741586089134216, 0.1328764706850052, 0.4780396819114685, -0.19409668445587158, -0.09097480773925781, -0.16977107524871826, -0.03095569834113121, -0.42459890246391296, 0.46168041229248047, -0.029839830473065376, -0.03710797429084778, 0.1607223004102707, -0.16197678446769714, 0.1664906144142151, 0.45153769850730896, 0.0763072818517685, -0.2016100287437439, 0.11022265255451202, 0.23750409483909607, -0.36465227603912354, 0.010189427062869072, 0.3265553116798401, 0.3919828236103058, -0.087771475315094, -0.1209307312965393, 0.15060152113437653, 0.30272406339645386, 0.008792931213974953, -0.2549474835395813, -0.2459108680486679, -0.1872352510690689, 0.2631951570510864, -0.12496409565210342, 0.327734112739563, -0.10826567560434341, 0.1255527138710022, -0.19949625432491302, 0.4069359600543976, 0.3109949231147766, -0.027698403224349022, -0.11799325793981552, 0.25705981254577637, 0.37704649567604065, -0.08900390565395355, 0.13652178645133972, 0.16336241364479065, -0.2239510715007782, 0.08213315159082413, -0.1582346111536026, -0.10310132801532745, 0.16203856468200684, -0.350624680519104, 0.23188365995883942, -0.2672056257724762, -0.11964970827102661, -0.27701056003570557, 0.10287079960107803, -0.13441671431064606, 0.20838037133216858, 0.022684359923005104, -0.10448425263166428, -0.21230395138263702, -0.12702897191047668, -0.26558274030685425, 0.24737173318862915, 0.11321229487657547, 0.20124734938144684, 0.3306744396686554, -0.05202210322022438, -0.2196614146232605, -0.06461042910814285, 0.8043145537376404, -0.1964733600616455, -0.2649790942668915, 0.27646446228027344, 0.18324191868305206, -0.2816004157066345, 0.05887150764465332, -0.0003231709997635335, 0.14112962782382965, -0.15001170337200165, 0.6463145017623901, -0.10536063462495804, -0.23497046530246735, 0.33379924297332764, 0.035672497004270554, -0.0269501693546772, 0.0496501661837101, 0.031354598701000214, 0.09736625850200653, -0.1070198118686676, -0.35965824127197266, 0.026089418679475784, 0.42664965987205505, -0.21644435822963715, -0.11249011009931564, -0.2984733283519745, -0.33051544427871704, 0.09206923842430115, 0.20179660618305206, 0.2636722922325134, 0.023803845047950745, -0.1854528933763504, 0.08432465046644211, -0.10850956290960312, 0.5909469723701477, 0.2734283208847046, -0.09026926755905151, -0.5555419921875, 0.016108505427837372, -0.21247977018356323, 0.3017387390136719, 0.044582970440387726, -0.04928918182849884, 0.09134770929813385, -0.23182909190654755, -0.08637478947639465, -0.06275427341461182, 0.22125409543514252, 0.07315163314342499, -0.03942849859595299, -0.538445234298706, -0.19156916439533234, 0.26793327927589417, 0.2278110831975937, -0.0005600657314062119, 0.3380996882915497, -0.06643135100603104, -0.37694206833839417, -0.05789344757795334, 0.001641457318328321, 0.7042239904403687, 0.196083202958107, 0.2802119851112366, -0.04526524618268013, -0.07345438003540039, 0.4230075180530548, -0.11596152186393738, 0.3017447292804718, -0.32291725277900696, -0.17127446830272675, -0.2338220775127411, -0.1116466075181961, 0.27873164415359497, 0.3182141184806824, -0.3091919720172882, -0.02272956445813179, -0.3546573519706726, 0.20636965334415436, -0.09920737147331238, 0.06840245425701141, -0.14147278666496277, -0.3997257351875305, -0.22924302518367767, 0.0932907909154892, -0.04624020308256149, -0.3588959276676178, -0.22430172562599182, -0.11414589732885361, -0.094437375664711, 0.03630225360393524, -0.11645881086587906, -0.016696983948349953, -0.04164415970444679, 0.053558800369501114, 0.14204663038253784, -0.2721470594406128, -0.16935427486896515, 0.1830173134803772, -0.019154025241732597, -0.016107669100165367, -0.08318143337965012, -0.03625588119029999, 0.07230497151613235, 0.1616733819246292, -0.019931461662054062, -0.0701218768954277, 0.03580338507890701, 0.1406969130039215, -0.12324580550193787, 0.08439456671476364, 0.1165631040930748, -0.22216108441352844, 0.08680366724729538, 0.13015952706336975, -0.26656630635261536, 0.0771881714463234, 0.019734788686037064, 0.09161651134490967, 0.12812799215316772, -0.16989865899085999, 0.1342814713716507, 0.16714756190776825, -0.128648579120636, -0.016501907259225845, -0.16499513387680054, -0.2615969479084015, -0.11773112416267395, 0.6089315414428711, 0.019570371136069298, -0.05707722157239914, 0.06211979314684868, 0.050390277057886124, -0.11098478734493256, -0.22989106178283691, 0.24891434609889984, 0.2228270322084427, -0.3753682076931, 0.15413162112236023, 0.16785377264022827, -0.20249943435192108, -0.18075700104236603, 0.3313973546028137, 0.06070888414978981, 0.4667712450027466, 0.021350931376218796, -0.34340140223503113, -0.38061827421188354, 0.1042632982134819, 0.11552070081233978, 0.2782462239265442, -0.027832012623548508, 0.2225755900144577, -0.18138635158538818, -0.36366990208625793, -0.3565866947174072, -0.0849393680691719, -0.00040075345896184444, -0.012431411072611809, 0.0026949162129312754, 0.105058453977108, -0.149224191904068, -0.09496814757585526, 0.2796122431755066, 0.04008949175477028, -0.11533965915441513, -0.27591586112976074, -0.06862930953502655, 0.08151505887508392, 0.14143788814544678, -0.24600230157375336, 0.1420930027961731, 0.02048017457127571, -0.4042540490627289, -0.34315866231918335, 0.06983914226293564, 0.4484337866306305, -0.2318345606327057, 0.10610216856002808, 0.022323742508888245, -0.01609131507575512, 0.0974612608551979, -0.1148722916841507, 0.18491381406784058, -0.12000972777605057, -0.134199321269989, 0.361634224653244, -0.0978320986032486, -0.038858819752931595, -0.0022238269448280334, 0.1870056837797165, 0.09688159823417664, 0.07984033972024918, -0.09282383322715759, -0.07402212172746658, -0.01724736951291561, 0.17595034837722778, 0.43401065468788147, 0.1533679962158203, -0.06402671337127686, 0.24201332032680511, 0.10946296155452728, 0.30314385890960693, -0.21272654831409454, -0.35323646664619446, 0.22204798460006714, 0.3588957190513611, 0.3141602575778961, 0.055817265063524246, -0.09080356359481812, -0.2506691515445709, 0.06781046837568283, 0.050198446959257126, 0.20477773249149323, -0.1698729693889618, 0.383469820022583, 0.4358232319355011, -0.029431616887450218, 0.12614493072032928, -0.013648949563503265, 0.2723965644836426, 0.4389002323150635, 0.3103131353855133, -0.11436263471841812, 0.13300961256027222, 0.5196548700332642, -0.21225972473621368, -0.17847605049610138, -0.2728997766971588, -0.06400084495544434, 0.2034418284893036, -0.0655437484383583, 0.07500182837247849, 0.2460418939590454, -0.1240108385682106, -0.06996028125286102, -0.0658298134803772, 0.0619359090924263, 0.06396544724702835, -0.08222111314535141, -0.11665552854537964, -0.2260534167289734, -0.29816851019859314, -0.1549360603094101, -0.002258420456200838, 0.09141726791858673, -0.16445627808570862, 0.4076092541217804, -0.13689707219600677, 0.07259368896484375, -0.17497636377811432, 0.5676482915878296, 0.30372354388237, 0.014508131891489029, 0.08085024356842041, -0.02716410532593727, 0.42705562710762024, -0.06632473319768906, 0.30737248063087463, 0.22127075493335724, 0.27427545189857483, 0.29302501678466797, 0.2621854245662689, -0.1128532811999321, -0.2860123813152313, -0.11866829544305801, -0.11901970952749252, -0.127604141831398, 0.19036640226840973, -0.20013676583766937, 0.2976948916912079, 0.2840935289859772, -0.1369679570198059, 0.19182375073432922, -0.11676669865846634, 0.057209521532058716, -0.49396371841430664, -0.061162613332271576, 0.01960074156522751, -0.30986329913139343, 0.1819336712360382, -0.06790150701999664, 0.051944173872470856, -0.4709717929363251, 0.06412467360496521, 0.11469990760087967, 0.057492729276418686, 0.031081143766641617, 0.1373213231563568, 0.14973261952400208, 0.26654306054115295, -0.19257768988609314, 0.07497888058423996, -0.10779882222414017, -0.1571923792362213, -0.30306345224380493, -0.012172969989478588, 0.18112316727638245, -0.12737959623336792, -0.21982112526893616, 0.14202286303043365, 0.16405519843101501, -0.01863199472427368, 0.3866998553276062, 0.30288460850715637, 0.4080856144428253, 0.17490115761756897, -0.20606963336467743, 0.08165618777275085, 0.21374982595443726, -0.15755079686641693, 0.026162367314100266, -0.3309258818626404, 0.2674066126346588, 0.3030880391597748, 0.1588626354932785, 0.015620850026607513, 0.057456329464912415, -0.0373791866004467, -0.2359870970249176, 0.19221073389053345, 0.19374901056289673, 0.16853651404380798, -0.2342081516981125, 0.24914616346359253, -0.28905007243156433, -0.16454607248306274, -0.46676895022392273, 0.220982164144516, 0.08362309634685516, 0.23953132331371307, -0.3569459319114685, -0.14981569349765778, 0.08172941207885742, -0.12760646641254425, 0.09640605002641678, 0.3045395612716675, -0.3017326295375824, 0.5580816268920898, 0.1114964634180069, -0.15564484894275665, -0.2687893807888031, -0.10301057249307632, 0.05349944159388542, -0.0644032210111618, 0.005962615832686424, -0.19045832753181458, 0.16490060091018677, 0.06151082366704941, -0.39338546991348267, -0.24259233474731445, 0.009496764279901981, 0.26827898621559143, 0.16111937165260315, -0.08598065376281738, -0.11583142727613449, 0.3000071346759796, 0.07288749516010284, -0.30066701769828796, 0.17875543236732483, -0.20949289202690125, -0.07936880737543106, -0.12681512534618378, 0.010035340674221516, 0.011526921764016151, -0.25177040696144104, -0.10315147042274475, -0.4564328193664551 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows.
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
40
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows.
[ -0.34840500354766846, -0.035173818469047546, -0.12199411541223526, 0.06049705669283867, 0.17259714007377625, 0.09185498207807541, 0.38405120372772217, 0.3609429597854614, 0.016933154314756393, 0.36198171973228455, 0.0030049823690205812, 0.49733003973960876, -0.15670986473560333, 0.5172733068466187, -0.35656970739364624, -0.16619007289409637, 0.17760004103183746, 0.7238049507141113, -0.4239698350429535, 0.011939410120248795, -0.25134798884391785, 0.00030205093207769096, -0.40318748354911804, -0.17890314757823944, -0.3692490756511688, 0.23985104262828827, -0.0626373365521431, -0.14796997606754303, -0.15306243300437927, -0.31122899055480957, 0.3284263014793396, 0.08787109702825546, 0.1952238231897354, 0.012288922443985939, -0.00011919980897800997, -0.010859220288693905, 0.04155370965600014, -0.11257907748222351, -0.24536490440368652, -0.3221571147441864, -0.4053151607513428, -0.4979773759841919, 0.22715622186660767, -0.03784416615962982, -0.03906641900539398, -0.5209640860557556, -0.13104400038719177, -0.43877217173576355, -0.030399393290281296, 0.2519807517528534, 0.17729318141937256, -0.02980947680771351, -0.07088827341794968, -0.0822858214378357, 0.0069348011165857315, 0.2928197979927063, -0.2658255398273468, -0.27998319268226624, -0.10531006753444672, -0.19822633266448975, 0.12269517779350281, 0.2715042531490326, 0.11518149077892303, -0.05908956006169319, 0.12439557164907455, 0.1927008032798767, 0.4056866765022278, -0.5003893375396729, 0.12885861098766327, 0.32485753297805786, 0.5749335289001465, -0.27336785197257996, -0.15512442588806152, -0.09962553530931473, 0.4653518795967102, -0.07417258620262146, -0.0730668380856514, 0.162995845079422, 0.05002161115407944, 0.19060547649860382, 0.13513065874576569, -0.10572272539138794, -0.3829081356525421, 0.3393304944038391, -0.07983876019716263, 0.5351192951202393, 0.05467323213815689, 0.1881551593542099, 0.22901012003421783, -0.10053578019142151, 0.2734648585319519, -0.022001871839165688, -0.08823000639677048, 0.48765942454338074, -0.7353635430335999, -0.056552302092313766, -0.18425805866718292, -0.14950238168239594, 0.07951433211565018, 0.24215565621852875, 0.2245159149169922, 0.09265078604221344, 0.02139359526336193, 0.09125205129384995, 0.23509755730628967, 0.22462806105613708, 0.3509427607059479, 0.3787027895450592, -0.03251152113080025, -0.24379828572273254, 0.3597431480884552, 0.042539581656455994, -0.3643558621406555, -0.5424803495407104, 0.01701267622411251, 0.01819019205868244, 0.2261972427368164, 0.12265072762966156, 0.023937594145536423, -0.22093163430690765, -0.11896499991416931, 0.08707115799188614, 0.05089597776532173, 0.02518797479569912, 0.14603649079799652, 0.9004560708999634, 0.01208223681896925, 0.3414286971092224, 0.22950507700443268, 0.013756421394646168, -0.11397858709096909, 0.056918129324913025, 0.14382442831993103, -0.05562416464090347, 0.20488795638084412, -0.09139035642147064, -0.21960996091365814, 0.38844743371009827, 0.2302762269973755, 0.05500400811433792, 0.14919273555278778, -0.20470701158046722, 0.32192516326904297, 0.2805393934249878, -0.0968058854341507, -0.12616592645645142, 0.2055715024471283, 0.062370821833610535, -0.05579068884253502, 0.47118327021598816, -0.23143638670444489, -0.10007277876138687, -0.46516934037208557, 0.09417745471000671, -0.10469741374254227, 0.015328085981309414, -0.19062335789203644, 0.29599788784980774, -0.185952827334404, -0.0435078926384449, 0.18762245774269104, -0.03578457236289978, 0.2972145080566406, -0.1553344577550888, 0.16128386557102203, 0.004932005889713764, -0.3409695029258728, -0.1471397429704666, 0.09101326763629913, -0.38763245940208435, 0.05346217378973961, -0.2109616994857788, -0.13836383819580078, -0.35262125730514526, 0.03159085661172867, 0.07572799921035767, 0.5826779007911682, -0.3446735143661499, -0.05540983006358147, -0.08609966933727264, -0.23287254571914673, -0.11882122606039047, 0.2510833144187927, 0.08483681827783585, 0.15635329484939575, 0.3511500954627991, 0.05672425404191017, 0.11574459075927734, 0.15500043332576752, 0.06018450856208801, -0.031086651608347893, -0.29495730996131897, 0.36114975810050964, 0.08459435403347015, -0.1838749796152115, 0.18723054230213165, 0.14515873789787292, -0.6566543579101562, 0.4483215808868408, -0.2873111665248871, 0.2504688799381256, 0.06725747883319855, 0.28596046566963196, -0.382187157869339, 0.1760791689157486, 0.011500312946736813, -0.5103510618209839, 0.009330306202173233, 0.07092195004224777, 0.09391195327043533, -0.12795481085777283, -0.18968820571899414, 0.0881054550409317, -0.05016334727406502, -0.0020476889330893755, 0.13323713839054108, 0.074665367603302, -0.1537555456161499, -0.01375203300267458, -0.0632731094956398, -0.5141730308532715, 0.2657356560230255, 0.03697296604514122, -0.05854412168264389, 0.07478170841932297, 0.12933097779750824, 0.3989728093147278, 0.01047245692461729, -0.05074946582317352, 0.25130200386047363, -0.03050636313855648, 0.002640947001054883, 0.10379081219434738, 0.4819202423095703, -0.2660456895828247, 0.05952465906739235, 0.07923997193574905, 0.10765012353658676, -0.007667615544050932, 0.15808430314064026, -0.022120125591754913, -0.44099175930023193, 0.12428073585033417, 0.07623157650232315, -0.04129936173558235, 0.6403241157531738, -0.35759979486465454, 0.3346836566925049, -0.11004357784986496, 0.1808680295944214, 0.16153523325920105, 0.023188505321741104, -0.42582449316978455, -0.40882110595703125, -0.012621579691767693, 0.04843953996896744, -0.043607402592897415, 0.05585017055273056, -0.14315064251422882, 0.1709870547056198, 0.11257406324148178, 0.12620021402835846, 0.051908228546381, 0.0012857859255746007, -0.15228159725666046, 0.12397957593202591, 0.3801650106906891, 0.17823638021945953, 0.3607863485813141, 0.2986893057823181, -0.25550997257232666, 0.0794033631682396, -0.26339560747146606, 0.007509761955589056, 0.1795024424791336, -0.10098867118358612, 0.17623946070671082, 0.4263390600681305, 0.3166388273239136, -0.24781601130962372, -0.040193770080804825, -0.28580737113952637, -0.08061925321817398, 0.3229052722454071, -0.19344811141490936, -0.05636906996369362, -0.29103943705558777, 0.04930034279823303, -0.05000723898410797, -0.2946995198726654, -0.021171115338802338, -0.11205414682626724, -0.15543147921562195, -0.03641553968191147, -0.019330553710460663, 0.374175101518631, -0.4930702745914459, 0.3559170961380005, -0.24697794020175934, -0.13393902778625488, -0.13795369863510132, 0.00901744980365038, 0.16224297881126404, 0.04725031182169914, -0.3723030984401703, -0.013979927636682987, -0.18441587686538696, 0.14610131084918976, 0.30583271384239197, -0.09483886510133743, 0.10299048572778702, 0.008904795162379742, 0.037065692245960236, -0.5876757502555847, 0.10670151561498642, 0.02694195695221424, -0.20696189999580383, -0.04093142971396446, 0.11772696673870087, 0.2338816225528717, 0.11255601048469543, 0.2097991704940796, -0.01096461620181799, 0.14048852026462555, -0.25927892327308655, 0.0035887304693460464, -0.29878005385398865, -0.26820555329322815, 0.24319417774677277, 0.16827796399593353, 0.25701257586479187, -0.025057047605514526, 0.5799673795700073, -0.08925709128379822, -0.13763312995433807, -0.18500769138336182, -0.008202681317925453, -0.2557295262813568, 0.485234797000885, 0.11048728972673416, 0.10256880521774292, 0.09954366087913513, -0.08627000451087952, 0.046719375997781754, 0.4133319556713104, 0.053407736122608185, -0.14455841481685638, 0.05279121547937393, 0.21727076172828674, -0.5132228136062622, 0.16163335740566254, 0.47023528814315796, 0.5106550455093384, -0.031023133546113968, -0.04330871254205704, 0.18094761669635773, 0.21718229353427887, 0.0877055674791336, -0.21572326123714447, -0.19195471704006195, -0.07501272112131119, 0.04241116717457771, -0.17686529457569122, 0.37415167689323425, 0.04405536130070686, 0.15846620500087738, -0.2632230818271637, 0.4001305103302002, 0.2265395075082779, -0.12075480073690414, -0.23254601657390594, 0.14977671205997467, 0.43596285581588745, -0.25467437505722046, 0.07109419256448746, -0.062402453273534775, -0.2544451355934143, -0.03847673907876015, -0.09938834607601166, -0.03693839907646179, 0.2689312696456909, -0.46028441190719604, 0.3100154399871826, -0.3693748414516449, 0.05723261833190918, -0.3677939772605896, 0.07366260886192322, -0.1651507467031479, 0.08350787311792374, -0.00034032727126032114, -0.1691702902317047, -0.06507442146539688, -0.35783979296684265, -0.35933494567871094, 0.2574380040168762, 0.06951694935560226, 0.3801540434360504, 0.3835250437259674, -0.15534918010234833, -0.02047499269247055, -0.08368349075317383, 0.5714021325111389, -0.15620499849319458, -0.4705396294593811, 0.27250197529792786, 0.22940003871917725, -0.3887172341346741, 0.054817650467157364, -0.09530004858970642, 0.16696514189243317, -0.5454441905021667, 0.5598390102386475, -0.0703081265091896, -0.21775326132774353, 0.4023016095161438, 0.11582957208156586, 0.09911855310201645, 0.0258426945656538, -0.06983809918165207, 0.321097731590271, -0.08308593183755875, -0.2661028206348419, -0.171746626496315, 0.3820987343788147, -0.11906703561544418, -0.09104476869106293, -0.39857885241508484, -0.40914252400398254, -0.08848321437835693, 0.22395622730255127, 0.3877202570438385, -0.06405573338270187, -0.25568315386772156, 0.27027952671051025, -0.33327019214630127, 0.3518725633621216, 0.1304444968700409, 0.03500822186470032, -0.5236518979072571, -0.046870578080415726, -0.11965646594762802, 0.43372130393981934, -0.02208143100142479, -0.22081154584884644, 0.27702340483665466, -0.2694501280784607, 0.12677353620529175, 0.052156511694192886, -0.13384346663951874, 0.16651803255081177, -0.009745210409164429, -0.4315808415412903, -0.21915686130523682, 0.3486346900463104, 0.13537029922008514, 0.008424276486039162, 0.6973345279693604, 0.08338631689548492, -0.25659334659576416, -0.025285104289650917, -0.07337608188390732, 0.7857348322868347, 0.31514137983322144, 0.12897928059101105, 0.11360350251197815, -0.1776086390018463, 0.33528876304626465, -0.0529927983880043, 0.3411022126674652, -0.27411648631095886, 0.05708113685250282, -0.2420928180217743, -0.0834379643201828, 0.40213093161582947, 0.18420365452766418, -0.38461002707481384, -0.0006985105574131012, -0.4704168438911438, 0.043436091393232346, -0.09100942313671112, -0.034900225698947906, -0.06108410656452179, -0.433759480714798, -0.3539840877056122, 0.01923886500298977, -0.0836390033364296, -0.2131674587726593, -0.1475098729133606, -0.06586092710494995, -0.09817470610141754, 0.015809139236807823, -0.1265793740749359, 0.022488363087177277, -0.12427357584238052, 0.02678118646144867, 0.20640379190444946, -0.49681246280670166, -0.16664616763591766, 0.074886254966259, -0.1950949728488922, -0.0776568353176117, -0.10205353051424026, -0.14429883658885956, 0.21816502511501312, 0.15472565591335297, 0.06758712977170944, -0.10689418017864227, -0.09027170389890671, 0.17113091051578522, -0.41065895557403564, 0.2953501045703888, 0.07859855145215988, -0.35632872581481934, 0.21576599776744843, 0.13516132533550262, -0.21140503883361816, 0.01754745841026306, -0.04760794714093208, 0.17754998803138733, 0.19619140028953552, -0.13086238503456116, 0.1118999645113945, 0.24567192792892456, -0.05131204053759575, 0.05921957269310951, -0.07758213579654694, -0.41959840059280396, -0.1293427050113678, 0.5261605381965637, 0.04399053379893303, 0.07120417803525925, 0.15827332437038422, -0.04396924749016762, -0.11548454314470291, -0.19957801699638367, 0.21845974028110504, 0.31228941679000854, -0.48854953050613403, 0.10142888873815536, 0.34938859939575195, -0.17196284234523773, -0.11156199127435684, 0.2508734464645386, -0.1002793088555336, 0.5149911046028137, -0.31745585799217224, -0.3425138592720032, -0.2884976863861084, 0.1409837007522583, 0.26144927740097046, 0.14165203273296356, -0.19290226697921753, 0.05576052889227867, -0.05285032466053963, -0.33490487933158875, -0.24675589799880981, -0.22350876033306122, 0.10847904533147812, 0.03673737496137619, -0.05511465296149254, 0.17018461227416992, -0.03152305260300636, -0.13214805722236633, 0.21102111041545868, -0.05664832144975662, 0.0468345582485199, -0.21089783310890198, -0.0269656702876091, 0.11976619064807892, 0.03794056922197342, -0.19670437276363373, -0.025689266622066498, -0.21141335368156433, -0.42158111929893494, -0.30057454109191895, -0.05777375400066376, 0.39006906747817993, -0.29331421852111816, 0.1927303671836853, 0.007389355450868607, -0.12622247636318207, 0.05843708664178848, -0.13330517709255219, 0.10637769103050232, -0.2697787880897522, -0.12907356023788452, 0.3115583658218384, -0.014694759622216225, -0.023992087692022324, -0.11535041779279709, 0.1420271098613739, -0.0804172158241272, 0.15084679424762726, -0.10094231367111206, -0.017898602411150932, 0.10608145594596863, 0.004338870290666819, 0.21452724933624268, 0.19858001172542572, 0.06959006935358047, 0.13785547018051147, 0.11965498328208923, 0.1944483071565628, -0.25508975982666016, -0.3299838602542877, -0.12215351313352585, 0.4712212085723877, 0.26623642444610596, 0.08894605934619904, -0.3071511685848236, -0.17146742343902588, 0.25307247042655945, -0.035003434866666794, -0.0061059375293552876, -0.3235417902469635, 0.385797381401062, 0.5572222471237183, 0.11795572936534882, 0.05958881974220276, 0.03969832882285118, 0.14062274992465973, 0.3361611068248749, 0.1338009238243103, -0.19476044178009033, 0.011188379488885403, 0.6011154055595398, -0.19567924737930298, -0.324470579624176, -0.22755014896392822, -0.17713268101215363, 0.0576401986181736, -0.35207754373550415, 0.02590183913707733, 0.25340980291366577, 0.0475102998316288, 0.0037972687277942896, 0.038211941719055176, 0.00471776258200407, -0.04910045117139816, -0.03331159055233002, -0.15320947766304016, -0.1339416801929474, -0.1807444542646408, -0.03900934010744095, -0.16341209411621094, -0.008154590614140034, -0.03645053133368492, 0.5291036367416382, -0.012298173271119595, 0.12848345935344696, -0.2611061930656433, 0.6372095346450806, 0.4024978578090668, 0.2966766357421875, 0.14721091091632843, -0.0721084475517273, 0.2510967552661896, 0.12263740599155426, 0.14056243002414703, 0.10094204545021057, 0.22811730206012726, 0.35084062814712524, 0.19492924213409424, -0.010588104836642742, -0.1840800791978836, -0.15235084295272827, 0.11539999395608902, -0.054216526448726654, 0.2688619792461395, -0.15540942549705505, 0.037320107221603394, 0.2149941325187683, -0.12380985915660858, 0.192307710647583, -0.26102423667907715, 0.04077041521668434, -0.5898832678794861, 0.23872780799865723, 0.05487387999892235, -0.34070730209350586, 0.044792935252189636, 0.13098065555095673, 0.10031504184007645, -0.2478528469800949, 0.104453906416893, 0.12096034735441208, -0.22258298099040985, -0.08952011913061142, 0.084197498857975, 0.11509580165147781, 0.3001422882080078, -0.37387213110923767, 0.1910102516412735, -0.17730237543582916, -0.04354805499315262, -0.17618438601493835, -0.12033754587173462, 0.029822515323758125, -0.2808212339878082, -0.03484036400914192, 0.15664929151535034, 0.15484397113323212, -0.01428390946239233, 0.4911925196647644, 0.356431782245636, 0.2708086669445038, 0.11973171681165695, -0.17299935221672058, 0.11041341722011566, 0.19084709882736206, 0.0002536432002671063, 0.011730342172086239, -0.4289303421974182, 0.3420020043849945, 0.27951207756996155, 0.053521107882261276, 0.0645606741309166, 0.077707439661026, 0.004103717859834433, -0.17863062024116516, 0.41604354977607727, -0.009112644009292126, 0.022723853588104248, -0.056351736187934875, 0.3888116776943207, -0.3106715977191925, -0.12445399910211563, -0.28365230560302734, 0.38059255480766296, 0.12529103457927704, 0.0776672437787056, -0.31223657727241516, -0.17566241323947906, 0.06847470253705978, -0.1056557148694992, 0.0410502627491951, 0.3822815716266632, -0.03771968185901642, 0.5629076361656189, 0.2832455039024353, -0.16166478395462036, -0.33426764607429504, -0.2283577173948288, 0.1190137192606926, -0.050876546651124954, 0.004864179063588381, -0.1859397143125534, 0.04428200423717499, 0.0811179056763649, -0.40084323287010193, -0.09347634017467499, 0.19428206980228424, 0.29487842321395874, 0.04563900828361511, -0.3090921938419342, -0.11783497780561447, 0.20985645055770874, 0.11423957347869873, -0.259425550699234, 0.16079042851924896, -0.13148729503154755, 0.12610960006713867, -0.06999819725751877, 0.14057259261608124, -0.054675523191690445, 0.0712314173579216, -0.19712002575397491, -0.47692540287971497 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help ! Here is a few things about the current implementation: - A dataset object is a wrapper of one `pyarrow.Table` that contains the data - Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc. Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :) However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0). Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0. I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support.
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
230
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help ! Here is a few things about the current implementation: - A dataset object is a wrapper of one `pyarrow.Table` that contains the data - Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc. Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :) However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0). Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0. I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support.
[ -0.5330210328102112, 0.3033458888530731, -0.03016406111419201, 0.06750287860631943, -0.06257548183202744, -0.05822201818227768, 0.20944669842720032, 0.42557013034820557, -0.07458484172821045, 0.1827806532382965, -0.18690884113311768, 0.7275902628898621, -0.15993748605251312, 0.5724500417709351, -0.21956469118595123, -0.2587186396121979, 0.1644587218761444, 0.6102406978607178, -0.5832627415657043, 0.2564372718334198, -0.2590906322002411, -0.10352735221385956, -0.390878826379776, -0.20353089272975922, -0.47958603501319885, 0.2016783505678177, -0.27372080087661743, -0.04901554808020592, -0.27964669466018677, -0.32533809542655945, 0.31250813603401184, 0.23971638083457947, 0.1502649337053299, 0.2005508840084076, -0.0001199671023641713, 0.13694384694099426, -0.1574162244796753, -0.14259953796863556, -0.20511214435100555, -0.34256431460380554, -0.2079402357339859, -0.4237651824951172, 0.11098479479551315, 0.021435221657156944, 0.050925981253385544, -0.39943936467170715, 0.011584225110709667, -0.20948182046413422, -0.08471783995628357, 0.010630922392010689, 0.10653847455978394, 0.20309555530548096, 0.14042508602142334, -0.03211073949933052, 0.1800277680158615, 0.25321656465530396, -0.2782602310180664, -0.0167419221252203, 0.1530691236257553, -0.2789534628391266, -0.06802079826593399, 0.04278355836868286, 0.0780206248164177, -0.1596895307302475, -0.11548873782157898, 0.22641223669052124, -0.01716233231127262, -0.4759061336517334, 0.009978702291846275, 0.3201737701892853, 0.5716278553009033, -0.46084967255592346, -0.367782860994339, -0.23388166725635529, 0.25345492362976074, -0.22183765470981598, 0.0001269412023248151, 0.37506434321403503, 0.01677091419696808, 0.23716895282268524, 0.1775350570678711, -0.05728641152381897, -0.3395478427410126, 0.24117156863212585, -0.019035642966628075, 0.434515118598938, 0.19109421968460083, 0.2638535499572754, 0.23803085088729858, 0.06643439084291458, 0.14777719974517822, -0.04721866175532341, 0.009313249960541725, 0.3843122720718384, -0.560468316078186, -0.05748757719993591, -0.0918806791305542, -0.23312272131443024, 0.31749534606933594, 0.39007872343063354, 0.15426117181777954, 0.1787298619747162, -0.21723823249340057, 0.18004688620567322, 0.34432145953178406, 0.08064818382263184, 0.12062516063451767, 0.10886425524950027, 0.0886458083987236, -0.35766568779945374, 0.22691279649734497, 0.16562962532043457, -0.25266289710998535, -0.4635509252548218, -0.1971265822649002, 0.0083360206335783, 0.08765585720539093, 0.3238954544067383, 0.035936322063207626, -0.1849304437637329, -0.14398282766342163, -0.025348154827952385, -0.036829616874456406, -0.015486211515963078, 0.04731937125325203, 0.6687628626823425, -0.08775229752063751, 0.3547268509864807, 0.05814460292458534, -0.22637085616588593, 0.02418973669409752, 0.15497621893882751, -0.11721429973840714, 0.01836135983467102, 0.282097190618515, -0.21734395623207092, -0.17620469629764557, 0.3253815174102783, 0.21790263056755066, 0.33565348386764526, 0.14472530782222748, -0.35210829973220825, 0.20805859565734863, 0.26067274808883667, 0.02591981552541256, -0.2390609234571457, 0.1745022088289261, -0.2554287910461426, -0.1124652773141861, 0.5075592398643494, -0.08099884539842606, -0.1647178828716278, -0.595024824142456, -0.04522661864757538, -0.272487610578537, 0.03835562989115715, -0.43685415387153625, 0.4114597737789154, -0.12371715903282166, -0.11929801106452942, -0.050704993307590485, -0.07701358199119568, 0.1889907717704773, -0.36731845140457153, 0.19486793875694275, 0.16208292543888092, -0.4798494577407837, 0.06677251309156418, 0.27553072571754456, -0.26650822162628174, 0.16133326292037964, -0.09319869428873062, -0.13690878450870514, -0.1783178150653839, -0.025108803063631058, 0.4001128673553467, 0.3169252574443817, -0.1422615349292755, -0.12864373624324799, -0.22779212892055511, -0.16533267498016357, 0.09837253391742706, 0.29615214467048645, 0.1404910832643509, 0.02277684397995472, 0.2862355709075928, 0.030266016721725464, 0.19919972121715546, 0.08262763172388077, 0.030240310356020927, -0.026612326502799988, -0.27150893211364746, 0.433552086353302, 0.2305368185043335, -0.0026208197232335806, 0.01659330166876316, 0.20312660932540894, -0.844197690486908, 0.46413445472717285, -0.3334350883960724, 0.3690652847290039, -0.123921237885952, 0.29490652680397034, -0.22969616949558258, -0.0010067560942843556, -0.22396676242351532, -0.5165884494781494, 0.22832611203193665, 0.009054239839315414, 0.3067687749862671, -0.08041034638881683, -0.2215370535850525, 0.23352371156215668, -0.002000016625970602, -0.07993976771831512, 0.08084885776042938, -0.016499614343047142, -0.05487506464123726, 0.16996300220489502, -0.1656712293624878, -0.48165395855903625, 0.23820184171199799, 0.10831532627344131, -0.07152916491031647, -0.07733961939811707, 0.37133604288101196, 0.15702484548091888, -0.0870872512459755, -0.17436961829662323, 0.36151862144470215, -0.018146764487028122, -0.02060570754110813, 0.32962480187416077, 0.46353355050086975, -0.1377493143081665, -0.16791823506355286, 0.100197434425354, 0.10872415453195572, -0.02094307914376259, 0.052941691130399704, -0.02779817394912243, -0.6245057582855225, 0.187019944190979, 0.05022880434989929, 0.09454897791147232, 0.7123308777809143, -0.30656251311302185, 0.07651657611131668, 0.01548744086176157, 0.05442144349217415, 0.2053554356098175, 0.04871007055044174, -0.23585589230060577, -0.20406772196292877, -0.06400390714406967, 0.4038102328777313, -0.12818709015846252, 0.16969603300094604, -0.5598099827766418, 0.1875675767660141, 0.33180540800094604, 0.057681385427713394, 0.06055327504873276, -0.02586769498884678, -0.06261667609214783, -0.010133999399840832, 0.2175334393978119, -0.04405605047941208, 0.4475497603416443, 0.28909432888031006, -0.02747187577188015, 0.034354984760284424, -0.32886770367622375, 0.030278204008936882, 0.12461864948272705, -0.11248850077390671, 0.14105892181396484, 0.48018112778663635, 0.3467622399330139, -0.09327615052461624, -0.0006993351853452623, -0.2700634300708771, 0.1327163130044937, 0.27615445852279663, -0.2611796259880066, -0.16467751562595367, -0.5461022257804871, 0.10187201201915741, -0.1480007767677307, -0.45102986693382263, -0.006099702790379524, -0.065249003469944, -0.008343062363564968, 0.1660655438899994, -0.12945400178432465, 0.39923912286758423, -0.312102735042572, 0.31034427881240845, -0.4550040364265442, 0.009177892468869686, -0.13864760100841522, -0.07531775534152985, 0.07938448339700699, 0.023025715723633766, 0.0066540134139359, -0.12593333423137665, -0.1095995157957077, 0.0941338911652565, 0.10091014951467514, -0.11673762649297714, -0.09248044341802597, 0.04725426062941551, -0.11761373281478882, -0.25933837890625, 0.15836119651794434, -0.0850251317024231, -0.18460144102573395, -0.16187167167663574, 0.05966973304748535, 0.28990742564201355, -0.17023421823978424, 0.16354309022426605, -0.048060640692710876, 0.14157667756080627, -0.26361244916915894, -0.15413889288902283, -0.3244236409664154, -0.2585848271846771, 0.4762251377105713, 0.08165035396814346, 0.2547369599342346, 0.029735108837485313, 0.4941403865814209, -0.0699387639760971, 0.005818880163133144, -0.05658703297376633, 0.06859683990478516, -0.2480999231338501, 0.4400026202201843, -0.07902529835700989, -0.13341385126113892, 0.05097414553165436, -0.26915568113327026, 0.030182568356394768, 0.3969056010246277, 0.06434211879968643, -0.044286761432886124, -0.003954404499381781, 0.581006646156311, -0.27968311309814453, 0.2266361117362976, 0.4895675480365753, 0.5526221990585327, 0.0019506231183186173, -0.03659782186150551, -0.0019030815456062555, 0.15316058695316315, 0.21481597423553467, -0.35286790132522583, -0.044439125806093216, -0.20587638020515442, 0.27250418066978455, 0.2232828140258789, 0.07413933426141739, -0.05531848594546318, 0.45796093344688416, -0.22359256446361542, 0.4109117388725281, 0.13311134278774261, -0.10935914516448975, -0.1176004409790039, -0.193219855427742, 0.4728286564350128, -0.2240554839372635, 0.029425211250782013, -0.038261573761701584, -0.2882137596607208, 0.07382266223430634, -0.3293471038341522, 0.0006594776641577482, 0.3874141275882721, -0.23220646381378174, 0.16984370350837708, -0.24076208472251892, -0.14992420375347137, -0.3715633749961853, 0.11804787814617157, -0.2668704092502594, 0.006068224553018808, 0.10967069119215012, -0.20999176800251007, -0.18682168424129486, -0.41372475028038025, -0.43798235058784485, 0.2904352843761444, 0.23372039198875427, 0.15374822914600372, 0.43241244554519653, -0.29063546657562256, -0.03644140064716339, -0.16388890147209167, 0.8776164650917053, -0.047124769538640976, -0.4652525782585144, 0.30306437611579895, 0.0765908882021904, -0.35063639283180237, 0.04727010428905487, 0.048173896968364716, 0.3198091387748718, -0.3462212383747101, 0.31920409202575684, -0.2881578803062439, -0.22756542265415192, 0.3936281204223633, 0.19903407990932465, 0.08159227669239044, 0.08937147259712219, -0.13402415812015533, 0.07996941357851028, -0.05849684402346611, -0.268522709608078, -0.0878792405128479, 0.4243330657482147, -0.30545535683631897, -0.04231977462768555, -0.30291008949279785, -0.22516638040542603, -0.06799464672803879, 0.2495983988046646, 0.3446755111217499, 0.014223392121493816, 0.05594935640692711, -0.038430579006671906, -0.09308486431837082, 0.5758809447288513, 0.36566269397735596, -0.1264248490333557, -0.34386351704597473, -0.04236545413732529, -0.07917298376560211, 0.46787622570991516, -0.10071949660778046, 0.0841263011097908, 0.34104031324386597, -0.2884053885936737, -0.04564959555864334, -0.13051371276378632, -0.07454486936330795, 0.02984941005706787, -0.013924038968980312, -0.46187007427215576, -0.25576359033584595, 0.3674508333206177, 0.12605051696300507, -0.025680093094706535, 0.4639909267425537, 0.08298060297966003, -0.19042818248271942, 0.02078402414917946, 0.009860293939709663, 0.8966763615608215, 0.05962326377630234, 0.2757001519203186, 0.2567470073699951, -0.2981211543083191, 0.3558064103126526, -0.18126025795936584, 0.3097744882106781, -0.3066493272781372, -0.029555626213550568, -0.26041918992996216, -0.19969239830970764, 0.34073323011398315, 0.22498968243598938, -0.37197837233543396, -0.06442978233098984, -0.3056955635547638, -0.22307884693145752, 0.01730647124350071, 0.08089582622051239, -0.023418186232447624, -0.44179555773735046, -0.1849939078092575, -0.06379864364862442, -0.10601436346769333, -0.3592425584793091, -0.16936510801315308, -0.04108613729476929, -0.150979682803154, 0.09852109104394913, -0.24366261065006256, 0.09951166063547134, -0.024710651487112045, 0.1652141958475113, 0.33168748021125793, -0.3736479580402374, 0.033935148268938065, 0.22079864144325256, -0.25767117738723755, -0.22431978583335876, -0.013241867534816265, -0.09695383161306381, 0.1727021038532257, 0.1069505363702774, 0.19696220755577087, -0.15761111676692963, 0.20149536430835724, 0.147480770945549, -0.46100983023643494, 0.1778358668088913, -0.006919816602021456, -0.46137675642967224, 0.14203409850597382, 0.20879782736301422, -0.0012900984147563577, 0.04770533740520477, -0.0021941314917057753, 0.3976421356201172, 0.2397100329399109, -0.2630532681941986, 0.015645259991288185, 0.317511647939682, -0.08653466403484344, 0.29005637764930725, -0.32615727186203003, -0.29627519845962524, -0.18087927997112274, 0.4714468717575073, 0.03067518025636673, 0.3516024351119995, 0.20168539881706238, 0.24368557333946228, -0.169874370098114, -0.10799968242645264, 0.049792807549238205, 0.30554160475730896, -0.3950813412666321, -0.047399550676345825, 0.20836852490901947, -0.06494273990392685, -0.10759992897510529, 0.29531392455101013, -0.01146454643458128, 0.40277278423309326, -0.24364860355854034, -0.24601200222969055, -0.33640816807746887, 0.2480015605688095, 0.3166217803955078, 0.11271403729915619, 0.2214527577161789, 0.2741636037826538, 0.12366074323654175, -0.06522095203399658, -0.20847272872924805, -0.0421411469578743, 0.0053926859982311726, 0.06776395440101624, 0.09583355486392975, 0.10079800337553024, -0.14777566492557526, -0.14311054348945618, 0.1375611424446106, -0.02521839737892151, 0.016736870631575584, -0.12084419280290604, -0.10744494944810867, 0.12390816956758499, 0.09086603671312332, -0.21394497156143188, -0.09857482463121414, -0.1487617790699005, -0.30237358808517456, -0.3175995349884033, 0.05741279572248459, 0.4234735667705536, -0.3227655291557312, 0.18676795065402985, 0.18931733071804047, 0.010110648348927498, -0.05151332542300224, 0.07075157016515732, 0.13033901154994965, -0.1048765704035759, -0.05624593421816826, 0.40975579619407654, -0.0604085735976696, -0.0842282623052597, -0.1349344700574875, 0.09766212105751038, 0.032936155796051025, -0.05734841153025627, 0.011032902635633945, -0.15917865931987762, -0.12037374824285507, -0.18424727022647858, 0.38841286301612854, 0.15674583613872528, 0.2498011291027069, 0.19566410779953003, 0.37273815274238586, 0.13252033293247223, -0.3204217553138733, -0.2983638346195221, 0.008194142952561378, 0.2753520607948303, 0.25381290912628174, 0.04341708496212959, -0.12070362269878387, 0.056685496121644974, -0.07819149643182755, -0.047985222190618515, -0.022124167531728745, 0.035925354808568954, 0.25580570101737976, 0.30847418308258057, 0.0704803466796875, 0.07202402502298355, 0.000923402258194983, 0.10664928704500198, 0.2689947783946991, -0.06864743679761887, -0.2647775411605835, 0.2673961818218231, 0.2540501654148102, -0.2251475751399994, -0.14450757205486298, -0.3573751747608185, -0.0025079722981899977, 0.2004939317703247, 0.04131772741675377, 0.06454912573099136, 0.1455632448196411, 0.4730016589164734, -0.008635178208351135, -0.11924940347671509, 0.03738224133849144, 0.21186913549900055, 0.013071752153337002, -0.12054912745952606, -0.3114880621433258, -0.30960580706596375, 0.015065748244524002, 0.05577504634857178, -0.045983463525772095, -0.19405731558799744, 0.648300290107727, -0.06100200489163399, 0.06689333915710449, -0.2883133590221405, 0.5695886611938477, 0.31326743960380554, 0.1505681425333023, 0.08334214985370636, -0.07363418489694595, 0.3232879340648651, -0.126806378364563, -0.017682619392871857, 0.11624183505773544, 0.4105459153652191, 0.23407267034053802, 0.07170036435127258, -0.13173583149909973, -0.1633092761039734, -0.09184398502111435, -0.1385730654001236, -0.06357243657112122, 0.14023856818675995, -0.05254632979631424, 0.32715290784835815, 0.15707752108573914, -0.01775355078279972, -0.016492173075675964, 0.13229897618293762, 0.3111960291862488, -0.5493847727775574, -0.06833670288324356, 0.10636616498231888, -0.43183404207229614, 0.37765195965766907, 0.04801404848694801, 0.06392249464988708, -0.14424878358840942, 0.14440731704235077, 0.012583011761307716, -0.1712980717420578, -0.06714780628681183, 0.03333374485373497, 0.31193971633911133, 0.35726049542427063, -0.09174347668886185, 0.25889936089515686, -0.25079700350761414, -0.036411818116903305, -0.24577920138835907, -0.0583241768181324, 0.03264512121677399, -0.3628954291343689, -0.11463544517755508, 0.1966533064842224, 0.3155163526535034, 0.06403258442878723, 0.2317618727684021, 0.24202239513397217, 0.34509027004241943, 0.4110005795955658, -0.23254671692848206, 0.12463823705911636, 0.16206516325473785, -0.06968440115451813, -0.03616474196314812, -0.3552902936935425, 0.32439282536506653, 0.41096779704093933, -0.014768633991479874, -0.17186371982097626, 0.13300292193889618, 0.1479053646326065, 0.02948029898107052, 0.5030776858329773, 0.07996152341365814, 0.24762147665023804, -0.15212655067443848, 0.19690808653831482, -0.34234604239463806, -0.14396262168884277, -0.3880271017551422, 0.2662149965763092, 0.003173356642946601, 0.10380830615758896, -0.32139086723327637, 0.05658404529094696, 0.011690229177474976, -0.0113986162468791, 0.09058959037065506, 0.5292710661888123, 0.03206459432840347, 0.2856716811656952, 0.23152104020118713, -0.3014599084854126, -0.20426899194717407, -0.05371834710240364, 0.09425482898950577, -0.04464469850063324, -0.11672540009021759, -0.06065080314874649, 0.04805373772978783, -0.06290078908205032, -0.36543717980384827, -0.26245635747909546, -0.099606454372406, 0.09685439616441727, 0.04323815926909447, -0.28772804141044617, -0.16716842353343964, 0.2455509752035141, 0.17395563423633575, -0.23179738223552704, 0.21708811819553375, -0.18213345110416412, -0.06757396459579468, -0.21497377753257751, 0.28380289673805237, -0.16064269840717316, -0.2283731997013092, -0.14636868238449097, -0.5240393877029419 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
@lhoestq, we have two Pull Requests to implement: - Dataset.add_item: #1870 - Dataset.add_column: #2145 which add a single row or column, repectively. The request here is to implement the concatenation of *multiple* rows/columns. Am I right? We should agree on the API: - `concatenate_datasets` with `axis`? - other Dataset method name?
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
51
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) @lhoestq, we have two Pull Requests to implement: - Dataset.add_item: #1870 - Dataset.add_column: #2145 which add a single row or column, repectively. The request here is to implement the concatenation of *multiple* rows/columns. Am I right? We should agree on the API: - `concatenate_datasets` with `axis`? - other Dataset method name?
[ -0.2659384608268738, -0.09517274051904678, -0.08206092566251755, 0.04083167761564255, -0.23825816810131073, 0.10751833021640778, 0.29300200939178467, 0.25326356291770935, 0.070521280169487, 0.16365541517734528, -0.00488272774964571, 0.34954026341438293, -0.027493804693222046, 0.5060864686965942, -0.02207942306995392, -0.000661575177218765, 0.293861448764801, 0.5536056160926819, -0.2584514319896698, 0.0008190386579371989, -0.5191212296485901, 0.061234477907419205, -0.4006458520889282, -0.20113499462604523, -0.15115803480148315, 0.17109082639217377, -0.4236636161804199, -0.09227926284074783, -0.3538222014904022, -0.08684609830379486, 0.38921216130256653, 0.18713577091693878, 0.024768294766545296, 0.2834430932998657, -0.00011846955021610484, -0.012050565332174301, 0.008737321943044662, -0.12220080941915512, 0.03146516904234886, -0.2648962438106537, -0.48813214898109436, -0.5036517977714539, 0.08924955874681473, -0.17697305977344513, 0.1351436972618103, -0.44908207654953003, 0.11389273405075073, -0.309261292219162, 0.04005151987075806, 0.17618560791015625, 0.10283959656953812, -0.21886058151721954, 0.00021903366723563522, -0.10637359321117401, 0.021073495969176292, 0.33904939889907837, -0.04241802170872688, -0.279572069644928, 0.1721031665802002, 0.11126890033483505, 0.08024585247039795, 0.012746678665280342, 0.1822035014629364, -0.04792086407542229, 0.12505194544792175, 0.18161717057228088, 0.08067796379327774, -0.44023334980010986, 0.1858939677476883, 0.21435298025608063, 0.7385674715042114, -0.15965941548347473, -0.19482219219207764, 0.1284794807434082, 0.3589205741882324, -0.03352079913020134, -0.1378205120563507, 0.3503250777721405, 0.08048920333385468, 0.01624727062880993, -0.10921142250299454, -0.35143980383872986, -0.2742886245250702, 0.45495477318763733, -0.24899812042713165, 0.4160049259662628, 0.05179581418633461, 0.24495798349380493, -0.1435278207063675, -0.2731954753398895, 0.15686167776584625, -0.2587736248970032, -0.013394891284406185, 0.3934822678565979, -0.77628093957901, -0.06545578688383102, -0.03587350249290466, -0.17217561602592468, 0.3520607054233551, 0.287651002407074, 0.24374397099018097, 0.012642263434827328, -0.12847231328487396, 0.17597930133342743, 0.18503078818321228, 0.10463817417621613, 0.3357364237308502, 0.17963875830173492, 0.03724301978945732, -0.07985753566026688, 0.34081578254699707, 0.11167915165424347, -0.35456857085227966, -0.22872470319271088, -0.2912496030330658, -0.0033477097749710083, 0.10975798219442368, 0.21961554884910583, -0.05718143284320831, -0.17502020299434662, -0.49876168370246887, -0.2761743664741516, -0.04220287874341011, -0.2724585235118866, 0.39802443981170654, 0.7039435505867004, 0.07744339108467102, 0.15475232899188995, 0.4607478976249695, -0.02608007937669754, -0.13667699694633484, 0.33829808235168457, 0.06476529687643051, 0.12971089780330658, 0.14350904524326324, -0.3264351785182953, -0.16158069670200348, 0.3666673004627228, 0.22509436309337616, -0.009888509288430214, 0.24468091130256653, -0.2090388834476471, -0.023849336430430412, 0.261745423078537, 0.10085108131170273, -0.25307872891426086, 0.03685620799660683, -0.1425589770078659, -0.1416342407464981, 0.5437424778938293, -0.4550890028476715, -0.06203340366482735, -0.3632274866104126, 0.09478667378425598, 0.11422017216682434, 0.07659068703651428, -0.3987366259098053, 0.5860471129417419, 0.04107629880309105, -0.06140546128153801, 0.20560169219970703, 0.06568291038274765, 0.28461018204689026, -0.21947820484638214, 0.16270680725574493, 0.11275506764650345, -0.3627948462963104, -0.07645965367555618, -0.0711536556482315, -0.11910499632358551, 0.09069747477769852, 0.11035745590925217, -0.3048976957798004, -0.015396260656416416, -0.14552776515483856, 0.367678701877594, 0.7453749775886536, -0.5776745080947876, 0.0677257850766182, -0.017983561381697655, -0.15028135478496552, -0.23754867911338806, 0.3531585931777954, -0.034321583807468414, 0.2178148329257965, 0.21142999827861786, 0.46238982677459717, -0.03480252996087074, -0.10179104655981064, -0.16770456731319427, 0.15605461597442627, -0.40271860361099243, 0.2917554974555969, 0.07371261715888977, -0.08020514249801636, 0.09351018071174622, 0.10632267594337463, -0.571371853351593, 0.33733442425727844, -0.2997710406780243, 0.11355360597372055, -0.1664855182170868, 0.18330617249011993, -0.4257713258266449, -0.004594517406076193, -0.08610349148511887, -0.7237889766693115, -0.13075853884220123, 0.05305352807044983, 0.2005588263273239, 0.2188659906387329, -0.25946393609046936, 0.05176819488406181, -0.22079868614673615, 0.008627518080174923, 0.20655858516693115, 0.05006600171327591, 0.16799518465995789, -0.0919811949133873, -0.29121798276901245, -0.5517215132713318, 0.28898200392723083, 0.0675496831536293, 0.05853400006890297, -0.28958365321159363, 0.2176009863615036, 0.23404435813426971, 0.1096145361661911, -0.03634027764201164, 0.12333182990550995, 0.07666510343551636, -0.29653504490852356, 0.377172589302063, 0.45475098490715027, -0.2495804876089096, -0.10067510604858398, 0.2262951135635376, 0.2702122926712036, 0.23503045737743378, 0.4021550416946411, 0.036105625331401825, -0.628150999546051, 0.20695394277572632, -0.17737102508544922, -0.019584648311138153, 0.25762081146240234, -0.1827201396226883, 0.03365673869848251, -0.11275989562273026, 0.009081537835299969, 0.1381789594888687, 0.158987358212471, -0.41998952627182007, -0.24422144889831543, 0.06356946378946304, 0.4059896469116211, -0.031736936420202255, 0.03876273334026337, -0.2467803806066513, 0.04343914985656738, 0.5327415466308594, -0.1416107565164566, -0.02195207215845585, 0.14539337158203125, 0.077485091984272, -0.15508030354976654, 0.2595832347869873, 0.17130808532238007, 0.5673301219940186, 0.16902263462543488, -0.17234931886196136, 0.053590327501297, 0.06606975942850113, -0.050840701907873154, 0.14771369099617004, 0.0979548990726471, 0.12576942145824432, 0.2814129889011383, 0.41140103340148926, -0.10376975685358047, -0.06347886472940445, -0.35522225499153137, 0.37855222821235657, 0.17299401760101318, 0.008407031185925007, -0.16154919564723969, -0.2478622943162918, 0.027167784050107002, -0.10617256909608841, -0.3447214663028717, -0.05361364409327507, -0.27098459005355835, -0.15384963154792786, -0.22575034201145172, 0.018999438732862473, 0.43020594120025635, -0.3312740623950958, 0.5477529168128967, -0.3603263795375824, -0.06783188879489899, -0.06291214376688004, 0.22370728850364685, 0.14455510675907135, 0.0330754891037941, -0.2828634977340698, -0.22020816802978516, 0.16126149892807007, -0.20602355897426605, 0.31791168451309204, -0.16290387511253357, -0.18113945424556732, 0.19741113483905792, -0.1518642008304596, -0.5007151365280151, 0.3635137677192688, -0.08279341459274292, -0.1428021639585495, -0.15413212776184082, 0.058127012103796005, 0.3354329764842987, -0.1542835533618927, -0.046812817454338074, -0.019610008224844933, 0.12233589589595795, -0.3268176317214966, -0.18042674660682678, -0.2262936383485794, -0.28094232082366943, 0.23001091182231903, 0.11760027706623077, 0.2725912630558014, -0.15690068900585175, -0.01271701231598854, -0.0007029852131381631, 0.1691470593214035, -0.173559308052063, -0.17792634665966034, -0.4013752043247223, 0.25343358516693115, 0.022535469383001328, -0.00005531587157747708, 0.0847221165895462, 0.001370354206301272, 0.18211950361728668, 0.5443743467330933, 0.044884391129016876, -0.5154664516448975, 0.06072406470775604, 0.4005959928035736, -0.18208399415016174, 0.052658550441265106, 0.6426958441734314, 0.3233397603034973, -0.040366675704717636, -0.06730009615421295, -0.20639368891716003, 0.2793903052806854, 0.4032502770423889, -0.36428964138031006, 0.2013052999973297, 0.2751317024230957, 0.09296734631061554, 0.06225665286183357, 0.5054623484611511, 0.03936223313212395, 0.2922317087650299, -0.07761834561824799, 0.19920474290847778, 0.1672181487083435, -0.13653028011322021, -0.15191251039505005, 0.11843810230493546, 0.30836671590805054, -0.046751994639635086, -0.03858540952205658, -0.09226971864700317, -0.32694733142852783, 0.15839357674121857, -0.2337288111448288, 0.04200708493590355, 0.10478558391332626, -0.4960409700870514, 0.44815295934677124, -0.29916271567344666, -0.11780840158462524, -0.36161476373672485, 0.16856275498867035, -0.24112452566623688, 0.3434291481971741, 0.008374160155653954, -0.1559017449617386, -0.14631964266300201, -0.21153271198272705, -0.5169844627380371, 0.604910135269165, 0.13319434225559235, 0.46926549077033997, 0.25551357865333557, 0.0806029662489891, -0.0036339014768600464, -0.24869877099990845, 0.6828725337982178, -0.13748174905776978, -0.7627068161964417, 0.1882392317056656, 0.15651334822177887, 0.07625441998243332, 0.07386592775583267, -0.08900974690914154, 0.20125363767147064, 0.086077019572258, 0.5689395070075989, -0.45527300238609314, -0.18421314656734467, 0.3902842700481415, -0.09374988079071045, 0.13547387719154358, -0.02419750764966011, 0.03892132639884949, -0.2280539572238922, -0.02032351680099964, -0.5453963875770569, -0.03476239740848541, 0.3651001453399658, 0.09494636207818985, -0.006567181088030338, -0.09063052386045456, -0.39018234610557556, 0.08621703833341599, 0.012913651764392853, 0.015607791021466255, 0.13196112215518951, -0.16762757301330566, -0.024962812662124634, -0.18801166117191315, 0.505599856376648, 0.3024645447731018, -0.07286987453699112, -0.5819801092147827, 0.06695826351642609, -0.35351866483688354, 0.3753161132335663, -0.03407502546906471, 0.09153860062360764, 0.42779508233070374, -0.23315322399139404, -0.0033332493621855974, -0.018227877095341682, -0.07674144208431244, 0.38269510865211487, -0.04693516716361046, -0.5235777497291565, -0.4147217869758606, 0.21013209223747253, 0.2485017329454422, -0.016555458307266235, 0.4987642467021942, 0.263454794883728, -0.32960245013237, -0.20174795389175415, -0.012909616343677044, 0.9365919828414917, 0.1939227432012558, 0.18094123899936676, -0.004418552853167057, -0.3974728584289551, 0.5606552362442017, -0.23243720829486847, 0.3922201097011566, -0.17864994704723358, 0.030049553140997887, -0.3281523585319519, -0.18854595720767975, 0.48263517022132874, 0.17705632746219635, -0.4571596086025238, 0.1632855087518692, -0.23889634013175964, 0.18455639481544495, -0.08811222016811371, -0.031419843435287476, -0.006056035868823528, -0.44172558188438416, -0.3329879939556122, 0.06668446958065033, -0.2873607575893402, -0.3360753357410431, -0.3041718006134033, -0.07941639423370361, -0.044329430907964706, -0.06425389647483826, -0.33973631262779236, -0.13882189989089966, 0.11100969463586807, 0.15226207673549652, 0.13475321233272552, -0.6152999401092529, -0.061900440603494644, -0.08270487189292908, -0.1349835991859436, -0.27275195717811584, 0.15391261875629425, -0.1507541537284851, 0.03381655365228653, 0.09097675234079361, -0.004653721582144499, -0.2258446365594864, 0.2538464069366455, 0.088265061378479, -0.18790604174137115, 0.3396715819835663, 0.11210687458515167, -0.46944883465766907, -0.16546645760536194, 0.36707624793052673, -0.12432317435741425, -0.09133900701999664, -0.08023430407047272, 0.47792932391166687, 0.27316680550575256, -0.10572381317615509, 0.028695840388536453, 0.3009191155433655, -0.002481399802491069, 0.21584174036979675, -0.3237312138080597, -0.1305435746908188, -0.09941386431455612, 0.3208954334259033, 0.13218143582344055, -0.1705535501241684, 0.1659010797739029, -0.04406851902604103, -0.11695443838834763, -0.0541420541703701, 0.31380146741867065, 0.2610616683959961, -0.324088990688324, 0.003710211021825671, 0.057452499866485596, -0.08410607278347015, 0.03617311269044876, 0.38601478934288025, -0.08119242638349533, 0.48576176166534424, -0.045314524322748184, -0.2722172141075134, -0.19273217022418976, 0.17526480555534363, 0.2161029726266861, 0.11993793398141861, 0.09926902502775192, 0.025799229741096497, 0.08731178194284439, -0.090390145778656, -0.20350973308086395, -0.15186619758605957, -0.225533127784729, 0.09903723001480103, 0.034471191465854645, 0.10196315497159958, -0.13221028447151184, 0.04338075965642929, 0.1176016554236412, -0.030902106314897537, -0.036274466663599014, -0.08326268941164017, 0.013400806114077568, 0.19891315698623657, 0.27189260721206665, -0.08293823152780533, 0.12895822525024414, -0.14536847174167633, -0.4257693290710449, -0.11303649097681046, 0.12396778911352158, 0.1796732097864151, -0.21576771140098572, 0.10306063294410706, 0.13395759463310242, -0.06093357130885124, -0.13703852891921997, 0.02081367000937462, 0.3245595395565033, 0.0707511231303215, -0.2378300279378891, 0.35188809037208557, 0.029449421912431717, -0.05223391205072403, -0.2871186137199402, 0.3617905378341675, 0.23778103291988373, 0.1915770024061203, -0.03939201682806015, -0.14102910459041595, 0.10228683799505234, -0.04103004187345505, 0.26883915066719055, 0.3218470811843872, -0.15696647763252258, 0.18068601191043854, -0.036664098501205444, 0.08413862437009811, -0.16167694330215454, -0.33020341396331787, 0.11165277659893036, 0.487364798784256, 0.1295970231294632, 0.10546231269836426, -0.3884117007255554, -0.0021555577404797077, 0.09172248840332031, 0.005239403340965509, 0.28831055760383606, -0.2763766944408417, 0.30924707651138306, 0.14307093620300293, -0.09110451489686966, 0.14552786946296692, 0.13068684935569763, 0.3028084635734558, 0.06554331630468369, 0.029153835028409958, -0.029240891337394714, 0.0241992250084877, 0.632919192314148, -0.3214017450809479, 0.3307996690273285, -0.1272868663072586, -0.06668870151042938, 0.2555527985095978, -0.025783885270357132, 0.15827316045761108, 0.3990776836872101, -0.19103118777275085, -0.07080062478780746, 0.009880825877189636, -0.06171432510018349, 0.15844209492206573, -0.09086748212575912, 0.015438023023307323, -0.1980745494365692, -0.15927563607692719, -0.052696362137794495, -0.05756900832056999, 0.044973377138376236, 0.06798698753118515, 0.46515852212905884, -0.010675635188817978, 0.05339045450091362, -0.15824607014656067, 0.4188797175884247, 0.0925084799528122, 0.16021586954593658, 0.011797275394201279, 0.1006496250629425, 0.41036632657051086, -0.15884962677955627, 0.27220284938812256, 0.18240393698215485, 0.06969022750854492, 0.1628684550523758, 0.4065345227718353, 0.0344991460442543, -0.22438211739063263, -0.036455392837524414, 0.049835916608572006, 0.010300995782017708, 0.14318713545799255, -0.21743707358837128, 0.07596145570278168, 0.17735758423805237, -0.00047095201443880796, 0.4957243800163269, -0.007763485424220562, -0.06013936176896095, -0.7930115461349487, 0.4609394371509552, -0.2092263400554657, -0.4095272421836853, 0.21614865958690643, 0.16525404155254364, -0.025731286033988, -0.1591005176305771, -0.09524450451135635, 0.16305142641067505, -0.08591310679912567, -0.1366683542728424, 0.06059253215789795, 0.0856020450592041, 0.2372971922159195, -0.111121766269207, 0.13979694247245789, -0.10578931123018265, -0.270693302154541, -0.1531245857477188, -0.10155890136957169, 0.21892425417900085, -0.38768014311790466, -0.13702446222305298, 0.13947957754135132, 0.3020126521587372, -0.10610638558864594, 0.2027362734079361, 0.11052900552749634, 0.06593667715787888, 0.19470524787902832, -0.09488686919212341, 0.07330524921417236, 0.3137877881526947, -0.16033996641635895, 0.0028222601395100355, -0.24529670178890228, 0.21662721037864685, 0.22228598594665527, -0.07235433161258698, -0.21092760562896729, 0.04262637346982956, 0.23660846054553986, -0.3100654184818268, 0.1615147590637207, 0.13290522992610931, 0.1775912344455719, -0.28988784551620483, 0.24745705723762512, -0.06656119227409363, -0.05180429667234421, -0.5047513842582703, 0.3855785131454468, -0.2173950970172882, 0.016995804384350777, -0.2887916564941406, -0.10122860968112946, 0.1427823156118393, -0.07874102145433426, -0.05396461859345436, 0.25237491726875305, -0.13174208998680115, 0.35976970195770264, 0.09791753441095352, -0.4467118978500366, 0.05432403087615967, 0.07971125096082687, 0.14064562320709229, -0.007527387235313654, -0.007247128989547491, -0.059596795588731766, 0.07526833564043045, -0.04997142031788826, -0.2651262581348419, -0.2647550702095032, 0.060716453939676285, 0.06972500681877136, -0.012263540178537369, -0.2821733355522156, -0.3014066815376282, 0.4539090692996979, 0.04197382554411888, -0.4050905108451843, 0.3852287530899048, -0.02894318848848343, -0.2723308801651001, -0.25895246863365173, 0.14567208290100098, -0.021031048148870468, -0.11971084773540497, -0.10887640714645386, -0.21659009158611298 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
For the API, I like `concatenate_datasets` with `axis` personally :) From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns). Regarding what we need to implement: The axis=0 is already supported and is the current behavior of `concatenate_datasets`. Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library). To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally. I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column. Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ? `axis` could also be an argument of `ConcatenationTable.from_tables`
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
158
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) For the API, I like `concatenate_datasets` with `axis` personally :) From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns). Regarding what we need to implement: The axis=0 is already supported and is the current behavior of `concatenate_datasets`. Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library). To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally. I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column. Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ? `axis` could also be an argument of `ConcatenationTable.from_tables`
[ -0.34827184677124023, 0.06457683444023132, -0.08929770439863205, 0.14640803635120392, -0.004706387873739004, 0.06871174275875092, 0.1781941056251526, 0.4301661550998688, -0.05500147491693497, 0.16881966590881348, -0.040703050792217255, 0.5322630405426025, -0.17968791723251343, 0.4457177519798279, -0.17664892971515656, -0.1298687905073166, 0.26697254180908203, 0.6772679090499878, -0.5987277626991272, 0.15211425721645355, -0.25087085366249084, 0.0997437983751297, -0.39596304297447205, -0.3213888704776764, -0.24887701869010925, 0.19814635813236237, -0.37667691707611084, -0.18627822399139404, -0.3892166316509247, -0.2522883117198944, 0.4810885488986969, 0.4199806749820709, 0.19269990921020508, 0.243520125746727, -0.00011308750254102051, 0.11429072171449661, -0.15810377895832062, -0.14430542290210724, -0.17613551020622253, -0.45647168159484863, -0.3388722836971283, -0.4732191264629364, 0.05500907450914383, -0.03819506987929344, -0.007904846221208572, -0.43937742710113525, -0.09832809120416641, -0.4240880012512207, -0.16679897904396057, 0.06781837344169617, 0.1913837343454361, -0.19836285710334778, -0.04678761586546898, -0.14681152999401093, 0.03416973352432251, 0.2906019985675812, -0.2897626757621765, -0.34814023971557617, 0.02735268510878086, -0.008637622930109501, 0.11546339839696884, -0.025834275409579277, -0.06897062063217163, -0.15571251511573792, 0.2706194519996643, 0.0808822363615036, 0.17766401171684265, -0.44476330280303955, 0.09396153688430786, 0.34371933341026306, 0.6369022130966187, -0.40481796860694885, -0.22292494773864746, -0.06052440404891968, 0.27477195858955383, -0.12325944751501083, -0.036623723804950714, 0.2869499623775482, 0.2061857432126999, 0.11650890856981277, 0.03601628169417381, -0.12165910005569458, -0.41846296191215515, 0.41059738397598267, -0.0651763305068016, 0.5333600640296936, 0.067995585501194, 0.16430068016052246, 0.20928026735782623, -0.16215775907039642, 0.17805138230323792, -0.30509841442108154, -0.14836639165878296, 0.4382919371128082, -0.5985084772109985, -0.04615697264671326, 0.028652353212237358, -0.14689382910728455, 0.22120241820812225, 0.24968740344047546, 0.2240428626537323, 0.07739759981632233, -0.20349489152431488, 0.12449329346418381, 0.3155547082424164, 0.2442362904548645, 0.3259386420249939, 0.15828686952590942, 0.05880315974354744, -0.05766167864203453, 0.42826369404792786, 0.042672205716371536, -0.39031273126602173, -0.26649993658065796, -0.33735936880111694, -0.07565676420927048, 0.2000366747379303, 0.15807972848415375, 0.04270944371819496, -0.07012134790420532, -0.1635323166847229, 0.07185347378253937, 0.17990805208683014, -0.03880400210618973, 0.14718076586723328, 0.8159387111663818, 0.1902594119310379, 0.14290384948253632, 0.22275565564632416, -0.049683257937431335, -0.07192276418209076, 0.20154912769794464, 0.05343468859791756, -0.015657460317015648, 0.25490063428878784, -0.2117113620042801, -0.29642078280448914, 0.39229628443717957, 0.3107224702835083, 0.2015913426876068, 0.15246640145778656, -0.2357829362154007, 0.2729080021381378, 0.21592649817466736, -0.023363526910543442, -0.17136268317699432, 0.10855028033256531, -0.18956458568572998, -0.1724311262369156, 0.5275701880455017, -0.12466887384653091, -0.043461982160806656, -0.49081340432167053, 0.09468011558055878, -0.2702820301055908, 0.11118083447217941, -0.3244788646697998, 0.5614661574363708, -0.24497295916080475, -0.16772118210792542, 0.06883925199508667, 0.033624306321144104, 0.16032268106937408, -0.18577726185321808, 0.22263281047344208, 0.14580081403255463, -0.39336469769477844, -0.015885397791862488, 0.2394765466451645, -0.2605893313884735, -0.05690566077828407, -0.16694936156272888, -0.10671382397413254, -0.1044207289814949, -0.021545670926570892, 0.15863199532032013, 0.38997140526771545, -0.2733116149902344, -0.12560516595840454, -0.0999525710940361, -0.16406585276126862, 0.010329567827284336, 0.13732443749904633, 0.18625108897686005, 0.2845194339752197, 0.1511422097682953, 0.22259566187858582, 0.18191947042942047, 0.04888701066374779, 0.08804076164960861, -0.04091760143637657, -0.2720241844654083, 0.44632238149642944, 0.17541266977787018, -0.23218362033367157, 0.17844392359256744, 0.015567110851407051, -0.46010681986808777, 0.32368525862693787, -0.33109259605407715, 0.24297098815441132, -0.0784442275762558, 0.2711418569087982, -0.32075682282447815, 0.028249643743038177, -0.07094401121139526, -0.5652903318405151, 0.05867588520050049, 0.09972846508026123, 0.38904011249542236, 0.10614273697137833, -0.24580813944339752, 0.3670019209384918, -0.08091000467538834, -0.052216291427612305, 0.21151094138622284, 0.10095786303281784, -0.10200177878141403, 0.03452564775943756, -0.1555289477109909, -0.46024996042251587, 0.31701910495758057, 0.09117866307497025, 0.012087616138160229, -0.3484278917312622, 0.23834331333637238, 0.2912600338459015, 0.12227929383516312, -0.04433204606175423, 0.3409971296787262, -0.002897304482758045, -0.17610524594783783, 0.21343500912189484, 0.42733311653137207, -0.23894953727722168, -0.17554539442062378, 0.0812273919582367, 0.40706926584243774, 0.13991987705230713, 0.32546576857566833, 0.013352305628359318, -0.6059424877166748, 0.16566592454910278, -0.005250762682408094, 0.04538525640964508, 0.7022066116333008, -0.35993829369544983, 0.12899580597877502, 0.004801439121365547, 0.15238453447818756, 0.22261571884155273, 0.12105230987071991, -0.44399985671043396, -0.3551974892616272, 0.02417929284274578, 0.3818529546260834, -0.34552785754203796, 0.0015527507057413459, -0.13294914364814758, 0.16720862686634064, 0.28063780069351196, -0.03643525391817093, 0.022014614194631577, -0.01073414646089077, 0.018332073464989662, 0.0007222294807434082, 0.34178319573402405, 0.17399081587791443, 0.48831799626350403, 0.25311484932899475, -0.16989530622959137, 0.1381901651620865, -0.22801607847213745, 0.034570496529340744, 0.24518609046936035, 0.0025358672719448805, -0.032757699489593506, 0.1938694268465042, 0.2984045445919037, -0.05170443654060364, 0.025717686861753464, -0.5200488567352295, 0.05461495369672775, 0.45406007766723633, -0.11751366406679153, -0.12325868755578995, -0.411227285861969, -0.014678234234452248, 0.013185061514377594, -0.5087950825691223, -0.06055111810564995, -0.10071995854377747, -0.028961870819330215, -0.03681078925728798, -0.12295684218406677, 0.3387334644794464, -0.27232640981674194, 0.49349600076675415, -0.5590957403182983, -0.025525948032736778, -0.01991063356399536, 0.034674935042858124, 0.10998170077800751, 0.04778153821825981, -0.03143346309661865, 0.025709230452775955, 0.030616512522101402, -0.003753283526748419, 0.25191059708595276, 0.052217572927474976, -0.17475906014442444, 0.11484186351299286, -0.0004912549629807472, -0.5256099700927734, 0.1732509881258011, -0.034161023795604706, -0.10929231345653534, -0.06813085824251175, 0.05089680850505829, 0.19728949666023254, -0.02476472035050392, 0.17382323741912842, -0.2129165679216385, -0.12442352622747421, -0.4129619896411896, 0.01005700696259737, -0.14921653270721436, -0.2941405773162842, 0.3062921464443207, 0.20491959154605865, 0.2767927050590515, -0.06605546176433563, 0.36493173241615295, 0.028578858822584152, 0.11799881607294083, 0.02480417676270008, 0.04124269634485245, -0.3984265625476837, 0.361960768699646, -0.01622123271226883, 0.004075199831277132, 0.1638406217098236, -0.12924355268478394, 0.23177869617938995, 0.3739011287689209, -0.03493211418390274, -0.1287059187889099, 0.09039608389139175, 0.3210226595401764, -0.20324121415615082, 0.11636420339345932, 0.545288622379303, 0.4964996874332428, 0.03897830843925476, -0.08050677925348282, -0.14513501524925232, 0.21955649554729462, 0.11373034119606018, -0.40979403257369995, -0.03981419652700424, 0.08305385708808899, 0.2609749436378479, -0.18431982398033142, 0.3280732333660126, -0.058259811252355576, 0.3487604558467865, -0.03854022175073624, 0.4031764566898346, 0.0968073233962059, -0.06857484579086304, -0.2857969403266907, 0.12261155992746353, 0.3362405002117157, -0.10621654987335205, 0.11775091290473938, -0.19360916316509247, -0.4214164912700653, 0.060600485652685165, -0.17847469449043274, -0.05469297245144844, 0.2122350037097931, -0.4524722993373871, 0.19120647013187408, -0.30751940608024597, -0.059336546808481216, -0.4267513155937195, 0.07547007501125336, -0.2327076494693756, 0.2720518410205841, -0.03615656867623329, -0.25962039828300476, -0.25452399253845215, -0.4336685836315155, -0.39550986886024475, 0.35015374422073364, 0.11188176274299622, 0.40406203269958496, 0.43252506852149963, -0.05263818800449371, -0.12013961374759674, -0.20494025945663452, 0.4980337619781494, -0.07401634752750397, -0.5626009702682495, 0.30757564306259155, 0.014436716213822365, -0.28543972969055176, 0.012246335856616497, 0.052353162318468094, 0.27080756425857544, -0.11333459615707397, 0.35933688282966614, -0.2529783546924591, -0.2239239662885666, 0.32913488149642944, 0.07819989323616028, 0.19015635550022125, -0.03620921075344086, -0.10001708567142487, 0.048382312059402466, -0.08916838467121124, -0.4129236340522766, -0.17945021390914917, 0.4076744019985199, -0.1807337999343872, -0.17602844536304474, -0.17473185062408447, -0.34646904468536377, 0.07359810173511505, 0.17829629778862, 0.28684940934181213, 0.04546145722270012, -0.03560437262058258, 0.039022985845804214, -0.2527463734149933, 0.4640749990940094, 0.275725781917572, 0.001746701542288065, -0.47431743144989014, 0.16030311584472656, -0.11890071630477905, 0.1470324844121933, 0.015607960522174835, 0.06552759557962418, 0.3621351718902588, -0.2586041986942291, -0.05467868596315384, -0.04497624188661575, -0.1711922287940979, 0.060506850481033325, -0.07008115947246552, -0.6451606750488281, -0.46607473492622375, 0.24140667915344238, 0.16421806812286377, 0.008145944215357304, 0.7264254689216614, 0.03910542652010918, -0.3268634080886841, -0.057517897337675095, 0.012978829443454742, 0.8818539381027222, 0.2684476971626282, 0.10466807335615158, 0.13820280134677887, -0.24164149165153503, 0.4139753580093384, -0.21395085752010345, 0.3939242362976074, -0.34275007247924805, -0.11264386773109436, -0.29929906129837036, -0.11030101776123047, 0.40378299355506897, 0.15060417354106903, -0.48778536915779114, -0.011433107778429985, -0.2502497136592865, 0.1278439164161682, -0.11708688735961914, 0.034828029572963715, -0.07093673944473267, -0.5233108997344971, -0.47220689058303833, 0.05725818872451782, -0.10929913818836212, -0.42606791853904724, -0.3047962486743927, -0.03532502427697182, -0.09107045084238052, 0.035172197967767715, -0.2306588739156723, -0.004413772840052843, 0.052164025604724884, 0.07390650361776352, 0.24635662138462067, -0.20353759825229645, -0.023877175524830818, 0.08806140720844269, -0.0804828479886055, -0.14437590539455414, -0.1169082447886467, -0.1940743625164032, -0.004643350373953581, 0.1477806717157364, 0.06055648252367973, -0.20754538476467133, 0.267337441444397, 0.14297857880592346, -0.2555800676345825, 0.18827766180038452, 0.15702755749225616, -0.3402671813964844, 0.15182550251483917, 0.13548530638217926, -0.07060541957616806, 0.06969795376062393, -0.030659979209303856, 0.46194562315940857, 0.28313058614730835, -0.09586604684591293, 0.10219381004571915, 0.4088979661464691, -0.16896195709705353, 0.10025405883789062, -0.13083387911319733, -0.283527672290802, -0.1844324916601181, 0.47030752897262573, 0.13271941244602203, -0.009724036790430546, -0.08303920924663544, 0.16723689436912537, -0.1261289119720459, -0.14172664284706116, 0.22277812659740448, 0.33760058879852295, -0.389721542596817, -0.028674786910414696, 0.1679210513830185, -0.10506352037191391, -0.04284797981381416, 0.2743617594242096, -0.12650121748447418, 0.4867383539676666, -0.1858571618795395, -0.21885035932064056, -0.1902681589126587, 0.1972324401140213, 0.2149621695280075, 0.23642604053020477, -0.02786749042570591, 0.10713321715593338, -0.047570254653692245, -0.26051992177963257, -0.2654898166656494, -0.21060818433761597, 0.04518410563468933, -0.07540633529424667, -0.028660479933023453, 0.19149471819400787, -0.2067793756723404, -0.21421895921230316, 0.15419438481330872, -0.01280112937092781, -0.13993829488754272, -0.15168136358261108, -0.13256077468395233, 0.14789347350597382, 0.10648668557405472, -0.16860219836235046, -0.10289075970649719, -0.22503748536109924, -0.5166930556297302, -0.3138568103313446, 0.10470158606767654, 0.27572911977767944, -0.3435198664665222, 0.11254443973302841, 0.19326584041118622, 0.08497832715511322, 0.00950558204203844, -0.05325952544808388, 0.22939205169677734, -0.07559090852737427, -0.024603093042969704, 0.28780099749565125, -0.13293960690498352, -0.05550869181752205, -0.2768474221229553, 0.3551453948020935, -0.023392366245388985, 0.10097659379243851, 0.06358129531145096, -0.08526380360126495, 0.21578891575336456, 0.23389215767383575, 0.19222716987133026, 0.18681810796260834, 0.20350085198879242, 0.14370805025100708, 0.1189696341753006, 0.18746957182884216, -0.08677691221237183, -0.39051732420921326, 0.17522402107715607, 0.456110417842865, 0.22356672585010529, 0.05877856910228729, -0.2400038242340088, -0.02984081767499447, 0.05760890990495682, -0.04081319645047188, 0.10742981731891632, -0.18977059423923492, 0.5861267447471619, 0.26048728823661804, -0.029804203659296036, 0.17630092799663544, -0.19011229276657104, 0.08194433152675629, 0.24925202131271362, 0.1269635260105133, -0.21051330864429474, 0.2456100881099701, 0.5388057231903076, -0.22312158346176147, -0.0810670405626297, -0.3095411956310272, -0.19119006395339966, 0.15024276077747345, -0.018663011491298676, 0.129054456949234, 0.2990817129611969, -0.02382538840174675, -0.2618979811668396, -0.017927244305610657, -0.09798572957515717, 0.03118952363729477, -0.029008593410253525, 0.09151648730039597, -0.25884392857551575, -0.24577081203460693, -0.05791326239705086, -0.06269867718219757, 0.06637455523014069, 0.01142457127571106, 0.3781786262989044, -0.09198924899101257, 0.08408936858177185, -0.31252455711364746, 0.6007611751556396, 0.27330315113067627, 0.17193526029586792, 0.16911396384239197, 0.0040538860484957695, 0.3385782539844513, -0.01789913885295391, 0.0960201695561409, 0.08800578117370605, 0.1707548052072525, 0.4111487567424774, 0.2453005462884903, -0.00342323980294168, -0.2591452896595001, -0.09201224893331528, -0.0122421495616436, 0.0898451879620552, 0.2527470588684082, -0.047233738005161285, 0.13047771155834198, 0.21124526858329773, -0.038847193121910095, 0.24799664318561554, -0.0010517074260860682, 0.19456088542938232, -0.5377131700515747, 0.32595232129096985, -0.015319776721298695, -0.24762631952762604, 0.18761885166168213, -0.002564185531809926, 0.013593550771474838, -0.38846439123153687, 0.01542827021330595, -0.002448308514431119, -0.20507803559303284, -0.17247268557548523, 0.06930368393659592, 0.22104988992214203, 0.17488326132297516, -0.27893248200416565, 0.23015272617340088, -0.17841267585754395, -0.1908663809299469, -0.19576022028923035, -0.11202424764633179, 0.18471303582191467, -0.12099450081586838, -0.12332812696695328, 0.15358562767505646, 0.20164817571640015, -0.05568264052271843, 0.24471794068813324, 0.18073321878910065, 0.2482658326625824, 0.1856904774904251, -0.18907839059829712, 0.17938555777072906, 0.1156918928027153, -0.11455342918634415, -0.05935239791870117, -0.29886752367019653, 0.03197147324681282, 0.18624062836170197, -0.004051943309605122, -0.08160650730133057, 0.18171100318431854, -0.05420015752315521, -0.2327195405960083, 0.3671843111515045, 0.12959955632686615, 0.11324448138475418, -0.1426476538181305, 0.21207673847675323, -0.2643701136112213, -0.06006026640534401, -0.44515329599380493, 0.3055153787136078, -0.027589648962020874, 0.18046249449253082, -0.21977107226848602, -0.18250583112239838, 0.1628463864326477, -0.1611248403787613, 0.11217238008975983, 0.5696960687637329, -0.27908986806869507, 0.488399863243103, 0.10811441391706467, -0.13158394396305084, -0.24704360961914062, -0.05657365545630455, 0.22728762030601501, 0.0492837056517601, -0.014837567694485188, 0.062311384826898575, -0.009503382258117199, -0.07751552760601044, -0.2625735104084015, -0.13718047738075256, -0.04124069958925247, 0.13458815217018127, -0.06384513527154922, -0.23943889141082764, -0.19749629497528076, 0.2346854954957962, 0.021533910185098648, -0.28056561946868896, 0.2788974642753601, -0.11555471271276474, -0.0043687112629413605, -0.20567724108695984, 0.10868405550718307, -0.016339248046278954, -0.24837274849414825, 0.006474496331065893, -0.4142550230026245 ]
https://github.com/huggingface/datasets/issues/849
Load amazon dataset
Thanks for reporting ! We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls. Also I think the bullet points formatting has been fixed
Hi, I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset. Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews") ``` How it is when I tried (the error generated does point me to the right direction though) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews", 'Books_v1_00') ``` Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it?
34
Load amazon dataset Hi, I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset. Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews") ``` How it is when I tried (the error generated does point me to the right direction though) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews", 'Books_v1_00') ``` Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it? Thanks for reporting ! We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls. Also I think the bullet points formatting has been fixed
[ -0.0789322778582573, -0.18927492201328278, -0.21114909648895264, 0.5182412266731262, 0.17753282189369202, 0.28121840953826904, 0.2807125449180603, 0.10958258807659149, 0.10753455013036728, -0.2891573905944824, -0.1656712144613266, 0.13361001014709473, 0.37317824363708496, 0.380805641412735, 0.11738400161266327, -0.07864359021186829, -0.011468497104942799, 0.012094504199922085, -0.010411118157207966, 0.03724874183535576, -0.051934100687503815, 0.34165218472480774, -0.4777827262878418, -0.10012106597423553, 0.001296043279580772, -0.1514357030391693, 0.016140511259436607, 0.015487849712371826, -0.03850678727030754, -0.33526191115379333, 0.28221654891967773, 0.1228935718536377, 0.26703840494155884, 0.4127134680747986, -0.00012002897710772231, -0.17792606353759766, 0.4665379822254181, -0.1020856499671936, -0.25608423352241516, -0.2737344205379486, -0.20822378993034363, -0.30464765429496765, 0.45946428179740906, -0.3098636567592621, -0.07138374447822571, -0.5172996520996094, -0.3546372056007385, -0.26287123560905457, 0.32392558455467224, 0.228437602519989, 0.19254523515701294, 0.10572721809148788, -0.045024335384368896, -0.11685902625322342, 0.04733948037028313, 0.2259969711303711, 0.13230761885643005, 0.1022479385137558, 0.2680179476737976, 0.15178614854812622, -0.03030327335000038, 0.2312610000371933, 0.0532069131731987, 0.29299381375312805, 0.32277968525886536, -0.09372319281101227, -0.16267088055610657, -0.1474435180425644, 0.42556536197662354, 0.21476256847381592, 1.3290975093841553, -0.2534139156341553, -0.2807644009590149, -0.1864204853773117, -0.23020027577877045, -0.16890990734100342, -0.01686912029981613, 0.345550000667572, -0.007727005984634161, 0.04363745450973511, -0.23355628550052643, -0.22316449880599976, -0.1869325041770935, 0.3701874613761902, 0.05927921459078789, 0.06306661665439606, -0.30542388558387756, 0.13807401061058044, -0.17638826370239258, -0.1328853815793991, 0.15719765424728394, -0.19119805097579956, 0.03170568495988846, 0.17970342934131622, -0.5834524631500244, 0.08735036104917526, 0.08084432780742645, 0.15401805937290192, 0.06331836432218552, 0.44267168641090393, 0.3057202696800232, 0.2691638469696045, -0.021578991785645485, 0.13933932781219482, 0.5947412252426147, 0.2712326645851135, 0.3216516673564911, 0.015435067936778069, -0.052782848477363586, 0.3021749258041382, -0.03819970041513443, -0.19611133635044098, -0.005487484857439995, -0.11516129970550537, 0.09778298437595367, -0.29727426171302795, 0.23794937133789062, -0.5695005059242249, -0.20490434765815735, -0.09278368204832077, -0.28471672534942627, -0.35550984740257263, 0.00984608381986618, 0.4803139567375183, -0.10182081907987595, 0.10478193312883377, 0.20564241707324982, 0.2912026345729828, -0.11137505620718002, -0.12135564535856247, -0.12416014820337296, -0.019955577328801155, -0.20608776807785034, 0.09163640439510345, -0.030460849404335022, -0.004104007966816425, 0.35854101181030273, 0.09541217237710953, -0.0014443708350881934, -0.36148351430892944, 0.33346468210220337, -0.1039520651102066, 0.08918032795190811, 0.06433034688234329, 0.427068293094635, 0.2381877601146698, 0.14386160671710968, 0.12213793396949768, -0.2038877159357071, 0.2703430950641632, -0.34343692660331726, -0.21650855243206024, -0.18399012088775635, 0.12854646146297455, -0.3012283742427826, -0.30059096217155457, -0.5243890285491943, 0.12058015167713165, 0.15043331682682037, -0.11283838748931885, -0.04856695607304573, 0.12815095484256744, -0.10472029447555542, -0.13020773231983185, 0.09235440194606781, 0.468744158744812, -0.43062421679496765, -0.26465702056884766, -0.31251147389411926, -0.10042763501405716, 0.21457995474338531, 0.22394230961799622, -0.3063051700592041, 0.35496386885643005, -0.17311795055866241, 0.03512265533208847, 0.5592155456542969, -0.3355655372142792, -0.10341369360685349, 0.499597430229187, 0.2164156287908554, -0.03550591319799423, 0.09619606286287308, -0.2372703105211258, -0.11261716485023499, 0.17772772908210754, 0.122291199862957, 0.2151850312948227, 0.3439030349254608, 0.12761086225509644, -0.20764023065567017, -0.20627360045909882, 0.2997550368309021, 0.1547665148973465, -0.1266527771949768, -0.0012367869494482875, -0.023606929928064346, -0.1026691272854805, 0.36087626218795776, -0.046417348086833954, -0.13416188955307007, 0.3027932345867157, -0.069576196372509, 0.271453857421875, 0.17790690064430237, 0.13160604238510132, -0.4466249346733093, -0.035864684730768204, 0.000467705016490072, 0.1481630802154541, 0.16830065846443176, -0.19227460026741028, -0.5272638201713562, 0.009098544716835022, -0.19909991323947906, -0.16103918850421906, 0.07774267345666885, 0.03208129107952118, 0.04126729443669319, -0.033567920327186584, -0.01995621621608734, -0.08564760535955429, 0.016385393217206, 0.028304148465394974, -0.4079383313655853, 0.16584201157093048, 0.08335226029157639, 0.061455707997083664, 0.27395933866500854, 0.09935656189918518, 0.26226457953453064, -0.011711429804563522, -0.16454234719276428, 0.26227065920829773, 0.0659879520535469, 0.602462649345398, 0.15126892924308777, 0.30224868655204773, 0.07526706904172897, 0.05557790771126747, 0.25020384788513184, 0.27780070900917053, 0.3070845901966095, -0.14221394062042236, -0.37376391887664795, 0.3783273696899414, 0.03344070911407471, 0.4875415563583374, 0.14828543365001678, -0.16680848598480225, 0.27059438824653625, 0.013627921231091022, -0.055631473660469055, -0.24223558604717255, 0.2620967626571655, 0.0789041668176651, 0.6111757755279541, -0.133358433842659, -0.12793734669685364, 0.2783292829990387, 0.14410357177257538, -0.055679745972156525, 0.07392055541276932, 0.08673176169395447, -0.2402980625629425, -0.45288169384002686, 0.5009838938713074, -0.021504880860447884, 0.21616272628307343, 0.24348218739032745, 0.09838958829641342, 0.10768938809633255, 0.27695438265800476, -0.22663436830043793, 0.30215558409690857, 0.31795546412467957, 0.21201014518737793, -0.10571159422397614, 0.17328453063964844, -0.16693919897079468, -0.14140215516090393, -0.1537817120552063, 0.04712219908833504, 0.22803184390068054, -0.592404842376709, 0.034251004457473755, -0.3620113134384155, -0.4074658155441284, -0.3450559079647064, -0.13149653375148773, 0.0816866084933281, -0.3198171555995941, -0.2920684516429901, -0.04855018109083176, -0.04712982848286629, 0.017614103853702545, -0.13874024152755737, 0.05073178932070732, -0.19046539068222046, 0.05407453700900078, -0.2068430483341217, -0.20306986570358276, -0.16522692143917084, 0.05971452593803406, 0.47374966740608215, 0.24715770781040192, 0.39216387271881104, -0.19707374274730682, 0.09266219288110733, 0.04774310067296028, -0.26602354645729065, 0.2005770057439804, 0.1971173733472824, 0.1751430183649063, -0.13499028980731964, 0.055998336523771286, 0.1437903493642807, 0.1499382108449936, 0.18420082330703735, 0.11996936798095703, 0.1417255401611328, -0.046430498361587524, -0.10631236433982849, -0.15005990862846375, 0.1808391511440277, -0.5233346223831177, -0.19488221406936646, -0.3031466603279114, -0.05375906452536583, 0.20072762668132782, 0.299181193113327, -0.18567320704460144, -0.07156017422676086, 0.15590232610702515, 0.33989378809928894, 0.2962895333766937, -0.3032107651233673, -0.47630923986434937, 0.16137874126434326, -0.28922131657600403, -0.2750647962093353, 0.15899597108364105, 0.3177679181098938, 0.24217407405376434, 0.06120181828737259, -0.22679592669010162, -0.04130517318844795, -0.08516193181276321, -0.11120391637086868, -0.07248853892087936, 0.16722097992897034, 0.261726975440979, 0.03640373423695564, -0.10519562661647797, 0.005417375825345516, -0.2416442185640335, -0.07168524712324142, -0.18962214887142181, 0.028163837268948555, -0.03548088297247887, 0.12036438286304474, -0.15633094310760498, 0.5662087798118591, 0.25515666604042053, -0.05454085394740105, 0.3984057307243347, -0.10349401086568832, 0.17999239265918732, -0.04993879795074463, -0.015813177451491356, -0.3308515250682831, -0.11661071330308914, 0.004270866047590971, 0.4625919461250305, 0.1697818785905838, -0.2965264618396759, -0.24136509001255035, -0.15135173499584198, -0.8929020762443542, -0.10867933183908463, 0.13848520815372467, -0.13246433436870575, 0.2511937916278839, 0.11885832250118256, 0.07735612243413925, -0.07271236926317215, -0.1014690175652504, -0.023383308202028275, 0.08853504806756973, -0.006220713723450899, -0.16642217338085175, -0.45382022857666016, -0.1016005203127861, -0.14194484055042267, 0.5074073076248169, -0.2162255495786667, 0.1196996197104454, 0.053230706602334976, -0.09100828319787979, 0.16579890251159668, -0.20878280699253082, 0.4329087436199188, -0.35003799200057983, -0.10274165868759155, 0.18527962267398834, 0.007839769124984741, -0.33455851674079895, 0.08405226469039917, -0.27103838324546814, 0.4508851170539856, 0.1022011861205101, 0.044318787753582, -0.1706228405237198, -0.2756691575050354, -0.1051064282655716, 0.32020625472068787, -0.2772408127784729, -0.2040272206068039, -0.06636589765548706, -0.20641575753688812, -0.36891958117485046, -0.30995193123817444, -0.29588547348976135, 0.1530740112066269, -0.044387087225914, -0.07250794768333435, -0.08553795516490936, 0.06186673045158386, 0.09617718309164047, 0.2213367521762848, 0.4586625397205353, -0.19387856125831604, -0.07722075283527374, 0.10812005400657654, -0.13094252347946167, 0.44800856709480286, 0.7521949410438538, -0.008866686373949051, -0.4299916923046112, -0.010898469015955925, -0.15888924896717072, 0.12219398468732834, 0.19903965294361115, 0.07108309864997864, 0.1092335656285286, 0.00853809341788292, -0.06517600268125534, -0.1920918971300125, -0.21468350291252136, 0.10328393429517746, 0.1821853071451187, -0.10441674292087555, -0.69939786195755, 0.6753958463668823, 0.07559047639369965, -0.19756090641021729, 0.26093143224716187, -0.0029876611661165953, -0.214088574051857, 0.27616968750953674, 0.010066898539662361, 1.109572172164917, 0.158132404088974, -0.014588925056159496, 0.12668706476688385, -0.25986018776893616, 0.20069651305675507, -0.13675229251384735, -0.12122710049152374, -0.45169657468795776, 0.3673313856124878, -0.0736468955874443, -0.1184355691075325, 0.19559958577156067, 0.2501853406429291, -0.14438436925411224, 0.37827587127685547, -0.29103022813796997, -0.04425366222858429, -0.02051439881324768, 0.4625374674797058, -0.038758233189582825, -0.282529354095459, -0.6071413159370422, 0.0899345725774765, -0.051020171493291855, 0.1447163075208664, -0.27723005414009094, 0.08909233659505844, -0.24817949533462524, -0.09136615693569183, -0.3456156849861145, 0.024512119591236115, -0.0853709876537323, 0.09315942227840424, -0.17416639626026154, -0.4508790373802185, 0.12987832725048065, 0.3845655620098114, -0.26225537061691284, -0.09012443572282791, -0.42444825172424316, 0.11901848763227463, -0.0972176343202591, 0.030119556933641434, 0.03566477820277214, 0.021035267040133476, 0.37154752016067505, -0.16169078648090363, -0.3018028140068054, 0.00800000224262476, 0.08547544479370117, 0.06253978610038757, -0.16890202462673187, 0.058867864310741425, -0.003179017221555114, -0.572469174861908, -0.5873054265975952, 0.12211965769529343, 0.04225630685687065, -0.12122821807861328, 0.09230360388755798, 0.1828102171421051, -0.11426147818565369, 0.21094290912151337, 0.24631159007549286, 0.03693011403083801, -0.07885138690471649, 0.4332982897758484, 0.31019890308380127, -0.024495070800185204, 0.4668743908405304, 0.2951889634132385, -0.1460082232952118, -0.19635212421417236, 0.19239570200443268, 0.195749893784523, -0.2520182728767395, 0.05094406381249428, -0.03689184412360191, 0.324174702167511, -0.20706860721111298, 0.190463587641716, 0.018820758908987045, 0.27948662638664246, -0.022012846544384956, -0.4668631851673126, 0.2508143186569214, 0.25374725461006165, 0.19304274022579193, -0.01137456763535738, -0.10995069891214371, -0.32844096422195435, 0.15923617780208588, 0.05052042379975319, -0.2618047893047333, 0.3210796117782593, -0.06957072019577026, 0.07813704758882523, 0.13219881057739258, 0.14430460333824158, 0.1451745480298996, -0.27907708287239075, -0.01195920817553997, -0.1267288774251938, -0.11002130806446075, -0.19817987084388733, -0.1354355812072754, 0.21279320120811462, 0.10159706324338913, -0.22010186314582825, -0.01158077921718359, 0.008608601056039333, 0.11618652194738388, -0.17936594784259796, 0.056273333728313446, -0.09375281631946564, 0.0999777689576149, 0.08361081033945084, 0.39077624678611755, 0.0669810026884079, -0.6115542650222778, 0.07217248529195786, -0.04109102115035057, 0.19883319735527039, 0.24106848239898682, -0.04403568059206009, 0.3422812521457672, -0.02210582233965397, -0.025791838765144348, -0.030674638226628304, 0.29086780548095703, 0.22021794319152832, 0.19475412368774414, -0.0818215161561966, 0.25368890166282654, 0.2407728135585785, 0.32086119055747986, 0.5258136987686157, -0.17582137882709503, 0.16463223099708557, -0.021572642028331757, 0.14280423521995544, -0.2438158541917801, 0.038910720497369766, -0.14670245349407196, -0.2376059889793396, -0.18350793421268463, 0.003875189460813999, 0.18297897279262543, 0.33259278535842896, 0.1130228266119957, -0.12032490968704224, 0.4508986473083496, -0.22452013194561005, 0.4222685992717743, 0.0590377077460289, -0.16899679601192474, 0.14591805636882782, 0.17626960575580597, 0.14858616888523102, -0.0028415946289896965, 0.018363717943429947, 0.06895761936903, 0.5400505661964417, 0.445585697889328, 0.15968909859657288, -0.22307942807674408, -0.5270534753799438, 0.36033761501312256, 0.1754482537508011, 0.3199083209037781, 0.29287487268447876, 0.027170466259121895, 0.44357389211654663, 0.1476007103919983, 0.09135536104440689, -0.06707456707954407, 0.0020867001730948687, -0.05733489617705345, -0.2027507871389389, -0.15161162614822388, -0.2909398674964905, -0.10861179232597351, -0.13459943234920502, -0.20566287636756897, -0.4516623914241791, 0.054415252059698105, -0.12400427460670471, -0.13231994211673737, -0.5200735926628113, 0.05750051140785217, -0.0345601812005043, 0.19571134448051453, -0.19270817935466766, 0.07742741703987122, 0.16888143122196198, -0.019626127555966377, 0.07767233997583389, 0.2913631498813629, 0.5396186709403992, 0.1511489450931549, -0.1022622212767601, -0.04864799976348877, 0.07756663858890533, -0.12858211994171143, 0.08925245702266693, 0.13909360766410828, 0.217371866106987, 0.08145714551210403, 0.14643517136573792, 0.1171540692448616, -0.1644435077905655, 0.3667309284210205, 0.13738159835338593, -0.0216103233397007, -0.2827688455581665, 0.254251629114151, -0.36441901326179504, -0.37065818905830383, -0.26555654406547546, -0.17614905536174774, -0.40305355191230774, -0.03311661630868912, 0.24070706963539124, -0.11020609736442566, -0.16534659266471863, -0.19964280724525452, 0.052695829421281815, 0.06689699739217758, 0.6728178262710571, 0.03926752135157585, 0.36817675828933716, -0.06547638773918152, -0.06278727203607559, -0.6017760038375854, -0.015145118348300457, -0.051074180752038956, -0.1354791224002838, 0.10724129527807236, 0.19309581816196442, 0.10500720143318176, 0.26108458638191223, 0.1738900989294052, -0.13433372974395752, 0.10250739008188248, 0.044739559292793274, -0.4506540596485138, 0.01766776852309704, 0.019241532310843468, 0.06958400458097458, -0.19253851473331451, -0.23140600323677063, 0.04607342928647995, -0.2032763659954071, -0.10236058384180069, -0.37475958466529846, -0.23164182901382446, 0.09567971527576447, 0.08540596812963486, 0.6618383526802063, -0.04716111719608307, 0.5717576146125793, -0.2162526547908783, -0.003467448754236102, -0.047864880412817, -0.241878941655159, -0.005112573970109224, 0.6518112421035767, 0.055223945528268814, 0.008246326819062233, -0.10223086178302765, -0.2083972841501236, -0.09361719340085983, 0.10190079361200333, -0.26535752415657043, -0.24192573130130768, -0.049016810953617096, -0.2247563898563385, -0.006589298136532307, -0.27086710929870605, 0.06713994592428207, 0.23266932368278503, -0.07411413639783859, 0.06053977087140083, -0.14629405736923218, -0.10811195522546768, 0.40869802236557007, -0.04875590279698372, -0.011341902427375317, 0.007805262692272663, 0.1532590538263321, 0.08716728538274765, -0.18029597401618958, -0.6323314309120178, 0.16976214945316315, 0.507655918598175, -0.015482326038181782, 0.1548663228750229, 0.4629182815551758, 0.015734722837805748, 0.030773434787988663, -0.17765972018241882, 0.30217409133911133, 0.015829898416996002, -0.2255861610174179, -0.3437722325325012, -0.29726698994636536 ]
https://github.com/huggingface/datasets/issues/848
Error when concatenate_datasets
As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks!
172
Error when concatenate_datasets Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks! As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
[ -0.09119043499231339, -0.1483130007982254, -0.04474927857518196, 0.6809366941452026, 0.10687512159347534, 0.22187866270542145, 0.3129054009914398, 0.22910942137241364, -0.12348338961601257, 0.12460485100746155, -0.1083230972290039, 0.27360355854034424, -0.08168982714414597, -0.12340835481882095, -0.3013668358325958, -0.09740205109119415, 0.19849291443824768, 0.14857041835784912, -0.5059523582458496, -0.031675852835178375, -0.3506394028663635, 0.16024592518806458, -0.3358781635761261, 0.039867836982011795, -0.4097849130630493, 0.04924583435058594, -0.13179023563861847, 0.27618181705474854, -0.03120293840765953, -0.18386495113372803, 0.45858705043792725, -0.34888723492622375, 0.18642646074295044, 0.5364495515823364, -0.00011763784277718514, 0.17008651793003082, 0.2740952968597412, -0.17238235473632812, -0.3783836364746094, -0.25671932101249695, -0.3621295690536499, -0.1004146933555603, -0.0029408219270408154, -0.12345878779888153, 0.2076505422592163, -0.14812088012695312, -0.2583860754966736, -0.504387617111206, 0.3307150900363922, 0.22644895315170288, 0.11047955602407455, 0.39414283633232117, 0.0912058874964714, -0.09805947542190552, 0.03788559511303902, 0.15339846909046173, 0.06594585627317429, 0.4203864634037018, -0.18985889852046967, -0.0617084801197052, 0.21082942187786102, 0.0670611783862114, -0.12466724216938019, 0.1450287252664566, 0.07803633064031601, 0.30991122126579285, 0.1576005518436432, -0.39687642455101013, -0.12527789175510406, 0.1079111322760582, 0.5253134965896606, -0.3321689963340759, -0.3178466558456421, -0.08615797758102417, 0.1388191282749176, -0.399522989988327, 0.2178884893655777, 0.29791373014450073, -0.1470903605222702, 0.11746271699666977, -0.09073854982852936, 0.0771457627415657, -0.2191740870475769, 0.18462905287742615, -0.18065065145492554, 0.1145215630531311, -0.16109678149223328, 0.2407020628452301, 0.13817104697227478, -0.07304085046052933, 0.5286438465118408, -0.3571856915950775, -0.12692508101463318, 0.1591959297657013, -0.3422974646091461, 0.03218716010451317, -0.1896214783191681, -0.7045971751213074, 0.08900929987430573, 0.055820319801568985, 0.10370052605867386, -0.22045859694480896, 0.07737085223197937, 0.2818929851055145, 0.4017774760723114, 0.14928889274597168, -0.03738165646791458, 0.5497029423713684, -0.020275656133890152, -0.06169677525758743, 0.1993696391582489, 0.009052800945937634, -0.28676456212997437, -0.21140968799591064, 0.1154315248131752, -0.16468805074691772, 0.08365589380264282, -0.0013334607938304543, -0.49712610244750977, -0.15189197659492493, -0.12786096334457397, -0.14049457013607025, 0.19656047224998474, 0.030194062739610672, 0.12389945238828659, 0.5308148860931396, 0.13073767721652985, 0.4409755766391754, 0.21734875440597534, 0.017421063035726547, -0.22650893032550812, 0.022214330732822418, -0.04511668160557747, 0.21043550968170166, 0.10341386497020721, 0.004443905781954527, 0.08212240785360336, 0.1775864213705063, 0.10875587165355682, 0.00644929613918066, 0.07688581198453903, -0.4948601722717285, 0.05832669138908386, 0.31147047877311707, 0.02116510458290577, 0.07500375062227249, 0.27387431263923645, -0.050314269959926605, -0.14390313625335693, 0.31701532006263733, -0.4437074661254883, -0.2742713689804077, -0.5135647654533386, 0.09688185900449753, 0.09895588457584381, 0.23291632533073425, -0.32036396861076355, -0.11133211106061935, 0.6928229331970215, 0.10456723719835281, -0.06835786253213882, -0.06628826260566711, -0.19841542840003967, -0.31955859065055847, 0.3204249441623688, 0.2007114440202713, -0.21646748483181, -0.033044714480638504, -0.018492812290787697, -0.0677982047200203, 0.36040347814559937, 0.5054659247398376, -0.31536418199539185, 0.19920149445533752, -0.3855016231536865, -0.03318231552839279, 0.3084060251712799, -0.4366769790649414, -0.1402207314968109, 0.2154027670621872, 0.0032157995738089085, -0.07358703762292862, 0.237611785531044, 0.008284227922558784, 0.13142314553260803, 0.14721612632274628, 0.8280853629112244, 0.3132544457912445, 0.0639016181230545, -0.17818725109100342, -0.09761268645524979, -0.13833650946617126, 0.2659764885902405, 0.10001065582036972, -0.23239412903785706, 0.035079363733530045, -0.1362983137369156, -0.4177928864955902, 0.32372209429740906, -0.1016947329044342, 0.039677560329437256, 0.36891210079193115, 0.03515569493174553, -0.34318026900291443, -0.11548584699630737, 0.046179406344890594, -0.19547364115715027, 0.04835238680243492, 0.03796084597706795, -0.08521530032157898, -0.29979997873306274, 0.09154374152421951, -0.12289441376924515, 0.07692160457372665, -0.07233616709709167, 0.04985435679554939, 0.017612336203455925, 0.23527827858924866, -0.17259854078292847, -0.24803200364112854, -0.16533103585243225, 0.4237132966518402, -0.27778297662734985, -0.026918569579720497, -0.20736005902290344, 0.5686877369880676, -0.0645180493593216, -0.03209817782044411, -0.1763465404510498, -0.03937499597668648, 0.058933842927217484, 0.11640191823244095, -0.05410145968198776, 0.5149708390235901, 0.05206681787967682, -0.16847774386405945, 0.025942429900169373, -0.20578257739543915, 0.22902117669582367, -0.07725028693675995, 0.13991102576255798, -0.12018477916717529, 0.13092784583568573, -0.09698837995529175, 0.07233221083879471, 0.4227219820022583, -0.13237111270427704, 0.2828250229358673, -0.021570617333054543, 0.09008917957544327, 0.1695285439491272, 0.1452978402376175, -0.058325331658124924, -0.4177127778530121, -0.0745222270488739, 0.16754212975502014, 0.2188815027475357, 0.2504178285598755, -0.4655804932117462, -0.23471610248088837, 0.3388252854347229, 0.02467729151248932, 0.04220883548259735, 0.1224704459309578, -0.3912702202796936, -0.04061001166701317, -0.028423350304365158, 0.349185049533844, 0.7707192897796631, 0.12764380872249603, 0.033459026366472244, -0.12033645063638687, -0.03592347726225853, 0.007695726118981838, 0.34991565346717834, 0.06371048092842102, 0.3463793098926544, 0.3114229142665863, -0.017367249354720116, 0.0689954087138176, -0.01665603742003441, -0.08799376338720322, 0.08758674561977386, 0.06227598711848259, -0.4036809802055359, 0.05286400020122528, -0.18998625874519348, -0.05431295558810234, -0.30404913425445557, -0.24631944298744202, -0.10401066392660141, -0.21191367506980896, -0.4094071388244629, 0.22741267085075378, -0.05454429239034653, 0.19563494622707367, -0.193385511636734, 0.05452090501785278, 0.15092885494232178, -0.09174890071153641, 0.00032517590443603694, 0.009441838599741459, -0.20656873285770416, -0.03260403871536255, 0.22103729844093323, -0.10533781349658966, 0.036282867193222046, -0.18572767078876495, 0.030104555189609528, -0.11809207499027252, 0.11544667184352875, 0.013829990290105343, -0.0758276879787445, 0.19631467759609222, 0.051677267998456955, 0.20550353825092316, -0.04730928689241409, -0.6516992449760437, 0.13523715734481812, 0.5362840294837952, -0.27456095814704895, 0.37999528646469116, 0.14905273914337158, -0.09476052224636078, -0.10532199591398239, -0.26672109961509705, -0.4566356837749481, -0.3636385500431061, -0.06515009701251984, -0.14521260559558868, 0.2417432963848114, 0.285662442445755, 0.23686939477920532, 0.00917044747620821, 0.14594440162181854, 0.15381954610347748, -0.0961042121052742, -0.2391653060913086, 0.4765641689300537, 0.0441288948059082, -0.176458939909935, -0.14542831480503082, -0.06851351261138916, 0.29392009973526, 0.20500899851322174, -0.37040790915489197, 0.1182420402765274, -0.08393000066280365, 0.07217473536729813, -0.3724440336227417, 0.08169059455394745, 0.09550417214632034, 0.3071271479129791, -0.04956848546862602, -0.10565321892499924, -0.1409303843975067, 0.12135202437639236, 0.05091797932982445, 0.3641844093799591, -0.02699044719338417, 0.3982568085193634, -0.08975323289632797, 0.4547496736049652, 0.26242831349372864, -0.16175700724124908, 0.21309296786785126, 0.17499063909053802, 0.518825888633728, 0.009832801297307014, -0.4894424080848694, -0.30854856967926025, -0.10530896484851837, -0.02227795124053955, -0.1453579217195511, -0.13144788146018982, -0.2135680466890335, -0.1715722531080246, 0.1677524745464325, -0.20210446417331696, -0.09774459898471832, 0.09347096085548401, -0.4890361428260803, 0.2789095938205719, -0.26716339588165283, -0.017228547483682632, -0.225540891289711, 0.23680520057678223, -0.33885282278060913, -0.0028130931314080954, 0.15307390689849854, -0.10816946625709534, -0.07584206759929657, -0.05322517827153206, -0.16712214052677155, 0.2889290153980255, 0.07080289721488953, 0.6286578178405762, 0.08713400363922119, -0.36192020773887634, -0.14135706424713135, 0.10619163513183594, 0.6050745844841003, 0.3731424808502197, -0.3529815375804901, 0.34405428171157837, 0.14444397389888763, -0.5278425216674805, -0.13232369720935822, -0.14307337999343872, 0.24728122353553772, -0.0800594612956047, 0.6192367076873779, -0.2810606062412262, -0.21028688549995422, 0.048355307430028915, 0.3565573990345001, -0.05513641610741615, -0.07017537951469421, -0.33752909302711487, -0.09485521912574768, -0.2657569646835327, -0.17509733140468597, -0.008599556982517242, 0.37275752425193787, -0.11776220053434372, -0.030783431604504585, -0.10241628438234329, -0.20328427851200104, 0.0942046195268631, -0.06156346574425697, 0.5736798048019409, -0.10580819845199585, 0.33820071816444397, -0.04043008014559746, 0.27280762791633606, 0.7298619151115417, 0.3896462917327881, 0.04856519028544426, -0.2766020894050598, 0.20844045281410217, 0.06652785837650299, 0.3524952828884125, 0.03255718573927879, -0.07743891328573227, 0.027674507349729538, -0.13960449397563934, 0.10973313450813293, -0.06651543825864792, 0.08004791289567947, 0.35779112577438354, -0.021419953554868698, -0.6502231955528259, -0.24151088297367096, 0.34916821122169495, 0.21813029050827026, -0.044607002288103104, 0.4857544004917145, -0.18558894097805023, -0.4610423445701599, 0.13228240609169006, 0.04883066192269325, 0.9176328182220459, 0.07885604351758957, 0.3388036787509918, 0.18194356560707092, -0.23259633779525757, 0.22113844752311707, 0.1656608283519745, 0.16699126362800598, -0.2519564926624298, -0.2050488144159317, -0.11600618064403534, -0.3928782641887665, -0.0402875579893589, 0.12299180030822754, -0.29471296072006226, 0.1419774293899536, -0.4592786729335785, 0.11786577105522156, -0.1265638917684555, -0.013209200464189053, -0.1652887463569641, -0.21604953706264496, -0.16198210418224335, 0.013073180802166462, -0.03126557171344757, -0.15887172520160675, -0.014159617014229298, -0.24843107163906097, -0.3144504725933075, -0.09130442887544632, -0.15309728682041168, 0.2241206020116806, -0.23085878789424896, 0.7114490270614624, -0.06415950506925583, -0.2984413802623749, -0.20776548981666565, 0.19098302721977234, 0.11604223400354385, -0.20210552215576172, 0.062432195991277695, -0.10678178817033768, -0.002385784639045596, 0.04360824078321457, -0.03022981993854046, -0.12061429768800735, 0.1903313249349594, 0.10352326929569244, -0.23951879143714905, 0.1121627688407898, -0.05872495844960213, -0.33592748641967773, 0.04980367794632912, 0.33672794699668884, 0.07348060607910156, -0.18480093777179718, -0.19937419891357422, 0.20473423600196838, 0.034234900027513504, -0.08933018893003464, 0.09722254425287247, 0.16332797706127167, -0.13733601570129395, 0.11539693176746368, -0.22874531149864197, -0.34221574664115906, -0.03661167249083519, 0.5363502502441406, 0.33104944229125977, 0.17689894139766693, 0.5639308094978333, -0.25129982829093933, -0.011510645970702171, -0.12109039723873138, 0.3575095236301422, -0.04845616966485977, -0.11711806803941727, 0.2420293539762497, 0.04649269953370094, 0.03164339438080788, -0.16861701011657715, 0.08653545379638672, 0.4298747777938843, 0.2080897092819214, -0.1115063950419426, -0.35596582293510437, -0.539413571357727, 0.38487496972084045, -0.13385310769081116, 0.22954876720905304, -0.094367615878582, 0.018808988854289055, -0.2178020030260086, -0.14289380609989166, -0.23197166621685028, 0.004023962654173374, -0.25923192501068115, 0.04605752229690552, 0.14327390491962433, -0.05421994999051094, 0.13752403855323792, -0.0019381619058549404, 0.11710239201784134, -0.05308672785758972, -0.05598682165145874, -0.10222440212965012, 0.14517560601234436, 0.14760680496692657, 0.10748853534460068, -0.22965261340141296, -0.10949648171663284, -0.355410635471344, -0.09644248336553574, -0.14278535544872284, -0.19452165067195892, 0.14739589393138885, -0.06960608065128326, 0.09598907828330994, 0.02842581458389759, 0.16976261138916016, -0.08422600477933884, 0.17736755311489105, -0.007818983867764473, 0.12234076857566833, -0.16525663435459137, 0.32268550992012024, -0.10201814770698547, -0.10350269079208374, -0.5782658457756042, 0.008040985092520714, -0.11383804678916931, -0.11873996257781982, 0.19466224312782288, -0.23553653061389923, -0.18246717751026154, -0.06589585542678833, 0.16938835382461548, 0.423876017332077, -0.24219468235969543, 0.05386605113744736, 0.06711450964212418, 0.11560943722724915, -0.1454009860754013, -0.23784685134887695, -0.4377286434173584, -0.16793882846832275, -0.28984153270721436, 0.017973868176341057, 0.026465242728590965, 0.021435806527733803, -0.14763300120830536, 0.047171980142593384, 0.2570021152496338, -0.03312629088759422, 0.3051673471927643, 0.4617435336112976, 0.12236983329057693, 0.04979517310857773, 0.13226665556430817, 0.2484997659921646, 0.38216936588287354, 0.3037099838256836, -0.14841876924037933, 0.22876201570034027, 0.16435322165489197, -0.21518604457378387, 0.0003149293188471347, -0.2952016592025757, 0.008263814263045788, 0.21861571073532104, -0.1552528291940689, -0.11986878514289856, -0.019283723086118698, 0.11784549057483673, -0.3018819987773895, -0.2792959213256836, -0.15895231068134308, 0.1722867488861084, -0.09790430217981339, -0.03844482824206352, -0.09086653590202332, -0.16824652254581451, -0.05771354213356972, -0.13062234222888947, 0.1583767533302307, -0.1463903933763504, 0.3186435103416443, 0.14996960759162903, -0.22768472135066986, -0.1426094025373459, 0.22739379107952118, 0.678019106388092, -0.06400588899850845, -0.35320231318473816, 0.16631019115447998, 0.4771783649921417, 0.07670034468173981, 0.10966067016124725, 0.22680242359638214, 0.6265039443969727, 0.6114822030067444, 0.06252647936344147, -0.0997544452548027, 0.21632876992225647, -0.18718485534191132, 0.135588139295578, 0.16797147691249847, 0.027832526713609695, -0.20908530056476593, 0.20760545134544373, 0.19351279735565186, -0.045594967901706696, 0.16156181693077087, 0.14688581228256226, 0.21996082365512848, -0.3095564842224121, 0.1947544664144516, -0.31781476736068726, -0.20080135762691498, 0.08132191747426987, 0.019271433353424072, -0.3569808006286621, 0.04972260072827339, 0.6105671525001526, 0.0852065235376358, 0.1231750026345253, 0.31970709562301636, 0.02370610646903515, 0.023422714322805405, 0.39119377732276917, 0.4590087831020355, 0.14059749245643616, -0.4542922079563141, -0.1931883692741394, -0.37838980555534363, -0.05332418531179428, 0.24002254009246826, 0.09847740083932877, -0.12065073102712631, 0.2832745909690857, 0.2563616931438446, -0.005638148169964552, 0.15366271138191223, 0.26941442489624023, -0.08837676048278809, -0.09588337689638138, -0.43449264764785767, -0.13295094668865204, 0.12469367682933807, -0.019476385787129402, 0.022134777158498764, -0.5011000633239746, 0.17182283103466034, 0.1736246794462204, 0.011649155989289284, -0.012256818823516369, 0.2122923582792282, 0.2748071551322937, 0.5003042221069336, 0.37911278009414673, 0.15555554628372192, 0.47568562626838684, -0.026323039084672928, -0.16170883178710938, 0.02529904805123806, -0.6679953336715698, -0.17316029965877533, 0.1567946821451187, 0.0030110529623925686, 0.23588302731513977, -0.3328932225704193, -0.05051435902714729, -0.18134140968322754, 0.22132326662540436, -0.11841975152492523, -0.23708733916282654, -0.16636215150356293, -0.015736529603600502, 0.04363098368048668, -0.22969581186771393, 0.13400250673294067, 0.11973520368337631, 0.023528002202510834, 0.40174421668052673, -0.09754134714603424, -0.29178357124328613, 0.4567212462425232, -0.07646873593330383, -0.18835891783237457, -0.01903620921075344, 0.09826650470495224, 0.08955337852239609, 0.2853972017765045, -0.5559752583503723, -0.05513099581003189, 0.49273166060447693, -0.18367289006710052, -0.43198516964912415, 0.07861962169408798, 0.08167368918657303, 0.043546441942453384, -0.017397960647940636, 0.6414546370506287, -0.2835344970226288, -0.5346689224243164, -0.02492051012814045, -0.20456399023532867 ]
https://github.com/huggingface/datasets/issues/848
Error when concatenate_datasets
> As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. > > The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. > > Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets. `dataset.flatten_indices()` solved my problem, thanks so much!
Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks!
184
Error when concatenate_datasets Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks! > As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. > > The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. > > Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets. `dataset.flatten_indices()` solved my problem, thanks so much!
[ -0.09119043499231339, -0.1483130007982254, -0.04474927857518196, 0.6809366941452026, 0.10687512159347534, 0.22187866270542145, 0.3129054009914398, 0.22910942137241364, -0.12348338961601257, 0.12460485100746155, -0.1083230972290039, 0.27360355854034424, -0.08168982714414597, -0.12340835481882095, -0.3013668358325958, -0.09740205109119415, 0.19849291443824768, 0.14857041835784912, -0.5059523582458496, -0.031675852835178375, -0.3506394028663635, 0.16024592518806458, -0.3358781635761261, 0.039867836982011795, -0.4097849130630493, 0.04924583435058594, -0.13179023563861847, 0.27618181705474854, -0.03120293840765953, -0.18386495113372803, 0.45858705043792725, -0.34888723492622375, 0.18642646074295044, 0.5364495515823364, -0.00011763784277718514, 0.17008651793003082, 0.2740952968597412, -0.17238235473632812, -0.3783836364746094, -0.25671932101249695, -0.3621295690536499, -0.1004146933555603, -0.0029408219270408154, -0.12345878779888153, 0.2076505422592163, -0.14812088012695312, -0.2583860754966736, -0.504387617111206, 0.3307150900363922, 0.22644895315170288, 0.11047955602407455, 0.39414283633232117, 0.0912058874964714, -0.09805947542190552, 0.03788559511303902, 0.15339846909046173, 0.06594585627317429, 0.4203864634037018, -0.18985889852046967, -0.0617084801197052, 0.21082942187786102, 0.0670611783862114, -0.12466724216938019, 0.1450287252664566, 0.07803633064031601, 0.30991122126579285, 0.1576005518436432, -0.39687642455101013, -0.12527789175510406, 0.1079111322760582, 0.5253134965896606, -0.3321689963340759, -0.3178466558456421, -0.08615797758102417, 0.1388191282749176, -0.399522989988327, 0.2178884893655777, 0.29791373014450073, -0.1470903605222702, 0.11746271699666977, -0.09073854982852936, 0.0771457627415657, -0.2191740870475769, 0.18462905287742615, -0.18065065145492554, 0.1145215630531311, -0.16109678149223328, 0.2407020628452301, 0.13817104697227478, -0.07304085046052933, 0.5286438465118408, -0.3571856915950775, -0.12692508101463318, 0.1591959297657013, -0.3422974646091461, 0.03218716010451317, -0.1896214783191681, -0.7045971751213074, 0.08900929987430573, 0.055820319801568985, 0.10370052605867386, -0.22045859694480896, 0.07737085223197937, 0.2818929851055145, 0.4017774760723114, 0.14928889274597168, -0.03738165646791458, 0.5497029423713684, -0.020275656133890152, -0.06169677525758743, 0.1993696391582489, 0.009052800945937634, -0.28676456212997437, -0.21140968799591064, 0.1154315248131752, -0.16468805074691772, 0.08365589380264282, -0.0013334607938304543, -0.49712610244750977, -0.15189197659492493, -0.12786096334457397, -0.14049457013607025, 0.19656047224998474, 0.030194062739610672, 0.12389945238828659, 0.5308148860931396, 0.13073767721652985, 0.4409755766391754, 0.21734875440597534, 0.017421063035726547, -0.22650893032550812, 0.022214330732822418, -0.04511668160557747, 0.21043550968170166, 0.10341386497020721, 0.004443905781954527, 0.08212240785360336, 0.1775864213705063, 0.10875587165355682, 0.00644929613918066, 0.07688581198453903, -0.4948601722717285, 0.05832669138908386, 0.31147047877311707, 0.02116510458290577, 0.07500375062227249, 0.27387431263923645, -0.050314269959926605, -0.14390313625335693, 0.31701532006263733, -0.4437074661254883, -0.2742713689804077, -0.5135647654533386, 0.09688185900449753, 0.09895588457584381, 0.23291632533073425, -0.32036396861076355, -0.11133211106061935, 0.6928229331970215, 0.10456723719835281, -0.06835786253213882, -0.06628826260566711, -0.19841542840003967, -0.31955859065055847, 0.3204249441623688, 0.2007114440202713, -0.21646748483181, -0.033044714480638504, -0.018492812290787697, -0.0677982047200203, 0.36040347814559937, 0.5054659247398376, -0.31536418199539185, 0.19920149445533752, -0.3855016231536865, -0.03318231552839279, 0.3084060251712799, -0.4366769790649414, -0.1402207314968109, 0.2154027670621872, 0.0032157995738089085, -0.07358703762292862, 0.237611785531044, 0.008284227922558784, 0.13142314553260803, 0.14721612632274628, 0.8280853629112244, 0.3132544457912445, 0.0639016181230545, -0.17818725109100342, -0.09761268645524979, -0.13833650946617126, 0.2659764885902405, 0.10001065582036972, -0.23239412903785706, 0.035079363733530045, -0.1362983137369156, -0.4177928864955902, 0.32372209429740906, -0.1016947329044342, 0.039677560329437256, 0.36891210079193115, 0.03515569493174553, -0.34318026900291443, -0.11548584699630737, 0.046179406344890594, -0.19547364115715027, 0.04835238680243492, 0.03796084597706795, -0.08521530032157898, -0.29979997873306274, 0.09154374152421951, -0.12289441376924515, 0.07692160457372665, -0.07233616709709167, 0.04985435679554939, 0.017612336203455925, 0.23527827858924866, -0.17259854078292847, -0.24803200364112854, -0.16533103585243225, 0.4237132966518402, -0.27778297662734985, -0.026918569579720497, -0.20736005902290344, 0.5686877369880676, -0.0645180493593216, -0.03209817782044411, -0.1763465404510498, -0.03937499597668648, 0.058933842927217484, 0.11640191823244095, -0.05410145968198776, 0.5149708390235901, 0.05206681787967682, -0.16847774386405945, 0.025942429900169373, -0.20578257739543915, 0.22902117669582367, -0.07725028693675995, 0.13991102576255798, -0.12018477916717529, 0.13092784583568573, -0.09698837995529175, 0.07233221083879471, 0.4227219820022583, -0.13237111270427704, 0.2828250229358673, -0.021570617333054543, 0.09008917957544327, 0.1695285439491272, 0.1452978402376175, -0.058325331658124924, -0.4177127778530121, -0.0745222270488739, 0.16754212975502014, 0.2188815027475357, 0.2504178285598755, -0.4655804932117462, -0.23471610248088837, 0.3388252854347229, 0.02467729151248932, 0.04220883548259735, 0.1224704459309578, -0.3912702202796936, -0.04061001166701317, -0.028423350304365158, 0.349185049533844, 0.7707192897796631, 0.12764380872249603, 0.033459026366472244, -0.12033645063638687, -0.03592347726225853, 0.007695726118981838, 0.34991565346717834, 0.06371048092842102, 0.3463793098926544, 0.3114229142665863, -0.017367249354720116, 0.0689954087138176, -0.01665603742003441, -0.08799376338720322, 0.08758674561977386, 0.06227598711848259, -0.4036809802055359, 0.05286400020122528, -0.18998625874519348, -0.05431295558810234, -0.30404913425445557, -0.24631944298744202, -0.10401066392660141, -0.21191367506980896, -0.4094071388244629, 0.22741267085075378, -0.05454429239034653, 0.19563494622707367, -0.193385511636734, 0.05452090501785278, 0.15092885494232178, -0.09174890071153641, 0.00032517590443603694, 0.009441838599741459, -0.20656873285770416, -0.03260403871536255, 0.22103729844093323, -0.10533781349658966, 0.036282867193222046, -0.18572767078876495, 0.030104555189609528, -0.11809207499027252, 0.11544667184352875, 0.013829990290105343, -0.0758276879787445, 0.19631467759609222, 0.051677267998456955, 0.20550353825092316, -0.04730928689241409, -0.6516992449760437, 0.13523715734481812, 0.5362840294837952, -0.27456095814704895, 0.37999528646469116, 0.14905273914337158, -0.09476052224636078, -0.10532199591398239, -0.26672109961509705, -0.4566356837749481, -0.3636385500431061, -0.06515009701251984, -0.14521260559558868, 0.2417432963848114, 0.285662442445755, 0.23686939477920532, 0.00917044747620821, 0.14594440162181854, 0.15381954610347748, -0.0961042121052742, -0.2391653060913086, 0.4765641689300537, 0.0441288948059082, -0.176458939909935, -0.14542831480503082, -0.06851351261138916, 0.29392009973526, 0.20500899851322174, -0.37040790915489197, 0.1182420402765274, -0.08393000066280365, 0.07217473536729813, -0.3724440336227417, 0.08169059455394745, 0.09550417214632034, 0.3071271479129791, -0.04956848546862602, -0.10565321892499924, -0.1409303843975067, 0.12135202437639236, 0.05091797932982445, 0.3641844093799591, -0.02699044719338417, 0.3982568085193634, -0.08975323289632797, 0.4547496736049652, 0.26242831349372864, -0.16175700724124908, 0.21309296786785126, 0.17499063909053802, 0.518825888633728, 0.009832801297307014, -0.4894424080848694, -0.30854856967926025, -0.10530896484851837, -0.02227795124053955, -0.1453579217195511, -0.13144788146018982, -0.2135680466890335, -0.1715722531080246, 0.1677524745464325, -0.20210446417331696, -0.09774459898471832, 0.09347096085548401, -0.4890361428260803, 0.2789095938205719, -0.26716339588165283, -0.017228547483682632, -0.225540891289711, 0.23680520057678223, -0.33885282278060913, -0.0028130931314080954, 0.15307390689849854, -0.10816946625709534, -0.07584206759929657, -0.05322517827153206, -0.16712214052677155, 0.2889290153980255, 0.07080289721488953, 0.6286578178405762, 0.08713400363922119, -0.36192020773887634, -0.14135706424713135, 0.10619163513183594, 0.6050745844841003, 0.3731424808502197, -0.3529815375804901, 0.34405428171157837, 0.14444397389888763, -0.5278425216674805, -0.13232369720935822, -0.14307337999343872, 0.24728122353553772, -0.0800594612956047, 0.6192367076873779, -0.2810606062412262, -0.21028688549995422, 0.048355307430028915, 0.3565573990345001, -0.05513641610741615, -0.07017537951469421, -0.33752909302711487, -0.09485521912574768, -0.2657569646835327, -0.17509733140468597, -0.008599556982517242, 0.37275752425193787, -0.11776220053434372, -0.030783431604504585, -0.10241628438234329, -0.20328427851200104, 0.0942046195268631, -0.06156346574425697, 0.5736798048019409, -0.10580819845199585, 0.33820071816444397, -0.04043008014559746, 0.27280762791633606, 0.7298619151115417, 0.3896462917327881, 0.04856519028544426, -0.2766020894050598, 0.20844045281410217, 0.06652785837650299, 0.3524952828884125, 0.03255718573927879, -0.07743891328573227, 0.027674507349729538, -0.13960449397563934, 0.10973313450813293, -0.06651543825864792, 0.08004791289567947, 0.35779112577438354, -0.021419953554868698, -0.6502231955528259, -0.24151088297367096, 0.34916821122169495, 0.21813029050827026, -0.044607002288103104, 0.4857544004917145, -0.18558894097805023, -0.4610423445701599, 0.13228240609169006, 0.04883066192269325, 0.9176328182220459, 0.07885604351758957, 0.3388036787509918, 0.18194356560707092, -0.23259633779525757, 0.22113844752311707, 0.1656608283519745, 0.16699126362800598, -0.2519564926624298, -0.2050488144159317, -0.11600618064403534, -0.3928782641887665, -0.0402875579893589, 0.12299180030822754, -0.29471296072006226, 0.1419774293899536, -0.4592786729335785, 0.11786577105522156, -0.1265638917684555, -0.013209200464189053, -0.1652887463569641, -0.21604953706264496, -0.16198210418224335, 0.013073180802166462, -0.03126557171344757, -0.15887172520160675, -0.014159617014229298, -0.24843107163906097, -0.3144504725933075, -0.09130442887544632, -0.15309728682041168, 0.2241206020116806, -0.23085878789424896, 0.7114490270614624, -0.06415950506925583, -0.2984413802623749, -0.20776548981666565, 0.19098302721977234, 0.11604223400354385, -0.20210552215576172, 0.062432195991277695, -0.10678178817033768, -0.002385784639045596, 0.04360824078321457, -0.03022981993854046, -0.12061429768800735, 0.1903313249349594, 0.10352326929569244, -0.23951879143714905, 0.1121627688407898, -0.05872495844960213, -0.33592748641967773, 0.04980367794632912, 0.33672794699668884, 0.07348060607910156, -0.18480093777179718, -0.19937419891357422, 0.20473423600196838, 0.034234900027513504, -0.08933018893003464, 0.09722254425287247, 0.16332797706127167, -0.13733601570129395, 0.11539693176746368, -0.22874531149864197, -0.34221574664115906, -0.03661167249083519, 0.5363502502441406, 0.33104944229125977, 0.17689894139766693, 0.5639308094978333, -0.25129982829093933, -0.011510645970702171, -0.12109039723873138, 0.3575095236301422, -0.04845616966485977, -0.11711806803941727, 0.2420293539762497, 0.04649269953370094, 0.03164339438080788, -0.16861701011657715, 0.08653545379638672, 0.4298747777938843, 0.2080897092819214, -0.1115063950419426, -0.35596582293510437, -0.539413571357727, 0.38487496972084045, -0.13385310769081116, 0.22954876720905304, -0.094367615878582, 0.018808988854289055, -0.2178020030260086, -0.14289380609989166, -0.23197166621685028, 0.004023962654173374, -0.25923192501068115, 0.04605752229690552, 0.14327390491962433, -0.05421994999051094, 0.13752403855323792, -0.0019381619058549404, 0.11710239201784134, -0.05308672785758972, -0.05598682165145874, -0.10222440212965012, 0.14517560601234436, 0.14760680496692657, 0.10748853534460068, -0.22965261340141296, -0.10949648171663284, -0.355410635471344, -0.09644248336553574, -0.14278535544872284, -0.19452165067195892, 0.14739589393138885, -0.06960608065128326, 0.09598907828330994, 0.02842581458389759, 0.16976261138916016, -0.08422600477933884, 0.17736755311489105, -0.007818983867764473, 0.12234076857566833, -0.16525663435459137, 0.32268550992012024, -0.10201814770698547, -0.10350269079208374, -0.5782658457756042, 0.008040985092520714, -0.11383804678916931, -0.11873996257781982, 0.19466224312782288, -0.23553653061389923, -0.18246717751026154, -0.06589585542678833, 0.16938835382461548, 0.423876017332077, -0.24219468235969543, 0.05386605113744736, 0.06711450964212418, 0.11560943722724915, -0.1454009860754013, -0.23784685134887695, -0.4377286434173584, -0.16793882846832275, -0.28984153270721436, 0.017973868176341057, 0.026465242728590965, 0.021435806527733803, -0.14763300120830536, 0.047171980142593384, 0.2570021152496338, -0.03312629088759422, 0.3051673471927643, 0.4617435336112976, 0.12236983329057693, 0.04979517310857773, 0.13226665556430817, 0.2484997659921646, 0.38216936588287354, 0.3037099838256836, -0.14841876924037933, 0.22876201570034027, 0.16435322165489197, -0.21518604457378387, 0.0003149293188471347, -0.2952016592025757, 0.008263814263045788, 0.21861571073532104, -0.1552528291940689, -0.11986878514289856, -0.019283723086118698, 0.11784549057483673, -0.3018819987773895, -0.2792959213256836, -0.15895231068134308, 0.1722867488861084, -0.09790430217981339, -0.03844482824206352, -0.09086653590202332, -0.16824652254581451, -0.05771354213356972, -0.13062234222888947, 0.1583767533302307, -0.1463903933763504, 0.3186435103416443, 0.14996960759162903, -0.22768472135066986, -0.1426094025373459, 0.22739379107952118, 0.678019106388092, -0.06400588899850845, -0.35320231318473816, 0.16631019115447998, 0.4771783649921417, 0.07670034468173981, 0.10966067016124725, 0.22680242359638214, 0.6265039443969727, 0.6114822030067444, 0.06252647936344147, -0.0997544452548027, 0.21632876992225647, -0.18718485534191132, 0.135588139295578, 0.16797147691249847, 0.027832526713609695, -0.20908530056476593, 0.20760545134544373, 0.19351279735565186, -0.045594967901706696, 0.16156181693077087, 0.14688581228256226, 0.21996082365512848, -0.3095564842224121, 0.1947544664144516, -0.31781476736068726, -0.20080135762691498, 0.08132191747426987, 0.019271433353424072, -0.3569808006286621, 0.04972260072827339, 0.6105671525001526, 0.0852065235376358, 0.1231750026345253, 0.31970709562301636, 0.02370610646903515, 0.023422714322805405, 0.39119377732276917, 0.4590087831020355, 0.14059749245643616, -0.4542922079563141, -0.1931883692741394, -0.37838980555534363, -0.05332418531179428, 0.24002254009246826, 0.09847740083932877, -0.12065073102712631, 0.2832745909690857, 0.2563616931438446, -0.005638148169964552, 0.15366271138191223, 0.26941442489624023, -0.08837676048278809, -0.09588337689638138, -0.43449264764785767, -0.13295094668865204, 0.12469367682933807, -0.019476385787129402, 0.022134777158498764, -0.5011000633239746, 0.17182283103466034, 0.1736246794462204, 0.011649155989289284, -0.012256818823516369, 0.2122923582792282, 0.2748071551322937, 0.5003042221069336, 0.37911278009414673, 0.15555554628372192, 0.47568562626838684, -0.026323039084672928, -0.16170883178710938, 0.02529904805123806, -0.6679953336715698, -0.17316029965877533, 0.1567946821451187, 0.0030110529623925686, 0.23588302731513977, -0.3328932225704193, -0.05051435902714729, -0.18134140968322754, 0.22132326662540436, -0.11841975152492523, -0.23708733916282654, -0.16636215150356293, -0.015736529603600502, 0.04363098368048668, -0.22969581186771393, 0.13400250673294067, 0.11973520368337631, 0.023528002202510834, 0.40174421668052673, -0.09754134714603424, -0.29178357124328613, 0.4567212462425232, -0.07646873593330383, -0.18835891783237457, -0.01903620921075344, 0.09826650470495224, 0.08955337852239609, 0.2853972017765045, -0.5559752583503723, -0.05513099581003189, 0.49273166060447693, -0.18367289006710052, -0.43198516964912415, 0.07861962169408798, 0.08167368918657303, 0.043546441942453384, -0.017397960647940636, 0.6414546370506287, -0.2835344970226288, -0.5346689224243164, -0.02492051012814045, -0.20456399023532867 ]
https://github.com/huggingface/datasets/issues/848
Error when concatenate_datasets
@lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it)
Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks!
31
Error when concatenate_datasets Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks! @lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it)
[ -0.09119043499231339, -0.1483130007982254, -0.04474927857518196, 0.6809366941452026, 0.10687512159347534, 0.22187866270542145, 0.3129054009914398, 0.22910942137241364, -0.12348338961601257, 0.12460485100746155, -0.1083230972290039, 0.27360355854034424, -0.08168982714414597, -0.12340835481882095, -0.3013668358325958, -0.09740205109119415, 0.19849291443824768, 0.14857041835784912, -0.5059523582458496, -0.031675852835178375, -0.3506394028663635, 0.16024592518806458, -0.3358781635761261, 0.039867836982011795, -0.4097849130630493, 0.04924583435058594, -0.13179023563861847, 0.27618181705474854, -0.03120293840765953, -0.18386495113372803, 0.45858705043792725, -0.34888723492622375, 0.18642646074295044, 0.5364495515823364, -0.00011763784277718514, 0.17008651793003082, 0.2740952968597412, -0.17238235473632812, -0.3783836364746094, -0.25671932101249695, -0.3621295690536499, -0.1004146933555603, -0.0029408219270408154, -0.12345878779888153, 0.2076505422592163, -0.14812088012695312, -0.2583860754966736, -0.504387617111206, 0.3307150900363922, 0.22644895315170288, 0.11047955602407455, 0.39414283633232117, 0.0912058874964714, -0.09805947542190552, 0.03788559511303902, 0.15339846909046173, 0.06594585627317429, 0.4203864634037018, -0.18985889852046967, -0.0617084801197052, 0.21082942187786102, 0.0670611783862114, -0.12466724216938019, 0.1450287252664566, 0.07803633064031601, 0.30991122126579285, 0.1576005518436432, -0.39687642455101013, -0.12527789175510406, 0.1079111322760582, 0.5253134965896606, -0.3321689963340759, -0.3178466558456421, -0.08615797758102417, 0.1388191282749176, -0.399522989988327, 0.2178884893655777, 0.29791373014450073, -0.1470903605222702, 0.11746271699666977, -0.09073854982852936, 0.0771457627415657, -0.2191740870475769, 0.18462905287742615, -0.18065065145492554, 0.1145215630531311, -0.16109678149223328, 0.2407020628452301, 0.13817104697227478, -0.07304085046052933, 0.5286438465118408, -0.3571856915950775, -0.12692508101463318, 0.1591959297657013, -0.3422974646091461, 0.03218716010451317, -0.1896214783191681, -0.7045971751213074, 0.08900929987430573, 0.055820319801568985, 0.10370052605867386, -0.22045859694480896, 0.07737085223197937, 0.2818929851055145, 0.4017774760723114, 0.14928889274597168, -0.03738165646791458, 0.5497029423713684, -0.020275656133890152, -0.06169677525758743, 0.1993696391582489, 0.009052800945937634, -0.28676456212997437, -0.21140968799591064, 0.1154315248131752, -0.16468805074691772, 0.08365589380264282, -0.0013334607938304543, -0.49712610244750977, -0.15189197659492493, -0.12786096334457397, -0.14049457013607025, 0.19656047224998474, 0.030194062739610672, 0.12389945238828659, 0.5308148860931396, 0.13073767721652985, 0.4409755766391754, 0.21734875440597534, 0.017421063035726547, -0.22650893032550812, 0.022214330732822418, -0.04511668160557747, 0.21043550968170166, 0.10341386497020721, 0.004443905781954527, 0.08212240785360336, 0.1775864213705063, 0.10875587165355682, 0.00644929613918066, 0.07688581198453903, -0.4948601722717285, 0.05832669138908386, 0.31147047877311707, 0.02116510458290577, 0.07500375062227249, 0.27387431263923645, -0.050314269959926605, -0.14390313625335693, 0.31701532006263733, -0.4437074661254883, -0.2742713689804077, -0.5135647654533386, 0.09688185900449753, 0.09895588457584381, 0.23291632533073425, -0.32036396861076355, -0.11133211106061935, 0.6928229331970215, 0.10456723719835281, -0.06835786253213882, -0.06628826260566711, -0.19841542840003967, -0.31955859065055847, 0.3204249441623688, 0.2007114440202713, -0.21646748483181, -0.033044714480638504, -0.018492812290787697, -0.0677982047200203, 0.36040347814559937, 0.5054659247398376, -0.31536418199539185, 0.19920149445533752, -0.3855016231536865, -0.03318231552839279, 0.3084060251712799, -0.4366769790649414, -0.1402207314968109, 0.2154027670621872, 0.0032157995738089085, -0.07358703762292862, 0.237611785531044, 0.008284227922558784, 0.13142314553260803, 0.14721612632274628, 0.8280853629112244, 0.3132544457912445, 0.0639016181230545, -0.17818725109100342, -0.09761268645524979, -0.13833650946617126, 0.2659764885902405, 0.10001065582036972, -0.23239412903785706, 0.035079363733530045, -0.1362983137369156, -0.4177928864955902, 0.32372209429740906, -0.1016947329044342, 0.039677560329437256, 0.36891210079193115, 0.03515569493174553, -0.34318026900291443, -0.11548584699630737, 0.046179406344890594, -0.19547364115715027, 0.04835238680243492, 0.03796084597706795, -0.08521530032157898, -0.29979997873306274, 0.09154374152421951, -0.12289441376924515, 0.07692160457372665, -0.07233616709709167, 0.04985435679554939, 0.017612336203455925, 0.23527827858924866, -0.17259854078292847, -0.24803200364112854, -0.16533103585243225, 0.4237132966518402, -0.27778297662734985, -0.026918569579720497, -0.20736005902290344, 0.5686877369880676, -0.0645180493593216, -0.03209817782044411, -0.1763465404510498, -0.03937499597668648, 0.058933842927217484, 0.11640191823244095, -0.05410145968198776, 0.5149708390235901, 0.05206681787967682, -0.16847774386405945, 0.025942429900169373, -0.20578257739543915, 0.22902117669582367, -0.07725028693675995, 0.13991102576255798, -0.12018477916717529, 0.13092784583568573, -0.09698837995529175, 0.07233221083879471, 0.4227219820022583, -0.13237111270427704, 0.2828250229358673, -0.021570617333054543, 0.09008917957544327, 0.1695285439491272, 0.1452978402376175, -0.058325331658124924, -0.4177127778530121, -0.0745222270488739, 0.16754212975502014, 0.2188815027475357, 0.2504178285598755, -0.4655804932117462, -0.23471610248088837, 0.3388252854347229, 0.02467729151248932, 0.04220883548259735, 0.1224704459309578, -0.3912702202796936, -0.04061001166701317, -0.028423350304365158, 0.349185049533844, 0.7707192897796631, 0.12764380872249603, 0.033459026366472244, -0.12033645063638687, -0.03592347726225853, 0.007695726118981838, 0.34991565346717834, 0.06371048092842102, 0.3463793098926544, 0.3114229142665863, -0.017367249354720116, 0.0689954087138176, -0.01665603742003441, -0.08799376338720322, 0.08758674561977386, 0.06227598711848259, -0.4036809802055359, 0.05286400020122528, -0.18998625874519348, -0.05431295558810234, -0.30404913425445557, -0.24631944298744202, -0.10401066392660141, -0.21191367506980896, -0.4094071388244629, 0.22741267085075378, -0.05454429239034653, 0.19563494622707367, -0.193385511636734, 0.05452090501785278, 0.15092885494232178, -0.09174890071153641, 0.00032517590443603694, 0.009441838599741459, -0.20656873285770416, -0.03260403871536255, 0.22103729844093323, -0.10533781349658966, 0.036282867193222046, -0.18572767078876495, 0.030104555189609528, -0.11809207499027252, 0.11544667184352875, 0.013829990290105343, -0.0758276879787445, 0.19631467759609222, 0.051677267998456955, 0.20550353825092316, -0.04730928689241409, -0.6516992449760437, 0.13523715734481812, 0.5362840294837952, -0.27456095814704895, 0.37999528646469116, 0.14905273914337158, -0.09476052224636078, -0.10532199591398239, -0.26672109961509705, -0.4566356837749481, -0.3636385500431061, -0.06515009701251984, -0.14521260559558868, 0.2417432963848114, 0.285662442445755, 0.23686939477920532, 0.00917044747620821, 0.14594440162181854, 0.15381954610347748, -0.0961042121052742, -0.2391653060913086, 0.4765641689300537, 0.0441288948059082, -0.176458939909935, -0.14542831480503082, -0.06851351261138916, 0.29392009973526, 0.20500899851322174, -0.37040790915489197, 0.1182420402765274, -0.08393000066280365, 0.07217473536729813, -0.3724440336227417, 0.08169059455394745, 0.09550417214632034, 0.3071271479129791, -0.04956848546862602, -0.10565321892499924, -0.1409303843975067, 0.12135202437639236, 0.05091797932982445, 0.3641844093799591, -0.02699044719338417, 0.3982568085193634, -0.08975323289632797, 0.4547496736049652, 0.26242831349372864, -0.16175700724124908, 0.21309296786785126, 0.17499063909053802, 0.518825888633728, 0.009832801297307014, -0.4894424080848694, -0.30854856967926025, -0.10530896484851837, -0.02227795124053955, -0.1453579217195511, -0.13144788146018982, -0.2135680466890335, -0.1715722531080246, 0.1677524745464325, -0.20210446417331696, -0.09774459898471832, 0.09347096085548401, -0.4890361428260803, 0.2789095938205719, -0.26716339588165283, -0.017228547483682632, -0.225540891289711, 0.23680520057678223, -0.33885282278060913, -0.0028130931314080954, 0.15307390689849854, -0.10816946625709534, -0.07584206759929657, -0.05322517827153206, -0.16712214052677155, 0.2889290153980255, 0.07080289721488953, 0.6286578178405762, 0.08713400363922119, -0.36192020773887634, -0.14135706424713135, 0.10619163513183594, 0.6050745844841003, 0.3731424808502197, -0.3529815375804901, 0.34405428171157837, 0.14444397389888763, -0.5278425216674805, -0.13232369720935822, -0.14307337999343872, 0.24728122353553772, -0.0800594612956047, 0.6192367076873779, -0.2810606062412262, -0.21028688549995422, 0.048355307430028915, 0.3565573990345001, -0.05513641610741615, -0.07017537951469421, -0.33752909302711487, -0.09485521912574768, -0.2657569646835327, -0.17509733140468597, -0.008599556982517242, 0.37275752425193787, -0.11776220053434372, -0.030783431604504585, -0.10241628438234329, -0.20328427851200104, 0.0942046195268631, -0.06156346574425697, 0.5736798048019409, -0.10580819845199585, 0.33820071816444397, -0.04043008014559746, 0.27280762791633606, 0.7298619151115417, 0.3896462917327881, 0.04856519028544426, -0.2766020894050598, 0.20844045281410217, 0.06652785837650299, 0.3524952828884125, 0.03255718573927879, -0.07743891328573227, 0.027674507349729538, -0.13960449397563934, 0.10973313450813293, -0.06651543825864792, 0.08004791289567947, 0.35779112577438354, -0.021419953554868698, -0.6502231955528259, -0.24151088297367096, 0.34916821122169495, 0.21813029050827026, -0.044607002288103104, 0.4857544004917145, -0.18558894097805023, -0.4610423445701599, 0.13228240609169006, 0.04883066192269325, 0.9176328182220459, 0.07885604351758957, 0.3388036787509918, 0.18194356560707092, -0.23259633779525757, 0.22113844752311707, 0.1656608283519745, 0.16699126362800598, -0.2519564926624298, -0.2050488144159317, -0.11600618064403534, -0.3928782641887665, -0.0402875579893589, 0.12299180030822754, -0.29471296072006226, 0.1419774293899536, -0.4592786729335785, 0.11786577105522156, -0.1265638917684555, -0.013209200464189053, -0.1652887463569641, -0.21604953706264496, -0.16198210418224335, 0.013073180802166462, -0.03126557171344757, -0.15887172520160675, -0.014159617014229298, -0.24843107163906097, -0.3144504725933075, -0.09130442887544632, -0.15309728682041168, 0.2241206020116806, -0.23085878789424896, 0.7114490270614624, -0.06415950506925583, -0.2984413802623749, -0.20776548981666565, 0.19098302721977234, 0.11604223400354385, -0.20210552215576172, 0.062432195991277695, -0.10678178817033768, -0.002385784639045596, 0.04360824078321457, -0.03022981993854046, -0.12061429768800735, 0.1903313249349594, 0.10352326929569244, -0.23951879143714905, 0.1121627688407898, -0.05872495844960213, -0.33592748641967773, 0.04980367794632912, 0.33672794699668884, 0.07348060607910156, -0.18480093777179718, -0.19937419891357422, 0.20473423600196838, 0.034234900027513504, -0.08933018893003464, 0.09722254425287247, 0.16332797706127167, -0.13733601570129395, 0.11539693176746368, -0.22874531149864197, -0.34221574664115906, -0.03661167249083519, 0.5363502502441406, 0.33104944229125977, 0.17689894139766693, 0.5639308094978333, -0.25129982829093933, -0.011510645970702171, -0.12109039723873138, 0.3575095236301422, -0.04845616966485977, -0.11711806803941727, 0.2420293539762497, 0.04649269953370094, 0.03164339438080788, -0.16861701011657715, 0.08653545379638672, 0.4298747777938843, 0.2080897092819214, -0.1115063950419426, -0.35596582293510437, -0.539413571357727, 0.38487496972084045, -0.13385310769081116, 0.22954876720905304, -0.094367615878582, 0.018808988854289055, -0.2178020030260086, -0.14289380609989166, -0.23197166621685028, 0.004023962654173374, -0.25923192501068115, 0.04605752229690552, 0.14327390491962433, -0.05421994999051094, 0.13752403855323792, -0.0019381619058549404, 0.11710239201784134, -0.05308672785758972, -0.05598682165145874, -0.10222440212965012, 0.14517560601234436, 0.14760680496692657, 0.10748853534460068, -0.22965261340141296, -0.10949648171663284, -0.355410635471344, -0.09644248336553574, -0.14278535544872284, -0.19452165067195892, 0.14739589393138885, -0.06960608065128326, 0.09598907828330994, 0.02842581458389759, 0.16976261138916016, -0.08422600477933884, 0.17736755311489105, -0.007818983867764473, 0.12234076857566833, -0.16525663435459137, 0.32268550992012024, -0.10201814770698547, -0.10350269079208374, -0.5782658457756042, 0.008040985092520714, -0.11383804678916931, -0.11873996257781982, 0.19466224312782288, -0.23553653061389923, -0.18246717751026154, -0.06589585542678833, 0.16938835382461548, 0.423876017332077, -0.24219468235969543, 0.05386605113744736, 0.06711450964212418, 0.11560943722724915, -0.1454009860754013, -0.23784685134887695, -0.4377286434173584, -0.16793882846832275, -0.28984153270721436, 0.017973868176341057, 0.026465242728590965, 0.021435806527733803, -0.14763300120830536, 0.047171980142593384, 0.2570021152496338, -0.03312629088759422, 0.3051673471927643, 0.4617435336112976, 0.12236983329057693, 0.04979517310857773, 0.13226665556430817, 0.2484997659921646, 0.38216936588287354, 0.3037099838256836, -0.14841876924037933, 0.22876201570034027, 0.16435322165489197, -0.21518604457378387, 0.0003149293188471347, -0.2952016592025757, 0.008263814263045788, 0.21861571073532104, -0.1552528291940689, -0.11986878514289856, -0.019283723086118698, 0.11784549057483673, -0.3018819987773895, -0.2792959213256836, -0.15895231068134308, 0.1722867488861084, -0.09790430217981339, -0.03844482824206352, -0.09086653590202332, -0.16824652254581451, -0.05771354213356972, -0.13062234222888947, 0.1583767533302307, -0.1463903933763504, 0.3186435103416443, 0.14996960759162903, -0.22768472135066986, -0.1426094025373459, 0.22739379107952118, 0.678019106388092, -0.06400588899850845, -0.35320231318473816, 0.16631019115447998, 0.4771783649921417, 0.07670034468173981, 0.10966067016124725, 0.22680242359638214, 0.6265039443969727, 0.6114822030067444, 0.06252647936344147, -0.0997544452548027, 0.21632876992225647, -0.18718485534191132, 0.135588139295578, 0.16797147691249847, 0.027832526713609695, -0.20908530056476593, 0.20760545134544373, 0.19351279735565186, -0.045594967901706696, 0.16156181693077087, 0.14688581228256226, 0.21996082365512848, -0.3095564842224121, 0.1947544664144516, -0.31781476736068726, -0.20080135762691498, 0.08132191747426987, 0.019271433353424072, -0.3569808006286621, 0.04972260072827339, 0.6105671525001526, 0.0852065235376358, 0.1231750026345253, 0.31970709562301636, 0.02370610646903515, 0.023422714322805405, 0.39119377732276917, 0.4590087831020355, 0.14059749245643616, -0.4542922079563141, -0.1931883692741394, -0.37838980555534363, -0.05332418531179428, 0.24002254009246826, 0.09847740083932877, -0.12065073102712631, 0.2832745909690857, 0.2563616931438446, -0.005638148169964552, 0.15366271138191223, 0.26941442489624023, -0.08837676048278809, -0.09588337689638138, -0.43449264764785767, -0.13295094668865204, 0.12469367682933807, -0.019476385787129402, 0.022134777158498764, -0.5011000633239746, 0.17182283103466034, 0.1736246794462204, 0.011649155989289284, -0.012256818823516369, 0.2122923582792282, 0.2748071551322937, 0.5003042221069336, 0.37911278009414673, 0.15555554628372192, 0.47568562626838684, -0.026323039084672928, -0.16170883178710938, 0.02529904805123806, -0.6679953336715698, -0.17316029965877533, 0.1567946821451187, 0.0030110529623925686, 0.23588302731513977, -0.3328932225704193, -0.05051435902714729, -0.18134140968322754, 0.22132326662540436, -0.11841975152492523, -0.23708733916282654, -0.16636215150356293, -0.015736529603600502, 0.04363098368048668, -0.22969581186771393, 0.13400250673294067, 0.11973520368337631, 0.023528002202510834, 0.40174421668052673, -0.09754134714603424, -0.29178357124328613, 0.4567212462425232, -0.07646873593330383, -0.18835891783237457, -0.01903620921075344, 0.09826650470495224, 0.08955337852239609, 0.2853972017765045, -0.5559752583503723, -0.05513099581003189, 0.49273166060447693, -0.18367289006710052, -0.43198516964912415, 0.07861962169408798, 0.08167368918657303, 0.043546441942453384, -0.017397960647940636, 0.6414546370506287, -0.2835344970226288, -0.5346689224243164, -0.02492051012814045, -0.20456399023532867 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
It looks like an issue with wandb/tqdm here. We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility. Could you make a minimal script to reproduce or a google colab ?
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
46
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` It looks like an issue with wandb/tqdm here. We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility. Could you make a minimal script to reproduce or a google colab ?
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
hi facing the same issue here - `AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit stream.write(msg) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__ return_token_type_ids=True File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus **kwargs, File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies "Truncation was not explicitly activated but `max_length` is provided a specific value, " File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log self.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle self.callHandlers(record) File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers hdlr.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle self.emit(record) File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit self.handleError(record) File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError sys.stderr.write('--- Logging error ---\n') File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process`
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
293
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` hi facing the same issue here - `AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit stream.write(msg) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__ return_token_type_ids=True File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus **kwargs, File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies "Truncation was not explicitly activated but `max_length` is provided a specific value, " File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log self.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle self.callHandlers(record) File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers hdlr.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle self.emit(record) File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit self.handleError(record) File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError sys.stderr.write('--- Logging error ---\n') File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process`
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
It looks like this warning : "Truncation was not explicitly activated but max_length is provided a specific value, " is not handled well by wandb. The error occurs when calling the tokenizer. Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ? Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ?
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
80
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` It looks like this warning : "Truncation was not explicitly activated but max_length is provided a specific value, " is not handled well by wandb. The error occurs when calling the tokenizer. Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ? Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ?
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
I'm having a similar issue but when I try to do multiprocessing with the `DataLoader` Code to reproduce: ``` from datasets import load_dataset book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]') book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000) book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"]) from transformers import DataCollatorForWholeWordMask from transformers import Trainer, TrainingArguments data_collator = DataCollatorForWholeWordMask( tokenizer=tokenizer, mlm=True, mlm_probability=0.15) training_args = TrainingArguments( output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared", overwrite_output_dir=True, num_train_epochs=1, per_device_train_batch_size=64, save_steps=50, save_total_limit=2, logging_first_step=True, warmup_steps=100, logging_steps=50, gradient_accumulation_steps=1, fp16=True, **dataloader_num_workers=10**, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=book_corpus, tokenizer=tokenizer) trainer.train() ``` ``` --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <timed eval> in <module> ~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial) 869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control) 870 --> 871 for step, inputs in enumerate(epoch_iterator): 872 873 # Skip past any already trained steps if resuming training ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self) 433 if self._sampler_iter is None: 434 self._reset() --> 435 data = self._next_data() 436 self._num_yielded += 1 437 if self._dataset_kind == _DatasetKind.Iterable and \ ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self) 1083 else: 1084 del self._task_info[idx] -> 1085 return self._process_data(data) 1086 1087 def _try_put_index(self): ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data) 1109 self._try_put_index() 1110 if isinstance(data, ExceptionWrapper): -> 1111 data.reraise() 1112 return data 1113 ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self) 426 # have message field 427 raise self.exc_type(message=msg) --> 428 raise self.exc_type(msg) 429 430 AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__ format_kwargs=self._format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem format_kwargs=format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg _showwarnmsg_impl(msg) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl file.write(text) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process ``` As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py`
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
383
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` I'm having a similar issue but when I try to do multiprocessing with the `DataLoader` Code to reproduce: ``` from datasets import load_dataset book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]') book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000) book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"]) from transformers import DataCollatorForWholeWordMask from transformers import Trainer, TrainingArguments data_collator = DataCollatorForWholeWordMask( tokenizer=tokenizer, mlm=True, mlm_probability=0.15) training_args = TrainingArguments( output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared", overwrite_output_dir=True, num_train_epochs=1, per_device_train_batch_size=64, save_steps=50, save_total_limit=2, logging_first_step=True, warmup_steps=100, logging_steps=50, gradient_accumulation_steps=1, fp16=True, **dataloader_num_workers=10**, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=book_corpus, tokenizer=tokenizer) trainer.train() ``` ``` --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <timed eval> in <module> ~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial) 869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control) 870 --> 871 for step, inputs in enumerate(epoch_iterator): 872 873 # Skip past any already trained steps if resuming training ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self) 433 if self._sampler_iter is None: 434 self._reset() --> 435 data = self._next_data() 436 self._num_yielded += 1 437 if self._dataset_kind == _DatasetKind.Iterable and \ ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self) 1083 else: 1084 del self._task_info[idx] -> 1085 return self._process_data(data) 1086 1087 def _try_put_index(self): ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data) 1109 self._try_put_index() 1110 if isinstance(data, ExceptionWrapper): -> 1111 data.reraise() 1112 return data 1113 ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self) 426 # have message field 427 raise self.exc_type(message=msg) --> 428 raise self.exc_type(msg) 429 430 AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__ format_kwargs=self._format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem format_kwargs=format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg _showwarnmsg_impl(msg) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl file.write(text) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process ``` As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py`
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()`
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
29
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()`
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
Yep this time this is a warning from pytorch that causes wandb to not work properly. Could this by a wandb issue ?
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
23
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` Yep this time this is a warning from pytorch that causes wandb to not work properly. Could this by a wandb issue ?
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
Hi @timothyjlaurent @gaceladri If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ? This issue might be related to https://github.com/huggingface/transformers/issues/9623
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
30
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` Hi @timothyjlaurent @gaceladri If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ? This issue might be related to https://github.com/huggingface/transformers/issues/9623
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well.
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
45
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well.
[ -0.39569956064224243, 0.015629539266228676, -0.15386860072612762, -0.18502916395664215, 0.14179712533950806, -0.05785677209496498, 0.5068991780281067, 0.34002619981765747, -0.08340372145175934, 0.16817714273929596, -0.01842770352959633, 0.33706265687942505, 0.04750153794884682, 0.0918332114815712, -0.22644416987895966, 0.10214688628911972, -0.012361101806163788, 0.09469198435544968, 0.12901119887828827, 0.04736365005373955, -0.17530958354473114, 0.10407637059688568, -0.23025047779083252, 0.285958856344223, -0.45169609785079956, -0.28573065996170044, -0.016321809962391853, -0.06231626123189926, -0.26432397961616516, -0.46964380145072937, -0.14911313354969025, 0.2851140797138214, -0.18611136078834534, 0.6030858159065247, -0.00010445585212437436, 0.09367256611585617, 0.26277419924736023, 0.04464980587363243, -0.05414028838276863, -0.03007035329937935, 0.09513163566589355, -0.051586005836725235, -0.03099982813000679, -0.403598815202713, -0.004479067400097847, -0.2674306631088257, 0.17791342735290527, -0.44313478469848633, 0.2878313958644867, 0.3189617395401001, 0.26653188467025757, 0.5655280351638794, -0.2092227190732956, -0.004720739554613829, -0.20120088756084442, -0.07836226373910904, -0.03572028875350952, -0.16255348920822144, 0.21671612560749054, -0.24029989540576935, -0.356793612241745, 0.24917444586753845, -0.04302869364619255, 0.1743142306804657, -0.32908695936203003, 0.0007869935361668468, 0.27764979004859924, -0.23742486536502838, 0.31723397970199585, 0.07923595607280731, 0.15078452229499817, -0.2674015164375305, -0.3465920090675354, -0.18200939893722534, -0.2675665020942688, -0.1380908340215683, -0.089617520570755, 0.0866127535700798, -0.30903151631355286, 0.02379450760781765, -0.23142853379249573, 0.06736128777265549, -0.006943035405129194, -0.09713421016931534, -0.2097453624010086, 0.6421575546264648, 0.020410029217600822, 0.2258121371269226, -0.05842634662985802, 0.04215766116976738, 0.1321851909160614, -0.12365136295557022, 0.15500029921531677, -0.028319327160716057, -0.17675969004631042, -0.13390128314495087, 0.17326875030994415, -0.3608185052871704, 0.1934935599565506, -0.05181369557976723, -0.2702679932117462, 0.15695230662822723, 0.12109114974737167, 0.1657908707857132, 0.1612773835659027, 0.050513651221990585, 0.1559114009141922, 0.27964916825294495, 0.2925397753715515, -0.1969955414533615, -0.39080655574798584, -0.012185986153781414, 0.0276289414614439, -0.2749157249927521, 0.1901087760925293, 0.15878094732761383, 0.1859908103942871, 0.020387711003422737, -0.3168937861919403, -0.06742826104164124, -0.13102073967456818, -0.0011096327798441052, 0.010948793031275272, 0.46557024121284485, -0.06257685273885727, 0.21011817455291748, -0.18698561191558838, 0.27661415934562683, -0.19551831483840942, -0.13356488943099976, -0.26745328307151794, 0.1599753051996231, -0.10524030029773712, -0.09127601981163025, 0.08648795634508133, 0.22847719490528107, 0.3958977460861206, 0.05742194876074791, 0.07328195124864578, -0.08521497994661331, 0.4325416386127472, -0.21963496506214142, 0.24671757221221924, 0.055784039199352264, 0.06862098723649979, 0.1359148472547531, 0.2674401104450226, -0.30988869071006775, -0.1797686368227005, -0.07488925009965897, 0.008568225428462029, -0.18837106227874756, -0.006065728608518839, 0.29343321919441223, 0.023470304906368256, 0.029438510537147522, -0.15538142621517181, 0.13251085579395294, 0.23632284998893738, 0.041706446558237076, 0.008472159504890442, -0.1836153119802475, -0.21256710588932037, -0.1611633598804474, 0.16596470773220062, 0.23320430517196655, -0.12463535368442535, -0.022732993587851524, 0.02091171406209469, -0.14516322314739227, 0.27473771572113037, 0.22738640010356903, -0.09133490920066833, 0.6480855941772461, -0.17300477623939514, 0.5878830552101135, 0.1861104667186737, -0.531003475189209, -0.19015347957611084, 0.2092226892709732, -0.3177124261856079, -0.011194906197488308, 0.1317908763885498, -0.16867849230766296, 0.38516098260879517, 0.08028750121593475, 0.18987952172756195, 0.24644868075847626, -0.11047586053609848, 0.2880236804485321, -0.28606724739074707, -0.009603534825146198, 0.08494801074266434, -0.07196982949972153, 0.2393062263727188, -0.2704799771308899, -0.04241027683019638, -0.162123903632164, 0.23722299933433533, -0.14820343255996704, 0.22308333218097687, -0.044385816901922226, 0.06252716481685638, 0.08184312283992767, -0.03920023515820503, -0.12155763059854507, 0.07880974560976028, 0.21578460931777954, 0.043367743492126465, 0.041813191026449203, -0.1905948370695114, -0.19841189682483673, -0.0963728278875351, 0.2760658860206604, -0.2941974103450775, -0.3430737555027008, 0.3505135476589203, 0.35717952251434326, -0.01985083892941475, -0.022445525974035263, -0.07541327178478241, 0.12011875212192535, 0.15308205783367157, 0.006208569277077913, 0.07150037586688995, -0.0785519927740097, -0.19910293817520142, -0.1974659413099289, -0.011525052599608898, 0.07268397510051727, 0.16009698808193207, 0.0034860000014305115, -0.07843618839979172, 0.4022406339645386, 0.23859132826328278, 0.10093681514263153, 0.209890216588974, -0.1776241809129715, -0.0964287742972374, 0.007138308137655258, -0.07284052670001984, 0.11153138428926468, 0.03882995992898941, -0.026494883000850677, 0.14443041384220123, 0.4932914078235626, 0.23655934631824493, 0.19323833286762238, 0.22394943237304688, -0.010135887190699577, 0.23882262408733368, -0.10691148787736893, -0.06092708185315132, -0.1341269463300705, 0.05779863893985748, 0.0031340064015239477, 0.11195488274097443, -0.1359224170446396, -0.20419517159461975, 0.1788972169160843, 0.31493571400642395, -0.08562813699245453, 0.1352989226579666, -0.10588313639163971, -0.08810453116893768, -0.1929529309272766, 0.08140299469232559, 0.19267897307872772, 0.3943271338939667, 0.20048104226589203, 0.18566565215587616, -0.03864085674285889, -0.07745833694934845, -0.07346786558628082, 0.1406775414943695, 0.029972676187753677, 0.19263730943202972, 0.27650028467178345, 0.2475029081106186, -0.21726852655410767, -0.35489726066589355, -0.24354593455791473, 0.17687934637069702, 0.11483516544103622, -0.1390986442565918, 0.02997773140668869, -0.3175421357154846, 0.09187814593315125, -0.03234505280852318, -0.06652028858661652, 0.20711754262447357, -0.34884709119796753, 0.10942060500383377, 0.18526752293109894, -0.1694178432226181, 0.32201942801475525, -0.1171380802989006, 0.08989718556404114, -0.013482797890901566, -0.02175130881369114, -0.0988093689084053, -0.14744175970554352, -0.12541775405406952, 0.13276661932468414, 0.16621607542037964, 0.14497660100460052, 0.4963168203830719, 0.001335731940343976, -0.21897344291210175, -0.5480393171310425, -0.24517175555229187, 0.09712940454483032, -0.1633993536233902, 0.1954905092716217, 0.2778951823711395, 0.042756903916597366, -0.025069579482078552, -0.34094008803367615, 0.3002493977546692, -0.446292906999588, -0.3732336461544037, -0.21334992349147797, 0.09489793330430984, -0.17220385372638702, -0.033569131046533585, -0.3764525353908539, -0.32362353801727295, -0.18133629858493805, 0.3523521423339844, -0.09314951300621033, 0.1716119647026062, -0.1554572582244873, -0.10545181483030319, 0.14559096097946167, -0.02036760374903679, 0.11214301735162735, -0.21872751414775848, -0.14481651782989502, -0.019447071477770805, -0.1510416865348816, -0.2830697298049927, -0.15604433417320251, -0.1409054845571518, 0.43743669986724854, -0.1034085750579834, -0.17841842770576477, -0.0407511405646801, -0.16121436655521393, 0.4367101788520813, 0.024229425936937332, -0.04900403320789337, 0.34421592950820923, 0.2696903944015503, -0.348138689994812, -0.08738206326961517, -0.1605864018201828, 0.049643050879240036, -0.298218697309494, -0.11030737310647964, -0.18568503856658936, 0.42143091559410095, 0.2078021913766861, 0.5972416996955872, 0.028514768928289413, -0.06138862669467926, 0.13243211805820465, -0.4377179443836212, -0.017275776714086533, -0.03371984884142876, -0.42599090933799744, 0.16263039410114288, -0.2667846083641052, -0.10148607939481735, 0.13507595658302307, -0.16772989928722382, -0.11508677899837494, 0.15140663087368011, 0.0009895513067021966, -0.3835221529006958, -0.20996618270874023, 0.03772967308759689, -0.19257746636867523, 0.08604374527931213, 0.0603305920958519, 0.014108751900494099, -0.41125810146331787, 0.22607219219207764, -0.07219269126653671, -0.02183583751320839, -0.1237451583147049, -0.33982667326927185, -0.34644365310668945, 0.017571380361914635, -0.6085759401321411, 0.3544570803642273, 0.1318599283695221, 0.485148161649704, 0.13677947223186493, 0.00530020659789443, 0.04146597161889076, -0.2825492322444916, 0.6524978876113892, -0.21519708633422852, 0.07490112632513046, 0.18368077278137207, -0.32771292328834534, -0.29102659225463867, -0.043659757822752, -0.35575252771377563, 0.4460587203502655, 0.3172535300254822, 0.48655545711517334, -0.19183294475078583, -0.35180187225341797, 0.12243159115314484, -0.019951844587922096, 0.033475361764431, 0.011867904104292393, -0.2885986864566803, -0.3060879409313202, -0.4088723361492157, 0.3470340967178345, 0.08871336281299591, 0.18136364221572876, -0.0699501484632492, -0.12458662688732147, -0.18054281175136566, -0.035294581204652786, 0.10698142647743225, 0.18738216161727905, -0.061682529747486115, -0.15728338062763214, 0.1408727914094925, -0.021911559626460075, 0.21164579689502716, 0.23550456762313843, 0.050060998648405075, -0.09510481357574463, -0.11504402756690979, 0.0940200462937355, 0.020832136273384094, 0.41146594285964966, 0.24165211617946625, -0.1685582548379898, 0.36997461318969727, -0.13645173609256744, 0.28863415122032166, -0.11083601415157318, 0.47397685050964355, 0.5543162822723389, 0.18995797634124756, -0.10460556298494339, -0.1071341410279274, 0.03848112374544144, 0.14150001108646393, -0.1566070020198822, 0.3062244951725006, -0.2532041668891907, -0.22881457209587097, 0.14763355255126953, 0.17791616916656494, 0.5770254731178284, -0.09325012564659119, 0.08757560700178146, 0.06928245723247528, -0.03396661952137947, 0.06642573326826096, -0.32259535789489746, 0.12474223226308823, -0.288105309009552, -0.12236829102039337, 0.06375052779912949, -0.048977140337228775, 0.16195884346961975, 0.18762344121932983, -0.32566899061203003, 0.1354864537715912, 0.27918410301208496, 0.1854785531759262, 0.02448233775794506, 0.43165114521980286, 0.0075262924656271935, -0.2300826460123062, -0.023363657295703888, 0.22795189917087555, 0.17968180775642395, -0.05628717318177223, -0.02792983129620552, 0.10048083961009979, -0.06918385624885559, -0.3762976825237274, -0.19399887323379517, 0.02087300829589367, -0.43129563331604004, 0.3942316472530365, 0.023780222982168198, 0.059465356171131134, 0.028133438900113106, 0.1458715796470642, 0.14479775726795197, 0.20503637194633484, 0.010779240168631077, 0.11702828854322433, 0.09324818849563599, 0.09103851765394211, 0.08385423570871353, -0.29344919323921204, 0.26234880089759827, -0.12499216943979263, -0.45296216011047363, 0.05692712217569351, -0.07048989832401276, -0.2504340708255768, 0.02440553344786167, 0.10592314600944519, 0.293075293302536, -0.22477871179580688, 0.042318157851696014, -0.046464864164590836, -0.23835034668445587, -0.39656245708465576, 0.20394445955753326, -0.11479435116052628, -0.1983676701784134, 0.29783937335014343, -0.107074074447155, -0.3055645525455475, -0.028058670461177826, 0.28361985087394714, 0.029985731467604637, 0.15216583013534546, 0.5996192693710327, -0.07733049988746643, -0.1156410425901413, -0.4316451847553253, 0.09796030819416046, 0.31893453001976013, 0.14947493374347687, 0.24773944914340973, -0.18954403698444366, -0.24317897856235504, 0.07211872190237045, 0.18855145573616028, 0.03789139539003372, 0.14532823860645294, -0.24025790393352509, -0.2921876311302185, -0.4588644802570343, 0.004601927008479834, -0.1703902631998062, 0.2114723175764084, 0.1943897008895874, 0.4413270354270935, -0.13522407412528992, 0.23665563762187958, -0.42792075872421265, -0.03729608654975891, -0.46850481629371643, 0.24837201833724976, -0.04784037545323372, -0.0903499647974968, 0.0450875349342823, 0.05139044672250748, 0.3058927059173584, 0.22088183462619781, -0.05766109749674797, -0.38705918192863464, -0.09214980155229568, 0.09315279126167297, 0.10928040742874146, 0.014330612495541573, 0.19763842225074768, 0.21313230693340302, -0.22416086494922638, -0.2637845277786255, 0.10435866564512253, 0.12850913405418396, -0.08723382651805878, 0.07877705991268158, 0.18168257176876068, 0.03261411190032959, -0.025691669434309006, -0.33613118529319763, -0.05618596822023392, 0.03207643702626228, -0.0667613074183464, 0.3304428458213806, 0.03132500499486923, -0.054509032517671585, 0.09978029131889343, 0.05938104912638664, 0.2828303575515747, 0.22852405905723572, 0.030653102323412895, -0.10304836928844452, -0.34916526079177856, -0.002899290295317769, 0.38467466831207275, 0.24404431879520416, -0.24257659912109375, -0.0939173549413681, 0.2190350592136383, 0.3167301416397095, -0.23192575573921204, -0.07277563214302063, 0.25969794392585754, -0.3800118565559387, 0.37908223271369934, 0.2261142134666443, 0.00720655033364892, 0.18527041375637054, 0.11054417490959167, 0.005097346846014261, 0.22658339142799377, -0.39736825227737427, -0.011979819275438786, 0.09004418551921844, -0.141070157289505, 0.19856232404708862, 0.4492418169975281, 0.07346726208925247, 0.24628965556621552, 0.3410061001777649, 0.014755500480532646, 0.5114743709564209, -0.12468533962965012, 0.07249407470226288, 0.058909330517053604, -0.04156767949461937, 0.3311866819858551, -0.0005667982622981071, -0.034797511994838715, 0.008965294808149338, -0.08801257610321045, 0.3054795563220978, -0.33362558484077454, -0.05286736786365509, -0.2124442309141159, 0.36878910660743713, -0.19148273766040802, -0.38564035296440125, -0.23804821074008942, -0.08182919025421143, -0.14134959876537323, -0.07851652055978775, -0.019069137051701546, 0.19731400907039642, 0.0451892614364624, -0.08204134553670883, 0.013133560307323933, -0.2212526798248291, -0.019214941188693047, -0.07835766673088074, 0.13081932067871094, -0.26260071992874146, 0.20014967024326324, 0.13147090375423431, 0.14044247567653656, -0.16711167991161346, 0.6095548272132874, 0.5709313154220581, 0.304699182510376, -0.19885914027690887, -0.12603223323822021, -0.3344714343547821, -0.13865433633327484, -0.20023448765277863, 0.2863619029521942, 0.0003168326220475137, -0.1747998744249344, 0.26251548528671265, 0.2772243022918701, -0.26587793231010437, -0.15649597346782684, 0.41903525590896606, -0.17714397609233856, 0.12258683890104294, 0.16750866174697876, 0.13536076247692108, -0.22696635127067566, 0.07329601049423218, 0.10386991500854492, -0.3389838933944702, -0.03455618396401405, 0.29963502287864685, -0.2357948273420334, 0.32665082812309265, -0.13107548654079437, 0.16378465294837952, 0.04630281776189804, 0.45075103640556335, 0.050323065370321274, 0.17392945289611816, -0.3142848610877991, -0.13315272331237793, -0.578224241733551, 0.2144252359867096, -0.16886532306671143, -0.364803284406662, -0.19313661754131317, 0.15718340873718262, 0.10294877737760544, 0.10655490309000015, 0.24093064665794373, 0.07789506763219833, -0.10901704430580139, 0.21870988607406616, -0.36192139983177185, 0.0869542807340622, 0.17559511959552765, 0.051984935998916626, 0.204318568110466, -0.43355947732925415, 0.20952418446540833, -0.001467975089326501, 0.23830193281173706, -0.014497384428977966, 0.03477630764245987, 0.18141978979110718, -0.3401246666908264, 0.27462896704673767, 0.10931248217821121, 0.5257290005683899, -0.4383835196495056, 0.0910448506474495, -0.12690694630146027, 0.16063107550144196, -0.44192883372306824, 0.05747156962752342, 0.24141031503677368, 0.1892360895872116, 0.08728437125682831, -0.031146923080086708, -0.13156649470329285, 0.11885801702737808, 0.2362547069787979, -0.09222375601530075, -0.013922788202762604, 0.30295297503471375, 0.10600688308477402, 0.07488639652729034, -0.10648835450410843, 0.33997172117233276, -0.022549958899617195, 0.2731775641441345, -0.49031275510787964, -0.4749886989593506, 0.30617755651474, -0.5121239423751831, -0.4921654760837555, -0.38598868250846863, 0.2887362837791443, -0.09396841377019882, 0.09359335154294968, -0.3449760973453522, -0.011236079968512058, 0.2883767783641815, 0.10603533685207367, -0.5911829471588135, 0.18089659512043, 0.08866053819656372, -0.04504164680838585, -0.0889834389090538, 0.32493603229522705, 0.007715535815805197, -0.15119336545467377, -0.02118195965886116, -0.10206128656864166 ]
https://github.com/huggingface/datasets/issues/846
Add HoVer multi-hop fact verification dataset
Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies?
## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
23
Add HoVer multi-hop fact verification dataset ## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies?
[ -0.22729943692684174, -0.08233227580785751, 0.0003384961455594748, 0.1499364972114563, -0.40595149993896484, -0.034600988030433655, 0.19197626411914825, 0.10570233315229416, 0.09617859125137329, -0.14476287364959717, -0.04718273505568504, -0.10354623198509216, -0.26353123784065247, 0.23446713387966156, 0.21328461170196533, -0.05957355722784996, -0.1592913717031479, -0.1947902888059616, 0.11156024038791656, 0.00932522676885128, -0.011954882182180882, 0.01307489350438118, -0.2015620917081833, 0.004505892284214497, -0.5718671679496765, 0.03307545185089111, -0.25341975688934326, -0.15480321645736694, 0.08582929521799088, -0.36019256711006165, 0.20603807270526886, 0.6282492876052856, 0.11204779148101807, 0.5196274518966675, -0.00011653682304313406, -0.3225637376308441, 0.1629251092672348, 0.05322355404496193, -0.22200994193553925, -0.08756695687770844, -0.23451295495033264, 0.008583777584135532, 0.09813112765550613, -0.1646181344985962, 0.0027153468690812588, 0.00036968154017813504, -0.3450671434402466, 0.01695171371102333, 0.2611090838909149, 0.1450035125017166, 0.17915403842926025, 0.20808018743991852, -0.10051847249269485, 0.002298224251717329, 0.22886955738067627, -0.05324612557888031, 0.024070998653769493, 0.5337884426116943, 0.12783277034759521, 0.008217038586735725, -0.33056116104125977, 0.25560325384140015, -0.04823433980345726, 0.09524081647396088, 0.029668986797332764, -0.21658210456371307, 0.20728150010108948, -0.024880245327949524, -0.1847686469554901, 0.6821912527084351, 0.1113194152712822, -0.13589364290237427, -0.3626836836338043, -0.1780857890844345, 0.14151158928871155, 0.19105589389801025, 0.01085485890507698, 0.08377895504236221, -0.3718941807746887, 0.2523232400417328, -0.20557278394699097, -0.43190664052963257, -0.050922248512506485, 0.06195914372801781, 0.34577012062072754, 0.17885808646678925, -0.013749395497143269, 0.15113753080368042, 0.2833223342895508, 0.16855722665786743, 0.1721874326467514, -0.39325621724128723, 0.16341666877269745, -0.06128045916557312, -0.24622079730033875, -0.33606189489364624, 0.30166009068489075, 0.43684902787208557, 0.3293212056159973, 0.4084147810935974, 0.19782187044620514, 0.1490224003791809, -0.3179808259010315, 0.00855127815157175, 0.10674995183944702, -0.13599622249603271, -0.3658553659915924, -0.45722702145576477, 0.3480318784713745, 0.04107801988720894, 0.17149695754051208, 0.08781851083040237, 0.08929448574781418, 0.28671693801879883, -0.313761442899704, 0.1096377745270729, 0.12906648218631744, -0.21296077966690063, -0.14750415086746216, 0.11708813160657883, -0.47807350754737854, -0.4129657745361328, 0.12778963148593903, -0.10385327786207199, -0.050134629011154175, 0.31270837783813477, 0.23552671074867249, 0.16940858960151672, 0.16469170153141022, -0.3821559250354767, -0.10320178419351578, 0.3580859303474426, -0.08517216891050339, 0.17193274199962616, 0.2503603994846344, 0.13785454630851746, -0.15989665687084198, -0.007886264473199844, 0.24751658737659454, 0.11924350261688232, 0.15884803235530853, -0.2928929626941681, -0.09502887725830078, -0.20734885334968567, -0.22179779410362244, -0.08616269379854202, 0.04052087664604187, -0.17739629745483398, -0.058010831475257874, 0.12054944783449173, 0.12899693846702576, -0.2766112685203552, -0.09559594094753265, 0.11327046900987625, -0.5047520399093628, -0.07602642476558685, -0.43234482407569885, 0.5820615291595459, -0.0895044133067131, 0.23449142277240753, -0.006996299605816603, 0.1698775738477707, 0.02835826948285103, -0.042443014681339264, 0.07306259125471115, 0.455842524766922, 0.0693441778421402, -0.06326685845851898, -0.18610544502735138, -0.0203282218426466, -0.14980755746364594, -0.14191503822803497, -0.040737006813287735, 0.3462032973766327, -0.18622946739196777, 0.07489392906427383, 0.11253103613853455, -0.4129199683666229, -0.0766674280166626, 0.26782894134521484, -0.3645825982093811, 0.07790137827396393, 0.3461771011352539, 0.16960087418556213, 0.01509656198322773, -0.3515816926956177, -0.243354931473732, 0.5789188742637634, -0.01914306730031967, 0.003419956425204873, -0.45788872241973877, -0.09630181640386581, 0.012937648221850395, 0.2265043705701828, 0.07874726504087448, -0.33789220452308655, -0.05352775752544403, 0.3043077886104584, 0.31115514039993286, -0.039328720420598984, 0.22383277118206024, -0.058061517775058746, 0.21084779500961304, -0.6122570037841797, -0.027799490839242935, -0.1950291097164154, -0.16230659186840057, -0.08379355072975159, 0.2959176301956177, 0.4300275444984436, 0.309198260307312, -0.13488158583641052, -0.1295541673898697, -0.09975910931825638, -0.2761286497116089, -0.41818103194236755, 0.14648346602916718, 0.30871257185935974, 0.157544806599617, 0.06183260306715965, -0.051981110125780106, -0.03817747160792351, 0.08857284486293793, 0.016004495322704315, 0.10074317455291748, 0.4683511555194855, -0.011655612848699093, 0.09498561918735504, 0.008958397433161736, 0.37448811531066895, -0.14418767392635345, -0.2735954523086548, 0.049167197197675705, 0.4318181276321411, -0.259318470954895, -0.06927411258220673, 0.7123361825942993, 0.25893422961235046, 0.31654471158981323, -0.43103277683258057, 0.21043960750102997, -0.016712166368961334, 0.12576116621494293, -0.14464913308620453, -0.2468673437833786, 0.34539803862571716, 0.10532599687576294, 0.15791964530944824, -0.06184783950448036, 0.1428493708372116, 0.0796148031949997, -0.14160896837711334, -0.2880893349647522, -0.017371080815792084, 0.4400109648704529, 0.012646435759961605, 0.22790150344371796, -0.29993972182273865, -0.07066179066896439, 0.2726595401763916, -0.08128613978624344, 0.03994005173444748, 0.23332928121089935, 0.16114796698093414, -0.043343570083379745, -0.28643324971199036, -0.02944464050233364, 0.16462242603302002, 0.33580705523490906, 0.17401829361915588, 0.28495651483535767, -0.06597516685724258, 0.06293033808469772, -0.0905710980296135, 0.20975369215011597, -0.1903979629278183, -0.21696792542934418, 0.04363466054201126, 0.0624600388109684, 0.02545122057199478, -0.13613960146903992, -0.49845218658447266, 0.23666581511497498, 0.3610859513282776, -0.15825799107551575, -0.11052372306585312, -0.16880977153778076, -0.30750805139541626, -0.19222784042358398, -0.34181493520736694, -0.2188432514667511, -0.43178239464759827, 0.009506886824965477, 0.05100717395544052, 0.274984747171402, 0.36184847354888916, 0.24754485487937927, 0.4854167103767395, -0.04823010414838791, 0.40109580755233765, -0.10884149372577667, -0.15639705955982208, -0.034112099558115005, 0.1446637511253357, 0.22567550837993622, 0.14143018424510956, 0.47246167063713074, 0.0736723467707634, 0.17838336527347565, -0.23519273102283478, -0.3586514890193939, 0.21056415140628815, -0.01597665809094906, 0.22866995632648468, 0.23411163687705994, 0.04996323958039284, 0.20003946125507355, 0.21427808701992035, 0.15776506066322327, 0.0015247507253661752, -0.14171364903450012, 0.13052132725715637, -0.13217446208000183, 0.009780853986740112, -0.10546885430812836, 0.18493714928627014, -0.251354843378067, -0.11535134166479111, 0.3771846294403076, 0.02887757495045662, -0.08702801913022995, 0.02138788253068924, -0.11460483074188232, 0.3248683214187622, -0.19242124259471893, 0.0294514037668705, -0.2875556945800781, -0.5863478779792786, -0.023505959659814835, -0.08175156265497208, -0.025594593957066536, -0.3916584551334381, -0.31420713663101196, 0.15211184322834015, -0.13754761219024658, -0.5253846049308777, -0.33998429775238037, 0.0022225116845220327, 0.2595573365688324, 0.1521729826927185, 0.043139200657606125, 0.2412627935409546, -0.10674434155225754, -0.10256892442703247, 0.04142658784985542, 0.06722960621118546, 0.08828488737344742, -0.1683744192123413, 0.3496377766132355, 0.22705420851707458, -0.11187714338302612, 0.5127785801887512, 0.40724483132362366, 0.10616958886384964, 0.06392630189657211, 0.22012901306152344, -0.06864308565855026, 0.07772834599018097, 0.18956635892391205, -0.559739351272583, 0.482109397649765, -0.031890299171209335, -0.05082384869456291, -0.03699563071131706, -0.1315055638551712, 0.24486319720745087, -0.2971077859401703, 0.07029835879802704, -0.06702350080013275, -0.293793648481369, 0.12640035152435303, -0.3777998983860016, 0.12396850436925888, 0.10893750190734863, -0.32090723514556885, -0.12429308891296387, -0.21897609531879425, 0.1418030858039856, 0.29422953724861145, 0.2277383655309677, -0.29541438817977905, -0.06687603145837784, -0.09503420442342758, -0.39347395300865173, 0.38944026827812195, 0.06615787744522095, -0.09003287553787231, 0.112688809633255, -0.004426964092999697, -0.003952394239604473, 0.0922146588563919, 0.41806769371032715, -0.5143915414810181, 0.1353340744972229, 0.11679225414991379, 0.03368820995092392, -0.534130334854126, 0.033939678221940994, -0.43020033836364746, -0.06276514381170273, 0.17732349038124084, 0.043587811291217804, -0.45583203434944153, -0.13320045173168182, 0.758516788482666, 0.04486224800348282, 0.0005280909826979041, -0.33609145879745483, 0.11096058785915375, 0.06611845642328262, -0.24604053795337677, 0.056107815355062485, -0.00990735087543726, 0.02087068185210228, -0.0661030262708664, 0.034674081951379776, 0.22535277903079987, 0.1161690354347229, 0.39216363430023193, 0.02355114556849003, -0.1376078873872757, 0.26964032649993896, 0.08502615243196487, -0.21228349208831787, -0.3036351203918457, 0.17363956570625305, 0.1538454294204712, -0.0102861812338233, -0.08469437807798386, 0.07962872087955475, -0.037893109023571014, 0.25714004039764404, 0.3785789906978607, 0.05976695194840431, 0.368582159280777, 0.07228963077068329, 0.26823413372039795, -0.2171764075756073, 0.17673873901367188, -0.11007791012525558, 0.0010998781071975827, 0.0037903340999037027, -0.19435428082942963, 0.4577750563621521, 0.0886092483997345, -0.17856641113758087, -0.18373580276966095, -0.10823795944452286, -0.023683443665504456, -0.0018282270757481456, 0.05323576182126999, 1.26271390914917, 0.24548666179180145, -0.01336578093469143, 0.2612297236919403, 0.18886396288871765, 0.48429951071739197, -0.4983174800872803, -0.27378568053245544, -0.18676164746284485, -0.029473474249243736, -0.1651691198348999, -0.3271544873714447, -0.004653148353099823, 0.19266408681869507, -0.3592132329940796, -0.11460533738136292, 0.1274697333574295, 0.021013611927628517, 0.04435652866959572, 0.5635527968406677, -0.08758123964071274, -0.28357556462287903, 0.24533367156982422, 0.16947714984416962, -0.290967732667923, 0.09915239363908768, -0.13856397569179535, -0.19205279648303986, -0.14448243379592896, -0.20572587847709656, -0.49382030963897705, -0.1306062638759613, -0.10884460061788559, 0.11455242335796356, -0.23448875546455383, -0.3886832594871521, -0.0501263402402401, -0.5567713975906372, 0.12958736717700958, 0.029922273010015488, -0.20186583697795868, -0.11303895711898804, -0.15472997725009918, -0.08670389652252197, 0.0413508266210556, -0.2835635542869568, 0.27411842346191406, 0.015171726234257221, -0.4493750035762787, 0.14591281116008759, 0.033993910998106, -0.13737985491752625, 0.4455842673778534, -0.042631249874830246, 0.36110544204711914, 0.07611921429634094, 0.2114383578300476, 0.4344055950641632, -0.2108483463525772, -0.19548211991786957, 0.13949404656887054, 0.37420761585235596, -0.30207526683807373, 0.1498742699623108, 0.07832707464694977, 0.04749809578061104, -0.1404796838760376, 0.30553120374679565, 0.2763250768184662, -0.12677490711212158, 0.12180310487747192, 0.17437100410461426, -0.1480492800474167, -0.2686435878276825, 0.40098318457603455, 0.08402371406555176, -0.4870317280292511, 0.03705361858010292, -0.17439411580562592, -0.19998715817928314, -0.23733007907867432, 0.23777656257152557, 0.4147127568721771, 0.46526384353637695, 0.04487907513976097, -0.5292453765869141, 0.009428994730114937, 0.2511821389198303, -0.3439132273197174, -0.04463741555809975, -0.5093979835510254, 0.621229350566864, 0.2525549530982971, 0.23083190619945526, -0.34222593903541565, 0.2347233146429062, -0.13923963904380798, -0.11071770638227463, 0.43953755497932434, -0.256174236536026, 0.12689584493637085, 0.09967296570539474, 0.09840716421604156, 0.12351243942975998, -0.10386263579130173, -0.18791258335113525, -0.24455292522907257, 0.12514251470565796, 0.05260832607746124, -0.06739800423383713, 0.16349221765995026, 0.0472756028175354, -0.040086258202791214, -0.024208588525652885, -0.09849316626787186, -0.10405635088682175, 0.035375263541936874, 0.08727352321147919, -0.05397946015000343, -0.04680987074971199, -0.24685442447662354, -0.05261027440428734, 0.1595725119113922, 0.1853925585746765, 0.008584566414356232, 0.05895419046282768, -0.029449526220560074, -0.08784933388233185, -0.06073093041777611, 0.22670668363571167, 0.025973079726099968, 0.0632995143532753, -0.08655385673046112, -0.008277200162410736, -0.07001043856143951, 0.44517430663108826, 0.48497074842453003, 0.2325761765241623, -0.11891689151525497, 0.104733906686306, -0.1195654571056366, 0.18046170473098755, -0.30282071232795715, 0.29735153913497925, 0.17521679401397705, 0.17315877974033356, 0.18615594506263733, 0.4783840775489807, -0.03839106112718582, 0.03649171069264412, 0.1809009462594986, -0.05253211036324501, 0.23584245145320892, -0.25559288263320923, -0.11474953591823578, -0.11547239869832993, -0.2953893542289734, 0.11075423657894135, 0.2694619297981262, 0.17862467467784882, 0.1760028451681137, -0.12216735631227493, 0.006033887155354023, 0.05493638291954994, 0.09069394320249557, 0.08944668620824814, 0.2672557532787323, -0.2129649817943573, 0.4202226400375366, 0.25888437032699585, 0.049980517476797104, -0.09941932559013367, 0.08527320623397827, 0.6111463308334351, -0.2340545803308487, -0.03399723023176193, -0.3608172833919525, 0.2245645821094513, 0.023709271103143692, 0.11854037642478943, 0.014038081280887127, -0.2033742368221283, -0.36637428402900696, -0.30916672945022583, -0.07432851195335388, -0.13150948286056519, 0.4406823217868805, 0.11552666127681732, 0.21830014884471893, -0.2886619567871094, -0.39515385031700134, 0.08449473977088928, 0.21691173315048218, -0.3521037995815277, 0.04413194954395294, 0.4230372905731201, 0.052383940666913986, 0.011110689491033554, 0.6570655703544617, 0.1866723597049713, -0.1337442696094513, -0.31928151845932007, 0.12013129144906998, -0.335785448551178, 0.03000892512500286, -0.027611179277300835, 0.17264457046985626, 0.5718487501144409, -0.09833028167486191, 0.19776153564453125, 0.04983510822057724, -0.26927104592323303, 0.4436642527580261, 0.2408139854669571, 0.03716060891747475, -0.5864850878715515, 0.054155901074409485, 0.0381033681333065, 0.16150276362895966, -0.17077995836734772, -0.007885852828621864, -0.36888256669044495, -0.14260995388031006, 0.04989905282855034, -0.2634575068950653, -0.08250173181295395, -0.16834120452404022, 0.0525500625371933, -0.13410180807113647, 0.2285890430212021, 0.4410317540168762, -0.009619643911719322, -0.3868284523487091, -0.2921028733253479, -0.6059039235115051, 0.09895466268062592, 0.026781830936670303, -0.2023596465587616, -0.4342106580734253, 0.266453355550766, 0.1798335313796997, 0.7058992981910706, 0.1808880865573883, -0.2668342888355255, 0.14243441820144653, 0.16243880987167358, -0.38430196046829224, 0.16875667870044708, 0.09060399234294891, -0.12432094663381577, 0.18928608298301697, 0.10487966984510422, -0.017544247210025787, 0.3335627019405365, 0.056172631680965424, -0.017239589244127274, -0.5416663289070129, 0.3225407898426056, 0.2993490993976593, 0.30922597646713257, -0.02279333584010601, 0.49587228894233704, 0.09345672279596329, -0.172272726893425, -0.06671920418739319, 0.0959026962518692, 0.10080718994140625, 0.5742003917694092, -0.016034673899412155, 0.19342176616191864, -0.011890157125890255, -0.05376876890659332, -0.0987725630402565, -0.2474554032087326, -0.0965985432267189, 0.01093800738453865, -0.4421471357345581, 0.005992087069898844, -0.0498693622648716, 0.32672354578971863, 0.0018910749349743128, 0.14540357887744904, -0.055049359798431396, 0.3461011052131653, -0.05505960062146187, -0.19852706789970398, 0.3473351299762726, 0.15765047073364258, -0.004852710757404566, -0.2775726020336151, 0.381052166223526, -0.8294069766998291, -0.19157928228378296, -0.5885872840881348, -0.3144218325614929, 0.3645705580711365, 0.09715089201927185, -0.07419566065073013, 0.15806074440479279, -0.2104305773973465, 0.027231045067310333, 0.030188504606485367, 0.34144219756126404, -0.1916603446006775, -0.1499200463294983, -0.07010134309530258, -0.04296378046274185 ]
https://github.com/huggingface/datasets/issues/846
Add HoVer multi-hop fact verification dataset
Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md
## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
39
Add HoVer multi-hop fact verification dataset ## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md
[ -0.28674396872520447, -0.27758151292800903, -0.08202359080314636, 0.022969111800193787, -0.2790866494178772, -0.12419397383928299, 0.16451793909072876, 0.11470890045166016, 0.09816422313451767, 0.14873367547988892, -0.09630508720874786, 0.05982743576169014, -0.09502238035202026, 0.29815253615379333, 0.21229363977909088, -0.10315387696027756, -0.13134829699993134, -0.04845983162522316, -0.0788763016462326, 0.03884456306695938, 0.033641450107097626, 0.13237756490707397, -0.10980141907930374, -0.05148627981543541, -0.3951326310634613, -0.011697525158524513, -0.152869313955307, -0.14219176769256592, 0.17676609754562378, -0.3470916152000427, 0.07900317758321762, 0.45573166012763977, -0.03801478073000908, 0.3522500991821289, -0.00010600548557704315, -0.1624501794576645, 0.13360139727592468, 0.04366882145404816, -0.24592605233192444, 0.08309036493301392, -0.08094774186611176, 0.0728992372751236, 0.1475115567445755, -0.09741876274347305, -0.14654412865638733, -0.04169566184282303, -0.23588992655277252, 0.13735777139663696, 0.35291245579719543, 0.15120664238929749, 0.2692033052444458, 0.3744882345199585, -0.09096936136484146, -0.17688198387622833, 0.14661459624767303, -0.11516669392585754, 0.03396386280655861, 0.47478431463241577, 0.05997901409864426, -0.011755499988794327, -0.44768258929252625, 0.40650588274002075, 0.000920925464015454, 0.16964861750602722, -0.11792805790901184, -0.10645207017660141, 0.15292592346668243, -0.07464361935853958, -0.04373042657971382, 0.6290506720542908, -0.13495881855487823, -0.14677616953849792, -0.32648685574531555, -0.24911029636859894, 0.042811889201402664, 0.13434666395187378, 0.04430105537176132, 0.14908111095428467, -0.27356693148612976, 0.20225045084953308, -0.214932382106781, -0.0940123200416565, -0.029870441183447838, 0.05262297764420509, 0.2132796198129654, 0.16905876994132996, -0.10910876840353012, -0.023435795679688454, 0.35857269167900085, 0.15951700508594513, -0.035754233598709106, -0.24319633841514587, 0.1687716692686081, -0.18600325286388397, -0.06060146540403366, -0.29757243394851685, 0.28984057903289795, 0.3649701774120331, 0.36710473895072937, 0.30126211047172546, 0.26520395278930664, 0.15825046598911285, -0.24830934405326843, 0.09415412694215775, -0.06874723732471466, -0.09530888497829437, -0.2874855697154999, -0.5833560824394226, 0.3475058078765869, 0.23141616582870483, 0.12969858944416046, 0.07800967246294022, 0.17832066118717194, 0.2515953779220581, -0.39006465673446655, 0.08369346708059311, -0.16118554770946503, -0.14408478140830994, -0.1861330270767212, 0.10619673132896423, -0.32536131143569946, -0.12504513561725616, 0.05488695204257965, 0.07113875448703766, -0.10081902146339417, 0.3313421308994293, 0.18492712080478668, 0.09176705032587051, 0.08346845209598541, -0.307730108499527, -0.21070583164691925, 0.3382161855697632, -0.032700203359127045, 0.19338740408420563, 0.249116450548172, 0.08624943345785141, 0.18021371960639954, 0.11435387283563614, 0.22169040143489838, 0.03045809268951416, 0.1632220447063446, -0.26516515016555786, 0.0008837385685183108, -0.07099570333957672, -0.09510574489831924, -0.22645455598831177, 0.07638600468635559, -0.18936152756214142, -0.1272074431180954, -0.10043207556009293, 0.10269229114055634, -0.146536186337471, -0.10665994882583618, 0.21350453794002533, -0.3886559307575226, -0.19136998057365417, -0.26060283184051514, 0.4759398102760315, -0.1730586737394333, 0.2680051624774933, 0.09656929224729538, 0.23440100252628326, 0.11718467622995377, 0.008359421044588089, 0.16052961349487305, 0.3687474727630615, 0.12127883732318878, -0.2506898045539856, 0.03313004970550537, -0.08584856986999512, -0.17671450972557068, -0.07078619301319122, -0.04860251024365425, 0.2160952091217041, -0.2160634547472, 0.18569856882095337, -0.037907399237155914, -0.3163784444332123, -0.11670958250761032, 0.07206106930971146, -0.3015664219856262, 0.08786572515964508, 0.2680447995662689, 0.08022666722536087, 0.05434120446443558, -0.1052965372800827, -0.1661250740289688, 0.5198564529418945, 0.09676885604858398, 0.19076667726039886, -0.34419214725494385, -0.16779403388500214, -0.23221927881240845, 0.17963767051696777, -0.013558480888605118, -0.3202841877937317, 0.011876031756401062, 0.23932349681854248, 0.3109697103500366, -0.09908871352672577, 0.13303706049919128, 0.07124146819114685, 0.10444977134466171, -0.42057961225509644, -0.10689305514097214, -0.21722538769245148, -0.08728458732366562, -0.11557380110025406, 0.052143897861242294, 0.40671423077583313, 0.16214795410633087, -0.22236862778663635, -0.2138921618461609, -0.06038197875022888, -0.12633904814720154, -0.4186026453971863, 0.3150721788406372, 0.40574488043785095, 0.17840854823589325, 0.13477474451065063, 0.07227642089128494, -0.05472653731703758, 0.08833496272563934, 0.1120365634560585, 0.10673104971647263, 0.28691864013671875, -0.04644837602972984, -0.05715486779808998, 0.23285497725009918, 0.22362269461154938, -0.13323746621608734, -0.20888863503932953, 0.10522325336933136, 0.4635675847530365, -0.23984208703041077, 0.1055547222495079, 0.5500929951667786, 0.3264039158821106, 0.17263075709342957, -0.31314364075660706, 0.10958661884069443, 0.07894342392683029, 0.06649557501077652, 0.08658480644226074, -0.3467354476451874, 0.4270167350769043, 0.2828134298324585, 0.05564555525779724, 0.09295973181724548, 0.12657330930233002, 0.2059938907623291, -0.1193457767367363, -0.2036152482032776, -0.17944590747356415, 0.36337170004844666, -0.0255367960780859, 0.23835104703903198, -0.20116516947746277, -0.17283493280410767, 0.2690048813819885, 0.0963139533996582, 0.1139981597661972, 0.39393165707588196, 0.15792079269886017, -0.3027704060077667, -0.3743293583393097, 0.0889575332403183, 0.03222100809216499, 0.009488874115049839, 0.2932663559913635, 0.37359970808029175, -0.12316086888313293, -0.0632484033703804, -0.23459333181381226, 0.27917665243148804, -0.21511860191822052, -0.29669439792633057, 0.10722299665212631, 0.17573755979537964, -0.07948632538318634, -0.407375305891037, -0.4114876687526703, -0.03747483342885971, 0.08194311708211899, -0.06280456483364105, -0.07276744395494461, -0.18208380043506622, -0.33678463101387024, -0.10731104761362076, -0.20509302616119385, -0.20287349820137024, -0.37386777997016907, 0.16554485261440277, 0.18471378087997437, 0.07968102395534515, 0.31504517793655396, 0.1682988852262497, 0.5256692171096802, 0.04839734360575676, 0.4300483465194702, -0.11322209984064102, -0.11848721653223038, -0.04630913957953453, 0.22726550698280334, -0.03511509671807289, 0.13833270967006683, 0.43011438846588135, 0.03230620175600052, 0.1055167019367218, -0.13463257253170013, -0.3381763696670532, 0.32743942737579346, 0.01897898130118847, 0.07846619188785553, 0.24994613230228424, 0.05619274824857712, 0.23569752275943756, 0.15940184891223907, 0.14289598166942596, -0.15699677169322968, -0.16309460997581482, 0.1478893905878067, -0.12655481696128845, 0.06575474888086319, -0.22589579224586487, 0.17274326086044312, -0.1313392072916031, -0.19511747360229492, 0.42763906717300415, 0.04110998287796974, -0.06474754214286804, 0.19866260886192322, -0.028746459633111954, 0.35135066509246826, -0.3559436500072479, 0.23933391273021698, -0.26629698276519775, -0.5580607652664185, 0.046288322657346725, -0.2378896027803421, -0.07499798387289047, -0.47005313634872437, -0.39988014101982117, 0.13434790074825287, -0.12884818017482758, -0.4724080264568329, -0.49221447110176086, -0.2050076276063919, 0.23396067321300507, 0.13178424537181854, 0.007497009821236134, 0.31998303532600403, -0.11777625977993011, -0.28656941652297974, -0.013558927923440933, 0.07796981185674667, 0.17637209594249725, -0.2182680368423462, 0.17915937304496765, 0.06883534044027328, -0.17950886487960815, 0.5941285490989685, 0.3341059684753418, 0.051002904772758484, -0.0625782385468483, 0.22476080060005188, -0.1615026593208313, 0.0383763387799263, 0.13825620710849762, -0.2809806168079376, 0.25560590624809265, -0.037904784083366394, 0.11966332048177719, 0.15818217396736145, -0.14702670276165009, 0.2490227222442627, -0.2720159888267517, -0.009147725999355316, -0.18863612413406372, -0.34086155891418457, 0.08591064810752869, -0.19386892020702362, 0.11967634409666061, -0.05849073454737663, -0.23997491598129272, -0.015159412287175655, -0.12194278091192245, 0.25620919466018677, 0.11717946827411652, 0.16710442304611206, -0.2866929769515991, -0.00038159629912115633, -0.06842078268527985, -0.32042646408081055, 0.3787924647331238, 0.11809581518173218, -0.16017359495162964, 0.10362385213375092, -0.18998432159423828, -0.0698326900601387, 0.02206050418317318, 0.28068459033966064, -0.3590141534805298, 0.16857880353927612, -0.07367847114801407, -0.1262998729944229, -0.4930107295513153, 0.17246568202972412, -0.6214956045150757, -0.23099385201931, 0.22845560312271118, 0.09480012208223343, -0.5830439925193787, -0.13534456491470337, 0.6615110635757446, -0.032131269574165344, 0.04624918848276138, -0.10486803203821182, 0.03951743245124817, 0.03209815174341202, -0.21985429525375366, 0.14949409663677216, -0.023657796904444695, -0.08905408531427383, -0.0653771236538887, -0.0596349723637104, 0.1529759019613266, -0.04614722356200218, 0.14300955832004547, 0.21166740357875824, -0.08762310445308685, 0.24342116713523865, -0.10068846493959427, -0.2109384685754776, -0.1348448395729065, 0.07491251826286316, 0.07121891528367996, 0.08368434756994247, -0.03055412322282791, -0.12035423517227173, 0.0264119952917099, 0.05885361135005951, 0.3391481935977936, 0.05643617734313011, 0.47600868344306946, 0.03574565798044205, 0.36728569865226746, -0.22761543095111847, 0.28973379731178284, -0.0722116157412529, -0.04541561007499695, 0.27440181374549866, 0.00042640461470000446, 0.5121610760688782, 0.074540875852108, -0.10955681651830673, -0.22213095426559448, -0.07299143075942993, -0.10392291098833084, 0.038048624992370605, 0.1324603408575058, 1.1257492303848267, 0.32896214723587036, 0.03779201582074165, 0.3225507438182831, 0.10114515572786331, 0.41745245456695557, -0.3723423480987549, -0.07809104025363922, -0.11759641766548157, -0.11190107464790344, -0.07548663765192032, -0.10835199058055878, -0.0685051754117012, 0.08305195719003677, -0.41197800636291504, -0.09018654376268387, 0.09353888779878616, -0.03786303475499153, 0.00575917586684227, 0.3582375645637512, -0.2234950065612793, -0.34460124373435974, 0.005431673023849726, 0.2527286410331726, -0.25973451137542725, 0.12202423810958862, -0.051040586084127426, -0.11565747112035751, -0.042089931666851044, -0.2122902274131775, -0.35576415061950684, -0.07914222031831741, -0.11584990471601486, 0.01639855094254017, -0.1187102273106575, -0.2603159546852112, -0.3931950032711029, -0.472215861082077, 0.14647610485553741, 0.1668834537267685, -0.2364414483308792, -0.033836524933576584, -0.21055127680301666, -0.14736422896385193, 0.06039753928780556, -0.13468125462532043, 0.1946251392364502, -0.024295378476381302, -0.33633366227149963, 0.07355543971061707, 0.051482804119586945, -0.08995814621448517, 0.4749722480773926, -0.12144561111927032, 0.10727086663246155, 0.13458912074565887, 0.35381457209587097, 0.26687029004096985, -0.3107765018939972, -0.2847304940223694, 0.21335220336914062, 0.25418105721473694, -0.2631853222846985, 0.07717448472976685, 0.096708744764328, -0.001107831485569477, -0.2568233907222748, 0.4368765950202942, -0.055300988256931305, -0.02610543742775917, 0.010700099170207977, 0.22155709564685822, -0.19901125133037567, -0.3756069839000702, 0.09229712933301926, 0.04635601490736008, -0.4406690001487732, 0.2439427673816681, -0.23616589605808258, -0.35029998421669006, -0.24190261960029602, 0.3663063049316406, 0.3758276104927063, 0.4089523255825043, -0.024776633828878403, -0.4372684061527252, -0.06497613340616226, 0.33858999609947205, -0.27529069781303406, 0.09091067314147949, -0.2320905327796936, 0.5329760313034058, 0.21944637596607208, 0.1724182367324829, -0.47022971510887146, 0.06673835963010788, -0.34356001019477844, -0.06251545250415802, 0.28466206789016724, -0.37627527117729187, 0.25636395812034607, 0.20987293124198914, 0.22851809859275818, 0.19958321750164032, -0.04185797646641731, -0.3190550208091736, -0.2192121297121048, 0.04132544621825218, -0.08318591117858887, 0.058252740651369095, 0.12923209369182587, 0.26947256922721863, -0.023493334650993347, -0.1886209398508072, 0.1112312600016594, -0.14885129034519196, 0.06500674784183502, 0.17027531564235687, -0.16549250483512878, 0.07774782925844193, -0.068570576608181, -0.24595259130001068, 0.05680834874510765, 0.0679340660572052, -0.0006955842254683375, -0.011313182301819324, -0.18983452022075653, -0.17948870360851288, 0.09086374193429947, 0.30383309721946716, 0.15922069549560547, 0.014177431352436543, -0.03174537792801857, 0.1759507954120636, -0.2716875672340393, 0.38271716237068176, 0.466964989900589, 0.16052471101284027, -0.036591868847608566, 0.06632734835147858, -0.1233644038438797, 0.3364461660385132, -0.31789079308509827, 0.23930324614048004, 0.029143448919057846, 0.019066106528043747, 0.4145543575286865, 0.47144702076911926, -0.07471554726362228, -0.10812672227621078, 0.23668096959590912, 0.06671096384525299, 0.155190572142601, -0.24020810425281525, -0.2382589429616928, -0.08767113089561462, -0.08592734485864639, 0.04755072668194771, 0.19451721012592316, 0.11225029081106186, 0.4746484160423279, -0.23542477190494537, 0.03761209547519684, 0.10028789192438126, 0.040599897503852844, 0.14289847016334534, 0.3279914855957031, -0.04091106727719307, 0.25670546293258667, 0.25848013162612915, 0.04553747549653053, -0.02063859812915325, 0.03819195553660393, 0.5978519916534424, -0.19811926782131195, -0.007180496584624052, -0.454390287399292, 0.2818247973918915, 0.1027124673128128, -0.02863159030675888, -0.14559438824653625, -0.19282278418540955, -0.4093620777130127, -0.23678259551525116, 0.10667693614959717, 0.030399326235055923, 0.4083535075187683, 0.05200184881687164, 0.230671226978302, -0.3958836793899536, -0.3982170522212982, 0.19733496010303497, 0.29465818405151367, -0.3110479712486267, 0.0026080769021064043, 0.571742594242096, 0.05187278613448143, -0.050376005470752716, 0.7172041535377502, 0.21388916671276093, -0.2227064073085785, -0.2931569814682007, 0.09568360447883606, -0.3083188235759735, -0.07133735716342926, -0.20465043187141418, 0.004678943194448948, 0.48727086186408997, -0.06673581153154373, 0.27899548411369324, 0.214905247092247, -0.389303594827652, 0.3618434965610504, -0.0075210328213870525, 0.09174204617738724, -0.3114086091518402, -0.0006606875103898346, 0.1626605987548828, 0.22653481364250183, -0.23342035710811615, -0.0882824957370758, -0.46489641070365906, -0.12270712107419968, -0.10918629914522171, -0.2664315402507782, -0.028084242716431618, -0.16996678709983826, 0.12033756822347641, -0.03696103021502495, 0.3108162581920624, 0.42836061120033264, 0.015427595004439354, -0.11311086267232895, -0.3041282296180725, -0.3745429515838623, 0.09715117514133453, 0.08032038062810898, -0.21857154369354248, -0.4832019507884979, 0.3267863690853119, 0.09399909526109695, 0.5921642184257507, 0.0417666919529438, -0.24118535220623016, 0.21612608432769775, 0.03706907480955124, -0.31630194187164307, 0.20479604601860046, 0.008810137398540974, -0.15555913746356964, 0.3016023337841034, 0.04751724749803543, 0.011362210847437382, 0.18807891011238098, 0.2030010223388672, 0.1140046939253807, -0.35349175333976746, 0.18262895941734314, 0.031319085508584976, 0.30124631524086, 0.059401825070381165, 0.26617640256881714, -0.17056071758270264, -0.24386048316955566, -0.07756534218788147, 0.08249002695083618, -0.044426869601011276, 0.3249345123767853, 0.026494037359952927, 0.2693078815937042, 0.10180187225341797, -0.07904988527297974, 0.014531080611050129, -0.053922753781080246, 0.10408738255500793, -0.0490860752761364, -0.29967260360717773, 0.025136606767773628, -0.04130784794688225, 0.17293860018253326, -0.05923931673169136, 0.20822905004024506, -0.06819315254688263, 0.16409769654273987, -0.05089867487549782, -0.534440815448761, 0.19760645925998688, 0.13055361807346344, 0.021102800965309143, -0.21607781946659088, 0.4518180191516876, -0.6408714056015015, -0.18281544744968414, -0.456670880317688, -0.12735363841056824, 0.2505466938018799, 0.19492284953594208, -0.160325288772583, 0.18374945223331451, -0.18858160078525543, 0.0023348950780928135, -0.038471534848213196, 0.35541021823883057, 0.11568070948123932, -0.1133868545293808, -0.10922487080097198, -0.1269770860671997 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
Thanks for reporting ! That's a bug indeed If you want to contribute, feel free to fix this issue and open a PR :)
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
24
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 Thanks for reporting ! That's a bug indeed If you want to contribute, feel free to fix this issue and open a PR :)
[ -0.023709923028945923, 0.12971949577331543, 0.12809008359909058, 0.04222971200942993, 0.18126755952835083, -0.0610477514564991, 0.49621152877807617, 0.05433009937405586, -0.07811560481786728, 0.10937391221523285, 0.09238845854997635, 0.217302143573761, -0.21500283479690552, -0.05732227489352226, -0.3110681176185608, -0.20985563099384308, -0.11860024929046631, 0.2547813057899475, 0.09802424162626266, -0.06322365999221802, -0.5826336145401001, 0.0949002280831337, -0.5061209797859192, -0.2154335230588913, -0.3565772473812103, 0.030673040077090263, -0.13785876333713531, 0.09745757281780243, -0.1915954053401947, -0.43499743938446045, 0.3886699080467224, 0.25185254216194153, -0.050447650253772736, 0.4357792139053345, -0.00012166208034614101, 0.0103917820379138, 0.10381864011287689, -0.21301832795143127, 0.08527807146310806, -0.2657143175601959, -0.32003599405288696, 0.20579580962657928, -0.1055375188589096, -0.27003374695777893, -0.018703512847423553, -0.08969925343990326, -0.3070340156555176, -0.21268871426582336, 0.24210813641548157, 0.428330659866333, 0.10786892473697662, 0.19453144073486328, -0.07358845323324203, -0.35506105422973633, 0.08136071264743805, -0.30176693201065063, -0.14563187956809998, 0.435150682926178, -0.4142248034477234, 0.0377773679792881, -0.10576216131448746, 0.02439105324447155, 0.038290563970804214, 0.28494223952293396, 0.44744420051574707, 0.10520663857460022, 0.15815724432468414, 0.03855010122060776, 0.10761075466871262, 0.3610633909702301, -0.04745220020413399, -0.21859124302864075, -0.2287294864654541, 0.03382601961493492, 0.12877658009529114, -0.7086319327354431, 0.064808689057827, -0.21465268731117249, -0.13730764389038086, 0.018390709534287453, -0.17031757533550262, -0.2219577133655548, -0.33506840467453003, 0.19995570182800293, 0.00990219321101904, -0.05560982972383499, -0.10812146961688995, -0.011257425881922245, 0.5676793456077576, -0.09508845955133438, 0.15746605396270752, -0.22509923577308655, 0.05350493639707565, 0.057458337396383286, -0.20620514452457428, -0.10973764210939407, 0.12055911868810654, 0.012041137553751469, 0.054992157965898514, -0.4186515808105469, 0.25801339745521545, 0.027716772630810738, -0.042711228132247925, 0.007212909869849682, 0.011343627236783504, 0.41465744376182556, 0.00756886787712574, 0.04219532385468483, 0.0975385457277298, 0.19131018221378326, 0.05828331410884857, 0.042094673961400986, 0.10644900053739548, -0.29879045486450195, 0.44366654753685, 0.1426468789577484, 0.04994584619998932, -0.06508835405111313, -0.07973336428403854, -0.08661048114299774, -0.3678118586540222, -0.18217843770980835, 0.1232522502541542, 0.1614997386932373, 0.17913790047168732, 0.3282136917114258, -0.22573567926883698, 0.3017473816871643, -0.02127319760620594, -0.09194067120552063, -0.1466507464647293, 0.10267972201108932, -0.42898818850517273, 0.26301512122154236, 0.30888786911964417, -0.231842041015625, 0.33882251381874084, 0.321565717458725, 0.3396800756454468, 0.06683667004108429, 0.09257786720991135, -0.26897916197776794, 0.14356882870197296, -0.11732631176710129, -0.05884985253214836, -0.1988251656293869, 0.15357616543769836, 0.2831660807132721, -0.13062627613544464, 0.15880520641803741, -0.24816817045211792, -0.2222670316696167, 0.20474882423877716, 0.07872901111841202, -0.26460030674934387, -0.05046269670128822, -0.4324561357498169, 0.12345404177904129, 0.23070138692855835, -0.040155813097953796, -0.16695918142795563, -0.21251451969146729, -0.5594509840011597, -0.19096162915229797, 0.24430322647094727, 0.15803693234920502, -0.6430357694625854, 0.008755543269217014, -0.3277488052845001, 0.33203065395355225, -0.004907416179776192, 0.023063236847519875, -0.18675217032432556, 0.5240615010261536, -0.1446581482887268, 0.07814820855855942, 0.12068670243024826, -0.3428072929382324, -0.3460652828216553, -0.300277441740036, 0.2792729437351227, -0.06984443962574005, -0.009436258114874363, -0.09234965592622757, 0.11013731360435486, -0.09581577032804489, 0.27269190549850464, -0.2665000557899475, 0.21598385274410248, 0.04858633130788803, -0.1672816276550293, -0.13602964580059052, -0.09628430753946304, -0.04889675974845886, 0.09961573779582977, -0.08444862067699432, -0.08175443112850189, 0.23191146552562714, -0.23567719757556915, -0.27964550256729126, -0.017230378463864326, 0.19538937509059906, 0.1852344572544098, -0.3643389344215393, 0.20124724507331848, -0.033186327666044235, -0.01303846389055252, 0.21654099225997925, -0.034152332693338394, 0.30132341384887695, 0.15700803697109222, -0.058636631816625595, -0.41413456201553345, -0.15402214229106903, -0.16487480700016022, -0.13675925135612488, 0.0208743829280138, 0.05258066579699516, 0.07986333221197128, 0.07176212966442108, -0.26324373483657837, -0.616768479347229, -0.20637649297714233, -0.07479630410671234, -0.12053606659173965, 0.1412702351808548, 0.00951157882809639, -0.11139088124036789, 0.23246626555919647, 0.47104087471961975, 0.18146127462387085, 0.13292083144187927, -0.14920839667320251, 0.369956374168396, 0.06966624408960342, -0.06898902356624603, 0.1675897091627121, 0.23833678662776947, -0.0214517954736948, -0.36036622524261475, 0.1581868976354599, 0.013030403293669224, 0.04146323725581169, -0.05809487774968147, 0.03734711557626724, 0.4591892659664154, 0.1649264544248581, 0.21143271028995514, -0.14927664399147034, -0.09834381192922592, 0.0560317188501358, -0.08913005888462067, -0.02035929076373577, -0.42525842785835266, 0.059347741305828094, 0.0462409146130085, 0.1611880213022232, -0.0780128762125969, 0.1707078218460083, -0.1522747278213501, 0.6477614641189575, 0.23041114211082458, 0.32870933413505554, 0.22884972393512726, 0.027747847139835358, -0.18441937863826752, -0.2881712019443512, -0.2612554728984833, 0.6102740168571472, 0.11984707415103912, -0.11686231940984726, 0.30027902126312256, -0.005848000291734934, -0.14544089138507843, 0.14834554493427277, 0.2962329685688019, -0.1519872099161148, -0.026104936376214027, 0.23582470417022705, 0.033682554960250854, -0.032342299818992615, 0.01763724535703659, -0.03645133599638939, 0.2214459925889969, -0.4314703643321991, 0.12985838949680328, -0.3040899634361267, 0.14820106327533722, 0.008921077474951744, -0.4882216453552246, -0.07187801599502563, -0.23116184771060944, 0.06930022686719894, -0.06749465316534042, 0.09230067580938339, 0.515032947063446, 0.11938851326704025, 0.7285943627357483, 0.21809273958206177, -0.06839929521083832, -0.0394960418343544, -0.35515597462654114, -0.0989583432674408, 0.01308475062251091, -0.20142163336277008, -0.10847356915473938, 0.24356359243392944, -0.19529306888580322, -0.18023431301116943, 0.1880679428577423, -0.31874266266822815, 0.02816355973482132, -0.08427205681800842, 0.30377569794654846, 0.5219168066978455, -0.11949406564235687, -0.15227147936820984, 0.14338406920433044, 0.26480236649513245, 0.017820637673139572, 0.20428025722503662, 0.06699733436107635, -0.20798943936824799, 0.029855256900191307, -0.08942709118127823, -0.2768174707889557, 0.32833415269851685, -0.1472155749797821, -0.14864285290241241, 0.01629321649670601, -0.016227470710873604, -0.03957832232117653, 0.36376431584358215, 0.2727847993373871, 0.10338418185710907, -0.25505757331848145, -0.14828094840049744, -0.6655893921852112, 0.45151644945144653, -0.2910752296447754, -0.13594578206539154, 0.08903582394123077, -0.23817743360996246, 0.5470317602157593, 0.09082642942667007, -0.20573614537715912, -0.5882263779640198, 0.07144318521022797, 0.2592974603176117, -0.04184291884303093, 0.0959581658244133, 0.15918071568012238, 0.08619122952222824, 0.008000410161912441, -0.16784299910068512, -0.18757349252700806, 0.18884694576263428, -0.3293329179286957, 0.194236621260643, 0.15932808816432953, 0.27224260568618774, 0.13397933542728424, 0.898920476436615, 0.2725188732147217, -0.273058146238327, 0.43879979848861694, -0.06690134108066559, 0.3824096918106079, -0.3949597179889679, -0.36039456725120544, -0.13869142532348633, 0.18520666658878326, 0.08973442018032074, 0.23085753619670868, -0.0889836922287941, 0.3890801668167114, -0.0727473571896553, -0.25142812728881836, -0.09153525531291962, -0.3395070731639862, -0.03381621837615967, -0.05504002049565315, 0.5190786123275757, 0.05332634225487709, 0.30719318985939026, -0.3714309334754944, -0.20847265422344208, -0.118608757853508, -0.16334882378578186, 0.06695244461297989, -0.1605885773897171, 0.22986873984336853, 0.361068993806839, -0.45541447401046753, 0.44172388315200806, 0.0863184705376625, 0.1025703102350235, 0.06857213377952576, 0.4200756549835205, -0.12461850047111511, 0.020733708515763283, 0.21039894223213196, -0.41056743264198303, 0.039515987038612366, 0.008011316880583763, 0.13481785356998444, -0.48242250084877014, 0.1323263794183731, -0.059830259531736374, 0.0011056092334911227, 0.2754404544830322, 0.6075913310050964, -0.1760205328464508, 0.047816451638936996, 0.3029835820198059, -0.1043112725019455, -0.07967593520879745, -0.2913929224014282, -0.33731934428215027, -0.18932852149009705, -0.04206983000040054, -0.04335707798600197, 0.02020278014242649, 0.24832426011562347, -0.010846843011677265, 0.22800196707248688, 0.16027644276618958, -0.3473767042160034, 0.13401192426681519, 0.26775479316711426, 0.1726619005203247, -0.14011715352535248, 0.10126762837171555, 0.17393842339515686, -0.633884608745575, 0.5574392080307007, 0.2815369963645935, -0.3978588283061981, -0.6123659014701843, -0.07423582673072815, -0.0695873275399208, 0.38276368379592896, 0.14465367794036865, -0.25135940313339233, 0.04058634117245674, -0.20111146569252014, 0.08785751461982727, -0.18284045159816742, 0.3273388743400574, 0.4565606117248535, -0.10594410449266434, -0.1726158857345581, -0.5024929046630859, 0.46254923939704895, 0.08614835888147354, 0.014351487159729004, 0.05128752440214157, 0.27181991934776306, -0.3436957895755768, 0.2686673402786255, 0.07710641622543335, 0.5343257784843445, 0.3586902916431427, 0.04333939030766487, 0.2417576014995575, 0.22444896399974823, 0.29284968972206116, 0.29805514216423035, 0.060859229415655136, -0.1527874916791916, -0.01865624263882637, -0.021923134103417397, -0.13156495988368988, 0.14383414387702942, 0.1072159931063652, -0.2754102945327759, 0.5928207039833069, -0.2126578390598297, -0.18614716827869415, 0.035565271973609924, -0.10290846228599548, 0.11435911804437637, -0.25507989525794983, -0.05738277733325958, 0.09818004071712494, 0.016751956194639206, -0.11909500509500504, -0.03213275223970413, 0.06320638209581375, 0.16722728312015533, -0.26520735025405884, -0.259388267993927, 0.0015919875586405396, 0.06191365420818329, -0.13574936985969543, 0.07500896602869034, 0.020770099014043808, 0.30084946751594543, 0.13442189991474152, 0.6360822319984436, 0.266830712556839, -0.1996297687292099, 0.13435029983520508, -0.10559685528278351, 0.054499734193086624, 0.028887774795293808, 0.03667902573943138, -0.1749003827571869, -0.06651033461093903, -0.2871825397014618, 0.18555007874965668, 0.10309683531522751, -0.26270270347595215, -0.38000839948654175, -0.2893664836883545, 0.06025632098317146, -0.17842000722885132, 0.11855918914079666, -0.18474923074245453, 0.13003723323345184, -0.2566104531288147, 0.08462885767221451, -0.14471234381198883, 0.028832945972681046, 0.15877632796764374, -0.3751527965068817, -0.24574832618236542, 0.07850462943315506, 0.39845964312553406, -0.1668795943260193, 0.1826787292957306, 0.5197717547416687, -0.1384214460849762, 0.06914857774972916, -0.07186026871204376, 0.1067749559879303, 0.06123204529285431, -0.1613895446062088, 0.3675585091114044, 0.27184998989105225, 0.23571935296058655, 0.11651117354631424, 0.7036592364311218, 0.08347438275814056, -0.2088405042886734, 0.1764170378446579, -0.1835193634033203, 0.12199103832244873, -0.17457836866378784, 0.045183513313531876, 0.07576172053813934, 0.03434757888317108, 0.18044255673885345, -0.07175768911838531, 0.0012471609516069293, -0.19928891956806183, 0.22009022533893585, -0.06264571845531464, -0.1084522008895874, -0.07904317229986191, -0.1588965654373169, 0.2469671219587326, 0.0427800789475441, -0.02392207272350788, 0.3228091299533844, -0.2334998995065689, -0.13345497846603394, -0.4277101755142212, 0.13141871988773346, 0.055530764162540436, -0.10273855924606323, 0.03096679039299488, -0.017035935074090958, -0.23949214816093445, -0.19012553989887238, -0.04798351228237152, 0.4341011345386505, 0.01972229592502117, 0.4265175759792328, 0.05940217897295952, 0.2494659274816513, 0.1284283697605133, -0.04009087011218071, 0.17990364134311676, 0.32751792669296265, 0.025981273502111435, 0.31667646765708923, -0.07527851313352585, -0.10056550800800323, -0.049530282616615295, 0.07808074355125427, 0.383534699678421, -0.09282935410737991, 0.1734529733657837, 0.039806440472602844, 0.012974637560546398, 0.14885826408863068, 0.35094529390335083, 0.08707716315984726, -0.42180362343788147, -0.3142791986465454, -0.0661005973815918, 0.07020452618598938, -0.43285346031188965, 0.004368206951767206, 0.017202815040946007, 0.4553097188472748, 0.09439390897750854, 0.2588643431663513, 0.1548333764076233, -0.1870604008436203, -0.09213452786207199, -0.025203857570886612, 0.16093885898590088, -0.2590945363044739, 0.29210901260375977, 0.057395875453948975, -0.1557392030954361, 0.14252232015132904, 0.5906174182891846, 0.19239605963230133, 0.26868346333503723, 0.6254933476448059, -0.16107429563999176, 0.512252688407898, -0.2839604318141937, -0.15045151114463806, -0.2018980234861374, -0.21132320165634155, 0.19754956662654877, 0.26662901043891907, 0.14872132241725922, 0.1288255900144577, -0.11324948072433472, 0.5228835344314575, -0.012801120989024639, -0.016958486288785934, -0.4258067011833191, -0.06856049597263336, 0.012879922054708004, -0.20933513343334198, -0.37191349267959595, -0.2758207321166992, 0.015103695914149284, -0.01266408059746027, -0.03852135315537453, 0.04340781643986702, 0.1811033934354782, -0.04458602890372276, -0.059409383684396744, -0.08480211347341537, -0.12122763693332672, 0.14523530006408691, 0.195799320936203, -0.014512285590171814, 0.15911656618118286, 0.3156157433986664, 0.12717734277248383, 0.1770678460597992, 0.43398424983024597, 0.2479570508003235, 0.21803446114063263, -0.045215021818876266, -0.2701667547225952, -0.054089076817035675, 0.011694897897541523, 0.15860311686992645, 0.16650603711605072, 0.2535257637500763, 0.3010886013507843, 0.2748164236545563, 0.06018446758389473, -0.14291279017925262, 0.531338632106781, -0.1550443172454834, 0.6881148815155029, -0.5047996640205383, 0.5134907364845276, 0.0508231483399868, 0.18471281230449677, 0.245108962059021, 0.04966374859213829, -0.17784778773784637, 0.15603245794773102, 0.2319922000169754, 0.19724586606025696, -0.14771245419979095, -0.32739266753196716, 0.04595569148659706, -0.12393764406442642, 0.41844698786735535, 0.3465732932090759, -0.1592109501361847, -0.6492038369178772, -0.03261004015803337, -0.6483087539672852, 0.052033498883247375, -0.11404004693031311, 0.2721156179904938, 0.052223943173885345, -0.0635034516453743, -0.10889328271150589, 0.44491130113601685, 0.15978048741817474, -0.21901313960552216, -0.32765015959739685, 0.037585705518722534, -0.44451022148132324, -0.09340910613536835, -0.23963093757629395, -0.4727940857410431, 0.19050084054470062, -0.28254473209381104, -0.22040700912475586, -0.16203568875789642, 0.0217779241502285, -0.014891493134200573, -0.18549108505249023, 0.3216649889945984, 0.38089826703071594, 0.447456955909729, 0.17736291885375977, 0.3423076570034027, 0.05421006679534912, 0.029494119808077812, -0.0818469449877739, 0.010395779274404049, -0.1400306075811386, -0.018312867730855942, -0.0683731883764267, 0.09401041269302368, -0.39029252529144287, -0.2314216047525406, -0.3763725757598877, 0.1393858939409256, 0.14529891312122345, -0.24365375936031342, -0.406920462846756, 0.1513773649930954, 0.08006797730922699, -0.17851212620735168, -0.11122498661279678, 0.13069182634353638, -0.14123819768428802, 0.48920169472694397, -0.15563306212425232, 0.03895696997642517, 0.509623646736145, -0.3619688153266907, -0.3078303933143616, -0.09886959940195084, 0.2756548523902893, -0.10142839699983597, -0.34123697876930237, -0.7951290607452393, 0.16724038124084473, 0.5032972097396851, 0.18593193590641022, -0.10840798914432526, 0.13402165472507477, -0.29131394624710083, 0.1869584321975708, 0.0937095358967781, 0.22663162648677826, -0.06186942383646965, -0.29603809118270874, 0.09382887929677963, -0.1918133646249771 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem.
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
27
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem.
[ -0.04754061996936798, 0.12642525136470795, 0.10102405399084091, 0.07860253006219864, 0.10257810354232788, -0.11232954263687134, 0.370812326669693, 0.006238189991563559, -0.08590336889028549, 0.09649999439716339, 0.07316899299621582, 0.32716354727745056, -0.16986148059368134, -0.03048022836446762, -0.31444042921066284, -0.22135032713413239, -0.05078227445483208, 0.28180474042892456, 0.0639781802892685, -0.08646241575479507, -0.5255199670791626, 0.15297354757785797, -0.4210202693939209, -0.19245384633541107, -0.2500157952308655, 0.05794145539402962, -0.052520498633384705, 0.10600331425666809, -0.2861156165599823, -0.5162754654884338, 0.4373297691345215, 0.2641012370586395, -0.04466572776436806, 0.5172582268714905, -0.00012442885781638324, -0.009829104878008366, 0.0957094207406044, -0.1925259232521057, 0.08837179839611053, -0.2875203490257263, -0.34826070070266724, 0.15046906471252441, -0.06922231614589691, -0.2116609811782837, -0.004402049817144871, -0.011812401004135609, -0.2781258225440979, -0.17515131831169128, 0.3080373704433441, 0.35246148705482483, 0.08746021240949631, 0.2012190967798233, 0.06530825048685074, -0.34205305576324463, 0.19315972924232483, -0.3299062252044678, -0.13928629457950592, 0.3961024880409241, -0.27092427015304565, 0.056484103202819824, -0.06807185709476471, 0.03196342661976814, 0.005657554138451815, 0.2695561647415161, 0.4815780222415924, 0.0913679450750351, 0.10961221158504486, -0.005542638711631298, 0.09208779036998749, 0.4091937243938446, -0.08030141144990921, -0.2674735486507416, -0.31282442808151245, 0.03694334998726845, 0.03140680491924286, -0.6414812803268433, 0.07907188683748245, -0.3048735558986664, -0.14374148845672607, -0.008726917207241058, -0.17056789994239807, -0.2099006175994873, -0.34008798003196716, 0.2357408106327057, 0.0795760378241539, 0.01741960272192955, -0.10470359772443771, -0.0014909596648067236, 0.54781174659729, -0.15666906535625458, 0.25361859798431396, -0.2071750909090042, 0.08182153105735779, 0.07935784757137299, -0.17650195956230164, -0.09849443286657333, 0.09034925699234009, 0.052936844527721405, 0.06965801864862442, -0.44325920939445496, 0.2492191344499588, 0.03126048669219017, -0.0459446981549263, 0.02433154173195362, -0.055872030556201935, 0.46400925517082214, 0.02781023271381855, 0.11704316735267639, 0.047696955502033234, 0.24041877686977386, 0.10346180945634842, 0.0706092119216919, 0.10227528214454651, -0.2756909132003784, 0.3526837229728699, 0.12943437695503235, -0.008399656042456627, -0.09592820703983307, -0.1331205815076828, -0.05681917443871498, -0.34270504117012024, -0.18304194509983063, 0.11601860076189041, 0.15686897933483124, 0.15791554749011993, 0.32575345039367676, -0.22007767856121063, 0.33303239941596985, -0.04093112051486969, 0.015214449726045132, -0.08345979452133179, 0.10748340934515, -0.3994539976119995, 0.1989300549030304, 0.31282708048820496, -0.22427712380886078, 0.37185192108154297, 0.28521114587783813, 0.3254765570163727, 0.17210042476654053, 0.13744504749774933, -0.2168232947587967, 0.13654725253582, -0.10478179156780243, -0.06217415630817413, -0.1410239040851593, 0.16448234021663666, 0.30252742767333984, -0.13877075910568237, 0.17543914914131165, -0.22232016921043396, -0.1910637766122818, 0.17179107666015625, 0.06801380962133408, -0.2613268792629242, -0.11207808554172516, -0.42405298352241516, 0.05283176526427269, 0.22432878613471985, -0.15296420454978943, -0.17276857793331146, -0.24116551876068115, -0.45763781666755676, -0.15937340259552002, 0.2582954168319702, 0.13981442153453827, -0.6280479431152344, 0.014894911088049412, -0.34025946259498596, 0.33367204666137695, 0.03147643059492111, 0.037116311490535736, -0.141583651304245, 0.4862443804740906, -0.07575429230928421, 0.06252284348011017, 0.1722273826599121, -0.47906503081321716, -0.4099445343017578, -0.27164965867996216, 0.3522043228149414, -0.08145646750926971, 0.0634879469871521, -0.1295194923877716, 0.13141678273677826, -0.088909812271595, 0.22827589511871338, -0.29694852232933044, 0.2183348536491394, 0.049338482320308685, -0.20322422683238983, -0.21763402223587036, -0.19495393335819244, -0.06155582144856453, 0.14589527249336243, -0.18382075428962708, -0.1019393727183342, 0.26843419671058655, -0.24211423099040985, -0.25141382217407227, -0.006849341094493866, 0.17279241979122162, 0.23943324387073517, -0.23199070990085602, 0.20608586072921753, -0.043393831700086594, -0.02649466134607792, 0.22788020968437195, -0.14406614005565643, 0.27009743452072144, 0.0971943661570549, -0.08908038586378098, -0.47751015424728394, -0.1666538566350937, -0.16909801959991455, -0.18644316494464874, 0.020111657679080963, 0.09318756312131882, 0.18288153409957886, -0.006779765244573355, -0.2632790803909302, -0.6373130083084106, -0.13531887531280518, -0.012236066162586212, -0.18095694482326508, 0.08173003792762756, -0.06531759351491928, -0.15089645981788635, 0.225184366106987, 0.49853840470314026, 0.1647062748670578, 0.09327481687068939, -0.10046236217021942, 0.38334500789642334, 0.032516662031412125, -0.0487695075571537, 0.1908470094203949, 0.1934923380613327, -0.05054051801562309, -0.35793304443359375, 0.1553332656621933, 0.07825304567813873, 0.053072236478328705, 0.05050209164619446, -0.007134091574698687, 0.35364407300949097, 0.16203594207763672, 0.26356759667396545, -0.05274327099323273, -0.17158745229244232, 0.06012553349137306, -0.08593414723873138, -0.04068978875875473, -0.4568105638027191, 0.14553242921829224, 0.030378133058547974, 0.22304213047027588, -0.10370057821273804, 0.2699276804924011, -0.09826163202524185, 0.5954117178916931, 0.19170475006103516, 0.2943183183670044, 0.19945548474788666, 0.04987315088510513, -0.16640940308570862, -0.23268085718154907, -0.19591988623142242, 0.5780515670776367, 0.15628965198993683, -0.08708493411540985, 0.2507531940937042, -0.04616395756602287, -0.10743962228298187, 0.1028246134519577, 0.2760709524154663, -0.22598721086978912, 0.022334298118948936, 0.22490854561328888, 0.07468690723180771, 0.004551411606371403, 0.04071395471692085, -0.07844569534063339, 0.24304771423339844, -0.43029192090034485, 0.1707737296819687, -0.28519976139068604, 0.11545780301094055, -0.036521606147289276, -0.5909370183944702, -0.06897809356451035, -0.20160336792469025, 0.0984470546245575, -0.06954134255647659, 0.09410059452056885, 0.5627202987670898, 0.15886570513248444, 0.6345832943916321, 0.1455807387828827, -0.1373710334300995, -0.007718014996498823, -0.3456173539161682, -0.142493337392807, -0.015679441392421722, -0.17276057600975037, -0.07909204065799713, 0.26143673062324524, -0.2617183327674866, -0.20886987447738647, 0.21035552024841309, -0.411568284034729, 0.04356713965535164, -0.09284090995788574, 0.34666189551353455, 0.5264639854431152, -0.13401728868484497, -0.17358529567718506, 0.10425098985433578, 0.2667141854763031, -0.016502758488059044, 0.19171661138534546, -0.007553711999207735, -0.21391282975673676, -0.0276632159948349, -0.004232851788401604, -0.3714008033275604, 0.3031685948371887, -0.1856306493282318, -0.14328743517398834, 0.052525363862514496, -0.016999244689941406, -0.15072232484817505, 0.37668687105178833, 0.32469692826271057, 0.01956143043935299, -0.17916373908519745, -0.09495396167039871, -0.606540858745575, 0.40058088302612305, -0.2512533962726593, -0.11877116560935974, 0.09931772202253342, -0.24349984526634216, 0.5438973307609558, 0.0890602320432663, -0.17217206954956055, -0.628764808177948, 0.018984727561473846, 0.16713742911815643, 0.013157447800040245, 0.15370510518550873, 0.18174628913402557, 0.13932861387729645, 0.005711987614631653, -0.20125488936901093, -0.16873206198215485, 0.19201405346393585, -0.4219169616699219, 0.1910489797592163, 0.1683254837989807, 0.2982528507709503, 0.08290618658065796, 0.9984362721443176, 0.2949480712413788, -0.23060208559036255, 0.41766777634620667, -0.026131385937333107, 0.38268929719924927, -0.41303983330726624, -0.3121483027935028, -0.16413207352161407, 0.2399422824382782, 0.14658038318157196, 0.24201609194278717, -0.06129678711295128, 0.4389861822128296, -0.09266815334558487, -0.17209622263908386, -0.1663755625486374, -0.32728302478790283, -0.010458161123096943, 0.020105954259634018, 0.5321361422538757, 0.08347446471452713, 0.2833060026168823, -0.32683441042900085, -0.25000274181365967, -0.10580099374055862, -0.16183140873908997, -0.03335769474506378, -0.07446018606424332, 0.253909170627594, 0.2720233201980591, -0.4521148204803467, 0.5129056572914124, 0.09672298282384872, 0.12864097952842712, 0.014480683021247387, 0.3394750952720642, -0.09009836614131927, -0.017288152128458023, 0.12779884040355682, -0.40572789311408997, 0.024942925199866295, -0.048157401382923126, 0.1609792411327362, -0.4846995770931244, 0.12155376374721527, -0.08867009729146957, -0.0307452529668808, 0.3386259973049164, 0.5947800874710083, -0.2976602017879486, 0.06955263763666153, 0.3657415509223938, -0.08622705936431885, -0.014919506385922432, -0.2503322660923004, -0.34362080693244934, -0.15209220349788666, -0.1540452390909195, -0.11982974410057068, -0.0043401713483035564, 0.22295333445072174, 0.052118297666311264, 0.19286638498306274, 0.15072421729564667, -0.33603352308273315, 0.1529758721590042, 0.332875519990921, 0.16395144164562225, -0.14907146990299225, 0.08321547508239746, 0.14564359188079834, -0.6445590257644653, 0.5847181677818298, 0.3334154784679413, -0.5383545756340027, -0.6002218127250671, -0.11169957369565964, -0.03578308969736099, 0.2527264654636383, 0.18089887499809265, -0.21768131852149963, 0.03808844834566116, -0.10429246723651886, 0.10297022014856339, -0.08309394866228104, 0.34791800379753113, 0.4639835059642792, -0.08744808286428452, -0.15754853188991547, -0.5294516682624817, 0.47996440529823303, 0.14552249014377594, -0.02288452535867691, -0.014788116328418255, 0.36565783619880676, -0.32127079367637634, 0.3233955502510071, 0.07118736207485199, 0.5845338106155396, 0.35109126567840576, 0.06165515258908272, 0.22660265862941742, 0.18070705235004425, 0.3489806056022644, 0.308276504278183, 0.04713800176978111, -0.15566062927246094, 0.09706895798444748, -0.051441457122564316, -0.07078277319669724, 0.14444465935230255, 0.0954965278506279, -0.3130039870738983, 0.6615695357322693, -0.08015788346529007, -0.17533205449581146, 0.045935239642858505, -0.14208918809890747, 0.06930146366357803, -0.23097223043441772, -0.09232038259506226, 0.08704495429992676, 0.11096728593111038, -0.06411853432655334, -0.0626298114657402, 0.0776703953742981, 0.032370634377002716, -0.31834810972213745, -0.3015079200267792, -0.051570434123277664, -0.045740142464637756, -0.1608870029449463, 0.10070540010929108, -0.12192990630865097, 0.24818748235702515, 0.07426340878009796, 0.6118419766426086, 0.2196635603904724, -0.20115050673484802, 0.12192701548337936, -0.08034895360469818, -0.03636736422777176, 0.0418829545378685, 0.05395245924592018, -0.18730349838733673, -0.08470989763736725, -0.19977937638759613, 0.16233061254024506, 0.07494624704122543, -0.20910748839378357, -0.2846110463142395, -0.23934867978096008, 0.22342658042907715, -0.17724746465682983, 0.06481560319662094, -0.22254399955272675, 0.11366217583417892, -0.22108392417430878, 0.0760359913110733, -0.19220203161239624, 0.03705364093184471, 0.13925661146640778, -0.38070669770240784, -0.23177433013916016, 0.05472550913691521, 0.37353989481925964, -0.17372779548168182, 0.1404583752155304, 0.5156524181365967, -0.1712522655725479, 0.0694393739104271, -0.03310176357626915, 0.0473862923681736, 0.05797801539301872, -0.22301554679870605, 0.2284887135028839, 0.2958238422870636, 0.1286982148885727, 0.1665135771036148, 0.6771211624145508, 0.19222521781921387, -0.20875248312950134, 0.15401369333267212, -0.20433543622493744, 0.1462811678647995, -0.12068019062280655, 0.09319980442523956, 0.08072391897439957, 0.054561007767915726, 0.07112535834312439, -0.08743848651647568, -0.0012540236348286271, -0.19295024871826172, 0.19305863976478577, -0.012173935770988464, -0.078327976167202, -0.029033400118350983, -0.11466605961322784, 0.2602442800998688, 0.005525522865355015, -0.04171252250671387, 0.27751630544662476, -0.2428807020187378, -0.12582650780677795, -0.3876548707485199, 0.12837928533554077, 0.07455434650182724, -0.12106607854366302, -0.00043552371789701283, 0.048557549715042114, -0.14363215863704681, -0.17500482499599457, -0.011916427873075008, 0.37090569734573364, 0.03601914644241333, 0.3890732526779175, 0.0001867129176389426, 0.26782745122909546, 0.13566724956035614, -0.0006353427888825536, 0.14316165447235107, 0.3406473398208618, 0.0472082681953907, 0.2938123643398285, -0.050576191395521164, -0.11085081100463867, 0.0956287607550621, 0.06041398644447327, 0.5085905194282532, -0.09176654368638992, 0.13788269460201263, 0.006650920026004314, 0.04124416038393974, 0.16179993748664856, 0.3347961902618408, 0.20611070096492767, -0.3880246877670288, -0.33622583746910095, 0.04331954941153526, 0.062381595373153687, -0.41448116302490234, -0.017560027539730072, -0.031128931790590286, 0.36788079142570496, 0.08294101804494858, 0.24160456657409668, 0.18162517249584198, -0.20283128321170807, -0.025402698665857315, 0.04753139987587929, 0.219284325838089, -0.24257299304008484, 0.31681427359580994, 0.14294271171092987, -0.16014361381530762, 0.17095819115638733, 0.5377212166786194, 0.14673882722854614, 0.3065437078475952, 0.5560674071311951, -0.174981951713562, 0.551689088344574, -0.3667333722114563, -0.08273598551750183, -0.20972618460655212, -0.22436612844467163, 0.1176198273897171, 0.18641190230846405, 0.23873671889305115, 0.1637248992919922, -0.008943257853388786, 0.5908873677253723, -0.050669752061367035, 0.017124108970165253, -0.427911639213562, -0.0762750580906868, 0.07436539232730865, -0.29743239283561707, -0.34140631556510925, -0.2598402500152588, 0.005045129451900721, -0.018773384392261505, -0.09423147141933441, 0.04296165332198143, 0.15726876258850098, -0.025622617453336716, -0.0984211266040802, -0.16964127123355865, -0.1914118081331253, 0.1319756805896759, 0.10118744522333145, 0.006318814121186733, 0.2313852459192276, 0.3034438192844391, 0.06412757933139801, 0.1433514505624771, 0.5091137886047363, 0.3321656286716461, 0.27707603573799133, -0.0855102390050888, -0.23390047252178192, -0.11356202512979507, 0.05407591909170151, 0.09892547875642776, 0.14395911991596222, 0.21088069677352905, 0.2965933382511139, 0.26348745822906494, 0.03789988532662392, -0.17659525573253632, 0.46620792150497437, -0.2152256965637207, 0.6183241605758667, -0.41492629051208496, 0.5195445418357849, -0.012451418675482273, 0.22822102904319763, 0.2758096158504486, 0.1006527692079544, -0.35547149181365967, 0.2301425039768219, 0.13340526819229126, 0.21268562972545624, -0.1203245148062706, -0.3135843276977539, 0.034755922853946686, -0.12345610558986664, 0.4652171730995178, 0.34069445729255676, -0.09943161904811859, -0.6055418848991394, -0.03598276525735855, -0.6710899472236633, -0.02108095958828926, -0.18030688166618347, 0.20582044124603271, -0.02890685200691223, -0.11196812987327576, -0.12118300795555115, 0.4766066074371338, 0.16998204588890076, -0.2435966581106186, -0.28859907388687134, 0.09123720228672028, -0.4174424409866333, -0.08375979214906693, -0.1503182351589203, -0.49240928888320923, 0.21416398882865906, -0.27059775590896606, -0.221698597073555, -0.18429166078567505, -0.024765562266111374, 0.01415545679628849, -0.20340196788311005, 0.34160831570625305, 0.29444390535354614, 0.4395039677619934, 0.20007272064685822, 0.4376277029514313, 0.044501252472400665, 0.03438017889857292, -0.06624175608158112, 0.014865396544337273, -0.1716543287038803, 0.031192053109407425, -0.04188267141580582, 0.08173373341560364, -0.4428393244743347, -0.3534296751022339, -0.37206214666366577, 0.128966823220253, 0.10013438016176224, -0.2365233600139618, -0.35083457827568054, 0.14142665266990662, 0.11279268562793732, -0.16390393674373627, -0.14110146462917328, 0.10185512900352478, -0.09694056957960129, 0.43921276926994324, -0.23688744008541107, -0.03873564302921295, 0.5047755837440491, -0.3888794779777527, -0.24666385352611542, -0.14575862884521484, 0.20972122251987457, -0.06878840923309326, -0.3297351002693176, -0.844214916229248, 0.24206653237342834, 0.4301360547542572, 0.20468951761722565, -0.12722110748291016, 0.1177578791975975, -0.29996025562286377, 0.16083885729312897, 0.056592926383018494, 0.36997583508491516, -0.004196272697299719, -0.26814988255500793, 0.08670658618211746, -0.19394531846046448 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
Hello everyone, I think the problem is not solved: ``` from datasets import load_metric metric=load_metric('bertscore') metric.compute( predictions=predictions, references=references, lang='fr', rescale_with_baseline=True ) TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer' ``` This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10`
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
42
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 Hello everyone, I think the problem is not solved: ``` from datasets import load_metric metric=load_metric('bertscore') metric.compute( predictions=predictions, references=references, lang='fr', rescale_with_baseline=True ) TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer' ``` This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10`
[ 0.013991567306220531, 0.04069521278142929, 0.09277017414569855, 0.07601797580718994, 0.15786105394363403, -0.048431623727083206, 0.4595748782157898, 0.04065318405628204, -0.07028099149465561, 0.09882251918315887, 0.057239875197410583, 0.24822427332401276, -0.24298231303691864, -0.09125896543264389, -0.31373509764671326, -0.20441696047782898, -0.12348651885986328, 0.24841974675655365, 0.1250581592321396, -0.06822139024734497, -0.6134803295135498, 0.11497530341148376, -0.526738166809082, -0.22456705570220947, -0.3061114251613617, -0.007344541605561972, -0.12974952161312103, 0.09400120377540588, -0.1675105094909668, -0.44306108355522156, 0.35663628578186035, 0.2593744695186615, -0.027314921841025352, 0.5043874979019165, -0.00012365187285467982, 0.015140116214752197, 0.0650542601943016, -0.22124487161636353, 0.1006074845790863, -0.2754286825656891, -0.300353467464447, 0.20567810535430908, -0.10892585664987564, -0.308452844619751, -0.056707195937633514, -0.09749455749988556, -0.32915544509887695, -0.22229039669036865, 0.2909579873085022, 0.4247188866138458, 0.09974455088376999, 0.16781672835350037, -0.0701238214969635, -0.3143259286880493, 0.0707341656088829, -0.304108202457428, -0.1328679323196411, 0.476104736328125, -0.3822270333766937, 0.09051743894815445, -0.04759824275970459, 0.01510741375386715, 0.008490992709994316, 0.2755850553512573, 0.46190571784973145, 0.061038579791784286, 0.16856448352336884, 0.02902817726135254, 0.10671807825565338, 0.34075459837913513, -0.06263703107833862, -0.19644352793693542, -0.1896902620792389, 0.08914124965667725, 0.1015934944152832, -0.7081436514854431, 0.0732918530702591, -0.24685175716876984, -0.102623850107193, 0.015015464276075363, -0.14639165997505188, -0.23107852041721344, -0.3840644955635071, 0.2057582437992096, 0.0964839905500412, -0.022434106096625328, -0.09366098791360855, -0.01037686225026846, 0.5541221499443054, -0.1331990510225296, 0.21339277923107147, -0.28670990467071533, 0.07616198062896729, 0.0739569365978241, -0.21884948015213013, -0.07749034464359283, 0.11129672825336456, -0.014222372323274612, 0.037126149982213974, -0.47027647495269775, 0.2807551920413971, 0.05194408446550369, 0.018092025071382523, 0.016401734203100204, -0.08858083933591843, 0.4158308804035187, 0.03103644773364067, 0.06493481248617172, 0.0825006291270256, 0.21682076156139374, -0.0032399718184024096, 0.056435149163007736, 0.058280035853385925, -0.3148392140865326, 0.4590704143047333, 0.20776492357254028, 0.07014207541942596, -0.07283888757228851, -0.04298941045999527, -0.10283998399972916, -0.40273112058639526, -0.19580981135368347, 0.14907129108905792, 0.17959994077682495, 0.1914653480052948, 0.312992125749588, -0.19877929985523224, 0.27538007497787476, -0.012533786706626415, -0.06015179306268692, -0.1233493834733963, 0.14538319408893585, -0.3849159777164459, 0.2618604004383087, 0.2926674485206604, -0.260151207447052, 0.32550808787345886, 0.30894777178764343, 0.34241074323654175, -0.0041440376080572605, 0.07343953847885132, -0.28211039304733276, 0.10133739560842514, -0.1857384890317917, -0.05333824083209038, -0.22540973126888275, 0.17369721829891205, 0.29828178882598877, -0.14986291527748108, 0.17967087030410767, -0.26924368739128113, -0.26010796427726746, 0.2153949737548828, 0.06301531195640564, -0.2491665780544281, -0.06888595968484879, -0.46898525953292847, 0.13057011365890503, 0.23723910748958588, 0.004583343397825956, -0.168193057179451, -0.169010192155838, -0.5841557383537292, -0.18673075735569, 0.22472575306892395, 0.14870618283748627, -0.6226078867912292, 0.010387001559138298, -0.2680065631866455, 0.3499612808227539, 0.029299048706889153, 0.020666683092713356, -0.1841607391834259, 0.5567420721054077, -0.1364111453294754, 0.048374440521001816, 0.17853771150112152, -0.40736648440361023, -0.3432227075099945, -0.3021986186504364, 0.3096635043621063, -0.10789059102535248, 0.048936665058135986, -0.10578178614377975, 0.1185820922255516, -0.06338044255971909, 0.2802252769470215, -0.27630531787872314, 0.26933833956718445, 0.04976462200284004, -0.17411388456821442, -0.1504572182893753, -0.10334944725036621, -0.0555000826716423, 0.1072787493467331, -0.09305126219987869, -0.06821057200431824, 0.24829146265983582, -0.24341870844364166, -0.2698493003845215, -0.04657083377242088, 0.21163251996040344, 0.19406375288963318, -0.3016170263290405, 0.19667741656303406, 0.006671790033578873, -0.04591457545757294, 0.20494236052036285, -0.08563269674777985, 0.30944645404815674, 0.11927105486392975, -0.06333469599485397, -0.47617101669311523, -0.1659833788871765, -0.18617506325244904, -0.1153101846575737, 0.012197737582027912, 0.07602451741695404, 0.12357526272535324, 0.07234057039022446, -0.25528159737586975, -0.6563647389411926, -0.24433638155460358, -0.0664547011256218, -0.11465569585561752, 0.15613384544849396, -0.0055234311148524284, -0.14333540201187134, 0.2601357400417328, 0.46008777618408203, 0.26338353753089905, 0.09927839040756226, -0.1747131049633026, 0.35264018177986145, 0.03725123405456543, -0.055102862417697906, 0.14860846102237701, 0.24897751212120056, -0.025441592559218407, -0.412758469581604, 0.1762647032737732, 0.022823400795459747, 0.05186077952384949, -0.041066985577344894, 0.1139843761920929, 0.44976285099983215, 0.16841493546962738, 0.24452733993530273, -0.14053118228912354, -0.13733357191085815, 0.03153509274125099, -0.09210973232984543, 0.028469882905483246, -0.4044123589992523, 0.10032276064157486, 0.06902223080396652, 0.1901562213897705, -0.05921343341469765, 0.22482773661613464, -0.1967807412147522, 0.702014684677124, 0.22957974672317505, 0.3146532475948334, 0.20030100643634796, 0.061242714524269104, -0.1737087070941925, -0.30645856261253357, -0.2758391797542572, 0.569911003112793, 0.12267864495515823, -0.13191813230514526, 0.3084486722946167, 0.050916433334350586, -0.10449399799108505, 0.15288229286670685, 0.29514285922050476, -0.11052893847227097, 0.011960511095821857, 0.18535254895687103, 0.04845213145017624, 0.0022555540781468153, -0.010293718427419662, -0.0005137722473591566, 0.2762994170188904, -0.44570785760879517, 0.10123331844806671, -0.2893078625202179, 0.11609531193971634, 0.0153837064281106, -0.44704100489616394, -0.050085872411727905, -0.21758818626403809, 0.022282833233475685, -0.1053767055273056, 0.16900314390659332, 0.5220664143562317, 0.1414792835712433, 0.7223009467124939, 0.2266034632921219, -0.12144210189580917, -0.04680081456899643, -0.36085572838783264, -0.0696488693356514, -0.014793234877288342, -0.16471640765666962, -0.08898299187421799, 0.20913779735565186, -0.216695636510849, -0.1947319060564041, 0.23748508095741272, -0.3260771334171295, 0.03310617431998253, -0.04158598557114601, 0.2737579047679901, 0.4932175576686859, -0.1144719123840332, -0.14397519826889038, 0.11492481082677841, 0.2683188021183014, -0.019764497876167297, 0.21430149674415588, 0.07479623705148697, -0.25199639797210693, 0.025338349863886833, -0.05089569464325905, -0.3107791543006897, 0.30451303720474243, -0.1827809363603592, -0.19885915517807007, 0.010753323324024677, 0.022669345140457153, -0.043299127370119095, 0.3582720160484314, 0.3304130733013153, 0.12296722829341888, -0.209483802318573, -0.11472482979297638, -0.6629091501235962, 0.43826761841773987, -0.29819348454475403, -0.11302367597818375, 0.12291205674409866, -0.2544555962085724, 0.5852693915367126, 0.039028316736221313, -0.20369209349155426, -0.6184418797492981, 0.03932720795273781, 0.256646066904068, -0.0809669941663742, 0.07439365237951279, 0.09192542731761932, 0.07799718528985977, 0.008605418726801872, -0.14525412023067474, -0.20450744032859802, 0.2225303202867508, -0.31088608503341675, 0.1650233119726181, 0.24360525608062744, 0.31709375977516174, 0.1539711058139801, 0.9103379249572754, 0.27061566710472107, -0.2894459664821625, 0.4798111319541931, -0.059398382902145386, 0.3143582344055176, -0.3554125428199768, -0.36912232637405396, -0.1672535091638565, 0.23914697766304016, 0.1340111494064331, 0.2440323382616043, -0.11024411767721176, 0.433088093996048, -0.07250679284334183, -0.3233262598514557, -0.16089323163032532, -0.3306829333305359, -0.051279984414577484, -0.05709656700491905, 0.5392926931381226, -0.0012511080130934715, 0.22852134704589844, -0.3670794367790222, -0.2014560103416443, -0.0900191217660904, -0.12140580266714096, 0.030715666711330414, -0.11893590539693832, 0.20836323499679565, 0.40518349409103394, -0.4139276444911957, 0.49886706471443176, 0.06697779148817062, 0.1079292967915535, 0.021500689908862114, 0.4737040102481842, -0.08933651447296143, 0.03361324220895767, 0.16861166059970856, -0.37609216570854187, 0.08614612370729446, 0.010659975931048393, 0.10862141102552414, -0.4380442500114441, 0.15279430150985718, -0.04008898138999939, 0.020739760249853134, 0.3356548547744751, 0.6264062523841858, -0.18393996357917786, 0.03235972672700882, 0.24448391795158386, -0.12188483029603958, -0.10410518199205399, -0.3233894407749176, -0.32811737060546875, -0.22280651330947876, -0.08939198404550552, -0.05042329058051109, 0.03128226473927498, 0.3153298497200012, 0.023516112938523293, 0.1831652820110321, 0.1488300859928131, -0.4003749489784241, 0.16127537190914154, 0.25910481810569763, 0.16271162033081055, -0.08948400616645813, 0.05779401585459709, 0.1674814671278, -0.6602142453193665, 0.515082597732544, 0.3028128445148468, -0.42294222116470337, -0.6607748866081238, -0.12094265967607498, -0.054575759917497635, 0.4059811532497406, 0.09570744633674622, -0.25977569818496704, 0.12474916130304337, -0.17594808340072632, 0.09407909959554672, -0.09821366518735886, 0.3145965039730072, 0.4231688976287842, -0.10081768780946732, -0.16939319670200348, -0.5441930890083313, 0.4014715254306793, 0.0640224888920784, 0.01789127103984356, 0.03431040421128273, 0.2680577337741852, -0.3483159840106964, 0.2627161741256714, 0.08030865341424942, 0.57746422290802, 0.3167760968208313, -0.019489971920847893, 0.23539239168167114, 0.20793691277503967, 0.30093488097190857, 0.3254626989364624, 0.016854017972946167, -0.1357765942811966, 0.025887947529554367, -0.025199776515364647, -0.12510083615779877, 0.1769702285528183, 0.12607161700725555, -0.31573957204818726, 0.6133504509925842, -0.2259570211172104, -0.23259654641151428, -0.010540703311562538, -0.04365944489836693, 0.14953093230724335, -0.22350917756557465, -0.1270403414964676, 0.07963421195745468, -0.02215507999062538, -0.08843354135751724, -0.016591930761933327, 0.05266612023115158, 0.16085314750671387, -0.29368704557418823, -0.23730558156967163, -0.0411996990442276, 0.012837152928113937, -0.11231149733066559, 0.05195822939276695, 0.012661624699831009, 0.3148292899131775, 0.1824485957622528, 0.6069732904434204, 0.24932552874088287, -0.16227233409881592, 0.09220417588949203, -0.11786498874425888, -0.012798094190657139, 0.001835170085541904, 0.06109783053398132, -0.20825453102588654, -0.09533987194299698, -0.33352959156036377, 0.20350486040115356, 0.14014321565628052, -0.29495877027511597, -0.31158557534217834, -0.29785457253456116, 0.10019436478614807, -0.15115563571453094, 0.05816427618265152, -0.19856350123882294, 0.05896666273474693, -0.2253699004650116, 0.07929501682519913, -0.1527479737997055, -0.0013041484635323286, 0.14583395421504974, -0.3612082600593567, -0.25890830159187317, 0.09286355972290039, 0.3415718674659729, -0.17359542846679688, 0.20141546428203583, 0.5621201992034912, -0.1293601542711258, 0.07186923176050186, -0.0616954043507576, 0.10201042145490646, 0.013543400913476944, -0.15096449851989746, 0.3395422399044037, 0.3096991777420044, 0.2640451490879059, 0.118296779692173, 0.684689998626709, 0.10095921158790588, -0.1395329385995865, 0.19830986857414246, -0.1839979588985443, 0.09121812880039215, -0.20216505229473114, 0.0457405149936676, 0.08305326849222183, 0.020879074931144714, 0.16706031560897827, -0.04621967300772667, 0.06037731468677521, -0.18368546664714813, 0.23242971301078796, -0.1228216290473938, -0.13924844563007355, -0.04239277541637421, -0.17068810760974884, 0.2101249098777771, 0.07354261726140976, -0.03690791875123978, 0.29652637243270874, -0.22183595597743988, -0.1250486522912979, -0.46245548129081726, 0.13674214482307434, 0.06818477064371109, -0.09256231784820557, 0.005986395291984081, -0.03820750489830971, -0.21278266608715057, -0.14123018085956573, -0.08439061045646667, 0.4205978512763977, 0.027771564200520515, 0.4663684070110321, 0.08058175444602966, 0.26607418060302734, 0.059221476316452026, -0.01731889322400093, 0.13760749995708466, 0.3475293815135956, 0.07433383166790009, 0.28015586733818054, -0.033318761736154556, -0.10433367639780045, -0.1088942438364029, 0.01234399899840355, 0.4550785720348358, -0.14004233479499817, 0.12886963784694672, 0.08338805288076401, 0.0280179250985384, 0.14374886453151703, 0.2597419023513794, 0.06044986844062805, -0.4357887804508209, -0.25952768325805664, -0.05624210834503174, 0.0386526994407177, -0.4195455312728882, -0.00012005686585325748, -0.0074302516877651215, 0.38974303007125854, 0.08657898008823395, 0.2663341760635376, 0.1477302461862564, -0.14255502820014954, -0.11657325178384781, -0.04690670967102051, 0.1650981307029724, -0.22782477736473083, 0.3007047772407532, 0.046048618853092194, -0.13211989402770996, 0.14930172264575958, 0.5626957416534424, 0.21787536144256592, 0.2259550839662552, 0.5427418351173401, -0.20354776084423065, 0.5215115547180176, -0.33088719844818115, -0.121178537607193, -0.1570492535829544, -0.22857597470283508, 0.18660558760166168, 0.2842147946357727, 0.15558141469955444, 0.14489680528640747, -0.12073829025030136, 0.5115417242050171, 0.04092566668987274, 0.03164677321910858, -0.371878981590271, -0.020366085693240166, 0.07844454050064087, -0.21428392827510834, -0.36264851689338684, -0.21735608577728271, -0.02061464823782444, -0.03371424600481987, -0.015351210720837116, 0.01804039068520069, 0.1275288611650467, 0.02077236771583557, -0.056384339928627014, -0.04069526121020317, -0.14775393903255463, 0.18017341196537018, 0.20928436517715454, -0.013768592849373817, 0.17708942294120789, 0.3263343274593353, 0.15095598995685577, 0.1939714550971985, 0.44272658228874207, 0.22957071661949158, 0.24125424027442932, -0.06016557291150093, -0.24202416837215424, -0.03854333981871605, 0.024976810440421104, 0.16570642590522766, 0.1447426974773407, 0.21920707821846008, 0.32298192381858826, 0.23726291954517365, 0.04013017937541008, -0.14708010852336884, 0.5082954168319702, -0.13725580275058746, 0.6505021452903748, -0.43171361088752747, 0.5439701676368713, 0.06322792917490005, 0.19063742458820343, 0.20602785050868988, 0.13211870193481445, -0.24254250526428223, 0.13806189596652985, 0.21129895746707916, 0.2143062949180603, -0.13418062031269073, -0.3158297538757324, 0.032232314348220825, -0.15167461335659027, 0.41942086815834045, 0.3295183479785919, -0.057585280388593674, -0.6801503896713257, -0.02396450936794281, -0.6489642262458801, 0.02079189009964466, -0.08960718661546707, 0.18073903024196625, 0.0731627345085144, -0.09335470199584961, -0.15654189884662628, 0.4147490859031677, 0.15582294762134552, -0.2584226429462433, -0.2880339026451111, 0.05689706280827522, -0.47720232605934143, -0.06263870745897293, -0.20283754169940948, -0.4374266266822815, 0.19915224611759186, -0.285133421421051, -0.22481751441955566, -0.13061915338039398, -0.0007865029037930071, -0.05129677429795265, -0.19945374131202698, 0.3091568946838379, 0.40737661719322205, 0.44247034192085266, 0.12556777894496918, 0.3649849593639374, 0.03418231010437012, 0.05435704439878464, -0.011362270452082157, 0.016852011904120445, -0.10586067289113998, -0.011145422235131264, -0.019258765503764153, 0.04638667032122612, -0.41782522201538086, -0.2572527229785919, -0.34204408526420593, 0.1045600026845932, 0.08249251544475555, -0.30394691228866577, -0.3829144835472107, 0.14562761783599854, 0.098988838493824, -0.17602939903736115, -0.08648095279932022, 0.13493210077285767, -0.1208004429936409, 0.45231109857559204, -0.20538268983364105, 0.09305382519960403, 0.5157272219657898, -0.3611709475517273, -0.3002442419528961, -0.05224189534783363, 0.3067154586315155, -0.10053849965333939, -0.30114972591400146, -0.7532255053520203, 0.19690951704978943, 0.544191300868988, 0.17015007138252258, -0.0642261803150177, 0.18284982442855835, -0.26942819356918335, 0.22873538732528687, 0.09707710891962051, 0.1186886876821518, -0.08396061509847641, -0.24567030370235443, 0.026720847934484482, -0.1984727829694748 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :) In the meantime please use an older version of `bert_score`
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
30
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :) In the meantime please use an older version of `bert_score`
[ -0.06539956480264664, 0.10557019710540771, 0.12522728741168976, 0.07913370430469513, 0.17581996321678162, -0.10428140312433243, 0.4214690029621124, 0.018661050125956535, -0.06677153706550598, 0.1184602901339531, 0.03066845051944256, 0.236985445022583, -0.19792161881923676, 0.030478738248348236, -0.3029206693172455, -0.2030736356973648, -0.1065385639667511, 0.22900280356407166, 0.060231197625398636, -0.0018441438442096114, -0.5456944108009338, 0.12404279410839081, -0.47636282444000244, -0.17734280228614807, -0.3232964873313904, 0.016604088246822357, -0.09317793697118759, 0.09635882079601288, -0.19384263455867767, -0.46447575092315674, 0.3707926571369171, 0.293792724609375, -0.07834316790103912, 0.42738834023475647, -0.00012025806063320488, -0.017313890159130096, 0.09065951406955719, -0.19199718534946442, 0.082399882376194, -0.3026840388774872, -0.3079274296760559, 0.25077351927757263, -0.07567577809095383, -0.18813744187355042, -0.0568041130900383, -0.025487758219242096, -0.277131050825119, -0.22930105030536652, 0.2610575556755066, 0.37488242983818054, 0.11891980469226837, 0.24876227974891663, -0.014195057563483715, -0.39661145210266113, 0.13915497064590454, -0.28564634919166565, -0.11702311038970947, 0.4653155505657196, -0.4163215756416321, 0.03239035978913307, -0.15259231626987457, 0.06557487696409225, 0.06915027648210526, 0.21318790316581726, 0.49434900283813477, 0.1090630516409874, 0.041216809302568436, 0.05744750797748566, 0.1284714788198471, 0.37406715750694275, -0.050069358199834824, -0.25809237360954285, -0.26822173595428467, -0.03490320220589638, 0.1512613296508789, -0.6960830092430115, 0.08812693506479263, -0.29889437556266785, -0.05446706339716911, 0.010243706405162811, -0.21333731710910797, -0.1494618058204651, -0.3620055317878723, 0.1846591830253601, 0.05407114326953888, -0.11905491352081299, -0.1737607717514038, -0.006159631069749594, 0.6393913626670837, -0.12622568011283875, 0.031246788799762726, -0.16025310754776, -0.008180697448551655, 0.07034032046794891, -0.22269245982170105, -0.1142827644944191, 0.11058716475963593, -0.02015949971973896, 0.0919514149427414, -0.3600737452507019, 0.27251237630844116, 0.030992556363344193, -0.07682902365922928, 0.001100195455364883, 0.03041311539709568, 0.43421298265457153, 0.087267205119133, -0.056413233280181885, 0.12685002386569977, 0.27002084255218506, 0.11539413034915924, 0.02586505189538002, 0.09556172043085098, -0.2423233687877655, 0.363394558429718, 0.11548386514186859, 0.0006463435711339116, -0.10701118409633636, -0.11450899392366409, -0.04891540855169296, -0.28706425428390503, -0.19433753192424774, 0.17141149938106537, 0.24806039035320282, 0.1765967756509781, 0.29970768094062805, -0.2521524727344513, 0.27255550026893616, 0.003037212649360299, -0.06812477856874466, -0.14189369976520538, 0.08718934655189514, -0.3522235155105591, 0.2969472110271454, 0.3173724114894867, -0.23963265120983124, 0.35527491569519043, 0.27911436557769775, 0.3951643109321594, 0.08374588191509247, 0.05328582972288132, -0.26895496249198914, 0.1519257128238678, -0.16231325268745422, -0.08429264277219772, -0.20845885574817657, 0.1395544409751892, 0.2767297923564911, -0.1474151760339737, 0.1042361706495285, -0.20272181928157806, -0.2549836039543152, 0.2148381620645523, 0.09104331582784653, -0.29955586791038513, -0.09008943289518356, -0.4372723400592804, 0.16943460702896118, 0.1358775943517685, -0.09420502185821533, -0.12959308922290802, -0.17120693624019623, -0.528245747089386, -0.14452844858169556, 0.30292579531669617, 0.21831423044204712, -0.5863310098648071, -0.030736621469259262, -0.2681731879711151, 0.2509879469871521, -0.05773023143410683, 0.04616668075323105, -0.11692474037408829, 0.46355655789375305, -0.09589128196239471, 0.0920361578464508, 0.03610537573695183, -0.3284223675727844, -0.39024901390075684, -0.32762792706489563, 0.31035709381103516, -0.057714272290468216, 0.027414480224251747, -0.09317335486412048, 0.03158523887395859, -0.09970040619373322, 0.20246681571006775, -0.26751822233200073, 0.194984570145607, 0.060016337782144547, -0.14903314411640167, -0.16512136161327362, -0.167513906955719, -0.01389670092612505, 0.08078496158123016, -0.1848618984222412, -0.07771839201450348, 0.30400753021240234, -0.2377137392759323, -0.2887164056301117, -0.025066567584872246, 0.1667812317609787, 0.1623038500547409, -0.29541170597076416, 0.1781117022037506, -0.04087027534842491, -0.06516736000776291, 0.23095065355300903, -0.08470502495765686, 0.2836989760398865, 0.17285828292369843, -0.09250243008136749, -0.4605924189090729, -0.1143951416015625, -0.1628166139125824, -0.15447838604450226, 0.03371835872530937, 0.020306522026658058, 0.1430751532316208, 0.1113390401005745, -0.287396639585495, -0.6143476366996765, -0.20770470798015594, -0.05512479692697525, -0.1873975545167923, 0.0940355658531189, 0.02877325937151909, -0.1254127025604248, 0.2686021625995636, 0.5271695852279663, 0.19755156338214874, 0.13447225093841553, -0.1280672550201416, 0.4088065028190613, 0.046420734375715256, -0.04314455762505531, 0.13157044351100922, 0.21978671848773956, 0.015162931755185127, -0.34460535645484924, 0.08245629072189331, 0.03675122559070587, 0.016955191269516945, 0.004633192904293537, -0.04711136594414711, 0.46747031807899475, 0.08544647693634033, 0.215593621134758, -0.06561999768018723, -0.13018566370010376, 0.01433764398097992, -0.02571110613644123, -0.0032303088810294867, -0.4469577968120575, 0.10621967166662216, -0.01563250832259655, 0.17461854219436646, -0.10733357816934586, 0.16758297383785248, -0.14943796396255493, 0.573768675327301, 0.1685102880001068, 0.3206826150417328, 0.27105841040611267, 0.02610955573618412, -0.20362423360347748, -0.2102171629667282, -0.30177342891693115, 0.5065491795539856, 0.12656475603580475, -0.11329934000968933, 0.29864633083343506, 0.00859552901238203, -0.12548881769180298, 0.13351604342460632, 0.2480136901140213, -0.11313676089048386, -0.016001012176275253, 0.21570108830928802, 0.0475163534283638, -0.05095909535884857, 0.00909245852380991, -0.11269974708557129, 0.25332409143447876, -0.4297858476638794, 0.11043615639209747, -0.31325456500053406, 0.06756376475095749, -0.0020472309552133083, -0.4873186945915222, -0.15345951914787292, -0.22668205201625824, 0.1109817773103714, -0.02189747989177704, 0.050607651472091675, 0.49098822474479675, 0.17217092216014862, 0.6954298615455627, 0.17584674060344696, -0.02013184130191803, -0.03928787633776665, -0.4039444923400879, -0.08064144104719162, 0.023544438183307648, -0.1637839823961258, -0.13261425495147705, 0.29366743564605713, -0.20230992138385773, -0.20844152569770813, 0.16529728472232819, -0.32380980253219604, 0.06108639016747475, -0.09886796772480011, 0.3026760220527649, 0.5101531147956848, -0.17562107741832733, -0.248160719871521, 0.11706039309501648, 0.2749021351337433, -0.038075197488069534, 0.2095591276884079, 0.0698154866695404, -0.21606528759002686, 0.06698762625455856, -0.03781549260020256, -0.2673092782497406, 0.3557487428188324, -0.12567171454429626, 0.03742135688662529, 0.012987573631107807, 0.00831435527652502, 0.03419297933578491, 0.3668735921382904, 0.3727356791496277, 0.04998045787215233, -0.16623374819755554, -0.1761748343706131, -0.6425843238830566, 0.3792097866535187, -0.30968040227890015, -0.17140235006809235, 0.02849995344877243, -0.19411535561084747, 0.4604351222515106, 0.013892157934606075, -0.16286425292491913, -0.6429674625396729, 0.03388600051403046, 0.2201695591211319, -0.020288655534386635, 0.1086326315999031, 0.12794779241085052, 0.07019269466400146, -0.031032245606184006, -0.13629980385303497, -0.17085367441177368, 0.21753448247909546, -0.40942665934562683, 0.14714175462722778, 0.1625189185142517, 0.2354813516139984, 0.12289596349000931, 0.8513755202293396, 0.28580349683761597, -0.17237214744091034, 0.41376394033432007, -0.06929130107164383, 0.40692368149757385, -0.43157392740249634, -0.30844345688819885, -0.07795125991106033, 0.1519482135772705, 0.17010881006717682, 0.25659093260765076, -0.07206735759973526, 0.4978996813297272, -0.07735235244035721, -0.27300825715065, -0.0725356787443161, -0.34796586632728577, -0.006715522147715092, 0.01200028881430626, 0.4621518850326538, 0.05311066657304764, 0.3101479113101959, -0.3184792399406433, -0.2585994601249695, -0.08008984476327896, -0.19238658249378204, 0.059359364211559296, -0.1621015965938568, 0.25389379262924194, 0.3043075501918793, -0.5376892685890198, 0.49079641699790955, 0.13245397806167603, 0.08417820930480957, 0.011516604572534561, 0.34767723083496094, -0.11148141324520111, -0.0016951707657426596, 0.16122564673423767, -0.3205752670764923, 0.051980823278427124, 0.007849342189729214, 0.08938402682542801, -0.47514840960502625, 0.19583338499069214, -0.09154784679412842, -0.04506063088774681, 0.28463616967201233, 0.6144079566001892, -0.2590414881706238, 0.020901905372738838, 0.3384498953819275, -0.08822090178728104, -0.05203985422849655, -0.28903937339782715, -0.31441324949264526, -0.1584344059228897, -0.08574333786964417, -0.06953815370798111, 0.033475279808044434, 0.25946569442749023, 0.009892703033983707, 0.2843870520591736, 0.14270783960819244, -0.3517608046531677, 0.18753217160701752, 0.31935539841651917, 0.1910393089056015, -0.09498441964387894, 0.09764521569013596, 0.2399769127368927, -0.610217273235321, 0.5049677491188049, 0.300090491771698, -0.41404521465301514, -0.6082890629768372, -0.07208177447319031, -0.023780785501003265, 0.34447216987609863, 0.16108840703964233, -0.23459087312221527, 0.09682390838861465, -0.14308618009090424, 0.1310025304555893, -0.24066676199436188, 0.3252997100353241, 0.42481178045272827, -0.13672080636024475, -0.14812776446342468, -0.4227292537689209, 0.5183260440826416, 0.10188572108745575, 0.007189364638179541, -0.003897842252627015, 0.3827870786190033, -0.31820982694625854, 0.27919650077819824, 0.08468588441610336, 0.49010515213012695, 0.27536582946777344, 0.02453332394361496, 0.2900432050228119, 0.18308496475219727, 0.3743012845516205, 0.3055674731731415, 0.03356556594371796, -0.1801939606666565, -0.02251318469643593, 0.03625176101922989, -0.029474740847945213, 0.12545613944530487, 0.07170747220516205, -0.2818490266799927, 0.6017312407493591, -0.13074208796024323, -0.16391751170158386, -0.005362822208553553, -0.06501666456460953, 0.07588721066713333, -0.30666249990463257, -0.1337851732969284, 0.10889354348182678, 0.03499125689268112, -0.11305281519889832, -0.0032100374810397625, 0.1066664531826973, 0.15199260413646698, -0.2874344289302826, -0.28905215859413147, -0.021242376416921616, 0.07005761563777924, -0.18932154774665833, 0.10211756080389023, -0.03416834771633148, 0.30543607473373413, 0.10749339312314987, 0.6377586126327515, 0.2460402548313141, -0.20747609436511993, 0.1262592226266861, -0.16891805827617645, 0.03389832749962807, 0.014784085564315319, 0.07169801741838455, -0.19784066081047058, -0.0963175818324089, -0.2559724748134613, 0.14244653284549713, 0.12607914209365845, -0.19262219965457916, -0.31248921155929565, -0.3262653648853302, 0.07658055424690247, -0.14884549379348755, 0.13704796135425568, -0.24899375438690186, 0.14251106977462769, -0.24601678550243378, 0.09488043189048767, -0.14825217425823212, 0.0463653989136219, 0.0553116574883461, -0.3352026045322418, -0.2087291032075882, 0.05803297087550163, 0.425016850233078, -0.2554192543029785, 0.1469244807958603, 0.4983086884021759, -0.08734320104122162, 0.04718552157282829, -0.06362345814704895, 0.11860191076993942, 0.168335422873497, -0.24625761806964874, 0.2997989058494568, 0.3104076385498047, 0.15275128185749054, 0.09157197922468185, 0.7438474297523499, 0.1266753077507019, -0.2194361686706543, 0.2081773281097412, -0.17106923460960388, 0.09632585197687149, -0.12485241889953613, 0.11016365140676498, 0.08008439093828201, 0.08510461449623108, 0.13069379329681396, -0.11251875758171082, 0.04724565148353577, -0.21219377219676971, 0.2070271372795105, -0.11349490284919739, -0.1501968652009964, -0.04655923321843147, -0.17638009786605835, 0.29958751797676086, 0.028971852734684944, -0.0031543849036097527, 0.34457820653915405, -0.20781315863132477, -0.13466878235340118, -0.43935737013816833, 0.10654503852128983, 0.007474251091480255, -0.09469994157552719, -0.009529246017336845, 0.050148721784353256, -0.22357583045959473, -0.2341233491897583, -0.019377414137125015, 0.4133855402469635, 0.061204683035612106, 0.43343812227249146, 0.026465145871043205, 0.22776511311531067, 0.11732695996761322, -0.04734830930829048, 0.22343750298023224, 0.3463297188282013, -0.012548503465950489, 0.2922855317592621, -0.11845378577709198, -0.1145235225558281, 0.01157305482774973, 0.115278460085392, 0.4361115097999573, -0.15342192351818085, 0.139526829123497, 0.05498535558581352, -0.053112391382455826, 0.16157154738903046, 0.37613222002983093, 0.0671461820602417, -0.3552517294883728, -0.37303492426872253, -0.03901498392224312, 0.06750055402517319, -0.41214287281036377, 0.014147020876407623, -0.06198735535144806, 0.3827044665813446, 0.09407408535480499, 0.28495097160339355, 0.12636466324329376, -0.15240196883678436, -0.08321010321378708, -0.006398015655577183, 0.13208046555519104, -0.17038699984550476, 0.23631644248962402, 0.03568338230252266, -0.10924547165632248, 0.10197796672582626, 0.5675438642501831, 0.17366819083690643, 0.371938019990921, 0.4825722575187683, -0.21718202531337738, 0.4797874689102173, -0.4271300435066223, -0.03665347397327423, -0.163306325674057, -0.23614637553691864, 0.19922657310962677, 0.2894112765789032, 0.16960418224334717, 0.09400211274623871, -0.13540402054786682, 0.6976356506347656, -0.05646805837750435, -0.04131058230996132, -0.3993127644062042, -0.04705991595983505, 0.059952255338430405, -0.2644568681716919, -0.32171347737312317, -0.27622997760772705, -0.009479145519435406, -0.00005519988189917058, -0.07735046744346619, 0.0037154655437916517, 0.16880005598068237, -0.030157584697008133, -0.017637092620134354, -0.14365005493164062, -0.1962636411190033, 0.12652766704559326, 0.20204131305217743, 0.020498856902122498, 0.18886059522628784, 0.36939817667007446, 0.15877895057201385, 0.21838007867336273, 0.48891764879226685, 0.2557511329650879, 0.14600536227226257, -0.02464890107512474, -0.1974698156118393, -0.12070607393980026, 0.04642901569604874, 0.16156917810440063, 0.15371444821357727, 0.29548949003219604, 0.22863081097602844, 0.32177600264549255, 0.05557321757078171, -0.14090918004512787, 0.4595591425895691, -0.12892845273017883, 0.6855302453041077, -0.4920072853565216, 0.49603474140167236, 0.020602721720933914, 0.21433499455451965, 0.2529293894767761, 0.02484041452407837, -0.21068981289863586, 0.255523681640625, 0.1016034185886383, 0.20239126682281494, -0.13192133605480194, -0.2983577251434326, 0.057016771286726, -0.049417827278375626, 0.4805620312690735, 0.24331660568714142, -0.1569368541240692, -0.6128854155540466, -0.05597551539540291, -0.7017796039581299, 0.016539402306079865, -0.03223501518368721, 0.2955358624458313, 0.061719026416540146, -0.12609830498695374, -0.1343756467103958, 0.4902207851409912, 0.1386622190475464, -0.2364031970500946, -0.3039487600326538, 0.00876100268214941, -0.3811798393726349, -0.06067183241248131, -0.19996286928653717, -0.4957592785358429, 0.19418948888778687, -0.22054602205753326, -0.19015154242515564, -0.13695693016052246, -0.003914800006896257, -0.00271444208920002, -0.1556367725133896, 0.19154705107212067, 0.3085126578807831, 0.410491019487381, 0.19466732442378998, 0.30230140686035156, 0.02118280902504921, 0.007380779832601547, -0.06170056760311127, -0.0012757936492562294, -0.12749996781349182, -0.007460443768650293, -0.08714975416660309, 0.08972596377134323, -0.35118696093559265, -0.26277896761894226, -0.3653205335140228, 0.18327461183071136, 0.10866554826498032, -0.23780278861522675, -0.4509289860725403, 0.14493632316589355, 0.1193905845284462, -0.20260223746299744, -0.16607974469661713, 0.13672666251659393, -0.12088408321142197, 0.5144056677818298, -0.19655537605285645, 0.021710297092795372, 0.5324784517288208, -0.4166591465473175, -0.2275545299053192, -0.0542864166200161, 0.2549731433391571, -0.03970619663596153, -0.38138654828071594, -0.8497495651245117, 0.2573447525501251, 0.4507560729980469, 0.22043946385383606, -0.12652480602264404, 0.08519086986780167, -0.3977726399898529, 0.14674580097198486, 0.05947525054216385, 0.3238843083381653, 0.010037388652563095, -0.2801128923892975, 0.11924165487289429, -0.1822178214788437 ]
https://github.com/huggingface/datasets/issues/842
How to enable `.map()` pre-processing pipelines to support multi-node parallelism?
Right now multiprocessing only runs on single node. However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos). If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :)
Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks!
76
How to enable `.map()` pre-processing pipelines to support multi-node parallelism? Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks! Right now multiprocessing only runs on single node. However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos). If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :)
[ -0.33690595626831055, -0.31968361139297485, -0.16863512992858887, -0.07855024933815002, -0.13222911953926086, 0.033465251326560974, 0.050794996321201324, -0.044782064855098724, 0.23892132937908173, 0.23582923412322998, 0.2544296681880951, 0.5422921776771545, -0.15785175561904907, 0.3227919340133667, 0.008817634545266628, -0.40161219239234924, 0.035996731370687485, -0.036944009363651276, -0.006384273059666157, 0.2683170735836029, -0.08243709802627563, 0.03307164087891579, -0.37410908937454224, 0.04205871373414993, -0.0999503955245018, -0.15511837601661682, -0.13673825562000275, -0.02981727011501789, -0.04368443787097931, -0.2958489656448364, -0.22033046185970306, 0.3011398911476135, 0.03128986060619354, 0.35206785798072815, -0.0001225285668624565, 0.002004801295697689, 0.20214901864528656, 0.13646207749843597, 0.26386362314224243, -0.20304615795612335, -0.2922285795211792, -0.11165998131036758, 0.20721395313739777, -0.14126397669315338, -0.05725029483437538, 0.12940074503421783, 0.2296903133392334, -0.48786887526512146, 0.06062359735369682, -0.19149594008922577, 0.06735732406377792, 0.3336285352706909, 0.07118029147386551, 0.22398124635219574, -0.522538423538208, 0.16761675477027893, -0.057598549872636795, -0.10182540118694305, 0.6528372168540955, -0.3768666684627533, -0.11623785644769669, -0.04788902774453163, 0.05052570626139641, 0.14814463257789612, 0.01787290908396244, -0.21977448463439941, 0.548113226890564, -0.677602231502533, -0.1363919973373413, 0.19811582565307617, -0.09676770865917206, 0.09110556542873383, -0.29663845896720886, -0.08539823442697525, -0.3229728639125824, -0.23324769735336304, -0.1775844246149063, -0.00012121535837650299, 0.0031388557981699705, -0.11749526113271713, -0.5662782788276672, -0.41025546193122864, 0.0705290213227272, 0.29572948813438416, 0.18345597386360168, 0.6211119890213013, 0.22724300622940063, 0.26783373951911926, 0.3702201545238495, 0.1326148509979248, 0.0390927717089653, 0.02036028355360031, 0.3610491454601288, 0.25009968876838684, -0.33387038111686707, 0.06370458006858826, 0.05898419767618179, -0.169220432639122, -0.21339035034179688, -0.2581842541694641, 0.21639207005500793, 0.2993527054786682, -0.2664531171321869, 0.4457850754261017, 0.15773159265518188, -0.18107713758945465, 0.08756352216005325, 0.36153343319892883, 0.12244356423616409, -0.2412857711315155, -0.09811955690383911, 0.0740632638335228, -0.0364697091281414, -0.4829171895980835, -0.4006953239440918, 0.38224610686302185, -0.30583256483078003, 0.3852479159832001, 0.3548591732978821, -0.37826916575431824, -0.14104877412319183, -0.24023503065109253, 0.3023351728916168, -0.21192364394664764, 0.44224780797958374, 0.398213654756546, 0.06317392736673355, 0.20841416716575623, -0.19939765334129333, -0.24831297993659973, 0.06380763649940491, -0.025890784338116646, -0.14083588123321533, 0.15869678556919098, -0.025982338935136795, 0.015085162594914436, 0.020952051505446434, -0.11330301314592361, 0.10742005705833435, -0.07295753061771393, 0.41149187088012695, 0.09061875939369202, 0.08630604296922684, 0.33434340357780457, 0.0364169105887413, -0.012797296047210693, 0.03998851776123047, 0.648488461971283, -0.1837863028049469, 0.27202436327934265, -0.459177166223526, -0.3027990758419037, 0.2662394940853119, -0.06130833923816681, 0.25643983483314514, 0.09699030965566635, -0.34695324301719666, 0.18637306988239288, 0.30033692717552185, -0.2851770222187042, 0.2693241536617279, -0.18202120065689087, -0.6244842410087585, -0.17001497745513916, 0.31080320477485657, 0.020038437098264694, 0.18187053501605988, -0.023772964254021645, -0.15023057162761688, -0.06579170376062393, 0.27365633845329285, 0.04461994767189026, -0.2955273389816284, 0.1507151871919632, 0.11665455996990204, 0.3167732357978821, 0.06567170470952988, -0.352651983499527, 0.4236588776111603, 0.38651737570762634, -0.3203391134738922, 0.023527774959802628, -0.2047756016254425, 0.014124377630650997, -0.15350277721881866, 0.16017112135887146, -0.043438300490379333, 0.29647698998451233, -0.021105321124196053, 0.08390543609857559, -0.1153804138302803, -0.22371962666511536, 0.15039880573749542, 0.018808675929903984, 0.22965171933174133, 0.1636526733636856, -0.029227007180452347, -0.47545185685157776, 0.3516528606414795, -0.005083789583295584, 0.38876602053642273, 0.035322342067956924, -0.20260770618915558, 0.1578766107559204, -0.15698806941509247, -0.29686886072158813, 0.27424097061157227, 0.22676019370555878, -0.3845563232898712, -0.2667268216609955, 0.19440095126628876, -0.028135638684034348, 0.6583566665649414, -0.020372483879327774, 0.013234969228506088, -0.013306839391589165, 0.021838217973709106, -0.15586113929748535, -0.13862214982509613, -0.2770650088787079, -0.13140997290611267, 0.16610437631607056, 0.16532070934772491, -0.01236644946038723, -0.11401441693305969, 0.2490859478712082, 0.007622422184795141, 0.10424904525279999, -0.37743785977363586, 0.011492905206978321, 0.040949512273073196, -0.09347090870141983, 0.05812741816043854, 0.28799939155578613, 0.1392393708229065, 0.3358106017112732, 0.21577028930187225, 0.335901141166687, 0.386393666267395, -0.1082795038819313, -0.006182549986988306, -0.10448821634054184, -0.13608410954475403, -0.2529005706310272, 0.46676337718963623, 0.21415077149868011, -0.042164720594882965, 0.26366081833839417, 0.059815458953380585, 0.19849255681037903, -0.07910390198230743, 0.19465035200119019, -0.12600864470005035, 0.15942683815956116, 0.12352754920721054, 0.0014319249894469976, -0.1964196413755417, -0.1850951910018921, -0.2523142099380493, -0.03651002421975136, -0.19162464141845703, 0.07732735574245453, -0.12367520481348038, -0.1794440746307373, 0.09060047566890717, 0.15492209792137146, 0.26466697454452515, -0.28786179423332214, 0.2626061737537384, -0.10829586535692215, 0.3512685000896454, 0.08050435781478882, 0.06004258245229721, -0.0556466318666935, -0.02196449227631092, 0.1413629949092865, 0.45991387963294983, -0.12378311902284622, 0.06150297820568085, -0.03944923356175423, 0.15517175197601318, -0.16665318608283997, 0.38324737548828125, -0.145260289311409, -0.08250252902507782, 0.32083165645599365, -0.25540804862976074, 0.01173175685107708, 0.08006757497787476, -0.40019312500953674, 0.028389522805809975, 0.056695643812417984, 0.09593894332647324, 0.20105154812335968, -0.14135882258415222, 0.23517917096614838, 0.2716403305530548, 0.15440736711025238, -0.16688939929008484, -0.2972891628742218, 0.15662267804145813, -0.07173652201890945, 0.31082040071487427, -0.020900223404169083, 0.09741801023483276, 0.056017082184553146, -0.15439444780349731, 0.31625422835350037, -0.17215457558631897, -0.16251446306705475, -0.10710272192955017, -0.1085602417588234, 0.11131803691387177, -0.12708142399787903, -0.04579554870724678, -0.16871777176856995, 0.03151918575167656, -0.19784194231033325, 0.19658727943897247, -0.28075557947158813, -0.07752521336078644, -0.1319010704755783, 0.04245786368846893, -0.3148794174194336, -0.28942590951919556, -0.016179831698536873, -0.32747000455856323, -0.23857815563678741, 0.530685544013977, -0.1135023832321167, 0.2678408622741699, -0.307675302028656, 0.0607951357960701, -0.2777211666107178, -0.27997511625289917, -0.20500779151916504, 0.3062935471534729, -0.42661383748054504, 0.07794629782438278, -0.28613319993019104, 0.042037904262542725, 0.08885747194290161, 0.10369206964969635, 0.3386375308036804, 0.4227595627307892, 0.11035902053117752, 0.20119759440422058, 0.13110551238059998, 0.1691947728395462, 0.07405228912830353, 0.01068850513547659, 0.49924278259277344, 0.0048928945325315, 0.15495263040065765, 0.09849449247121811, 0.1453443169593811, 0.20187298953533173, 0.31493571400642395, -0.023478904739022255, 0.3149954676628113, -0.054472729563713074, 0.0026229210197925568, 0.6437369585037231, 0.18635576963424683, -0.04209237918257713, 0.1919647604227066, 0.06832898408174515, -0.3384125232696533, 0.11024454981088638, -0.19586721062660217, -0.08229798823595047, -0.29244112968444824, -0.24816468358039856, 0.027650516480207443, -0.0030351050663739443, -0.4998772144317627, -0.29212722182273865, 0.05637155473232269, -0.3272606432437897, 0.00835644081234932, -0.13885463774204254, -0.2200658768415451, 0.7672840356826782, -0.22897590696811676, -0.34859880805015564, -0.2488134205341339, 0.3278868794441223, -0.2051018327474594, 0.11459240317344666, 0.48506811261177063, -0.12156684696674347, -0.2425573319196701, -0.2685337960720062, -0.16038905084133148, 0.1594320833683014, 0.24814288318157196, 0.23030397295951843, -0.14448224008083344, 0.09740353375673294, 0.26356106996536255, -0.08550316840410233, 0.3454561233520508, -0.45746153593063354, -0.23197154700756073, -0.024531135335564613, -0.5518497824668884, 0.1544320434331894, -0.05781746283173561, 0.13783109188079834, 0.4147220551967621, 0.4971226453781128, 0.06219979375600815, 0.1970849335193634, -0.07795091718435287, -0.23831211030483246, -0.33410072326660156, -0.01303067710250616, -0.23947769403457642, -0.11399958282709122, 0.18756677210330963, 0.018708741292357445, 0.13723716139793396, 0.09224166721105576, 0.04440738260746002, -0.08252054452896118, -0.05365315452218056, 0.2551800608634949, 0.09136476367712021, -0.11720935255289078, 0.0785810649394989, -0.25551512837409973, -0.11665988713502884, -0.03850854933261871, 0.3323025107383728, -0.2792899012565613, 0.24400585889816284, -0.002307780319824815, -0.26963678002357483, 0.11860432475805283, 0.018682800233364105, 0.05757332220673561, 0.5479560494422913, -0.006347672548145056, 0.002587052993476391, 0.24687767028808594, 0.3662625253200531, -0.07535145431756973, -0.42793428897857666, -0.15153315663337708, 0.28495609760284424, 0.18963108956813812, -0.08073361963033676, -0.19947867095470428, 0.23322604596614838, 0.3173639476299286, -0.13350430130958557, 0.5590894222259521, -0.7157694101333618, -0.1514616310596466, -0.05809913948178291, 0.11863616853952408, 0.4146724045276642, -0.30081018805503845, -0.18214687705039978, -0.5093063116073608, -0.05420349910855293, 0.04050520807504654, -0.6150121688842773, 0.4420183002948761, -0.009268060326576233, -0.14476843178272247, -0.10183019936084747, -0.020612463355064392, 0.5045968890190125, 0.572945237159729, -0.029572097584605217, 0.10018469393253326, 0.3352394700050354, -0.4507009983062744, -0.12393581867218018, 0.09449481964111328, 0.5542975068092346, -0.16662657260894775, 0.5189484357833862, -0.014008876867592335, 0.10694274306297302, 0.13525928556919098, -0.04730294644832611, -0.12906017899513245, 0.13217513263225555, 0.07076529413461685, -0.28021541237831116, -0.22747479379177094, -0.280525803565979, 0.031815752387046814, 0.02667287364602089, 0.28132572770118713, 0.4023771584033966, 0.41766610741615295, -0.11050273478031158, -0.05682191252708435, -0.1543666273355484, -0.1712692826986313, 0.24997268617153168, -0.11613838374614716, -0.43508589267730713, -0.11700840294361115, -0.20855972170829773, -0.07014938443899155, -0.3550242781639099, -0.011020164005458355, -0.08483201265335083, -0.5259228348731995, -0.21727372705936432, 0.40133047103881836, 0.17043349146842957, 0.5439362525939941, 0.04140790179371834, 0.3589697480201721, -0.027284400537610054, 0.04842834547162056, 0.024372702464461327, 0.2353881299495697, -0.3888370394706726, 0.42021772265434265, -0.4228857457637787, -0.11006809026002884, 0.15941616892814636, 0.20934909582138062, 0.06896661967039108, 0.0010670110350474715, -0.3470277786254883, 0.4052489995956421, -0.16678810119628906, -0.08883673697710037, -0.32337722182273865, -0.12960267066955566, 0.6013833284378052, 0.026729580014944077, 0.3127378821372986, -0.07067445665597916, 0.10875473916530609, -0.12040454149246216, -0.12224818021059036, 0.32779812812805176, -0.2691645324230194, -0.20201022922992706, -0.16392908990383148, 0.010207265615463257, -0.44684311747550964, 0.03895571827888489, 0.2557693421840668, 0.1791650950908661, 0.3046794831752777, 0.5270450711250305, -0.10955676436424255, 0.0972319096326828, 0.13797616958618164, 0.13901254534721375, 0.2224271446466446, 0.06520608067512512, -0.2121952921152115, 0.015199454501271248, -0.09292006492614746, 0.07561231404542923, -0.08609947562217712, -0.037770796567201614, 0.2506556510925293, 0.17672201991081238, 0.1925656944513321, -0.10691431164741516, 0.390374094247818, -0.16862820088863373, -0.2094801515340805, -0.1731238067150116, -0.0312536396086216, 0.03094901330769062, -0.10182134062051773, 0.20185160636901855, 0.23338697850704193, -0.04857484996318817, -0.3915395140647888, 0.3528501093387604, 0.10575944930315018, -0.10729164630174637, -0.1105404645204544, 0.15567255020141602, 0.2883763015270233, -0.14423710107803345, -0.08509467542171478, -0.2678101062774658, 0.20056287944316864, -0.05082214996218681, 0.3649410307407379, 0.15074913203716278, -0.04746722802519798, -0.42867788672447205, 0.3698687255382538, 0.11836066842079163, 0.06106596812605858, 0.310788631439209, -0.03473149240016937, 0.0024826505687087774, -0.00034632833558134735, -0.04976152256131172, 0.3888864517211914, 0.22132767736911774, 0.26126712560653687, 0.2090931236743927, 0.4744570255279541, 0.14176693558692932, -0.10240659862756729, 0.15064768493175507, -0.23023448884487152, -0.3846206068992615, 0.148399218916893, -0.08405877649784088, 0.11187613010406494, 0.06535306572914124, 0.12068986147642136, 0.14893193542957306, -0.16945917904376984, -0.026250876486301422, 0.04636891186237335, 0.6140069365501404, 0.47061336040496826, -0.02345600537955761, 0.23488593101501465, -0.2129790335893631, -0.3037584125995636, -0.08549203723669052, 0.06868210434913635, 0.20773543417453766, -0.171606183052063, 0.2382117062807083, -0.24560588598251343, -0.3759755790233612, -0.010618481785058975, 0.41443318128585815, -0.1419716775417328, -0.18816229701042175, -0.3213089108467102, 0.0009074101108126342, -0.03162303939461708, -0.10634568333625793, 0.18987621366977692, 0.1517593413591385, 1.0623276233673096, 0.0633840560913086, 0.09914819151163101, -0.06413772702217102, 0.05151183530688286, -0.0943850725889206, 0.22049903869628906, -0.07403438538312912, 0.20237495005130768, -0.21331696212291718, -0.37482327222824097, -0.12492283433675766, 0.14346177875995636, 0.007096594665199518, 0.1084003821015358, -0.13208000361919403, 0.1315678507089615, -0.21574373543262482, 0.10912635177373886, 0.07462966442108154, 0.2510552406311035, 0.12449469417333603, -0.01633334718644619, -0.00626697763800621, -0.04683851823210716, -0.04489121213555336, 0.21598540246486664, 0.0012290237937122583, 0.5676507353782654, -0.04603032022714615, 0.2820248305797577, 0.08422382920980453, 0.061871934682130814, 0.147047221660614, 0.006116343662142754, -0.2501153349876404, 0.12268725782632828, 0.21147044003009796, -0.46491819620132446, -0.21612069010734558, -0.02054746076464653, -0.044512759894132614, -0.1639261394739151, 0.24743971228599548, 0.3628324270248413, 0.16254602372646332, -0.2349155694246292, -0.27581945061683655, -0.1981358826160431, 0.05299520120024681, -0.3341670036315918, 0.17720665037631989, -0.10684209316968918, 0.02871815487742424, 0.06042001396417618, 0.16469909250736237, 0.2909303605556488, -0.6244516372680664, -0.010123851709067822, 0.6283126473426819, -0.0689726322889328, 0.31959134340286255, -0.1501971185207367, 0.004378779791295528, 0.22913172841072083, -0.02756524085998535, 0.22003395855426788, 0.10528266429901123, -0.18012312054634094, -0.037485621869564056, -0.05839771404862404, 0.08084195852279663, -0.09907188266515732, 0.1811184585094452, 0.06382084637880325, 0.22936511039733887, -0.15350349247455597, 0.26008397340774536, -0.18091222643852234, 0.08719746768474579, -0.1413407027721405, 0.06140083074569702, -0.16814573109149933, 0.2067474126815796, -0.5416620969772339, -0.22017738223075867, -0.11806988716125488, -0.2511599361896515, -0.2717539668083191, -0.22614341974258423, -0.12668748199939728, -0.17362409830093384, -0.1696576476097107, 0.012438520789146423, 0.29038676619529724, 0.30109119415283203, 0.1507919728755951, -0.2055591195821762, -0.21488389372825623, 0.06198408827185631, -0.11203665286302567, -0.4172692894935608, 0.02035555988550186, -0.5614673495292664, -0.1228955090045929, 0.063672736287117, 0.28790825605392456, -0.23662608861923218, -0.42114588618278503, 0.21185071766376495, 0.02560609206557274, -0.09193363040685654, 0.2861258089542389, -0.3022788465023041, -0.23262475430965424, -0.21413572132587433, 0.020548244938254356, 0.034920524805784225, 0.11821562051773071, -0.10459814220666885, -0.2701590657234192 ]
https://github.com/huggingface/datasets/issues/841
Can not reuse datasets already downloaded
It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py' Where and how to assign this ```wikipedia.py``` after I manually download it ?
Hello, I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on). I successfully downloaded and reuse the wikipedia datasets in a frontal node. When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error. On frontal node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd) /linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0 ``` On gpu node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module head_hf_s3(path, filename=name, dataset=dataset) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3 return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset)) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head return request('head', url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) ``` Any advice?Thanks!
19
Can not reuse datasets already downloaded Hello, I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on). I successfully downloaded and reuse the wikipedia datasets in a frontal node. When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error. On frontal node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd) /linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0 ``` On gpu node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module head_hf_s3(path, filename=name, dataset=dataset) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3 return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset)) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head return request('head', url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) ``` Any advice?Thanks! It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py' Where and how to assign this ```wikipedia.py``` after I manually download it ?
[ -0.15487311780452728, -0.2376587986946106, -0.09354015439748764, 0.24730898439884186, 0.3116973340511322, 0.09384515881538391, 0.20287124812602997, 0.05493081361055374, 0.4361788332462311, -0.11597290635108948, 0.0571250282227993, -0.06967602670192719, 0.46847060322761536, -0.013519706204533577, 0.037993643432855606, -0.03264487162232399, -0.13003960251808167, -0.10049042105674744, 0.04363923519849777, -0.11736388504505157, -0.06784262508153915, 0.0512392520904541, 0.09873433411121368, -0.1973593384027481, -0.5170301795005798, -0.036662232130765915, 0.06958716362714767, 0.025712911039590836, 0.1279807686805725, -0.3292093276977539, 0.49631160497665405, 0.15194688737392426, 0.3188917934894562, 0.39088207483291626, -0.00012275857443455607, 0.03316348418593407, 0.030148055404424667, -0.008672215044498444, -0.25776445865631104, -0.21752358973026276, -0.05833984911441803, -0.022179191932082176, 0.2983062267303467, -0.34261512756347656, -0.3325795531272888, 0.10167012363672256, 0.10094735026359558, -0.5310966968536377, 0.532662570476532, 0.026515260338783264, 0.09909643232822418, -0.2245463877916336, 0.1964671015739441, -0.1530512124300003, -0.14162898063659668, 0.16416874527931213, 0.0021099054720252752, 0.1725652664899826, 0.1944151222705841, -0.035138655453920364, 0.24067485332489014, 0.0909060686826706, -0.057565588504076004, 0.2920185625553131, 0.4881063401699066, -0.041038770228624344, 0.15931908786296844, -0.4436327815055847, -0.005661838687956333, 0.1268526017665863, 0.7601920366287231, -0.1796582043170929, -0.09259962290525436, -0.1281955987215042, -0.25471779704093933, -0.21471227705478668, -0.024781446903944016, 0.05985032021999359, -0.29367709159851074, 0.10416734218597412, -0.05128016322851181, -0.3261173963546753, -0.11290138959884644, 0.36570337414741516, 0.05248936638236046, 0.08058159053325653, 0.21113644540309906, 0.2992272675037384, 0.1300230771303177, 0.03847484663128853, 0.1402246206998825, -0.20050841569900513, 0.13214313983917236, -0.032606400549411774, -0.4005512297153473, 0.04038838669657707, 0.019864313304424286, -0.019808638840913773, 0.0059405723586678505, 0.43561649322509766, -0.004916576202958822, 0.15582303702831268, 0.06896863132715225, 0.03488277271389961, -0.12097543478012085, 0.09793102741241455, 0.012146341614425182, 0.06792629510164261, 0.22951079905033112, 0.09809288382530212, -0.3003799617290497, -0.19962503015995026, 0.21480344235897064, -0.08263303339481354, -0.1759481430053711, 0.04584195092320442, 0.27121272683143616, -0.1657315194606781, -0.01485081110149622, 0.02506902627646923, -0.11292872577905655, -0.010300389491021633, -0.04080187901854515, 0.3777107000350952, -0.11840038746595383, 0.2515924572944641, 0.34869834780693054, 0.007392101921141148, -0.2008041888475418, -0.15180757641792297, -0.09988907724618912, -0.00009555637370795012, -0.17959409952163696, 0.24725212156772614, 0.37162625789642334, -0.029052255675196648, 0.17826305329799652, -0.06073278188705444, 0.10729671269655228, -0.15764585137367249, 0.5114760398864746, -0.21325218677520752, 0.11655289679765701, -0.0030914084054529667, 0.18300190567970276, 0.40086865425109863, 0.23191460967063904, 0.09437625110149384, 0.02282211184501648, 0.023589108139276505, -0.2802009880542755, -0.3750860393047333, 0.008577278815209866, 0.10514543205499649, 0.12370806932449341, 0.1330556869506836, 0.039686381816864014, -0.1955219954252243, 0.3279149830341339, -0.20951053500175476, -0.0007524976972490549, -0.0024337065406143665, -0.4169038236141205, -0.2892305254936218, 0.24411936104297638, 0.5860946178436279, -0.4188286364078522, 0.010705644264817238, 0.15817196667194366, 0.1157756894826889, 0.12402921915054321, 0.6433209180831909, -0.3510299623012543, 0.13192078471183777, -0.16178712248802185, -0.17398160696029663, 0.2686317563056946, -0.5118985772132874, -0.310293585062027, 0.13031034171581268, -0.015740271657705307, 0.17431733012199402, 0.07659300416707993, 0.29131755232810974, 0.07833883911371231, 0.06816297024488449, 0.11490042507648468, 0.4836629331111908, -0.017120160162448883, -0.21838240325450897, -0.1767851561307907, -0.2592073678970337, 0.3600459396839142, -0.10000519454479218, 0.1763039231300354, 0.13007964193820953, 0.054526202380657196, 0.19955849647521973, 0.2683369219303131, -0.15962277352809906, 0.28317537903785706, 0.23138673603534698, 0.17339187860488892, 0.2606780230998993, 0.03329057618975639, 0.017174813896417618, -0.4030632972717285, 0.33025428652763367, -0.24612779915332794, 0.005893128924071789, -0.2333052158355713, -0.3232367932796478, -0.1935279816389084, -0.2746438682079315, -0.003014253219589591, -0.021754130721092224, 0.03678256273269653, 0.24662905931472778, 0.20876002311706543, 0.14490939676761627, 0.26282912492752075, 0.4253353476524353, -0.270369291305542, 0.0457906574010849, -0.3987378478050232, 0.3691849708557129, -0.22552484273910522, 0.01892434060573578, -0.20208321511745453, -0.02712627686560154, 0.30460551381111145, 0.008226855657994747, 0.20961138606071472, 0.049167439341545105, -0.14071671664714813, 0.301626592874527, 0.020952655002474785, 0.12914521992206573, 0.3272278308868408, -0.3400682210922241, 0.05462277680635452, 0.3461519777774811, 0.35504961013793945, -0.3573239743709564, -0.12123886495828629, 0.08142857253551483, 0.25311940908432007, 0.17747481167316437, -0.07384733855724335, 0.01165244821459055, 0.10819650441408157, -0.007021717261523008, 0.15954869985580444, -0.021556641906499863, 0.1896750032901764, 0.40425658226013184, -0.24269598722457886, -0.0646573081612587, -0.20982514321804047, 0.27002614736557007, 0.05608348175883293, 0.19395512342453003, 0.03760050609707832, -0.12233355641365051, 0.05955904722213745, -0.20914624631404877, 0.35000795125961304, -0.3235584795475006, -0.07739052176475525, 0.09559398889541626, 0.32791319489479065, 0.10280928760766983, -0.11009083688259125, -0.16285036504268646, -0.012446023523807526, -0.18161143362522125, 0.2727845311164856, -0.0513620600104332, 0.01331987977027893, -0.09201037883758545, 0.04336153715848923, -0.05538064241409302, 0.3955431580543518, 0.16000740230083466, -0.3600955307483673, 0.1393890231847763, -0.35363858938217163, -0.48454469442367554, 0.13537737727165222, -0.17268167436122894, -0.09694556891918182, -0.30002009868621826, -0.1184430718421936, 0.5529574155807495, 0.23412668704986572, 0.2936718165874481, -0.018639322370290756, 0.282525897026062, 0.24666482210159302, -0.22996479272842407, -0.23268073797225952, -0.3672698140144348, 0.06906474381685257, 0.026399578899145126, 0.3404126465320587, 0.19961930811405182, 0.21532587707042694, -0.13095274567604065, -0.25508034229278564, -0.49136385321617126, -0.08555708080530167, -0.0909784585237503, 0.17330528795719147, 0.1972346007823944, -0.33268946409225464, 0.34900301694869995, -0.06261138617992401, -0.21033433079719543, 0.19828686118125916, -0.0772252082824707, 0.09636858850717545, -0.2657542824745178, -0.2588176429271698, 0.11320661753416061, -0.05670269578695297, -0.34673795104026794, -0.39916685223579407, -0.3085106611251831, -0.047042760998010635, 0.1668822318315506, 0.07262714952230453, -0.06838218122720718, 0.1786627322435379, 0.0022524159867316484, 0.18584799766540527, 0.2069583535194397, -0.3619476556777954, -0.30475887656211853, 0.24335584044456482, -0.13961467146873474, -0.3152446448802948, 0.17565706372261047, 0.11725886911153793, -0.021243521943688393, 0.47117558121681213, -0.4773339033126831, -0.3291168212890625, -0.057412926107645035, 0.3427015542984009, 0.02437541075050831, -0.14686380326747894, 0.370531290769577, -0.34197670221328735, -0.02927239239215851, 0.08760907500982285, 0.009293369017541409, 0.00551682710647583, -0.30768948793411255, 0.41786718368530273, 0.10144305974245071, 0.3604368269443512, 0.06913953274488449, 0.9451530575752258, 0.12411835044622421, -0.23065423965454102, 0.3185614347457886, -0.1047414243221283, 0.2298136055469513, -0.10361725091934204, -0.1561475396156311, 0.07442352920770645, -0.33902668952941895, 0.232762411236763, -0.3644367754459381, -0.12785178422927856, -0.27091681957244873, -0.33458003401756287, 0.19866931438446045, -0.3212338387966156, -0.47581934928894043, -0.13831466436386108, -0.21972697973251343, 0.382599800825119, 0.36863958835601807, -0.012280425988137722, -0.23555010557174683, -0.1893034428358078, 0.09687002003192902, 0.18509291112422943, 0.14089304208755493, 0.14712731540203094, -0.41597780585289, 0.21126341819763184, -0.3479142487049103, 0.4394700527191162, 0.08353065699338913, 0.10600703209638596, -0.1756962388753891, 0.059475671499967575, 0.10064495354890823, -0.1219908744096756, 0.7283732891082764, -0.31279394030570984, 0.13151279091835022, 0.20716659724712372, -0.28209254145622253, -0.46842285990715027, 0.2966366708278656, 0.01246790960431099, 0.11716518551111221, 0.35585054755210876, -0.08004302531480789, -0.20301736891269684, -0.07691364735364914, -0.30348438024520874, 0.2625684142112732, -0.23903536796569824, 0.13145774602890015, 0.07527527213096619, -0.28078266978263855, -0.6343679428100586, -0.06193133443593979, -0.03077181614935398, 0.20579738914966583, -0.07823971658945084, -0.040036480873823166, -0.29250261187553406, 0.4315605163574219, 0.07500282675027847, -0.01848422922194004, 0.27362608909606934, 0.0548868291079998, 0.20372074842453003, 0.09496663510799408, 0.16742677986621857, 0.13885799050331116, 0.2600415349006653, 0.23617951571941376, -0.04873868450522423, 0.05853000655770302, 0.1607574224472046, -0.4420754015445709, 0.40439537167549133, 0.1165124773979187, 0.32059064507484436, 0.10228510200977325, -0.07985928654670715, -0.2230348140001297, 0.19195690751075745, -0.052936941385269165, 0.22602543234825134, -0.3468131124973297, -0.6021738052368164, 0.07377201318740845, 0.13689225912094116, -0.14811138808727264, 0.4638572335243225, 0.1307065784931183, -0.10340847820043564, -0.010093473829329014, 0.13301540911197662, 1.1369930505752563, -0.1097068339586258, 0.24941745400428772, 0.05491480603814125, 0.054383568465709686, 0.7935972809791565, -0.3770431876182556, 0.32420796155929565, -0.23235288262367249, 0.14885860681533813, -0.11808499693870544, -0.11008773744106293, 0.13245636224746704, -0.1406787484884262, -0.04858452081680298, 0.19244369864463806, 0.13122113049030304, 0.08812318742275238, -0.11386246979236603, 0.3052195906639099, -0.04956153407692909, -0.14739392697811127, 0.206467404961586, 0.058875132352113724, -0.03453763201832771, 0.3890480697154999, -0.3410148024559021, 0.22555245459079742, 0.10730060935020447, -0.14291027188301086, -0.18983951210975647, 0.06512714922428131, -0.3222649395465851, 0.567999005317688, -0.4035392701625824, -0.5870119333267212, 0.07783763855695724, 0.2357521653175354, 0.29540449380874634, 0.06495202332735062, -0.3694152534008026, 0.03183159604668617, -0.3367695212364197, -0.2194252610206604, -0.2801865339279175, -0.10223666578531265, 0.22820861637592316, -0.09314113110303879, -0.4943196177482605, 0.43441519141197205, 0.16263648867607117, -0.3901788890361786, -0.133500874042511, 0.006175986956804991, -0.3375340700149536, -0.06124265491962433, -0.2839340269565582, 0.20130129158496857, -0.17080765962600708, -0.11551124602556229, 0.037212830036878586, -0.053951360285282135, -0.15070341527462006, 0.014088189229369164, 0.1188192293047905, -0.16760878264904022, 0.04375605285167694, 0.6288121342658997, 0.32836899161338806, -0.12682679295539856, 0.48656871914863586, 0.3852147161960602, -0.3451158404350281, -0.08971535414457321, -0.5433732271194458, -0.2771349251270294, -0.44991612434387207, -0.1004415899515152, -0.059910017997026443, 0.255652517080307, -0.07107298076152802, -0.1618792712688446, 0.11169343441724777, 0.1838761419057846, 0.22960977256298065, -0.41396382451057434, -0.2296738475561142, 0.1353529542684555, -0.225245863199234, 0.2251090407371521, 0.3666963279247284, -0.06680138409137726, 0.11398143321275711, 0.14450345933437347, -0.22934654355049133, 0.3229381740093231, -0.19818449020385742, 0.25993695855140686, -0.041198838502168655, -0.26178306341171265, -0.02572188526391983, -0.15223801136016846, -0.10322054475545883, 0.10686500370502472, -0.2564240097999573, -0.12049902230501175, -0.019376123324036598, 0.1683194637298584, 0.08621778339147568, -0.30231717228889465, 0.04523702338337898, -0.5413497090339661, 0.18978102505207062, -0.05643962323665619, 0.32832783460617065, 0.2563539147377014, -0.005987086798995733, -0.06565510481595993, 0.14608150720596313, 0.02600889466702938, -0.42610639333724976, 0.2824682593345642, 0.17896820604801178, 0.07378809154033661, 0.28324833512306213, 0.18184258043766022, 0.01824680157005787, 0.09274373203516006, -0.3297598361968994, 0.060693833976984024, 0.3552813231945038, -0.15430444478988647, 0.3506969213485718, -0.16400516033172607, -0.10876510292291641, -0.017439141869544983, 0.18310849368572235, 0.07155843079090118, -0.1704179346561432, 0.29691728949546814, 0.003958162385970354, 0.09459342807531357, -0.21853546798229218, 0.1525517851114273, 0.27136871218681335, -0.15799584984779358, 0.05031958222389221, 0.1134207621216774, 0.48631158471107483, 0.01142037846148014, 0.2574234902858734, 0.17712965607643127, 0.3620303273200989, -0.2516765594482422, 0.21538884937763214, -0.16475602984428406, 0.018075881525874138, -0.14101508259773254, 0.14268262684345245, 0.40298691391944885, 0.06527700275182724, 0.10332788527011871, -0.14586180448532104, 0.32200533151626587, -0.12250032275915146, 0.36132413148880005, -0.1696130782365799, -0.4061287045478821, -0.08811921626329422, 0.035223834216594696, -0.24896612763404846, -0.016380149871110916, -0.2956755459308624, -0.1304602026939392, 0.17379546165466309, -0.22612804174423218, -0.040127310901880264, 0.40482476353645325, -0.2687304615974426, -0.2827674150466919, -0.33523356914520264, -0.3463440239429474, 0.17843981087207794, -0.04298250004649162, 0.21535274386405945, -0.3309481739997864, 0.2442256510257721, 0.04666643589735031, -0.40388059616088867, -0.3088327944278717, 0.364060640335083, -0.00363358948379755, 0.1083938404917717, -0.048248231410980225, 0.05218873918056488, 0.13865771889686584, -0.2849007248878479, -0.08898506313562393, 0.30528560280799866, 0.43537238240242004, 0.0898917019367218, -0.19280827045440674, 0.596247136592865, 0.19440028071403503, 0.0021676861215382814, -0.13040445744991302, 0.06472153216600418, 0.4124221205711365, -0.020403316244482994, 0.2085265964269638, 0.13001884520053864, -0.09246255457401276, -0.04214705526828766, 0.1148758977651596, 0.48662588000297546, -0.37338170409202576, 0.26503250002861023, -0.17986366152763367, -0.06898798793554306, -0.09017232805490494, 0.2335721105337143, -0.28671810030937195, 0.28851842880249023, 0.6113156080245972, -0.06391540914773941, 0.1486184149980545, -0.143812358379364, 0.018684757873415947, -0.29012393951416016, 0.41941943764686584, 0.11105453968048096, 0.3019728362560272, -0.3612964153289795, -0.14540232717990875, -0.4733639657497406, 0.20392121374607086, -0.46689242124557495, 0.05939869210124016, -0.05800269916653633, 0.4289103150367737, 0.06490349024534225, 0.12866589426994324, -0.10163015872240067, -0.04979715868830681, 0.10851065814495087, 0.10720031708478928, -0.21015359461307526, -0.2865603566169739, -0.3860234320163727, -0.02870340645313263, -0.06048194691538811, -0.47267165780067444, 0.08914375305175781, 0.06319884955883026, -0.04750513657927513, -0.07833894342184067, -0.1557794064283371, 0.19458462297916412, 0.20420755445957184, 0.48465657234191895, 0.16912099719047546, 0.6330029964447021, 0.23423977196216583, 0.09235148131847382, -0.24784232676029205, -0.39684391021728516, 0.07410720735788345, 0.1058293879032135, 0.1868031620979309, 0.04787866398692131, -0.5410248041152954, -0.20975814759731293, -0.2871949374675751, 0.34508925676345825, -0.0004359529702924192, -0.12662968039512634, -0.08141711354255676, -0.2556198537349701, -0.18391965329647064, 0.21472132205963135, 0.11970579624176025, 0.33537930250167847, 0.0070096468552947044, 0.2591787278652191, -0.27000370621681213, -0.19047695398330688, 0.7102392315864563, -0.1347925215959549, -0.1052471250295639, -0.3297412395477295, 0.07636703550815582, 0.10474862903356552, -0.0031935316510498524, -0.34887492656707764, 0.025438232347369194, 0.2682199478149414, -0.18378041684627533, -0.11110176891088486, 0.028119046241044998, -0.21834059059619904, 0.13767123222351074, -0.2694946825504303, 0.069119893014431, 0.01821250468492508, -0.22715561091899872, -0.35231688618659973, -0.2803574204444885 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Which version of pyarrow do you have ? Could you try to update pyarrow and try again ?
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
18
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? Which version of pyarrow do you have ? Could you try to update pyarrow and try again ?
[ -0.24118398129940033, -0.3198661804199219, -0.06815613061189651, 0.4316083788871765, 0.3625243902206421, 0.019154425710439682, 0.5210198163986206, 0.43771371245384216, 0.29491233825683594, 0.03277520462870598, 0.01696157641708851, -0.11870455741882324, 0.09059209376573563, 0.1802895963191986, 0.035065505653619766, 0.11300909519195557, 0.07302872836589813, 0.3988218903541565, 0.03172055631875992, 0.06997216492891312, -0.218860924243927, 0.12086986750364304, 0.005867782048881054, 0.05751517787575722, -0.12442294508218765, 0.07236415892839432, -0.00820864550769329, 0.1169140562415123, -0.23435094952583313, -0.4013211727142334, 0.4197232127189636, 0.07845359295606613, 0.3328510522842407, 0.5207663178443909, -0.00011690512474160641, 0.15647326409816742, 0.26544851064682007, -0.18562546372413635, -0.044198524206876755, -0.5195810794830322, 0.030129993334412575, -0.5329570770263672, 0.2776657044887543, -0.1672029048204422, -0.014489348977804184, -0.17868125438690186, -0.11099870502948761, -0.03580519184470177, 0.3014126121997833, 0.317545086145401, 0.18049581348896027, -0.2607490122318268, 0.05989278107881546, -0.010018439032137394, 0.20529259741306305, 0.037179116159677505, -0.015685364603996277, 0.4175478518009186, 0.11739545315504074, -0.12675991654396057, -0.04873058199882507, -0.19366687536239624, -0.2392432689666748, 0.35819971561431885, 0.3196345567703247, 0.13993990421295166, 0.07096821069717407, -0.10896763950586319, 0.2680700421333313, 0.10550516098737717, 0.606735110282898, -0.3076416850090027, -0.14854678511619568, -0.015399575233459473, -0.020296696573495865, -0.4886513948440552, 0.25581568479537964, 0.4044962227344513, -0.15216022729873657, 0.11733374744653702, -0.21221183240413666, 0.24844740331172943, -0.2663937211036682, 0.20286187529563904, -0.06734655797481537, -0.3531893491744995, -0.2522073984146118, 0.26931822299957275, 0.252339631319046, 0.0737476572394371, 0.33364009857177734, -0.09374988824129105, 0.026853231713175774, 0.18069732189178467, -0.5556493997573853, 0.2796492576599121, -0.11766155809164047, -0.09043637663125992, 0.163740336894989, 0.09621882438659668, 0.4014206826686859, 0.137062668800354, 0.042345356196165085, 0.19469797611236572, 0.3191289007663727, 0.18613196909427643, -0.04281402379274368, 0.06910468637943268, 0.027385223656892776, 0.3462182581424713, -0.2297840714454651, -0.2338578701019287, -0.3881373405456543, -0.5049574971199036, 0.23814259469509125, -0.15383805334568024, 0.2674444019794464, -0.27043312788009644, -0.24793264269828796, -0.09601984173059464, -0.0361325666308403, -0.009423975832760334, -0.05283450335264206, 0.5738206505775452, 0.21583297848701477, 0.38020429015159607, -0.05420985817909241, 0.2572084665298462, -0.21127556264400482, -0.09865429997444153, -0.08035260438919067, 0.020115669816732407, -0.05760185047984123, 0.0522918701171875, 0.377748042345047, -0.21668851375579834, 0.12146209925413132, 0.176295205950737, -0.04351671785116196, -0.29387518763542175, -0.14550502598285675, -0.41772380471229553, 0.036723408848047256, 0.2833081781864166, 0.20247432589530945, 0.09795265644788742, 0.234152689576149, -0.28120914101600647, -0.060687657445669174, 0.38054147362709045, -0.23011940717697144, -0.16856929659843445, 0.09726394712924957, 0.09630231559276581, -0.06611661612987518, 0.1656787246465683, -0.39563116431236267, 0.1563502997159958, 0.3519507050514221, -0.43849390745162964, 0.033467214554548264, -0.2134838104248047, -0.2411232888698578, -0.35248124599456787, 0.20189088582992554, 0.2790590226650238, -0.7854647636413574, 0.3429475724697113, 0.0539071299135685, -0.03174948692321777, 0.11499964445829391, 0.42371630668640137, -0.14831680059432983, 0.061178699135780334, -0.27098724246025085, 0.09215287119150162, 0.1406252533197403, 0.007542944047600031, -0.6293671727180481, 0.330756276845932, -0.04602661356329918, 0.08954508602619171, 0.3120647668838501, 0.0645526871085167, 0.05121484771370888, 0.08917776495218277, -0.1080220639705658, 0.018553810194134712, 0.02313528209924698, 0.04400618001818657, -0.2607477605342865, -0.12919308245182037, 0.3187507688999176, 0.1426239162683487, -0.06477411091327667, -0.06767331808805466, 0.23888938128948212, -0.40873977541923523, 0.20254571735858917, -0.018087238073349, 0.14161546528339386, 0.17524661123752594, 0.17913202941417694, -0.19682370126247406, 0.034973856061697006, 0.010432933457195759, -0.4493492543697357, 0.1433815062046051, 0.2848779559135437, -0.16870132088661194, -0.21594463288784027, -0.07973115146160126, -0.3841192126274109, -0.029701530933380127, -0.26816049218177795, -0.12419950217008591, -0.02465267851948738, 0.07251522690057755, 0.05952004715800285, -0.1440521627664566, -0.18573978543281555, 0.11611916124820709, -0.2237774282693863, -0.011276201345026493, -0.015843624249100685, 0.1422194242477417, 0.05879812687635422, -0.12498915940523148, 0.10647225379943848, -0.06290125846862793, 0.207167848944664, -0.04833399876952171, -0.27635252475738525, 0.2495906949043274, 0.14568686485290527, 0.04561569169163704, -0.28579607605934143, -0.1747879832983017, 0.08302052319049835, -0.24150599539279938, -0.08720159530639648, 0.023737948387861252, 0.3663715124130249, -0.18254680931568146, -0.3392798900604248, 0.2706235647201538, -0.1567007303237915, 0.30151328444480896, 0.18797552585601807, -0.3580722212791443, 0.30650264024734497, 0.016720309853553772, 0.17819422483444214, 0.07049167901277542, 0.13808485865592957, 0.07365483045578003, 0.4947435259819031, 0.29954156279563904, -0.09684177488088608, -0.15625162422657013, 0.5009915232658386, -0.047043122351169586, -0.2185630053281784, 0.31125950813293457, -0.11817798763513565, -0.19453483819961548, 0.0684308409690857, 0.08874455094337463, 0.3798220157623291, 0.12937627732753754, -0.19153082370758057, 0.0146643640473485, 0.14350317418575287, -0.25002920627593994, 0.12040635198354721, -0.22043441236019135, 0.14736217260360718, 0.3965655267238617, 0.127009779214859, -0.1272861659526825, -0.1951446682214737, 0.03774426877498627, 0.08758572489023209, 0.3257238268852234, -0.41195517778396606, -0.06754574179649353, -0.07345350831747055, -0.005206583999097347, -0.1802854835987091, 0.09860309213399887, -0.05557890608906746, 0.0971241295337677, -0.39961138367652893, 0.33282485604286194, 0.2897825241088867, -0.07906566560268402, -0.2431253045797348, 0.08863266557455063, 0.2158125936985016, -0.3370554745197296, -0.0034608333371579647, -0.048990074545145035, -0.29194000363349915, -0.026176391169428825, 0.33071035146713257, 0.10981960594654083, -0.0008764343801885843, -0.021767068654298782, 0.02802487649023533, -0.054845500737428665, -0.0925329178571701, -0.04392495006322861, -0.07322918623685837, 0.020921994000673294, -0.05116671323776245, 0.41933169960975647, 0.007607758976519108, -0.14463162422180176, 0.4017485976219177, -0.2536611557006836, -0.04892495647072792, 0.3501349687576294, 0.06369262933731079, -0.09588003903627396, -0.10870709270238876, -0.3498913645744324, -0.1398882120847702, -0.4293373227119446, 0.39106273651123047, 0.08475634455680847, 0.041932687163352966, 0.09263096749782562, 0.43310463428497314, -0.026085030287504196, 0.30135399103164673, -0.03121604584157467, -0.08480536937713623, -0.2977055013179779, 0.3645741939544678, -0.056116607040166855, -0.46765604615211487, 0.011941686272621155, 0.08283533155918121, 0.359190434217453, 0.16382575035095215, -0.4252471923828125, 0.32674747705459595, -0.15090778470039368, 0.1628204882144928, 0.0011050666216760874, -0.024227920919656754, 0.06095451861619949, -0.08722756803035736, -0.021823326125741005, 0.036430951207876205, -0.24171502888202667, -0.014180462807416916, -0.03204430639743805, 0.1475839614868164, 0.051369309425354004, 0.4584292471408844, -0.037193238735198975, 0.6513358354568481, 0.08746515214443207, -0.08823130279779434, 0.4855562746524811, -0.30824020504951477, 0.38187694549560547, -0.20967136323451996, -0.3737451732158661, -0.08557511121034622, -0.35198137164115906, -0.19244563579559326, 0.2677489221096039, -0.03358447551727295, -0.03341551125049591, -0.12577559053897858, 0.0035162041895091534, -0.40468695759773254, -0.03770291060209274, 0.18363170325756073, 0.03069751150906086, -0.014829417690634727, -0.10059580206871033, -0.013301702216267586, -0.011645324528217316, -0.2373630255460739, -0.19425834715366364, 0.2739650309085846, -0.15134283900260925, 0.06338781118392944, -0.22424858808517456, -0.061581145972013474, -0.3029370903968811, 0.32920512557029724, -0.013622855767607689, 0.3102865517139435, 0.01061554066836834, -0.017694372683763504, 0.09729792922735214, -0.12522298097610474, 0.7449785470962524, 0.18928679823875427, -0.1550702303647995, 0.12782937288284302, -0.02411329373717308, -0.4415830075740814, -0.1217615008354187, 0.19063127040863037, 0.3073357343673706, 0.07446283847093582, 0.3548661172389984, -0.07032644748687744, -0.009693973697721958, -0.144343301653862, 0.3546775281429291, 0.04325256496667862, -0.39512816071510315, -0.5194923877716064, -0.23497898876667023, -0.3830540180206299, -0.2121344804763794, -0.0898669883608818, 0.28827953338623047, -0.3244074583053589, -0.14238737523555756, 0.11836133152246475, -0.2990526258945465, 0.06015624478459358, 0.15338154137134552, 0.2973899245262146, -0.11291498690843582, 0.14489597082138062, 0.046834539622068405, 0.06980528682470322, 0.3769117295742035, 0.7987178564071655, -0.0785757303237915, -0.6220768094062805, 0.08484303951263428, -0.20502644777297974, 0.38534799218177795, 0.04781899228692055, -0.20320531725883484, 0.12898781895637512, 0.0907350406050682, 0.0620339997112751, 0.03794839233160019, 0.01443718746304512, 0.30368703603744507, 0.04965520277619362, -0.3454541862010956, -0.5439218878746033, 0.48741862177848816, -0.12590746581554413, 0.21025913953781128, 0.3020794689655304, -0.21199987828731537, -0.10998128354549408, 0.15552251040935516, -0.3346247673034668, 0.659213662147522, -0.421829491853714, 0.19383029639720917, 0.30733707547187805, 0.056334976106882095, 0.25842902064323425, -0.4451966881752014, 0.1323072612285614, -0.39196905493736267, -0.21090346574783325, -0.1043122336268425, -0.07120363414287567, 0.2393861711025238, 0.4321894645690918, -0.12124597281217575, 0.3118644654750824, -0.07414937764406204, 0.33255535364151, 0.11313383281230927, 0.24382655322551727, -0.10051655024290085, -0.08646822720766068, -0.3010212182998657, 0.010423504747450352, -0.14308121800422668, -0.03495147079229355, 0.028958221897482872, 0.0544649101793766, -0.1805669069290161, -0.20164503157138824, -0.24611200392246246, 0.22002443671226501, -0.29116785526275635, 0.1154058501124382, -0.11095450073480606, -0.46866461634635925, 0.19636397063732147, 0.2380674183368683, -0.2087024748325348, -0.085178904235363, -0.1240847185254097, 0.1550544798374176, 0.15963442623615265, -0.04017621651291847, -0.20837536454200745, -0.053695470094680786, -0.015885764732956886, 0.07612548768520355, -0.2351248413324356, 0.15455079078674316, -0.12227915972471237, -0.0956743136048317, 0.2780734896659851, 0.23765720427036285, -0.08480632305145264, -0.5452088713645935, -0.5326197743415833, -0.4284164309501648, 0.07598069310188293, -0.19573190808296204, 0.06519825756549835, -0.04207920655608177, 0.09834111481904984, -0.16163374483585358, 0.18593557178974152, -0.4688698649406433, -0.10202717781066895, 0.39181289076805115, -0.11168553680181503, 0.09395454078912735, 0.5907303690910339, 0.21934925019741058, -0.016892941668629646, -0.1411527395248413, 0.06424077600240707, 0.30810409784317017, -0.35318878293037415, 0.11706551909446716, 0.11415060609579086, 0.315949946641922, 0.1392524540424347, 0.29174554347991943, 0.15658091008663177, -0.07767197489738464, 0.07445497810840607, -0.5115904211997986, -0.32496997714042664, -0.016528848558664322, -0.0015315862838178873, 0.24795769155025482, 0.16722023487091064, 0.08186731487512589, 0.17267756164073944, 0.20329773426055908, -0.15623027086257935, 0.10046274214982986, 0.105927973985672, -0.08695729076862335, 0.2106321156024933, 0.1420167088508606, -0.13387282192707062, -0.10381855815649033, 0.09349752962589264, 0.17764084041118622, -0.05344535782933235, -0.18875117599964142, -0.07985606789588928, 0.15010015666484833, 0.09836073219776154, 0.023285673931241035, -0.20344552397727966, -0.2526886463165283, -0.1497056633234024, -0.19280503690242767, 0.0664084330201149, 0.029782170429825783, -0.09811165928840637, 0.07176046818494797, -0.2987644076347351, -0.08465491980314255, -0.5091871023178101, 0.02712203562259674, -0.5075399875640869, 0.22313153743743896, 0.2992687225341797, 0.048582080751657486, 0.12175778299570084, 0.20045532286167145, -0.17242632806301117, -0.03115958720445633, 0.15162721276283264, -0.13661886751651764, 0.3009471297264099, -0.401475191116333, 0.20350615680217743, -0.051065824925899506, 0.34033632278442383, 0.48485979437828064, -0.2076413333415985, 0.2197108119726181, 0.03758761286735535, 0.13411511480808258, -0.3825286030769348, 0.275476336479187, 0.11723185330629349, -0.06163034215569496, -0.02748509868979454, 0.1696745604276657, 0.19921205937862396, -0.2083064615726471, -0.09577673673629761, 0.006910546217113733, 0.4759886860847473, -0.007822575978934765, -0.03395189717411995, 0.41356244683265686, 0.0027151622343808413, 0.17896930873394012, 0.24033571779727936, 0.13563738763332367, 0.019620077684521675, 0.7002609372138977, -0.2602287828922272, -0.003964819945394993, -0.2352685183286667, 0.30148187279701233, -0.32786935567855835, -0.7641023993492126, 0.1616637259721756, 0.23555022478103638, -0.3533112108707428, -0.16765081882476807, 0.12589849531650543, 0.6017506122589111, -0.023374009877443314, 0.011493622325360775, -0.11459352821111679, -0.04483437538146973, 0.014055260457098484, 0.048388879746198654, -0.06621425598859787, -0.2536700963973999, -0.07082320004701614, 0.1856829673051834, -0.05955521762371063, 0.014560135081410408, 0.27498137950897217, 0.18766522407531738, -0.14948420226573944, -0.44575873017311096, 0.06577525287866592, 0.1728498339653015, 0.06654345244169235, -0.27483898401260376, 0.366612046957016, 0.26534974575042725, -0.0859917402267456, 0.18050448596477509, -0.04134427756071091, 0.6402475237846375, 0.5041919350624084, 0.09241119027137756, -0.061740048229694366, -0.121571846306324, -0.11399081349372864, -0.17941857874393463, 0.17781662940979004, 0.3488180935382843, 0.4212683141231537, 0.14854343235492706, 0.11359870433807373, -0.04018525034189224, 0.3160882294178009, 0.2067887783050537, 0.09960047155618668, -0.545975923538208, -0.11891894042491913, -0.2083127349615097, -0.25773924589157104, -0.22663302719593048, 0.024152418598532677, -0.28905943036079407, 0.020944660529494286, 0.42774689197540283, 0.07391517609357834, 0.27722710371017456, -0.026822734624147415, 0.03456735610961914, 0.07433395832777023, 0.31421950459480286, 0.23977525532245636, 0.40228983759880066, -0.42180803418159485, -0.03541917726397514, -0.7509756088256836, 0.11652836203575134, -0.3764885365962982, 0.009593266062438488, -0.03185870870947838, 0.15853773057460785, 0.1377400904893875, 0.08386052399873734, 0.15917257964611053, 0.29942426085472107, 0.11672361940145493, 0.22207850217819214, -0.05618489906191826, -0.1846194565296173, -0.33807092905044556, 0.026486122980713844, -0.17509311437606812, -0.46551427245140076, 0.22136114537715912, -0.12793350219726562, 0.009211217984557152, -0.22518673539161682, 0.22398892045021057, 0.2559676170349121, -0.005986839532852173, 0.4777286648750305, -0.11201117187738419, 0.6255964636802673, -0.0850188285112381, 0.3190024495124817, -0.3009375035762787, -0.08018969744443893, -0.19280532002449036, 0.5200990438461304, 0.2061503827571869, 0.2714003026485443, -0.1779930144548416, -0.10791654884815216, -0.2153039425611496, 0.15741048753261566, -0.006548930890858173, -0.07054787129163742, 0.06672807037830353, -0.15106114745140076, -0.0018237039912492037, -0.05849073454737663, 0.152231365442276, 0.09204848110675812, -0.2229386568069458, -0.07817388325929642, -0.17455346882343292, -0.18018552660942078, 0.18108253180980682, -0.404328316450119, -0.34110304713249207, 0.1487170308828354, 0.1261264532804489, 0.10186608135700226, 0.13969291746616364, -0.4524206817150116, 0.12178986519575119, 0.4244748055934906, -0.12801721692085266, -0.4174261689186096, 0.13403213024139404, -0.21161849796772003, 0.10057090222835541, -0.12185267359018326, 0.4765014946460724, 0.14110907912254333, -0.3705087900161743, -0.16157256066799164, -0.35832157731056213 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Thanks for the fast response. I have the latest version '2.0.0' (I tried to update) I am working with Python 3.8.5
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
21
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? Thanks for the fast response. I have the latest version '2.0.0' (I tried to update) I am working with Python 3.8.5
[ -0.24118398129940033, -0.3198661804199219, -0.06815613061189651, 0.4316083788871765, 0.3625243902206421, 0.019154425710439682, 0.5210198163986206, 0.43771371245384216, 0.29491233825683594, 0.03277520462870598, 0.01696157641708851, -0.11870455741882324, 0.09059209376573563, 0.1802895963191986, 0.035065505653619766, 0.11300909519195557, 0.07302872836589813, 0.3988218903541565, 0.03172055631875992, 0.06997216492891312, -0.218860924243927, 0.12086986750364304, 0.005867782048881054, 0.05751517787575722, -0.12442294508218765, 0.07236415892839432, -0.00820864550769329, 0.1169140562415123, -0.23435094952583313, -0.4013211727142334, 0.4197232127189636, 0.07845359295606613, 0.3328510522842407, 0.5207663178443909, -0.00011690512474160641, 0.15647326409816742, 0.26544851064682007, -0.18562546372413635, -0.044198524206876755, -0.5195810794830322, 0.030129993334412575, -0.5329570770263672, 0.2776657044887543, -0.1672029048204422, -0.014489348977804184, -0.17868125438690186, -0.11099870502948761, -0.03580519184470177, 0.3014126121997833, 0.317545086145401, 0.18049581348896027, -0.2607490122318268, 0.05989278107881546, -0.010018439032137394, 0.20529259741306305, 0.037179116159677505, -0.015685364603996277, 0.4175478518009186, 0.11739545315504074, -0.12675991654396057, -0.04873058199882507, -0.19366687536239624, -0.2392432689666748, 0.35819971561431885, 0.3196345567703247, 0.13993990421295166, 0.07096821069717407, -0.10896763950586319, 0.2680700421333313, 0.10550516098737717, 0.606735110282898, -0.3076416850090027, -0.14854678511619568, -0.015399575233459473, -0.020296696573495865, -0.4886513948440552, 0.25581568479537964, 0.4044962227344513, -0.15216022729873657, 0.11733374744653702, -0.21221183240413666, 0.24844740331172943, -0.2663937211036682, 0.20286187529563904, -0.06734655797481537, -0.3531893491744995, -0.2522073984146118, 0.26931822299957275, 0.252339631319046, 0.0737476572394371, 0.33364009857177734, -0.09374988824129105, 0.026853231713175774, 0.18069732189178467, -0.5556493997573853, 0.2796492576599121, -0.11766155809164047, -0.09043637663125992, 0.163740336894989, 0.09621882438659668, 0.4014206826686859, 0.137062668800354, 0.042345356196165085, 0.19469797611236572, 0.3191289007663727, 0.18613196909427643, -0.04281402379274368, 0.06910468637943268, 0.027385223656892776, 0.3462182581424713, -0.2297840714454651, -0.2338578701019287, -0.3881373405456543, -0.5049574971199036, 0.23814259469509125, -0.15383805334568024, 0.2674444019794464, -0.27043312788009644, -0.24793264269828796, -0.09601984173059464, -0.0361325666308403, -0.009423975832760334, -0.05283450335264206, 0.5738206505775452, 0.21583297848701477, 0.38020429015159607, -0.05420985817909241, 0.2572084665298462, -0.21127556264400482, -0.09865429997444153, -0.08035260438919067, 0.020115669816732407, -0.05760185047984123, 0.0522918701171875, 0.377748042345047, -0.21668851375579834, 0.12146209925413132, 0.176295205950737, -0.04351671785116196, -0.29387518763542175, -0.14550502598285675, -0.41772380471229553, 0.036723408848047256, 0.2833081781864166, 0.20247432589530945, 0.09795265644788742, 0.234152689576149, -0.28120914101600647, -0.060687657445669174, 0.38054147362709045, -0.23011940717697144, -0.16856929659843445, 0.09726394712924957, 0.09630231559276581, -0.06611661612987518, 0.1656787246465683, -0.39563116431236267, 0.1563502997159958, 0.3519507050514221, -0.43849390745162964, 0.033467214554548264, -0.2134838104248047, -0.2411232888698578, -0.35248124599456787, 0.20189088582992554, 0.2790590226650238, -0.7854647636413574, 0.3429475724697113, 0.0539071299135685, -0.03174948692321777, 0.11499964445829391, 0.42371630668640137, -0.14831680059432983, 0.061178699135780334, -0.27098724246025085, 0.09215287119150162, 0.1406252533197403, 0.007542944047600031, -0.6293671727180481, 0.330756276845932, -0.04602661356329918, 0.08954508602619171, 0.3120647668838501, 0.0645526871085167, 0.05121484771370888, 0.08917776495218277, -0.1080220639705658, 0.018553810194134712, 0.02313528209924698, 0.04400618001818657, -0.2607477605342865, -0.12919308245182037, 0.3187507688999176, 0.1426239162683487, -0.06477411091327667, -0.06767331808805466, 0.23888938128948212, -0.40873977541923523, 0.20254571735858917, -0.018087238073349, 0.14161546528339386, 0.17524661123752594, 0.17913202941417694, -0.19682370126247406, 0.034973856061697006, 0.010432933457195759, -0.4493492543697357, 0.1433815062046051, 0.2848779559135437, -0.16870132088661194, -0.21594463288784027, -0.07973115146160126, -0.3841192126274109, -0.029701530933380127, -0.26816049218177795, -0.12419950217008591, -0.02465267851948738, 0.07251522690057755, 0.05952004715800285, -0.1440521627664566, -0.18573978543281555, 0.11611916124820709, -0.2237774282693863, -0.011276201345026493, -0.015843624249100685, 0.1422194242477417, 0.05879812687635422, -0.12498915940523148, 0.10647225379943848, -0.06290125846862793, 0.207167848944664, -0.04833399876952171, -0.27635252475738525, 0.2495906949043274, 0.14568686485290527, 0.04561569169163704, -0.28579607605934143, -0.1747879832983017, 0.08302052319049835, -0.24150599539279938, -0.08720159530639648, 0.023737948387861252, 0.3663715124130249, -0.18254680931568146, -0.3392798900604248, 0.2706235647201538, -0.1567007303237915, 0.30151328444480896, 0.18797552585601807, -0.3580722212791443, 0.30650264024734497, 0.016720309853553772, 0.17819422483444214, 0.07049167901277542, 0.13808485865592957, 0.07365483045578003, 0.4947435259819031, 0.29954156279563904, -0.09684177488088608, -0.15625162422657013, 0.5009915232658386, -0.047043122351169586, -0.2185630053281784, 0.31125950813293457, -0.11817798763513565, -0.19453483819961548, 0.0684308409690857, 0.08874455094337463, 0.3798220157623291, 0.12937627732753754, -0.19153082370758057, 0.0146643640473485, 0.14350317418575287, -0.25002920627593994, 0.12040635198354721, -0.22043441236019135, 0.14736217260360718, 0.3965655267238617, 0.127009779214859, -0.1272861659526825, -0.1951446682214737, 0.03774426877498627, 0.08758572489023209, 0.3257238268852234, -0.41195517778396606, -0.06754574179649353, -0.07345350831747055, -0.005206583999097347, -0.1802854835987091, 0.09860309213399887, -0.05557890608906746, 0.0971241295337677, -0.39961138367652893, 0.33282485604286194, 0.2897825241088867, -0.07906566560268402, -0.2431253045797348, 0.08863266557455063, 0.2158125936985016, -0.3370554745197296, -0.0034608333371579647, -0.048990074545145035, -0.29194000363349915, -0.026176391169428825, 0.33071035146713257, 0.10981960594654083, -0.0008764343801885843, -0.021767068654298782, 0.02802487649023533, -0.054845500737428665, -0.0925329178571701, -0.04392495006322861, -0.07322918623685837, 0.020921994000673294, -0.05116671323776245, 0.41933169960975647, 0.007607758976519108, -0.14463162422180176, 0.4017485976219177, -0.2536611557006836, -0.04892495647072792, 0.3501349687576294, 0.06369262933731079, -0.09588003903627396, -0.10870709270238876, -0.3498913645744324, -0.1398882120847702, -0.4293373227119446, 0.39106273651123047, 0.08475634455680847, 0.041932687163352966, 0.09263096749782562, 0.43310463428497314, -0.026085030287504196, 0.30135399103164673, -0.03121604584157467, -0.08480536937713623, -0.2977055013179779, 0.3645741939544678, -0.056116607040166855, -0.46765604615211487, 0.011941686272621155, 0.08283533155918121, 0.359190434217453, 0.16382575035095215, -0.4252471923828125, 0.32674747705459595, -0.15090778470039368, 0.1628204882144928, 0.0011050666216760874, -0.024227920919656754, 0.06095451861619949, -0.08722756803035736, -0.021823326125741005, 0.036430951207876205, -0.24171502888202667, -0.014180462807416916, -0.03204430639743805, 0.1475839614868164, 0.051369309425354004, 0.4584292471408844, -0.037193238735198975, 0.6513358354568481, 0.08746515214443207, -0.08823130279779434, 0.4855562746524811, -0.30824020504951477, 0.38187694549560547, -0.20967136323451996, -0.3737451732158661, -0.08557511121034622, -0.35198137164115906, -0.19244563579559326, 0.2677489221096039, -0.03358447551727295, -0.03341551125049591, -0.12577559053897858, 0.0035162041895091534, -0.40468695759773254, -0.03770291060209274, 0.18363170325756073, 0.03069751150906086, -0.014829417690634727, -0.10059580206871033, -0.013301702216267586, -0.011645324528217316, -0.2373630255460739, -0.19425834715366364, 0.2739650309085846, -0.15134283900260925, 0.06338781118392944, -0.22424858808517456, -0.061581145972013474, -0.3029370903968811, 0.32920512557029724, -0.013622855767607689, 0.3102865517139435, 0.01061554066836834, -0.017694372683763504, 0.09729792922735214, -0.12522298097610474, 0.7449785470962524, 0.18928679823875427, -0.1550702303647995, 0.12782937288284302, -0.02411329373717308, -0.4415830075740814, -0.1217615008354187, 0.19063127040863037, 0.3073357343673706, 0.07446283847093582, 0.3548661172389984, -0.07032644748687744, -0.009693973697721958, -0.144343301653862, 0.3546775281429291, 0.04325256496667862, -0.39512816071510315, -0.5194923877716064, -0.23497898876667023, -0.3830540180206299, -0.2121344804763794, -0.0898669883608818, 0.28827953338623047, -0.3244074583053589, -0.14238737523555756, 0.11836133152246475, -0.2990526258945465, 0.06015624478459358, 0.15338154137134552, 0.2973899245262146, -0.11291498690843582, 0.14489597082138062, 0.046834539622068405, 0.06980528682470322, 0.3769117295742035, 0.7987178564071655, -0.0785757303237915, -0.6220768094062805, 0.08484303951263428, -0.20502644777297974, 0.38534799218177795, 0.04781899228692055, -0.20320531725883484, 0.12898781895637512, 0.0907350406050682, 0.0620339997112751, 0.03794839233160019, 0.01443718746304512, 0.30368703603744507, 0.04965520277619362, -0.3454541862010956, -0.5439218878746033, 0.48741862177848816, -0.12590746581554413, 0.21025913953781128, 0.3020794689655304, -0.21199987828731537, -0.10998128354549408, 0.15552251040935516, -0.3346247673034668, 0.659213662147522, -0.421829491853714, 0.19383029639720917, 0.30733707547187805, 0.056334976106882095, 0.25842902064323425, -0.4451966881752014, 0.1323072612285614, -0.39196905493736267, -0.21090346574783325, -0.1043122336268425, -0.07120363414287567, 0.2393861711025238, 0.4321894645690918, -0.12124597281217575, 0.3118644654750824, -0.07414937764406204, 0.33255535364151, 0.11313383281230927, 0.24382655322551727, -0.10051655024290085, -0.08646822720766068, -0.3010212182998657, 0.010423504747450352, -0.14308121800422668, -0.03495147079229355, 0.028958221897482872, 0.0544649101793766, -0.1805669069290161, -0.20164503157138824, -0.24611200392246246, 0.22002443671226501, -0.29116785526275635, 0.1154058501124382, -0.11095450073480606, -0.46866461634635925, 0.19636397063732147, 0.2380674183368683, -0.2087024748325348, -0.085178904235363, -0.1240847185254097, 0.1550544798374176, 0.15963442623615265, -0.04017621651291847, -0.20837536454200745, -0.053695470094680786, -0.015885764732956886, 0.07612548768520355, -0.2351248413324356, 0.15455079078674316, -0.12227915972471237, -0.0956743136048317, 0.2780734896659851, 0.23765720427036285, -0.08480632305145264, -0.5452088713645935, -0.5326197743415833, -0.4284164309501648, 0.07598069310188293, -0.19573190808296204, 0.06519825756549835, -0.04207920655608177, 0.09834111481904984, -0.16163374483585358, 0.18593557178974152, -0.4688698649406433, -0.10202717781066895, 0.39181289076805115, -0.11168553680181503, 0.09395454078912735, 0.5907303690910339, 0.21934925019741058, -0.016892941668629646, -0.1411527395248413, 0.06424077600240707, 0.30810409784317017, -0.35318878293037415, 0.11706551909446716, 0.11415060609579086, 0.315949946641922, 0.1392524540424347, 0.29174554347991943, 0.15658091008663177, -0.07767197489738464, 0.07445497810840607, -0.5115904211997986, -0.32496997714042664, -0.016528848558664322, -0.0015315862838178873, 0.24795769155025482, 0.16722023487091064, 0.08186731487512589, 0.17267756164073944, 0.20329773426055908, -0.15623027086257935, 0.10046274214982986, 0.105927973985672, -0.08695729076862335, 0.2106321156024933, 0.1420167088508606, -0.13387282192707062, -0.10381855815649033, 0.09349752962589264, 0.17764084041118622, -0.05344535782933235, -0.18875117599964142, -0.07985606789588928, 0.15010015666484833, 0.09836073219776154, 0.023285673931241035, -0.20344552397727966, -0.2526886463165283, -0.1497056633234024, -0.19280503690242767, 0.0664084330201149, 0.029782170429825783, -0.09811165928840637, 0.07176046818494797, -0.2987644076347351, -0.08465491980314255, -0.5091871023178101, 0.02712203562259674, -0.5075399875640869, 0.22313153743743896, 0.2992687225341797, 0.048582080751657486, 0.12175778299570084, 0.20045532286167145, -0.17242632806301117, -0.03115958720445633, 0.15162721276283264, -0.13661886751651764, 0.3009471297264099, -0.401475191116333, 0.20350615680217743, -0.051065824925899506, 0.34033632278442383, 0.48485979437828064, -0.2076413333415985, 0.2197108119726181, 0.03758761286735535, 0.13411511480808258, -0.3825286030769348, 0.275476336479187, 0.11723185330629349, -0.06163034215569496, -0.02748509868979454, 0.1696745604276657, 0.19921205937862396, -0.2083064615726471, -0.09577673673629761, 0.006910546217113733, 0.4759886860847473, -0.007822575978934765, -0.03395189717411995, 0.41356244683265686, 0.0027151622343808413, 0.17896930873394012, 0.24033571779727936, 0.13563738763332367, 0.019620077684521675, 0.7002609372138977, -0.2602287828922272, -0.003964819945394993, -0.2352685183286667, 0.30148187279701233, -0.32786935567855835, -0.7641023993492126, 0.1616637259721756, 0.23555022478103638, -0.3533112108707428, -0.16765081882476807, 0.12589849531650543, 0.6017506122589111, -0.023374009877443314, 0.011493622325360775, -0.11459352821111679, -0.04483437538146973, 0.014055260457098484, 0.048388879746198654, -0.06621425598859787, -0.2536700963973999, -0.07082320004701614, 0.1856829673051834, -0.05955521762371063, 0.014560135081410408, 0.27498137950897217, 0.18766522407531738, -0.14948420226573944, -0.44575873017311096, 0.06577525287866592, 0.1728498339653015, 0.06654345244169235, -0.27483898401260376, 0.366612046957016, 0.26534974575042725, -0.0859917402267456, 0.18050448596477509, -0.04134427756071091, 0.6402475237846375, 0.5041919350624084, 0.09241119027137756, -0.061740048229694366, -0.121571846306324, -0.11399081349372864, -0.17941857874393463, 0.17781662940979004, 0.3488180935382843, 0.4212683141231537, 0.14854343235492706, 0.11359870433807373, -0.04018525034189224, 0.3160882294178009, 0.2067887783050537, 0.09960047155618668, -0.545975923538208, -0.11891894042491913, -0.2083127349615097, -0.25773924589157104, -0.22663302719593048, 0.024152418598532677, -0.28905943036079407, 0.020944660529494286, 0.42774689197540283, 0.07391517609357834, 0.27722710371017456, -0.026822734624147415, 0.03456735610961914, 0.07433395832777023, 0.31421950459480286, 0.23977525532245636, 0.40228983759880066, -0.42180803418159485, -0.03541917726397514, -0.7509756088256836, 0.11652836203575134, -0.3764885365962982, 0.009593266062438488, -0.03185870870947838, 0.15853773057460785, 0.1377400904893875, 0.08386052399873734, 0.15917257964611053, 0.29942426085472107, 0.11672361940145493, 0.22207850217819214, -0.05618489906191826, -0.1846194565296173, -0.33807092905044556, 0.026486122980713844, -0.17509311437606812, -0.46551427245140076, 0.22136114537715912, -0.12793350219726562, 0.009211217984557152, -0.22518673539161682, 0.22398892045021057, 0.2559676170349121, -0.005986839532852173, 0.4777286648750305, -0.11201117187738419, 0.6255964636802673, -0.0850188285112381, 0.3190024495124817, -0.3009375035762787, -0.08018969744443893, -0.19280532002449036, 0.5200990438461304, 0.2061503827571869, 0.2714003026485443, -0.1779930144548416, -0.10791654884815216, -0.2153039425611496, 0.15741048753261566, -0.006548930890858173, -0.07054787129163742, 0.06672807037830353, -0.15106114745140076, -0.0018237039912492037, -0.05849073454737663, 0.152231365442276, 0.09204848110675812, -0.2229386568069458, -0.07817388325929642, -0.17455346882343292, -0.18018552660942078, 0.18108253180980682, -0.404328316450119, -0.34110304713249207, 0.1487170308828354, 0.1261264532804489, 0.10186608135700226, 0.13969291746616364, -0.4524206817150116, 0.12178986519575119, 0.4244748055934906, -0.12801721692085266, -0.4174261689186096, 0.13403213024139404, -0.21161849796772003, 0.10057090222835541, -0.12185267359018326, 0.4765014946460724, 0.14110907912254333, -0.3705087900161743, -0.16157256066799164, -0.35832157731056213 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612 The problem is in arrow when the column data contains long strings. Any ideas on how to bypass this?
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
29
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612 The problem is in arrow when the column data contains long strings. Any ideas on how to bypass this?
[ -0.24118398129940033, -0.3198661804199219, -0.06815613061189651, 0.4316083788871765, 0.3625243902206421, 0.019154425710439682, 0.5210198163986206, 0.43771371245384216, 0.29491233825683594, 0.03277520462870598, 0.01696157641708851, -0.11870455741882324, 0.09059209376573563, 0.1802895963191986, 0.035065505653619766, 0.11300909519195557, 0.07302872836589813, 0.3988218903541565, 0.03172055631875992, 0.06997216492891312, -0.218860924243927, 0.12086986750364304, 0.005867782048881054, 0.05751517787575722, -0.12442294508218765, 0.07236415892839432, -0.00820864550769329, 0.1169140562415123, -0.23435094952583313, -0.4013211727142334, 0.4197232127189636, 0.07845359295606613, 0.3328510522842407, 0.5207663178443909, -0.00011690512474160641, 0.15647326409816742, 0.26544851064682007, -0.18562546372413635, -0.044198524206876755, -0.5195810794830322, 0.030129993334412575, -0.5329570770263672, 0.2776657044887543, -0.1672029048204422, -0.014489348977804184, -0.17868125438690186, -0.11099870502948761, -0.03580519184470177, 0.3014126121997833, 0.317545086145401, 0.18049581348896027, -0.2607490122318268, 0.05989278107881546, -0.010018439032137394, 0.20529259741306305, 0.037179116159677505, -0.015685364603996277, 0.4175478518009186, 0.11739545315504074, -0.12675991654396057, -0.04873058199882507, -0.19366687536239624, -0.2392432689666748, 0.35819971561431885, 0.3196345567703247, 0.13993990421295166, 0.07096821069717407, -0.10896763950586319, 0.2680700421333313, 0.10550516098737717, 0.606735110282898, -0.3076416850090027, -0.14854678511619568, -0.015399575233459473, -0.020296696573495865, -0.4886513948440552, 0.25581568479537964, 0.4044962227344513, -0.15216022729873657, 0.11733374744653702, -0.21221183240413666, 0.24844740331172943, -0.2663937211036682, 0.20286187529563904, -0.06734655797481537, -0.3531893491744995, -0.2522073984146118, 0.26931822299957275, 0.252339631319046, 0.0737476572394371, 0.33364009857177734, -0.09374988824129105, 0.026853231713175774, 0.18069732189178467, -0.5556493997573853, 0.2796492576599121, -0.11766155809164047, -0.09043637663125992, 0.163740336894989, 0.09621882438659668, 0.4014206826686859, 0.137062668800354, 0.042345356196165085, 0.19469797611236572, 0.3191289007663727, 0.18613196909427643, -0.04281402379274368, 0.06910468637943268, 0.027385223656892776, 0.3462182581424713, -0.2297840714454651, -0.2338578701019287, -0.3881373405456543, -0.5049574971199036, 0.23814259469509125, -0.15383805334568024, 0.2674444019794464, -0.27043312788009644, -0.24793264269828796, -0.09601984173059464, -0.0361325666308403, -0.009423975832760334, -0.05283450335264206, 0.5738206505775452, 0.21583297848701477, 0.38020429015159607, -0.05420985817909241, 0.2572084665298462, -0.21127556264400482, -0.09865429997444153, -0.08035260438919067, 0.020115669816732407, -0.05760185047984123, 0.0522918701171875, 0.377748042345047, -0.21668851375579834, 0.12146209925413132, 0.176295205950737, -0.04351671785116196, -0.29387518763542175, -0.14550502598285675, -0.41772380471229553, 0.036723408848047256, 0.2833081781864166, 0.20247432589530945, 0.09795265644788742, 0.234152689576149, -0.28120914101600647, -0.060687657445669174, 0.38054147362709045, -0.23011940717697144, -0.16856929659843445, 0.09726394712924957, 0.09630231559276581, -0.06611661612987518, 0.1656787246465683, -0.39563116431236267, 0.1563502997159958, 0.3519507050514221, -0.43849390745162964, 0.033467214554548264, -0.2134838104248047, -0.2411232888698578, -0.35248124599456787, 0.20189088582992554, 0.2790590226650238, -0.7854647636413574, 0.3429475724697113, 0.0539071299135685, -0.03174948692321777, 0.11499964445829391, 0.42371630668640137, -0.14831680059432983, 0.061178699135780334, -0.27098724246025085, 0.09215287119150162, 0.1406252533197403, 0.007542944047600031, -0.6293671727180481, 0.330756276845932, -0.04602661356329918, 0.08954508602619171, 0.3120647668838501, 0.0645526871085167, 0.05121484771370888, 0.08917776495218277, -0.1080220639705658, 0.018553810194134712, 0.02313528209924698, 0.04400618001818657, -0.2607477605342865, -0.12919308245182037, 0.3187507688999176, 0.1426239162683487, -0.06477411091327667, -0.06767331808805466, 0.23888938128948212, -0.40873977541923523, 0.20254571735858917, -0.018087238073349, 0.14161546528339386, 0.17524661123752594, 0.17913202941417694, -0.19682370126247406, 0.034973856061697006, 0.010432933457195759, -0.4493492543697357, 0.1433815062046051, 0.2848779559135437, -0.16870132088661194, -0.21594463288784027, -0.07973115146160126, -0.3841192126274109, -0.029701530933380127, -0.26816049218177795, -0.12419950217008591, -0.02465267851948738, 0.07251522690057755, 0.05952004715800285, -0.1440521627664566, -0.18573978543281555, 0.11611916124820709, -0.2237774282693863, -0.011276201345026493, -0.015843624249100685, 0.1422194242477417, 0.05879812687635422, -0.12498915940523148, 0.10647225379943848, -0.06290125846862793, 0.207167848944664, -0.04833399876952171, -0.27635252475738525, 0.2495906949043274, 0.14568686485290527, 0.04561569169163704, -0.28579607605934143, -0.1747879832983017, 0.08302052319049835, -0.24150599539279938, -0.08720159530639648, 0.023737948387861252, 0.3663715124130249, -0.18254680931568146, -0.3392798900604248, 0.2706235647201538, -0.1567007303237915, 0.30151328444480896, 0.18797552585601807, -0.3580722212791443, 0.30650264024734497, 0.016720309853553772, 0.17819422483444214, 0.07049167901277542, 0.13808485865592957, 0.07365483045578003, 0.4947435259819031, 0.29954156279563904, -0.09684177488088608, -0.15625162422657013, 0.5009915232658386, -0.047043122351169586, -0.2185630053281784, 0.31125950813293457, -0.11817798763513565, -0.19453483819961548, 0.0684308409690857, 0.08874455094337463, 0.3798220157623291, 0.12937627732753754, -0.19153082370758057, 0.0146643640473485, 0.14350317418575287, -0.25002920627593994, 0.12040635198354721, -0.22043441236019135, 0.14736217260360718, 0.3965655267238617, 0.127009779214859, -0.1272861659526825, -0.1951446682214737, 0.03774426877498627, 0.08758572489023209, 0.3257238268852234, -0.41195517778396606, -0.06754574179649353, -0.07345350831747055, -0.005206583999097347, -0.1802854835987091, 0.09860309213399887, -0.05557890608906746, 0.0971241295337677, -0.39961138367652893, 0.33282485604286194, 0.2897825241088867, -0.07906566560268402, -0.2431253045797348, 0.08863266557455063, 0.2158125936985016, -0.3370554745197296, -0.0034608333371579647, -0.048990074545145035, -0.29194000363349915, -0.026176391169428825, 0.33071035146713257, 0.10981960594654083, -0.0008764343801885843, -0.021767068654298782, 0.02802487649023533, -0.054845500737428665, -0.0925329178571701, -0.04392495006322861, -0.07322918623685837, 0.020921994000673294, -0.05116671323776245, 0.41933169960975647, 0.007607758976519108, -0.14463162422180176, 0.4017485976219177, -0.2536611557006836, -0.04892495647072792, 0.3501349687576294, 0.06369262933731079, -0.09588003903627396, -0.10870709270238876, -0.3498913645744324, -0.1398882120847702, -0.4293373227119446, 0.39106273651123047, 0.08475634455680847, 0.041932687163352966, 0.09263096749782562, 0.43310463428497314, -0.026085030287504196, 0.30135399103164673, -0.03121604584157467, -0.08480536937713623, -0.2977055013179779, 0.3645741939544678, -0.056116607040166855, -0.46765604615211487, 0.011941686272621155, 0.08283533155918121, 0.359190434217453, 0.16382575035095215, -0.4252471923828125, 0.32674747705459595, -0.15090778470039368, 0.1628204882144928, 0.0011050666216760874, -0.024227920919656754, 0.06095451861619949, -0.08722756803035736, -0.021823326125741005, 0.036430951207876205, -0.24171502888202667, -0.014180462807416916, -0.03204430639743805, 0.1475839614868164, 0.051369309425354004, 0.4584292471408844, -0.037193238735198975, 0.6513358354568481, 0.08746515214443207, -0.08823130279779434, 0.4855562746524811, -0.30824020504951477, 0.38187694549560547, -0.20967136323451996, -0.3737451732158661, -0.08557511121034622, -0.35198137164115906, -0.19244563579559326, 0.2677489221096039, -0.03358447551727295, -0.03341551125049591, -0.12577559053897858, 0.0035162041895091534, -0.40468695759773254, -0.03770291060209274, 0.18363170325756073, 0.03069751150906086, -0.014829417690634727, -0.10059580206871033, -0.013301702216267586, -0.011645324528217316, -0.2373630255460739, -0.19425834715366364, 0.2739650309085846, -0.15134283900260925, 0.06338781118392944, -0.22424858808517456, -0.061581145972013474, -0.3029370903968811, 0.32920512557029724, -0.013622855767607689, 0.3102865517139435, 0.01061554066836834, -0.017694372683763504, 0.09729792922735214, -0.12522298097610474, 0.7449785470962524, 0.18928679823875427, -0.1550702303647995, 0.12782937288284302, -0.02411329373717308, -0.4415830075740814, -0.1217615008354187, 0.19063127040863037, 0.3073357343673706, 0.07446283847093582, 0.3548661172389984, -0.07032644748687744, -0.009693973697721958, -0.144343301653862, 0.3546775281429291, 0.04325256496667862, -0.39512816071510315, -0.5194923877716064, -0.23497898876667023, -0.3830540180206299, -0.2121344804763794, -0.0898669883608818, 0.28827953338623047, -0.3244074583053589, -0.14238737523555756, 0.11836133152246475, -0.2990526258945465, 0.06015624478459358, 0.15338154137134552, 0.2973899245262146, -0.11291498690843582, 0.14489597082138062, 0.046834539622068405, 0.06980528682470322, 0.3769117295742035, 0.7987178564071655, -0.0785757303237915, -0.6220768094062805, 0.08484303951263428, -0.20502644777297974, 0.38534799218177795, 0.04781899228692055, -0.20320531725883484, 0.12898781895637512, 0.0907350406050682, 0.0620339997112751, 0.03794839233160019, 0.01443718746304512, 0.30368703603744507, 0.04965520277619362, -0.3454541862010956, -0.5439218878746033, 0.48741862177848816, -0.12590746581554413, 0.21025913953781128, 0.3020794689655304, -0.21199987828731537, -0.10998128354549408, 0.15552251040935516, -0.3346247673034668, 0.659213662147522, -0.421829491853714, 0.19383029639720917, 0.30733707547187805, 0.056334976106882095, 0.25842902064323425, -0.4451966881752014, 0.1323072612285614, -0.39196905493736267, -0.21090346574783325, -0.1043122336268425, -0.07120363414287567, 0.2393861711025238, 0.4321894645690918, -0.12124597281217575, 0.3118644654750824, -0.07414937764406204, 0.33255535364151, 0.11313383281230927, 0.24382655322551727, -0.10051655024290085, -0.08646822720766068, -0.3010212182998657, 0.010423504747450352, -0.14308121800422668, -0.03495147079229355, 0.028958221897482872, 0.0544649101793766, -0.1805669069290161, -0.20164503157138824, -0.24611200392246246, 0.22002443671226501, -0.29116785526275635, 0.1154058501124382, -0.11095450073480606, -0.46866461634635925, 0.19636397063732147, 0.2380674183368683, -0.2087024748325348, -0.085178904235363, -0.1240847185254097, 0.1550544798374176, 0.15963442623615265, -0.04017621651291847, -0.20837536454200745, -0.053695470094680786, -0.015885764732956886, 0.07612548768520355, -0.2351248413324356, 0.15455079078674316, -0.12227915972471237, -0.0956743136048317, 0.2780734896659851, 0.23765720427036285, -0.08480632305145264, -0.5452088713645935, -0.5326197743415833, -0.4284164309501648, 0.07598069310188293, -0.19573190808296204, 0.06519825756549835, -0.04207920655608177, 0.09834111481904984, -0.16163374483585358, 0.18593557178974152, -0.4688698649406433, -0.10202717781066895, 0.39181289076805115, -0.11168553680181503, 0.09395454078912735, 0.5907303690910339, 0.21934925019741058, -0.016892941668629646, -0.1411527395248413, 0.06424077600240707, 0.30810409784317017, -0.35318878293037415, 0.11706551909446716, 0.11415060609579086, 0.315949946641922, 0.1392524540424347, 0.29174554347991943, 0.15658091008663177, -0.07767197489738464, 0.07445497810840607, -0.5115904211997986, -0.32496997714042664, -0.016528848558664322, -0.0015315862838178873, 0.24795769155025482, 0.16722023487091064, 0.08186731487512589, 0.17267756164073944, 0.20329773426055908, -0.15623027086257935, 0.10046274214982986, 0.105927973985672, -0.08695729076862335, 0.2106321156024933, 0.1420167088508606, -0.13387282192707062, -0.10381855815649033, 0.09349752962589264, 0.17764084041118622, -0.05344535782933235, -0.18875117599964142, -0.07985606789588928, 0.15010015666484833, 0.09836073219776154, 0.023285673931241035, -0.20344552397727966, -0.2526886463165283, -0.1497056633234024, -0.19280503690242767, 0.0664084330201149, 0.029782170429825783, -0.09811165928840637, 0.07176046818494797, -0.2987644076347351, -0.08465491980314255, -0.5091871023178101, 0.02712203562259674, -0.5075399875640869, 0.22313153743743896, 0.2992687225341797, 0.048582080751657486, 0.12175778299570084, 0.20045532286167145, -0.17242632806301117, -0.03115958720445633, 0.15162721276283264, -0.13661886751651764, 0.3009471297264099, -0.401475191116333, 0.20350615680217743, -0.051065824925899506, 0.34033632278442383, 0.48485979437828064, -0.2076413333415985, 0.2197108119726181, 0.03758761286735535, 0.13411511480808258, -0.3825286030769348, 0.275476336479187, 0.11723185330629349, -0.06163034215569496, -0.02748509868979454, 0.1696745604276657, 0.19921205937862396, -0.2083064615726471, -0.09577673673629761, 0.006910546217113733, 0.4759886860847473, -0.007822575978934765, -0.03395189717411995, 0.41356244683265686, 0.0027151622343808413, 0.17896930873394012, 0.24033571779727936, 0.13563738763332367, 0.019620077684521675, 0.7002609372138977, -0.2602287828922272, -0.003964819945394993, -0.2352685183286667, 0.30148187279701233, -0.32786935567855835, -0.7641023993492126, 0.1616637259721756, 0.23555022478103638, -0.3533112108707428, -0.16765081882476807, 0.12589849531650543, 0.6017506122589111, -0.023374009877443314, 0.011493622325360775, -0.11459352821111679, -0.04483437538146973, 0.014055260457098484, 0.048388879746198654, -0.06621425598859787, -0.2536700963973999, -0.07082320004701614, 0.1856829673051834, -0.05955521762371063, 0.014560135081410408, 0.27498137950897217, 0.18766522407531738, -0.14948420226573944, -0.44575873017311096, 0.06577525287866592, 0.1728498339653015, 0.06654345244169235, -0.27483898401260376, 0.366612046957016, 0.26534974575042725, -0.0859917402267456, 0.18050448596477509, -0.04134427756071091, 0.6402475237846375, 0.5041919350624084, 0.09241119027137756, -0.061740048229694366, -0.121571846306324, -0.11399081349372864, -0.17941857874393463, 0.17781662940979004, 0.3488180935382843, 0.4212683141231537, 0.14854343235492706, 0.11359870433807373, -0.04018525034189224, 0.3160882294178009, 0.2067887783050537, 0.09960047155618668, -0.545975923538208, -0.11891894042491913, -0.2083127349615097, -0.25773924589157104, -0.22663302719593048, 0.024152418598532677, -0.28905943036079407, 0.020944660529494286, 0.42774689197540283, 0.07391517609357834, 0.27722710371017456, -0.026822734624147415, 0.03456735610961914, 0.07433395832777023, 0.31421950459480286, 0.23977525532245636, 0.40228983759880066, -0.42180803418159485, -0.03541917726397514, -0.7509756088256836, 0.11652836203575134, -0.3764885365962982, 0.009593266062438488, -0.03185870870947838, 0.15853773057460785, 0.1377400904893875, 0.08386052399873734, 0.15917257964611053, 0.29942426085472107, 0.11672361940145493, 0.22207850217819214, -0.05618489906191826, -0.1846194565296173, -0.33807092905044556, 0.026486122980713844, -0.17509311437606812, -0.46551427245140076, 0.22136114537715912, -0.12793350219726562, 0.009211217984557152, -0.22518673539161682, 0.22398892045021057, 0.2559676170349121, -0.005986839532852173, 0.4777286648750305, -0.11201117187738419, 0.6255964636802673, -0.0850188285112381, 0.3190024495124817, -0.3009375035762787, -0.08018969744443893, -0.19280532002449036, 0.5200990438461304, 0.2061503827571869, 0.2714003026485443, -0.1779930144548416, -0.10791654884815216, -0.2153039425611496, 0.15741048753261566, -0.006548930890858173, -0.07054787129163742, 0.06672807037830353, -0.15106114745140076, -0.0018237039912492037, -0.05849073454737663, 0.152231365442276, 0.09204848110675812, -0.2229386568069458, -0.07817388325929642, -0.17455346882343292, -0.18018552660942078, 0.18108253180980682, -0.404328316450119, -0.34110304713249207, 0.1487170308828354, 0.1261264532804489, 0.10186608135700226, 0.13969291746616364, -0.4524206817150116, 0.12178986519575119, 0.4244748055934906, -0.12801721692085266, -0.4174261689186096, 0.13403213024139404, -0.21161849796772003, 0.10057090222835541, -0.12185267359018326, 0.4765014946460724, 0.14110907912254333, -0.3705087900161743, -0.16157256066799164, -0.35832157731056213 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py). In the meantime you can specify yourself the `ReadOptions` config like this: ```python import pyarrow.csv as pac # PyArrow is installed with `datasets` read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case dataset = load_dataset('csv', data_files=files, read_options=read_options) ```
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
56
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py). In the meantime you can specify yourself the `ReadOptions` config like this: ```python import pyarrow.csv as pac # PyArrow is installed with `datasets` read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case dataset = load_dataset('csv', data_files=files, read_options=read_options) ```
[ -0.24118398129940033, -0.3198661804199219, -0.06815613061189651, 0.4316083788871765, 0.3625243902206421, 0.019154425710439682, 0.5210198163986206, 0.43771371245384216, 0.29491233825683594, 0.03277520462870598, 0.01696157641708851, -0.11870455741882324, 0.09059209376573563, 0.1802895963191986, 0.035065505653619766, 0.11300909519195557, 0.07302872836589813, 0.3988218903541565, 0.03172055631875992, 0.06997216492891312, -0.218860924243927, 0.12086986750364304, 0.005867782048881054, 0.05751517787575722, -0.12442294508218765, 0.07236415892839432, -0.00820864550769329, 0.1169140562415123, -0.23435094952583313, -0.4013211727142334, 0.4197232127189636, 0.07845359295606613, 0.3328510522842407, 0.5207663178443909, -0.00011690512474160641, 0.15647326409816742, 0.26544851064682007, -0.18562546372413635, -0.044198524206876755, -0.5195810794830322, 0.030129993334412575, -0.5329570770263672, 0.2776657044887543, -0.1672029048204422, -0.014489348977804184, -0.17868125438690186, -0.11099870502948761, -0.03580519184470177, 0.3014126121997833, 0.317545086145401, 0.18049581348896027, -0.2607490122318268, 0.05989278107881546, -0.010018439032137394, 0.20529259741306305, 0.037179116159677505, -0.015685364603996277, 0.4175478518009186, 0.11739545315504074, -0.12675991654396057, -0.04873058199882507, -0.19366687536239624, -0.2392432689666748, 0.35819971561431885, 0.3196345567703247, 0.13993990421295166, 0.07096821069717407, -0.10896763950586319, 0.2680700421333313, 0.10550516098737717, 0.606735110282898, -0.3076416850090027, -0.14854678511619568, -0.015399575233459473, -0.020296696573495865, -0.4886513948440552, 0.25581568479537964, 0.4044962227344513, -0.15216022729873657, 0.11733374744653702, -0.21221183240413666, 0.24844740331172943, -0.2663937211036682, 0.20286187529563904, -0.06734655797481537, -0.3531893491744995, -0.2522073984146118, 0.26931822299957275, 0.252339631319046, 0.0737476572394371, 0.33364009857177734, -0.09374988824129105, 0.026853231713175774, 0.18069732189178467, -0.5556493997573853, 0.2796492576599121, -0.11766155809164047, -0.09043637663125992, 0.163740336894989, 0.09621882438659668, 0.4014206826686859, 0.137062668800354, 0.042345356196165085, 0.19469797611236572, 0.3191289007663727, 0.18613196909427643, -0.04281402379274368, 0.06910468637943268, 0.027385223656892776, 0.3462182581424713, -0.2297840714454651, -0.2338578701019287, -0.3881373405456543, -0.5049574971199036, 0.23814259469509125, -0.15383805334568024, 0.2674444019794464, -0.27043312788009644, -0.24793264269828796, -0.09601984173059464, -0.0361325666308403, -0.009423975832760334, -0.05283450335264206, 0.5738206505775452, 0.21583297848701477, 0.38020429015159607, -0.05420985817909241, 0.2572084665298462, -0.21127556264400482, -0.09865429997444153, -0.08035260438919067, 0.020115669816732407, -0.05760185047984123, 0.0522918701171875, 0.377748042345047, -0.21668851375579834, 0.12146209925413132, 0.176295205950737, -0.04351671785116196, -0.29387518763542175, -0.14550502598285675, -0.41772380471229553, 0.036723408848047256, 0.2833081781864166, 0.20247432589530945, 0.09795265644788742, 0.234152689576149, -0.28120914101600647, -0.060687657445669174, 0.38054147362709045, -0.23011940717697144, -0.16856929659843445, 0.09726394712924957, 0.09630231559276581, -0.06611661612987518, 0.1656787246465683, -0.39563116431236267, 0.1563502997159958, 0.3519507050514221, -0.43849390745162964, 0.033467214554548264, -0.2134838104248047, -0.2411232888698578, -0.35248124599456787, 0.20189088582992554, 0.2790590226650238, -0.7854647636413574, 0.3429475724697113, 0.0539071299135685, -0.03174948692321777, 0.11499964445829391, 0.42371630668640137, -0.14831680059432983, 0.061178699135780334, -0.27098724246025085, 0.09215287119150162, 0.1406252533197403, 0.007542944047600031, -0.6293671727180481, 0.330756276845932, -0.04602661356329918, 0.08954508602619171, 0.3120647668838501, 0.0645526871085167, 0.05121484771370888, 0.08917776495218277, -0.1080220639705658, 0.018553810194134712, 0.02313528209924698, 0.04400618001818657, -0.2607477605342865, -0.12919308245182037, 0.3187507688999176, 0.1426239162683487, -0.06477411091327667, -0.06767331808805466, 0.23888938128948212, -0.40873977541923523, 0.20254571735858917, -0.018087238073349, 0.14161546528339386, 0.17524661123752594, 0.17913202941417694, -0.19682370126247406, 0.034973856061697006, 0.010432933457195759, -0.4493492543697357, 0.1433815062046051, 0.2848779559135437, -0.16870132088661194, -0.21594463288784027, -0.07973115146160126, -0.3841192126274109, -0.029701530933380127, -0.26816049218177795, -0.12419950217008591, -0.02465267851948738, 0.07251522690057755, 0.05952004715800285, -0.1440521627664566, -0.18573978543281555, 0.11611916124820709, -0.2237774282693863, -0.011276201345026493, -0.015843624249100685, 0.1422194242477417, 0.05879812687635422, -0.12498915940523148, 0.10647225379943848, -0.06290125846862793, 0.207167848944664, -0.04833399876952171, -0.27635252475738525, 0.2495906949043274, 0.14568686485290527, 0.04561569169163704, -0.28579607605934143, -0.1747879832983017, 0.08302052319049835, -0.24150599539279938, -0.08720159530639648, 0.023737948387861252, 0.3663715124130249, -0.18254680931568146, -0.3392798900604248, 0.2706235647201538, -0.1567007303237915, 0.30151328444480896, 0.18797552585601807, -0.3580722212791443, 0.30650264024734497, 0.016720309853553772, 0.17819422483444214, 0.07049167901277542, 0.13808485865592957, 0.07365483045578003, 0.4947435259819031, 0.29954156279563904, -0.09684177488088608, -0.15625162422657013, 0.5009915232658386, -0.047043122351169586, -0.2185630053281784, 0.31125950813293457, -0.11817798763513565, -0.19453483819961548, 0.0684308409690857, 0.08874455094337463, 0.3798220157623291, 0.12937627732753754, -0.19153082370758057, 0.0146643640473485, 0.14350317418575287, -0.25002920627593994, 0.12040635198354721, -0.22043441236019135, 0.14736217260360718, 0.3965655267238617, 0.127009779214859, -0.1272861659526825, -0.1951446682214737, 0.03774426877498627, 0.08758572489023209, 0.3257238268852234, -0.41195517778396606, -0.06754574179649353, -0.07345350831747055, -0.005206583999097347, -0.1802854835987091, 0.09860309213399887, -0.05557890608906746, 0.0971241295337677, -0.39961138367652893, 0.33282485604286194, 0.2897825241088867, -0.07906566560268402, -0.2431253045797348, 0.08863266557455063, 0.2158125936985016, -0.3370554745197296, -0.0034608333371579647, -0.048990074545145035, -0.29194000363349915, -0.026176391169428825, 0.33071035146713257, 0.10981960594654083, -0.0008764343801885843, -0.021767068654298782, 0.02802487649023533, -0.054845500737428665, -0.0925329178571701, -0.04392495006322861, -0.07322918623685837, 0.020921994000673294, -0.05116671323776245, 0.41933169960975647, 0.007607758976519108, -0.14463162422180176, 0.4017485976219177, -0.2536611557006836, -0.04892495647072792, 0.3501349687576294, 0.06369262933731079, -0.09588003903627396, -0.10870709270238876, -0.3498913645744324, -0.1398882120847702, -0.4293373227119446, 0.39106273651123047, 0.08475634455680847, 0.041932687163352966, 0.09263096749782562, 0.43310463428497314, -0.026085030287504196, 0.30135399103164673, -0.03121604584157467, -0.08480536937713623, -0.2977055013179779, 0.3645741939544678, -0.056116607040166855, -0.46765604615211487, 0.011941686272621155, 0.08283533155918121, 0.359190434217453, 0.16382575035095215, -0.4252471923828125, 0.32674747705459595, -0.15090778470039368, 0.1628204882144928, 0.0011050666216760874, -0.024227920919656754, 0.06095451861619949, -0.08722756803035736, -0.021823326125741005, 0.036430951207876205, -0.24171502888202667, -0.014180462807416916, -0.03204430639743805, 0.1475839614868164, 0.051369309425354004, 0.4584292471408844, -0.037193238735198975, 0.6513358354568481, 0.08746515214443207, -0.08823130279779434, 0.4855562746524811, -0.30824020504951477, 0.38187694549560547, -0.20967136323451996, -0.3737451732158661, -0.08557511121034622, -0.35198137164115906, -0.19244563579559326, 0.2677489221096039, -0.03358447551727295, -0.03341551125049591, -0.12577559053897858, 0.0035162041895091534, -0.40468695759773254, -0.03770291060209274, 0.18363170325756073, 0.03069751150906086, -0.014829417690634727, -0.10059580206871033, -0.013301702216267586, -0.011645324528217316, -0.2373630255460739, -0.19425834715366364, 0.2739650309085846, -0.15134283900260925, 0.06338781118392944, -0.22424858808517456, -0.061581145972013474, -0.3029370903968811, 0.32920512557029724, -0.013622855767607689, 0.3102865517139435, 0.01061554066836834, -0.017694372683763504, 0.09729792922735214, -0.12522298097610474, 0.7449785470962524, 0.18928679823875427, -0.1550702303647995, 0.12782937288284302, -0.02411329373717308, -0.4415830075740814, -0.1217615008354187, 0.19063127040863037, 0.3073357343673706, 0.07446283847093582, 0.3548661172389984, -0.07032644748687744, -0.009693973697721958, -0.144343301653862, 0.3546775281429291, 0.04325256496667862, -0.39512816071510315, -0.5194923877716064, -0.23497898876667023, -0.3830540180206299, -0.2121344804763794, -0.0898669883608818, 0.28827953338623047, -0.3244074583053589, -0.14238737523555756, 0.11836133152246475, -0.2990526258945465, 0.06015624478459358, 0.15338154137134552, 0.2973899245262146, -0.11291498690843582, 0.14489597082138062, 0.046834539622068405, 0.06980528682470322, 0.3769117295742035, 0.7987178564071655, -0.0785757303237915, -0.6220768094062805, 0.08484303951263428, -0.20502644777297974, 0.38534799218177795, 0.04781899228692055, -0.20320531725883484, 0.12898781895637512, 0.0907350406050682, 0.0620339997112751, 0.03794839233160019, 0.01443718746304512, 0.30368703603744507, 0.04965520277619362, -0.3454541862010956, -0.5439218878746033, 0.48741862177848816, -0.12590746581554413, 0.21025913953781128, 0.3020794689655304, -0.21199987828731537, -0.10998128354549408, 0.15552251040935516, -0.3346247673034668, 0.659213662147522, -0.421829491853714, 0.19383029639720917, 0.30733707547187805, 0.056334976106882095, 0.25842902064323425, -0.4451966881752014, 0.1323072612285614, -0.39196905493736267, -0.21090346574783325, -0.1043122336268425, -0.07120363414287567, 0.2393861711025238, 0.4321894645690918, -0.12124597281217575, 0.3118644654750824, -0.07414937764406204, 0.33255535364151, 0.11313383281230927, 0.24382655322551727, -0.10051655024290085, -0.08646822720766068, -0.3010212182998657, 0.010423504747450352, -0.14308121800422668, -0.03495147079229355, 0.028958221897482872, 0.0544649101793766, -0.1805669069290161, -0.20164503157138824, -0.24611200392246246, 0.22002443671226501, -0.29116785526275635, 0.1154058501124382, -0.11095450073480606, -0.46866461634635925, 0.19636397063732147, 0.2380674183368683, -0.2087024748325348, -0.085178904235363, -0.1240847185254097, 0.1550544798374176, 0.15963442623615265, -0.04017621651291847, -0.20837536454200745, -0.053695470094680786, -0.015885764732956886, 0.07612548768520355, -0.2351248413324356, 0.15455079078674316, -0.12227915972471237, -0.0956743136048317, 0.2780734896659851, 0.23765720427036285, -0.08480632305145264, -0.5452088713645935, -0.5326197743415833, -0.4284164309501648, 0.07598069310188293, -0.19573190808296204, 0.06519825756549835, -0.04207920655608177, 0.09834111481904984, -0.16163374483585358, 0.18593557178974152, -0.4688698649406433, -0.10202717781066895, 0.39181289076805115, -0.11168553680181503, 0.09395454078912735, 0.5907303690910339, 0.21934925019741058, -0.016892941668629646, -0.1411527395248413, 0.06424077600240707, 0.30810409784317017, -0.35318878293037415, 0.11706551909446716, 0.11415060609579086, 0.315949946641922, 0.1392524540424347, 0.29174554347991943, 0.15658091008663177, -0.07767197489738464, 0.07445497810840607, -0.5115904211997986, -0.32496997714042664, -0.016528848558664322, -0.0015315862838178873, 0.24795769155025482, 0.16722023487091064, 0.08186731487512589, 0.17267756164073944, 0.20329773426055908, -0.15623027086257935, 0.10046274214982986, 0.105927973985672, -0.08695729076862335, 0.2106321156024933, 0.1420167088508606, -0.13387282192707062, -0.10381855815649033, 0.09349752962589264, 0.17764084041118622, -0.05344535782933235, -0.18875117599964142, -0.07985606789588928, 0.15010015666484833, 0.09836073219776154, 0.023285673931241035, -0.20344552397727966, -0.2526886463165283, -0.1497056633234024, -0.19280503690242767, 0.0664084330201149, 0.029782170429825783, -0.09811165928840637, 0.07176046818494797, -0.2987644076347351, -0.08465491980314255, -0.5091871023178101, 0.02712203562259674, -0.5075399875640869, 0.22313153743743896, 0.2992687225341797, 0.048582080751657486, 0.12175778299570084, 0.20045532286167145, -0.17242632806301117, -0.03115958720445633, 0.15162721276283264, -0.13661886751651764, 0.3009471297264099, -0.401475191116333, 0.20350615680217743, -0.051065824925899506, 0.34033632278442383, 0.48485979437828064, -0.2076413333415985, 0.2197108119726181, 0.03758761286735535, 0.13411511480808258, -0.3825286030769348, 0.275476336479187, 0.11723185330629349, -0.06163034215569496, -0.02748509868979454, 0.1696745604276657, 0.19921205937862396, -0.2083064615726471, -0.09577673673629761, 0.006910546217113733, 0.4759886860847473, -0.007822575978934765, -0.03395189717411995, 0.41356244683265686, 0.0027151622343808413, 0.17896930873394012, 0.24033571779727936, 0.13563738763332367, 0.019620077684521675, 0.7002609372138977, -0.2602287828922272, -0.003964819945394993, -0.2352685183286667, 0.30148187279701233, -0.32786935567855835, -0.7641023993492126, 0.1616637259721756, 0.23555022478103638, -0.3533112108707428, -0.16765081882476807, 0.12589849531650543, 0.6017506122589111, -0.023374009877443314, 0.011493622325360775, -0.11459352821111679, -0.04483437538146973, 0.014055260457098484, 0.048388879746198654, -0.06621425598859787, -0.2536700963973999, -0.07082320004701614, 0.1856829673051834, -0.05955521762371063, 0.014560135081410408, 0.27498137950897217, 0.18766522407531738, -0.14948420226573944, -0.44575873017311096, 0.06577525287866592, 0.1728498339653015, 0.06654345244169235, -0.27483898401260376, 0.366612046957016, 0.26534974575042725, -0.0859917402267456, 0.18050448596477509, -0.04134427756071091, 0.6402475237846375, 0.5041919350624084, 0.09241119027137756, -0.061740048229694366, -0.121571846306324, -0.11399081349372864, -0.17941857874393463, 0.17781662940979004, 0.3488180935382843, 0.4212683141231537, 0.14854343235492706, 0.11359870433807373, -0.04018525034189224, 0.3160882294178009, 0.2067887783050537, 0.09960047155618668, -0.545975923538208, -0.11891894042491913, -0.2083127349615097, -0.25773924589157104, -0.22663302719593048, 0.024152418598532677, -0.28905943036079407, 0.020944660529494286, 0.42774689197540283, 0.07391517609357834, 0.27722710371017456, -0.026822734624147415, 0.03456735610961914, 0.07433395832777023, 0.31421950459480286, 0.23977525532245636, 0.40228983759880066, -0.42180803418159485, -0.03541917726397514, -0.7509756088256836, 0.11652836203575134, -0.3764885365962982, 0.009593266062438488, -0.03185870870947838, 0.15853773057460785, 0.1377400904893875, 0.08386052399873734, 0.15917257964611053, 0.29942426085472107, 0.11672361940145493, 0.22207850217819214, -0.05618489906191826, -0.1846194565296173, -0.33807092905044556, 0.026486122980713844, -0.17509311437606812, -0.46551427245140076, 0.22136114537715912, -0.12793350219726562, 0.009211217984557152, -0.22518673539161682, 0.22398892045021057, 0.2559676170349121, -0.005986839532852173, 0.4777286648750305, -0.11201117187738419, 0.6255964636802673, -0.0850188285112381, 0.3190024495124817, -0.3009375035762787, -0.08018969744443893, -0.19280532002449036, 0.5200990438461304, 0.2061503827571869, 0.2714003026485443, -0.1779930144548416, -0.10791654884815216, -0.2153039425611496, 0.15741048753261566, -0.006548930890858173, -0.07054787129163742, 0.06672807037830353, -0.15106114745140076, -0.0018237039912492037, -0.05849073454737663, 0.152231365442276, 0.09204848110675812, -0.2229386568069458, -0.07817388325929642, -0.17455346882343292, -0.18018552660942078, 0.18108253180980682, -0.404328316450119, -0.34110304713249207, 0.1487170308828354, 0.1261264532804489, 0.10186608135700226, 0.13969291746616364, -0.4524206817150116, 0.12178986519575119, 0.4244748055934906, -0.12801721692085266, -0.4174261689186096, 0.13403213024139404, -0.21161849796772003, 0.10057090222835541, -0.12185267359018326, 0.4765014946460724, 0.14110907912254333, -0.3705087900161743, -0.16157256066799164, -0.35832157731056213 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
This did help to load the data. But the problem now is that I get: ArrowInvalid: CSV parse error: Expected 5 columns, got 187 It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
66
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? This did help to load the data. But the problem now is that I get: ArrowInvalid: CSV parse error: Expected 5 columns, got 187 It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
[ -0.24118398129940033, -0.3198661804199219, -0.06815613061189651, 0.4316083788871765, 0.3625243902206421, 0.019154425710439682, 0.5210198163986206, 0.43771371245384216, 0.29491233825683594, 0.03277520462870598, 0.01696157641708851, -0.11870455741882324, 0.09059209376573563, 0.1802895963191986, 0.035065505653619766, 0.11300909519195557, 0.07302872836589813, 0.3988218903541565, 0.03172055631875992, 0.06997216492891312, -0.218860924243927, 0.12086986750364304, 0.005867782048881054, 0.05751517787575722, -0.12442294508218765, 0.07236415892839432, -0.00820864550769329, 0.1169140562415123, -0.23435094952583313, -0.4013211727142334, 0.4197232127189636, 0.07845359295606613, 0.3328510522842407, 0.5207663178443909, -0.00011690512474160641, 0.15647326409816742, 0.26544851064682007, -0.18562546372413635, -0.044198524206876755, -0.5195810794830322, 0.030129993334412575, -0.5329570770263672, 0.2776657044887543, -0.1672029048204422, -0.014489348977804184, -0.17868125438690186, -0.11099870502948761, -0.03580519184470177, 0.3014126121997833, 0.317545086145401, 0.18049581348896027, -0.2607490122318268, 0.05989278107881546, -0.010018439032137394, 0.20529259741306305, 0.037179116159677505, -0.015685364603996277, 0.4175478518009186, 0.11739545315504074, -0.12675991654396057, -0.04873058199882507, -0.19366687536239624, -0.2392432689666748, 0.35819971561431885, 0.3196345567703247, 0.13993990421295166, 0.07096821069717407, -0.10896763950586319, 0.2680700421333313, 0.10550516098737717, 0.606735110282898, -0.3076416850090027, -0.14854678511619568, -0.015399575233459473, -0.020296696573495865, -0.4886513948440552, 0.25581568479537964, 0.4044962227344513, -0.15216022729873657, 0.11733374744653702, -0.21221183240413666, 0.24844740331172943, -0.2663937211036682, 0.20286187529563904, -0.06734655797481537, -0.3531893491744995, -0.2522073984146118, 0.26931822299957275, 0.252339631319046, 0.0737476572394371, 0.33364009857177734, -0.09374988824129105, 0.026853231713175774, 0.18069732189178467, -0.5556493997573853, 0.2796492576599121, -0.11766155809164047, -0.09043637663125992, 0.163740336894989, 0.09621882438659668, 0.4014206826686859, 0.137062668800354, 0.042345356196165085, 0.19469797611236572, 0.3191289007663727, 0.18613196909427643, -0.04281402379274368, 0.06910468637943268, 0.027385223656892776, 0.3462182581424713, -0.2297840714454651, -0.2338578701019287, -0.3881373405456543, -0.5049574971199036, 0.23814259469509125, -0.15383805334568024, 0.2674444019794464, -0.27043312788009644, -0.24793264269828796, -0.09601984173059464, -0.0361325666308403, -0.009423975832760334, -0.05283450335264206, 0.5738206505775452, 0.21583297848701477, 0.38020429015159607, -0.05420985817909241, 0.2572084665298462, -0.21127556264400482, -0.09865429997444153, -0.08035260438919067, 0.020115669816732407, -0.05760185047984123, 0.0522918701171875, 0.377748042345047, -0.21668851375579834, 0.12146209925413132, 0.176295205950737, -0.04351671785116196, -0.29387518763542175, -0.14550502598285675, -0.41772380471229553, 0.036723408848047256, 0.2833081781864166, 0.20247432589530945, 0.09795265644788742, 0.234152689576149, -0.28120914101600647, -0.060687657445669174, 0.38054147362709045, -0.23011940717697144, -0.16856929659843445, 0.09726394712924957, 0.09630231559276581, -0.06611661612987518, 0.1656787246465683, -0.39563116431236267, 0.1563502997159958, 0.3519507050514221, -0.43849390745162964, 0.033467214554548264, -0.2134838104248047, -0.2411232888698578, -0.35248124599456787, 0.20189088582992554, 0.2790590226650238, -0.7854647636413574, 0.3429475724697113, 0.0539071299135685, -0.03174948692321777, 0.11499964445829391, 0.42371630668640137, -0.14831680059432983, 0.061178699135780334, -0.27098724246025085, 0.09215287119150162, 0.1406252533197403, 0.007542944047600031, -0.6293671727180481, 0.330756276845932, -0.04602661356329918, 0.08954508602619171, 0.3120647668838501, 0.0645526871085167, 0.05121484771370888, 0.08917776495218277, -0.1080220639705658, 0.018553810194134712, 0.02313528209924698, 0.04400618001818657, -0.2607477605342865, -0.12919308245182037, 0.3187507688999176, 0.1426239162683487, -0.06477411091327667, -0.06767331808805466, 0.23888938128948212, -0.40873977541923523, 0.20254571735858917, -0.018087238073349, 0.14161546528339386, 0.17524661123752594, 0.17913202941417694, -0.19682370126247406, 0.034973856061697006, 0.010432933457195759, -0.4493492543697357, 0.1433815062046051, 0.2848779559135437, -0.16870132088661194, -0.21594463288784027, -0.07973115146160126, -0.3841192126274109, -0.029701530933380127, -0.26816049218177795, -0.12419950217008591, -0.02465267851948738, 0.07251522690057755, 0.05952004715800285, -0.1440521627664566, -0.18573978543281555, 0.11611916124820709, -0.2237774282693863, -0.011276201345026493, -0.015843624249100685, 0.1422194242477417, 0.05879812687635422, -0.12498915940523148, 0.10647225379943848, -0.06290125846862793, 0.207167848944664, -0.04833399876952171, -0.27635252475738525, 0.2495906949043274, 0.14568686485290527, 0.04561569169163704, -0.28579607605934143, -0.1747879832983017, 0.08302052319049835, -0.24150599539279938, -0.08720159530639648, 0.023737948387861252, 0.3663715124130249, -0.18254680931568146, -0.3392798900604248, 0.2706235647201538, -0.1567007303237915, 0.30151328444480896, 0.18797552585601807, -0.3580722212791443, 0.30650264024734497, 0.016720309853553772, 0.17819422483444214, 0.07049167901277542, 0.13808485865592957, 0.07365483045578003, 0.4947435259819031, 0.29954156279563904, -0.09684177488088608, -0.15625162422657013, 0.5009915232658386, -0.047043122351169586, -0.2185630053281784, 0.31125950813293457, -0.11817798763513565, -0.19453483819961548, 0.0684308409690857, 0.08874455094337463, 0.3798220157623291, 0.12937627732753754, -0.19153082370758057, 0.0146643640473485, 0.14350317418575287, -0.25002920627593994, 0.12040635198354721, -0.22043441236019135, 0.14736217260360718, 0.3965655267238617, 0.127009779214859, -0.1272861659526825, -0.1951446682214737, 0.03774426877498627, 0.08758572489023209, 0.3257238268852234, -0.41195517778396606, -0.06754574179649353, -0.07345350831747055, -0.005206583999097347, -0.1802854835987091, 0.09860309213399887, -0.05557890608906746, 0.0971241295337677, -0.39961138367652893, 0.33282485604286194, 0.2897825241088867, -0.07906566560268402, -0.2431253045797348, 0.08863266557455063, 0.2158125936985016, -0.3370554745197296, -0.0034608333371579647, -0.048990074545145035, -0.29194000363349915, -0.026176391169428825, 0.33071035146713257, 0.10981960594654083, -0.0008764343801885843, -0.021767068654298782, 0.02802487649023533, -0.054845500737428665, -0.0925329178571701, -0.04392495006322861, -0.07322918623685837, 0.020921994000673294, -0.05116671323776245, 0.41933169960975647, 0.007607758976519108, -0.14463162422180176, 0.4017485976219177, -0.2536611557006836, -0.04892495647072792, 0.3501349687576294, 0.06369262933731079, -0.09588003903627396, -0.10870709270238876, -0.3498913645744324, -0.1398882120847702, -0.4293373227119446, 0.39106273651123047, 0.08475634455680847, 0.041932687163352966, 0.09263096749782562, 0.43310463428497314, -0.026085030287504196, 0.30135399103164673, -0.03121604584157467, -0.08480536937713623, -0.2977055013179779, 0.3645741939544678, -0.056116607040166855, -0.46765604615211487, 0.011941686272621155, 0.08283533155918121, 0.359190434217453, 0.16382575035095215, -0.4252471923828125, 0.32674747705459595, -0.15090778470039368, 0.1628204882144928, 0.0011050666216760874, -0.024227920919656754, 0.06095451861619949, -0.08722756803035736, -0.021823326125741005, 0.036430951207876205, -0.24171502888202667, -0.014180462807416916, -0.03204430639743805, 0.1475839614868164, 0.051369309425354004, 0.4584292471408844, -0.037193238735198975, 0.6513358354568481, 0.08746515214443207, -0.08823130279779434, 0.4855562746524811, -0.30824020504951477, 0.38187694549560547, -0.20967136323451996, -0.3737451732158661, -0.08557511121034622, -0.35198137164115906, -0.19244563579559326, 0.2677489221096039, -0.03358447551727295, -0.03341551125049591, -0.12577559053897858, 0.0035162041895091534, -0.40468695759773254, -0.03770291060209274, 0.18363170325756073, 0.03069751150906086, -0.014829417690634727, -0.10059580206871033, -0.013301702216267586, -0.011645324528217316, -0.2373630255460739, -0.19425834715366364, 0.2739650309085846, -0.15134283900260925, 0.06338781118392944, -0.22424858808517456, -0.061581145972013474, -0.3029370903968811, 0.32920512557029724, -0.013622855767607689, 0.3102865517139435, 0.01061554066836834, -0.017694372683763504, 0.09729792922735214, -0.12522298097610474, 0.7449785470962524, 0.18928679823875427, -0.1550702303647995, 0.12782937288284302, -0.02411329373717308, -0.4415830075740814, -0.1217615008354187, 0.19063127040863037, 0.3073357343673706, 0.07446283847093582, 0.3548661172389984, -0.07032644748687744, -0.009693973697721958, -0.144343301653862, 0.3546775281429291, 0.04325256496667862, -0.39512816071510315, -0.5194923877716064, -0.23497898876667023, -0.3830540180206299, -0.2121344804763794, -0.0898669883608818, 0.28827953338623047, -0.3244074583053589, -0.14238737523555756, 0.11836133152246475, -0.2990526258945465, 0.06015624478459358, 0.15338154137134552, 0.2973899245262146, -0.11291498690843582, 0.14489597082138062, 0.046834539622068405, 0.06980528682470322, 0.3769117295742035, 0.7987178564071655, -0.0785757303237915, -0.6220768094062805, 0.08484303951263428, -0.20502644777297974, 0.38534799218177795, 0.04781899228692055, -0.20320531725883484, 0.12898781895637512, 0.0907350406050682, 0.0620339997112751, 0.03794839233160019, 0.01443718746304512, 0.30368703603744507, 0.04965520277619362, -0.3454541862010956, -0.5439218878746033, 0.48741862177848816, -0.12590746581554413, 0.21025913953781128, 0.3020794689655304, -0.21199987828731537, -0.10998128354549408, 0.15552251040935516, -0.3346247673034668, 0.659213662147522, -0.421829491853714, 0.19383029639720917, 0.30733707547187805, 0.056334976106882095, 0.25842902064323425, -0.4451966881752014, 0.1323072612285614, -0.39196905493736267, -0.21090346574783325, -0.1043122336268425, -0.07120363414287567, 0.2393861711025238, 0.4321894645690918, -0.12124597281217575, 0.3118644654750824, -0.07414937764406204, 0.33255535364151, 0.11313383281230927, 0.24382655322551727, -0.10051655024290085, -0.08646822720766068, -0.3010212182998657, 0.010423504747450352, -0.14308121800422668, -0.03495147079229355, 0.028958221897482872, 0.0544649101793766, -0.1805669069290161, -0.20164503157138824, -0.24611200392246246, 0.22002443671226501, -0.29116785526275635, 0.1154058501124382, -0.11095450073480606, -0.46866461634635925, 0.19636397063732147, 0.2380674183368683, -0.2087024748325348, -0.085178904235363, -0.1240847185254097, 0.1550544798374176, 0.15963442623615265, -0.04017621651291847, -0.20837536454200745, -0.053695470094680786, -0.015885764732956886, 0.07612548768520355, -0.2351248413324356, 0.15455079078674316, -0.12227915972471237, -0.0956743136048317, 0.2780734896659851, 0.23765720427036285, -0.08480632305145264, -0.5452088713645935, -0.5326197743415833, -0.4284164309501648, 0.07598069310188293, -0.19573190808296204, 0.06519825756549835, -0.04207920655608177, 0.09834111481904984, -0.16163374483585358, 0.18593557178974152, -0.4688698649406433, -0.10202717781066895, 0.39181289076805115, -0.11168553680181503, 0.09395454078912735, 0.5907303690910339, 0.21934925019741058, -0.016892941668629646, -0.1411527395248413, 0.06424077600240707, 0.30810409784317017, -0.35318878293037415, 0.11706551909446716, 0.11415060609579086, 0.315949946641922, 0.1392524540424347, 0.29174554347991943, 0.15658091008663177, -0.07767197489738464, 0.07445497810840607, -0.5115904211997986, -0.32496997714042664, -0.016528848558664322, -0.0015315862838178873, 0.24795769155025482, 0.16722023487091064, 0.08186731487512589, 0.17267756164073944, 0.20329773426055908, -0.15623027086257935, 0.10046274214982986, 0.105927973985672, -0.08695729076862335, 0.2106321156024933, 0.1420167088508606, -0.13387282192707062, -0.10381855815649033, 0.09349752962589264, 0.17764084041118622, -0.05344535782933235, -0.18875117599964142, -0.07985606789588928, 0.15010015666484833, 0.09836073219776154, 0.023285673931241035, -0.20344552397727966, -0.2526886463165283, -0.1497056633234024, -0.19280503690242767, 0.0664084330201149, 0.029782170429825783, -0.09811165928840637, 0.07176046818494797, -0.2987644076347351, -0.08465491980314255, -0.5091871023178101, 0.02712203562259674, -0.5075399875640869, 0.22313153743743896, 0.2992687225341797, 0.048582080751657486, 0.12175778299570084, 0.20045532286167145, -0.17242632806301117, -0.03115958720445633, 0.15162721276283264, -0.13661886751651764, 0.3009471297264099, -0.401475191116333, 0.20350615680217743, -0.051065824925899506, 0.34033632278442383, 0.48485979437828064, -0.2076413333415985, 0.2197108119726181, 0.03758761286735535, 0.13411511480808258, -0.3825286030769348, 0.275476336479187, 0.11723185330629349, -0.06163034215569496, -0.02748509868979454, 0.1696745604276657, 0.19921205937862396, -0.2083064615726471, -0.09577673673629761, 0.006910546217113733, 0.4759886860847473, -0.007822575978934765, -0.03395189717411995, 0.41356244683265686, 0.0027151622343808413, 0.17896930873394012, 0.24033571779727936, 0.13563738763332367, 0.019620077684521675, 0.7002609372138977, -0.2602287828922272, -0.003964819945394993, -0.2352685183286667, 0.30148187279701233, -0.32786935567855835, -0.7641023993492126, 0.1616637259721756, 0.23555022478103638, -0.3533112108707428, -0.16765081882476807, 0.12589849531650543, 0.6017506122589111, -0.023374009877443314, 0.011493622325360775, -0.11459352821111679, -0.04483437538146973, 0.014055260457098484, 0.048388879746198654, -0.06621425598859787, -0.2536700963973999, -0.07082320004701614, 0.1856829673051834, -0.05955521762371063, 0.014560135081410408, 0.27498137950897217, 0.18766522407531738, -0.14948420226573944, -0.44575873017311096, 0.06577525287866592, 0.1728498339653015, 0.06654345244169235, -0.27483898401260376, 0.366612046957016, 0.26534974575042725, -0.0859917402267456, 0.18050448596477509, -0.04134427756071091, 0.6402475237846375, 0.5041919350624084, 0.09241119027137756, -0.061740048229694366, -0.121571846306324, -0.11399081349372864, -0.17941857874393463, 0.17781662940979004, 0.3488180935382843, 0.4212683141231537, 0.14854343235492706, 0.11359870433807373, -0.04018525034189224, 0.3160882294178009, 0.2067887783050537, 0.09960047155618668, -0.545975923538208, -0.11891894042491913, -0.2083127349615097, -0.25773924589157104, -0.22663302719593048, 0.024152418598532677, -0.28905943036079407, 0.020944660529494286, 0.42774689197540283, 0.07391517609357834, 0.27722710371017456, -0.026822734624147415, 0.03456735610961914, 0.07433395832777023, 0.31421950459480286, 0.23977525532245636, 0.40228983759880066, -0.42180803418159485, -0.03541917726397514, -0.7509756088256836, 0.11652836203575134, -0.3764885365962982, 0.009593266062438488, -0.03185870870947838, 0.15853773057460785, 0.1377400904893875, 0.08386052399873734, 0.15917257964611053, 0.29942426085472107, 0.11672361940145493, 0.22207850217819214, -0.05618489906191826, -0.1846194565296173, -0.33807092905044556, 0.026486122980713844, -0.17509311437606812, -0.46551427245140076, 0.22136114537715912, -0.12793350219726562, 0.009211217984557152, -0.22518673539161682, 0.22398892045021057, 0.2559676170349121, -0.005986839532852173, 0.4777286648750305, -0.11201117187738419, 0.6255964636802673, -0.0850188285112381, 0.3190024495124817, -0.3009375035762787, -0.08018969744443893, -0.19280532002449036, 0.5200990438461304, 0.2061503827571869, 0.2714003026485443, -0.1779930144548416, -0.10791654884815216, -0.2153039425611496, 0.15741048753261566, -0.006548930890858173, -0.07054787129163742, 0.06672807037830353, -0.15106114745140076, -0.0018237039912492037, -0.05849073454737663, 0.152231365442276, 0.09204848110675812, -0.2229386568069458, -0.07817388325929642, -0.17455346882343292, -0.18018552660942078, 0.18108253180980682, -0.404328316450119, -0.34110304713249207, 0.1487170308828354, 0.1261264532804489, 0.10186608135700226, 0.13969291746616364, -0.4524206817150116, 0.12178986519575119, 0.4244748055934906, -0.12801721692085266, -0.4174261689186096, 0.13403213024139404, -0.21161849796772003, 0.10057090222835541, -0.12185267359018326, 0.4765014946460724, 0.14110907912254333, -0.3705087900161743, -0.16157256066799164, -0.35832157731056213 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error.
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
32
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error.
[ -0.24118398129940033, -0.3198661804199219, -0.06815613061189651, 0.4316083788871765, 0.3625243902206421, 0.019154425710439682, 0.5210198163986206, 0.43771371245384216, 0.29491233825683594, 0.03277520462870598, 0.01696157641708851, -0.11870455741882324, 0.09059209376573563, 0.1802895963191986, 0.035065505653619766, 0.11300909519195557, 0.07302872836589813, 0.3988218903541565, 0.03172055631875992, 0.06997216492891312, -0.218860924243927, 0.12086986750364304, 0.005867782048881054, 0.05751517787575722, -0.12442294508218765, 0.07236415892839432, -0.00820864550769329, 0.1169140562415123, -0.23435094952583313, -0.4013211727142334, 0.4197232127189636, 0.07845359295606613, 0.3328510522842407, 0.5207663178443909, -0.00011690512474160641, 0.15647326409816742, 0.26544851064682007, -0.18562546372413635, -0.044198524206876755, -0.5195810794830322, 0.030129993334412575, -0.5329570770263672, 0.2776657044887543, -0.1672029048204422, -0.014489348977804184, -0.17868125438690186, -0.11099870502948761, -0.03580519184470177, 0.3014126121997833, 0.317545086145401, 0.18049581348896027, -0.2607490122318268, 0.05989278107881546, -0.010018439032137394, 0.20529259741306305, 0.037179116159677505, -0.015685364603996277, 0.4175478518009186, 0.11739545315504074, -0.12675991654396057, -0.04873058199882507, -0.19366687536239624, -0.2392432689666748, 0.35819971561431885, 0.3196345567703247, 0.13993990421295166, 0.07096821069717407, -0.10896763950586319, 0.2680700421333313, 0.10550516098737717, 0.606735110282898, -0.3076416850090027, -0.14854678511619568, -0.015399575233459473, -0.020296696573495865, -0.4886513948440552, 0.25581568479537964, 0.4044962227344513, -0.15216022729873657, 0.11733374744653702, -0.21221183240413666, 0.24844740331172943, -0.2663937211036682, 0.20286187529563904, -0.06734655797481537, -0.3531893491744995, -0.2522073984146118, 0.26931822299957275, 0.252339631319046, 0.0737476572394371, 0.33364009857177734, -0.09374988824129105, 0.026853231713175774, 0.18069732189178467, -0.5556493997573853, 0.2796492576599121, -0.11766155809164047, -0.09043637663125992, 0.163740336894989, 0.09621882438659668, 0.4014206826686859, 0.137062668800354, 0.042345356196165085, 0.19469797611236572, 0.3191289007663727, 0.18613196909427643, -0.04281402379274368, 0.06910468637943268, 0.027385223656892776, 0.3462182581424713, -0.2297840714454651, -0.2338578701019287, -0.3881373405456543, -0.5049574971199036, 0.23814259469509125, -0.15383805334568024, 0.2674444019794464, -0.27043312788009644, -0.24793264269828796, -0.09601984173059464, -0.0361325666308403, -0.009423975832760334, -0.05283450335264206, 0.5738206505775452, 0.21583297848701477, 0.38020429015159607, -0.05420985817909241, 0.2572084665298462, -0.21127556264400482, -0.09865429997444153, -0.08035260438919067, 0.020115669816732407, -0.05760185047984123, 0.0522918701171875, 0.377748042345047, -0.21668851375579834, 0.12146209925413132, 0.176295205950737, -0.04351671785116196, -0.29387518763542175, -0.14550502598285675, -0.41772380471229553, 0.036723408848047256, 0.2833081781864166, 0.20247432589530945, 0.09795265644788742, 0.234152689576149, -0.28120914101600647, -0.060687657445669174, 0.38054147362709045, -0.23011940717697144, -0.16856929659843445, 0.09726394712924957, 0.09630231559276581, -0.06611661612987518, 0.1656787246465683, -0.39563116431236267, 0.1563502997159958, 0.3519507050514221, -0.43849390745162964, 0.033467214554548264, -0.2134838104248047, -0.2411232888698578, -0.35248124599456787, 0.20189088582992554, 0.2790590226650238, -0.7854647636413574, 0.3429475724697113, 0.0539071299135685, -0.03174948692321777, 0.11499964445829391, 0.42371630668640137, -0.14831680059432983, 0.061178699135780334, -0.27098724246025085, 0.09215287119150162, 0.1406252533197403, 0.007542944047600031, -0.6293671727180481, 0.330756276845932, -0.04602661356329918, 0.08954508602619171, 0.3120647668838501, 0.0645526871085167, 0.05121484771370888, 0.08917776495218277, -0.1080220639705658, 0.018553810194134712, 0.02313528209924698, 0.04400618001818657, -0.2607477605342865, -0.12919308245182037, 0.3187507688999176, 0.1426239162683487, -0.06477411091327667, -0.06767331808805466, 0.23888938128948212, -0.40873977541923523, 0.20254571735858917, -0.018087238073349, 0.14161546528339386, 0.17524661123752594, 0.17913202941417694, -0.19682370126247406, 0.034973856061697006, 0.010432933457195759, -0.4493492543697357, 0.1433815062046051, 0.2848779559135437, -0.16870132088661194, -0.21594463288784027, -0.07973115146160126, -0.3841192126274109, -0.029701530933380127, -0.26816049218177795, -0.12419950217008591, -0.02465267851948738, 0.07251522690057755, 0.05952004715800285, -0.1440521627664566, -0.18573978543281555, 0.11611916124820709, -0.2237774282693863, -0.011276201345026493, -0.015843624249100685, 0.1422194242477417, 0.05879812687635422, -0.12498915940523148, 0.10647225379943848, -0.06290125846862793, 0.207167848944664, -0.04833399876952171, -0.27635252475738525, 0.2495906949043274, 0.14568686485290527, 0.04561569169163704, -0.28579607605934143, -0.1747879832983017, 0.08302052319049835, -0.24150599539279938, -0.08720159530639648, 0.023737948387861252, 0.3663715124130249, -0.18254680931568146, -0.3392798900604248, 0.2706235647201538, -0.1567007303237915, 0.30151328444480896, 0.18797552585601807, -0.3580722212791443, 0.30650264024734497, 0.016720309853553772, 0.17819422483444214, 0.07049167901277542, 0.13808485865592957, 0.07365483045578003, 0.4947435259819031, 0.29954156279563904, -0.09684177488088608, -0.15625162422657013, 0.5009915232658386, -0.047043122351169586, -0.2185630053281784, 0.31125950813293457, -0.11817798763513565, -0.19453483819961548, 0.0684308409690857, 0.08874455094337463, 0.3798220157623291, 0.12937627732753754, -0.19153082370758057, 0.0146643640473485, 0.14350317418575287, -0.25002920627593994, 0.12040635198354721, -0.22043441236019135, 0.14736217260360718, 0.3965655267238617, 0.127009779214859, -0.1272861659526825, -0.1951446682214737, 0.03774426877498627, 0.08758572489023209, 0.3257238268852234, -0.41195517778396606, -0.06754574179649353, -0.07345350831747055, -0.005206583999097347, -0.1802854835987091, 0.09860309213399887, -0.05557890608906746, 0.0971241295337677, -0.39961138367652893, 0.33282485604286194, 0.2897825241088867, -0.07906566560268402, -0.2431253045797348, 0.08863266557455063, 0.2158125936985016, -0.3370554745197296, -0.0034608333371579647, -0.048990074545145035, -0.29194000363349915, -0.026176391169428825, 0.33071035146713257, 0.10981960594654083, -0.0008764343801885843, -0.021767068654298782, 0.02802487649023533, -0.054845500737428665, -0.0925329178571701, -0.04392495006322861, -0.07322918623685837, 0.020921994000673294, -0.05116671323776245, 0.41933169960975647, 0.007607758976519108, -0.14463162422180176, 0.4017485976219177, -0.2536611557006836, -0.04892495647072792, 0.3501349687576294, 0.06369262933731079, -0.09588003903627396, -0.10870709270238876, -0.3498913645744324, -0.1398882120847702, -0.4293373227119446, 0.39106273651123047, 0.08475634455680847, 0.041932687163352966, 0.09263096749782562, 0.43310463428497314, -0.026085030287504196, 0.30135399103164673, -0.03121604584157467, -0.08480536937713623, -0.2977055013179779, 0.3645741939544678, -0.056116607040166855, -0.46765604615211487, 0.011941686272621155, 0.08283533155918121, 0.359190434217453, 0.16382575035095215, -0.4252471923828125, 0.32674747705459595, -0.15090778470039368, 0.1628204882144928, 0.0011050666216760874, -0.024227920919656754, 0.06095451861619949, -0.08722756803035736, -0.021823326125741005, 0.036430951207876205, -0.24171502888202667, -0.014180462807416916, -0.03204430639743805, 0.1475839614868164, 0.051369309425354004, 0.4584292471408844, -0.037193238735198975, 0.6513358354568481, 0.08746515214443207, -0.08823130279779434, 0.4855562746524811, -0.30824020504951477, 0.38187694549560547, -0.20967136323451996, -0.3737451732158661, -0.08557511121034622, -0.35198137164115906, -0.19244563579559326, 0.2677489221096039, -0.03358447551727295, -0.03341551125049591, -0.12577559053897858, 0.0035162041895091534, -0.40468695759773254, -0.03770291060209274, 0.18363170325756073, 0.03069751150906086, -0.014829417690634727, -0.10059580206871033, -0.013301702216267586, -0.011645324528217316, -0.2373630255460739, -0.19425834715366364, 0.2739650309085846, -0.15134283900260925, 0.06338781118392944, -0.22424858808517456, -0.061581145972013474, -0.3029370903968811, 0.32920512557029724, -0.013622855767607689, 0.3102865517139435, 0.01061554066836834, -0.017694372683763504, 0.09729792922735214, -0.12522298097610474, 0.7449785470962524, 0.18928679823875427, -0.1550702303647995, 0.12782937288284302, -0.02411329373717308, -0.4415830075740814, -0.1217615008354187, 0.19063127040863037, 0.3073357343673706, 0.07446283847093582, 0.3548661172389984, -0.07032644748687744, -0.009693973697721958, -0.144343301653862, 0.3546775281429291, 0.04325256496667862, -0.39512816071510315, -0.5194923877716064, -0.23497898876667023, -0.3830540180206299, -0.2121344804763794, -0.0898669883608818, 0.28827953338623047, -0.3244074583053589, -0.14238737523555756, 0.11836133152246475, -0.2990526258945465, 0.06015624478459358, 0.15338154137134552, 0.2973899245262146, -0.11291498690843582, 0.14489597082138062, 0.046834539622068405, 0.06980528682470322, 0.3769117295742035, 0.7987178564071655, -0.0785757303237915, -0.6220768094062805, 0.08484303951263428, -0.20502644777297974, 0.38534799218177795, 0.04781899228692055, -0.20320531725883484, 0.12898781895637512, 0.0907350406050682, 0.0620339997112751, 0.03794839233160019, 0.01443718746304512, 0.30368703603744507, 0.04965520277619362, -0.3454541862010956, -0.5439218878746033, 0.48741862177848816, -0.12590746581554413, 0.21025913953781128, 0.3020794689655304, -0.21199987828731537, -0.10998128354549408, 0.15552251040935516, -0.3346247673034668, 0.659213662147522, -0.421829491853714, 0.19383029639720917, 0.30733707547187805, 0.056334976106882095, 0.25842902064323425, -0.4451966881752014, 0.1323072612285614, -0.39196905493736267, -0.21090346574783325, -0.1043122336268425, -0.07120363414287567, 0.2393861711025238, 0.4321894645690918, -0.12124597281217575, 0.3118644654750824, -0.07414937764406204, 0.33255535364151, 0.11313383281230927, 0.24382655322551727, -0.10051655024290085, -0.08646822720766068, -0.3010212182998657, 0.010423504747450352, -0.14308121800422668, -0.03495147079229355, 0.028958221897482872, 0.0544649101793766, -0.1805669069290161, -0.20164503157138824, -0.24611200392246246, 0.22002443671226501, -0.29116785526275635, 0.1154058501124382, -0.11095450073480606, -0.46866461634635925, 0.19636397063732147, 0.2380674183368683, -0.2087024748325348, -0.085178904235363, -0.1240847185254097, 0.1550544798374176, 0.15963442623615265, -0.04017621651291847, -0.20837536454200745, -0.053695470094680786, -0.015885764732956886, 0.07612548768520355, -0.2351248413324356, 0.15455079078674316, -0.12227915972471237, -0.0956743136048317, 0.2780734896659851, 0.23765720427036285, -0.08480632305145264, -0.5452088713645935, -0.5326197743415833, -0.4284164309501648, 0.07598069310188293, -0.19573190808296204, 0.06519825756549835, -0.04207920655608177, 0.09834111481904984, -0.16163374483585358, 0.18593557178974152, -0.4688698649406433, -0.10202717781066895, 0.39181289076805115, -0.11168553680181503, 0.09395454078912735, 0.5907303690910339, 0.21934925019741058, -0.016892941668629646, -0.1411527395248413, 0.06424077600240707, 0.30810409784317017, -0.35318878293037415, 0.11706551909446716, 0.11415060609579086, 0.315949946641922, 0.1392524540424347, 0.29174554347991943, 0.15658091008663177, -0.07767197489738464, 0.07445497810840607, -0.5115904211997986, -0.32496997714042664, -0.016528848558664322, -0.0015315862838178873, 0.24795769155025482, 0.16722023487091064, 0.08186731487512589, 0.17267756164073944, 0.20329773426055908, -0.15623027086257935, 0.10046274214982986, 0.105927973985672, -0.08695729076862335, 0.2106321156024933, 0.1420167088508606, -0.13387282192707062, -0.10381855815649033, 0.09349752962589264, 0.17764084041118622, -0.05344535782933235, -0.18875117599964142, -0.07985606789588928, 0.15010015666484833, 0.09836073219776154, 0.023285673931241035, -0.20344552397727966, -0.2526886463165283, -0.1497056633234024, -0.19280503690242767, 0.0664084330201149, 0.029782170429825783, -0.09811165928840637, 0.07176046818494797, -0.2987644076347351, -0.08465491980314255, -0.5091871023178101, 0.02712203562259674, -0.5075399875640869, 0.22313153743743896, 0.2992687225341797, 0.048582080751657486, 0.12175778299570084, 0.20045532286167145, -0.17242632806301117, -0.03115958720445633, 0.15162721276283264, -0.13661886751651764, 0.3009471297264099, -0.401475191116333, 0.20350615680217743, -0.051065824925899506, 0.34033632278442383, 0.48485979437828064, -0.2076413333415985, 0.2197108119726181, 0.03758761286735535, 0.13411511480808258, -0.3825286030769348, 0.275476336479187, 0.11723185330629349, -0.06163034215569496, -0.02748509868979454, 0.1696745604276657, 0.19921205937862396, -0.2083064615726471, -0.09577673673629761, 0.006910546217113733, 0.4759886860847473, -0.007822575978934765, -0.03395189717411995, 0.41356244683265686, 0.0027151622343808413, 0.17896930873394012, 0.24033571779727936, 0.13563738763332367, 0.019620077684521675, 0.7002609372138977, -0.2602287828922272, -0.003964819945394993, -0.2352685183286667, 0.30148187279701233, -0.32786935567855835, -0.7641023993492126, 0.1616637259721756, 0.23555022478103638, -0.3533112108707428, -0.16765081882476807, 0.12589849531650543, 0.6017506122589111, -0.023374009877443314, 0.011493622325360775, -0.11459352821111679, -0.04483437538146973, 0.014055260457098484, 0.048388879746198654, -0.06621425598859787, -0.2536700963973999, -0.07082320004701614, 0.1856829673051834, -0.05955521762371063, 0.014560135081410408, 0.27498137950897217, 0.18766522407531738, -0.14948420226573944, -0.44575873017311096, 0.06577525287866592, 0.1728498339653015, 0.06654345244169235, -0.27483898401260376, 0.366612046957016, 0.26534974575042725, -0.0859917402267456, 0.18050448596477509, -0.04134427756071091, 0.6402475237846375, 0.5041919350624084, 0.09241119027137756, -0.061740048229694366, -0.121571846306324, -0.11399081349372864, -0.17941857874393463, 0.17781662940979004, 0.3488180935382843, 0.4212683141231537, 0.14854343235492706, 0.11359870433807373, -0.04018525034189224, 0.3160882294178009, 0.2067887783050537, 0.09960047155618668, -0.545975923538208, -0.11891894042491913, -0.2083127349615097, -0.25773924589157104, -0.22663302719593048, 0.024152418598532677, -0.28905943036079407, 0.020944660529494286, 0.42774689197540283, 0.07391517609357834, 0.27722710371017456, -0.026822734624147415, 0.03456735610961914, 0.07433395832777023, 0.31421950459480286, 0.23977525532245636, 0.40228983759880066, -0.42180803418159485, -0.03541917726397514, -0.7509756088256836, 0.11652836203575134, -0.3764885365962982, 0.009593266062438488, -0.03185870870947838, 0.15853773057460785, 0.1377400904893875, 0.08386052399873734, 0.15917257964611053, 0.29942426085472107, 0.11672361940145493, 0.22207850217819214, -0.05618489906191826, -0.1846194565296173, -0.33807092905044556, 0.026486122980713844, -0.17509311437606812, -0.46551427245140076, 0.22136114537715912, -0.12793350219726562, 0.009211217984557152, -0.22518673539161682, 0.22398892045021057, 0.2559676170349121, -0.005986839532852173, 0.4777286648750305, -0.11201117187738419, 0.6255964636802673, -0.0850188285112381, 0.3190024495124817, -0.3009375035762787, -0.08018969744443893, -0.19280532002449036, 0.5200990438461304, 0.2061503827571869, 0.2714003026485443, -0.1779930144548416, -0.10791654884815216, -0.2153039425611496, 0.15741048753261566, -0.006548930890858173, -0.07054787129163742, 0.06672807037830353, -0.15106114745140076, -0.0018237039912492037, -0.05849073454737663, 0.152231365442276, 0.09204848110675812, -0.2229386568069458, -0.07817388325929642, -0.17455346882343292, -0.18018552660942078, 0.18108253180980682, -0.404328316450119, -0.34110304713249207, 0.1487170308828354, 0.1261264532804489, 0.10186608135700226, 0.13969291746616364, -0.4524206817150116, 0.12178986519575119, 0.4244748055934906, -0.12801721692085266, -0.4174261689186096, 0.13403213024139404, -0.21161849796772003, 0.10057090222835541, -0.12185267359018326, 0.4765014946460724, 0.14110907912254333, -0.3705087900161743, -0.16157256066799164, -0.35832157731056213 ]
https://github.com/huggingface/datasets/issues/835
Wikipedia postprocessing
Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect. As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool
Hi, thanks for this library! Running this code: ```py import datasets wikipedia = datasets.load_dataset("wikipedia", "20200501.de") print(wikipedia['train']['text'][0]) ``` I get: ``` mini|Ricardo Flores Magón mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930. Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World. Politische Biografie Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde. mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917 [...] ``` so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup? Apologies if this has been asked before.
38
Wikipedia postprocessing Hi, thanks for this library! Running this code: ```py import datasets wikipedia = datasets.load_dataset("wikipedia", "20200501.de") print(wikipedia['train']['text'][0]) ``` I get: ``` mini|Ricardo Flores Magón mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930. Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World. Politische Biografie Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde. mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917 [...] ``` so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup? Apologies if this has been asked before. Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect. As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool
[ -0.03763130307197571, 0.11600033193826675, -0.19094090163707733, 0.45003846287727356, 0.2954644560813904, -0.21973785758018494, 0.3712622821331024, 0.2625177502632141, -0.0028848263900727034, 0.06707767397165298, 0.16373193264007568, 0.36848878860473633, 0.040314048528671265, -0.06343348324298859, -0.05252090096473694, -0.2800576388835907, 0.0010122079402208328, 0.10887029021978378, -0.27587753534317017, -0.21415314078330994, -0.27108991146087646, 0.17248299717903137, -0.27049335837364197, 0.19909603893756866, -0.3585418164730072, 0.08349939435720444, 0.038027893751859665, -0.1664295196533203, -0.13402728736400604, 0.05899038910865784, -0.12309267371892929, -0.011390441097319126, -0.2323264628648758, 0.5959072709083557, -0.00010385647328803316, 0.09380137920379639, 0.2659812569618225, -0.14833611249923706, 0.16510149836540222, -0.2740641236305237, 0.03815919905900955, 0.1320977509021759, -0.018274208530783653, -0.4883703887462616, -0.1506606638431549, -0.09731535613536835, -0.10264737904071808, -0.008019549772143364, 0.1642296016216278, 0.1089649498462677, 0.27796611189842224, -0.2608310878276825, 0.09904683381319046, -0.081553153693676, 0.40712666511535645, -0.039158422499895096, 0.002123280195519328, -0.056793347001075745, -0.10487525165081024, 0.07401588559150696, 0.08532778173685074, 0.45334377884864807, -0.06691370159387589, -0.15270139276981354, -0.03906059265136719, -0.08014187961816788, 0.1149633601307869, -0.22991251945495605, 0.3598324954509735, 0.3970836400985718, 0.4823436737060547, -0.23701825737953186, -0.0033167656511068344, 0.13493512570858002, -0.05627914145588875, -0.06274798512458801, 0.1382216066122055, 0.24851851165294647, -0.24639885127544403, 0.19988322257995605, 0.10861344635486603, -0.042502716183662415, -0.15706506371498108, 0.3849426507949829, -0.3486643135547638, 0.7615584135055542, -0.14706307649612427, 0.08903671056032181, -0.07138402760028839, -0.061857741326093674, -0.26555731892585754, 0.0647561103105545, 0.40673986077308655, 0.11511412262916565, 0.22935783863067627, 0.06236148253083229, 0.09519963711500168, -0.18791857361793518, -0.15811124444007874, -0.22979561984539032, -0.30737337470054626, -0.030551832169294357, -0.0009030854562297463, 0.031291358172893524, 0.09517019987106323, -0.06777627766132355, -0.18822155892848969, 0.1448567807674408, 0.12710250914096832, 0.1956162005662918, -0.3205271363258362, 0.1341061145067215, -0.07264098525047302, -0.058857329189777374, -0.010965523310005665, 0.04939179867506027, 0.18808048963546753, -0.15100586414337158, -0.050171103328466415, 0.1197853684425354, -0.4061349034309387, -0.1329096108675003, -0.262500524520874, 0.36441513895988464, -0.3537265956401825, 0.3217247724533081, 0.13394470512866974, -0.04107159748673439, 0.042707592248916626, 0.20190662145614624, -0.3462698757648468, 0.3184960186481476, -0.2574836015701294, 0.021495724096894264, -0.08061753958463669, -0.11439199000597, 0.32686325907707214, 0.018394257873296738, -0.055309876799583435, -0.3175855278968811, -0.09001932293176651, -0.4657154083251953, 0.37737300992012024, 0.11645561456680298, -0.1373092383146286, 0.08536861836910248, 0.18214012682437897, -0.4203646183013916, -0.061105310916900635, 0.0739959254860878, -0.011777330189943314, -0.043092671781778336, -0.1845552772283554, 0.291400283575058, 0.12533831596374512, 0.1142200157046318, 0.23240792751312256, 0.34841498732566833, 0.3461152911186218, 0.12790031731128693, 0.20486821234226227, 0.07987824827432632, -0.29362985491752625, -0.1988728940486908, 0.3602202534675598, 0.13983802497386932, -0.4822913110256195, -0.12393656373023987, 0.15420912206172943, 0.11740364879369736, 0.40120527148246765, 0.09025741368532181, -0.030720798298716545, 0.5387815833091736, -0.05755659565329552, 0.2503632605075836, 0.0693088248372078, -0.13907714188098907, 0.017772993072867393, -0.009497390128672123, -0.005655746441334486, -0.03302502632141113, 0.2078630030155182, -0.0513777956366539, 0.19356954097747803, 0.21203558146953583, 0.5239933133125305, 0.07951205223798752, 0.242841437458992, 0.18650592863559723, -0.17700301110744476, -0.1695268601179123, 0.19126489758491516, -0.01313835009932518, 0.17840084433555603, -0.08676932007074356, -0.06578057259321213, 0.2785573899745941, 0.39170342683792114, -0.017707446590065956, 0.033680517226457596, 0.2748851776123047, -0.1571967452764511, -0.04024072363972664, 0.15080703794956207, -0.18685083091259003, 0.2586320638656616, -0.09473253786563873, 0.30097541213035583, 0.37398096919059753, -0.2793429493904114, -0.3215063214302063, -0.4420488774776459, -0.030616512522101402, -0.08593836426734924, -0.12592093646526337, 0.36219707131385803, -0.007594285067170858, -0.14336302876472473, 0.16673223674297333, 0.1475284993648529, -0.04814574122428894, -0.44521835446357727, -0.06234287470579147, -0.3474650979042053, 0.20080088078975677, -0.2842552363872528, -0.07039662450551987, -0.17806510627269745, 0.3738848567008972, 0.08640527725219727, 0.09872785955667496, 0.03668896481394768, 0.06813978403806686, 0.16142603754997253, 0.1951448917388916, 0.08720223605632782, 0.13680216670036316, -0.1354452669620514, -0.3788897395133972, 0.10416487604379654, 0.446512371301651, 0.2120104432106018, -0.08768884837627411, -0.21078777313232422, 0.4056073725223541, 0.2071242779493332, -0.02401112951338291, 0.10081816464662552, -0.21865259110927582, 0.1274813860654831, 0.06698635220527649, -0.16061750054359436, -0.34078872203826904, -0.02281954512000084, 0.353530615568161, -0.12066017091274261, 0.2333274930715561, -0.3192085027694702, 0.07477753609418869, 0.5386905074119568, 0.1343517154455185, 0.4133024513721466, -0.09017009288072586, -0.5303309559822083, -0.15796183049678802, -0.016101177781820297, 0.17995822429656982, -0.10504002869129181, 0.18753795325756073, 0.17148058116436005, 0.07865360379219055, -0.018908435478806496, -0.14084993302822113, 0.35546499490737915, 0.29649558663368225, 0.40859439969062805, 0.27114516496658325, 0.035976774990558624, 0.16824378073215485, -0.25185462832450867, -0.03415842354297638, -0.2095748484134674, 0.37953993678092957, -0.25744161009788513, 0.12055392563343048, -0.1207633763551712, -0.07120098918676376, -0.08849278092384338, -0.20955049991607666, -0.21828603744506836, -0.13729938864707947, -0.04135074466466904, -0.1236964538693428, 0.042757607996463776, 0.22434338927268982, -0.1203932836651802, -0.04271409660577774, 0.25015130639076233, -0.15790024399757385, -0.026358311995863914, -0.2779900133609772, -0.02286636456847191, 0.19258719682693481, -0.1925172060728073, 0.18515360355377197, 0.11409179866313934, -0.11334557086229324, -0.33167949318885803, 0.0247596874833107, -0.45910847187042236, 0.30765244364738464, -0.28412407636642456, 0.017810361459851265, 0.13158148527145386, 0.2630498707294464, -0.18628087639808655, -0.29818597435951233, 0.12607166171073914, -0.1022757738828659, -0.07185093313455582, -0.07292041927576065, -0.2129746675491333, 0.11517328023910522, -0.05494915321469307, -0.6069827675819397, -0.1843995749950409, -0.2522270083427429, 0.17534272372722626, 0.4133395254611969, 0.17656929790973663, 0.44919201731681824, 0.28992417454719543, 0.14994044601917267, 0.2895764112472534, 0.1858319193124771, -0.36908116936683655, -0.08209490031003952, 0.3819563686847687, 0.1831926852464676, -0.10031137615442276, -0.040374673902988434, -0.12143008410930634, -0.15550953149795532, 0.035030364990234375, -0.32843998074531555, -0.07801370322704315, 0.15454505383968353, 0.009957049041986465, 0.060339510440826416, 0.07012036442756653, 0.33816012740135193, 0.05996478721499443, -0.2373799830675125, -0.07418317347764969, -0.05430293083190918, -0.06725138425827026, -0.18042102456092834, 0.12280236929655075, -0.2215510755777359, 0.19717110693454742, 0.07453656196594238, 0.5646955370903015, -0.02190346084535122, -0.09455560892820358, -0.13015100359916687, -0.10984529554843903, 0.04678540676832199, 0.01426096074283123, -0.17254118621349335, 0.1183861792087555, -0.06572229415178299, -0.11288408935070038, 0.28582826256752014, 0.02189805544912815, -0.31137120723724365, -0.08233976364135742, 0.24344442784786224, -0.5951228737831116, -0.23375587165355682, 0.07388423383235931, 0.20721477270126343, 0.3250175714492798, -0.22424569725990295, 0.018138792365789413, -0.1529434621334076, -0.19852112233638763, -0.0743095800280571, 0.2720825970172882, -0.12949204444885254, -0.18008670210838318, -0.0039945337921381, 0.04553655907511711, -0.3112490773200989, 0.0897602066397667, 0.10630225390195847, -0.2374599725008011, 0.019400734454393387, -0.3281220495700836, 0.1842595785856247, -0.12816888093948364, 0.20436276495456696, -0.16404692828655243, -0.10164514929056168, 0.2306399792432785, 0.02664831280708313, -0.21656537055969238, -0.01760965771973133, -0.3630170226097107, 0.13190175592899323, 0.5669873356819153, 0.4043785035610199, -0.42177310585975647, -0.1530516892671585, 0.5155635476112366, -0.09205897897481918, -0.036870893090963364, -0.11384748667478561, -0.21316112577915192, -0.10642657428979874, -0.28256943821907043, 0.2626233994960785, 0.0399501658976078, 0.12825465202331543, -0.00026950365281663835, -0.14414843916893005, 0.3049253821372986, 0.3409058153629303, 0.10481390357017517, 0.11391115933656693, 0.1659887433052063, 0.15086236596107483, -0.2560129761695862, -0.21574051678180695, 0.08270413428544998, -0.316840797662735, 0.12270455807447433, 0.09640906751155853, -0.0023278137668967247, -0.09338779002428055, -0.4582942724227905, 0.1420157551765442, 0.22537006437778473, -0.19541771709918976, 0.2062247097492218, 0.1236637532711029, 0.04877674579620361, 0.01118773315101862, 0.10063669830560684, 0.35777759552001953, -0.17850428819656372, -0.016064682975411415, -0.38246235251426697, 0.36985257267951965, -0.044278230518102646, -0.11382119357585907, 0.007946024648845196, -0.3191576898097992, -0.28801143169403076, 0.23508955538272858, -0.02337053045630455, 1.0900639295578003, 0.19162827730178833, 0.06017822027206421, 0.07984675467014313, 0.3357887864112854, 0.4070531129837036, 0.05038570985198021, -0.035733599215745926, -0.42939943075180054, 0.1830909103155136, -0.10922116786241531, 0.18704663217067719, -0.032311007380485535, -0.006355551537126303, -0.32011836767196655, -0.02885996177792549, -0.22330644726753235, 0.04163571074604988, -0.002294119680300355, -0.26104381680488586, 0.2794054448604584, -0.07144739478826523, -0.1940617859363556, 0.1843515783548355, -0.008549443446099758, 0.01324460282921791, 0.008396715857088566, 0.1159452423453331, -0.24183732271194458, -0.14553602039813995, -0.3945605754852295, -0.05654490739107132, -0.3439754545688629, 0.20612037181854248, 0.17367342114448547, -0.4040255546569824, -0.12350580096244812, 0.03246907517313957, 0.1290138214826584, 0.3851504325866699, -0.0401921421289444, 0.1245267391204834, -0.014995471574366093, -0.11534667015075684, 0.1051412969827652, 0.12752065062522888, 0.3020898997783661, -0.059637464582920074, -0.3325289487838745, 0.04742807149887085, -0.0684775710105896, -0.28408053517341614, -0.11407727748155594, -0.12027674913406372, 0.18802151083946228, -0.07758047431707382, -0.09440365433692932, 0.2715228199958801, -0.16598902642726898, -0.38255250453948975, 0.22036603093147278, -0.12235239893198013, -0.21464429795742035, 0.11289478093385696, 0.24874435365200043, -0.47933000326156616, 0.07014135271310806, 0.26789385080337524, 0.39935916662216187, 0.2682989537715912, 0.36343914270401, 0.44024860858917236, -0.3178357779979706, -0.4193708896636963, -0.3453826904296875, -0.3443893492221832, -0.30344048142433167, -0.22730068862438202, 0.12756648659706116, -0.04420733079314232, 0.03227425739169121, 0.25281253457069397, 0.12679409980773926, -0.04559917747974396, -0.18095852434635162, -0.4442620873451233, -0.137889102101326, 0.17699885368347168, -0.00782134011387825, 0.10693749785423279, 0.2601701617240906, -0.00035109519376419485, 0.13147443532943726, 0.07180999964475632, -0.4596361219882965, 0.09546065330505371, -0.4011000096797943, 0.2911185920238495, 0.24986599385738373, -0.24247625470161438, -0.19119486212730408, 0.0079132579267025, 0.3404121994972229, -0.08433566242456436, -0.12272350490093231, -0.4186241030693054, -0.1275819092988968, 0.07919874042272568, 0.039013784378767014, -0.20213350653648376, 0.14408840239048004, 0.1327936351299286, -0.2354939877986908, -0.1377091109752655, -0.09161051362752914, 0.13271857798099518, 0.15286268293857574, 0.26103654503822327, -0.05775516480207443, 0.36097726225852966, -0.2999005615711212, -0.2252100110054016, 0.04533180221915245, 0.21987654268741608, 0.08759117871522903, 0.13924099504947662, 0.11419616639614105, -0.06574006378650665, -0.36459848284721375, 0.08501645922660828, -0.02039147913455963, 0.3905951678752899, 0.35121333599090576, -0.050347503274679184, -0.04277678206562996, 0.3029698133468628, 0.23771733045578003, 0.24427521228790283, -0.2000589370727539, -0.0955413207411766, -0.04121408611536026, 0.344332754611969, -0.33810338377952576, 0.21906530857086182, 0.44381821155548096, -0.2796858847141266, 0.15342387557029724, 0.3051403760910034, 0.11399304866790771, 0.06466787308454514, 0.17229551076889038, 0.12307634949684143, -0.02894032932817936, -0.3710556626319885, 0.14935579895973206, 0.08027677983045578, 0.14465796947479248, 0.0820692777633667, 0.008331247605383396, 0.32752394676208496, 0.19212600588798523, 0.41570910811424255, 0.5534659028053284, 0.045823048800230026, 0.048523012548685074, 0.0934084802865982, -0.21240374445915222, -0.17372311651706696, 0.37823233008384705, 0.2508523166179657, -0.38723522424697876, -0.042577143758535385, 0.06901820749044418, -0.09577672928571701, 0.19581718742847443, 0.22061942517757416, -0.12589998543262482, 0.2072708010673523, -0.10612610727548599, -0.28026464581489563, -0.2669970393180847, -0.21623820066452026, -0.12545619904994965, -0.224076509475708, 0.19852717220783234, 0.081987164914608, 0.042859531939029694, 0.0007933633169159293, -0.16527119278907776, -0.3171613812446594, 0.19637130200862885, -0.37578079104423523, 0.37764665484428406, -0.24757759273052216, 0.10262992233037949, -0.18021802604198456, 0.26402461528778076, -0.3552989661693573, 0.4572238326072693, 0.18672426044940948, -0.03975483030080795, -0.35679730772972107, -0.13453471660614014, -0.18196561932563782, -0.1360786408185959, -0.10036792606115341, -0.05086888372898102, 0.40671396255493164, 0.0049415589310228825, 0.16460661590099335, 0.29868006706237793, -0.34791991114616394, 0.0352788120508194, 0.3535928726196289, 0.033141620457172394, 0.08747567981481552, -0.08712787926197052, 0.19857855141162872, -0.15335258841514587, -0.18705791234970093, 0.044905632734298706, -0.349982887506485, 0.2425718754529953, 0.31850317120552063, 0.14215205609798431, 0.2089870721101761, -0.1796867698431015, 0.14990539848804474, 0.08747509866952896, 0.1393522173166275, 0.4506242871284485, 0.14688646793365479, 0.01608925499022007, -0.1277976781129837, -0.2883228659629822, 0.34579703211784363, 0.006506513804197311, 0.03813142329454422, 0.009069292806088924, 0.3338775932788849, 0.2970459759235382, 0.10663878172636032, 0.020061135292053223, -0.255393922328949, 0.07144033163785934, 0.05638008937239647, -0.178314670920372, 0.08413214981555939, -0.017305847257375717, -0.13602766394615173, -0.04983880743384361, -0.1777631789445877, -0.14651842415332794, -0.2832268476486206, 0.3031674325466156, -0.06247319281101227, -0.3920106589794159, 0.024140529334545135, 0.15905146300792694, 0.38412147760391235, -0.13182799518108368, 0.1754278987646103, -0.38272759318351746, 0.08205408602952957, -0.002652565250173211, -0.07959208637475967, 0.010524114593863487, 0.5436708331108093, 0.11639895290136337, 0.11790012568235397, 0.1743740290403366, -0.02680296078324318, -0.01467142254114151, 0.27370354533195496, -0.039674174040555954, -0.3405414819717407, -0.19383016228675842, -0.059483882039785385, 0.069993756711483, 0.06808053702116013, -0.26320451498031616, 0.12692594528198242, -0.15162304043769836, 0.03319921717047691, -0.20770353078842163, -0.5855808258056641, 0.21620802581310272, -0.07805068045854568, -0.5391711592674255, -0.3936992883682251, 0.16472606360912323, 0.0663951113820076, 0.49913832545280457, -0.4331304132938385, 0.1830522119998932, 0.3660576343536377, -0.1315489113330841, -0.33803191781044006, -0.05781366676092148, -0.13943186402320862, 0.16077308356761932, -0.10687217861413956, 0.051150549203157425, -0.20778465270996094, -0.19169418513774872, -0.2590874433517456, -0.3279487192630768 ]
https://github.com/huggingface/datasets/issues/834
[GEM] add WikiLingua cross-lingual abstractive summarization dataset
Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl?
## Adding a Dataset - **Name:** WikiLingua - **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article. - **Paper:** https://arxiv.org/pdf/2010.03093.pdf - **Data:** https://github.com/esdurmus/Wikilingua - **Motivation:** Included in the GEM shared task. Multilingual. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
48
[GEM] add WikiLingua cross-lingual abstractive summarization dataset ## Adding a Dataset - **Name:** WikiLingua - **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article. - **Paper:** https://arxiv.org/pdf/2010.03093.pdf - **Data:** https://github.com/esdurmus/Wikilingua - **Motivation:** Included in the GEM shared task. Multilingual. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl?
[ -0.20528946816921234, 0.3199889063835144, 0.0722150132060051, 0.539557695388794, 0.13003651797771454, 0.2193811982870102, 0.12779971957206726, -0.18642404675483704, -0.028953727334737778, -0.06992657482624054, 0.274375319480896, 0.0008885011193342507, -0.42985421419143677, 0.20579612255096436, 0.30813372135162354, -0.29221704602241516, 0.005449148826301098, -0.2033137083053589, 0.020582398399710655, -0.1820492148399353, -0.16739071905612946, 0.46525663137435913, 0.11991479992866516, 0.050337087363004684, -0.4686001241207123, -0.02665594592690468, -0.22141924500465393, 0.43151652812957764, -0.09263450652360916, -0.19537901878356934, -0.034555818885564804, 0.039644744247198105, 0.13165779411792755, 0.43540263175964355, -0.00012477942800614983, -0.1571820080280304, 0.26069313287734985, -0.2081925868988037, -0.09278447180986404, -0.22355425357818604, -0.3300043046474457, -0.19960619509220123, -0.1916084587574005, -0.1280442476272583, 0.17592337727546692, 0.12831051647663116, -0.0804152712225914, 0.1652429699897766, -0.29024335741996765, 0.0426335483789444, 0.11849581450223923, -0.054691579192876816, 0.1770840883255005, -0.028124503791332245, 0.3376813232898712, -0.23122288286685944, -0.027202395722270012, 0.5547002553939819, -0.07334978878498077, 0.11992710083723068, -0.12266827374696732, 0.41443753242492676, -0.10189215838909149, -0.18968799710273743, 0.0083973603323102, 0.21093979477882385, 0.001783633604645729, -0.07744268327951431, 0.13753412663936615, 0.28180360794067383, 0.8164926171302795, -0.23187200725078583, -0.06239289417862892, -0.11280948668718338, -0.1559918373823166, -0.17653721570968628, 0.41243183612823486, 0.16128170490264893, -0.027176396921277046, 0.05349547788500786, 0.05353717505931854, -0.5035983324050903, -0.1352059245109558, 0.22287578880786896, -0.020496275275945663, 0.4011121988296509, 0.06534405052661896, 0.023537881672382355, 0.4362439215183258, 0.24807021021842957, -0.18706482648849487, -0.09656886756420135, -0.37890318036079407, 0.15656352043151855, 0.018784593790769577, -0.25090762972831726, 0.023838063701987267, 0.2325565665960312, 0.11420723050832748, -0.09795032441616058, 0.03920990228652954, 0.048120804131031036, -0.09541735798120499, 0.08086361736059189, 0.34943345189094543, 0.23026664555072784, -0.2853439152240753, -0.03235561028122902, 0.2578543722629547, -0.1746080070734024, 0.1903267353773117, -0.024764100089669228, -0.11244548857212067, -0.151908278465271, -0.35186412930488586, -0.15811695158481598, -0.3366395831108093, 0.12243669480085373, 0.07587344199419022, 0.10926149785518646, -0.2249847650527954, -0.21286053955554962, 0.10060182958841324, 0.08717437833547592, 0.28839433193206787, -0.2428635209798813, -0.061218682676553726, 0.39983823895454407, 0.2928889989852905, 0.17778578400611877, 0.058430008590221405, 0.2694649398326874, -0.08287006616592407, 0.20985889434814453, -0.18898019194602966, 0.08467384427785873, 0.12403615564107895, -0.08540843427181244, -0.20841249823570251, -0.15057024359703064, 0.01088431291282177, 0.06656631827354431, -0.18339064717292786, 0.15589824318885803, 0.37994229793548584, 0.38687750697135925, 0.006978112272918224, -0.632493257522583, -0.3096872866153717, 0.13325388729572296, -0.17161132395267487, -0.3060252368450165, -0.2727508246898651, -0.021411795169115067, -0.20760001242160797, -0.33386150002479553, -0.2829802632331848, 0.5032002925872803, 0.0978398323059082, -0.37813079357147217, 0.09740056842565536, 0.42587709426879883, 0.038193557411432266, -0.17415882647037506, -0.20048007369041443, 0.3255680501461029, -0.28595441579818726, 0.04912119358778, -0.2233879566192627, -0.006355390418320894, 0.360791951417923, 0.2327754646539688, -0.049352750182151794, 0.08604954928159714, -0.2695147693157196, 0.49791058897972107, 0.25232231616973877, -0.11209522932767868, -0.14197838306427002, 0.15146945416927338, -0.45748502016067505, 0.013493702746927738, 0.1928109973669052, 0.3532484173774719, -0.07077943533658981, -0.12763865292072296, -0.12204401195049286, 0.2550148069858551, 0.17409826815128326, 0.044116031378507614, -0.3670472800731659, -0.43609926104545593, 0.22770018875598907, 0.1296112984418869, 0.2096005082130432, -0.1416703164577484, 0.3847232758998871, 0.350720077753067, 0.20133772492408752, -0.2545933425426483, 0.1432921588420868, 0.13561956584453583, 0.20108787715435028, 0.0470840148627758, -0.07009538263082504, 0.08784995973110199, -0.42583438754081726, 0.03981133550405502, 0.48416969180107117, 0.4287412762641907, 0.2425021380186081, -0.04371017590165138, 0.11106657981872559, -0.06406323611736298, -0.21433578431606293, -0.1703348010778427, -0.003495968645438552, 0.3995073139667511, -0.07881065458059311, 0.2376490831375122, -0.07324158400297165, -0.23411855101585388, -0.23062388598918915, -0.12148251384496689, 0.03819584846496582, 0.317073255777359, -0.11879411339759827, 0.07988949120044708, -0.11658018827438354, 0.29724836349487305, -0.205797478556633, -0.04729927331209183, -0.03451450914144516, 0.16235093772411346, -0.10370229929685593, 0.361639142036438, 0.6724395751953125, 0.7141309380531311, 0.08225499093532562, -0.23850798606872559, 0.3458832800388336, -0.06271384656429291, 0.24497990310192108, -0.14944815635681152, -0.07298355549573898, 0.26595067977905273, -0.0039399475790560246, 0.06680107116699219, 0.07375651597976685, 0.2355249971151352, 0.2932624816894531, -0.019924847409129143, -0.044058579951524734, -0.3305779695510864, 0.3704812526702881, 0.21806412935256958, -0.24172177910804749, 0.12676024436950684, -0.29778701066970825, 0.007664499804377556, 0.41428959369659424, -0.05028466880321503, 0.47854551672935486, 0.21857412159442902, -0.30428868532180786, -0.30602821707725525, -0.02492409758269787, 0.6103748679161072, 0.3237771987915039, 0.08085502684116364, 0.3784130811691284, 0.06172741949558258, 0.10762535780668259, -0.18828682601451874, 0.3658083975315094, 0.08724788576364517, -0.07825332134962082, 0.5172118544578552, -0.10134252905845642, -0.06577347964048386, -0.2807047367095947, 0.12972185015678406, 0.03275516256690025, 0.20474550127983093, -0.14998787641525269, -0.02167508751153946, -0.0512133464217186, -0.11576493084430695, -0.1355132758617401, -0.7797614932060242, -0.6879052519798279, -0.3252258002758026, 0.14520306885242462, -0.17661260068416595, -0.10350360721349716, 0.023351935669779778, 0.13824668526649475, 0.19640709459781647, -0.4809715151786804, -0.39891287684440613, -0.08776901662349701, -0.42597585916519165, -0.1295740008354187, -0.03611050546169281, 0.41990846395492554, -0.03130431845784187, 0.2916496992111206, 0.019221533089876175, 0.16892969608306885, -0.2439253330230713, -0.49002793431282043, 0.3283199369907379, -0.16851674020290375, 0.2541861832141876, 0.07566951960325241, -0.11802402883768082, 0.08988914638757706, -0.46927568316459656, 0.18696123361587524, 0.2557249963283539, 0.101653553545475, -0.04970290884375572, 0.0046751536428928375, -0.022975929081439972, 0.0450015626847744, 0.0411926694214344, -0.2943655550479889, -0.26002949476242065, -0.08585714548826218, 0.08225908875465393, 0.10400482267141342, -0.21546503901481628, -0.04005853831768036, 0.28808510303497314, 0.06359118968248367, -0.1582786738872528, -0.3831859529018402, -0.13782258331775665, 0.3207930028438568, -0.11829353868961334, -0.24658158421516418, 0.2720315456390381, -0.24531853199005127, 0.34342193603515625, -0.08151738345623016, -0.47440239787101746, -0.297477662563324, 0.1456633061170578, -0.011607439257204533, 0.4878697991371155, 0.12111705541610718, 0.32668623328208923, 0.11659872531890869, -0.013117234222590923, -0.03400504216551781, -0.28838804364204407, 0.10659138113260269, 0.3647938668727875, 0.2817762792110443, 0.1308734267950058, 0.3322597146034241, 0.19528262317180634, 0.6535813212394714, -0.0746074765920639, 0.23401999473571777, 0.2576478123664856, -0.22711412608623505, 0.34074366092681885, -0.09390537440776825, -0.10107409954071045, -0.037745509296655655, -0.12385154515504837, -0.4158318042755127, 0.31408438086509705, 0.2167857140302658, -0.516197681427002, -0.08977210521697998, 0.0016277708346024156, -0.2928318977355957, -0.29467537999153137, 0.27584967017173767, 0.0945887342095375, 0.024147193878889084, -0.12342099100351334, -0.24130932986736298, -0.050390757620334625, -0.2646068334579468, 0.11669943481683731, 0.8497217893600464, -0.21439576148986816, 0.07824166864156723, -0.3703145682811737, -0.25125807523727417, -0.10827945917844772, 0.17504048347473145, 0.2574886083602905, -0.04865533486008644, -0.3461045026779175, -0.11421190202236176, 0.15859930217266083, -0.31268948316574097, 0.10288723558187485, -0.5930866599082947, -0.18341536819934845, 0.0585014633834362, -0.17293022572994232, 0.4593801200389862, 0.21657048165798187, 0.034657374024391174, -0.27762946486473083, 0.5621856451034546, -0.2314651757478714, -0.23119106888771057, 0.03517581894993782, 0.25576964020729065, 0.006829768419265747, -0.22773103415966034, 0.1719493716955185, -0.08798292279243469, -0.46062368154525757, -0.4878271520137787, -0.20784936845302582, -0.04193554073572159, 0.04940994456410408, 0.23444877564907074, 0.10141675174236298, 0.03817097097635269, -0.14550326764583588, 0.029703157022595406, -0.17962317168712616, 0.040442872792482376, 0.18856361508369446, -0.2332439422607422, 0.24941961467266083, 0.16189329326152802, -0.015109955333173275, 0.21666492521762848, 0.11740715801715851, 0.3896990716457367, 0.17418469488620758, -0.5150285959243774, 0.6288020014762878, 0.36091363430023193, 0.08631710708141327, -0.07620485872030258, 0.10403834283351898, -0.27893495559692383, -0.38916996121406555, 0.0016890019178390503, 0.08448897302150726, 0.2216774970293045, -0.22436319291591644, -0.2750698924064636, 0.539546012878418, 0.03456251695752144, -0.2513052523136139, 0.1492878794670105, 0.25357896089553833, -0.4851565659046173, 0.055955350399017334, 0.12287157028913498, 1.2584292888641357, 0.17317235469818115, 0.2715182602405548, 0.17338623106479645, -0.10962042212486267, 0.08591089397668839, 0.05614139512181282, 0.19983069598674774, -0.3550175130367279, 0.5552219152450562, -0.22700519859790802, 0.045104119926691055, -0.18721456825733185, -0.08584211766719818, -0.16151292622089386, -0.037648871541023254, -0.0489194318652153, 0.09345147758722305, -0.1644875854253769, 0.3035357594490051, -0.24913057684898376, -0.2379186451435089, 0.04875539243221283, -0.017787428572773933, 0.23212045431137085, 0.2364143282175064, -0.12328379601240158, -0.40042737126350403, -0.0926726832985878, -0.3229563236236572, -0.7480213642120361, -0.14622655510902405, 0.01642599329352379, -0.024723447859287262, -0.45671623945236206, -0.5324649810791016, -0.10038203001022339, 0.3304945230484009, -0.23783095180988312, -0.13384148478507996, -0.19630035758018494, 0.021886909380555153, -0.5718804001808167, -0.054390668869018555, 0.24091999232769012, -0.0025454231072217226, 0.14206525683403015, -0.10236582159996033, 0.1303016096353531, 0.019263075664639473, 0.004667107481509447, -0.47037428617477417, -0.15944094955921173, -0.18926694989204407, 0.036133866757154465, 0.24552954733371735, -0.025802448391914368, 0.4970346987247467, -0.19069655239582062, -0.2556156814098358, 0.033537786453962326, 0.07218262553215027, 0.11860065907239914, -0.015151348896324635, -0.09993749111890793, 0.012990960851311684, -0.1618502289056778, 0.2606791853904724, -0.07992517948150635, -0.26776954531669617, 0.13658025860786438, 0.2739430069923401, -0.25399813055992126, -0.15616078674793243, 0.049681149423122406, 0.02891901507973671, -0.29836204648017883, -0.10932779312133789, 0.114674873650074, -0.17200462520122528, -0.18534934520721436, 0.2532098889350891, 0.3053184449672699, 0.009273720905184746, -0.3213841915130615, -0.4174218773841858, -0.13865980505943298, 0.313912570476532, -0.13475218415260315, 0.37849414348602295, -0.7157734036445618, -0.31948959827423096, 0.2560022175312042, 0.07395811378955841, -0.18835128843784332, 0.057764794677495956, -0.15611673891544342, -0.15097007155418396, 0.6616244912147522, 0.11794950813055038, 0.30817607045173645, 0.1688101589679718, -0.061006829142570496, -0.48790815472602844, -0.1559152454137802, 0.06414328515529633, -0.12427018582820892, 0.21411077678203583, 0.41911596059799194, -0.09055282175540924, 0.031450074166059494, -0.38981354236602783, -0.13372083008289337, 0.12040452659130096, 0.21081003546714783, -0.15714772045612335, -0.2858668565750122, 0.017323287203907967, -0.1569110006093979, 0.28818655014038086, -0.19987355172634125, 0.07621749490499496, 0.11887874454259872, 0.5915825963020325, 0.15839186310768127, -0.031416572630405426, 0.003010560991242528, -0.04566679894924164, 0.46241897344589233, 0.4269457757472992, 0.18927155435085297, 0.07286764681339264, 0.17127221822738647, 0.015587719157338142, 0.1197739839553833, 0.315109521150589, 0.19321642816066742, 0.014500252902507782, -0.13900676369667053, -0.043395739048719406, 0.18499025702476501, 0.0005186788621358573, 0.02934628166258335, -0.3166526257991791, -0.23967070877552032, -0.1344023495912552, -0.06026444211602211, 0.22850793600082397, 0.4845859110355377, 0.04890202730894089, -0.1327955424785614, -0.17686539888381958, 0.5035765767097473, -0.22421057522296906, -0.10810352116823196, 0.113252654671669, -0.4795016050338745, 0.523234486579895, 0.1773436814546585, 0.3323846161365509, 0.21910610795021057, 0.10330181568861008, -0.13096751272678375, 0.05493121221661568, 0.3881411552429199, 0.014244324527680874, -0.07087477296590805, -0.19777187705039978, 0.05580112338066101, 0.2556610405445099, 0.3525894284248352, -0.019887372851371765, 0.09490019828081131, 0.036525238305330276, 0.20329995453357697, 0.4621022641658783, -0.24804027378559113, 0.20133978128433228, -0.03926381468772888, -0.07659643888473511, -0.22754430770874023, -0.2805989384651184, -0.32517048716545105, 0.4158671796321869, -0.2221693992614746, -0.18135389685630798, 0.0556778721511364, -0.023571357131004333, 0.20052233338356018, -0.13094748556613922, 0.2222491055727005, -0.02714284136891365, -0.3678208291530609, -0.27605095505714417, 0.09574059396982193, 0.16041941940784454, 0.18757273256778717, 0.011954788118600845, 0.05059483274817467, 0.18830500543117523, 0.09126996248960495, -0.07135630398988724, -0.07081828266382217, -0.28978055715560913, 0.18854208290576935, -0.16393133997917175, 0.514002799987793, 0.15088945627212524, 0.00025504190125502646, 0.12885725498199463, -0.024011027067899704, -0.0834449902176857, 0.17770463228225708, 0.36469605565071106, -0.08157328516244888, 0.29004091024398804, 0.4989515542984009, -0.00693436898291111, 0.06164789944887161, -0.1075543612241745, 0.011959653347730637, -0.2995434105396271, -0.1839977353811264, 0.40805691480636597, -0.08617432415485382, 0.10353556275367737, -0.01988728530704975, -0.027609921991825104, 0.2268512099981308, 0.34669896960258484, 0.1651625782251358, 0.2325502634048462, -0.1531083732843399, -0.1460169553756714, -0.5308953523635864, -0.06768214702606201, 0.30161839723587036, 0.042708806693553925, -0.19041742384433746, 0.1468810737133026, 0.2609969675540924, 0.37239325046539307, 0.10109635442495346, 0.284064918756485, -0.0358072854578495, -0.036950163543224335, 0.006052687764167786, 0.29832926392555237, 0.24341420829296112, 0.1828007996082306, -0.27558258175849915, 0.01277320645749569, -0.06518733501434326, -0.14982035756111145, -0.09016355872154236, -0.2980974018573761, 0.14322106540203094, -0.3748905062675476, 0.1640293449163437, 0.3807442784309387, -0.1049276739358902, 0.5162323713302612, -0.22713850438594818, 0.06072598695755005, -0.31344902515411377, -0.06318765878677368, -0.1761235147714615, -0.14923487603664398, -0.025673050433397293, 0.08781968802213669, -0.2892700433731079, 0.4012242555618286, -0.1729556769132614, -0.169864684343338, -0.08857911825180054, 0.5634938478469849, -0.18659719824790955, 0.08590076863765717, 0.0004588008450809866, 0.021697232499718666, 0.4482545256614685, 0.23924347758293152, 0.1635226011276245, 0.045623358339071274, -0.21020276844501495, 0.05889078229665756, 0.09383939206600189, 0.045803334563970566, -0.046934302896261215, 0.01480567455291748, 0.1403069645166397, 0.3675566017627716, 0.15289099514484406, -0.3563583493232727, -0.09936436265707016, 0.20286451280117035, 0.28687986731529236, -0.18863090872764587, 0.1483277529478073, 0.28387778997421265, -0.3120298683643341, 0.027751363813877106, -0.34107303619384766, -0.05031353235244751, -0.2796901762485504, -0.19440308213233948, -0.260997474193573 ]
https://github.com/huggingface/datasets/issues/834
[GEM] add WikiLingua cross-lingual abstractive summarization dataset
Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem) You can use it for example to load the French to English translation with: ```python from datasets import load_dataset wikilingua = load_dataset("gem", "wiki_lingua_french_fr") ``` Closed by https://github.com/huggingface/datasets/pull/1807
## Adding a Dataset - **Name:** WikiLingua - **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article. - **Paper:** https://arxiv.org/pdf/2010.03093.pdf - **Data:** https://github.com/esdurmus/Wikilingua - **Motivation:** Included in the GEM shared task. Multilingual. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
42
[GEM] add WikiLingua cross-lingual abstractive summarization dataset ## Adding a Dataset - **Name:** WikiLingua - **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article. - **Paper:** https://arxiv.org/pdf/2010.03093.pdf - **Data:** https://github.com/esdurmus/Wikilingua - **Motivation:** Included in the GEM shared task. Multilingual. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem) You can use it for example to load the French to English translation with: ```python from datasets import load_dataset wikilingua = load_dataset("gem", "wiki_lingua_french_fr") ``` Closed by https://github.com/huggingface/datasets/pull/1807
[ -0.2764143943786621, 0.0026876528281718493, -0.10010243207216263, 0.3107098340988159, -0.1134154200553894, 0.14023490250110626, 0.010671794414520264, 0.27366968989372253, -0.04972340539097786, 0.14254401624202728, -0.06661328673362732, 0.23884503543376923, 0.033216752111911774, 0.32905399799346924, 0.10077673196792603, -0.5720508694648743, 0.012425859458744526, 0.0506400391459465, -0.1894696205854416, -0.09385838359594345, 0.049655981361866, 0.29176899790763855, -0.15411344170570374, 0.03448226675391197, -0.07429122924804688, 0.16732831299304962, -0.29209771752357483, -0.062164388597011566, 0.058065105229616165, -0.1694515496492386, -0.04944976046681404, 0.10799311846494675, 0.11473201960325241, 0.11207876354455948, -0.00009707687422633171, -0.23571354150772095, 0.11734868586063385, -0.09347730875015259, -0.08322954922914505, -0.3354906737804413, 0.056894563138484955, -0.4867473542690277, -0.08984149247407913, -0.15272943675518036, -0.0286796223372221, -0.07993578910827637, -0.022539332509040833, 0.3618357181549072, 0.17118749022483826, -0.016323581337928772, 0.3015850782394409, -0.24136394262313843, 0.18770816922187805, -0.09825020283460617, 0.04097926616668701, -0.3352947235107422, -0.18769651651382446, 0.1640692502260208, -0.02432420663535595, -0.05625833570957184, -0.2111862152814865, 0.5608845353126526, -0.05093594267964363, -0.253158837556839, -0.29006102681159973, -0.012695012614130974, -0.10527298599481583, -0.06496024876832962, 0.11656394600868225, 0.4845496416091919, 0.5298586487770081, -0.16814959049224854, -0.2733716368675232, -0.0119782080873847, -0.10286519676446915, -0.13364152610301971, -0.06890647113323212, 0.19958887994289398, 0.06820932775735855, 0.28217458724975586, 0.11977244913578033, -0.25279244780540466, -0.10054916143417358, 0.22517609596252441, 0.1247849240899086, 0.4762439429759979, -0.058208614587783813, -0.04419618472456932, 0.29888665676116943, -0.1675044149160385, -0.5653139352798462, 0.13599753379821777, -0.10746202617883682, 0.23732000589370728, -0.08557304739952087, -0.12352748960256577, 0.15287688374519348, 0.07998094707727432, 0.19662272930145264, -0.25330299139022827, -0.15283188223838806, 0.48557037115097046, 0.050622038543224335, 0.1805732101202011, 0.217691570520401, 0.1750594824552536, 0.07594671845436096, -0.05472644418478012, -0.014843922108411789, 0.1278161108493805, -0.04115245118737221, 0.029294725507497787, -0.024342142045497894, 0.06436687707901001, -0.2445608228445053, -0.08198832720518112, -0.4378206729888916, 0.06863505393266678, 0.20605379343032837, 0.2339697927236557, 0.12687858939170837, -0.12932360172271729, -0.15844307839870453, 0.35308605432510376, 0.0957631841301918, 0.23727618157863617, -0.07811028510332108, 0.2695081830024719, -0.21405117213726044, -0.12611998617649078, -0.12363075464963913, 0.25455284118652344, -0.17588375508785248, 0.1946144998073578, -0.1769748479127884, 0.08412189781665802, 0.2207692265510559, 0.011975374072790146, 0.26743680238723755, -0.19199129939079285, 0.07563814520835876, 0.05225620046257973, -0.08069253712892532, -0.23251858353614807, 0.29448065161705017, 0.0688740536570549, 0.25381597876548767, -0.41394057869911194, -0.2517584562301636, -0.12961791455745697, -0.2286817729473114, -0.08998472988605499, -0.34031081199645996, 0.2785220146179199, 0.03785715252161026, -0.24254141747951508, -0.2779178023338318, 0.7183284163475037, 0.12147416919469833, -0.39031001925468445, 0.0970275029540062, 0.21843405067920685, -0.237253800034523, 0.026287345215678215, 0.10791540890932083, 0.426257461309433, -0.08575072884559631, -0.13688711822032928, -0.009468458592891693, -0.08782608062028885, 0.08174954354763031, 0.17718620598316193, -0.07131364941596985, -0.11792594939470291, -0.13249681890010834, 0.4285249412059784, 0.11942502111196518, -0.15092410147190094, -0.17361536622047424, 0.02018570527434349, -0.10531502962112427, 0.2885633409023285, -0.0036447239108383656, 0.0764424130320549, 0.026393676176667213, -0.028358593583106995, 0.13019594550132751, 0.10246019810438156, 0.15603166818618774, 0.1353263556957245, -0.22205403447151184, -0.3277810215950012, 0.09019004553556442, 0.19360698759555817, 0.03246175870299339, -0.19083409011363983, 0.21952880918979645, 0.19911137223243713, 0.29377374053001404, -0.27926257252693176, 0.12364957481622696, 0.2130657285451889, -0.15290090441703796, 0.14650486409664154, 0.05468062311410904, -0.26417776942253113, 0.02518535405397415, 0.11132336407899857, 0.32062938809394836, 0.35763365030288696, 0.22892482578754425, -0.23829372227191925, -0.04648638516664505, -0.17052078247070312, -0.30597206950187683, -0.21314355731010437, 0.3340741991996765, 0.12075527012348175, 0.02987365797162056, 0.35049134492874146, 0.05714774504303932, -0.27219995856285095, -0.3950468897819519, -0.2795886993408203, -0.07886829227209091, 0.0020744509529322386, -0.15849290788173676, -0.0642237588763237, -0.09971189498901367, 0.3893688917160034, -0.27123701572418213, 0.09832044690847397, 0.015433622524142265, 0.1517491340637207, -0.05508393421769142, 0.49825891852378845, 0.45694243907928467, 0.20203998684883118, -0.07170836627483368, -0.5005130171775818, 0.10146304219961166, -0.12695318460464478, 0.04055734723806381, 0.014175264164805412, 0.002655663527548313, 0.45990872383117676, 0.26830169558525085, 0.1284925490617752, 0.17289327085018158, 0.0776902288198471, 0.43817418813705444, 0.06491098552942276, -0.13732221722602844, -0.32992514967918396, 0.30488336086273193, 0.07827608287334442, -0.43332162499427795, -0.12210984528064728, -0.17124377191066742, 0.1732599437236786, 0.5744447112083435, 0.13778066635131836, 0.5119507312774658, 0.21643869578838348, -0.09746862947940826, -0.2043812870979309, -0.014423523098230362, -0.05581926181912422, -0.1734181046485901, 0.2701699435710907, 0.322553426027298, 0.1384962499141693, 0.1292925328016281, 0.041036903858184814, 0.2512614130973816, -0.08562538772821426, 0.045263439416885376, 0.197309672832489, 0.09132122248411179, -0.11873693764209747, -0.3444892466068268, 0.06858330965042114, -0.23776580393314362, -0.030747564509510994, 0.1356811821460724, 0.10759299993515015, -0.07175271213054657, -0.044547002762556076, -0.1838500052690506, -0.3029923141002655, -0.2344038337469101, -0.16164983808994293, 0.2162356674671173, -0.2200758308172226, -0.24005934596061707, 0.12845300137996674, 0.11678413301706314, -0.11293496936559677, -0.25298020243644714, -0.10243114084005356, -0.013843349181115627, -0.578855037689209, -0.2555544376373291, 0.18014876544475555, 0.048231933265924454, -0.045007411390542984, 0.3994951844215393, -0.4012572467327118, -0.15521340072155, 0.03560550883412361, -0.644929051399231, 0.2720445990562439, -0.16221395134925842, 0.020053738728165627, -0.0106310173869133, -0.06979608535766602, -0.36052975058555603, -0.3130764961242676, 0.30769047141075134, 0.032536059617996216, -0.028960222378373146, 0.12614084780216217, 0.037701863795518875, 0.0117116654291749, -0.03528052940964699, -0.5705171227455139, -0.19807392358779907, -0.4070945382118225, 0.3077457845211029, 0.05456291511654854, 0.14866788685321808, -0.3104320764541626, 0.2955925762653351, 0.19082365930080414, -0.17590124905109406, 0.3428911566734314, -0.34202367067337036, -0.09230025857686996, 0.11209418624639511, -0.15273086726665497, -0.3790648579597473, 0.07316610217094421, -0.20055782794952393, 0.36509889364242554, -0.10576215386390686, -0.2588931918144226, -0.1058172658085823, 0.17911578714847565, 0.032634101808071136, 0.18196123838424683, 0.23680813610553741, 0.27378761768341064, 0.1304391473531723, -0.20748120546340942, 0.07251555472612381, 0.03776474669575691, -0.03181732818484306, -0.1206882894039154, 0.08554869145154953, -0.21008183062076569, 0.35657721757888794, 0.23254327476024628, 0.6987832188606262, 0.16901065409183502, 0.39958834648132324, 0.3031807839870453, -0.1493193656206131, 0.12141305953264236, -0.37278708815574646, -0.11833316087722778, -0.06676578521728516, -0.1618155539035797, -0.0017628271598368883, 0.43743473291397095, 0.21141068637371063, -0.6284592747688293, -0.19206419587135315, -0.259424090385437, -0.422342985868454, -0.23619745671749115, 0.3057607412338257, 0.09233743697404861, 0.35457494854927063, -0.10092692822217941, -0.2588648200035095, 0.015134287998080254, -0.17671236395835876, 0.1695004403591156, 0.397931843996048, -0.2794204652309418, 0.10741053521633148, -0.4918295443058014, -0.19029146432876587, 0.06738356500864029, 0.17288881540298462, 0.44744932651519775, -0.08079542964696884, -0.22054342925548553, -0.1300714761018753, -0.130240336060524, -0.2977636754512787, -0.031453147530555725, -0.2745250165462494, -0.2566516697406769, -0.09251454472541809, -0.29935166239738464, 0.05582430586218834, 0.0835803970694542, -0.16842186450958252, -0.39516589045524597, 0.5567397475242615, 0.141967311501503, -0.30974116921424866, 0.0260454211384058, 0.1145009845495224, 0.38115641474723816, -0.2633340358734131, 0.22271068394184113, -0.269418865442276, -0.19328175485134125, -0.5281094312667847, 0.1691386103630066, -0.03996921330690384, 0.04658481478691101, 0.16901932656764984, 0.03219734504818916, 0.08846224844455719, 0.08042903989553452, -0.05948979780077934, 0.06163056194782257, 0.2686181664466858, 0.12302661687135696, -0.10827915370464325, -0.04063626378774643, -0.23641684651374817, -0.10765476524829865, 0.2783067226409912, 0.07753925025463104, -0.18445031344890594, -0.3306640684604645, -0.25725096464157104, 0.31013259291648865, 0.0035278834402561188, 0.22626645863056183, 0.010780845768749714, 0.1983659714460373, -0.13056513667106628, -0.35971781611442566, -0.03556084260344505, -0.011603904888033867, 0.3058983087539673, -0.10584250837564468, -0.4316597282886505, 0.44953975081443787, -0.1073315441608429, 0.015891913324594498, -0.026343699544668198, 0.24215270578861237, -0.2652859091758728, 0.23031160235404968, 0.07787515223026276, 0.9278439879417419, 0.23548738658428192, 0.2578745484352112, 0.10341478884220123, 0.10181751102209091, 0.17263199388980865, 0.061821892857551575, 0.020433027297258377, -0.25022822618484497, 0.2777405381202698, -0.003972151316702366, 0.3077615797519684, -0.24421033263206482, -0.00573331955820322, -0.4587956964969635, 0.16285866498947144, -0.21380577981472015, -0.06948668509721756, -0.035730380564928055, 0.038916125893592834, -0.38529980182647705, -0.254616916179657, -0.07492188364267349, 0.2158121019601822, 0.16086971759796143, -0.14273373782634735, -0.09688363969326019, -0.16396479308605194, 0.0675177127122879, -0.11555121093988419, -0.5750609040260315, 0.20376381278038025, 0.30434760451316833, 0.09765549004077911, -0.2666783630847931, -0.13273242115974426, 0.05012398213148117, 0.3451724052429199, -0.19380730390548706, 0.02522922120988369, -0.08239556849002838, -0.03415169194340706, -0.4138198494911194, -0.1523549109697342, 0.17769724130630493, 0.057325463742017746, 0.2658063769340515, -0.18141818046569824, -0.2510644197463989, 0.0641665980219841, 0.13399848341941833, 0.055706754326820374, -0.2997831702232361, -0.13337264955043793, 0.385439932346344, 0.18514922261238098, -0.09516488760709763, 0.4663962125778198, -0.26128292083740234, -0.3155134618282318, 0.2619304358959198, 0.07028765976428986, -0.22862234711647034, -0.11062946170568466, 0.14301149547100067, 0.003653784515336156, 0.07399691641330719, 0.22120894491672516, 0.25055164098739624, -0.32679328322410583, 0.26219770312309265, 0.3297336995601654, -0.2598975896835327, -0.32720938324928284, -0.24194246530532837, -0.12529458105564117, -0.333534836769104, -0.13878117501735687, 0.07489392906427383, -0.11598984152078629, -0.14521671831607819, 0.09492135792970657, 0.031352341175079346, 0.04805659502744675, -0.20625749230384827, -0.27429166436195374, 0.03709214925765991, 0.3391430974006653, 0.1259651929140091, 0.16635330021381378, -0.0384916216135025, -0.237550288438797, -0.03250115364789963, 0.2613566815853119, -0.46193766593933105, -0.14431332051753998, -0.13483968377113342, -0.04581817612051964, 0.46087077260017395, 0.12760978937149048, -0.00036938561243005097, 0.19959893822669983, 0.20017068088054657, -0.0016999165527522564, -0.20890508592128754, -0.34229063987731934, -0.31162235140800476, 0.05226090922951698, 0.053880106657743454, 0.208884134888649, 0.15134084224700928, -0.1388467699289322, 0.18148869276046753, -0.38030174374580383, 0.13573753833770752, -0.13919095695018768, -0.16684895753860474, 0.3987879157066345, -0.21562393009662628, 0.4115789830684662, -0.09300757199525833, -0.15413236618041992, 0.0210991520434618, 0.24264748394489288, 0.0362112931907177, -0.07639230042695999, 0.02332405559718609, -0.094403475522995, 0.15072840452194214, 0.20315514504909515, 0.17408600449562073, 0.17674711346626282, 0.12572205066680908, 0.2538171112537384, 0.2154754102230072, 0.11996549367904663, 0.22611743211746216, -0.006514490582048893, -0.11902075260877609, -0.11538369953632355, 0.16238415241241455, 0.3639620542526245, -0.2695586085319519, -0.1094488576054573, -0.18999527394771576, -0.30897146463394165, 0.19340085983276367, 0.24680304527282715, 0.15799279510974884, -0.06538499146699905, 0.08840605616569519, -0.13753777742385864, -0.08796858042478561, -0.34784412384033203, 0.18633905053138733, 0.13997362554073334, -0.0900237187743187, 0.12396218627691269, -0.19457638263702393, -0.024020200595259666, 0.20981712639331818, 0.18133050203323364, -0.13639822602272034, 0.3350525498390198, 0.17225699126720428, 0.34547168016433716, -0.14017340540885925, 0.011257958598434925, 0.3753674626350403, 0.22065965831279755, 0.3333485424518585, 0.29260262846946716, 0.03763655200600624, 0.030218737199902534, 0.3496352434158325, 0.24691233038902283, -0.1901770383119583, 0.33464929461479187, -0.10677247494459152, -0.2746529281139374, -0.001990505028516054, -0.29649218916893005, -0.240092471241951, 0.13277864456176758, 0.11898768693208694, 0.06317373365163803, 0.08431518822908401, 0.12646202743053436, 0.18821638822555542, -0.2465553730726242, 0.07111992686986923, 0.0024904145393520594, 0.14691457152366638, -0.25754648447036743, -0.003993775229901075, 0.3881654441356659, -0.015042376704514027, -0.28813931345939636, 0.16520185768604279, 0.21570853888988495, 0.03870035707950592, -0.1121264323592186, 0.22154384851455688, -0.057987701147794724, 0.09887678921222687, -0.14751681685447693, 0.086048923432827, 0.19665253162384033, 0.2050221711397171, 0.1241287812590599, 0.2433703988790512, -0.36168918013572693, 0.0829414650797844, 0.2663654088973999, -0.09368032962083817, 0.007011814508587122, 0.17932280898094177, 0.049992818385362625, 0.3326553404331207, -0.24428117275238037, 0.13019250333309174, -0.4037367105484009, -0.09277290105819702, 0.3473377227783203, 0.1063140407204628, -0.03241100162267685, -0.1338120847940445, 0.16362334787845612, 0.30087098479270935, 0.2863393723964691, 0.2391321361064911, 0.17174021899700165, 0.055113181471824646, -0.14677895605564117, -0.3187093138694763, 0.07492631673812866, 0.13803185522556305, 0.006470186170190573, 0.035337693989276886, 0.3323945701122284, 0.25155484676361084, 0.41709282994270325, -0.02929670736193657, -0.19629816710948944, -0.017417775467038155, 0.15137286484241486, -0.033828482031822205, 0.12291666865348816, 0.14771224558353424, 0.15130218863487244, 0.050928227603435516, -0.11688560992479324, -0.25033020973205566, -0.07869889587163925, 0.1806657612323761, -0.2451581060886383, -0.024823879823088646, -0.1587815284729004, -0.30331453680992126, 0.2724941074848175, -0.08480152487754822, 0.20592063665390015, -0.38826772570610046, -0.07118656486272812, 0.10931999981403351, -0.28377968072891235, -0.01840231381356716, 0.35393503308296204, -0.04922933876514435, 0.21336005628108978, -0.06021871790289879, 0.012498216703534126, 0.05512639880180359, -0.1149764358997345, 0.09854910522699356, 0.16418945789337158, -0.15214771032333374, -0.010428768582642078, 0.41371047496795654, -0.22939260303974152, -0.03545575961470604, 0.6886966228485107, 0.0779254361987114, -0.059468552470207214, -0.02334374561905861, -0.1827036589384079, -0.08375370502471924, -0.1309295892715454, -0.27041175961494446, 0.05650343373417854, 0.03468533232808113, 0.10692715644836426, -0.04410214349627495, -0.4928300678730011, 0.07255967706441879, 0.2490631639957428, 0.4061504006385803, -0.07929736375808716, 0.20875397324562073, 0.15675362944602966, -0.15365219116210938, -0.05040524899959564, -0.08005616068840027, 0.043657854199409485, -0.1664244830608368, -0.020954554900527, -0.35976868867874146 ]
https://github.com/huggingface/datasets/issues/827
[GEM] MultiWOZ dialogue dataset
Hi @yjernite can I help in adding this dataset? I am excited about this because this will be my first contribution to the datasets library as well as to hugginface.
## Adding a Dataset - **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz) - **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side. - **Paper:** https://arxiv.org/pdf/2007.12720.pdf - **Data:** https://github.com/budzianowski/multiwoz - **Motivation:** Will likely be part of the GEM shared task Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
30
[GEM] MultiWOZ dialogue dataset ## Adding a Dataset - **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz) - **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side. - **Paper:** https://arxiv.org/pdf/2007.12720.pdf - **Data:** https://github.com/budzianowski/multiwoz - **Motivation:** Will likely be part of the GEM shared task Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hi @yjernite can I help in adding this dataset? I am excited about this because this will be my first contribution to the datasets library as well as to hugginface.
[ -0.04956013336777687, -0.12617599964141846, 0.048442542552948, 0.5216325521469116, 0.02804717794060707, 0.24420487880706787, 0.22578966617584229, -0.12951311469078064, -0.07643004506826401, -0.03523065522313118, -0.3937840163707733, 0.028375936672091484, -0.4157283902168274, 0.37123623490333557, 0.27531537413597107, -0.4878650903701782, -0.040131572633981705, -0.1847277730703354, -0.057381320744752884, -0.06621617078781128, 0.05444646254181862, 0.2652641832828522, -0.08374939113855362, -0.014165239408612251, -0.7082771062850952, -0.2576466500759125, -0.24596336483955383, 0.5358031988143921, -0.05936712399125099, -0.213565394282341, -0.10258825123310089, -0.025391731411218643, -0.10535941272974014, 0.4787716567516327, -0.00011666063801385462, -0.2765078544616699, 0.24153749644756317, -0.07049544900655746, -0.1584596037864685, -0.19014249742031097, -0.30395936965942383, -0.1010892242193222, -0.15780052542686462, 0.04852573946118355, -0.06728534400463104, 0.11103961616754532, -0.23574763536453247, 0.07207924872636795, 0.11612877249717712, 0.21362073719501495, 0.14362484216690063, 0.1713855266571045, 0.2292744368314743, -0.14131562411785126, -0.07956074923276901, 0.17547953128814697, -0.13600753247737885, 0.1217547357082367, 0.16606701910495758, 0.12985482811927795, 0.13394159078598022, 0.286245733499527, -0.28687718510627747, -0.3387579619884491, 0.037869539111852646, -0.15657305717468262, -0.11373785883188248, -0.20211727917194366, -0.12083360552787781, 0.637771725654602, 0.7825872302055359, -0.046033866703510284, -0.4587574005126953, -0.18238742649555206, 0.1662181168794632, 0.18907137215137482, -0.015109010972082615, 0.2074819952249527, -0.19023974239826202, 0.08808088302612305, -0.4997955560684204, -0.3024020195007324, -0.11178635060787201, 0.1520482748746872, 0.16944392025470734, 0.489414244890213, -0.004837784916162491, 0.14982128143310547, 0.04069950431585312, -0.012936233542859554, -0.6592088937759399, 0.046182967722415924, -0.16322943568229675, -0.0782560482621193, -0.5269981622695923, -0.2313208431005478, 0.005497114732861519, 0.27646514773368835, 0.2792699933052063, 0.2418643683195114, 0.19333429634571075, 0.034385550767183304, -0.4858162999153137, -0.09636016190052032, 0.3565445840358734, -0.035755641758441925, 0.2355092614889145, -0.48369210958480835, -0.07681207358837128, -0.3012523949146271, 0.23713183403015137, 0.12385814636945724, -0.2489856332540512, 0.05686071887612343, -0.04543567821383476, -0.19125887751579285, 0.0778554230928421, 0.009876100346446037, 0.1015382930636406, -0.004685776773840189, -0.18816541135311127, -0.19040119647979736, 0.3987605571746826, 0.3084578812122345, -0.21767917275428772, 0.03102259524166584, -0.24667532742023468, 0.5173605680465698, 0.21409673988819122, -0.27504369616508484, -0.10066284239292145, 0.20847098529338837, -0.01859361119568348, 0.2577991783618927, 0.04165230691432953, -0.13724659383296967, 0.3089647591114044, 0.07684502005577087, 0.40375471115112305, 0.025137590244412422, 0.03575143218040466, 0.07236751914024353, 0.030919555574655533, 0.061165694147348404, 0.02656957507133484, 0.20061130821704865, 0.12791897356510162, 0.13859394192695618, -0.025920817628502846, 0.055595774203538895, -0.054170846939086914, -0.42408591508865356, -0.8219958543777466, 0.04196329042315483, -0.343351811170578, -0.452215313911438, -0.09663181751966476, 0.2801690995693207, 0.07589492946863174, -0.11191835254430771, 0.08984799683094025, 0.19271749258041382, -0.20061321556568146, -0.2603943645954132, 0.11810555309057236, 0.46603599190711975, -0.07393516600131989, 0.01999063231050968, -0.005178631283342838, 0.048931535333395004, 0.15146778523921967, 0.22659537196159363, -0.20792189240455627, 0.0020910599268972874, 0.03704734519124031, 0.5209833979606628, 0.09747735410928726, -0.13544528186321259, -0.009142516180872917, 0.12619388103485107, -0.15794391930103302, 0.4558417499065399, 0.22698380053043365, 0.4218328893184662, 0.04012541472911835, -0.07352273911237717, 0.23793461918830872, 0.2138478308916092, 0.08579813688993454, 0.00934184342622757, -0.12745068967342377, -0.21497273445129395, 0.3545297682285309, 0.14506419003009796, -0.14849843084812164, -0.2715400755405426, 0.021877262741327286, -0.05330467224121094, 0.39941900968551636, -0.07280813157558441, 0.21406757831573486, 0.18874458968639374, -0.04590030014514923, 0.32787346839904785, 0.006484500132501125, -0.3588356375694275, -0.04015403613448143, 0.04632459580898285, 0.4060165286064148, 0.36422625184059143, 0.21335916221141815, -0.09134538471698761, -0.05938102304935455, 0.020900744944810867, -0.1971779316663742, -0.3014433681964874, -0.020997604355216026, 0.30408918857574463, 0.019215095788240433, -0.21103599667549133, -0.32155126333236694, 0.614325225353241, 0.2347298562526703, -0.023854777216911316, -0.3885961174964905, 0.1535158008337021, 0.06428209692239761, -0.09546592831611633, -0.04938806965947151, 0.46579888463020325, -0.10185665637254715, -0.10154371708631516, 0.025634856894612312, 0.36334002017974854, -0.3810461759567261, -0.019166795536875725, 0.2527375817298889, 0.21155953407287598, 0.14555446803569794, -0.0376945398747921, 0.38085272908210754, -0.3574172854423523, 0.09353659301996231, -0.16663192212581635, -0.031677164137363434, 0.023785358294844627, 0.06880658864974976, -0.11386089771986008, -0.3425866961479187, 0.3334614038467407, 0.1323540061712265, -0.06007082760334015, -0.23784367740154266, -0.05019860342144966, 0.2843126654624939, -0.3968084156513214, -0.2087934911251068, 0.08618893474340439, -0.5717888474464417, 0.2553253471851349, 0.28858137130737305, -0.26811349391937256, 0.31208735704421997, -0.007546701468527317, -0.27822673320770264, -0.22802481055259705, -0.06771920621395111, -0.23924361169338226, 0.1310914009809494, 0.3073764741420746, 0.02686666138470173, -0.22624048590660095, 0.007741930428892374, 0.046138010919094086, 0.11795800179243088, 0.14771786332130432, 0.1421065330505371, 0.21559299528598785, 0.13174022734165192, 0.19539916515350342, -0.0600355789065361, -0.1858835220336914, 0.09173457324504852, 0.06127114221453667, -0.22027064859867096, -0.3777097463607788, -0.23157650232315063, 0.02065824531018734, -0.0031805303879082203, -0.8598551154136658, -0.37761688232421875, 0.021087484434247017, 0.18540765345096588, -0.2086370289325714, 0.18648794293403625, 0.14099852740764618, 0.17103707790374756, 0.09055177122354507, -0.16137570142745972, -0.096727155148983, -0.24730446934700012, -0.47410303354263306, 0.05991508811712265, 0.07063442468643188, 0.12548673152923584, -0.0712716281414032, 0.3366236686706543, 0.14794215559959412, 0.158691868185997, -0.12485147267580032, -0.33550846576690674, -0.04752402380108833, -0.3214031159877777, 0.3632979393005371, 0.18610432744026184, 0.00450140843167901, 0.1736127734184265, -0.5391621589660645, 0.09402024000883102, 0.0636407732963562, -0.10325314104557037, 0.0796099528670311, -0.058655746281147, -0.32878270745277405, 0.03438819944858551, -0.13300925493240356, -0.2042257934808731, -0.44641420245170593, 0.2932305634021759, -0.08222463726997375, 0.0681075006723404, 0.13885696232318878, -0.21830874681472778, 0.31257933378219604, -0.22824141383171082, 0.2930279076099396, -0.237443208694458, -0.43911057710647583, 0.3867267370223999, -0.15435653924942017, -0.15795449912548065, -0.04082139953970909, -0.2597218155860901, 0.27492886781692505, -0.20689262449741364, -0.12639185786247253, -0.23679441213607788, -0.1196153536438942, -0.12238118052482605, 0.15486842393875122, 0.007425610441714525, 0.3379839062690735, 0.1504378318786621, -0.11306530982255936, -0.07591140270233154, -0.41169002652168274, 0.1002102792263031, 0.47978052496910095, 0.32204797863960266, -0.022415772080421448, 0.015180665999650955, 0.027829831466078758, 0.4263085424900055, 0.25951215624809265, 0.19404658675193787, 0.14560766518115997, -0.04165969043970108, -0.050338249653577805, -0.12766031920909882, -0.6021887063980103, 0.362035870552063, -0.10722757875919342, 0.18035034835338593, 0.3086296021938324, 0.3506389558315277, 0.02975139021873474, 0.0051742978394031525, -0.3613125681877136, -0.4042971730232239, -0.24869471788406372, 0.030837392434477806, -0.13754498958587646, -0.16569197177886963, -0.30352938175201416, -0.3996599316596985, -0.29940351843833923, -0.2451193928718567, 0.25516799092292786, 0.45560428500175476, -0.1871863305568695, 0.06742270290851593, -0.055406395345926285, 0.20807881653308868, -0.11675786226987839, 0.2883271872997284, 0.28344422578811646, -0.24261415004730225, -0.32764312624931335, -0.006807090248912573, 0.10106480121612549, 0.2707676589488983, 0.8676870465278625, -0.35213786363601685, -0.4406846761703491, -0.01899191178381443, -0.0773836150765419, -0.11042045801877975, 0.20622152090072632, 0.06789351999759674, 0.21545752882957458, 0.22410397231578827, 0.4616445004940033, -0.08060009032487869, -0.042127061635255814, 0.4925207197666168, 0.2451322227716446, 0.0402819886803627, -0.09428814798593521, 0.11541074514389038, -0.2007349729537964, -0.444673091173172, 0.048264577984809875, -0.12066206336021423, 0.224832683801651, 0.412296324968338, -0.2588496208190918, 0.13954104483127594, 0.2476581484079361, 0.46592554450035095, -0.2856923043727875, -0.0763508677482605, 0.47659677267074585, 0.12371955066919327, 0.15714918076992035, -0.006900560110807419, -0.04675329104065895, 0.2670634388923645, 0.34915685653686523, -0.007356845773756504, -0.28861215710639954, -0.3671674132347107, 0.6399359107017517, 0.24582763016223907, 0.2599233090877533, -0.004391841124743223, -0.04969105124473572, 0.2666389048099518, -0.07027310132980347, 0.09053637832403183, -0.0380106084048748, 0.21933959424495697, -0.356973797082901, -0.291162371635437, 0.2542302906513214, -0.05667145177721977, -0.10891787707805634, 0.3481280207633972, 0.13936536014080048, 0.09175365418195724, 0.057511746883392334, -0.07080904394388199, 1.2208237648010254, -0.1219746544957161, 0.2385081946849823, 0.1832050234079361, 0.11858756095170975, 0.3062681555747986, -0.31338295340538025, 0.04340020567178726, -0.08879268914461136, 0.491865873336792, -0.10585962235927582, 0.05004110559821129, 0.07738367468118668, 0.06891599297523499, -0.27230969071388245, -0.12006073445081711, -0.12556952238082886, -0.3180561363697052, -0.17284660041332245, 0.17630895972251892, 0.16790920495986938, -0.4396866261959076, 0.19480304419994354, 0.09140494465827942, 0.02681346982717514, 0.09911731630563736, 0.19320198893547058, -0.470645010471344, -0.24781925976276398, -0.00618676096200943, -0.5756500959396362, -0.10301399976015091, -0.17779067158699036, -0.07515808194875717, 0.15107673406600952, -0.41257616877555847, 0.2650754153728485, 0.6566473841667175, -0.0458354577422142, -0.03648429363965988, -0.19065479934215546, -0.027059370651841164, -0.3097652196884155, -0.18004553020000458, -0.029072366654872894, 0.014604926109313965, 0.5625338554382324, -0.08564722537994385, -0.4616316854953766, 0.19136817753314972, -0.04054552689194679, -0.15743201971054077, -0.21438069641590118, 0.0939355194568634, 0.3513999879360199, -0.12341296672821045, 0.08407288789749146, 0.4758818745613098, 0.16323429346084595, -0.18820205330848694, 0.05873323231935501, 0.3752678632736206, -0.2726210653781891, 0.1003444492816925, -0.0824422761797905, -0.2002210021018982, -0.19213660061359406, 0.10645291954278946, -0.045168500393629074, 0.06491132080554962, 0.33585965633392334, 0.2078389674425125, 0.0046556852757930756, -0.16522786021232605, -0.11716792732477188, 0.012606297619640827, -0.029769496992230415, -0.2118094563484192, 0.5123299360275269, -0.18699467182159424, -0.04498852416872978, 0.016092240810394287, 0.1603277623653412, 0.16774244606494904, -0.08149175345897675, -0.34182897210121155, -0.17187920212745667, 0.157709538936615, 0.015029743313789368, 0.035760749131441116, -0.20855669677257538, 0.11394603550434113, 0.2710704803466797, 0.46995946764945984, -0.2757551074028015, 0.016770219430327415, -0.28065821528434753, -0.02905295044183731, 0.5896814465522766, -0.2300725281238556, 0.1488160490989685, -0.07899174839258194, 0.0771973580121994, -0.4200705289840698, -0.11014342308044434, -0.08854109048843384, -0.3610195517539978, 0.16844958066940308, 0.07487259060144424, -0.15407706797122955, 0.27068182826042175, 0.01580600067973137, -0.08948030322790146, -0.2250717133283615, 0.3320053815841675, 0.2376990169286728, -0.07032270729541779, 0.046286407858133316, -0.24844707548618317, -0.01969357766211033, -0.3048258423805237, 0.13482259213924408, 0.19871245324611664, 0.07256363332271576, -0.03848220407962799, -0.07032077014446259, 0.04900296777486801, -0.2940419316291809, 0.21466203033924103, 0.2510712146759033, 0.14166857302188873, -0.05680273845791817, -0.03308189660310745, 0.14400996267795563, -0.025384871289134026, 0.3045445680618286, 0.3379090428352356, -0.2967102825641632, 0.11204670369625092, 0.2842159569263458, 0.07079677283763885, 0.04391200467944145, -0.20232953131198883, -0.14327941834926605, 0.16102983057498932, -0.2441747486591339, 0.052966173738241196, 0.1319916844367981, -0.05118585750460625, 0.13435766100883484, 0.008550130762159824, -0.33713221549987793, 0.09456875175237656, -0.17361712455749512, -0.05588752403855324, 0.04129515960812569, -0.4468115270137787, -0.1386161744594574, 0.31727564334869385, 0.2480267435312271, 0.2894786298274994, 0.16978693008422852, 0.0131892254576087, 0.23502568900585175, 0.014065180905163288, 0.08100853860378265, 0.022241681814193726, -0.1308627873659134, 0.27271488308906555, -0.062114473432302475, 0.13890144228935242, -0.09646685421466827, -0.012795939110219479, 0.8489485383033752, -0.05316567048430443, 0.09395486116409302, -0.18235290050506592, 0.4093399941921234, -0.03856487199664116, 0.019860675558447838, 0.186321422457695, -0.19020265340805054, -0.2819323241710663, -0.18897390365600586, 0.030458755791187286, -0.193951815366745, 0.5753382444381714, 0.10229536890983582, 0.15990649163722992, -0.5247254967689514, -0.11948627233505249, 0.0622982457280159, -0.2186882495880127, -0.3328736424446106, 0.12734846770763397, 0.41762247681617737, -0.23353980481624603, 0.2680811285972595, 0.2843911349773407, 0.5901278257369995, 0.0581667535007, 0.05921918898820877, 0.3245365619659424, -0.25793522596359253, -0.07143637537956238, 0.04023820906877518, 0.3600100576877594, 0.19420106709003448, 0.12069842219352722, 0.13784602284431458, -0.005047503858804703, -0.10752047598361969, 0.27803945541381836, -0.09807772934436798, -0.06318999826908112, -0.32606202363967896, 0.27016767859458923, -0.1711445301771164, -0.3203284740447998, -0.28235942125320435, 0.009438243694603443, -0.4559195339679718, -0.40437060594558716, 0.3326563537120819, 0.023500172421336174, -0.2664998173713684, -0.2315288633108139, 0.052577950060367584, 0.04101698473095894, 0.40599966049194336, 0.34727683663368225, 0.17927521467208862, 0.07046452909708023, 0.2959877550601959, -0.6454327702522278, -0.15854281187057495, 0.3647215962409973, -0.08004355430603027, -0.01597355119884014, -0.1301053762435913, 0.5115658044815063, 0.19025184214115143, 0.08101474493741989, -0.35652509331703186, -0.0754355937242508, 0.07003144919872284, -0.1761058121919632, 0.4418858587741852, 0.4003616273403168, 0.17969650030136108, 0.29142946004867554, 0.23232191801071167, 0.02749704010784626, -0.01366202998906374, -0.06434015184640884, -0.09573449194431305, -0.10599321126937866, 0.008534270338714123, -0.3982711434364319, 0.23329338431358337, -0.13172082602977753, 0.6390534043312073, -0.13946440815925598, 0.10828696936368942, -0.0935807153582573, -0.0011766996467486024, -0.15515722334384918, 0.11792163550853729, 0.044416576623916626, 0.6158029437065125, -0.15106867253780365, 0.06702306866645813, 0.012198508717119694, -0.1279335916042328, -0.2693747580051422, 0.33733174204826355, 0.012193039990961552, 0.14586113393306732, -0.09135014563798904, -0.11882763355970383, 0.309187114238739, 0.26245808601379395, -0.05213066563010216, 0.10513424873352051, 0.018557552248239517, -0.0795295387506485, 0.5583522915840149, -0.070338673889637, -0.25768551230430603, -0.41207030415534973, 0.19722770154476166, 0.09154839813709259, -0.05192946270108223, -0.5948372483253479, 0.02843553200364113, 0.18021005392074585, 0.3053230941295624, -0.2246883362531662, 0.4031970798969269, 0.1277083158493042, -0.1863013356924057, -0.0024881192948669195, 0.04751075804233551, -0.039752937853336334, 0.04465067386627197, 0.21816255152225494, -0.05626087635755539 ]
https://github.com/huggingface/datasets/issues/824
Discussion using datasets in offline mode
I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;)
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too. I create this ticket to discuss a bit and gather what you have in mind or other propositions. Here are some points to open discussion: - if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine. - AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally. - I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet. WDYT? (thks)
72
Discussion using datasets in offline mode `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too. I create this ticket to discuss a bit and gather what you have in mind or other propositions. Here are some points to open discussion: - if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine. - AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally. - I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet. WDYT? (thks) I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;)
[ -0.6300705075263977, 0.20589002966880798, -0.010249732993543148, 0.13883313536643982, 0.19344623386859894, -0.17377188801765442, 0.5314205884933472, 0.08316333591938019, 0.35007405281066895, 0.23671214282512665, 0.13064685463905334, -0.0646166205406189, -0.11494839936494827, 0.48925864696502686, -0.06132404878735542, -0.03587701544165611, -0.166447713971138, -0.037064239382743835, -0.20752239227294922, 0.16657644510269165, -0.1922239512205124, -0.16346295177936554, -0.5264270305633545, -0.15635628998279572, -0.23780305683612823, -0.282121479511261, -0.05079598352313042, 0.1434432715177536, -0.06754892319440842, -0.3244417607784271, 0.28890952467918396, 0.13823503255844116, 0.22350190579891205, 0.44493505358695984, -0.00010756037954706699, 0.045971792191267014, 0.0817120298743248, 0.04249963164329529, -0.21935877203941345, -0.3220708966255188, -0.27401623129844666, -0.5323526263237, 0.17921417951583862, -0.3614763617515564, -0.2261405736207962, -0.10601993650197983, -0.002287650713697076, -0.4843769371509552, 0.35584813356399536, 0.2895817756652832, 0.19220758974552155, 0.6198394298553467, -0.22992315888404846, -0.24319791793823242, -0.16771970689296722, -0.16562046110630035, -0.1867385357618332, 0.35897693037986755, 0.16425034403800964, -0.03841136023402214, -0.07064424455165863, 0.09212014079093933, -0.10443434864282608, 0.09724467247724533, 0.4349202513694763, 0.09935714304447174, -0.1420593112707138, -0.07171503454446793, 0.1741679161787033, 0.5084939002990723, 0.5811336636543274, -0.2377757579088211, -0.23522377014160156, -0.20792172849178314, -0.11210134625434875, -0.4787673354148865, 0.08849184215068817, 0.17630165815353394, 0.04405885189771652, 0.30340519547462463, -0.4776996374130249, -0.2545405924320221, -0.3263365626335144, 0.1942964345216751, -0.4016202986240387, 0.20139336585998535, -0.19172357022762299, 0.10689327865839005, -0.18274621665477753, 0.153390035033226, -0.007584426552057266, -0.23370178043842316, 0.15502943098545074, -0.13029184937477112, -0.3167192041873932, -0.014024686999619007, 0.08251706510782242, 0.2733767032623291, 0.039419278502464294, 0.1726531833410263, 0.16442878544330597, 0.029657667502760887, 0.07031016051769257, 0.038814976811409, 0.3789528012275696, 0.21983778476715088, -0.1209217980504036, -0.31167611479759216, 0.6292070746421814, 0.006874983664602041, 0.029025282710790634, -0.24221251904964447, 0.3572407066822052, -0.33223071694374084, 0.12502703070640564, -0.0004767322388943285, 0.3401120603084564, -0.09635843336582184, -0.12813062965869904, 0.06240140274167061, 0.18315614759922028, -0.1575585901737213, 0.0885406881570816, 0.21606506407260895, -0.26177623867988586, 0.030570918694138527, 0.1420491635799408, 0.41521281003952026, -0.2527974545955658, -0.30338937044143677, -0.0704958513379097, -0.17856945097446442, -0.08968701213598251, 0.1340274065732956, 0.31636711955070496, 0.25986698269844055, 0.025487955659627914, -0.03438541665673256, 0.1714944988489151, -0.013373593799769878, 0.424575537443161, -0.09018843621015549, 0.1361575573682785, 0.301831990480423, 0.1157083585858345, -0.06005566194653511, 0.0591590479016304, -0.11812647432088852, 0.05986771732568741, 0.012716907076537609, -0.11565949767827988, -0.34048327803611755, 0.2708463668823242, 0.21293377876281738, -0.5129669904708862, -0.10994572192430496, -0.32533204555511475, 0.06779932975769043, -0.3322134017944336, -0.11214621365070343, -0.0031909362878650427, -0.1588512361049652, -0.30204927921295166, -0.21838760375976562, 0.2850368916988373, 0.6506162285804749, -0.5364603996276855, 0.1531350016593933, -0.03368986025452614, -0.13713522255420685, -0.14964236319065094, 0.09439355134963989, -0.3362303078174591, 0.6654826998710632, -0.011889103800058365, -0.3396769165992737, 0.4533728361129761, -0.4085681140422821, -0.2588604986667633, 0.27768436074256897, -0.3286612033843994, -0.07293374836444855, -0.06540573388338089, 0.20602679252624512, 0.421136736869812, 0.06577767431735992, 0.09295487403869629, 0.18746960163116455, -0.051974181085824966, -0.02440418303012848, -0.19456729292869568, -0.2632913887500763, 0.2911953032016754, 0.20454028248786926, 0.33464157581329346, 0.06694135814905167, 0.3081211745738983, -0.17368027567863464, 0.04351726546883583, -0.18464842438697815, 0.2528409957885742, 0.015407643280923367, 0.1728469878435135, -0.021774575114250183, -0.11278057098388672, -0.17365619540214539, -0.6063700318336487, 0.30642521381378174, 0.02316911704838276, 0.09688074141740799, -0.18692874908447266, -0.11879575997591019, 0.02409597672522068, -0.19196303188800812, -0.09548918902873993, 0.05047714710235596, 0.10247722268104553, -0.2254907488822937, 0.08084989339113235, 0.12836796045303345, -0.25648245215415955, 0.20296704769134521, -0.1189570426940918, -0.009911034256219864, 0.04384392499923706, 0.2811495363712311, -0.04895947128534317, 0.029020749032497406, 0.03810344636440277, 0.0005988008924759924, 0.021439392119646072, -0.21497201919555664, -0.017181910574436188, 0.4893762469291687, 0.00060557626420632, 0.13988535106182098, 0.24352781474590302, 0.47668927907943726, 0.3864600956439972, -0.15457594394683838, 0.5698554515838623, -0.020958861336112022, 0.26977479457855225, -0.23454788327217102, -0.25906920433044434, 0.5913994908332825, -0.19499771296977997, 0.21102045476436615, 0.08512888848781586, -0.0037556227762252092, 0.14914175868034363, -0.016528092324733734, -0.4646923840045929, -0.07183325290679932, -0.0075027733109891415, 0.0016718743136152625, 0.12558606266975403, -0.10014145076274872, -0.30273979902267456, 0.07621177285909653, 0.3309547007083893, 0.08893439173698425, 0.25625357031822205, -0.18486177921295166, -0.08068672567605972, 0.09444500505924225, -0.014333578757941723, 0.02077234536409378, 0.5388509631156921, 0.13155107200145721, 0.04889458790421486, 0.28172749280929565, -0.01580335572361946, -0.3472723364830017, 0.12460833787918091, 0.21989424526691437, -0.022870484739542007, 0.09089332818984985, 0.031137723475694656, -0.029392745345830917, -0.1287691593170166, 0.02646114118397236, 0.012083114124834538, -0.028605498373508453, -0.255480021238327, 0.24542085826396942, -0.3986748158931732, 0.03958786651492119, -0.0565151572227478, 0.09324272722005844, -0.3712320625782013, -0.23911044001579285, 0.04685236141085625, 0.13364997506141663, -0.2514073848724365, 0.14895747601985931, -0.1666201651096344, 0.5206554532051086, -0.24187643826007843, -0.14735057950019836, 0.19685876369476318, -0.5571702718734741, -0.1149326041340828, 0.08467042446136475, 0.36012741923332214, 0.21781128644943237, 0.4645659029483795, -0.04898914694786072, -0.08494649082422256, -0.35219496488571167, -0.14366227388381958, 0.025949623435735703, -0.03724692761898041, 0.3027529716491699, 0.04372106492519379, 0.21295934915542603, -0.030940918251872063, 0.21633930504322052, 0.3268584907054901, -0.34768325090408325, 0.26100969314575195, 0.01459649670869112, 0.012082216329872608, -0.14285962283611298, -0.32492077350616455, -0.5815714001655579, -0.5232018232345581, -0.33548206090927124, 0.15991778671741486, 0.005976150278002024, -0.06020643934607506, 0.04779253154993057, 0.09593599289655685, 0.04866188019514084, 0.0634135976433754, 0.05416475236415863, -0.1572209745645523, -0.4133065640926361, 0.18012981116771698, -0.17369885742664337, -0.5983697772026062, 0.40908291935920715, 0.14456553757190704, 0.18663042783737183, 0.44468045234680176, -0.4329780042171478, -0.1786327362060547, 0.09994763135910034, 0.4149426221847534, 0.21946068108081818, 0.36986786127090454, 0.4159153997898102, -0.02635856904089451, -0.004489970859140158, -0.1017855554819107, 0.16042648255825043, 0.21315519511699677, -0.05015940964221954, -0.07273101061582565, 0.19465066492557526, 0.11702217906713486, -0.09093042463064194, 0.5493084788322449, -0.059843022376298904, 0.06260482221841812, 0.22847475111484528, -0.11739672720432281, 0.6396966576576233, -0.16416193544864655, -0.08310071378946304, 0.13868913054466248, -0.06559481471776962, -0.23004232347011566, 0.2599753737449646, -0.06578037142753601, 0.04064371809363365, -0.6198853254318237, 0.002017853083088994, -0.36967581510543823, -0.43922051787376404, 0.09879685938358307, 0.26682212948799133, 0.4354865252971649, 0.21883134543895721, 0.23445111513137817, -0.2026192843914032, -0.1401427835226059, -0.04322895407676697, 0.2950339615345001, 0.11437705159187317, -0.009511427022516727, -0.16620083153247833, 0.07182148844003677, -0.3588623106479645, 0.31795021891593933, -0.13878133893013, 0.3281271159648895, -0.04747716337442398, -0.018320830538868904, -0.060910310596227646, -0.048376232385635376, 0.3537313938140869, -0.4296550750732422, 0.008043801411986351, 0.23102982342243195, -0.08944179117679596, -0.2590503990650177, 0.048130594193935394, -0.30235522985458374, -0.10707276314496994, 0.12329529970884323, 0.2312658727169037, -0.00906195305287838, -0.28905123472213745, -0.09357555210590363, 0.4394928514957428, -0.33069249987602234, -0.149136483669281, -0.13003964722156525, -0.026464512571692467, -0.29656168818473816, 0.115324966609478, -0.11981157213449478, -0.017298340797424316, -0.23137815296649933, 0.09640897065401077, -0.17049190402030945, 0.168647900223732, -0.05812531337141991, 0.06910854578018188, 0.06910058856010437, -0.23439568281173706, 0.26247820258140564, 0.25589054822921753, 0.15092594921588898, 0.5121368169784546, 0.24539272487163544, -0.055690329521894455, -0.08110639452934265, 0.1570570319890976, -0.07040761411190033, 0.4112347662448883, 0.4923601448535919, -0.11256713420152664, -0.17653509974479675, 0.2434663474559784, 0.25880712270736694, -0.5872603058815002, -0.09392008185386658, 0.08925649523735046, 0.13189975917339325, -0.1381249874830246, -0.2807331383228302, 0.21458594501018524, 0.14363525807857513, -0.04983477294445038, -0.028028061613440514, 0.275249719619751, -0.2484542429447174, 0.04563574120402336, -0.0597793310880661, 0.747133731842041, -0.050354547798633575, 0.22995033860206604, 0.1710416078567505, 0.13450740277767181, 0.3820538818836212, -0.35705623030662537, 0.024257533252239227, 0.008343495428562164, -0.2609069347381592, -0.11216626316308975, -0.15179751813411713, 0.3989059627056122, 0.1196511834859848, -0.15894587337970734, 0.575249433517456, -0.048812832683324814, 0.3787561357021332, -0.30569273233413696, 0.2353726476430893, -0.06900177150964737, -0.15093547105789185, -0.2804450988769531, 0.19454436004161835, 0.08410491049289703, 0.13250713050365448, -0.2965500056743622, -0.19993849098682404, 0.08050111681222916, 0.10320466011762619, 0.019974926486611366, -0.16058003902435303, -0.09080301970243454, 0.07508958131074905, -0.20808091759681702, 0.011015641503036022, 0.18451327085494995, 0.0723552256822586, 0.44888341426849365, 0.23549683392047882, -0.4055699110031128, 0.023927636444568634, -0.4745924472808838, 0.16891413927078247, -0.014764856547117233, 0.2257872372865677, 0.21196229755878448, -0.20739848911762238, -0.27589577436447144, 0.05849235877394676, -0.09012740105390549, 0.052082546055316925, 0.4216806888580322, -0.09121822565793991, -0.1135953739285469, -0.20784233510494232, 0.14003580808639526, 0.2337011843919754, 0.12709400057792664, -0.1188962534070015, 0.13028009235858917, 0.17504428327083588, 0.11431638151407242, 0.434813916683197, -0.04899268224835396, -0.11535821110010147, -0.22523020207881927, 0.30773502588272095, -0.11982491612434387, -0.15282554924488068, -0.087899349629879, 0.2735419273376465, -0.20318903028964996, -0.3384055197238922, 0.19644875824451447, 0.04651636257767677, 0.04490656033158302, 0.22585946321487427, 0.40770354866981506, 0.41825637221336365, -0.11939525604248047, 0.45940718054771423, 0.03486674651503563, -0.17338141798973083, -0.13168203830718994, -0.3336317539215088, -0.31154415011405945, 0.285828560590744, 0.4760403335094452, 0.1319066733121872, 0.04295908659696579, 0.013514602556824684, 0.08008378744125366, -0.16909757256507874, -0.3756701946258545, -0.008008952252566814, -0.030189944431185722, 0.08056563884019852, 0.1734398603439331, -0.16460971534252167, 0.31843939423561096, -0.1392020285129547, -0.0031451922841370106, -0.19642424583435059, -0.4073604345321655, -0.21969132125377655, -0.005601805634796619, 0.21712267398834229, 0.07291293889284134, -0.44103753566741943, 0.07734709978103638, -0.5827113389968872, -0.24327027797698975, -0.16122962534427643, 0.28872790932655334, 0.40885549783706665, -0.19862449169158936, 0.013257795013487339, -0.03238752856850624, 0.3897837996482849, -0.19864366948604584, 0.13789606094360352, 0.08113045990467072, 0.2517082393169403, -0.11562091112136841, 0.20894697308540344, 0.11446566134691238, 0.04556490480899811, 0.08765548467636108, 0.08930762857198715, 0.16646640002727509, 0.16183793544769287, 0.41945680975914, -0.22427399456501007, 0.025538891553878784, 0.15120892226696014, 0.5265102982521057, 0.25310468673706055, -0.04037623107433319, 0.11892051994800568, 0.12351397424936295, 0.19604986906051636, -0.39905795454978943, 0.034120142459869385, 0.1256486475467682, 0.16306708753108978, 0.3431501090526581, 0.06985857337713242, 0.46202290058135986, -0.04085087776184082, -0.20966079831123352, 0.017809594050049782, 0.2600041329860687, -0.29195520281791687, 0.21901308000087738, 0.023189684376120567, 0.01356865931302309, 0.14649996161460876, 0.020375410094857216, 0.39325881004333496, -0.060254890471696854, 0.24684752523899078, -0.3339204490184784, 0.2350607067346573, 0.07476978749036789, 0.12309528887271881, -0.19126008450984955, -0.4348839521408081, 0.24127668142318726, -0.0731847956776619, -0.18556368350982666, -0.27163395285606384, -0.29432758688926697, 0.03324858471751213, -0.3944121301174164, -0.06907583028078079, -0.18657293915748596, 0.09166763722896576, -0.12385690212249756, 0.010789464227855206, -0.38347187638282776, -0.3246232867240906, 0.03489617258310318, 0.1055619865655899, 0.09627754241228104, -0.04373263567686081, -0.006470852997153997, 0.08199305087327957, 0.0759533941745758, -0.10923921316862106, 0.16547946631908417, -0.07992637902498245, 0.043488889932632446, -0.030206851661205292, -0.03926672041416168, 0.25232166051864624, 0.07016868889331818, 0.14733871817588806, 0.3580792248249054, 0.2618342936038971, 0.038681816309690475, -0.22274178266525269, 0.20190483331680298, -0.010303918272256851, -0.11178594082593918, -0.16314026713371277, 0.17227602005004883, 0.006302802823483944, 0.030220817774534225, 0.37163683772087097, 0.12454089522361755, -0.11983184516429901, 0.34409773349761963, -0.13383330404758453, -0.17426201701164246, -0.45635199546813965, 0.22292129695415497, 0.1796981543302536, -0.16422393918037415, -0.10598020255565643, -0.1711055189371109, -0.07317408174276352, 0.055053599178791046, 0.43357613682746887, 0.011454365216195583, 0.15843628346920013, -0.20451577007770538, 0.09112820774316788, 0.0008951710187830031, 0.5557257533073425, 0.1665416955947876, 0.27248433232307434, -0.29187455773353577, 0.043472010642290115, -0.8117443323135376, -0.1683027595281601, -0.2191196084022522, 0.4150383770465851, -0.07442790269851685, 0.0899982899427414, 0.09127147495746613, 0.4602128565311432, 0.09219644218683243, 0.16430649161338806, 0.04270309582352638, -0.19500774145126343, -0.3067814111709595, -0.08964729309082031, -0.1256375014781952, -0.04479023441672325, -0.04254375398159027, -0.25630027055740356, 0.13804365694522858, -0.35281476378440857, -0.025443123653531075, 0.027875034138560295, 0.193094402551651, -0.15982306003570557, -0.09960160404443741, 0.460858553647995, 0.11999842524528503, 0.44144126772880554, 0.1976626217365265, -0.015753645449876785, -0.19625379145145416, 0.07384685426950455, -0.0716666728258133, 0.12750761210918427, -0.028934970498085022, -0.005289921071380377, -0.17572662234306335, -0.13767017424106598, -0.18859319388866425, 0.18718303740024567, 0.029352987185120583, 0.08233023434877396, -0.08898957818746567, -0.12226051092147827, -0.07349995523691177, 0.13611118495464325, 0.054161056876182556, 0.028136830776929855, -0.1415179818868637, 0.16708029806613922, -0.19070209562778473, -0.0634680762887001, 0.32723814249038696, -0.0947411060333252, 0.012626180425286293, -0.5545061230659485, 0.33337461948394775, 0.0527845062315464, 0.057175103574991226, -0.3271181583404541, 0.15053732693195343, 0.26961880922317505, -0.21434767544269562, -0.1104709580540657, 0.22540993988513947, -0.24659332633018494, -0.25829389691352844, -0.03566355258226395, 0.28656211495399475, -0.2709176540374756, -0.22240696847438812, -0.16858579218387604, -0.12922218441963196 ]
https://github.com/huggingface/datasets/issues/824
Discussion using datasets in offline mode
Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine. @mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like?
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too. I create this ticket to discuss a bit and gather what you have in mind or other propositions. Here are some points to open discussion: - if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine. - AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally. - I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet. WDYT? (thks)
57
Discussion using datasets in offline mode `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too. I create this ticket to discuss a bit and gather what you have in mind or other propositions. Here are some points to open discussion: - if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine. - AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally. - I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet. WDYT? (thks) Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine. @mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like?
[ -0.4731808602809906, 0.24578340351581573, -0.012630880810320377, 0.14121438562870026, 0.28335481882095337, -0.14702117443084717, 0.6012275218963623, 0.012776007875800133, 0.2687811255455017, 0.13127779960632324, -0.024037420749664307, -0.02398543246090412, -0.02466224506497383, 0.4021068811416626, -0.09124048799276352, -0.10213779658079147, -0.1722332388162613, 0.03887725621461868, -0.15400518476963043, 0.13259480893611908, -0.14081038534641266, -0.1281193643808365, -0.37270888686180115, -0.028235649690032005, -0.16281439363956451, -0.18658699095249176, 0.009141584858298302, 0.14202147722244263, -0.15723110735416412, -0.2762962281703949, 0.2854108512401581, 0.18052446842193604, 0.22389551997184753, 0.479124516248703, -0.00010423074854770675, 0.14376701414585114, 0.054555151611566544, -0.013488573022186756, -0.20690195262432098, -0.33818677067756653, -0.19177435338497162, -0.3979361057281494, 0.23375773429870605, -0.40073785185813904, -0.21508468687534332, 0.03653770312666893, -0.07347284257411957, -0.3958374261856079, 0.31507444381713867, 0.30793827772140503, 0.25268879532814026, 0.6633726358413696, -0.14806091785430908, -0.32286974787712097, -0.17233042418956757, 0.01020298432558775, -0.23923401534557343, 0.39254695177078247, 0.06179114803671837, -0.07088591158390045, -0.11109811812639236, 0.11631757020950317, -0.1192907765507698, 0.011944175697863102, 0.3592289686203003, 0.09901534020900726, -0.0436064675450325, -0.09265794605016708, 0.12865471839904785, 0.45499008893966675, 0.38576745986938477, -0.22564667463302612, -0.3233908712863922, -0.41150233149528503, -0.12132852524518967, -0.39928436279296875, 0.07776395231485367, 0.09158273041248322, -0.0518016554415226, 0.2859634459018707, -0.45085981488227844, -0.27706068754196167, -0.3688122630119324, 0.0866336077451706, -0.34369251132011414, 0.1290593147277832, -0.22098082304000854, 0.05186000093817711, -0.059452299028635025, 0.17649807035923004, -0.17837679386138916, -0.28105098009109497, 0.13426470756530762, -0.13189198076725006, -0.2653568685054779, -0.07102584838867188, 0.16602462530136108, 0.048949774354696274, 0.13250187039375305, 0.08356987684965134, 0.24560345709323883, 0.013487175107002258, 0.06306207925081253, 0.0728726014494896, 0.4931006133556366, 0.27011802792549133, -0.06640517711639404, -0.16545221209526062, 0.5901673436164856, 0.16802771389484406, 0.015406823717057705, -0.29846227169036865, 0.34388065338134766, -0.24740877747535706, 0.05114385113120079, -0.004453724715858698, 0.39344102144241333, -0.2904769480228424, -0.07055842876434326, -0.02893861010670662, 0.2609567940235138, -0.042250290513038635, 0.230247363448143, 0.2531340420246124, -0.20073574781417847, 0.023908095434308052, 0.0023882323876023293, 0.3707026541233063, -0.25833168625831604, -0.2877787947654724, -0.06917796283960342, -0.2514782249927521, -0.15245693922042847, 0.09091485291719437, 0.1942048817873001, 0.09884781390428543, 0.09316489100456238, -0.03527930751442909, 0.2799161970615387, 0.019316956400871277, 0.27842584252357483, -0.0613347627222538, -0.0014956591185182333, 0.30236032605171204, 0.11023368686437607, -0.06810861825942993, 0.12143787741661072, -0.18612292408943176, 0.025751939043402672, 0.05654238536953926, -0.0653337612748146, -0.46220269799232483, 0.17617864906787872, 0.2197204977273941, -0.673206090927124, -0.22239936888217926, -0.2730337083339691, 0.15556512773036957, -0.23693576455116272, -0.21249602735042572, 0.0235863346606493, 0.018461549654603004, -0.2118947058916092, -0.21170595288276672, 0.2878766357898712, 0.5173383951187134, -0.4603881537914276, 0.012950078584253788, 0.04471147805452347, -0.21360836923122406, -0.20716474950313568, 0.1019187942147255, -0.4149196743965149, 0.6289386749267578, 0.010753529146313667, -0.38167476654052734, 0.5595380067825317, -0.30481886863708496, -0.31402918696403503, 0.27264195680618286, -0.16057263314723969, -0.004587129689753056, -0.05343266949057579, 0.1087547242641449, 0.4603523910045624, 0.08486741781234741, -0.09082411974668503, 0.2521175146102905, -0.128144770860672, -0.013009217567741871, -0.26151156425476074, -0.3172560930252075, 0.1956143081188202, 0.3260177969932556, 0.32254213094711304, 0.1708080768585205, 0.25759589672088623, -0.18613775074481964, -0.00852460227906704, -0.16226908564567566, 0.12020512670278549, 0.042386990040540695, 0.2255624681711197, 0.06719634681940079, -0.010230964049696922, -0.1653406172990799, -0.5502768754959106, 0.27963095903396606, -0.028710339218378067, 0.21882721781730652, -0.21580281853675842, -0.21077780425548553, -0.027634410187602043, -0.19524231553077698, -0.1810876727104187, -0.0795598030090332, 0.11711066216230392, -0.1978260576725006, 0.08592209964990616, 0.0982891172170639, -0.29007041454315186, 0.11372985690832138, -0.011981474235653877, 0.02174230106174946, -0.1584363728761673, 0.3012234568595886, -0.04983986169099808, 0.08366195112466812, -0.15510974824428558, 0.056288763880729675, -0.05459929630160332, -0.16224367916584015, -0.0954592302441597, 0.5110427737236023, -0.023886246606707573, 0.05632637068629265, 0.2349386066198349, 0.5590954422950745, 0.3679666519165039, 0.004375670105218887, 0.49562904238700867, -0.05021299794316292, 0.32130852341651917, -0.11147026717662811, -0.39841988682746887, 0.7357344627380371, -0.14405199885368347, 0.2574727237224579, 0.09899382293224335, -0.01645650900900364, 0.2910701632499695, -0.0265040323138237, -0.44888240098953247, -0.02203645184636116, 0.018365083262324333, 0.014575527980923653, 0.21398736536502838, -0.03515459969639778, -0.3072083294391632, 0.007390376180410385, 0.36606839299201965, 0.06533289700746536, 0.15091422200202942, -0.0016656306106597185, -0.07140051573514938, 0.06185626983642578, -0.08471044898033142, 0.09613891690969467, 0.5059419870376587, 0.22251036763191223, -0.00208491669036448, 0.222269207239151, -0.07521802186965942, -0.2918921709060669, 0.16224467754364014, 0.2784018814563751, 0.011780060827732086, 0.09482193738222122, 0.11065088957548141, -0.013544192537665367, -0.2606649696826935, -0.08511977642774582, 0.010415279306471348, 0.052130334079265594, -0.317143052816391, 0.3023551404476166, -0.19214102625846863, 0.044679660350084305, 0.011665244586765766, 0.10387904942035675, -0.5033847093582153, -0.19162870943546295, 0.17389363050460815, 0.08669796586036682, -0.2768392264842987, 0.1611507683992386, -0.0816921517252922, 0.5301477313041687, -0.18624165654182434, -0.1722712218761444, 0.17858754098415375, -0.5872231721878052, -0.06184207648038864, 0.09926620125770569, 0.3291292190551758, 0.031593453139066696, 0.4697219431400299, 0.11053112149238586, -0.10048907995223999, -0.22675061225891113, -0.2593652904033661, 0.07752913981676102, -0.04443202540278435, 0.3455694317817688, 0.07938055694103241, 0.042770031839609146, 0.07553962618112564, 0.2921106815338135, 0.4025558531284332, -0.2950230538845062, 0.2515183687210083, 0.17612382769584656, -0.12414385378360748, -0.04017356038093567, -0.3764849305152893, -0.4320446252822876, -0.3803504407405853, -0.41620078682899475, 0.2004633992910385, -0.04024725407361984, -0.042192865163087845, 0.28949740529060364, 0.18043380975723267, 0.0699557289481163, -0.07126232981681824, 0.09051831811666489, -0.13966622948646545, -0.4403938353061676, 0.22468431293964386, -0.15724891424179077, -0.5371845364570618, 0.20842139422893524, 0.16662147641181946, 0.1439087837934494, 0.2761140465736389, -0.5148003101348877, -0.30842816829681396, 0.0591682493686676, 0.3579508662223816, 0.18133673071861267, 0.22703899443149567, 0.39894530177116394, -0.10222422331571579, -0.02241118624806404, -0.08096635341644287, 0.06943142414093018, 0.2551836669445038, 0.04150136187672615, -0.014629427343606949, 0.04076332598924637, 0.32040876150131226, 0.012463259510695934, 0.47283026576042175, -0.0655377134680748, 0.06200232356786728, 0.24073739349842072, -0.09487760066986084, 0.6474258303642273, -0.2596340477466583, -0.14854271709918976, -0.07322859764099121, -0.0469050332903862, -0.3458383083343506, 0.26466313004493713, 0.028572991490364075, -0.015796415507793427, -0.5687813758850098, -0.01631990261375904, -0.24866271018981934, -0.44401422142982483, 0.18490783870220184, 0.22546756267547607, 0.3417714238166809, 0.14934100210666656, 0.2687115967273712, -0.2899598181247711, -0.03779788687825203, -0.05548499897122383, 0.28306081891059875, 0.06359387189149857, -0.11718014627695084, -0.24029438197612762, 0.08818908035755157, -0.36292585730552673, 0.2781025171279907, -0.2016151398420334, 0.17613354325294495, -0.039339013397693634, -0.05416027829051018, 0.05599317327141762, -0.07584471255540848, 0.47821730375289917, -0.38191837072372437, -0.11644480377435684, 0.2526446580886841, -0.10346534103155136, -0.31540536880493164, 0.04721903055906296, -0.20720258355140686, -0.011012068949639797, 0.18806199729442596, 0.27897194027900696, -0.09352534264326096, -0.2863285541534424, -0.014317980967462063, 0.26077544689178467, -0.33988603949546814, -0.2257455438375473, -0.22404947876930237, -0.04733697697520256, -0.35305967926979065, 0.05012693256139755, -0.16760602593421936, -0.023787586018443108, -0.09883059561252594, 0.10710202157497406, -0.15963202714920044, 0.1846591979265213, -0.07270672172307968, 0.15553134679794312, 0.09379754960536957, -0.3015156388282776, 0.20171567797660828, 0.28915679454803467, 0.05543190985918045, 0.24392105638980865, 0.31305545568466187, -0.07576748728752136, -0.2507774233818054, 0.21849264204502106, -0.04491383954882622, 0.3743794560432434, 0.44749781489372253, -0.007545868866145611, -0.15036797523498535, 0.2359791398048401, 0.29093828797340393, -0.43079060316085815, -0.13248522579669952, 0.1148860901594162, 0.07833144068717957, -0.13668307662010193, -0.4067741632461548, 0.2473440021276474, -0.004963818471878767, -0.0512089766561985, -0.09436434507369995, 0.15853841602802277, -0.23933525383472443, 0.3174622058868408, -0.10686461627483368, 0.7930576205253601, -0.06379739940166473, 0.24429096281528473, 0.2223537713289261, -0.011960715986788273, 0.49882206320762634, -0.32526782155036926, -0.022949516773223877, -0.034002359956502914, -0.17871101200580597, -0.03138188645243645, -0.07933192700147629, 0.4078512489795685, 0.05487147718667984, -0.13534767925739288, 0.5168300271034241, -0.03389366716146469, 0.3856000304222107, -0.28574323654174805, 0.1290827840566635, 0.05017954483628273, -0.269126832485199, -0.5489076972007751, 0.20346584916114807, 0.09185399860143661, 0.07320999354124069, -0.22242669761180878, -0.2794909179210663, 0.0674428641796112, 0.0627630278468132, -0.026670992374420166, -0.1881917119026184, -0.03251665458083153, 0.07577648758888245, -0.1396140307188034, 0.05185934901237488, 0.07644548267126083, 0.12277207523584366, 0.4003404676914215, 0.12157972902059555, -0.4199981391429901, 0.0589221827685833, -0.3985013961791992, 0.154727041721344, 0.022546565160155296, 0.17790721356868744, 0.18130841851234436, -0.1888168752193451, -0.24970516562461853, -0.008886256255209446, -0.10917134582996368, -0.10673049837350845, 0.4405537545681, -0.1216345876455307, 0.00739243533462286, -0.32267671823501587, 0.17373020946979523, 0.18594254553318024, 0.21773983538150787, -0.16453520953655243, 0.16309529542922974, 0.20322813093662262, 0.08970322459936142, 0.3784298300743103, -0.1469392627477646, -0.19359245896339417, -0.24168811738491058, 0.28452473878860474, -0.11098378896713257, -0.148856520652771, -0.07575972378253937, 0.2245466709136963, -0.18763625621795654, -0.30618005990982056, 0.22682952880859375, 0.07378605008125305, -0.2808648347854614, 0.28507140278816223, 0.37679365277290344, 0.2331887185573578, -0.11650468409061432, 0.299128919839859, 0.06431994587182999, -0.2871185839176178, -0.16111637651920319, -0.3281603455543518, -0.3837021291255951, 0.2428528070449829, 0.41401830315589905, 0.1610081046819687, 0.07819494605064392, -0.039763253182172775, -0.006337713450193405, -0.18761879205703735, -0.40737977623939514, 0.021793730556964874, -0.059204112738370895, 0.06519904732704163, 0.26166439056396484, -0.2107877880334854, 0.3878103792667389, -0.2093544453382492, 0.05358777940273285, -0.18860478699207306, -0.41141971945762634, -0.2793824374675751, -0.03712388128042221, 0.18726417422294617, 0.03429785743355751, -0.3216843605041504, -0.04843869432806969, -0.4539429843425751, -0.3911357522010803, -0.1426018923521042, 0.2971316874027252, 0.4522991180419922, -0.14003753662109375, 0.011962584219872952, -0.17946836352348328, 0.4436796009540558, -0.15155379474163055, 0.09331639856100082, 0.05384230241179466, 0.27223268151283264, 0.07948096096515656, 0.24185442924499512, -0.12428460270166397, 0.06629151105880737, 0.005219927057623863, 0.18621225655078888, 0.24578551948070526, 0.15651610493659973, 0.4803650677204132, -0.15637937188148499, 0.1423410177230835, 0.32020553946495056, 0.5329150557518005, 0.12676897644996643, -0.05542460083961487, 0.18965020775794983, 0.07508978247642517, 0.26187238097190857, -0.4182622730731964, 0.055513326078653336, 0.055911846458911896, 0.06920719891786575, 0.3451636731624603, 0.16567909717559814, 0.46518704295158386, 0.1580531895160675, -0.012031933292746544, 0.04495750367641449, 0.3792143762111664, -0.0836963951587677, 0.23139481246471405, 0.13901565968990326, 0.05454844981431961, 0.14665234088897705, 0.09786367416381836, 0.3678908348083496, 0.027955105528235435, 0.28495943546295166, -0.3214757442474365, 0.1772395223379135, 0.044681232422590256, 0.10182776302099228, -0.15813463926315308, -0.4124343991279602, 0.28985917568206787, -0.049714624881744385, -0.0546017624437809, -0.18236412107944489, -0.2525885999202728, 0.18638184666633606, -0.432629257440567, 0.01169359590858221, -0.2156718671321869, 0.0646713525056839, -0.07989922910928726, 0.010311264544725418, -0.3722071945667267, -0.34594058990478516, -0.021677065640687943, 0.11335450410842896, 0.03383279964327812, -0.012864761054515839, 0.04881082847714424, -0.08184835314750671, 0.09189492464065552, -0.21118997037410736, 0.14605490863323212, 0.058045320212841034, 0.07766101509332657, -0.03075365349650383, 0.03148622065782547, 0.23070241510868073, 0.029500147327780724, 0.15513740479946136, 0.49248185753822327, 0.2937011420726776, 0.030628688633441925, -0.2166265994310379, 0.19122940301895142, -0.02511361986398697, -0.09476244449615479, -0.11528315395116806, 0.11651827394962311, 0.05720311030745506, 0.17249052226543427, 0.31647995114326477, 0.15430870652198792, -0.20098784565925598, 0.36223214864730835, -0.20382234454154968, -0.06954975426197052, -0.49590790271759033, 0.31630322337150574, 0.1731225997209549, -0.148354172706604, -0.04045327007770538, -0.2629603445529938, -0.16181570291519165, -0.2425551563501358, 0.399348646402359, -0.018727224320173264, 0.1477479338645935, -0.19695743918418884, 0.10605733096599579, 0.027128903195261955, 0.44531217217445374, 0.15252803266048431, 0.2580767571926117, -0.2704784572124481, 0.2232397347688675, -0.7864071130752563, -0.15928564965724945, -0.07892992347478867, 0.3429849445819855, -0.017970820888876915, 0.10013175755739212, 0.11753656715154648, 0.4013320207595825, 0.05786065757274628, 0.06575588881969452, 0.14404168725013733, -0.1705745905637741, -0.26482343673706055, -0.08721132576465607, -0.13769176602363586, -0.05961950495839119, -0.02288053371012211, -0.2512320578098297, 0.1176673099398613, -0.2488221526145935, -0.011525779962539673, 0.010707543231546879, 0.14541585743427277, -0.1141226664185524, -0.065408855676651, 0.43884825706481934, 0.10178747773170471, 0.360019713640213, 0.2547398507595062, -0.0651024654507637, -0.10997127741575241, 0.013845388777554035, -0.09835418313741684, 0.041643571108579636, -0.08221276104450226, 0.02321753464639187, -0.1789955496788025, -0.18895159661769867, -0.19354283809661865, 0.13953407108783722, 0.09017367660999298, -0.08383368700742722, -0.20448502898216248, 0.022094307467341423, 0.0032971533946692944, 0.13416819274425507, 0.0018571977270767093, 0.07419551908969879, -0.10655216872692108, 0.17237134277820587, -0.1570734679698944, 0.06434611976146698, 0.36166301369667053, -0.015809712931513786, -0.05130352824926376, -0.3619377613067627, 0.28459420800209045, 0.2454400211572647, 0.01601673848927021, -0.6187481880187988, 0.0592009536921978, 0.2603118419647217, -0.1704740673303604, -0.1079796627163887, 0.2965720593929291, -0.18775878846645355, -0.23386909067630768, -0.0189629215747118, 0.2834102511405945, -0.26333892345428467, -0.24726183712482452, 0.0018667466938495636, -0.12850818037986755 ]