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/1857
Unable to upload "community provided" dataset - 400 Client Error
Hi ! We're in the process of switching the community datasets to git repos, exactly like what we're doing for models. You can find an example here: https://huggingface.co/datasets/lhoestq/custom_squad/tree/main We'll update the CLI in the coming days and do a new release :) Also cc @julien-c maybe we can make improve the error message ?
Hi, i'm trying to a upload a dataset as described [here](https://huggingface.co/docs/datasets/v1.2.0/share_dataset.html#sharing-a-community-provided-dataset). This is what happens: ``` $ datasets-cli login $ datasets-cli upload_dataset my_dataset About to upload file /path/to/my_dataset/dataset_infos.json to S3 under filename my_dataset/dataset_infos.json and namespace username About to upload file /path/to/my_dataset/my_dataset.py to S3 under filename my_dataset/my_dataset.py and namespace username Proceed? [Y/n] Y Uploading... This might take a while if files are large 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/presign huggingface.co migrated to a new model hosting system. You need to upgrade to transformers v3.5+ to upload new models. More info at https://discuss.hugginface.co or https://twitter.com/julien_c. Thank you! ``` I'm using the latest releases of datasets and transformers.
54
Unable to upload "community provided" dataset - 400 Client Error Hi, i'm trying to a upload a dataset as described [here](https://huggingface.co/docs/datasets/v1.2.0/share_dataset.html#sharing-a-community-provided-dataset). This is what happens: ``` $ datasets-cli login $ datasets-cli upload_dataset my_dataset About to upload file /path/to/my_dataset/dataset_infos.json to S3 under filename my_dataset/dataset_infos.json and namespace username About to upload file /path/to/my_dataset/my_dataset.py to S3 under filename my_dataset/my_dataset.py and namespace username Proceed? [Y/n] Y Uploading... This might take a while if files are large 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/presign huggingface.co migrated to a new model hosting system. You need to upgrade to transformers v3.5+ to upload new models. More info at https://discuss.hugginface.co or https://twitter.com/julien_c. Thank you! ``` I'm using the latest releases of datasets and transformers. Hi ! We're in the process of switching the community datasets to git repos, exactly like what we're doing for models. You can find an example here: https://huggingface.co/datasets/lhoestq/custom_squad/tree/main We'll update the CLI in the coming days and do a new release :) Also cc @julien-c maybe we can make improve the error message ?
[ -0.09157097339630127, -0.03636603429913521, 0.03441688418388367, 0.06724223494529724, 0.36496973037719727, -0.04928561672568321, 0.17340503633022308, 0.004484488163143396, -0.2230452299118042, -0.1468115746974945, -0.14883838593959808, -0.02059934101998806, 0.0050856792367994785, 0.3581649661064148, -0.05711083114147186, -0.10693036019802094, -0.026947561651468277, 0.00250743655487895, -0.4462408721446991, 0.005309503059834242, -0.10920730978250504, 0.13085724413394928, 0.18414649367332458, 0.006586839910596609, -0.3465139865875244, -0.07589633017778397, -0.006912722252309322, 0.22341439127922058, -0.27108973264694214, -0.13769672811031342, 0.4473821222782135, 0.13893769681453705, 0.23724867403507233, 0.5959692597389221, -0.00011695553985191509, 0.028455542400479317, 0.35420602560043335, 0.023810449987649918, -0.6256375312805176, -0.3368658423423767, -0.07264019548892975, -0.19406889379024506, 0.008188694715499878, 0.13645730912685394, -0.10943126678466797, 0.07961014658212662, 0.1506977081298828, -0.04840220510959625, 0.5985027551651001, 0.09648233652114868, 0.11310259997844696, 0.2700650990009308, -0.014993738383054733, -0.22423827648162842, -0.2202044427394867, 0.359270304441452, -0.10433538258075714, 0.2172364443540573, 0.2370118796825409, 0.022213978692889214, 0.18146584928035736, 0.033542804419994354, 0.11541220545768738, -0.11688728630542755, 0.36845868825912476, -0.16543056070804596, -0.41993746161460876, -0.26003485918045044, 0.11621486395597458, 0.3317761719226837, 0.5857557654380798, 0.07707727700471878, -0.56863933801651, -0.20741607248783112, -0.026034850627183914, -0.07012791186571121, 0.18151718378067017, 0.08152134716510773, -0.05846190080046654, 0.11972808837890625, -0.43745097517967224, -0.17084352672100067, -0.3639192283153534, -0.06123795732855797, 0.1857617050409317, 0.21772125363349915, -0.19547051191329956, 0.23569278419017792, -0.11763843894004822, -0.5343655943870544, -0.12273120880126953, -0.03991607576608658, 0.15156733989715576, 0.20143453776836395, -0.3247428238391876, -0.10583395510911942, 0.0912812277674675, 0.24997445940971375, 0.34939485788345337, 0.4778478145599365, -0.1200072318315506, -0.3294021487236023, -0.18930186331272125, -0.06604938954114914, 0.2054416686296463, -0.1204177662730217, -0.04173937067389488, 0.045268476009368896, 0.08421187102794647, 0.4836535155773163, 0.3961295485496521, -0.021966928616166115, -0.251288503408432, -0.04053492471575737, -0.29292866587638855, -0.15704312920570374, 0.43551012873649597, -0.012925994582474232, -0.035721153020858765, 0.05703338608145714, 0.28940460085868835, 0.0918484628200531, 0.036635689437389374, 0.2619791328907013, 0.017870191484689713, -0.010715172626078129, -0.08245579898357391, 0.03428483381867409, 0.06592283397912979, -0.36396268010139465, -0.03945045545697212, -0.18961338698863983, 0.042813464999198914, 0.022477738559246063, 0.151420459151268, -0.21340243518352509, 0.09367964416742325, -0.029544726014137268, 0.45804861187934875, 0.12532760202884674, -0.14427858591079712, 0.18455299735069275, -0.11100663989782333, 0.38417330384254456, 0.18879351019859314, 0.4600849747657776, 0.08688383549451828, -0.19321772456169128, -0.05944010242819786, -0.15398180484771729, -0.20707617700099945, -0.4029405117034912, -0.47082599997520447, 0.02775632217526436, 0.20765121281147003, -0.15145240724086761, -0.3534544110298157, -0.15195854008197784, 0.0665723979473114, -0.037300869822502136, -0.06788232922554016, 0.10482551902532578, -0.00900321640074253, -0.04084450379014015, 0.24290665984153748, 0.62900310754776, -0.1543004959821701, -0.13681431114673615, -0.007054539863020182, 0.21169620752334595, -0.11286357790231705, 0.4283791482448578, -0.12027091532945633, -0.31369346380233765, -0.1316830962896347, -0.030702807009220123, 0.15148982405662537, -0.48312318325042725, -0.5233072638511658, 0.3477800190448761, -0.17782753705978394, -0.1530870646238327, 0.0853087455034256, 0.10883478820323944, -0.19086942076683044, -0.04018538445234299, -0.061055805534124374, 0.3464680016040802, 0.07554111629724503, 0.100518599152565, -0.1324574053287506, -0.33333534002304077, 0.03000115603208542, 0.0861649364233017, -0.2761991024017334, -0.05503425747156143, 0.04397440701723099, 0.005161811597645283, 0.12785658240318298, -0.1416759490966797, 0.2658131718635559, 0.35326123237609863, 0.6264169216156006, -0.05521313101053238, 0.13923338055610657, 0.19169066846370697, -0.46552154421806335, 0.15523786842823029, -0.030177133157849312, 0.17501388490200043, -0.3612290918827057, -0.09078710526227951, -0.4938577711582184, 0.15244698524475098, -0.23303411900997162, 0.1688336431980133, 0.0031365244649350643, -0.14079120755195618, 0.09966287016868591, -0.2074011117219925, -0.04296306520700455, 0.47615212202072144, -0.1568293273448944, 0.3111293911933899, -0.43842408061027527, 0.2664839029312134, -0.30468741059303284, -0.03980603069067001, 0.39853301644325256, -0.16307349503040314, 0.38467079401016235, 0.02979801967740059, -0.1488206535577774, 0.32528549432754517, -0.4254593253135681, 0.20143061876296997, 0.18747593462467194, 0.3789372444152832, 0.32592272758483887, -0.19137617945671082, -0.1845214068889618, 0.0234055258333683, -0.05513066425919533, 0.34891313314437866, -0.3237706124782562, 0.006854126695543528, -0.1706617921590805, 0.21337959170341492, 0.0049425470642745495, 0.350868821144104, 0.3105177581310272, 0.13425233960151672, -0.1620023250579834, 0.1888076215982437, 0.12512151896953583, -0.028107279911637306, 0.4954756796360016, -0.19883370399475098, 0.13582278788089752, -0.004331761039793491, 0.02183598093688488, 0.022726885974407196, -0.03624856844544411, 0.11601445823907852, -0.10076537728309631, -0.042742423713207245, 0.28224411606788635, 0.3077143728733063, 0.07535217702388763, -0.059037357568740845, -0.2393878549337387, -0.09005949646234512, 0.10276290774345398, -0.09799846261739731, -0.019000526517629623, -0.10576242208480835, 0.1955447494983673, -0.037754978984594345, 0.24621443450450897, 0.2434729039669037, -0.22175903618335724, -0.1577916145324707, -0.0150159215554595, 0.14375610649585724, -0.3067653477191925, 0.06474320590496063, -0.04325897991657257, -0.25713860988616943, 0.1904008388519287, 0.003951540216803551, -0.5359175205230713, -0.11261679977178574, -0.20296365022659302, 0.053167883306741714, 0.015166949480772018, 0.1205601915717125, 0.23272569477558136, 0.3003370463848114, 0.33234792947769165, -0.0865686759352684, -0.30278000235557556, 0.25909700989723206, 0.04023957997560501, 0.05010290816426277, 0.10022024810314178, -0.4291393756866455, 0.11664086580276489, -0.04333840683102608, 0.3520885705947876, -0.3359864056110382, -0.3338160514831543, 0.13104437291622162, -0.12671492993831635, 0.4911324083805084, 0.16957323253154755, 0.4597932994365692, -0.11947856843471527, -0.11571020632982254, 0.24149958789348602, -0.11967844516038895, -0.053294770419597626, 0.005624433979392052, -0.16869807243347168, -0.10254771262407303, -0.00040446079219691455, 0.1713871955871582, -0.08932250738143921, -0.2928875982761383, 0.34490811824798584, 0.15137988328933716, -0.011091087013483047, 0.3846888542175293, 0.1992633193731308, 0.07673551887273788, -0.09668560326099396, 0.15814228355884552, -0.014240654185414314, -0.5848602652549744, 0.38161924481391907, -0.2026972770690918, -0.34294450283050537, -0.024602597579360008, 0.14814019203186035, 0.2809789776802063, -0.23761941492557526, -0.1241215392947197, -0.40741974115371704, -0.1366187185049057, 0.28940287232398987, 0.06768198311328888, 0.0077137122862041, 0.37397056818008423, -0.009062631987035275, 0.06580714136362076, -0.029428070411086082, -0.44926396012306213, -0.13443951308727264, 0.33061304688453674, 0.30222731828689575, -0.058361634612083435, 0.18234410881996155, 0.05156491696834564, 0.8003922700881958, 0.5207506418228149, -0.15548653900623322, 0.4999689757823944, -0.004358404316008091, 0.35457220673561096, 0.08321526646614075, -0.15309545397758484, -0.017085233703255653, 0.23523148894309998, 0.03993043303489685, 0.03172549977898598, 0.27950915694236755, 0.24637702107429504, -0.1541665941476822, -0.16770677268505096, -0.1231175884604454, -0.04987581446766853, -0.3460417091846466, 0.0586705356836319, 0.19631069898605347, 0.11616972088813782, -0.23940825462341309, -0.19196030497550964, -0.2947539687156677, 0.0026088485028594732, 0.3673135042190552, 0.3208436667919159, 0.13942120969295502, -0.34352976083755493, 0.013796040788292885, -0.4768286347389221, 0.22951677441596985, -0.02174294739961624, 0.06566039472818375, -0.2315966933965683, 0.19088992476463318, -0.012232412584125996, -0.01650039106607437, 0.4541058838367462, -0.4889225661754608, -0.058280762284994125, -0.4311426877975464, 0.22105297446250916, -0.3148053288459778, 0.19687120616436005, 0.22078679502010345, -0.010275070555508137, 0.12391465902328491, 0.49034544825553894, -0.3415440022945404, -0.02204526774585247, -0.08651770651340485, -0.1912458837032318, -0.1529005765914917, -0.15926292538642883, -0.23563264310359955, -0.4699711799621582, -0.49090883135795593, -0.21928143501281738, 0.21494925022125244, 0.17979487776756287, 0.05124993622303009, 0.12619192898273468, 0.3211124837398529, 0.15708820521831512, 0.16906365752220154, -0.08185303956270218, 0.19939863681793213, 0.3902917504310608, 0.06572289019823074, 0.07897355407476425, 0.21329215168952942, 0.3458918631076813, 0.7234184145927429, 0.02483907714486122, -0.4888083040714264, 0.09110818058252335, 0.20460429787635803, 0.23606258630752563, 0.22993572056293488, 0.1936473399400711, 0.04031982645392418, 0.4569891691207886, 0.24940866231918335, -0.23062962293624878, 0.1356470286846161, 0.3005809783935547, -0.20504409074783325, -0.3913974463939667, -0.06774010509252548, 0.4168678820133209, -0.10353226959705353, 0.12186252325773239, -0.04263509437441826, 0.4895392060279846, 0.07889790087938309, 0.06549103558063507, 0.12653537094593048, 1.035789966583252, -0.29246005415916443, 0.2455255687236786, -0.11983373761177063, -0.5208818912506104, 0.7754582762718201, -0.02011374570429325, -0.1492326259613037, -0.4048446714878082, -0.15085530281066895, -0.06168163940310478, -0.020809685811400414, 0.03652920946478844, 0.027663223445415497, -0.17758558690547943, 0.08938409388065338, -0.3146377503871918, 0.14034397900104523, -0.05925338715314865, 0.5753954648971558, -0.3577103018760681, -0.20950987935066223, -0.21620942652225494, 0.12858150899410248, -0.1896332949399948, 0.19980326294898987, -0.08247451484203339, -0.2414720058441162, -0.21214760839939117, -0.31607985496520996, -0.23134274780750275, 0.12915749847888947, 0.0082555478438735, -0.09348653256893158, 0.4783601462841034, -0.21573081612586975, 0.39040258526802063, 0.24867485463619232, 0.23686538636684418, 0.09642055630683899, -0.49751412868499756, 0.2585039436817169, -0.3437269628047943, -0.17529833316802979, -0.17257820069789886, 0.031201012432575226, 0.17530255019664764, -0.09541327506303787, -0.026152757927775383, -0.1201229840517044, 0.03130379319190979, -0.0615026131272316, -0.29284366965293884, -0.1749279797077179, -0.112410768866539, -0.5553343892097473, 0.15501634776592255, -0.22245509922504425, 0.08372993767261505, -0.06463169306516647, 0.02157239243388176, 0.08180335909128189, 0.04396357759833336, -0.3981601297855377, 0.529064953327179, 0.04690955579280853, -0.007492575794458389, 0.39993375539779663, -0.2207379937171936, -0.10643858462572098, 0.5063546299934387, 0.0868065357208252, -0.0409618504345417, 0.05509871989488602, 0.000020484852939262055, 0.15537916123867035, -0.7436201572418213, -0.010906116105616093, 0.26519399881362915, 0.07528986781835556, -0.15202511847019196, 0.17811113595962524, 0.20449934899806976, -0.06928926706314087, 0.2705128490924835, 0.0362759493291378, -0.22072580456733704, -0.06550438702106476, -0.37359917163848877, -0.016707202419638634, 0.16238269209861755, -0.08736053854227066, 0.4368785321712494, 0.018280548974871635, -0.21709266304969788, -0.10814275592565536, -0.38029804825782776, 0.0241258405148983, 0.41030392050743103, -0.2786548137664795, 0.05792194604873657, -0.0799686387181282, -0.016435815021395683, 0.013663499616086483, -0.3531111180782318, -0.08142602443695068, -0.2895401120185852, 0.20392169058322906, 0.35949501395225525, -0.36096084117889404, -0.12644484639167786, -0.1718750149011612, -0.18802785873413086, -0.099374920129776, -0.19746151566505432, -0.05556430295109749, 0.09013472497463226, -0.22001606225967407, 0.16625149548053741, 0.09278231859207153, -0.32152900099754333, 0.16655956208705902, 0.20401707291603088, 0.19288404285907745, 0.13091643154621124, 0.13433749973773956, 0.08159545063972473, -0.05928000062704086, -0.1065385639667511, 0.2511456608772278, 0.46748095750808716, -0.019813206046819687, 0.3256028890609741, -0.36292728781700134, -0.07362329214811325, -0.02572871930897236, 0.45369094610214233, -0.09729202836751938, -0.3470791280269623, 0.04125777259469032, 0.07922285795211792, 0.10496450215578079, -0.06595073640346527, -0.06501404941082001, 0.06849190592765808, 0.11946319043636322, -0.07927315682172775, 0.08455085754394531, 0.2587445378303528, 0.005887215491384268, 0.2516889274120331, 0.10264843702316284, 0.5311471223831177, -0.018053261563181877, 0.05807197839021683, 0.009346752427518368, -0.16824793815612793, -0.05204883590340614, 0.47323089838027954, 0.05072232708334923, -0.06549619883298874, -0.13054004311561584, -0.292240172624588, 0.033956922590732574, -0.31593701243400574, -0.027048947289586067, 0.1887209117412567, -0.28379565477371216, 0.27646777033805847, -0.16947825253009796, 0.163800448179245, 0.15819227695465088, 0.02790958434343338, 0.583884596824646, -0.20073677599430084, 0.025936536490917206, -0.3901536762714386, 0.19716686010360718, -0.08101630955934525, -0.23652158677577972, -0.19156178832054138, -0.11827164888381958, -0.20091257989406586, 0.0433616116642952, -0.08162730187177658, -0.3174012303352356, 0.12028077989816666, -0.02480238676071167, 0.08078240603208542, -0.414554625749588, -0.06695836782455444, 0.4527420401573181, 0.09312113374471664, -0.11245591938495636, 0.3525935709476471, 0.3666306734085083, -0.11800307780504227, 0.09788518399000168, 0.20675167441368103, 0.6063758134841919, 0.003943278454244137, 0.2722609043121338, 0.3868846893310547, 0.25547343492507935, 0.11954108625650406, 0.1990564465522766, 0.06816352158784866, 0.05980440974235535, 0.2382223755121231, 0.09974636137485504, 0.037156619131565094, -0.1150527223944664, -0.11542367935180664, -0.40809139609336853, 0.3273947536945343, -0.36339130997657776, 0.12001343816518784, -0.43712401390075684, -0.17576207220554352, -0.21898530423641205, 0.17651017010211945, -0.24454441666603088, 0.31108975410461426, 0.5170584321022034, -0.05184711515903473, 0.0027795073110610247, -0.5339080095291138, 0.024785708636045456, -0.07180695980787277, 0.4974350035190582, 0.6792599558830261, 0.02311098948121071, -0.013558072037994862, -0.2177397906780243, -0.32190772891044617, 0.13794782757759094, 0.0576835498213768, 0.2602824568748474, -0.09748532623052597, -0.008856487460434437, -0.007397058419883251, -0.12540800869464874, 0.12864434719085693, -0.24376115202903748, -0.2440411001443863, -0.02671607956290245, -0.050153665244579315, -0.08994640409946442, -0.03949278965592384, 0.024394050240516663, 0.045028217136859894, 0.06111685931682587, 0.22032590210437775, 0.23516380786895752, -0.02894533984363079, -0.2344936579465866, -0.16559924185276031, -0.10574385523796082, -0.2576324939727783, 0.1671297252178192, 0.3643925189971924, 0.2754128873348236, -0.04352862015366554, -0.3752650320529938, -0.22654901444911957, -0.10347671806812286, -0.2364063560962677, 0.019787821918725967, -0.0029049960430711508, 0.341015100479126, 0.054806578904390335, -0.10260793566703796, -0.3389888107776642, -0.12867125868797302, -0.08884590864181519, -0.11135831475257874, -0.17242999374866486, -0.15312162041664124, -0.2435721606016159, 0.04133806750178337, 0.10827019810676575, -0.13788540661334991, 0.16945654153823853, 0.02570120245218277, -0.252964586019516, -0.31083473563194275, 0.5455135107040405, -0.35689693689346313, -0.1854250431060791, 0.047023653984069824, 0.1835138499736786, -0.1315603107213974, -0.16581298410892487, -0.3201585114002228, 0.18590736389160156, 0.25290870666503906, -0.03484734520316124, -0.07903747260570526, 0.2278561294078827, -0.11213403195142746, -0.002969656838104129, -0.051318440586328506, 0.39337220788002014, 0.14057104289531708, -0.22136859595775604, 0.2974913418292999, 0.0010207787854596972 ]
https://github.com/huggingface/datasets/issues/1856
load_dataset("amazon_polarity") NonMatchingChecksumError
Hi ! This issue may be related to #996 This comes probably from the Quota Exceeded error from Google Drive. Can you try again tomorrow and see if you still have the error ? On my side I didn't get any error today with `load_dataset("amazon_polarity")`
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
45
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` Hi ! This issue may be related to #996 This comes probably from the Quota Exceeded error from Google Drive. Can you try again tomorrow and see if you still have the error ? On my side I didn't get any error today with `load_dataset("amazon_polarity")`
[ -0.14463593065738678, 0.11810794472694397, -0.12130699306726456, 0.24109327793121338, 0.12806127965450287, -0.0035923956893384457, 0.34435275197029114, 0.06530055403709412, 0.28654906153678894, 0.2393912374973297, 0.02812139317393303, -0.0647890493273735, 0.009716285392642021, 0.15067949891090393, -0.1385422945022583, 0.20597967505455017, 0.01070332434028387, -0.04454328119754791, -0.18880710005760193, 0.1773511916399002, -0.3683696687221527, 0.37356922030448914, -0.09020927548408508, -0.2902162969112396, -0.05680245906114578, 0.04821508005261421, 0.2492215484380722, 0.12276820838451385, -0.0999511107802391, -0.31419336795806885, 0.28921306133270264, 0.06416422128677368, 0.1367657333612442, 0.32160842418670654, -0.00012273208994884044, -0.07604507356882095, 0.4037209749221802, 0.02153056301176548, -0.34896227717399597, -0.3050137758255005, -0.34211432933807373, -0.22062809765338898, 0.07893634587526321, -0.14135830104351044, 0.19846229255199432, 0.22626960277557373, -0.013438994996249676, -0.020378870889544487, 0.2310122698545456, 0.1465013325214386, 0.16461904346942902, 0.3472893238067627, 0.4247152507305145, 0.23764251172542572, 0.33629855513572693, 0.034684184938669205, 0.029404429718852043, 0.4239833354949951, 0.16855107247829437, -0.11802094429731369, -0.15158163011074066, 0.1364070326089859, -0.0350835956633091, 0.4699852466583252, 0.07310465723276138, -0.0709812343120575, 0.12992076575756073, -0.3009367883205414, 0.22169500589370728, 0.24023279547691345, 0.5259537696838379, -0.15804675221443176, -0.33843058347702026, 0.01572016067802906, -0.2012745440006256, -0.35222095251083374, 0.36824119091033936, 0.38735660910606384, -0.08134184777736664, -0.24794700741767883, -0.49342086911201477, 0.12733717262744904, -0.15640218555927277, 0.23252765834331512, -0.14096646010875702, 0.1816929429769516, -0.014190452173352242, 0.14309386909008026, 0.2745826840400696, -0.2563825845718384, 0.4774475693702698, -0.15284699201583862, -0.0680747777223587, 0.16820937395095825, -0.5600778460502625, -0.10128894448280334, -0.027425039559602737, 0.4298361837863922, 0.26865777373313904, 0.5032891631126404, 0.1269339621067047, 0.2249225527048111, 0.031124630942940712, 0.21377770602703094, 0.3584059774875641, 0.2740325927734375, -0.22499416768550873, 0.3298189043998718, 0.18385861814022064, 0.32551658153533936, 0.037599463015794754, 0.034365639090538025, -0.1291164606809616, -0.354443222284317, 0.6708129644393921, 0.025659121572971344, 0.34029531478881836, -0.49907186627388, -0.49049872159957886, 0.325825035572052, -0.2727225422859192, -0.16308291256427765, -0.05610853061079979, 0.15520170331001282, -0.11334387958049774, 0.036503132432699203, 0.08534073829650879, -0.013622608967125416, -0.13361451029777527, 0.1910005658864975, -0.10917912423610687, 0.15570341050624847, -0.10401608049869537, 0.20021341741085052, 0.30212756991386414, -0.11430861055850983, 0.3013884127140045, -0.10796064883470535, 0.37443116307258606, -0.2520250678062439, 0.5605084896087646, -0.27553918957710266, -0.10110892355442047, 0.5101606249809265, -0.0266279224306345, -0.04052405804395676, -0.0029190711211413145, 0.2849733233451843, -0.1475284844636917, 0.29976511001586914, -0.2269744873046875, -0.2836969792842865, 0.012598809786140919, 0.10882430523633957, -0.5122697353363037, -0.18450422585010529, -0.23478840291500092, -0.38621222972869873, 0.22500379383563995, -0.3119516372680664, -0.07752653956413269, -0.330748587846756, 0.030205853283405304, -0.1781545877456665, 0.12854741513729095, 0.4043671488761902, -0.3409199118614197, 0.01982901245355606, -0.3198642432689667, -0.09092402458190918, 0.3040819466114044, 0.35987183451652527, -0.12280989438295364, 0.03903716802597046, -0.2570706903934479, -0.3024713099002838, -0.13425759971141815, -0.15970571339130402, -0.44440457224845886, 0.047512661665678024, -0.1507028192281723, 0.2654605805873871, -0.00011365283717168495, -0.00017202383605763316, 0.0030772702302783728, 0.04565250501036644, 0.2740544080734253, 0.16310910880565643, -0.04057911038398743, 0.15992304682731628, -0.162685364484787, -0.33066216111183167, 0.22964005172252655, 0.23032146692276, 0.26030322909355164, -0.0007044863305054605, 0.24509909749031067, -0.13092967867851257, 0.05562155321240425, -0.028438391163945198, -0.019589969888329506, 0.3621579706668854, 0.3402887284755707, -0.09401210397481918, -0.02052305079996586, -0.08890730887651443, -0.5740931630134583, 0.15982329845428467, -0.3095725178718567, 0.10143428295850754, -0.1388903111219406, 0.1446615755558014, -0.1564306914806366, -0.22062073647975922, -0.0964888259768486, 0.04836240038275719, 0.0302264541387558, 0.2930380403995514, 0.1999136209487915, -0.1771678626537323, 0.06379560381174088, -0.06433754414319992, -0.2649939954280853, 0.04698018729686737, -0.3821524679660797, 0.442139208316803, -0.06441428512334824, -0.030086057260632515, 0.13485831022262573, -0.01216302439570427, 0.19629903137683868, -0.17857098579406738, -0.03946736082434654, 0.2556770145893097, 0.09936708211898804, 0.3484780788421631, -0.017911462113261223, 0.6057201027870178, 0.05461305007338524, -0.049635425209999084, -0.05309430882334709, 0.4482397735118866, 0.061554282903671265, -0.12537336349487305, -0.23578481376171112, 0.5414232611656189, -0.19083143770694733, 0.2926011383533478, -0.07971923053264618, 0.041180260479450226, 0.23285600543022156, -0.08344034105539322, -0.1304756999015808, -0.14586752653121948, 0.3699469268321991, 0.185374453663826, -0.13062065839767456, -0.010330760851502419, -0.02840501256287098, -0.07968258857727051, 0.2859380543231964, -0.16397377848625183, 0.021079014986753464, 0.08372366428375244, -0.02332889474928379, -0.14718110859394073, 0.16896972060203552, 0.7234518527984619, 0.47567471861839294, 0.12425989657640457, -0.19347074627876282, -0.2028280645608902, -0.022190578281879425, -0.04424961283802986, 0.10611753910779953, 0.17234551906585693, 0.028086647391319275, 0.43933868408203125, 0.21447312831878662, -0.1984512358903885, -0.3193223476409912, -0.2452724426984787, 0.23423759639263153, 0.3231551945209503, -0.4198344945907593, -0.058438535779714584, 0.00394420837983489, 0.18747706711292267, -0.23929935693740845, 0.02873421460390091, -0.20950736105442047, -0.37343496084213257, -0.2640259563922882, 0.5433933734893799, -0.07945945858955383, 0.08040010929107666, -0.2748619616031647, 0.15814940631389618, 0.17034560441970825, -0.4426255226135254, 0.003162235952913761, -0.08186297118663788, -0.002026901813223958, -0.005445866379886866, 0.3528393507003784, -0.1443241387605667, 0.3782070279121399, -0.15110164880752563, 0.05225526914000511, -0.5995888113975525, -0.3102061450481415, 0.024014368653297424, -0.056018389761447906, 0.21179093420505524, 0.11665836721658707, 0.2397705614566803, -0.05499059706926346, -0.0856565311551094, -0.014655601233243942, 0.12343290448188782, -0.19656391441822052, 0.14444908499717712, -0.17039255797863007, 0.08283163607120514, 0.07606729120016098, -0.14042401313781738, -0.059567440301179886, -0.3863198757171631, 0.10855333507061005, 0.4139717221260071, 0.20045462250709534, -0.05296357721090317, 0.0042034899815917015, 0.06655893474817276, 0.060674749314785004, 0.14334076642990112, -0.2855793237686157, -0.5523833632469177, 0.4413992762565613, -0.08994791656732559, -0.22691868245601654, 0.05724092200398445, 0.00980263203382492, 0.23715952038764954, 0.44380590319633484, -0.4624609649181366, -0.22905470430850983, -0.384130597114563, -0.10361899435520172, -0.0784263089299202, 0.11161733418703079, 0.2703563868999481, 0.12714684009552002, -0.06007305160164833, 0.08354462683200836, -0.4889644682407379, -0.010848714038729668, 0.2261224240064621, 0.35103026032447815, -0.054609425365924835, 0.23012617230415344, -0.3080967366695404, 0.5490027070045471, -0.09873759001493454, 0.00031908266828395426, 0.1891239732503891, 0.2644505202770233, 0.31373003125190735, 0.0006342559936456382, -0.11881963908672333, -0.011116934940218925, -0.15782055258750916, 0.05735049024224281, 0.08661506325006485, -0.032954275608062744, -0.20335879921913147, -0.062232598662376404, -0.08754923939704895, -0.391856849193573, -0.19456329941749573, 0.0748150497674942, -0.13921545445919037, 0.4881865382194519, 0.13460172712802887, -0.021491825580596924, -0.2688157260417938, -0.5046185851097107, -0.18893733620643616, -0.06477654725313187, 0.06309910118579865, -0.10098017007112503, -0.23343971371650696, -0.02257428504526615, -0.1421680897474289, 0.36433735489845276, -0.03538154438138008, 0.4224100112915039, 0.01937681809067726, -0.004374557174742222, 0.04613028094172478, -0.2466929405927658, 0.13734976947307587, -0.1803700029850006, 0.16085250675678253, 0.0215211920440197, -0.2174900621175766, -0.1500651091337204, -0.1809927374124527, -0.3337962329387665, 0.2890722155570984, -0.06466451287269592, 0.35971754789352417, -0.41395115852355957, 0.13364046812057495, 0.13600702583789825, 0.46263813972473145, -0.2675515115261078, -0.24524766206741333, -0.35851654410362244, -0.28457358479499817, -0.5091462135314941, 0.06980378925800323, -0.046654414385557175, 0.2883155643939972, -0.18665564060211182, 0.09933426231145859, 0.11120031028985977, -0.10785964131355286, 0.1417362093925476, -0.17965780198574066, 0.4755505323410034, -0.015517624095082283, 0.15786689519882202, 0.2025614082813263, -0.3639864921569824, 0.4272715449333191, 0.6419878602027893, -0.0033065672032535076, -0.07837893813848495, 0.2667129933834076, -0.09113554656505585, -0.3595605790615082, 0.24073821306228638, 0.11437245458364487, -0.03022364340722561, 0.4233921468257904, 0.1725848764181137, -0.055439542979002, -0.2608538866043091, 0.14375025033950806, 0.1891079992055893, -0.2571280598640442, -0.30339375138282776, 0.04156956449151039, -0.11166739463806152, -0.05162637308239937, 0.4951726496219635, 0.2201731950044632, -0.18804198503494263, 0.15460552275180817, 0.4347308278083801, 1.0237905979156494, -0.04920804128050804, 0.24423064291477203, -0.05169617012143135, -0.17281275987625122, 0.3330743908882141, -0.18147246539592743, 0.23143631219863892, -0.4936198592185974, -0.028301037847995758, -0.0025317983236163855, -0.36720895767211914, 0.020242594182491302, -0.0002853955375030637, 0.04025131091475487, 0.3705027103424072, -0.015204771421849728, 0.04811191186308861, 0.10733714699745178, 0.1459231674671173, -0.37275388836860657, 0.020945372059941292, 0.19462740421295166, 0.10112393647432327, -0.24609529972076416, 0.292679101228714, -0.26356184482574463, 0.1294311285018921, 0.2280176430940628, -0.27020302414894104, -0.4946397840976715, -0.023786349222064018, -0.16002771258354187, 0.4113856554031372, 0.22365747392177582, -0.09135537594556808, -0.11759616434574127, -0.022400155663490295, 0.11986569315195084, 0.1387794464826584, -0.2773248255252838, 0.07002345472574234, 0.27106282114982605, -0.10218258947134018, -0.07844215631484985, -0.054487887769937515, 0.22451522946357727, -0.09638948738574982, -0.2603004574775696, -0.003764851950109005, 0.031411830335855484, -0.5006491541862488, -0.35358721017837524, 0.20009487867355347, -0.28339582681655884, -0.3202568590641022, -0.2009008675813675, -0.2559010088443756, -0.3804832100868225, -0.19311219453811646, 0.10670755058526993, 0.23967456817626953, -0.16196583211421967, 0.31341296434402466, 0.1729709953069687, -0.2827116847038269, -0.253653883934021, 0.5303882360458374, 0.05743063613772392, -0.19368800520896912, 0.5586519837379456, 0.05701018124818802, -0.15261375904083252, -0.21152463555335999, 0.06997422873973846, 0.08155721426010132, -0.4405599534511566, 0.22684568166732788, -0.23020108044147491, 0.19973352551460266, -0.10390593856573105, 0.3816929757595062, 0.3563067317008972, 0.3587639033794403, 0.14719419181346893, -0.6384477615356445, -0.14012740552425385, 0.0637316107749939, 0.05981394276022911, 0.31956180930137634, -0.24182267487049103, -0.3160439431667328, 0.021186180412769318, -0.20312467217445374, -0.2665424048900604, 0.1864968240261078, -0.4010082483291626, 0.010670149698853493, 0.21223245561122894, -0.24689443409442902, 0.27909883856773376, 0.08298996090888977, 0.09805098921060562, 0.13352932035923004, -0.1468680202960968, -0.14155107736587524, -0.177509605884552, 0.17335784435272217, 0.06938657909631729, -0.19764254987239838, 0.07504156231880188, -0.09823915362358093, 0.03300333768129349, 0.012641697190701962, 0.007862452417612076, 0.13904444873332977, -0.11865589022636414, -0.08194533735513687, 0.1011994257569313, -0.16003143787384033, -0.08051328361034393, -0.087925486266613, -0.26244208216667175, -0.009514858014881611, 0.23190009593963623, 0.25677984952926636, 0.3299061954021454, 0.005312808323651552, -0.09463024884462357, 0.016689080744981766, 0.11748473346233368, -0.06945380568504333, 0.15959349274635315, -0.257101833820343, -0.22003678977489471, 0.004760651849210262, 0.3969469368457794, 0.4484580159187317, -0.3414471745491028, -0.06235327571630478, 0.2812823951244354, 0.19993917644023895, -0.17037631571292877, -0.07771041244268417, 0.024561066180467606, -0.12461823970079422, 0.03779667243361473, 0.1070595532655716, -0.039677802473306656, -0.2999555170536041, 0.39960581064224243, 0.21857090294361115, 0.2358444184064865, -0.6298625469207764, 0.0965883657336235, 0.005411074962466955, -0.19268755614757538, -0.12331773340702057, 0.39812618494033813, -0.048469629138708115, 0.014838691800832748, -0.13105589151382446, -0.04937870055437088, 0.17466787993907928, -0.25384321808815, 0.16214092075824738, -0.23032398521900177, -0.5396319031715393, 0.437032550573349, 0.21608032286167145, 0.03314775973558426, 0.1858428567647934, 0.1410861313343048, 0.384173184633255, -0.06153136119246483, 0.31279170513153076, -0.5757320523262024, -0.02194768190383911, -0.19356945157051086, -0.018974989652633667, -0.08077036589384079, -0.31223204731941223, 0.06243661791086197, 0.41207581758499146, 0.09947435557842255, -0.12742064893245697, 0.32733961939811707, 0.1988077610731125, -0.27628442645072937, -0.48064377903938293, 0.11169089376926422, 0.06810079514980316, -0.06634534150362015, -0.3008172810077667, 0.11265666037797928, 0.44036999344825745, -0.02991522289812565, -0.013770682737231255, 0.2593505382537842, 0.5040760636329651, 0.3554442524909973, -0.0053282734006643295, 0.05083010345697403, -0.0166122168302536, 0.0016246612649410963, 0.022688211873173714, 0.58210289478302, 0.14045774936676025, 0.08584946393966675, 0.23271358013153076, 0.12874460220336914, -0.20314332842826843, 0.2377806156873703, -0.09154898673295975, -0.34998154640197754, -0.10107589513063431, 0.3797115683555603, 0.0623786635696888, -0.01635424792766571, -0.23614029586315155, 0.07321988046169281, -0.4497523903846741, -0.32630255818367004, -0.006223464384675026, 0.11354874074459076, -0.006978930905461311, 0.07715942710638046, 0.03901857137680054, -0.12173451483249664, 0.4378730356693268, 0.3708479404449463, 0.29172661900520325, -0.495954304933548, -0.026020672172307968, -0.6134393215179443, 0.2469731867313385, -0.27853304147720337, 0.2613339126110077, 0.0232955664396286, 0.28098568320274353, -0.23793894052505493, 0.19946369528770447, 0.18944257497787476, -0.012089301832020283, -0.14582519233226776, -0.15874941647052765, -0.29532355070114136, -0.0323912538588047, 0.4535719156265259, -0.1372142881155014, -0.07070720195770264, -0.372867614030838, 0.0866379663348198, -0.06517177075147629, 0.02928006276488304, -0.22801247239112854, -0.08623819053173065, -0.09008612483739853, 0.36460426449775696, 0.2749122381210327, 0.16416522860527039, 0.7399245500564575, -0.014219519682228565, -0.19039571285247803, -0.308886855840683, -0.24891580641269684, -0.08743581175804138, 0.042223282158374786, 0.1307719349861145, 0.5580558776855469, -0.07101643085479736, -0.4577324688434601, -0.3680817484855652, 0.3573647141456604, -0.24444229900836945, -0.4376507103443146, 0.02161438763141632, -0.01602339744567871, 0.0019518510671332479, 0.023478969931602478, -0.10155162215232849, 0.16700883209705353, 0.2402368187904358, 0.1430896818637848, -0.25737911462783813, -0.24537250399589539, 0.49231579899787903, -0.289189875125885, -0.205351784825325, 0.09713473916053772, 0.24294516444206238, 0.07886600494384766, -0.19831526279449463, -0.470184862613678, 0.4567470848560333, 0.2685397267341614, 0.0661134123802185, -0.19531285762786865, 0.24826297163963318, -0.2461402714252472, 0.21983389556407928, 0.006248437333852053, 0.11183668673038483, 0.20526133477687836, -0.25324782729148865, -0.23654842376708984, -0.08549156785011292 ]
https://github.com/huggingface/datasets/issues/1856
load_dataset("amazon_polarity") NonMatchingChecksumError
@lhoestq Hi! I encounter the same error when loading `yelp_review_full`. ``` from datasets import load_dataset dataset_yp = load_dataset("yelp_review_full") ``` When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive?
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
45
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` @lhoestq Hi! I encounter the same error when loading `yelp_review_full`. ``` from datasets import load_dataset dataset_yp = load_dataset("yelp_review_full") ``` When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive?
[ -0.06117372214794159, 0.14232757687568665, -0.10863200575113297, 0.22138409316539764, 0.1263355314731598, 0.12175075709819794, 0.24527721107006073, 0.010379997082054615, 0.3931347131729126, 0.10966620594263077, -0.13955967128276825, -0.020145198330283165, 0.036382194608449936, 0.025238078087568283, -0.1712942272424698, 0.3643231689929962, 0.018544988706707954, -0.01134706474840641, -0.07883834838867188, -0.010270051658153534, -0.30445343255996704, 0.25937315821647644, -0.06008278951048851, -0.08405551314353943, -0.05984070524573326, 0.15359653532505035, 0.31665655970573425, 0.044222407042980194, -0.08336731046438217, -0.3201698660850525, 0.4210701286792755, 0.13789787888526917, -0.015671007335186005, 0.3289819657802582, -0.0001259096316061914, -0.05002369359135628, 0.41676661372184753, 0.032062847167253494, -0.3987608551979065, -0.30998069047927856, -0.458151638507843, -0.3251403868198395, 0.15099535882472992, -0.10070201009511948, 0.14998909831047058, 0.1633688062429428, 0.005327030550688505, -0.26190894842147827, 0.09537675231695175, 0.10011404007673264, 0.1172742173075676, 0.3501999080181122, 0.10599325597286224, 0.20151019096374512, 0.3452170193195343, 0.12262994050979614, -0.018758036196231842, 0.29132091999053955, 0.18812043964862823, -0.18215155601501465, -0.27050381898880005, 0.04058665782213211, -0.0015809921314939857, 0.5240552425384521, 0.20741379261016846, -0.06581240892410278, 0.28314054012298584, -0.2702280879020691, 0.24643702805042267, 0.4334840178489685, 0.5518835186958313, -0.1611354649066925, -0.31425172090530396, -0.10848981887102127, -0.14431945979595184, -0.2082723081111908, 0.2683829367160797, 0.4797152578830719, -0.16795194149017334, -0.19821558892726898, -0.5444872975349426, 0.160885751247406, -0.050658080726861954, 0.1889030486345291, -0.13251329958438873, 0.24686852097511292, 0.03465408831834793, 0.18291476368904114, 0.14957620203495026, -0.17243391275405884, 0.6086635589599609, -0.3743208050727844, 0.03492293134331703, 0.2907087206840515, -0.5965974926948547, -0.007769789546728134, 0.03407623991370201, 0.5633310079574585, 0.2247847318649292, 0.578330397605896, 0.16394354403018951, 0.20580512285232544, 0.02571987174451351, 0.27466824650764465, 0.5060386657714844, 0.22001858055591583, -0.10864390432834625, 0.3596937358379364, 0.1931719034910202, 0.2153611034154892, 0.14792890846729279, 0.12440697848796844, -0.0030037497635930777, -0.2710256278514862, 0.6188279390335083, -0.07342210412025452, 0.25093621015548706, -0.5128175616264343, -0.5945709943771362, 0.35191288590431213, -0.2508153021335602, -0.12276025116443634, 0.052964262664318085, 0.2121906280517578, -0.17590396106243134, 0.16339543461799622, -0.048865221440792084, -0.09330107271671295, -0.13326752185821533, 0.08906151354312897, -0.20120972394943237, 0.12135453522205353, -0.027642281726002693, 0.22767475247383118, 0.22793860733509064, -0.035575021058321, 0.3027089834213257, -0.13837198913097382, 0.33690309524536133, -0.20315738022327423, 0.42347055673599243, -0.15301354229450226, -0.15769913792610168, 0.46567946672439575, 0.01880691386759281, 0.1361011117696762, 0.07712962478399277, 0.17520800232887268, -0.225412979722023, 0.3178550601005554, -0.18110454082489014, -0.19131264090538025, 0.17321769893169403, 0.0843120589852333, -0.6098437905311584, -0.18703290820121765, -0.21429385244846344, -0.4069162607192993, 0.32835203409194946, -0.312776118516922, 0.007400866597890854, -0.35697880387306213, 0.06260928511619568, -0.14311416447162628, -0.05134262517094612, 0.43488070368766785, -0.2782549262046814, -0.16568773984909058, -0.3917511999607086, -0.1966864913702011, 0.3818413317203522, 0.46461161971092224, -0.12386064231395721, 0.09032946079969406, -0.2280271351337433, -0.16861902177333832, 0.038852229714393616, -0.15464535355567932, -0.4479786157608032, 0.09870268404483795, -0.1993885040283203, 0.4591357707977295, 0.0024010599590837955, 0.1677614152431488, -0.09788339585065842, -0.018973011523485184, 0.31117331981658936, 0.15398162603378296, -0.010500212199985981, 0.07566773146390915, -0.11894248425960541, -0.1285545527935028, 0.3238053023815155, 0.2631973922252655, 0.1939360499382019, 0.00012066132330801338, 0.14938952028751373, -0.07698644697666168, 0.08753065764904022, -0.016558924689888954, -0.004411743022501469, 0.2684112787246704, 0.3694305121898651, 0.12750358879566193, -0.05727163329720497, -0.03696883097290993, -0.4602799415588379, 0.17194972932338715, -0.4196969270706177, 0.022422008216381073, -0.0614071786403656, 0.09276102483272552, -0.18853041529655457, -0.13353842496871948, -0.24068404734134674, 0.050129372626543045, -0.055418502539396286, 0.34473124146461487, 0.14981895685195923, -0.10164964199066162, 0.0753728374838829, 0.08772601187229156, -0.4383296072483063, 0.03073672391474247, -0.4001352787017822, 0.253205806016922, 0.028759567067027092, 0.13899767398834229, 0.07983337342739105, 0.07768812775611877, 0.15928170084953308, -0.01723369210958481, -0.02036401815712452, 0.29222598671913147, 0.1412295550107956, 0.4036795198917389, -0.07896975427865982, 0.4830578565597534, -0.028725024312734604, -0.10024518519639969, -0.05110574886202812, 0.4246049225330353, 0.12461600452661514, -0.2297818809747696, -0.2653997242450714, 0.6342540979385376, -0.12469378858804703, 0.33544492721557617, -0.036846842616796494, 0.10404543578624725, 0.27293962240219116, 0.024860350415110588, -0.2758755087852478, -0.18607385456562042, 0.4675980806350708, 0.10569075495004654, 0.0031514009460806847, 0.12198445945978165, 0.04866751655936241, -0.16200560331344604, 0.314817875623703, -0.30019816756248474, 0.045932870358228683, 0.05044177919626236, -0.04942283034324646, -0.24426095187664032, 0.18419471383094788, 0.6842707991600037, 0.5695017576217651, 0.0790131539106369, -0.050262272357940674, -0.15015751123428345, -0.1702573299407959, -0.11122250556945801, 0.02895534224808216, 0.18590277433395386, -0.054985858500003815, 0.49928349256515503, 0.19121213257312775, -0.22439920902252197, -0.424357533454895, -0.16034427285194397, 0.1699376106262207, 0.3191206455230713, -0.4955596625804901, -0.0845622643828392, -0.12217487394809723, 0.22518755495548248, -0.2842998802661896, -0.06337172538042068, -0.16697636246681213, -0.5736438035964966, -0.11126036942005157, 0.41691291332244873, -0.0569939985871315, 0.18197031319141388, -0.41801777482032776, 0.17344090342521667, -0.05356437712907791, -0.4603128433227539, 0.04769185930490494, -0.23035874962806702, -0.05114561319351196, -0.012348124757409096, 0.3434807360172272, -0.07857228070497513, 0.35977569222450256, -0.25476282835006714, 0.1363714635372162, -0.6831158995628357, -0.2296449989080429, 0.0053694965317845345, -0.11947538703680038, 0.14114081859588623, 0.04131218418478966, 0.1324571818113327, -0.0009103722404688597, -0.0025772550143301487, 0.02793411910533905, 0.09695273637771606, -0.28484174609184265, 0.1665326952934265, -0.19787220656871796, 0.03318129852414131, 0.19299976527690887, 0.004296982195228338, -0.11319106817245483, -0.301525741815567, 0.12962809205055237, 0.4311293363571167, 0.08007964491844177, -0.08188147842884064, -0.14464856684207916, 0.1002122014760971, 0.12184367328882217, 0.3078341484069824, -0.38725546002388, -0.45427146553993225, 0.5385522246360779, -0.05998486652970314, -0.1861260086297989, -0.0017488740850239992, 0.09508267790079117, 0.2571619749069214, 0.41278088092803955, -0.48849523067474365, -0.10797874629497528, -0.35615432262420654, -0.1380738765001297, 0.06890789419412613, -0.036992259323596954, 0.26246508955955505, 0.03662285953760147, -0.010552238672971725, 0.04302133247256279, -0.48656073212623596, 0.03233696520328522, 0.048494189977645874, 0.3351128399372101, -0.0962444469332695, 0.15135134756565094, -0.26854434609413147, 0.5760499835014343, 0.0713530033826828, 0.019770415499806404, 0.09381569176912308, 0.27110713720321655, 0.3968067467212677, 0.01994308829307556, -0.07231207937002182, -0.08361691981554031, -0.07448375970125198, 0.03752392157912254, 0.12000568211078644, 0.01658693514764309, -0.2322211116552353, 0.00976535864174366, -0.0028812428936362267, -0.279880553483963, -0.12820686399936676, -0.03181414678692818, -0.1907247006893158, 0.34952229261398315, 0.1516784280538559, 0.0362999327480793, -0.24857045710086823, -0.5477297902107239, -0.2011634260416031, 0.115215003490448, -0.015569142065942287, -0.10093439370393753, -0.32313135266304016, -0.02689855545759201, -0.034255508333444595, 0.3341200351715088, -0.023824481293559074, 0.4164547622203827, -0.04730585217475891, -0.20342525839805603, 0.22102536261081696, -0.17956355214118958, 0.14225322008132935, -0.05160057172179222, 0.19984643161296844, -0.05853461101651192, -0.11628367006778717, -0.27156612277030945, -0.20607692003250122, -0.2619054615497589, 0.24534347653388977, -0.07769395411014557, 0.22671209275722504, -0.40266671776771545, 0.042786356061697006, 0.06877578049898148, 0.38093090057373047, -0.29730039834976196, -0.21711084246635437, -0.31586095690727234, -0.2742900252342224, -0.28343144059181213, -0.056092727929353714, -0.10546305775642395, 0.2077489197254181, -0.1203189492225647, 0.17512646317481995, -0.0006152031710371375, 0.009343018755316734, 0.32337504625320435, -0.06683942675590515, 0.3630555272102356, -0.1080760806798935, 0.14138992130756378, 0.08626553416252136, -0.34308889508247375, 0.30260351300239563, 0.7589161396026611, -0.07038727402687073, -0.22916436195373535, 0.2544200122356415, -0.059363953769207, -0.31245186924934387, 0.2692401111125946, 0.11704933643341064, -0.08998315036296844, 0.36340945959091187, -0.020908161997795105, -0.053742535412311554, -0.27740269899368286, 0.14683915674686432, 0.11810769885778427, -0.3462929427623749, -0.41222333908081055, 0.1307949721813202, 0.09611207246780396, -0.10925218462944031, 0.4117062985897064, 0.2758302390575409, -0.1401701420545578, 0.053992703557014465, 0.4594939947128296, 0.9954108595848083, -0.13125313818454742, 0.28470006585121155, -0.06030498817563057, -0.08718229830265045, 0.31228822469711304, -0.24893434345722198, 0.10440170764923096, -0.39331531524658203, 0.14710333943367004, -0.12633050978183746, -0.3329882323741913, 0.07445952296257019, 0.040163423866033554, 0.22206071019172668, 0.48673662543296814, 0.01506156474351883, 0.12553714215755463, 0.1986963301897049, 0.09324702620506287, -0.33849284052848816, -0.014600582420825958, 0.18806564807891846, 0.08345872163772583, -0.2254425585269928, 0.39009517431259155, -0.13289742171764374, 0.2234782576560974, 0.01944451406598091, -0.11879042536020279, -0.5311704874038696, -0.036327507346868515, -0.05629120022058487, 0.44729486107826233, 0.2374151349067688, -0.2032889872789383, -0.17887941002845764, 0.10810187458992004, 0.013593040406703949, 0.005354325752705336, -0.2681925594806671, 0.1548193097114563, 0.39552950859069824, 0.07515083998441696, -0.028645476326346397, -0.0019438413437455893, 0.27298519015312195, -0.05660269409418106, -0.15182361006736755, 0.08781769126653671, -0.010166426189243793, -0.5436388254165649, -0.343044638633728, 0.2885999381542206, -0.23351192474365234, -0.34504926204681396, -0.2680547535419464, -0.22464345395565033, -0.1828412562608719, -0.2051275670528412, 0.0665159821510315, 0.23439761996269226, -0.14210952818393707, 0.21737068891525269, 0.13324259221553802, -0.39705607295036316, -0.25347185134887695, 0.551485002040863, 0.16132637858390808, -0.11610013991594315, 0.5359887480735779, -0.11154826730489731, -0.25580286979675293, -0.16740532219409943, 0.03229878097772598, 0.07323617488145828, -0.519463062286377, 0.0728607028722763, -0.23848286271095276, 0.17124970257282257, -0.12848567962646484, 0.35522595047950745, 0.3510361909866333, 0.3508456349372864, -0.026510270312428474, -0.5613194108009338, -0.0033328209538012743, -0.014285215176641941, 0.061917051672935486, 0.32276374101638794, -0.2390562891960144, -0.22004196047782898, -0.039937447756528854, -0.18071775138378143, -0.20425789058208466, 0.1239505261182785, -0.42849108576774597, -0.0301421657204628, 0.199859619140625, -0.08751540631055832, 0.16646666824817657, 0.05767754837870598, 0.0722067579627037, 0.06497213989496231, -0.21556948125362396, -0.11945845186710358, -0.13811913132667542, 0.2042919546365738, 0.10902874171733856, -0.14237304031848907, -0.023958610370755196, -0.03359397128224373, 0.052102528512477875, -0.047815952450037, 0.03414516523480415, 0.3134576082229614, -0.10163908451795578, -0.016175178810954094, 0.15504635870456696, -0.12653608620166779, -0.10682453960180283, -0.04699694365262985, -0.297728955745697, -0.047619208693504333, 0.18590159714221954, 0.09034470468759537, 0.3465740978717804, 0.06051155924797058, -0.03923368453979492, 0.11671573668718338, 0.18099373579025269, -0.15566644072532654, 0.14714986085891724, -0.24172909557819366, -0.03410749509930611, -0.0012867192272096872, 0.33125242590904236, 0.5788925886154175, -0.3147878050804138, -0.1804444044828415, 0.23464974761009216, 0.1194179430603981, -0.13533015549182892, -0.09135474264621735, 0.07580871880054474, -0.093579962849617, 0.08941616117954254, 0.13613449037075043, -0.0180287417024374, -0.2474384754896164, 0.44630274176597595, 0.11698295921087265, 0.37230297923088074, -0.6105332970619202, 0.17108677327632904, 0.1364411562681198, -0.11753733456134796, 0.03759649768471718, 0.3581712245941162, -0.03946101665496826, -0.029600752517580986, -0.17149025201797485, -0.12173719704151154, 0.19950522482395172, -0.3597771227359772, 0.15934346616268158, -0.21455326676368713, -0.6058471202850342, 0.4413032531738281, 0.3200615346431732, -0.07247154414653778, 0.2271357923746109, 0.17144222557544708, 0.3912149667739868, -0.13954682648181915, 0.4165736436843872, -0.5694963335990906, -0.034902509301900864, -0.14430354535579681, -0.17609946429729462, -0.1324060559272766, -0.3570287525653839, 0.05470939353108406, 0.30480507016181946, 0.06949038803577423, -0.11166346073150635, 0.1567237228155136, 0.05290767550468445, -0.26099658012390137, -0.4940485954284668, 0.1442117691040039, -0.09842965751886368, -0.07991394400596619, -0.26677554845809937, 0.058133628219366074, 0.3363928496837616, -0.041169628500938416, 0.1170063316822052, 0.18734891712665558, 0.40152084827423096, 0.3223710060119629, 0.0609501376748085, -0.00899573229253292, -0.11055538058280945, -0.01689279079437256, 0.04592779651284218, 0.7341302633285522, 0.011858922429382801, -0.16862966120243073, 0.22825008630752563, 0.10509676486253738, -0.16240137815475464, 0.3463479280471802, -0.06729308515787125, -0.19695238769054413, -0.24958795309066772, 0.5849605202674866, -0.07440416514873505, 0.04054192081093788, -0.26568037271499634, 0.1646086722612381, -0.3968411684036255, -0.43308064341545105, -0.025615990161895752, 0.0011070495238527656, 0.006221804302185774, -0.026221703737974167, 0.016119932755827904, -0.17137472331523895, 0.4875512719154358, 0.4068416953086853, 0.05807211622595787, -0.4211580753326416, 0.019516482949256897, -0.6684362292289734, 0.32731929421424866, -0.380862295627594, 0.1056368350982666, -0.042951688170433044, 0.3075505793094635, -0.19908274710178375, 0.3060514032840729, 0.11973699182271957, 0.022201530635356903, -0.32950639724731445, -0.22772791981697083, -0.19449053704738617, -0.10706757754087448, 0.3338201344013214, -0.2107224464416504, -0.12935981154441833, -0.3248290717601776, 0.10426823794841766, 0.000890709285158664, 0.008211962878704071, -0.12308260053396225, -0.028504587709903717, -0.022102482616901398, 0.3299262523651123, 0.19679638743400574, 0.13629719614982605, 0.7609405517578125, 0.06711841374635696, -0.13315021991729736, -0.2573156952857971, -0.23981977999210358, -0.10366351157426834, 0.17689286172389984, -0.036727290600538254, 0.446386456489563, -0.021185440942645073, -0.40584254264831543, -0.1812155395746231, 0.4622710645198822, -0.14638543128967285, -0.49386394023895264, 0.0005720264744013548, -0.05101224035024643, -0.1060829609632492, 0.07423298805952072, -0.11207658052444458, 0.09306855499744415, 0.27236708998680115, 0.24888518452644348, -0.1138971596956253, -0.21862129867076874, 0.5264892578125, -0.3776206970214844, -0.03174037113785744, 0.11928088963031769, 0.19638244807720184, 0.045348696410655975, -0.26167741417884827, -0.4460183382034302, 0.34797537326812744, 0.36188486218452454, 0.061042867600917816, -0.1220170259475708, 0.23199421167373657, -0.4572664499282837, 0.16085129976272583, -0.07704389840364456, 0.05661875754594803, 0.10849180072546005, -0.22466161847114563, -0.15318584442138672, -0.16413132846355438 ]
https://github.com/huggingface/datasets/issues/1856
load_dataset("amazon_polarity") NonMatchingChecksumError
> When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive? Each file on Google Drive can be downloaded only a certain amount of times per day because of a quota. The quota is reset every day. So if too many people download the dataset the same day, then the quota is likely to exceed. That's a really bad limitations of Google Drive and we should definitely find another host for these dataset than Google Drive. For now I would suggest to wait and try again later.. So far the issue happened with CNN DailyMail, Amazon Polarity and Yelp Reviews. Are you experiencing the issue with other datasets ? @calebchiam @dtch1997
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
127
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` > When you say the "Quota Exceeded from Google drive". Is this a quota from the dataset owner? or the quota from our (the runner) Google Drive? Each file on Google Drive can be downloaded only a certain amount of times per day because of a quota. The quota is reset every day. So if too many people download the dataset the same day, then the quota is likely to exceed. That's a really bad limitations of Google Drive and we should definitely find another host for these dataset than Google Drive. For now I would suggest to wait and try again later.. So far the issue happened with CNN DailyMail, Amazon Polarity and Yelp Reviews. Are you experiencing the issue with other datasets ? @calebchiam @dtch1997
[ -0.13494296371936798, 0.047477900981903076, -0.11106190830469131, 0.25881046056747437, 0.06248066946864128, -0.036782316863536835, 0.2863388955593109, 0.011993719264864922, 0.343503475189209, 0.25812840461730957, 0.07673329859972, -0.037579577416181564, 0.0030828542076051235, 0.03795225918292999, -0.2337089478969574, 0.16956961154937744, -0.021713169291615486, -0.07363499701023102, -0.11179666221141815, 0.04067500680685043, -0.2747710943222046, 0.2887173295021057, 0.007018224336206913, -0.20344743132591248, -0.03966251015663147, 0.00873421598225832, 0.327836275100708, 0.11759575456380844, -0.1759137213230133, -0.3116759955883026, 0.3300224840641022, 0.08261265605688095, 0.06831841170787811, 0.3464251458644867, -0.00012041813897667453, -0.06831807643175125, 0.3942151963710785, 0.09657618403434753, -0.41895878314971924, -0.24621059000492096, -0.35147255659103394, -0.3533966541290283, 0.07687519490718842, -0.14831872284412384, 0.1762090027332306, 0.31583112478256226, 0.13149316608905792, -0.23690567910671234, 0.17296043038368225, 0.13813205063343048, 0.13241875171661377, 0.42141658067703247, 0.15271954238414764, 0.18100476264953613, 0.36248502135276794, 0.04843790456652641, -0.0363253615796566, 0.2699776291847229, 0.21515579521656036, -0.06219327449798584, -0.2929151654243469, 0.10535533726215363, -0.03940426930785179, 0.5324475169181824, 0.14420031011104584, -0.026299167424440384, 0.10127933323383331, -0.3418426513671875, 0.17161129415035248, 0.38727667927742004, 0.5805898904800415, -0.1249101534485817, -0.23386695981025696, -0.09334038197994232, -0.2541101276874542, -0.3007948398590088, 0.3701973557472229, 0.4087923765182495, -0.18253135681152344, -0.2420867681503296, -0.4668251872062683, 0.23561863601207733, -0.11459851264953613, 0.1640465259552002, -0.17736297845840454, 0.2125675529241562, 0.029611743986606598, 0.21809862554073334, 0.2534276843070984, -0.0722893700003624, 0.5507882833480835, -0.33852773904800415, 0.027863672003149986, 0.21654996275901794, -0.5382954478263855, -0.05966256186366081, 0.026529377326369286, 0.4756050407886505, 0.18465100228786469, 0.5643035173416138, 0.18954266607761383, 0.16553570330142975, 0.049483202397823334, 0.2911805808544159, 0.4096360504627228, 0.1855694204568863, -0.22529463469982147, 0.2780071496963501, 0.21262019872665405, 0.19786961376667023, 0.16984239220619202, 0.09875018149614334, -0.018339749425649643, -0.34496551752090454, 0.6129307746887207, -0.07254373282194138, 0.14912743866443634, -0.4413727819919586, -0.5689800977706909, 0.36165618896484375, -0.2959185540676117, -0.14766429364681244, 0.07146206498146057, 0.1275586634874344, -0.18861843645572662, -0.028461886569857597, 0.013129864819347858, -0.11428552120923996, -0.1554233878850937, 0.09142329543828964, -0.1961929202079773, 0.119303397834301, -0.097309410572052, 0.20340654253959656, 0.20820720493793488, -0.045864004641771317, 0.27945664525032043, -0.04085184633731842, 0.2950497567653656, -0.21975690126419067, 0.5377066135406494, -0.272177129983902, -0.18072029948234558, 0.5546466708183289, -0.052327197045087814, 0.011260691098868847, 0.10489440709352493, 0.18031272292137146, -0.1602942794561386, 0.26736611127853394, -0.14790722727775574, -0.12792344391345978, 0.18715696036815643, 0.13107150793075562, -0.583346962928772, -0.20720446109771729, -0.16471007466316223, -0.3109389543533325, 0.23202668130397797, -0.29214099049568176, 0.023849163204431534, -0.3568730354309082, 0.01658008061349392, -0.21225976943969727, 0.02465195208787918, 0.40803468227386475, -0.21964159607887268, -0.029267966747283936, -0.33864328265190125, -0.1784815639257431, 0.42419785261154175, 0.3356630206108093, -0.16592568159103394, 0.1827782839536667, -0.2545884847640991, -0.1609524041414261, 0.01072235219180584, -0.10885652899742126, -0.397655725479126, 0.05017295479774475, -0.2954806089401245, 0.405781626701355, 0.14341703057289124, 0.19287832081317902, 0.014344972558319569, 0.003035358153283596, 0.2835533618927002, 0.15822067856788635, -0.014703145250678062, 0.03613554313778877, -0.1703033596277237, -0.157007098197937, 0.1708417385816574, 0.2926810085773468, 0.2981024384498596, 0.004195449873805046, 0.2727929949760437, -0.12372452020645142, 0.019749555736780167, -0.004574190359562635, -0.02260526642203331, 0.2537456750869751, 0.1342657208442688, -0.02357953041791916, -0.0728575736284256, -0.0011672453256323934, -0.5085251331329346, 0.20308467745780945, -0.3583160936832428, 0.0499366819858551, -0.03780234605073929, 0.10986136645078659, -0.14671678841114044, -0.22909793257713318, -0.14286580681800842, 0.09381506592035294, 0.0016220012912526727, 0.3955667018890381, 0.15502791106700897, -0.1600455343723297, 0.10116516798734665, 0.12783247232437134, -0.4371524453163147, 0.04734500125050545, -0.48950594663619995, 0.29927241802215576, 0.01833224669098854, 0.05527487397193909, 0.10591138899326324, -0.02281971462070942, 0.13570928573608398, -0.11474814265966415, 0.03401819244027138, 0.3085659444332123, 0.1717776209115982, 0.3997483551502228, 0.04096943140029907, 0.6185166239738464, -0.1008119285106659, -0.042290735989809036, -0.0050378781743347645, 0.5124951601028442, 0.08092091232538223, -0.2270922213792801, -0.397221177816391, 0.6124405860900879, -0.238266259431839, 0.2321476936340332, -0.13311678171157837, 0.08427710086107254, 0.2649218738079071, -0.014043004252016544, -0.2797195017337799, 0.037605900317430496, 0.4447344243526459, 0.21487794816493988, -0.10851361602544785, 0.05948294699192047, -0.12572546303272247, -0.08750130981206894, 0.36860400438308716, -0.26394209265708923, -0.0099635049700737, 0.1531330943107605, -0.014909728430211544, -0.17583943903446198, 0.09523702412843704, 0.8160721063613892, 0.5828455686569214, 0.13837109506130219, 0.06518634408712387, -0.18816757202148438, -0.1472274214029312, -0.13797925412654877, 0.08607196062803268, 0.1756957769393921, -0.09891382604837418, 0.4286358654499054, 0.10379882156848907, -0.21196259558200836, -0.48858189582824707, -0.2679802477359772, 0.19502705335617065, 0.42747753858566284, -0.4311172068119049, 0.00803471077233553, -0.006075912155210972, 0.22779853641986847, -0.3302207887172699, 0.021480752155184746, -0.22902840375900269, -0.4285719692707062, -0.13628602027893066, 0.5601522326469421, -0.021281402558088303, 0.06256673485040665, -0.32087430357933044, 0.2279873937368393, 0.018312396481633186, -0.48723888397216797, -0.0421900600194931, -0.09390537440776825, -0.10667604207992554, 0.0311301127076149, 0.40950503945350647, -0.10109229385852814, 0.4162184000015259, -0.30307286977767944, 0.11139553040266037, -0.5681468844413757, -0.23996295034885406, -0.04425009340047836, -0.12867890298366547, 0.11647418886423111, 0.08984383195638657, 0.28636637330055237, -0.0945340096950531, 0.0060068280436098576, -0.03836210072040558, 0.16576898097991943, -0.24803811311721802, 0.12489639222621918, -0.16734252870082855, 0.042820341885089874, 0.11292552202939987, -0.18048866093158722, -0.10324128717184067, -0.34514114260673523, 0.1504681259393692, 0.4686194360256195, 0.1605384647846222, -0.05038081482052803, 0.03206302598118782, 0.10363185405731201, 0.0961371660232544, 0.21491152048110962, -0.3637518882751465, -0.6516876816749573, 0.426300585269928, 0.028870034962892532, -0.19001458585262299, 0.04958347603678703, 0.08505377173423767, 0.21406875550746918, 0.4236077666282654, -0.5703602433204651, -0.12771113216876984, -0.3932391107082367, -0.10568470507860184, -0.014019818045198917, 0.12535858154296875, 0.38361871242523193, 0.10568244010210037, -0.07064858824014664, 0.05320046469569206, -0.4380124807357788, 0.024364756420254707, 0.06259392201900482, 0.3301323354244232, -0.09297476708889008, 0.2045581340789795, -0.19585128128528595, 0.6013498306274414, 0.03884582221508026, -0.01499621756374836, 0.08432497829198837, 0.2517702579498291, 0.43484655022621155, -0.0002986691251862794, -0.022703226655721664, 0.04287971556186676, -0.06429282575845718, -0.03436001017689705, 0.12858907878398895, -0.040477849543094635, -0.21227678656578064, 0.052567146718502045, -0.03839109465479851, -0.17459970712661743, -0.16176530718803406, 0.10905395448207855, -0.056606944650411606, 0.3451628088951111, 0.07066428661346436, 0.04256470873951912, -0.2898288071155548, -0.42410868406295776, -0.2228248417377472, 0.11047898977994919, 0.004039936698973179, -0.07511860132217407, -0.30853384733200073, 0.05987764894962311, -0.11645662039518356, 0.3225310146808624, -0.07949165254831314, 0.3666829764842987, -0.11615023016929626, -0.08079665154218674, 0.21942777931690216, -0.14638836681842804, 0.11375825852155685, -0.10693621635437012, 0.10287240892648697, -0.06106805056333542, -0.046991895884275436, -0.11381106823682785, -0.21264326572418213, -0.3106769919395447, 0.33252185583114624, -0.019152024760842323, 0.2525078058242798, -0.44871383905410767, 0.04485391080379486, 0.0557439848780632, 0.3679998815059662, -0.2528475821018219, -0.24496902525424957, -0.3577004671096802, -0.30701687932014465, -0.3425731062889099, 0.18557117879390717, 0.001122600631788373, 0.21387341618537903, -0.13415208458900452, 0.0814422145485878, 0.09664682298898697, 0.03667275980114937, 0.20586764812469482, -0.0807240903377533, 0.3047986328601837, -0.051273658871650696, 0.028887063264846802, 0.20297656953334808, -0.3895152807235718, 0.27780288457870483, 0.6610246896743774, -0.04379081726074219, -0.060928333550691605, 0.27041587233543396, -0.09266513586044312, -0.3631856143474579, 0.2875839173793793, 0.0679406002163887, -0.08847006410360336, 0.4182355999946594, 0.1258310228586197, -0.06995991617441177, -0.28138649463653564, 0.21642975509166718, 0.16148369014263153, -0.2466444969177246, -0.38317224383354187, 0.11603537201881409, 0.01514445710927248, -0.12798257172107697, 0.5681809186935425, 0.1725112348794937, -0.11888455599546432, 0.08850093930959702, 0.4173103868961334, 1.1071871519088745, -0.11676785349845886, 0.2464439421892166, -0.003125729039311409, -0.1765984743833542, 0.331637978553772, -0.2680203914642334, 0.19217047095298767, -0.3988216817378998, 0.03983696177601814, -0.12734588980674744, -0.37640994787216187, 0.13559205830097198, -0.04649735987186432, 0.09215450286865234, 0.4239913523197174, -0.051600705832242966, 0.08215504139661789, 0.1611686795949936, 0.07101477682590485, -0.4011040925979614, 0.010941249318420887, 0.21799854934215546, 0.10147856920957565, -0.2128036618232727, 0.3707590699195862, -0.20217888057231903, 0.11336694657802582, 0.11074895411729813, -0.2223915308713913, -0.48604872822761536, -0.09605223685503006, -0.03278341144323349, 0.28364890813827515, 0.22052298486232758, -0.11244358122348785, -0.2335149347782135, 0.08266911655664444, 0.12139963358640671, -0.06178169324994087, -0.17547670006752014, 0.14194542169570923, 0.29893189668655396, 0.025944415479898453, 0.031729139387607574, -0.08539830148220062, 0.2706814408302307, -0.118842713534832, -0.16286298632621765, 0.0528547428548336, -0.03602833300828934, -0.569608747959137, -0.2322644591331482, 0.24476534128189087, -0.12929536402225494, -0.2773997187614441, -0.14813366532325745, -0.15683388710021973, -0.32125571370124817, -0.20628108084201813, 0.11146140843629837, 0.31051138043403625, -0.1522541344165802, 0.3884698450565338, 0.053600508719682693, -0.37616434693336487, -0.2494036853313446, 0.47350606322288513, 0.0903821662068367, -0.04728838801383972, 0.4643453359603882, -0.049359776079654694, -0.25575459003448486, -0.21683204174041748, 0.054588064551353455, 0.05192570015788078, -0.46440520882606506, 0.1567261964082718, -0.20199717581272125, 0.20474237203598022, -0.1024395152926445, 0.330984503030777, 0.33807995915412903, 0.3494676649570465, -0.07524756342172623, -0.6224426627159119, -0.05482882261276245, -0.10991140455007553, 0.03153882175683975, 0.37692445516586304, -0.21816100180149078, -0.34974515438079834, 0.039492227137088776, -0.20793692767620087, -0.2735697329044342, 0.09823725372552872, -0.4265056550502777, -0.007745356298983097, 0.18204031884670258, -0.14306850731372833, 0.2588154971599579, 0.09304168820381165, 0.09094040840864182, 0.04552123323082924, -0.325687438249588, -0.13887286186218262, -0.1334296613931656, 0.19255106151103973, 0.038603201508522034, -0.12885810434818268, 0.025297947227954865, -0.09219272434711456, 0.04497532919049263, -0.01882457546889782, -0.05588662251830101, 0.2361639142036438, -0.14814572036266327, -0.13541525602340698, 0.19232158362865448, -0.015899857506155968, -0.11976726353168488, -0.18801924586296082, -0.3041904866695404, -0.1043633297085762, 0.18234774470329285, 0.14886952936649323, 0.18729960918426514, -0.04966096952557564, -0.06946627795696259, 0.11834150552749634, 0.27267804741859436, -0.10550447553396225, 0.2189335823059082, -0.19477973878383636, -0.16537095606327057, -0.09948282688856125, 0.338593453168869, 0.5191000699996948, -0.27957040071487427, -0.2123023271560669, 0.23917528986930847, 0.18509165942668915, -0.08136706799268723, -0.11641234904527664, 0.09856961667537689, 0.021869279444217682, 0.06979253143072128, 0.1930077224969864, -0.014317696914076805, -0.3089461028575897, 0.38043469190597534, 0.11344056576490402, 0.3322175443172455, -0.7211830019950867, 0.0382431261241436, 0.09484952688217163, -0.22301599383354187, -0.048974331468343735, 0.4857475459575653, -0.06271598488092422, -0.0028132302686572075, -0.13442175090312958, -0.09951319545507431, 0.16652560234069824, -0.26666322350502014, 0.10251716524362564, -0.33841267228126526, -0.5586662292480469, 0.4284241199493408, 0.3406717777252197, 0.04922853037714958, 0.14773151278495789, 0.21720421314239502, 0.2795030474662781, -0.1171722412109375, 0.3882201910018921, -0.5804316401481628, 0.008350716903805733, -0.1292089968919754, -0.11991823464632034, -0.21507638692855835, -0.32334572076797485, 0.043750081211328506, 0.3426988124847412, 0.0991775244474411, -0.11918853968381882, 0.22628743946552277, 0.0652916431427002, -0.28116413950920105, -0.3712736964225769, 0.038741812109947205, -0.03299976885318756, -0.09864817559719086, -0.2912285327911377, 0.07708380371332169, 0.3421236276626587, -0.02956450916826725, 0.011745374649763107, 0.20957176387310028, 0.4396035671234131, 0.2685389518737793, 0.09993932396173477, 0.05976896733045578, -0.0781121701002121, 0.0021204091608524323, -0.07505781203508377, 0.6987161636352539, -0.025297893211245537, -0.10151837021112442, 0.21115107834339142, 0.138206347823143, -0.20758511126041412, 0.35038021206855774, -0.17194446921348572, -0.3512226343154907, -0.14744149148464203, 0.5249907970428467, 0.05835561454296112, 0.03212464973330498, -0.2822968661785126, 0.13205327093601227, -0.43833640217781067, -0.3146587014198303, -0.009481715969741344, 0.05817679688334465, 0.013378513976931572, 0.0018393370555713773, 0.03070002980530262, -0.1343364268541336, 0.4461660385131836, 0.3831956386566162, 0.1674165576696396, -0.47539854049682617, 0.03289427235722542, -0.6384225487709045, 0.2768552005290985, -0.3937021791934967, 0.1002257838845253, -0.035873979330062866, 0.34261617064476013, -0.15483315289020538, 0.21974818408489227, 0.2084050476551056, -0.09536255896091461, -0.17612417042255402, -0.07302600145339966, -0.14646828174591064, -0.028683513402938843, 0.3783765137195587, -0.1787623018026352, -0.15789049863815308, -0.30848315358161926, 0.2094830572605133, -0.12342895567417145, 0.07640304416418076, -0.13396480679512024, -0.015603450126945972, -0.06206104904413223, 0.25426656007766724, 0.251535564661026, 0.12449052184820175, 0.6347801089286804, 0.006134672090411186, -0.09818679094314575, -0.36105138063430786, -0.09232811629772186, -0.21604792773723602, 0.06145781651139259, 0.025380847975611687, 0.62159264087677, -0.10011734068393707, -0.3572169542312622, -0.26921573281288147, 0.5112698078155518, -0.143624946475029, -0.45188626646995544, 0.09846610575914383, -0.05926036089658737, -0.13221971690654755, 0.1841610223054886, -0.10861382633447647, 0.1654413640499115, 0.3128497302532196, 0.20701473951339722, -0.2399948388338089, -0.22647707164287567, 0.5082707405090332, -0.4022955894470215, -0.13374796509742737, 0.13960102200508118, 0.19085513055324554, 0.16518722474575043, -0.18244893848896027, -0.43939417600631714, 0.39903584122657776, 0.2949402630329132, 0.01570926234126091, -0.1631639450788498, 0.1695169061422348, -0.4015001654624939, 0.18220356106758118, 0.03830518573522568, 0.03921906277537346, 0.10610616207122803, -0.2178320288658142, -0.15429094433784485, -0.19484104216098785 ]
https://github.com/huggingface/datasets/issues/1856
load_dataset("amazon_polarity") NonMatchingChecksumError
@lhoestq Gotcha, that is quite problematic...for what it's worth, I've had no issues with the other datasets I tried, such as `yelp_reviews_full` and `amazon_reviews_multi`.
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
24
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` @lhoestq Gotcha, that is quite problematic...for what it's worth, I've had no issues with the other datasets I tried, such as `yelp_reviews_full` and `amazon_reviews_multi`.
[ -0.19478699564933777, 0.0554480217397213, -0.08366968482732773, 0.15782251954078674, 0.1719476282596588, 0.08044262230396271, 0.23757386207580566, 0.09915167838335037, 0.24162045121192932, -0.013614034280180931, -0.08398272842168808, 0.06070063263177872, -0.0039979699067771435, -0.14103861153125763, -0.3183498978614807, 0.3028694689273834, 0.08086653798818588, 0.03197082504630089, -0.17937283217906952, 0.0368184857070446, -0.32332342863082886, 0.24467593431472778, -0.0489678680896759, -0.26154235005378723, -0.1571856141090393, 0.19282494485378265, 0.19521039724349976, 0.018647756427526474, -0.10129635035991669, -0.3044867515563965, 0.5374709367752075, 0.19924968481063843, -0.012076355516910553, 0.31857308745384216, -0.00011956718662986532, 0.08530598133802414, 0.33675190806388855, 0.024846922606229782, -0.31564417481422424, -0.3974169194698334, -0.3859314024448395, -0.29445165395736694, 0.09696033596992493, -0.07509487867355347, 0.10688047111034393, 0.17731796205043793, 0.11158838868141174, -0.1239965632557869, 0.1156424880027771, 0.18488189578056335, 0.20535069704055786, 0.385219544172287, 0.1166318729519844, 0.19726449251174927, 0.31258195638656616, 0.30644160509109497, -0.10692001134157181, 0.26796066761016846, 0.1251922994852066, -0.10115215182304382, -0.16672374308109283, 0.09293347597122192, -0.11707019060850143, 0.3990471661090851, 0.14471596479415894, -0.0405133031308651, 0.3200860321521759, -0.15482237935066223, 0.28808829188346863, 0.4979780316352844, 0.38207361102104187, -0.12942303717136383, -0.3618167042732239, 0.030812570825219154, -0.22950172424316406, -0.20957215130329132, 0.2629094421863556, 0.38121262192726135, -0.05787651240825653, -0.21787717938423157, -0.4667549133300781, 0.22666358947753906, -0.02549067698419094, 0.26272082328796387, 0.05250701680779457, 0.3400263786315918, 0.12891171872615814, 0.12332450598478317, 0.159810408949852, -0.20953045785427094, 0.49954551458358765, -0.24414028227329254, -0.008565791882574558, 0.1588152050971985, -0.5495273470878601, 0.009056026116013527, -0.031496062874794006, 0.42280346155166626, 0.21752698719501495, 0.5261775255203247, 0.13085925579071045, 0.2861514091491699, 0.018672417849302292, 0.2018931806087494, 0.23497916758060455, 0.11299992352724075, -0.0022742256987839937, 0.36247289180755615, 0.18537850677967072, 0.24517041444778442, 0.06700753420591354, 0.14502602815628052, 0.09177161753177643, -0.15110017359256744, 0.6740027070045471, -0.13309721648693085, 0.2948669195175171, -0.4654791057109833, -0.4914771020412445, 0.3247954845428467, -0.18390490114688873, -0.09131736308336258, 0.03147285059094429, 0.23840180039405823, -0.14576588571071625, 0.2540985941886902, 0.044436972588300705, 0.03521846979856491, -0.1544973999261856, 0.21919679641723633, -0.19571471214294434, -0.011142566800117493, -0.07170607894659042, 0.234202042222023, 0.26118704676628113, 0.01552495639771223, 0.39985135197639465, -0.03200996294617653, 0.2115757018327713, -0.11096721142530441, 0.371731698513031, -0.10758402198553085, -0.06413689255714417, 0.3863779604434967, -0.08710228651762009, 0.08008597046136856, 0.10765143483877182, 0.12058532238006592, -0.19143742322921753, 0.11788810789585114, -0.09605458378791809, -0.13474112749099731, -0.03846754878759384, 0.1501205414533615, -0.564566433429718, -0.18161514401435852, 0.07558237016201019, -0.3771923780441284, 0.30302008986473083, -0.367533802986145, -0.04437055438756943, -0.43812406063079834, -0.040412772446870804, -0.12795674800872803, 0.007110519800335169, 0.30588552355766296, -0.11307921260595322, -0.050740424543619156, -0.3328305780887604, -0.10520708560943604, 0.4337942600250244, 0.2970626950263977, -0.018374228850007057, -0.05392363667488098, -0.14581742882728577, -0.2737300992012024, -0.036280784755945206, -0.0873367115855217, -0.29598018527030945, 0.12221544235944748, -0.11023023724555969, 0.4858842194080353, -0.013730150647461414, 0.30038338899612427, -0.20765642821788788, 0.016432616859674454, 0.24735835194587708, 0.08742601424455643, 0.015623543411493301, 0.12711456418037415, -0.2721618413925171, -0.21681837737560272, 0.4197225272655487, 0.3042115867137909, 0.14479541778564453, -0.05499642342329025, 0.03154529258608818, -0.037599775940179825, 0.19198814034461975, 0.0012872463557869196, -0.0891600176692009, 0.1462567299604416, 0.3222919702529907, 0.03915053606033325, 0.028894919902086258, -0.06792876869440079, -0.49935466051101685, 0.2035861760377884, -0.24448907375335693, 0.05013919994235039, -0.07173372805118561, 0.05869685113430023, -0.14476880431175232, -0.2020167112350464, -0.2211800217628479, 0.04142209514975548, 0.03793913871049881, 0.3838432729244232, 0.18251536786556244, -0.11797363311052322, 0.024161074310541153, 0.12183178216218948, -0.3390516936779022, 0.04900481551885605, -0.4581523835659027, 0.277000367641449, 0.04108884930610657, 0.11038936674594879, 0.11122725903987885, 0.08957058936357498, 0.07473106682300568, -0.010038650594651699, -0.0309223011136055, 0.39220526814460754, 0.082784503698349, 0.20969495177268982, -0.03046599216759205, 0.4936656057834625, -0.10330232977867126, -0.15651747584342957, -0.16889406740665436, 0.5129123330116272, 0.13651612401008606, -0.18891794979572296, -0.2576069235801697, 0.5926941633224487, -0.13010059297084808, 0.3979541063308716, -0.06444444507360458, 0.1393129676580429, 0.2574174106121063, -0.07679611444473267, -0.3569566309452057, -0.2310630977153778, 0.5517589449882507, -0.1549682766199112, -0.10699024051427841, 0.08321836590766907, -0.15727433562278748, -0.11697342246770859, 0.049692489206790924, -0.1312951147556305, 0.1258499175310135, 0.05750292167067528, 0.10979951173067093, -0.14434097707271576, 0.1292143315076828, 0.5851309895515442, 0.5111243724822998, 0.10826478153467178, -0.15153713524341583, -0.01964271441102028, -0.3857216238975525, -0.08634629100561142, 0.044145312160253525, 0.1460319459438324, 0.04051073268055916, 0.38253477215766907, 0.1978769600391388, -0.15488441288471222, -0.49804577231407166, -0.19632971286773682, 0.0285999346524477, 0.2656156122684479, -0.4287967085838318, 0.07467310130596161, -0.3176439702510834, 0.22828836739063263, -0.3036864995956421, -0.08361854404211044, -0.17860038578510284, -0.5703510046005249, -0.04276426136493683, 0.3845750689506531, -0.07114697247743607, 0.21920952200889587, -0.5256507992744446, 0.10337045043706894, -0.04335349053144455, -0.4788767695426941, 0.03709947690367699, -0.24716107547283173, -0.007933907210826874, -0.004799569956958294, 0.36936381459236145, 0.06958181411027908, 0.44052764773368835, -0.2635093331336975, 0.0232029277831316, -0.5357106924057007, -0.2607899010181427, -0.07549839466810226, -0.09630796313285828, 0.013862358406186104, 0.14566542208194733, 0.14182724058628082, 0.033226583153009415, -0.20470306277275085, 0.13690048456192017, 0.04760861396789551, -0.18991024792194366, 0.28619813919067383, -0.2202904224395752, -0.1222570538520813, 0.14102211594581604, -0.15012799203395844, -0.017632631585001945, -0.22994999587535858, 0.017904769629240036, 0.3132320046424866, 0.11297596246004105, -0.04850471019744873, -0.002841595560312271, 0.06474970281124115, -0.11556962132453918, 0.36814093589782715, -0.29247045516967773, -0.5026840567588806, 0.5586984753608704, 0.0010547736892476678, -0.18931066989898682, 0.0034450325183570385, 0.0448002889752388, 0.22404031455516815, 0.32110515236854553, -0.5155476927757263, -0.07710525393486023, -0.34735143184661865, -0.13095010817050934, 0.1703907549381256, -0.04335390031337738, 0.31314530968666077, 0.12131830304861069, -0.012903424911201, -0.0031680671963840723, -0.45048317313194275, 0.055305108428001404, -0.0679178237915039, 0.559904158115387, -0.2180960774421692, 0.0785483866930008, -0.23561391234397888, 0.4960043728351593, 0.12442969530820847, -0.15270957350730896, -0.0077511826530098915, 0.13882508873939514, 0.32882291078567505, -0.10959140956401825, -0.2257808893918991, -0.14082099497318268, -0.18208323419094086, 0.09833630174398422, 0.02093016915023327, 0.0388200581073761, -0.3366078734397888, -0.11844296753406525, 0.2828335762023926, -0.24130380153656006, -0.21298885345458984, -0.01043504849076271, -0.2640115022659302, 0.34142643213272095, 0.17331115901470184, 0.1471129208803177, -0.17183078825473785, -0.5536512732505798, -0.10060681402683258, 0.06575968116521835, -0.12631848454475403, -0.12819479405879974, -0.3953518867492676, -0.0828724354505539, 0.02685549482703209, 0.36187228560447693, 0.030368680134415627, 0.5633291006088257, -0.033176835626363754, -0.2938780188560486, 0.07653244584798813, -0.1728954315185547, 0.07190108299255371, -0.20820122957229614, 0.18855799734592438, 0.0929393619298935, -0.14726005494594574, -0.3871898055076599, -0.20171378552913666, -0.19497692584991455, 0.2555851340293884, -0.05119122192263603, 0.32637515664100647, -0.3654247224330902, 0.044369496405124664, 0.09887919574975967, 0.399556040763855, -0.21195271611213684, -0.2742007374763489, -0.3901994228363037, -0.14978951215744019, -0.1705022156238556, -0.06327971816062927, -0.2262343317270279, 0.13138258457183838, -0.17889894545078278, 0.19582709670066833, 0.028160611167550087, 0.04613371193408966, 0.34075379371643066, 0.027888186275959015, 0.2946101427078247, -0.08457428961992264, 0.302767276763916, 0.13136056065559387, -0.17909996211528778, 0.10142131894826889, 0.7728276252746582, -0.06775261461734772, -0.3344685435295105, 0.17641977965831757, -0.09490092098712921, -0.2939126193523407, 0.30293992161750793, 0.20609299838542938, -0.07897205650806427, 0.33233919739723206, -0.06424927711486816, -0.0421113483607769, -0.14749032258987427, 0.18181902170181274, 0.03361201658844948, -0.330146461725235, -0.17936338484287262, 0.09238558262586594, -0.022410601377487183, -0.046062126755714417, 0.4420635402202606, 0.15552756190299988, -0.07008903473615646, 0.3109850287437439, 0.4530814588069916, 0.9685313701629639, 0.03991594910621643, 0.24075143039226532, 0.008241811767220497, -0.20673781633377075, 0.16995249688625336, -0.13756133615970612, 0.12088111788034439, -0.4418897032737732, 0.0415288582444191, -0.06695426255464554, -0.2064255177974701, 0.05550218001008034, -0.024467283859848976, 0.13066500425338745, 0.34446534514427185, 0.05492936819791794, 0.14113909006118774, 0.0872214213013649, 0.05006282776594162, -0.2777732014656067, -0.05305973067879677, 0.106703981757164, 0.18319310247898102, -0.13933046162128448, 0.2137453258037567, -0.11270109564065933, 0.20576539635658264, 0.06101259961724281, -0.19525907933712006, -0.4594779312610626, 0.050041262060403824, 0.13866515457630157, 0.4351479113101959, 0.4156051576137543, -0.049229107797145844, -0.21959935128688812, 0.052702952176332474, 0.1416328400373459, 0.04401836916804314, -0.3519318103790283, 0.10947722941637039, 0.4287140667438507, 0.0711216852068901, 0.018462860956788063, -0.16839462518692017, 0.30013972520828247, -0.02416609227657318, -0.14457480609416962, 0.009976831264793873, 0.038539957255125046, -0.4615333676338196, -0.21006183326244354, 0.02403467521071434, -0.20818300545215607, -0.215323343873024, -0.16979579627513885, -0.11315494775772095, -0.08307746797800064, -0.263500452041626, 0.14058613777160645, 0.2836170196533203, -0.09461045265197754, 0.30608177185058594, 0.24136310815811157, -0.3573022782802582, -0.1883837878704071, 0.5763758420944214, -0.03431857377290726, -0.15315952897071838, 0.39774349331855774, 0.009703239426016808, -0.2667918801307678, -0.22589339315891266, 0.2647125720977783, -0.008720433339476585, -0.5552684664726257, 0.005357458256185055, -0.2442559003829956, 0.09470437467098236, -0.06037565693259239, 0.3846193552017212, 0.25346195697784424, 0.15251922607421875, 0.06553544104099274, -0.5687201023101807, -0.010274424217641354, 0.06887277960777283, 0.17081595957279205, 0.41635504364967346, -0.36721882224082947, -0.30881020426750183, -0.08680503815412521, -0.1136460155248642, -0.2778409421443939, 0.011419912800192833, -0.3757009208202362, 0.011329841800034046, -0.1058378741145134, -0.05572705343365669, 0.1868756264448166, 0.005631114821881056, 0.15961796045303345, -0.0025283105205744505, -0.22023127973079681, -0.16304358839988708, -0.21616217494010925, 0.15676753222942352, 0.12829738855361938, -0.1293984353542328, 0.10670197755098343, -0.06691935658454895, 0.051574669778347015, -0.0949593111872673, -0.10712879151105881, 0.3279503285884857, -0.19742891192436218, 0.06880919635295868, 0.028484804555773735, -0.07932654768228531, 0.05427098274230957, -0.20813879370689392, -0.3427084982395172, -0.15417103469371796, 0.290284126996994, -0.06083930656313896, 0.13408024609088898, -0.015064992941915989, 0.1764703094959259, 0.16670067608356476, 0.05973741412162781, -0.12134759873151779, 0.31091028451919556, -0.29659345746040344, -0.06901579350233078, 0.06954306364059448, 0.3078790307044983, 0.5859783887863159, -0.3248101472854614, -0.07010374218225479, 0.23605425655841827, 0.19943517446517944, -0.26967501640319824, -0.10611484944820404, 0.088222935795784, 0.09646308422088623, 0.10122165828943253, 0.07777922600507736, -0.1369309276342392, -0.2971305251121521, 0.4733375906944275, 0.1976400762796402, 0.19447368383407593, -0.7444223165512085, 0.12110161781311035, 0.1118927150964737, -0.20942771434783936, -0.012687564827501774, 0.22133569419384003, -0.15342988073825836, -0.0909123420715332, -0.2060394138097763, -0.06698352843523026, 0.38161471486091614, -0.3638485372066498, 0.2092210352420807, -0.2261679470539093, -0.30459457635879517, 0.3876189589500427, -0.0022030347026884556, -0.05062949284911156, 0.18732132017612457, 0.22138158977031708, 0.41707831621170044, -0.17893338203430176, 0.32289934158325195, -0.6740230917930603, -0.1435563862323761, -0.05055347830057144, -0.19977058470249176, -0.30837327241897583, -0.28736263513565063, -0.06269842386245728, 0.1703532487154007, -0.014221898280084133, -0.018589230254292488, 0.3029104173183441, 0.0746687725186348, -0.20037467777729034, -0.6321524977684021, 0.11774443835020065, -0.16338296234607697, 0.023381059989333153, -0.187385693192482, -0.0054056704975664616, 0.4042907655239105, -0.07043195515871048, 0.09786267578601837, 0.1443997323513031, 0.3789832890033722, 0.35322287678718567, -0.011415496468544006, 0.021594084799289703, -0.29287007451057434, -0.07413683086633682, 0.09634602069854736, 0.8004980087280273, 0.12374939024448395, -0.11629820615053177, 0.34065163135528564, 0.14367252588272095, -0.21669843792915344, 0.5199922919273376, -0.14798790216445923, -0.015721619129180908, -0.03508193790912628, 0.7006474733352661, 0.054091159254312515, 0.16817361116409302, -0.20486721396446228, 0.12548747658729553, -0.34518226981163025, -0.4681113064289093, 0.022095492109656334, 0.13300742208957672, 0.04374304786324501, -0.018366867676377296, 0.05753881111741066, -0.04709760099649429, 0.5547434687614441, 0.27906617522239685, 0.01833435706794262, -0.4084368050098419, 0.01089584268629551, -0.6790786981582642, 0.20030251145362854, -0.32357048988342285, 0.19870667159557343, -0.008652501739561558, 0.32248982787132263, 0.03900822624564171, 0.40530624985694885, 0.09740222245454788, -0.12429536134004593, -0.1956334114074707, -0.039381105452775955, -0.22217251360416412, -0.010410509072244167, 0.2749229371547699, -0.14896613359451294, -0.07784545421600342, -0.2355688214302063, 0.07266674190759659, 0.03363412991166115, 0.07024878263473511, -0.04227016866207123, -0.25671741366386414, -0.029331015422940254, 0.28606587648391724, 0.13231363892555237, 0.07553014159202576, 0.6710904240608215, 0.04725072905421257, -0.11629218608140945, -0.41805797815322876, -0.27124273777008057, 0.0032963878475129604, 0.12239330261945724, -0.05068365857005119, 0.5432879328727722, -0.0329473651945591, -0.3503839373588562, -0.1806844174861908, 0.29769909381866455, -0.20011204481124878, -0.5811734199523926, -0.13009491562843323, 0.05121816694736481, -0.06861288100481033, 0.20988447964191437, -0.23609834909439087, 0.05550290271639824, 0.1703750640153885, 0.19223932921886444, -0.09839437156915665, -0.272001713514328, 0.64048832654953, -0.19934827089309692, -0.05809928849339485, 0.021523084491491318, 0.15027202665805817, -0.04410845786333084, -0.14775337278842926, -0.5046072602272034, 0.18363919854164124, 0.20081613957881927, 0.042010918259620667, -0.10029862821102142, 0.13920530676841736, -0.37282484769821167, 0.2734111547470093, -0.09023398160934448, 0.21148869395256042, 0.09140516072511673, -0.1839483678340912, -0.22373077273368835, -0.15569284558296204 ]
https://github.com/huggingface/datasets/issues/1856
load_dataset("amazon_polarity") NonMatchingChecksumError
Same issue today with "big_patent", though the symptoms are slightly different. When running ```py from datasets import load_dataset load_dataset("big_patent", split="validation") ``` I get the following `FileNotFoundError: Local file \huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist` I had to look into `6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5` (which is a file instead of a folder) and got the following: `<!DOCTYPE html><html><head><title>Google Drive - Quota exceeded</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><link href=&#47;static&#47;doclist&#47;client&#47;css&#47;4033072956&#45;untrustedcontent.css rel="stylesheet" nonce="JV0t61Smks2TEKdFCGAUFA"><link rel="icon" href="//ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png"/><style nonce="JV0t61Smks2TEKdFCGAUFA">#gbar,#guser{font-size:13px;padding-top:0px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important} </style><script nonce="iNUHigT+ENVQ3UZrLkFtRw"></script></head><body><div id=gbar><nobr><a target=_blank class=gb1 href="https://www.google.fr/webhp?tab=ow">Search</a> <a target=_blank class=gb1 href="http://www.google.fr/imghp?hl=en&tab=oi">Images</a> <a target=_blank class=gb1 href="https://maps.google.fr/maps?hl=en&tab=ol">Maps</a> <a target=_blank class=gb1 href="https://play.google.com/?hl=en&tab=o8">Play</a> <a target=_blank class=gb1 href="https://www.youtube.com/?gl=FR&tab=o1">YouTube</a> <a target=_blank class=gb1 href="https://news.google.com/?tab=on">News</a> <a target=_blank class=gb1 href="https://mail.google.com/mail/?tab=om">Gmail</a> <b class=gb1>Drive</b> <a target=_blank class=gb1 style="text-decoration:none" href="https://www.google.fr/intl/en/about/products?tab=oh"><u>More</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a target="_self" href="/settings?hl=en_US" class=gb4>Settings</a> | <a target=_blank href="//support.google.com/drive/?p=web_home&hl=en_US" class=gb4>Help</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://drive.google.com/uc%3Fexport%3Ddownload%26id%3D1J3mucMFTWrgAYa3LuBZoLRR3CzzYD3fa&service=writely&ec=GAZAMQ" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div><div class="uc-main"><div id="uc-text"><p class="uc-error-caption">Sorry, you can&#39;t view or download this file at this time.</p><p class="uc-error-subcaption">Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.</p></div></div><div class="uc-footer"><hr class="uc-footer-divider">&copy; 2021 Google - <a class="goog-link" href="//support.google.com/drive/?p=web_home">Help</a> - <a class="goog-link" href="//support.google.com/drive/bin/answer.py?hl=en_US&amp;answer=2450387">Privacy & Terms</a></div></body></html>`
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
230
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` Same issue today with "big_patent", though the symptoms are slightly different. When running ```py from datasets import load_dataset load_dataset("big_patent", split="validation") ``` I get the following `FileNotFoundError: Local file \huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist` I had to look into `6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5` (which is a file instead of a folder) and got the following: `<!DOCTYPE html><html><head><title>Google Drive - Quota exceeded</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><link href=&#47;static&#47;doclist&#47;client&#47;css&#47;4033072956&#45;untrustedcontent.css rel="stylesheet" nonce="JV0t61Smks2TEKdFCGAUFA"><link rel="icon" href="//ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png"/><style nonce="JV0t61Smks2TEKdFCGAUFA">#gbar,#guser{font-size:13px;padding-top:0px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important} </style><script nonce="iNUHigT+ENVQ3UZrLkFtRw"></script></head><body><div id=gbar><nobr><a target=_blank class=gb1 href="https://www.google.fr/webhp?tab=ow">Search</a> <a target=_blank class=gb1 href="http://www.google.fr/imghp?hl=en&tab=oi">Images</a> <a target=_blank class=gb1 href="https://maps.google.fr/maps?hl=en&tab=ol">Maps</a> <a target=_blank class=gb1 href="https://play.google.com/?hl=en&tab=o8">Play</a> <a target=_blank class=gb1 href="https://www.youtube.com/?gl=FR&tab=o1">YouTube</a> <a target=_blank class=gb1 href="https://news.google.com/?tab=on">News</a> <a target=_blank class=gb1 href="https://mail.google.com/mail/?tab=om">Gmail</a> <b class=gb1>Drive</b> <a target=_blank class=gb1 style="text-decoration:none" href="https://www.google.fr/intl/en/about/products?tab=oh"><u>More</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a target="_self" href="/settings?hl=en_US" class=gb4>Settings</a> | <a target=_blank href="//support.google.com/drive/?p=web_home&hl=en_US" class=gb4>Help</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://drive.google.com/uc%3Fexport%3Ddownload%26id%3D1J3mucMFTWrgAYa3LuBZoLRR3CzzYD3fa&service=writely&ec=GAZAMQ" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div><div class="uc-main"><div id="uc-text"><p class="uc-error-caption">Sorry, you can&#39;t view or download this file at this time.</p><p class="uc-error-subcaption">Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.</p></div></div><div class="uc-footer"><hr class="uc-footer-divider">&copy; 2021 Google - <a class="goog-link" href="//support.google.com/drive/?p=web_home">Help</a> - <a class="goog-link" href="//support.google.com/drive/bin/answer.py?hl=en_US&amp;answer=2450387">Privacy & Terms</a></div></body></html>`
[ -0.19774730503559113, 0.16995878517627716, -0.05109301954507828, 0.23982343077659607, 0.14943896234035492, -0.05001181364059448, 0.26484009623527527, 0.22645074129104614, 0.3186415135860443, 0.06029517576098442, -0.062126901000738144, 0.007254755590111017, -0.004849299788475037, -0.13671965897083282, -0.2075064331293106, 0.35183146595954895, 0.138564795255661, -0.01695389673113823, -0.22596906125545502, 0.019292578101158142, -0.24702662229537964, 0.250722736120224, -0.08148390054702759, -0.16232968866825104, -0.0814453586935997, 0.2453412264585495, 0.1859179139137268, 0.11965073645114899, -0.09244175255298615, -0.4332839846611023, 0.3541627824306488, 0.12079562991857529, 0.055415600538253784, 0.3615814447402954, -0.00012471099034883082, 0.10888240486383438, 0.38871994614601135, 0.057943567633628845, -0.28623658418655396, -0.17275504767894745, -0.4470100402832031, -0.36462825536727905, -0.03329520300030708, 0.0008801841177046299, 0.18492205440998077, 0.07025877386331558, 0.06946150213479996, -0.0631483718752861, 0.005540860816836357, 0.23876340687274933, 0.14213505387306213, 0.42694252729415894, 0.2395906150341034, 0.11778734624385834, 0.2658700942993164, 0.21298731863498688, -0.09012383967638016, 0.26914384961128235, 0.21039167046546936, -0.21427245438098907, -0.25081074237823486, 0.11914146691560745, -0.18595121800899506, 0.41468968987464905, 0.10368171334266663, 0.011697654612362385, 0.253578782081604, -0.1878902167081833, 0.23648741841316223, 0.5302138924598694, 0.34731122851371765, -0.08484256267547607, -0.45748409628868103, -0.16866058111190796, -0.19271670281887054, -0.3431210219860077, 0.34051719307899475, 0.2637239992618561, -0.08643684536218643, -0.1382102221250534, -0.355459064245224, 0.1351717859506607, -0.08915910124778748, 0.24016320705413818, -0.09994024783372879, 0.15850496292114258, 0.10897422581911087, 0.05111023411154747, 0.08961554616689682, -0.28314682841300964, 0.47396644949913025, -0.4253408908843994, -0.01520503032952547, 0.18402883410453796, -0.5253764390945435, 0.05387100204825401, 0.019130345433950424, 0.5155964493751526, 0.3433665931224823, 0.4453728497028351, 0.16381953656673431, 0.15424630045890808, -0.1132073625922203, 0.17499761283397675, 0.10057606548070908, 0.16485698521137238, -0.1246667429804802, 0.28379765152931213, 0.33444952964782715, 0.2328183501958847, 0.06633108854293823, 0.15492470562458038, -0.056503962725400925, -0.27418118715286255, 0.5267840027809143, -0.11085185408592224, 0.3137878477573395, -0.5724882483482361, -0.4306192100048065, 0.33649057149887085, -0.1928470879793167, -0.02821982279419899, 0.06756767630577087, 0.22808031737804413, -0.2387463003396988, 0.30997833609580994, -0.06434719264507294, 0.0004808030789718032, -0.16649764776229858, 0.05024907365441322, -0.20335589349269867, -0.018748333677649498, -0.08107182383537292, 0.28823351860046387, 0.30584704875946045, -0.02994970604777336, 0.32225796580314636, -0.01486210711300373, 0.2578916549682617, -0.09378170967102051, 0.27369096875190735, -0.1426110863685608, 0.00973428413271904, 0.4259118437767029, -0.2763492166996002, 0.03172563016414642, 0.08268141746520996, 0.05991562083363533, -0.14994974434375763, 0.18885469436645508, -0.12199579924345016, -0.10375630855560303, 0.03411070257425308, 0.08559883385896683, -0.7175994515419006, -0.1909339427947998, 0.023606516420841217, -0.4370232820510864, 0.2319755256175995, -0.4660431742668152, -0.0455499105155468, -0.5799194574356079, 0.02505194954574108, -0.14464209973812103, 0.1525886356830597, 0.3106120526790619, -0.1575106978416443, -0.11120430380105972, -0.19450123608112335, -0.04211888462305069, 0.32144999504089355, 0.3376634120941162, -0.09742233157157898, 0.024969791993498802, -0.260408490896225, -0.1538291573524475, 0.01829235441982746, -0.21522995829582214, -0.4789556562900543, 0.09745313972234726, -0.16393165290355682, 0.5817295908927917, 0.16186003386974335, 0.16498017311096191, -0.21306505799293518, 0.05069198086857796, 0.2002878189086914, 0.06768974661827087, -0.012574353255331516, 0.16301994025707245, -0.23481012880802155, -0.19295687973499298, 0.3607840836048126, 0.23277761042118073, 0.23136043548583984, -0.024613628163933754, 0.09428369998931885, -0.04694225639104843, 0.2663871645927429, -0.029554765671491623, -0.12640531361103058, 0.1404915302991867, 0.2977232336997986, -0.05657889321446419, -0.01521762553602457, -0.036336835473775864, -0.4510754346847534, 0.2887560725212097, -0.1545209288597107, 0.02368978224694729, -0.10396189242601395, 0.10782190412282944, -0.12928684055805206, -0.23087923228740692, -0.24097087979316711, -0.09346563369035721, -0.0329284705221653, 0.46287965774536133, 0.17295438051223755, 0.003406903240829706, 0.02806132473051548, 0.24539613723754883, -0.2640734314918518, 0.10126882046461105, -0.5871545672416687, 0.25374558568000793, 0.10945326834917068, 0.09824436902999878, 0.03883282095193863, 0.08060144633054733, 0.06886716932058334, -0.04026970639824867, -0.04837501049041748, 0.33879613876342773, 0.2107187956571579, 0.15176939964294434, -0.004526282195001841, 0.5949774980545044, -0.0514884814620018, -0.040112514048814774, -0.06819971650838852, 0.40755969285964966, 0.16744641959667206, -0.12227020412683487, -0.2599908113479614, 0.6478695869445801, -0.14875340461730957, 0.40133458375930786, -0.024421043694019318, -0.025394396856427193, 0.2595110237598419, -0.14132650196552277, -0.41564345359802246, -0.06062735617160797, 0.49047431349754333, -0.05875052139163017, -0.1178290918469429, 0.09458569437265396, -0.2039501965045929, -0.1534876823425293, 0.2384028434753418, -0.1865161657333374, -0.0035637530963867903, 0.02590348571538925, -0.11448787897825241, -0.07292535156011581, 0.11158125847578049, 0.6173861622810364, 0.6931027770042419, 0.09067492932081223, -0.1532752513885498, -0.07199318706989288, -0.20846176147460938, -0.13191445171833038, 0.05893997848033905, 0.1659443974494934, -0.034493621438741684, 0.48404762148857117, 0.26092493534088135, -0.17415162920951843, -0.4542821943759918, -0.29005131125450134, 0.09695181995630264, 0.1641106903553009, -0.4628483057022095, 0.08096099644899368, -0.30646857619285583, 0.14401854574680328, -0.447400838136673, 0.00892359297722578, -0.30479708313941956, -0.4628066122531891, -0.16764582693576813, 0.5472717881202698, -0.015707002952694893, 0.2009986788034439, -0.6645410060882568, 0.16471226513385773, -0.05948406085371971, -0.46753373742103577, 0.06937343627214432, -0.10887712240219116, -0.014326636679470539, -0.0495196096599102, 0.376041054725647, -0.08424562960863113, 0.39086899161338806, -0.19107729196548462, -0.018152154982089996, -0.5628105998039246, -0.4042617380619049, -0.031547728925943375, -0.09615666419267654, -0.0866442322731018, 0.14876717329025269, 0.06610776484012604, 0.2045077681541443, -0.10823100805282593, 0.12198890745639801, 0.003457909682765603, -0.25152984261512756, 0.1921650469303131, -0.13921421766281128, -0.08676725625991821, 0.13034875690937042, -0.15731967985630035, -0.05556046962738037, -0.24161382019519806, 0.1264016479253769, 0.2230747938156128, 0.04262429475784302, 0.08445572853088379, -0.034070175141096115, 0.13429777324199677, -0.18463167548179626, 0.28684568405151367, -0.21104174852371216, -0.473534494638443, 0.4939219057559967, 0.013769933953881264, -0.2086336761713028, -0.1078980341553688, 0.011480482295155525, 0.20314337313175201, 0.3830645680427551, -0.5122942328453064, -0.05004033446311951, -0.38212719559669495, -0.012285545468330383, 0.1495193988084793, -0.03816824406385422, 0.2434121072292328, 0.0776330828666687, 0.0006719673401676118, -0.06341882795095444, -0.37525632977485657, 0.011934073641896248, -0.05159822851419449, 0.5554401874542236, -0.16580769419670105, 0.13079848885536194, -0.21956469118595123, 0.5205678343772888, 0.020454468205571175, -0.17738822102546692, -0.01509666908532381, 0.12093093246221542, 0.4579956531524658, -0.08203519135713577, -0.23751048743724823, -0.01364228781312704, -0.09285620599985123, 0.0310125183314085, 0.016774410381913185, -0.04595931991934776, -0.05460783466696739, -0.0233068335801363, 0.17575722932815552, -0.15134765207767487, -0.1952762007713318, 0.07363153249025345, -0.20625361800193787, 0.2666296362876892, 0.14918814599514008, 0.08295077830553055, -0.2736794650554657, -0.46010756492614746, -0.08831522613763809, 0.09901739656925201, 0.013199254870414734, -0.11417210847139359, -0.36019742488861084, 0.0028557172045111656, -0.08659466356039047, 0.36942461133003235, 0.06774342060089111, 0.537418007850647, 0.003499907674267888, -0.40624022483825684, -0.027481336146593094, -0.19809554517269135, 0.13662569224834442, 0.04133501648902893, 0.1518639326095581, 0.07608884572982788, -0.26182255148887634, -0.26187315583229065, -0.3011718690395355, -0.14559368789196014, 0.19725076854228973, 0.010225488804280758, 0.4263959527015686, -0.3111911416053772, 0.009012516587972641, 0.07704483717679977, 0.5044949054718018, -0.17369133234024048, -0.16611750423908234, -0.3287228047847748, -0.1103900894522667, -0.205631822347641, -0.0669989213347435, -0.14884114265441895, 0.18985296785831451, -0.2760052978992462, 0.28807491064071655, -0.11593092232942581, -0.04205276444554329, 0.38817960023880005, 0.08116371929645538, 0.29631707072257996, -0.08518502861261368, 0.35961735248565674, 0.18657071888446808, -0.09970211237668991, 0.29357844591140747, 0.7036962509155273, -0.0759228765964508, -0.4403664469718933, 0.13707418739795685, -0.08124598860740662, -0.2529212236404419, 0.3446384370326996, 0.04217109456658363, -0.02072693593800068, 0.4141945540904999, -0.06938471645116806, -0.154379203915596, 0.051763348281383514, 0.28868013620376587, 0.11547521501779556, -0.3386635184288025, -0.238869771361351, 0.1438051164150238, 0.06972374022006989, -0.15266506373882294, 0.4629609286785126, 0.050919342786073685, -0.10791603475809097, 0.10112694650888443, 0.12036442011594772, 0.8393645286560059, 0.11404560506343842, 0.3778184652328491, 0.02670976147055626, -0.039133019745349884, 0.2921768128871918, -0.013614281080663204, 0.2000632882118225, -0.4918191432952881, -0.23180000483989716, -0.06688090413808823, -0.32096394896507263, 0.19609326124191284, -0.10471846163272858, 0.2709457278251648, 0.4352644979953766, 0.2198980748653412, 0.2370736449956894, 0.1346765011548996, 0.09945115447044373, -0.12655268609523773, 0.008077185600996017, 0.054368894547224045, 0.09918506443500519, -0.1956760734319687, 0.40315476059913635, -0.04686635732650757, 0.09235388785600662, -0.09315787255764008, -0.23609024286270142, -0.4514460861682892, 0.11429190635681152, 0.025943413376808167, 0.4191184639930725, 0.3971022665500641, -0.05957547947764397, -0.24795766174793243, 0.14148907363414764, 0.16917681694030762, 0.04258548840880394, -0.2766379415988922, 0.17846965789794922, 0.46716827154159546, 0.09098473936319351, 0.028694743290543556, -0.21776804327964783, 0.32023170590400696, 0.019104456529021263, -0.11458835750818253, -0.004475039895623922, -0.008699634112417698, -0.42151570320129395, -0.2650589942932129, -0.0038230717182159424, -0.017931120470166206, -0.2658545970916748, -0.1391572505235672, -0.1247071698307991, -0.012357354164123535, -0.2472335547208786, 0.08719494938850403, 0.37069395184516907, -0.12432517856359482, 0.23021647334098816, 0.15208064019680023, -0.354450523853302, -0.20478776097297668, 0.5908541083335876, -0.12277287989854813, -0.25881901383399963, 0.5218570828437805, -0.11360203474760056, -0.13347791135311127, -0.14093828201293945, 0.2275194227695465, 0.09630776196718216, -0.4837844967842102, 0.05009154975414276, -0.20602409541606903, 0.02612105943262577, 0.007830807007849216, 0.2911909520626068, 0.22441411018371582, -0.01704385317862034, 0.09978875517845154, -0.5264371037483215, -0.0796751156449318, 0.09519286453723907, 0.05751761421561241, 0.4152073562145233, -0.2721097767353058, -0.2381419986486435, -0.35412922501564026, -0.2754928469657898, -0.227135568857193, 0.0920688733458519, -0.20976027846336365, -0.039622243493795395, -0.018890544772148132, -0.03436441347002983, 0.24262788891792297, -0.02935676835477352, 0.14486683905124664, 0.046000707894563675, -0.12306130677461624, -0.12126544117927551, -0.2768188714981079, 0.20218917727470398, 0.11572746932506561, -0.09818284213542938, 0.06931750476360321, -0.09418787062168121, 0.11005446314811707, -0.11274541914463043, 0.11771132797002792, 0.29052862524986267, -0.17019127309322357, -0.059857748448848724, 0.015868054702878, -0.044926755130290985, 0.14175742864608765, -0.00806552916765213, -0.3633032739162445, -0.09027672559022903, 0.3748228847980499, 0.07045985013246536, 0.024339944124221802, 0.027413727715611458, 0.05990701541304588, 0.13173195719718933, -0.031007997691631317, -0.1302207112312317, 0.4147026836872101, -0.32551631331443787, -0.19373735785484314, 0.07433526962995529, 0.2790164053440094, 0.616661012172699, -0.32772108912467957, -0.10521496832370758, 0.2799763083457947, 0.17889615893363953, -0.20585410296916962, -0.143094003200531, 0.19727864861488342, -0.01526263915002346, 0.10522736608982086, 0.15600429475307465, -0.09996498376131058, -0.2674495279788971, 0.3703506886959076, 0.15760579705238342, 0.2714163064956665, -0.4941531717777252, 0.19630491733551025, 0.26573240756988525, -0.16137734055519104, -0.010737585835158825, 0.255660742521286, -0.09219755232334137, -0.06561291962862015, 0.005616497714072466, -0.053290873765945435, 0.3297795057296753, -0.43412119150161743, 0.08546487987041473, -0.1895894855260849, -0.44096478819847107, 0.28927597403526306, 0.07980870455503464, -0.03378521651029587, 0.24952132999897003, 0.14167198538780212, 0.3144388794898987, -0.21662642061710358, 0.3021014332771301, -0.5998135805130005, -0.01769135147333145, -0.030402960255742073, -0.18134215474128723, -0.1573510318994522, -0.3583908677101135, 0.09248549491167068, 0.24133533239364624, -0.009431893937289715, 0.025511546060442924, 0.33371907472610474, 0.15918375551700592, -0.2511450946331024, -0.5507929921150208, -0.08350777626037598, -0.05675017088651657, 0.035993970930576324, -0.1781904548406601, 0.03370857611298561, 0.4150099456310272, -0.10863178223371506, 0.14954644441604614, 0.21842734515666962, 0.5513758063316345, 0.37307924032211304, 0.050428811460733414, -0.14655163884162903, -0.2240869700908661, -0.017787674441933632, 0.04497196152806282, 0.71610426902771, -0.014010372571647167, -0.05738715082406998, 0.3180466592311859, 0.08893688768148422, -0.1314580738544464, 0.38085654377937317, -0.2900703549385071, -0.1717512011528015, -0.0860825702548027, 0.6210691928863525, 0.009712480008602142, 0.16109301149845123, -0.2436206042766571, 0.18752634525299072, -0.3157792389392853, -0.3980671763420105, 0.139955073595047, 0.19684697687625885, 0.04640091210603714, 0.08362232148647308, 0.0227410439401865, -0.15172046422958374, 0.5273549556732178, 0.3188093602657318, 0.06476729363203049, -0.41741299629211426, 0.08852064609527588, -0.7221715450286865, 0.3024902939796448, -0.33890339732170105, 0.15215422213077545, -0.09381093829870224, 0.21136151254177094, 0.08346601575613022, 0.20103996992111206, 0.04665495455265045, -0.22461093962192535, -0.12089747190475464, -0.12126123160123825, -0.2425459772348404, -0.09150786697864532, 0.3232155740261078, -0.21684274077415466, -0.05142441764473915, -0.30113571882247925, 0.13131888210773468, -0.01322548184543848, 0.0739569216966629, 0.012301190756261349, -0.02896525338292122, -0.17690244317054749, 0.24764831364154816, 0.1143125668168068, 0.173182874917984, 0.7652653455734253, 0.06575863808393478, -0.2970640957355499, -0.46816012263298035, -0.285873144865036, -0.0980948805809021, 0.2642612159252167, -0.1359902173280716, 0.6043885946273804, -0.005483867600560188, -0.3212583661079407, -0.27437594532966614, 0.36817461252212524, -0.15998703241348267, -0.5791298151016235, 0.04258006438612938, 0.036479752510786057, -0.11746981739997864, 0.2359921634197235, -0.12782174348831177, 0.10467364639043808, 0.1012212485074997, 0.2595418393611908, -0.16834723949432373, -0.31324148178100586, 0.6432456970214844, -0.38363611698150635, -0.029061663895845413, -0.013377053663134575, 0.21578654646873474, -0.04617101699113846, -0.07882919907569885, -0.5784164667129517, 0.26468655467033386, 0.2759849727153778, 0.052671365439891815, -0.26283925771713257, 0.10175024718046188, -0.2769634425640106, 0.27393460273742676, -0.031927440315485, 0.29574713110923767, 0.02211076021194458, -0.35651206970214844, -0.19946372509002686, -0.030062248930335045 ]
https://github.com/huggingface/datasets/issues/1854
Feature Request: Dataset.add_item
Hi @sshleifer. I am not sure of understanding the need of the `add_item` approach... By just reading your "Desired API" section, I would say you could (nearly) get it with a 1-column Dataset: ```python data = {"input_ids": [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])]} ds = Dataset.from_dict(data) assert (ds["input_ids"][0] == np.array([4,4,2])).all() ```
I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`. Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries. ### Desired API ```python import numpy as np tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5]) def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset: """FIXME""" dataset = EmptyDataset() for t in tokenized: dataset.append(t) return dataset ds = build_dataset_from_tokenized(tokenized) assert (ds[0] == np.array([4,4,2])).all() ``` ### What I tried grep, google for "add one entry at a time", "datasets.append" ### Current Code This code achieves the same result but doesn't fit into the `add_item` abstraction. ```python dataset = load_dataset('text', data_files={'train': 'train.txt'}) tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096) def tokenize_function(examples): ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids'] return {'input_ids': [x[1:] for x in ids]} ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache) print(ds['train'][0]) => np array ``` Thanks in advance!
48
Feature Request: Dataset.add_item I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`. Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries. ### Desired API ```python import numpy as np tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5]) def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset: """FIXME""" dataset = EmptyDataset() for t in tokenized: dataset.append(t) return dataset ds = build_dataset_from_tokenized(tokenized) assert (ds[0] == np.array([4,4,2])).all() ``` ### What I tried grep, google for "add one entry at a time", "datasets.append" ### Current Code This code achieves the same result but doesn't fit into the `add_item` abstraction. ```python dataset = load_dataset('text', data_files={'train': 'train.txt'}) tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096) def tokenize_function(examples): ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids'] return {'input_ids': [x[1:] for x in ids]} ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache) print(ds['train'][0]) => np array ``` Thanks in advance! Hi @sshleifer. I am not sure of understanding the need of the `add_item` approach... By just reading your "Desired API" section, I would say you could (nearly) get it with a 1-column Dataset: ```python data = {"input_ids": [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5])]} ds = Dataset.from_dict(data) assert (ds["input_ids"][0] == np.array([4,4,2])).all() ```
[ -0.26463037729263306, 0.16031533479690552, -0.04589053988456726, 0.1386159062385559, -0.025281580165028572, 0.12016957253217697, 0.15693797171115875, 0.10714051127433777, 0.05867055803537369, 0.04408632218837738, 0.10954858362674713, 0.582329273223877, -0.15739186108112335, 0.13800698518753052, 0.4451269209384918, -0.13564689457416534, 0.10213318467140198, 0.20480705797672272, -0.17529521882534027, 0.07040873914957047, -0.2645280957221985, -0.09055225551128387, -0.151921808719635, -0.17901945114135742, -0.057933151721954346, -0.06132172793149948, -0.4128628969192505, -0.30235713720321655, -0.26559704542160034, -0.7929655313491821, -0.012384993024170399, -0.0009119821479544044, -0.08393001556396484, 0.26241666078567505, -0.000128334533656016, 0.011733793653547764, 0.16709868609905243, -0.05399583652615547, -0.5640692114830017, -0.04569677636027336, -0.1553960144519806, -0.23874808847904205, 0.14549532532691956, -0.31387245655059814, 0.2260565161705017, -0.7180811762809753, 0.32295912504196167, -0.1545698493719101, 0.08908472210168839, 0.1250140368938446, -0.0003760213730856776, 0.49481213092803955, 0.19910451769828796, -0.3639466166496277, 0.2621561884880066, -0.04534168541431427, -0.13952785730361938, -0.17216233909130096, 0.37630996108055115, -0.20688100159168243, 0.08242149651050568, -0.11259648948907852, 0.2658926248550415, -0.09155639261007309, 0.4066389501094818, 0.12621378898620605, -0.012745577841997147, -0.14266513288021088, -0.15652747452259064, 0.29038795828819275, 0.2264154702425003, -0.41904354095458984, -0.6362012624740601, -0.49100735783576965, 0.30177825689315796, -0.039969149976968765, -0.13481257855892181, 0.06015642732381821, -0.07117336243391037, -0.07603769749403, -0.069809690117836, -0.3770197629928589, -0.11191234737634659, 0.23817096650600433, 0.07179419696331024, 0.44282403588294983, 0.1425432562828064, 0.16436101496219635, 0.1441979557275772, -0.12719418108463287, -0.23456637561321259, 0.015187138691544533, -0.12329404801130295, 0.3333294093608856, -0.10311155766248703, -0.1166459247469902, 0.10922998189926147, -0.047013357281684875, 0.47551247477531433, -0.06129978597164154, 0.17372648417949677, 0.11571205407381058, -0.3675782382488251, 0.08663444221019745, 0.17147600650787354, -0.10088110715150833, 0.21374398469924927, -0.21191571652889252, -0.31287336349487305, 0.07727562636137009, 0.4092104732990265, 0.06203965097665787, -0.18246077001094818, 0.10737273097038269, -0.2618177831172943, -0.3582356870174408, -0.06813803315162659, 0.4037797451019287, -0.12076202780008316, -0.027362430468201637, -0.010700470767915249, 0.08419526368379593, -0.04728735610842705, 0.1736779361963272, 0.17173096537590027, -0.3679131865501404, -0.23938344419002533, 0.20148080587387085, 0.12630760669708252, -0.010278898291289806, 0.08163399994373322, 0.2179589718580246, -0.1080395057797432, 0.1765948086977005, 0.1008230522274971, -0.0010514560854062438, -0.014448720961809158, -0.06498949974775314, 0.06919366866350174, 0.07838709652423859, -0.011410441249608994, -0.18047621846199036, 0.25219929218292236, 0.010661054402589798, 0.0532555989921093, -0.04565268009901047, -0.10148545354604721, -0.4404922425746918, -0.4781497120857239, 0.21988190710544586, -0.1078881099820137, -0.18129076063632965, -0.22441203892230988, -0.06419844180345535, 0.004238865803927183, -0.16428928077220917, -0.19526757299900055, 0.5241121053695679, 0.38313040137290955, -0.23584112524986267, 0.13020889461040497, -0.12835821509361267, -0.5635921955108643, -0.1791517585515976, 0.19442763924598694, 0.33991336822509766, -0.44687527418136597, -0.32744064927101135, -0.10168516635894775, -0.015818869695067406, -0.4132895767688751, 0.1295040398836136, -0.09444604814052582, 0.28009000420570374, -0.43382516503334045, 0.4084138572216034, 0.3091636300086975, -0.16581694781780243, -0.22073665261268616, 0.13089816272258759, -0.17825324833393097, 0.037655308842659, 0.08423426747322083, 0.39586514234542847, 0.2953096926212311, 0.06002054736018181, 0.45100101828575134, 0.25853005051612854, -0.0795215591788292, -0.08993595093488693, 0.07368861883878708, -0.4146658182144165, 0.30074551701545715, -0.011192978359758854, -0.12632045149803162, -0.09053212404251099, 0.0279578547924757, -0.5407941341400146, 0.16449208557605743, -0.10661667585372925, 0.3368986248970032, -0.03835638239979744, 0.4019223153591156, -0.007630366366356611, -0.10582384467124939, -0.5203381776809692, -0.3627268671989441, 0.13841214776039124, -0.07732516527175903, 0.1222192570567131, -0.11240419745445251, -0.43580928444862366, -0.1482967883348465, 0.426714152097702, -0.13473986089229584, -0.02146945707499981, -0.06915144622325897, 0.0572071373462677, -0.00934620387852192, -0.12008197605609894, -0.43596360087394714, 0.1428774744272232, 0.22834071516990662, 0.30765411257743835, -0.439309298992157, -0.049836788326501846, 0.26864808797836304, -0.18490706384181976, -0.12170294672250748, 0.1733717918395996, -0.14107570052146912, -0.14435359835624695, 0.20837102830410004, 0.28238561749458313, -0.08674018085002899, -0.27010419964790344, 0.12039026618003845, 0.2604823708534241, 0.2900450527667999, 0.3060082197189331, -0.1001444160938263, -0.20570522546768188, 0.3140789866447449, -0.25328323245048523, -0.22916974127292633, 0.5499871373176575, 0.041929569095373154, 0.4261951148509979, 0.13705667853355408, 0.039284318685531616, 0.02019626833498478, 0.25116249918937683, -0.2537926733493805, -0.25780317187309265, -0.04990611970424652, 0.14885686337947845, 0.21238470077514648, -0.11960549652576447, -0.10451830923557281, 0.16266418993473053, 0.14226289093494415, 0.15961845219135284, 0.17707395553588867, 0.14432260394096375, -0.21447370946407318, 0.06230207905173302, 0.06796950101852417, 0.01498672179877758, 0.45754340291023254, 0.05440102145075798, 0.11451712250709534, 0.065916046500206, 0.11104565858840942, 0.056891068816185, 0.05898295342922211, 0.031461481004953384, -0.11707378178834915, 0.03847317770123482, 0.5389946699142456, 0.0615474209189415, -0.02183939330279827, -0.13882122933864594, 0.1136976033449173, -0.04325578361749649, -0.12181823700666428, 0.03975675627589226, 0.04482460767030716, 0.07221556454896927, -0.2530297338962555, -0.3716772198677063, -0.08491823822259903, -0.08437567949295044, 0.26894086599349976, 0.031431782990694046, 0.01564125344157219, 0.30108165740966797, 0.13798797130584717, 0.7158757448196411, 0.10474459826946259, -0.4731733500957489, -0.08592251688241959, 0.006562049500644207, 0.218261256814003, -0.10107187181711197, -0.1031729057431221, 0.30300992727279663, 0.40211188793182373, 0.0869901031255722, -0.03165741637349129, -0.34752026200294495, -0.5039153695106506, 0.10952753573656082, -0.0517868846654892, 0.4337320923805237, 0.3948706388473511, -0.3356005549430847, -0.11234266310930252, -0.25170546770095825, 0.18364888429641724, 0.03734738752245903, -0.13940848410129547, -0.186064213514328, -0.09768550843000412, -0.23739208281040192, -0.0496557243168354, 0.10303230583667755, -0.20601674914360046, -0.17669335007667542, 0.47337397933006287, 0.1536124348640442, 0.2519134283065796, -0.22289298474788666, 0.09829564392566681, 0.03369427099823952, -0.13969437777996063, -0.1208665743470192, 0.07183230668306351, -0.004221078008413315, 0.47306138277053833, -0.3619570732116699, -0.1762785017490387, -0.16062293946743011, -0.5109409093856812, 0.11148465424776077, 0.37749406695365906, -0.2879171669483185, -0.3993908762931824, -0.26131343841552734, 0.3807630240917206, -0.09368481487035751, 0.2705558240413666, 0.4955574572086334, 0.004103261511772871, 0.15339620411396027, 0.05740005522966385, -0.2879428565502167, 0.3740730881690979, 0.1856687217950821, 0.059899698942899704, 0.08098185807466507, 0.17045247554779053, 0.08677665889263153, 0.6634982824325562, 0.1845441460609436, -0.10840792208909988, 0.14336372911930084, -0.5918190479278564, 0.36275261640548706, -0.21686521172523499, -0.2220134437084198, -0.17964661121368408, -0.11066213995218277, 0.09413600713014603, 0.060779642313718796, -0.02639322727918625, 0.1260293871164322, 0.07124590873718262, 0.34688258171081543, 0.05419715493917465, -0.19858409464359283, 0.1793525069952011, 0.021064361557364464, 0.337336003780365, -0.01932542584836483, -0.022401677444577217, -0.38714271783828735, 0.01736508123576641, -0.040992371737957, 0.2764805853366852, 0.23895832896232605, -0.1770685762166977, -0.4978470504283905, -0.1409878134727478, -0.30735698342323303, 0.06948606669902802, 0.3090182840824127, 0.4473905861377716, 0.24807782471179962, -0.15971800684928894, 0.0432351678609848, -0.20205296576023102, 0.7236329913139343, 0.3253350555896759, -0.45943284034729004, 0.008428249508142471, 0.09381840378046036, -0.2563489079475403, 0.17329339683055878, 0.013920534402132034, 0.5422021746635437, 0.1814739853143692, 0.25240612030029297, -0.45429104566574097, 0.2550082206726074, 0.20514771342277527, 0.17938865721225739, -0.18166588246822357, -0.17783893644809723, -0.11380921304225922, -0.12891355156898499, -0.2315639853477478, 0.18714295327663422, 0.19322194159030914, 0.22092893719673157, 0.4691873788833618, -0.09896110743284225, -0.4084220826625824, 0.06687796860933304, 0.10205275565385818, -0.033317096531391144, 0.0044959913939237595, 0.14979662001132965, 0.5072352290153503, -0.11103896796703339, -0.20785854756832123, 0.4400330185890198, 0.4042300283908844, -0.13303767144680023, -0.4836515188217163, -0.1611761450767517, -0.20422430336475372, 0.41727617383003235, 0.2799076437950134, 0.16675494611263275, 0.2738693654537201, 0.04891597852110863, 0.16796071827411652, -0.23839904367923737, 0.25133588910102844, 0.09252864867448807, -0.12772482633590698, -0.3582007884979248, -0.3206028342247009, 0.44010812044143677, -0.0505424402654171, -0.05108637735247612, 0.09315472841262817, 0.1860107034444809, -0.31321626901626587, 0.3559417724609375, -0.03830637410283089, 0.8532406091690063, 0.01401891466230154, 0.4227760136127472, 0.2781122922897339, -0.039860375225543976, 0.3147442638874054, -0.03836730867624283, 0.21104803681373596, -0.4547419548034668, -0.2135489284992218, -0.03939887136220932, -0.14632272720336914, 0.16004078090190887, 0.20316047966480255, -0.15104271471500397, 0.20565752685070038, 0.24870678782463074, 0.002484890166670084, -0.11763036996126175, 0.24413831532001495, -0.2815452814102173, -0.4994770884513855, -0.3187267482280731, -0.07894278317689896, 0.18579216301441193, -0.06793349981307983, -0.1185276135802269, -0.002344770822674036, -0.0017800619825720787, -0.28009092807769775, -0.3747289776802063, -0.39914995431900024, -0.30931708216667175, -0.15893959999084473, 0.6127159595489502, -0.2648882567882538, 0.2600622773170471, -0.03469882160425186, -0.03426207974553108, 0.17096036672592163, 0.11673980206251144, 0.08110897988080978, -0.01935592293739319, -0.13601712882518768, -0.04074382036924362, -0.39090287685394287, 0.17596065998077393, 0.2466161698102951, 0.016629822552204132, 0.2744936943054199, -0.11718245595693588, -0.2790036201477051, -0.21064773201942444, 0.2183815836906433, 0.23843270540237427, -0.29302552342414856, -0.2510792315006256, 0.19930975139141083, 0.11795337498188019, -0.2569965422153473, -0.11513956636190414, 0.17478705942630768, -0.2499658465385437, 0.15523767471313477, 0.05253283679485321, -0.036947693675756454, -0.0058730472810566425, 0.29757970571517944, -0.1896287202835083, -0.2781783640384674, 0.3539307415485382, 0.14287421107292175, -0.07277350127696991, -0.0792887806892395, -0.026616469025611877, 0.437744140625, -0.21364104747772217, -0.0719575434923172, 0.054707154631614685, -0.048379138112068176, -0.2827552258968353, 0.07057514786720276, 0.07421274483203888, 0.1839037388563156, -0.10512717068195343, -0.291168749332428, -0.40446874499320984, 0.27638909220695496, 0.30021363496780396, 0.3721834421157837, 0.18485020101070404, 0.17024461925029755, -0.25245630741119385, 0.4358144700527191, -0.11690612137317657, 0.14791810512542725, 0.14597806334495544, 0.15027102828025818, 0.1854642629623413, 0.11600229889154434, -0.0826215147972107, 0.12805064022541046, -0.07828205078840256, 0.15506193041801453, -0.14408214390277863, 0.015192843042314053, -0.17475159466266632, 0.2127382904291153, 0.23315869271755219, -0.01122698001563549, -0.14788378775119781, -0.1146843358874321, -0.1762089878320694, -0.39478346705436707, 0.31633493304252625, -0.09465277940034866, -0.2700202167034149, -0.1996142864227295, 0.6224365234375, 0.2577293813228607, -0.09895133227109909, 0.5540854334831238, 0.2836502194404602, 0.47066375613212585, 0.1808958351612091, 0.2874775528907776, -0.3524555265903473, 0.07644622772932053, 0.33858639001846313, 0.4616103768348694, 0.3684328496456146, -0.046408213675022125, 0.04084179177880287, -0.20603260397911072, -0.008124864660203457, 0.14027893543243408, 0.22865033149719238, 0.5841596126556396, -0.2424769103527069, 0.08344714343547821, 0.3389280140399933, 0.0132564976811409, -0.18867424130439758, 0.009598078206181526, 0.28297343850135803, -0.11926642805337906, 0.28851720690727234, 0.44387462735176086, -0.14190615713596344, 0.1382758915424347, -0.15664732456207275, 0.08617467433214188, 0.010041003115475178, 0.014658243395388126, -0.15473578870296478, -0.09307608008384705, -0.03515288606286049, -0.1431526094675064, 0.14801137149333954, 0.38503360748291016, 0.32572320103645325, 0.5992692708969116, -0.23771469295024872, 0.4989948570728302, 0.5984045267105103, 0.00660231476649642, 0.19620777666568756, 0.019539721310138702, 0.053991951048374176, 0.526034414768219, 0.6944855451583862, 0.11543510109186172, 0.35118868947029114, 0.4129692018032074, -0.07078659534454346, -0.07139267027378082, 0.0020066762808710337, 0.1799699068069458, 0.190928116440773, -0.339601069688797, 0.12106675654649734, -0.19975031912326813, -0.22556713223457336, -0.09369383752346039, -0.0438624806702137, -0.39085352420806885, 0.055697210133075714, -0.03286726400256157, 0.35947734117507935, -0.4826163053512573, 0.07417026907205582, 0.2190120816230774, 0.06761746853590012, -0.3067227005958557, 0.16837604343891144, 0.019327277317643166, 0.16121827065944672, 0.09859342128038406, 0.08855102211236954, 0.1539875715970993, 0.22363562881946564, -0.04122740775346756, 0.3775154948234558, -0.5520080924034119, 0.09237152338027954, -0.06420952081680298, -0.06269228458404541, -0.01287122257053852, -0.05020253732800484, 0.29811492562294006, -0.07037270069122314, 0.027540579438209534, 0.16847111284732819, 0.24425911903381348, -0.11067022383213043, -0.5813176035881042, -0.005478480365127325, 0.0077507090754806995, -0.2768877148628235, -0.08205695450305939, -0.014522100798785686, -0.04413740709424019, -0.06875870376825333, 0.2984168529510498, -0.3923061490058899, 0.03525099158287048, 0.16577960550785065, -0.014820742420852184, -0.1587483286857605, 0.163619726896286, 0.5065169930458069, 0.29000043869018555, -0.07103007286787033, -0.24688386917114258, -0.5102573037147522, -0.009848136454820633, -0.11190381646156311, -0.19571399688720703, -0.05564751476049423, 0.11794808506965637, 0.02696909010410309, 0.20014068484306335, 0.16112181544303894, -0.009064904414117336, -0.03408839553594589, 0.39533859491348267, -0.17830930650234222, -0.046291593462228775, -0.08578576892614365, 0.1022694930434227, 0.1350228637456894, -0.26319119334220886, -0.165293350815773, -0.07073991000652313, -0.16213330626487732, -0.10256875306367874, -0.009248988702893257, -0.0537613183259964, -0.12468934059143066, 0.5808807015419006, 0.20995670557022095, 0.14341820776462555, -0.10437189787626266, -0.014056524261832237, -0.21728017926216125, -0.1125311329960823, -0.3362768888473511, 0.6051651835441589, 0.02825118787586689, 0.06292777508497238, -0.14583714306354523, 0.03556367754936218, 0.018791522830724716, 0.0046906257048249245, 0.0892239511013031, -0.15652590990066528, -0.19709037244319916, 0.35914427042007446, -0.39626544713974, 0.11759531497955322, -0.1363483965396881, 0.30453747510910034, 0.21002304553985596, 0.2169957309961319, 0.18470238149166107, -0.09158128499984741, 0.2319045215845108, -0.4541724622249603, -0.3235698640346527, -0.07796170562505722, 0.02189251035451889, 0.0010355317499488592, -0.3787168562412262, -0.5221458077430725, -0.2875068783760071, 0.33966606855392456, -0.01115972176194191, -0.043744463473558426, 0.046223849058151245, -0.18471591174602509, -0.12373717874288559, -0.4769805371761322, 0.47858408093452454, -0.019892258569598198, -0.08345730602741241, -0.09862784296274185, -0.5801854133605957 ]
https://github.com/huggingface/datasets/issues/1854
Feature Request: Dataset.add_item
Hi @sshleifer :) We don't have methods like `Dataset.add_batch` or `Dataset.add_entry/add_item` yet. But that's something we'll add pretty soon. Would an API that looks roughly like this help ? Do you have suggestions ? ```python import numpy as np from datasets import Dataset tokenized = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5]) # API suggestion (not available yet) d = Dataset() for input_ids in tokenized: d.add_item({"input_ids": input_ids}) print(d[0]["input_ids"]) # [4, 4, 2] ``` Currently you can define a dataset with what @albertvillanova suggest, or via a generator using dataset builders. It's also possible to [concatenate datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets).
I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`. Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries. ### Desired API ```python import numpy as np tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5]) def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset: """FIXME""" dataset = EmptyDataset() for t in tokenized: dataset.append(t) return dataset ds = build_dataset_from_tokenized(tokenized) assert (ds[0] == np.array([4,4,2])).all() ``` ### What I tried grep, google for "add one entry at a time", "datasets.append" ### Current Code This code achieves the same result but doesn't fit into the `add_item` abstraction. ```python dataset = load_dataset('text', data_files={'train': 'train.txt'}) tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096) def tokenize_function(examples): ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids'] return {'input_ids': [x[1:] for x in ids]} ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache) print(ds['train'][0]) => np array ``` Thanks in advance!
92
Feature Request: Dataset.add_item I'm trying to integrate `huggingface/datasets` functionality into `fairseq`, which requires (afaict) being able to build a dataset through an `add_item` method, such as https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L318, as opposed to loading all the text into arrow, and then `dataset.map(binarizer)`. Is this possible at the moment? Is there an example? I'm happy to use raw `pa.Table` but not sure whether it will support uneven length entries. ### Desired API ```python import numpy as np tokenized: List[np.NDArray[np.int64]] = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5]) def build_dataset_from_tokenized(tokenized: List[np.NDArray[int]]) -> Dataset: """FIXME""" dataset = EmptyDataset() for t in tokenized: dataset.append(t) return dataset ds = build_dataset_from_tokenized(tokenized) assert (ds[0] == np.array([4,4,2])).all() ``` ### What I tried grep, google for "add one entry at a time", "datasets.append" ### Current Code This code achieves the same result but doesn't fit into the `add_item` abstraction. ```python dataset = load_dataset('text', data_files={'train': 'train.txt'}) tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_length=4096) def tokenize_function(examples): ids = tokenizer(examples['text'], return_attention_mask=False)['input_ids'] return {'input_ids': [x[1:] for x in ids]} ds = dataset.map(tokenize_function, batched=True, num_proc=4, remove_columns=['text'], load_from_cache_file=not overwrite_cache) print(ds['train'][0]) => np array ``` Thanks in advance! Hi @sshleifer :) We don't have methods like `Dataset.add_batch` or `Dataset.add_entry/add_item` yet. But that's something we'll add pretty soon. Would an API that looks roughly like this help ? Do you have suggestions ? ```python import numpy as np from datasets import Dataset tokenized = [np.array([4,4,2]), np.array([8,6,5,5,2]), np.array([3,3,31,5]) # API suggestion (not available yet) d = Dataset() for input_ids in tokenized: d.add_item({"input_ids": input_ids}) print(d[0]["input_ids"]) # [4, 4, 2] ``` Currently you can define a dataset with what @albertvillanova suggest, or via a generator using dataset builders. It's also possible to [concatenate datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets).
[ -0.26463037729263306, 0.16031533479690552, -0.04589053988456726, 0.1386159062385559, -0.025281580165028572, 0.12016957253217697, 0.15693797171115875, 0.10714051127433777, 0.05867055803537369, 0.04408632218837738, 0.10954858362674713, 0.582329273223877, -0.15739186108112335, 0.13800698518753052, 0.4451269209384918, -0.13564689457416534, 0.10213318467140198, 0.20480705797672272, -0.17529521882534027, 0.07040873914957047, -0.2645280957221985, -0.09055225551128387, -0.151921808719635, -0.17901945114135742, -0.057933151721954346, -0.06132172793149948, -0.4128628969192505, -0.30235713720321655, -0.26559704542160034, -0.7929655313491821, -0.012384993024170399, -0.0009119821479544044, -0.08393001556396484, 0.26241666078567505, -0.000128334533656016, 0.011733793653547764, 0.16709868609905243, -0.05399583652615547, -0.5640692114830017, -0.04569677636027336, -0.1553960144519806, -0.23874808847904205, 0.14549532532691956, -0.31387245655059814, 0.2260565161705017, -0.7180811762809753, 0.32295912504196167, -0.1545698493719101, 0.08908472210168839, 0.1250140368938446, -0.0003760213730856776, 0.49481213092803955, 0.19910451769828796, -0.3639466166496277, 0.2621561884880066, -0.04534168541431427, -0.13952785730361938, -0.17216233909130096, 0.37630996108055115, -0.20688100159168243, 0.08242149651050568, -0.11259648948907852, 0.2658926248550415, -0.09155639261007309, 0.4066389501094818, 0.12621378898620605, -0.012745577841997147, -0.14266513288021088, -0.15652747452259064, 0.29038795828819275, 0.2264154702425003, -0.41904354095458984, -0.6362012624740601, -0.49100735783576965, 0.30177825689315796, -0.039969149976968765, -0.13481257855892181, 0.06015642732381821, -0.07117336243391037, -0.07603769749403, -0.069809690117836, -0.3770197629928589, -0.11191234737634659, 0.23817096650600433, 0.07179419696331024, 0.44282403588294983, 0.1425432562828064, 0.16436101496219635, 0.1441979557275772, -0.12719418108463287, -0.23456637561321259, 0.015187138691544533, -0.12329404801130295, 0.3333294093608856, -0.10311155766248703, -0.1166459247469902, 0.10922998189926147, -0.047013357281684875, 0.47551247477531433, -0.06129978597164154, 0.17372648417949677, 0.11571205407381058, -0.3675782382488251, 0.08663444221019745, 0.17147600650787354, -0.10088110715150833, 0.21374398469924927, -0.21191571652889252, -0.31287336349487305, 0.07727562636137009, 0.4092104732990265, 0.06203965097665787, -0.18246077001094818, 0.10737273097038269, -0.2618177831172943, -0.3582356870174408, -0.06813803315162659, 0.4037797451019287, -0.12076202780008316, -0.027362430468201637, -0.010700470767915249, 0.08419526368379593, -0.04728735610842705, 0.1736779361963272, 0.17173096537590027, -0.3679131865501404, -0.23938344419002533, 0.20148080587387085, 0.12630760669708252, -0.010278898291289806, 0.08163399994373322, 0.2179589718580246, -0.1080395057797432, 0.1765948086977005, 0.1008230522274971, -0.0010514560854062438, -0.014448720961809158, -0.06498949974775314, 0.06919366866350174, 0.07838709652423859, -0.011410441249608994, -0.18047621846199036, 0.25219929218292236, 0.010661054402589798, 0.0532555989921093, -0.04565268009901047, -0.10148545354604721, -0.4404922425746918, -0.4781497120857239, 0.21988190710544586, -0.1078881099820137, -0.18129076063632965, -0.22441203892230988, -0.06419844180345535, 0.004238865803927183, -0.16428928077220917, -0.19526757299900055, 0.5241121053695679, 0.38313040137290955, -0.23584112524986267, 0.13020889461040497, -0.12835821509361267, -0.5635921955108643, -0.1791517585515976, 0.19442763924598694, 0.33991336822509766, -0.44687527418136597, -0.32744064927101135, -0.10168516635894775, -0.015818869695067406, -0.4132895767688751, 0.1295040398836136, -0.09444604814052582, 0.28009000420570374, -0.43382516503334045, 0.4084138572216034, 0.3091636300086975, -0.16581694781780243, -0.22073665261268616, 0.13089816272258759, -0.17825324833393097, 0.037655308842659, 0.08423426747322083, 0.39586514234542847, 0.2953096926212311, 0.06002054736018181, 0.45100101828575134, 0.25853005051612854, -0.0795215591788292, -0.08993595093488693, 0.07368861883878708, -0.4146658182144165, 0.30074551701545715, -0.011192978359758854, -0.12632045149803162, -0.09053212404251099, 0.0279578547924757, -0.5407941341400146, 0.16449208557605743, -0.10661667585372925, 0.3368986248970032, -0.03835638239979744, 0.4019223153591156, -0.007630366366356611, -0.10582384467124939, -0.5203381776809692, -0.3627268671989441, 0.13841214776039124, -0.07732516527175903, 0.1222192570567131, -0.11240419745445251, -0.43580928444862366, -0.1482967883348465, 0.426714152097702, -0.13473986089229584, -0.02146945707499981, -0.06915144622325897, 0.0572071373462677, -0.00934620387852192, -0.12008197605609894, -0.43596360087394714, 0.1428774744272232, 0.22834071516990662, 0.30765411257743835, -0.439309298992157, -0.049836788326501846, 0.26864808797836304, -0.18490706384181976, -0.12170294672250748, 0.1733717918395996, -0.14107570052146912, -0.14435359835624695, 0.20837102830410004, 0.28238561749458313, -0.08674018085002899, -0.27010419964790344, 0.12039026618003845, 0.2604823708534241, 0.2900450527667999, 0.3060082197189331, -0.1001444160938263, -0.20570522546768188, 0.3140789866447449, -0.25328323245048523, -0.22916974127292633, 0.5499871373176575, 0.041929569095373154, 0.4261951148509979, 0.13705667853355408, 0.039284318685531616, 0.02019626833498478, 0.25116249918937683, -0.2537926733493805, -0.25780317187309265, -0.04990611970424652, 0.14885686337947845, 0.21238470077514648, -0.11960549652576447, -0.10451830923557281, 0.16266418993473053, 0.14226289093494415, 0.15961845219135284, 0.17707395553588867, 0.14432260394096375, -0.21447370946407318, 0.06230207905173302, 0.06796950101852417, 0.01498672179877758, 0.45754340291023254, 0.05440102145075798, 0.11451712250709534, 0.065916046500206, 0.11104565858840942, 0.056891068816185, 0.05898295342922211, 0.031461481004953384, -0.11707378178834915, 0.03847317770123482, 0.5389946699142456, 0.0615474209189415, -0.02183939330279827, -0.13882122933864594, 0.1136976033449173, -0.04325578361749649, -0.12181823700666428, 0.03975675627589226, 0.04482460767030716, 0.07221556454896927, -0.2530297338962555, -0.3716772198677063, -0.08491823822259903, -0.08437567949295044, 0.26894086599349976, 0.031431782990694046, 0.01564125344157219, 0.30108165740966797, 0.13798797130584717, 0.7158757448196411, 0.10474459826946259, -0.4731733500957489, -0.08592251688241959, 0.006562049500644207, 0.218261256814003, -0.10107187181711197, -0.1031729057431221, 0.30300992727279663, 0.40211188793182373, 0.0869901031255722, -0.03165741637349129, -0.34752026200294495, -0.5039153695106506, 0.10952753573656082, -0.0517868846654892, 0.4337320923805237, 0.3948706388473511, -0.3356005549430847, -0.11234266310930252, -0.25170546770095825, 0.18364888429641724, 0.03734738752245903, -0.13940848410129547, -0.186064213514328, -0.09768550843000412, -0.23739208281040192, -0.0496557243168354, 0.10303230583667755, -0.20601674914360046, -0.17669335007667542, 0.47337397933006287, 0.1536124348640442, 0.2519134283065796, -0.22289298474788666, 0.09829564392566681, 0.03369427099823952, -0.13969437777996063, -0.1208665743470192, 0.07183230668306351, -0.004221078008413315, 0.47306138277053833, -0.3619570732116699, -0.1762785017490387, -0.16062293946743011, -0.5109409093856812, 0.11148465424776077, 0.37749406695365906, -0.2879171669483185, -0.3993908762931824, -0.26131343841552734, 0.3807630240917206, -0.09368481487035751, 0.2705558240413666, 0.4955574572086334, 0.004103261511772871, 0.15339620411396027, 0.05740005522966385, -0.2879428565502167, 0.3740730881690979, 0.1856687217950821, 0.059899698942899704, 0.08098185807466507, 0.17045247554779053, 0.08677665889263153, 0.6634982824325562, 0.1845441460609436, -0.10840792208909988, 0.14336372911930084, -0.5918190479278564, 0.36275261640548706, -0.21686521172523499, -0.2220134437084198, -0.17964661121368408, -0.11066213995218277, 0.09413600713014603, 0.060779642313718796, -0.02639322727918625, 0.1260293871164322, 0.07124590873718262, 0.34688258171081543, 0.05419715493917465, -0.19858409464359283, 0.1793525069952011, 0.021064361557364464, 0.337336003780365, -0.01932542584836483, -0.022401677444577217, -0.38714271783828735, 0.01736508123576641, -0.040992371737957, 0.2764805853366852, 0.23895832896232605, -0.1770685762166977, -0.4978470504283905, -0.1409878134727478, -0.30735698342323303, 0.06948606669902802, 0.3090182840824127, 0.4473905861377716, 0.24807782471179962, -0.15971800684928894, 0.0432351678609848, -0.20205296576023102, 0.7236329913139343, 0.3253350555896759, -0.45943284034729004, 0.008428249508142471, 0.09381840378046036, -0.2563489079475403, 0.17329339683055878, 0.013920534402132034, 0.5422021746635437, 0.1814739853143692, 0.25240612030029297, -0.45429104566574097, 0.2550082206726074, 0.20514771342277527, 0.17938865721225739, -0.18166588246822357, -0.17783893644809723, -0.11380921304225922, -0.12891355156898499, -0.2315639853477478, 0.18714295327663422, 0.19322194159030914, 0.22092893719673157, 0.4691873788833618, -0.09896110743284225, -0.4084220826625824, 0.06687796860933304, 0.10205275565385818, -0.033317096531391144, 0.0044959913939237595, 0.14979662001132965, 0.5072352290153503, -0.11103896796703339, -0.20785854756832123, 0.4400330185890198, 0.4042300283908844, -0.13303767144680023, -0.4836515188217163, -0.1611761450767517, -0.20422430336475372, 0.41727617383003235, 0.2799076437950134, 0.16675494611263275, 0.2738693654537201, 0.04891597852110863, 0.16796071827411652, -0.23839904367923737, 0.25133588910102844, 0.09252864867448807, -0.12772482633590698, -0.3582007884979248, -0.3206028342247009, 0.44010812044143677, -0.0505424402654171, -0.05108637735247612, 0.09315472841262817, 0.1860107034444809, -0.31321626901626587, 0.3559417724609375, -0.03830637410283089, 0.8532406091690063, 0.01401891466230154, 0.4227760136127472, 0.2781122922897339, -0.039860375225543976, 0.3147442638874054, -0.03836730867624283, 0.21104803681373596, -0.4547419548034668, -0.2135489284992218, -0.03939887136220932, -0.14632272720336914, 0.16004078090190887, 0.20316047966480255, -0.15104271471500397, 0.20565752685070038, 0.24870678782463074, 0.002484890166670084, -0.11763036996126175, 0.24413831532001495, -0.2815452814102173, -0.4994770884513855, -0.3187267482280731, -0.07894278317689896, 0.18579216301441193, -0.06793349981307983, -0.1185276135802269, -0.002344770822674036, -0.0017800619825720787, -0.28009092807769775, -0.3747289776802063, -0.39914995431900024, -0.30931708216667175, -0.15893959999084473, 0.6127159595489502, -0.2648882567882538, 0.2600622773170471, -0.03469882160425186, -0.03426207974553108, 0.17096036672592163, 0.11673980206251144, 0.08110897988080978, -0.01935592293739319, -0.13601712882518768, -0.04074382036924362, -0.39090287685394287, 0.17596065998077393, 0.2466161698102951, 0.016629822552204132, 0.2744936943054199, -0.11718245595693588, -0.2790036201477051, -0.21064773201942444, 0.2183815836906433, 0.23843270540237427, -0.29302552342414856, -0.2510792315006256, 0.19930975139141083, 0.11795337498188019, -0.2569965422153473, -0.11513956636190414, 0.17478705942630768, -0.2499658465385437, 0.15523767471313477, 0.05253283679485321, -0.036947693675756454, -0.0058730472810566425, 0.29757970571517944, -0.1896287202835083, -0.2781783640384674, 0.3539307415485382, 0.14287421107292175, -0.07277350127696991, -0.0792887806892395, -0.026616469025611877, 0.437744140625, -0.21364104747772217, -0.0719575434923172, 0.054707154631614685, -0.048379138112068176, -0.2827552258968353, 0.07057514786720276, 0.07421274483203888, 0.1839037388563156, -0.10512717068195343, -0.291168749332428, -0.40446874499320984, 0.27638909220695496, 0.30021363496780396, 0.3721834421157837, 0.18485020101070404, 0.17024461925029755, -0.25245630741119385, 0.4358144700527191, -0.11690612137317657, 0.14791810512542725, 0.14597806334495544, 0.15027102828025818, 0.1854642629623413, 0.11600229889154434, -0.0826215147972107, 0.12805064022541046, -0.07828205078840256, 0.15506193041801453, -0.14408214390277863, 0.015192843042314053, -0.17475159466266632, 0.2127382904291153, 0.23315869271755219, -0.01122698001563549, -0.14788378775119781, -0.1146843358874321, -0.1762089878320694, -0.39478346705436707, 0.31633493304252625, -0.09465277940034866, -0.2700202167034149, -0.1996142864227295, 0.6224365234375, 0.2577293813228607, -0.09895133227109909, 0.5540854334831238, 0.2836502194404602, 0.47066375613212585, 0.1808958351612091, 0.2874775528907776, -0.3524555265903473, 0.07644622772932053, 0.33858639001846313, 0.4616103768348694, 0.3684328496456146, -0.046408213675022125, 0.04084179177880287, -0.20603260397911072, -0.008124864660203457, 0.14027893543243408, 0.22865033149719238, 0.5841596126556396, -0.2424769103527069, 0.08344714343547821, 0.3389280140399933, 0.0132564976811409, -0.18867424130439758, 0.009598078206181526, 0.28297343850135803, -0.11926642805337906, 0.28851720690727234, 0.44387462735176086, -0.14190615713596344, 0.1382758915424347, -0.15664732456207275, 0.08617467433214188, 0.010041003115475178, 0.014658243395388126, -0.15473578870296478, -0.09307608008384705, -0.03515288606286049, -0.1431526094675064, 0.14801137149333954, 0.38503360748291016, 0.32572320103645325, 0.5992692708969116, -0.23771469295024872, 0.4989948570728302, 0.5984045267105103, 0.00660231476649642, 0.19620777666568756, 0.019539721310138702, 0.053991951048374176, 0.526034414768219, 0.6944855451583862, 0.11543510109186172, 0.35118868947029114, 0.4129692018032074, -0.07078659534454346, -0.07139267027378082, 0.0020066762808710337, 0.1799699068069458, 0.190928116440773, -0.339601069688797, 0.12106675654649734, -0.19975031912326813, -0.22556713223457336, -0.09369383752346039, -0.0438624806702137, -0.39085352420806885, 0.055697210133075714, -0.03286726400256157, 0.35947734117507935, -0.4826163053512573, 0.07417026907205582, 0.2190120816230774, 0.06761746853590012, -0.3067227005958557, 0.16837604343891144, 0.019327277317643166, 0.16121827065944672, 0.09859342128038406, 0.08855102211236954, 0.1539875715970993, 0.22363562881946564, -0.04122740775346756, 0.3775154948234558, -0.5520080924034119, 0.09237152338027954, -0.06420952081680298, -0.06269228458404541, -0.01287122257053852, -0.05020253732800484, 0.29811492562294006, -0.07037270069122314, 0.027540579438209534, 0.16847111284732819, 0.24425911903381348, -0.11067022383213043, -0.5813176035881042, -0.005478480365127325, 0.0077507090754806995, -0.2768877148628235, -0.08205695450305939, -0.014522100798785686, -0.04413740709424019, -0.06875870376825333, 0.2984168529510498, -0.3923061490058899, 0.03525099158287048, 0.16577960550785065, -0.014820742420852184, -0.1587483286857605, 0.163619726896286, 0.5065169930458069, 0.29000043869018555, -0.07103007286787033, -0.24688386917114258, -0.5102573037147522, -0.009848136454820633, -0.11190381646156311, -0.19571399688720703, -0.05564751476049423, 0.11794808506965637, 0.02696909010410309, 0.20014068484306335, 0.16112181544303894, -0.009064904414117336, -0.03408839553594589, 0.39533859491348267, -0.17830930650234222, -0.046291593462228775, -0.08578576892614365, 0.1022694930434227, 0.1350228637456894, -0.26319119334220886, -0.165293350815773, -0.07073991000652313, -0.16213330626487732, -0.10256875306367874, -0.009248988702893257, -0.0537613183259964, -0.12468934059143066, 0.5808807015419006, 0.20995670557022095, 0.14341820776462555, -0.10437189787626266, -0.014056524261832237, -0.21728017926216125, -0.1125311329960823, -0.3362768888473511, 0.6051651835441589, 0.02825118787586689, 0.06292777508497238, -0.14583714306354523, 0.03556367754936218, 0.018791522830724716, 0.0046906257048249245, 0.0892239511013031, -0.15652590990066528, -0.19709037244319916, 0.35914427042007446, -0.39626544713974, 0.11759531497955322, -0.1363483965396881, 0.30453747510910034, 0.21002304553985596, 0.2169957309961319, 0.18470238149166107, -0.09158128499984741, 0.2319045215845108, -0.4541724622249603, -0.3235698640346527, -0.07796170562505722, 0.02189251035451889, 0.0010355317499488592, -0.3787168562412262, -0.5221458077430725, -0.2875068783760071, 0.33966606855392456, -0.01115972176194191, -0.043744463473558426, 0.046223849058151245, -0.18471591174602509, -0.12373717874288559, -0.4769805371761322, 0.47858408093452454, -0.019892258569598198, -0.08345730602741241, -0.09862784296274185, -0.5801854133605957 ]
https://github.com/huggingface/datasets/issues/1849
Add TIMIT
@patrickvonplaten Could you please help me with how the output text has to be represented in the data? TIMIT has Words, Phonemes and texts. Also has lot on info on the speaker and the dialect. Could you please help me? An example of how to arrange it would be super helpful!
## Adding a Dataset - **Name:** *TIMIT* - **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT - **Data:** *https://deepai.org/dataset/timit* - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
51
Add TIMIT ## Adding a Dataset - **Name:** *TIMIT* - **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT - **Data:** *https://deepai.org/dataset/timit* - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). @patrickvonplaten Could you please help me with how the output text has to be represented in the data? TIMIT has Words, Phonemes and texts. Also has lot on info on the speaker and the dialect. Could you please help me? An example of how to arrange it would be super helpful!
[ 0.07334078103303909, -0.31102487444877625, -0.17628318071365356, 0.18871602416038513, 0.08587624877691269, -0.1072421595454216, 0.11768946796655655, 0.06328703463077545, -0.42619067430496216, -0.1358918398618698, -0.2996539771556854, 0.13682129979133606, -0.07004323601722717, 0.3138231635093689, 0.23151516914367676, -0.381204217672348, -0.09241614490747452, 0.12396924942731857, -0.24858666956424713, -0.16811473667621613, -0.02067510411143303, 0.2014283537864685, 0.06020832806825638, -0.01701551117002964, -0.07883286476135254, -0.18578273057937622, -0.10645757615566254, -0.19129639863967896, -0.20093780755996704, -0.41116446256637573, -0.12930689752101898, 0.039378609508275986, 0.0996628850698471, 0.5218947529792786, -0.00010906290845014155, -0.1116432249546051, -0.0847964659333229, -0.27521812915802, -0.0482056550681591, -0.19770300388336182, 0.0026011851150542498, 0.017241301015019417, -0.18760879337787628, 0.03326176106929779, -0.11618632823228836, 0.0043505593203008175, 0.17673377692699432, -0.25665250420570374, 0.15262366831302643, 0.2560276687145233, 0.1796584576368332, -0.23972344398498535, 0.0037537463940680027, 0.12032017111778259, 0.18378843367099762, 0.35328981280326843, -0.16591176390647888, -0.1861259788274765, 0.4423634707927704, 0.36910584568977356, 0.15452513098716736, 0.20547360181808472, -0.23383255302906036, -0.1602448970079422, 0.11722177267074585, 0.15880267322063446, -0.12801286578178406, -0.4249427020549774, -0.20013166964054108, 0.16148608922958374, 1.0803807973861694, -0.2730863690376282, -0.21022604405879974, -0.1682133823633194, -0.006715795956552029, -0.03884527459740639, 0.05452780798077583, 0.0947854071855545, -0.10753994435071945, 0.28220412135124207, -0.12841124832630157, -0.08735627681016922, -0.4036233723163605, 0.2998383939266205, 0.17510934174060822, -0.0903947651386261, -0.16519016027450562, -0.08172041177749634, -0.26525259017944336, -0.022478092461824417, -0.12658856809139252, -0.06915128231048584, 0.18290844559669495, 0.14437106251716614, 0.12643036246299744, -0.2070370763540268, -0.07222411036491394, -0.23967809975147247, 0.1297905594110489, 0.07993317395448685, 0.15788933634757996, 0.12825001776218414, -0.36138394474983215, -0.03553213179111481, 0.32121121883392334, -0.14832332730293274, 0.16046485304832458, -0.3020420968532562, 0.030456164851784706, -0.361366331577301, 0.16218852996826172, -0.28479939699172974, -0.24289122223854065, 0.23617418110370636, 0.1377910077571869, -0.04678942263126373, 0.14815653860569, -0.22798576951026917, 0.002664957894012332, 0.052713945508003235, -0.01803532987833023, 0.05892867222428322, -0.03035878576338291, 0.083738312125206, -0.1445215493440628, 0.14644832909107208, 0.11821045726537704, 0.23814336955547333, -0.015013312920928001, -0.11150407046079636, 0.08406878262758255, -0.04577231407165527, -0.2555972635746002, 0.18171603977680206, 0.052026499062776566, -0.10004579275846481, 0.16858193278312683, 0.19605779647827148, -0.01181861199438572, -0.07843689620494843, -0.13665597140789032, -0.17842057347297668, 0.277706503868103, -0.1461719274520874, 0.05278093367815018, 0.13902635872364044, -0.19031889736652374, -0.04702985659241676, -0.36331474781036377, 0.12110863626003265, 0.16795186698436737, -0.04229332134127617, -0.04531392082571983, 0.18672382831573486, -0.01248191762715578, -0.15626361966133118, -0.17691925168037415, 0.7114759683609009, 0.27492037415504456, -0.10273965448141098, -0.007508346810936928, 0.19399183988571167, -0.5860933065414429, -0.10502418130636215, 0.17764414846897125, 0.058558449149131775, -0.6696820855140686, 0.021252363920211792, -0.03786776214838028, 0.16111616790294647, 0.2975310981273651, 0.21256428956985474, 0.3395765423774719, 0.586378812789917, 0.021005181595683098, 0.2667875587940216, 0.17175595462322235, -0.2706248164176941, -0.1431095004081726, 0.13693781197071075, -0.1598663032054901, -0.11708606034517288, -0.0473482646048069, 0.14493805170059204, 0.47928541898727417, -0.1018764078617096, 0.029484499245882034, 0.19400767982006073, -0.20144179463386536, -0.023552918806672096, -0.029060686007142067, -0.03718943893909454, -0.12045936286449432, 0.07785845547914505, -0.1989879012107849, -0.10679564625024796, -0.12517985701560974, 0.21775095164775848, 0.22465145587921143, 0.06529523432254791, 0.34704649448394775, 0.06921228766441345, 0.3848000168800354, 0.1909002661705017, 0.12973538041114807, -0.4917137026786804, 0.4033929109573364, -0.1964220255613327, 0.1526644080877304, 0.4782296419143677, -0.14731842279434204, -0.16714206337928772, -0.3596310019493103, -0.2206093817949295, -0.0516650564968586, 0.2606669068336487, 0.22058157622814178, 0.19911760091781616, -0.00945559237152338, 0.08572056144475937, 0.03558220714330673, 0.45010992884635925, -0.007556460797786713, -0.24193495512008667, -0.32012736797332764, 0.2504463493824005, 0.09513722360134125, -0.344682902097702, -0.014947967603802681, 0.4989420771598816, -0.0831926092505455, 0.14937995374202728, 0.1380862295627594, 0.24662889540195465, 0.0038793247658759356, 0.013597617857158184, -0.2022041380405426, -0.11014501750469208, 0.2628403902053833, -0.42288246750831604, 0.33136412501335144, 0.06269055604934692, 0.06378625333309174, -0.22584551572799683, 0.03935587778687477, -0.020557556301355362, 0.15597416460514069, 0.0706193819642067, -0.14247244596481323, -0.10161646455526352, -0.13290533423423767, 0.049660250544548035, -0.05690520256757736, -0.11066027730703354, 0.06487013399600983, 0.1193823590874672, -0.0562705397605896, -0.2600480020046234, -0.262647420167923, 0.24232971668243408, 0.2686454653739929, 0.006195769179612398, 0.0921064242720604, 0.046634625643491745, -0.20505350828170776, 0.20629242062568665, -0.04789954051375389, -0.4742144048213959, -0.005433513782918453, 0.2985423505306244, 0.19349925220012665, -0.0386916808784008, 0.11781859397888184, -0.000056475502788089216, 0.07349789887666702, 0.1441567987203598, -0.1406792253255844, 0.26912420988082886, -0.16840887069702148, 0.01447732001543045, -0.2006816267967224, -0.06469595432281494, -0.28758808970451355, 0.039223283529281616, -0.17643782496452332, -0.19920675456523895, 0.07650134712457657, -0.18412116169929504, -0.24531424045562744, -0.31672370433807373, 0.09951215982437134, 0.06108703464269638, 0.26863893866539, 0.1480073779821396, 0.04912695288658142, -0.010122484527528286, 0.21242128312587738, 0.1507253497838974, 0.023235665634274483, -0.00013391221000347286, -0.021518444642424583, -0.032079972326755524, -0.15615946054458618, 0.1696840524673462, 0.07609432190656662, 0.30614376068115234, 0.4528857469558716, -0.30624520778656006, 0.014612657949328423, 0.08024492859840393, -0.01783129945397377, 0.23041720688343048, -0.3757926821708679, 0.2834009528160095, 0.02893555536866188, -0.000024455279344692826, -0.36053264141082764, -0.41153913736343384, 0.01614697277545929, -0.031522803008556366, -0.29192906618118286, 0.07438741624355316, -0.09567873924970627, -0.13400152325630188, 0.11572191119194031, -0.44453519582748413, -0.2971717119216919, -0.30250343680381775, 0.3352985084056854, 0.08214475959539413, 0.22495856881141663, 0.1699913591146469, -0.12080789357423782, 0.17537829279899597, 0.16364525258541107, 0.43416133522987366, -0.3202284872531891, -0.3624630868434906, 0.30462294816970825, -0.25488191843032837, -0.29761961102485657, -0.08710065484046936, 0.0060076480731368065, 0.02602296881377697, 0.06352515518665314, -0.20883041620254517, 0.14199554920196533, -0.0100437942892313, 0.0497107058763504, 0.08470221608877182, 0.17801372706890106, 0.15832418203353882, 0.07651868462562561, -0.07987674325704575, -0.23206676542758942, 0.03285493329167366, 0.1476110965013504, 0.1669752299785614, 0.19662988185882568, 0.29789403080940247, 0.014755643904209137, 0.006801586598157883, 0.34933769702911377, 0.4952244162559509, 0.03258588910102844, 0.06205910071730614, 0.28227323293685913, 0.003372748615220189, -0.017473340034484863, -0.30496931076049805, 0.19448675215244293, 0.04972262680530548, 0.10942009091377258, 0.6189509034156799, 0.25904396176338196, -0.03162532299757004, -0.1296892911195755, -0.15733641386032104, -0.38302525877952576, -0.1344003826379776, 0.23378100991249084, -0.2662251591682434, 0.14176760613918304, -0.37338876724243164, -0.15008798241615295, -0.021447021514177322, -0.172500878572464, 0.06449077278375626, -0.02319784089922905, 0.06949951499700546, 0.017032019793987274, -0.45991891622543335, -0.11790144443511963, -0.4404781460762024, -0.1500290185213089, 0.3699204921722412, 0.06646852940320969, -0.2545385956764221, 0.05896398797631264, 0.016657784581184387, 0.4282952845096588, 0.28719913959503174, -0.35954993963241577, -0.08175087720155716, -0.05954828858375549, 0.32083824276924133, -0.23375289142131805, 0.36333978176116943, -0.37908264994621277, 0.06112980097532272, 0.24092157185077667, -0.016108591109514236, -0.1946835219860077, 0.16996218264102936, 0.0684407502412796, 0.3552647829055786, -0.1093616932630539, -0.39791908860206604, 0.1107325479388237, -0.32213619351387024, -0.03772106021642685, 0.04761197790503502, 0.2975730001926422, 0.010838627815246582, 0.2765031158924103, -0.33371978998184204, 0.3182637095451355, 0.2296828031539917, 0.5717835426330566, -0.07925067842006683, 0.12951108813285828, 0.17110103368759155, 0.10022380948066711, 0.43727409839630127, 0.08105815201997757, 0.061336807906627655, 0.33551281690597534, -0.008457669988274574, -0.08387047052383423, 0.04230137914419174, -0.6474966406822205, 0.6383486390113831, 0.17787428200244904, 0.5054203271865845, 0.05788170546293259, -0.09885600954294205, -0.17916415631771088, -0.31234708428382874, 0.08295226097106934, 0.2765520215034485, 0.22879862785339355, -0.5406426787376404, -0.4827091693878174, 0.3688138425350189, -0.05081510916352272, -0.01609273999929428, 0.39329227805137634, 0.08660991489887238, -0.527391254901886, 0.400051087141037, 0.13467925786972046, 1.2645552158355713, -0.0729818046092987, 0.08058939129114151, 0.016674039885401726, 0.2139325886964798, 0.1104702427983284, -0.3328990638256073, -0.10022413730621338, -0.1184973418712616, 0.003925262950360775, -0.18404242396354675, 0.1489252746105194, -0.11249903589487076, 0.4466055631637573, -0.6558462977409363, -0.23422347009181976, 0.11346223950386047, 0.18014772236347198, 0.031666409224271774, 0.23095674812793732, -0.08756128698587418, -0.5443077683448792, -0.10684700310230255, 0.13332852721214294, -0.09437736123800278, -0.10515189915895462, 0.07793395966291428, -0.14074036478996277, -0.09908615052700043, 0.18724781274795532, -0.5839383602142334, -0.1935071349143982, -0.2705630362033844, -0.25399860739707947, -0.26427024602890015, -0.4549120366573334, 0.4614436626434326, 0.30343616008758545, 0.4711971879005432, 0.26482269167900085, -0.09883330017328262, -0.2700287103652954, 0.2565156817436218, -0.2440984696149826, 0.1132153794169426, -0.056417740881443024, 0.2361486703157425, -0.2565666139125824, -0.4020334780216217, 0.11990686506032944, 0.23404668271541595, 0.05581391975283623, -0.1997068226337433, -0.24282489717006683, 0.27732720971107483, -0.6060067415237427, 0.03326360508799553, 0.40399426221847534, 0.039299190044403076, 0.056162282824516296, 0.15937115252017975, 0.32194453477859497, -0.2703976631164551, 0.3919329047203064, -0.0728837251663208, -0.11713265627622604, -0.09170074015855789, -0.014020177535712719, 0.32096004486083984, -0.09505333751440048, 0.26670223474502563, 0.3177773356437683, -0.20660614967346191, -0.19010841846466064, 0.12542100250720978, -0.002546016126871109, -0.06991807371377945, -0.16680938005447388, -0.0008282214985229075, 0.036496035754680634, -0.22431479394435883, 0.25829023122787476, 0.2697300314903259, -0.13129591941833496, -0.23894843459129333, -0.16251564025878906, -0.4066064953804016, 0.14960841834545135, 0.2464057207107544, 0.2030087560415268, 0.056859228760004044, 0.10913637280464172, 0.10584737360477448, 0.12977898120880127, -0.38442057371139526, -0.35622239112854004, 0.1625206172466278, 0.39111217856407166, 0.28984397649765015, -0.09931996464729309, 0.05262233689427376, -0.13960684835910797, 0.11516237258911133, 0.11629302054643631, -0.12752391397953033, -0.21183669567108154, -0.1285020262002945, 0.13775882124900818, 0.11933887004852295, -0.23925863206386566, -0.045786309987306595, -0.15537230670452118, -0.2056812047958374, -0.16299696266651154, -0.0004475294554140419, 0.43571797013282776, 0.03952742740511894, 0.37204888463020325, 0.20681524276733398, 0.12072861939668655, -0.11142976582050323, -0.13430261611938477, 0.088663250207901, 0.06583263725042343, 0.1747949868440628, -0.014456461183726788, 0.0639537051320076, -0.15197861194610596, 0.05204696208238602, 0.3738802671432495, 0.3549930155277252, -0.12321454286575317, 0.19293799996376038, -0.11402671784162521, 0.26566067337989807, 0.35613322257995605, 0.2540927529335022, 0.19470107555389404, 0.1525966376066208, -0.13671189546585083, 0.1833355575799942, 0.2633679509162903, 0.005276957992464304, 0.07479976117610931, -0.2822594940662384, -0.13670016825199127, 0.05136086046695709, 0.2769143581390381, 0.10086409747600555, -0.08527088165283203, 0.25146493315696716, -0.07312741875648499, 0.14880718290805817, -0.08419324457645416, -0.06418972462415695, 0.3689873218536377, 0.13005855679512024, -0.04578273743391037, 0.05080210044980049, 0.22023053467273712, 0.017639752477407455, 0.08830852806568146, 0.004228862002491951, 0.097426638007164, -0.11537209153175354, 0.10032282024621964, 0.17487205564975739, 0.0657183900475502, -0.025954345241189003, 0.2681543529033661, -0.10540754348039627, 0.18854920566082, 0.2058892697095871, 0.6595246195793152, -0.060186561197042465, -0.10495853424072266, 0.16618195176124573, -0.0065028914250433445, -0.055218420922756195, 0.07875632494688034, -0.6642009615898132, -0.2857763469219208, -0.05304745212197304, -0.4137745201587677, 0.0484936386346817, -0.35197770595550537, 0.07822862267494202, 0.11374503374099731, 0.07023753970861435, -0.41516268253326416, -0.05278243497014046, -0.2030503749847412, 0.32018181681632996, -0.2529441714286804, 0.23392575979232788, 0.2223714292049408, -0.04413421079516411, 0.16097749769687653, 0.3641621470451355, 0.1534333974123001, -0.05330926924943924, -0.37579479813575745, 0.46932974457740784, -0.291598916053772, -0.25233930349349976, 0.09521356225013733, 0.34390467405319214, 0.07589484006166458, -0.003580893389880657, 0.1196691170334816, 0.19784623384475708, -0.046899016946554184, -0.1937180757522583, 0.45778197050094604, -0.36456626653671265, 0.12806463241577148, 0.13830488920211792, 0.11339161545038223, -0.3378143608570099, -0.1734234094619751, -0.3441174030303955, -0.46325910091400146, 0.006295274011790752, 0.7435652613639832, -0.2706797122955322, -0.01279832236468792, -0.04727347940206528, 0.10165635496377945, 0.03484269231557846, 0.053734615445137024, 0.5934007167816162, 0.2932857573032379, 0.14232075214385986, -0.1733776181936264, -0.14678943157196045, 0.10804624110460281, 0.13896942138671875, -0.3366042971611023, -0.06523744761943817, -0.05203010141849518, 0.3682010769844055, 0.36340823769569397, -0.056464485824108124, -0.306018590927124, -0.7328791618347168, 0.2398657202720642, -0.18637478351593018, 0.034514736384153366, -0.06668299436569214, 0.6858644485473633, -0.1334248185157776, 0.05402849242091179, -0.2784748673439026, 0.34733185172080994, 0.07631673663854599, -0.40324634313583374, 0.1232486143708229, -0.06566449254751205, 0.2084621787071228, -0.15248478949069977, -0.006083516404032707, 0.4159909784793854, -0.33212652802467346, 0.1745481789112091, 0.12447519600391388, 0.055659327656030655, -0.32892921566963196, 0.27536389231681824, 0.16529689729213715, 0.35696494579315186, -0.29382044076919556, 0.1285812258720398, 0.017426159232854843, 0.0891982689499855, 0.1250600516796112, 0.043239396065473557, -0.2158607393503189, 0.055238258093595505, -0.29385218024253845, -0.17642256617546082, 0.05602654814720154, 0.3817704916000366, -0.04732424020767212, -0.025754064321517944, -0.398832231760025, -0.41084012389183044, 0.005937601905316114, 0.0089304493740201, -0.44033634662628174, 0.1504611372947693, -0.030387062579393387, -0.018161719664931297, 0.22316448390483856, -0.7285831570625305, -0.08740348368883133, 0.4551878571510315, 0.020122678950428963, 0.08900473266839981, 0.23690152168273926, 0.04753032699227333, -0.15702630579471588, -0.09155993163585663, 0.4929827153682709, 0.10331769287586212, -0.15235236287117004, -0.19843709468841553, -0.5478037595748901 ]
https://github.com/huggingface/datasets/issues/1849
Add TIMIT
Hey @vrindaprabhu - sure I'll help you :-) Could you open a first PR for TIMIT where you copy-paste more or less the `librispeech_asr` script: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L93 (obviously replacing all the naming and links correctly...) and then you can list all possible outputs in the features dict: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L104 (words, phonemes should probably be of kind `datasets.Sequence(datasets.Value("string"))` and texts I think should be of type `"text": datasets.Value("string")`. When you've opened a first PR, I think it'll be much easier for us to take a look together :-)
## Adding a Dataset - **Name:** *TIMIT* - **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT - **Data:** *https://deepai.org/dataset/timit* - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
85
Add TIMIT ## Adding a Dataset - **Name:** *TIMIT* - **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT - **Data:** *https://deepai.org/dataset/timit* - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hey @vrindaprabhu - sure I'll help you :-) Could you open a first PR for TIMIT where you copy-paste more or less the `librispeech_asr` script: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L93 (obviously replacing all the naming and links correctly...) and then you can list all possible outputs in the features dict: https://github.com/huggingface/datasets/blob/28be129db862ec89a87ac9349c64df6b6118aff4/datasets/librispeech_asr/librispeech_asr.py#L104 (words, phonemes should probably be of kind `datasets.Sequence(datasets.Value("string"))` and texts I think should be of type `"text": datasets.Value("string")`. When you've opened a first PR, I think it'll be much easier for us to take a look together :-)
[ -0.24468590319156647, -0.4731045365333557, -0.17479413747787476, 0.05118913948535919, 0.12573246657848358, -0.0904696136713028, 0.07210584729909897, 0.21556374430656433, -0.2834804058074951, 0.12189000844955444, -0.30200299620628357, 0.19129183888435364, -0.36626750230789185, 0.1645149141550064, 0.1355859637260437, -0.04946170747280121, -0.15291061997413635, 0.11668291687965393, -0.06517565995454788, -0.10856389999389648, -0.09383026510477066, 0.2661959230899811, -0.007683649659156799, -0.08310703188180923, 0.07404875755310059, 0.0012328423326835036, 0.027120307087898254, -0.26144617795944214, -0.22609646618366241, -0.4311259984970093, -0.28076693415641785, 0.10978248715400696, 0.04201340675354004, 0.26065462827682495, -0.00010121670493390411, -0.0995495617389679, 0.10226967185735703, -0.25638729333877563, -0.23640814423561096, -0.2771139144897461, 0.09442076086997986, 0.2249717116355896, -0.10207259654998779, 0.033095844089984894, -0.35129186511039734, -0.08708485215902328, 0.17362701892852783, -0.2990616261959076, 0.09423600882291794, 0.44839200377464294, 0.28700491786003113, 0.10876739770174026, 0.017240189015865326, -0.047073785215616226, 0.3513873815536499, 0.0892288014292717, -0.16798582673072815, -0.10174920409917831, 0.26337388157844543, 0.1719568520784378, -0.11541386693716049, 0.28040534257888794, -0.0734502375125885, -0.0649399608373642, 0.16999833285808563, 0.06321088969707489, -0.15344156324863434, -0.4414435029029846, -0.12580600380897522, 0.19198228418827057, 0.5023924112319946, -0.3778814375400543, -0.2496560662984848, -0.23434032499790192, 0.0014097087550908327, -0.23833130300045013, 0.03169894218444824, 0.08528122305870056, -0.4321369528770447, 0.24406301975250244, 0.0006116594886407256, -0.16494078934192657, -0.11422032862901688, 0.21034087240695953, 0.35623785853385925, -0.06611640006303787, -0.2036212980747223, -0.24574142694473267, 0.062494564801454544, -0.112938791513443, -0.19851765036582947, 0.08735667169094086, 0.14477220177650452, 0.11884988099336624, -0.021981598809361458, -0.1750054806470871, 0.22421278059482574, -0.14598152041435242, 0.2494656890630722, 0.18115286529064178, 0.29159146547317505, 0.24775192141532898, -0.275158166885376, -0.008245314471423626, 0.0662299320101738, 0.016224076971411705, 0.2081107646226883, -0.3157467842102051, 0.17483124136924744, 0.07498715817928314, 0.10833233594894409, -0.10479304194450378, -0.11581269651651382, 0.3235103487968445, 0.05458405241370201, -0.0948982983827591, 0.12705442309379578, -0.1975928395986557, -0.14941683411598206, -0.06540802121162415, -0.08926375955343246, -0.052933935075998306, 0.026162229478359222, 0.3333393335342407, -0.03328792750835419, 0.1628887951374054, 0.18775023519992828, 0.19653339684009552, -0.10169684886932373, -0.1391805112361908, -0.016942819580435753, 0.07193756848573685, -0.07206819951534271, 0.14180031418800354, 0.2965698540210724, -0.15361981093883514, 0.21459493041038513, 0.011772245168685913, 0.053139880299568176, 0.02274688147008419, -0.08996181190013885, -0.002037527970969677, 0.2373250275850296, -0.12184551358222961, 0.02318565547466278, -0.07825490832328796, -0.20072712004184723, -0.04732876643538475, -0.2776859998703003, -0.13557001948356628, 0.3456788957118988, -0.007959702983498573, -0.08296467363834381, 0.33326560258865356, -0.0892806276679039, -0.11178594082593918, 0.07520336657762527, 0.6522979736328125, 0.10525468736886978, -0.14940649271011353, -0.012488228268921375, 0.12183579802513123, -0.5117605924606323, -0.08225051313638687, 0.15446123480796814, 0.15376883745193481, -0.17831572890281677, -0.17356684803962708, 0.1369704157114029, 0.050269823521375656, 0.0950474888086319, 0.16648828983306885, 0.14061355590820312, 0.1440722793340683, -0.14383848011493683, 0.3682321012020111, 0.11320498585700989, -0.22346149384975433, -0.24753256142139435, -0.030293380841612816, -0.16984879970550537, -0.08154895156621933, 0.2441522479057312, 0.16581100225448608, 0.3559544086456299, -0.05546833947300911, 0.13000716269016266, 0.18744397163391113, 0.003880757372826338, -0.06747839599847794, -0.24166366457939148, -0.20775257050991058, -0.19628147780895233, 0.21668952703475952, -0.07965875416994095, 0.026991507038474083, 0.010064009577035904, 0.2276165783405304, 0.28254789113998413, -0.15273934602737427, 0.31405630707740784, 0.0815107524394989, 0.31977126002311707, 0.07829023152589798, 0.17774344980716705, -0.5899131894111633, 0.23973122239112854, -0.21061839163303375, -0.09541408717632294, 0.5726774334907532, -0.14580252766609192, -0.3300567865371704, -0.1602548360824585, -0.23735032975673676, 0.03239300847053528, 0.12301578372716904, 0.3529721796512604, 0.45234936475753784, 0.06818275153636932, 0.12423286586999893, -0.07140252739191055, 0.28737708926200867, 0.05655902996659279, -0.1308630406856537, -0.2722592353820801, 0.04384126886725426, -0.07347366213798523, -0.22394545376300812, 0.2974465489387512, 0.3255217373371124, -0.15483888983726501, 0.09116227179765701, 0.12028322368860245, 0.22557201981544495, -0.049788713455200195, 0.023363672196865082, -0.15309083461761475, 0.09252262860536575, 0.1362098902463913, -0.40396830439567566, -0.020087143406271935, 0.1621834933757782, 0.08430828154087067, -0.09320226311683655, -0.005053823348134756, 0.11343776434659958, 0.41569405794143677, 0.028996990993618965, 0.27485740184783936, 0.09982946515083313, 0.07272627204656601, -0.06466154009103775, -0.26923900842666626, -0.08808619529008865, 0.2396896779537201, -0.20247285068035126, 0.031108366325497627, -0.13338591158390045, -0.43742772936820984, 0.09217143803834915, 0.29568782448768616, -0.05180959776043892, 0.19796715676784515, 0.15823370218276978, -0.2827553153038025, 0.08483237028121948, -0.03430252522230148, -0.3078746199607849, -0.02309681661427021, 0.389395147562027, 0.09230034798383713, -0.08831435441970825, -0.0653996616601944, 0.01060397643595934, 0.09369625896215439, 0.1997475028038025, -0.28944966197013855, 0.2492719441652298, 0.12730135023593903, -0.13507242500782013, -0.5136488080024719, -0.1554001271724701, -0.2910380959510803, 0.05270358920097351, -0.16084137558937073, -0.17692860960960388, 0.01880229078233242, -0.20575912296772003, 0.005926381330937147, -0.1677868515253067, 0.03869974613189697, 0.05474894121289253, 0.35676196217536926, 0.23623713850975037, -0.11754140257835388, 0.0963420495390892, -0.07783704251050949, 0.1724705845117569, 0.03359057754278183, -0.08172580599784851, -0.11402255296707153, -0.007856412790715694, -0.006550025660544634, 0.24027875065803528, 0.19581031799316406, 0.2084500640630722, 0.472078800201416, -0.09747312217950821, 0.042800214141607285, -0.08279523998498917, -0.11795312911272049, 0.26761025190353394, -0.27314597368240356, 0.15026795864105225, 0.1284322738647461, -0.2301822006702423, -0.1692802757024765, -0.5684187412261963, 0.02879204787313938, -0.19865351915359497, -0.381359726190567, 0.10551309585571289, -0.03238077834248543, -0.05636155977845192, -0.13989970088005066, -0.5737680196762085, -0.1626635193824768, -0.5080018043518066, 0.429776668548584, 0.3065856993198395, 0.1278105080127716, 0.2718520164489746, -0.14088769257068634, 0.16211943328380585, 0.0003216940676793456, 0.4808378517627716, -0.2825733423233032, -0.10734764486551285, 0.2177521288394928, -0.33858978748321533, -0.24480891227722168, -0.326816588640213, -0.17652851343154907, 0.17401739954948425, 0.06785400211811066, -0.21268759667873383, -0.06785585731267929, -0.08936666697263718, 0.20512604713439941, 0.021939024329185486, -0.032980527728796005, 0.29719114303588867, 0.2930392622947693, -0.2229762226343155, -0.1700257956981659, 0.012999261729419231, 0.23246316611766815, -0.07469790428876877, 0.06056087091565132, 0.25638940930366516, -0.04548763111233711, -0.053911078721284866, 0.3795774281024933, 0.17610856890678406, -0.03811493515968323, 0.3560267984867096, -0.06587529182434082, 0.12788182497024536, -0.0495065376162529, -0.25655779242515564, 0.19384071230888367, 0.029688268899917603, 0.04292353615164757, 0.5046972036361694, 0.08303727954626083, -0.12172092497348785, -0.12120302766561508, 0.03297130763530731, -0.2757852077484131, -0.2715720534324646, 0.03812146931886673, -0.1754380166530609, 0.22039037942886353, -0.20522482693195343, 0.0756845474243164, -0.02622940205037594, -0.17507344484329224, 0.2910807728767395, -0.0916302353143692, 0.045309316366910934, -0.15279969573020935, -0.3904525935649872, 0.09527913480997086, -0.4769842326641083, 0.12119261920452118, 0.372056245803833, 0.17033354938030243, -0.12726999819278717, -0.34100112318992615, -0.10476647317409515, 0.14636264741420746, 0.08023078739643097, -0.3025999367237091, -0.10442820936441422, 0.1990409642457962, 0.21790187060832977, -0.09600219875574112, 0.3850271701812744, -0.412727415561676, -0.11404614895582199, 0.14582930505275726, 0.14844660460948944, -0.3244847059249878, 0.13592015206813812, 0.14038117229938507, 0.2401788830757141, 0.03725064918398857, -0.09196317195892334, 0.06767440587282181, -0.2784213423728943, -0.21202395856380463, 0.07964152842760086, 0.14095619320869446, 0.07515282183885574, 0.06093578040599823, 0.01716240867972374, 0.16171829402446747, 0.015728266909718513, 0.621955156326294, 0.12620332837104797, 0.23060020804405212, 0.03456930071115494, 0.30148443579673767, 0.17987048625946045, 0.06779417395591736, -0.03502563759684563, 0.32683488726615906, 0.03596995025873184, -0.31968000531196594, -0.030756359919905663, -0.3156149983406067, 0.3362606465816498, 0.010559337213635445, 0.16935394704341888, 0.27579715847969055, 0.02073480933904648, 0.04803340882062912, -0.22430281341075897, 0.22894041240215302, 0.24759608507156372, 0.12155313789844513, -0.2556455433368683, -0.3392491638660431, 0.22847706079483032, -0.15065190196037292, -0.16277839243412018, 0.1830165833234787, -0.08998619019985199, -0.3301525413990021, 0.5516932010650635, -0.0942661240696907, 1.0282056331634521, -0.059043657034635544, 0.07681792974472046, 0.10523608326911926, 0.2488819807767868, 0.12122352421283722, -0.3813127279281616, 0.13503296673297882, -0.06217123940587044, -0.10110785067081451, -0.06956182420253754, 0.13100680708885193, -0.28059113025665283, 0.20876367390155792, -0.606071949005127, -0.1267578899860382, 0.22543387115001678, 0.13574515283107758, 0.046753574162721634, 0.41781705617904663, -0.21072286367416382, -0.5592324733734131, -0.23292341828346252, 0.2671327590942383, 0.0596364326775074, 0.15500429272651672, 0.39059963822364807, -0.16157326102256775, 0.01165508572012186, -0.13911853730678558, -0.4064026176929474, -0.05498502030968666, -0.36893606185913086, -0.23099564015865326, -0.19445548951625824, -0.23076820373535156, 0.2400183230638504, 0.2623237669467926, 0.32074522972106934, 0.36330968141555786, -0.2477012574672699, -0.19123852252960205, 0.25639256834983826, -0.09425853937864304, 0.02204696275293827, 0.06942085176706314, 0.2842487394809723, -0.12925460934638977, -0.1618187576532364, 0.2573021650314331, 0.2658289968967438, -0.08590986579656601, -0.18152227997779846, -0.2416188269853592, 0.10665439814329147, -0.4168108403682709, 0.12457700073719025, 0.16389164328575134, -0.3157113492488861, -0.19938382506370544, 0.24438880383968353, 0.18668672442436218, -0.3711620271205902, 0.11895592510700226, 0.20779788494110107, -0.05006727576255798, -0.15994271636009216, 0.2226700335741043, 0.2622891962528229, -0.16925422847270966, 0.3335675001144409, 0.14945507049560547, -0.22389757633209229, -0.3878360688686371, -0.3032699525356293, -0.16982239484786987, -0.18355078995227814, 0.015422482043504715, 0.15174584090709686, -0.21164603531360626, -0.06637860834598541, 0.2987145781517029, 0.10458879917860031, 0.06416178494691849, -0.26350176334381104, 0.014529517851769924, -0.5142239928245544, 0.2843652665615082, 0.16385510563850403, 0.34960582852363586, -0.01922544650733471, 0.18845969438552856, -0.0024223553482443094, -0.04505738988518715, -0.5011374354362488, -0.2810226082801819, -0.28628501296043396, 0.25421443581581116, 0.21587972342967987, -0.2318916916847229, 0.21320536732673645, 0.0431462898850441, 0.3190140426158905, 0.14156927168369293, -0.03178287670016289, -0.2971876561641693, -0.1771237999200821, 0.07874608039855957, -0.01487530767917633, 0.05695908144116402, -0.04456887021660805, 0.04148172214627266, -0.13269971311092377, -0.09376120567321777, -0.04204236716032028, 0.3803989291191101, 0.01114377286285162, 0.23731188476085663, 0.1808611899614334, -0.09083378314971924, 0.2514042556285858, -0.09497015923261642, -0.012565094977617264, 0.10850241035223007, 0.11664621531963348, 0.005060771480202675, -0.07604210823774338, -0.12885546684265137, 0.2272413969039917, 0.32434937357902527, 0.32109886407852173, -0.203989177942276, 0.13829413056373596, 0.04978556931018829, -0.05817750096321106, 0.41746097803115845, 0.3369738757610321, 0.15876412391662598, -0.04499300569295883, -0.0270831398665905, 0.2871146500110626, 0.3827197849750519, -0.24869538843631744, 0.038731109350919724, -0.3137303590774536, -0.27047786116600037, 0.3703237771987915, 0.33110159635543823, 0.0026804732624441385, -0.10178796947002411, 0.3540232479572296, -0.05621076002717018, -0.09273551404476166, -0.1735176146030426, -0.1017996221780777, 0.27364492416381836, 0.23078225553035736, -0.1702156513929367, 0.041886333376169205, 0.031553201377391815, 0.15826274454593658, 0.2494812309741974, -0.257978618144989, 0.18776766955852509, -0.19769534468650818, 0.10826312005519867, 0.3382607698440552, 0.13664796948432922, -0.0676259696483612, 0.18597257137298584, 0.06567306071519852, 0.372566819190979, 0.004422215279191732, 0.7724061608314514, 0.010954654775559902, 0.04569874703884125, 0.04335571080446243, 0.22059209644794464, -0.1191813051700592, -0.13632667064666748, -0.2501579523086548, -0.2826468050479889, -0.1302427053451538, -0.26544252038002014, 0.18744128942489624, -0.08116810023784637, 0.12886594235897064, 0.04959094524383545, 0.0923413336277008, -0.22460316121578217, -0.1778470277786255, -0.16490478813648224, 0.42229586839675903, -0.27404436469078064, 0.24546243250370026, 0.1257135272026062, 0.08393304795026779, 0.21431763470172882, 0.35746511816978455, 0.28376057744026184, -0.00007097986963344738, -0.3314853310585022, 0.3597755432128906, -0.3336435556411743, -0.1156684011220932, -0.20689083635807037, 0.3654172122478485, 0.3015879690647125, 0.12808763980865479, 0.3135037422180176, 0.22181934118270874, -0.2273358553647995, -0.0564449168741703, 0.07466793805360794, -0.25507140159606934, -0.06500481814146042, 0.17653420567512512, 0.058225102722644806, -0.1135065108537674, -0.40476280450820923, -0.2626597285270691, -0.5181849002838135, 0.11703786998987198, 0.33406785130500793, -0.07819315791130066, 0.08963914960622787, -0.13099703192710876, 0.15656690299510956, 0.016365960240364075, 0.12159283459186554, 0.42052462697029114, 0.2626696825027466, 0.07875322550535202, -0.2565957307815552, -0.37234315276145935, 0.044584568589925766, 0.18579858541488647, -0.19277267158031464, -0.12865415215492249, 0.06975346058607101, 0.4065474569797516, 0.3313044309616089, -0.18914881348609924, -0.17895744740962982, -0.5281728506088257, 0.26629579067230225, -0.21419216692447662, 0.10764031857252121, -0.07345955073833466, 0.2644219696521759, 0.134091317653656, -0.17488747835159302, -0.17157357931137085, 0.1485566347837448, 0.20264261960983276, -0.314287006855011, 0.16654027998447418, -0.12487717717885971, 0.0549158900976181, 0.017008202150464058, -0.017309483140707016, 0.3602313995361328, -0.5139241218566895, -0.10951798409223557, -0.015457217581570148, -0.19671785831451416, -0.3190579414367676, 0.03588792309165001, 0.1754819005727768, 0.4160339832305908, -0.0598502978682518, -0.07918956875801086, -0.0858878642320633, 0.19168034195899963, 0.2438003569841385, 0.031747005879879, -0.16199536621570587, 0.13784624636173248, -0.23869922757148743, -0.01640726998448372, -0.06540339440107346, 0.36017343401908875, -0.026940230280160904, -0.0483555942773819, -0.34285807609558105, -0.6533896923065186, 0.3332820534706116, -0.12101544439792633, -0.2877960801124573, 0.0354299359023571, 0.20700272917747498, 0.049809690564870834, -0.06921623647212982, -0.7117776274681091, -0.04916640743613243, 0.36911430954933167, 0.10504269599914551, -0.0063043199479579926, 0.2704649269580841, -0.06642615050077438, -0.08872166275978088, -0.16514542698860168, 0.4005790948867798, 0.2827538847923279, -0.10013226419687271, -0.09855736792087555, -0.4512108862400055 ]
https://github.com/huggingface/datasets/issues/1849
Add TIMIT
I am sorry! I created the PR [#1903](https://github.com/huggingface/datasets/pull/1903#). Requesting your comments! CircleCI tests are failing, will address them along with your comments!
## Adding a Dataset - **Name:** *TIMIT* - **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT - **Data:** *https://deepai.org/dataset/timit* - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
22
Add TIMIT ## Adding a Dataset - **Name:** *TIMIT* - **Description:** *The TIMIT corpus of read speech has been designed to provide speech data for the acquisition of acoustic-phonetic knowledge and for the development and evaluation of automatic speech recognition systems* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ / *Wikipedia*: https://en.wikipedia.org/wiki/TIMIT - **Data:** *https://deepai.org/dataset/timit* - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). I am sorry! I created the PR [#1903](https://github.com/huggingface/datasets/pull/1903#). Requesting your comments! CircleCI tests are failing, will address them along with your comments!
[ -0.241849884390831, -0.342292845249176, -0.14152608811855316, 0.07103212177753448, -0.034081947058439255, -0.09505631029605865, 0.13236455619335175, 0.13229085505008698, -0.318257600069046, 0.21849361062049866, -0.34164905548095703, 0.1853346824645996, -0.22746385633945465, 0.2172834575176239, 0.11034075170755386, -0.27430692315101624, -0.0984169989824295, 0.07613427937030792, 0.04097715765237808, -0.015481202863156796, 0.0028426151257008314, 0.17515498399734497, -0.11235663294792175, -0.223239928483963, -0.030484464019536972, -0.17091795802116394, -0.010466193780303001, -0.19523876905441284, -0.25214219093322754, -0.43609070777893066, -0.20439648628234863, 0.1632167100906372, -0.0707424134016037, 0.47817760705947876, -0.00009880100697046146, -0.04325047880411148, 0.30083614587783813, -0.23357759416103363, -0.20983318984508514, -0.08557046204805374, 0.14706075191497803, 0.07758656144142151, -0.20774637162685394, 0.013736490160226822, -0.3632189631462097, 0.08198659867048264, 0.09919499605894089, -0.11893609911203384, 0.14555174112319946, 0.3298056721687317, 0.3028060793876648, 0.21057656407356262, 0.18437911570072174, -0.1484052985906601, 0.29199936985969543, 0.12594476342201233, -0.2449662834405899, -0.008053205907344818, 0.31580859422683716, 0.26500338315963745, -0.09714694321155548, 0.357487291097641, -0.062465183436870575, -0.01153317466378212, 0.08879415690898895, -0.05627916380763054, -0.17253193259239197, -0.2879772484302521, -0.09537722170352936, 0.20196467638015747, 0.6051988005638123, -0.35223349928855896, -0.32225239276885986, -0.154145285487175, 0.11140476912260056, -0.25983670353889465, 0.04262484237551689, 0.06668310612440109, -0.3443674147129059, 0.2692185640335083, -0.10051021724939346, -0.11660752445459366, -0.10490268468856812, 0.13865259289741516, 0.1667453795671463, -0.05242802947759628, -0.19554130733013153, -0.22955316305160522, 0.04900738596916199, -0.1806076020002365, -0.30748075246810913, 0.12588056921958923, 0.060077596455812454, 0.021045181900262833, 0.016497887670993805, -0.26957210898399353, 0.06441465765237808, -0.010356088168919086, 0.17201313376426697, 0.2721131443977356, 0.20652808248996735, 0.27262452244758606, -0.1945514678955078, 0.014900989830493927, 0.03284498676657677, -0.09673287719488144, -0.013960231095552444, -0.27026739716529846, 0.23396097123622894, -0.029195934534072876, 0.07165160775184631, -0.03329533338546753, 0.09325879067182541, 0.25287526845932007, -0.030330559238791466, -0.18926435708999634, -0.008639000356197357, -0.13492240011692047, -0.16714459657669067, -0.007682831492275, -0.10766053944826126, -0.03176608681678772, 0.0806056335568428, 0.30811819434165955, -0.016019128262996674, 0.18873466551303864, 0.02807556837797165, 0.2908259928226471, -0.10902010649442673, -0.1577564924955368, -0.04417756572365761, 0.003654167987406254, 0.069358229637146, 0.28897184133529663, 0.37543806433677673, 0.015970386564731598, 0.3058309257030487, -0.010897858999669552, 0.08079886436462402, 0.09819415956735611, -0.005963572766631842, -0.042716916650533676, 0.21094948053359985, 0.030229762196540833, 0.13739162683486938, -0.028943782672286034, -0.1801164448261261, -0.09467322379350662, -0.2171853929758072, -0.1117173358798027, 0.15747953951358795, -0.0062217116355896, -0.1678815633058548, 0.31038743257522583, -0.0368771031498909, -0.22318518161773682, 0.06277791410684586, 0.5657589435577393, 0.1443602293729782, -0.24896104633808136, 0.011631893925368786, 0.2420765906572342, -0.526860237121582, 0.017017623409628868, 0.1285332441329956, 0.23612737655639648, -0.11031874269247055, -0.18066135048866272, 0.028470104560256004, 0.1733747273683548, 0.2071213573217392, 0.3799470067024231, 0.06892622262239456, 0.18846583366394043, -0.060965560376644135, 0.28286510705947876, 0.027242934331297874, -0.29479295015335083, -0.30067819356918335, -0.02059021033346653, -0.25148293375968933, -0.022566931322216988, 0.15426725149154663, 0.10468268394470215, 0.1874694973230362, -0.09375999122858047, 0.21203500032424927, -0.04559192433953285, 0.019176222383975983, -0.007249488495290279, -0.2553144693374634, -0.1871526539325714, -0.1492052674293518, 0.16075770556926727, -0.07634490728378296, -0.09399184584617615, 0.021079441532492638, 0.11627935618162155, 0.2667904198169708, -0.05166896432638168, 0.2920292615890503, 0.2032516598701477, 0.32117778062820435, -0.07045096904039383, 0.15485849976539612, -0.49717992544174194, 0.3612627387046814, -0.17646527290344238, -0.07482641190290451, 0.5619052052497864, -0.16173264384269714, -0.31721818447113037, -0.23742987215518951, -0.15712887048721313, 0.07724858820438385, 0.10639771074056625, 0.3205333352088928, 0.2693748474121094, 0.006288645323365927, 0.24782250821590424, -0.05632203817367554, 0.32351452112197876, -0.04774647206068039, -0.08099944144487381, -0.10751435160636902, -0.07027288526296616, -0.10817611962556839, -0.19824010133743286, 0.21347467601299286, 0.30485230684280396, -0.24919678270816803, 0.10014883428812027, 0.11286786198616028, 0.2063148021697998, 0.0032753334380686283, 0.14448203146457672, -0.09718867391347885, -0.015566229820251465, 0.3050765097141266, -0.5114302039146423, -0.09849993884563446, 0.11172210425138474, 0.16531696915626526, -0.10061542689800262, -0.05156807601451874, 0.06793124973773956, 0.4120117127895355, -0.21242709457874298, 0.048091091215610504, 0.010254327207803726, 0.16419245302677155, -0.00018495334370527416, -0.1825159788131714, -0.13450603187084198, 0.21800345182418823, 0.04898308217525482, 0.08487944304943085, -0.10276153683662415, -0.28986984491348267, 0.08874373137950897, 0.19339774549007416, -0.0700593814253807, 0.27086183428764343, 0.13305316865444183, -0.2582097053527832, -0.015085730701684952, -0.024369074031710625, -0.23924197256565094, 0.06982716172933578, 0.3799443542957306, 0.17023248970508575, -0.09907940775156021, 0.06378784775733948, -0.12425728887319565, 0.17395970225334167, 0.17812933027744293, -0.3330641984939575, 0.2277124673128128, 0.16207975149154663, 0.001714911311864853, -0.584661602973938, -0.018631406128406525, -0.19450989365577698, 0.04776763543486595, -0.22025007009506226, -0.2804263234138489, 0.08223986625671387, -0.1402014046907425, 0.039712369441986084, -0.03471789136528969, -0.016056165099143982, 0.07515080273151398, 0.3684801161289215, 0.28971853852272034, -0.11196745932102203, 0.08002682030200958, -0.07680419087409973, 0.35737380385398865, 0.05504976585507393, -0.0802038311958313, -0.18604904413223267, -0.12917450070381165, -0.00318261724896729, 0.25294286012649536, 0.1803862452507019, 0.05368967354297638, 0.4089682698249817, -0.171865314245224, 0.2351420819759369, -0.06996717303991318, -0.23053129017353058, 0.2565394937992096, -0.324099063873291, 0.17489874362945557, 0.06806281208992004, -0.0792342945933342, -0.3135066628456116, -0.587350606918335, -0.04575806111097336, -0.2532637119293213, -0.3723118305206299, 0.010399561375379562, -0.20134897530078888, -0.15472830832004547, -0.2350609004497528, -0.4306774139404297, -0.14914745092391968, -0.4586871266365051, 0.4364933669567108, 0.2045639306306839, -0.09679660201072693, 0.33829453587532043, -0.23409585654735565, 0.1816585212945938, -0.02092023938894272, 0.5309721231460571, -0.38526538014411926, -0.3563815653324127, 0.21058520674705505, -0.3785668909549713, -0.32608187198638916, -0.2777749001979828, -0.08220668137073517, 0.1823614239692688, 0.028489718213677406, -0.2786482274532318, -0.04565335437655449, -0.16037946939468384, 0.21617713570594788, 0.07454141229391098, 0.0627598837018013, 0.1909140944480896, 0.21423004567623138, -0.2686973214149475, -0.11287916451692581, -0.04054800793528557, 0.1360977441072464, 0.07163109630346298, 0.14387772977352142, 0.1299637109041214, -0.1350645124912262, 0.022693056613206863, 0.5563358068466187, 0.2371794581413269, 0.01182052493095398, 0.4369508624076843, -0.016249487176537514, 0.3077051639556885, -0.18990065157413483, -0.19969384372234344, 0.26422956585884094, 0.07332735508680344, 0.04866056144237518, 0.46266594529151917, 0.14905069768428802, -0.3474371135234833, -0.1562965363264084, -0.13987110555171967, -0.24327020347118378, -0.37029337882995605, -0.05047290027141571, -0.05475956201553345, 0.2536337375640869, -0.10290078818798065, 0.09045806527137756, -0.12875844538211823, -0.23423074185848236, 0.2971385419368744, -0.07439816743135452, -0.008166393265128136, -0.21439285576343536, -0.47032299637794495, -0.02358250319957733, -0.5126325488090515, 0.0893508717417717, 0.446832537651062, 0.22003404796123505, -0.26833227276802063, -0.3191053569316864, -0.05925313010811806, 0.1669134944677353, 0.15646174550056458, -0.35307756066322327, -0.14647476375102997, 0.153150275349617, 0.2743311822414398, -0.20082159340381622, 0.4838937222957611, -0.3385242223739624, -0.09983143955469131, 0.07667761296033859, 0.12654508650302887, -0.25305861234664917, 0.18956995010375977, 0.14895518124103546, 0.23155485093593597, 0.06222591549158096, -0.06105795130133629, 0.08712030202150345, -0.4036614000797272, -0.1309882253408432, 0.20981986820697784, 0.23389418423175812, 0.16437627375125885, 0.24136599898338318, 0.048470888286828995, 0.1633082777261734, 0.03648257628083229, 0.4714259207248688, 0.19709110260009766, 0.1634092777967453, 0.29297778010368347, 0.2803598940372467, 0.17417755722999573, -0.053151685744524, -0.06166354566812515, 0.269022136926651, 0.02114424854516983, -0.23797887563705444, -0.1562976837158203, -0.36319655179977417, 0.27508267760276794, 0.11267336457967758, 0.29546818137168884, 0.21132853627204895, 0.004640729166567326, 0.009017124772071838, -0.29826590418815613, 0.208451047539711, 0.15847183763980865, 0.03639750927686691, -0.315212219953537, -0.15679337084293365, 0.0635414645075798, 0.03785160183906555, -0.033508431166410446, 0.2742306590080261, 0.0955367162823677, -0.22515177726745605, 0.5279743075370789, -0.09918482601642609, 1.0494731664657593, -0.023163186386227608, 0.11429453641176224, 0.20589272677898407, 0.1653476059436798, 0.029746264219284058, -0.2530477046966553, 0.05831552669405937, 0.10285478830337524, -0.07053069770336151, -0.00582506600767374, 0.1721448004245758, -0.2054257094860077, 0.03660055622458458, -0.4967799186706543, -0.28160586953163147, 0.25306937098503113, 0.12010105699300766, 0.0539739616215229, 0.3480636477470398, -0.3170430064201355, -0.48311999440193176, -0.17066620290279388, 0.3155546188354492, 0.18843284249305725, 0.11580463498830795, 0.25702962279319763, -0.12546594440937042, 0.0130308847874403, -0.15305760502815247, -0.5004327893257141, -0.18469534814357758, -0.3475487530231476, -0.10613445937633514, -0.12956906855106354, -0.3379959464073181, 0.23498202860355377, 0.25754183530807495, 0.4467604458332062, 0.30001023411750793, -0.4185541868209839, 0.09336137026548386, 0.15637844800949097, -0.08427242189645767, 0.08151184767484665, 0.06697529554367065, 0.2712973952293396, -0.18066446483135223, -0.1890222132205963, 0.20537500083446503, 0.11329688876867294, -0.1487610936164856, -0.1699913591146469, -0.12867851555347443, 0.024422461166977882, -0.2915281355381012, 0.1959640234708786, 0.17398035526275635, -0.21488675475120544, -0.21018442511558533, 0.2649528980255127, 0.11412415653467178, -0.1910850703716278, 0.16380280256271362, 0.07056480646133423, -0.15025639533996582, -0.13235338032245636, 0.30768734216690063, 0.12993381917476654, -0.07643025368452072, 0.29301348328590393, 0.05301889777183533, -0.2316913604736328, -0.42508095502853394, -0.04152567312121391, -0.27921736240386963, -0.20171168446540833, 0.04452706500887871, 0.2725244164466858, -0.14938202500343323, 0.03776935487985611, 0.3083559572696686, 0.07113026082515717, -0.1782229095697403, -0.18621738255023956, 0.11855699121952057, -0.5278737545013428, 0.2509501278400421, 0.05872999131679535, 0.2626582086086273, 0.190527081489563, 0.22677481174468994, 0.04896620288491249, -0.1448138952255249, -0.5076661705970764, -0.2179989516735077, -0.23652595281600952, 0.15226224064826965, 0.10292857140302658, -0.3303983509540558, 0.21653766930103302, -0.03127628192305565, 0.29404571652412415, 0.10687544196844101, -0.06704479455947876, -0.329120934009552, -0.17182263731956482, 0.08250518888235092, -0.06094842404127121, -0.037256285548210144, 0.06753698736429214, 0.04612922668457031, -0.18999986350536346, -0.0798477828502655, 0.08842091262340546, 0.33995649218559265, 0.05254913866519928, 0.20454588532447815, 0.05481598153710365, 0.0351560115814209, 0.08850616961717606, -0.07933752238750458, 0.039336930960416794, 0.12436451762914658, 0.06937165558338165, -0.06365235149860382, -0.023176686838269234, -0.14757409691810608, 0.24098126590251923, 0.35831186175346375, 0.35978731513023376, -0.17917899787425995, 0.14445103704929352, 0.011082792654633522, -0.046487536281347275, 0.4243438243865967, 0.30721578001976013, 0.13918308913707733, -0.06905999779701233, 0.009376871399581432, 0.341752290725708, 0.3756939172744751, -0.27302876114845276, -0.013355139642953873, -0.22093535959720612, -0.21016709506511688, 0.37125423550605774, 0.23294593393802643, 0.027399886399507523, -0.14024606347084045, 0.2200196236371994, -0.03392019867897034, 0.06190575659275055, -0.2646513283252716, -0.14782807230949402, 0.1841280162334442, 0.26762688159942627, -0.13142205774784088, -0.02751271426677704, 0.05263141542673111, 0.17269915342330933, 0.1547853946685791, -0.037827443331480026, 0.305589884519577, -0.12123171985149384, 0.21797804534435272, 0.26083484292030334, 0.10168009251356125, -0.022049004212021828, 0.05918208509683609, -0.03344138339161873, 0.3391266167163849, 0.13043279945850372, 0.7346746325492859, -0.028431007638573647, -0.16054609417915344, -0.1413053572177887, 0.12004077434539795, -0.07490633428096771, -0.1871413141489029, -0.3938411772251129, -0.16893453896045685, -0.020131004974246025, -0.2207297384738922, 0.16005586087703705, 0.0920059010386467, 0.06087849661707878, 0.04112820327281952, -0.0018079678993672132, -0.43894162774086, -0.23924830555915833, -0.1338041126728058, 0.5131224989891052, -0.2622471749782562, 0.15531329810619354, 0.1738101840019226, -0.11433593183755875, 0.1716640144586563, 0.4402109384536743, 0.36613672971725464, -0.2168464958667755, -0.22350087761878967, 0.29033273458480835, -0.35936829447746277, -0.11056897789239883, -0.23416076600551605, 0.41931530833244324, 0.33140626549720764, 0.046287745237350464, 0.2952577471733093, 0.2443084865808487, -0.2006041407585144, -0.10427916795015335, 0.19254188239574432, -0.17966216802597046, -0.17949551343917847, 0.11840873211622238, -0.10559757798910141, -0.07571585476398468, -0.3725283443927765, -0.24550467729568481, -0.3838871419429779, 0.2319810688495636, 0.3348475694656372, -0.20792093873023987, 0.0855826735496521, -0.18158234655857086, 0.16078102588653564, 0.12193381786346436, 0.2953217625617981, 0.38586416840553284, 0.0911167785525322, 0.16557475924491882, -0.21646350622177124, -0.40147924423217773, 0.044053755700588226, 0.17567478120326996, 0.11830507218837738, -0.19427445530891418, -0.040049999952316284, 0.3752777576446533, 0.21826671063899994, -0.18992309272289276, -0.22121532261371613, -0.5325382947921753, 0.146889790892601, -0.2821149528026581, 0.23195479810237885, -0.10069670528173447, 0.21952801942825317, 0.08636278659105301, -0.12299294769763947, -0.05462517589330673, 0.11866410076618195, 0.20420728623867035, -0.301045686006546, 0.051388535648584366, -0.10290902853012085, 0.09876193106174469, 0.12828271090984344, -0.03322644159197807, 0.2983722388744354, -0.49848678708076477, -0.06369299441576004, -0.16085180640220642, -0.1427333801984787, -0.20073089003562927, 0.07257270067930222, 0.14835813641548157, 0.3701220750808716, -0.12529496848583221, -0.03703375905752182, 0.1789204627275467, 0.23037049174308777, 0.20462830364704132, 0.12546370923519135, -0.19384050369262695, 0.13635526597499847, -0.2121981680393219, -0.03499091416597366, -0.12036926299333572, 0.3638458251953125, -0.08562471717596054, -0.015538240782916546, -0.1982898861169815, -0.6546868085861206, 0.34856659173965454, -0.09600670635700226, -0.24562864005565643, 0.061892878264188766, 0.15637077391147614, -0.08879658579826355, -0.05378725007176399, -0.6362176537513733, 0.0021304870024323463, 0.29101765155792236, 0.06208556145429611, -0.16287867724895477, 0.33172398805618286, 0.039294417947530746, -0.2380170226097107, -0.18697823584079742, 0.5860605239868164, 0.17302104830741882, -0.09888487309217453, -0.04499451443552971, -0.2793036997318268 ]
https://github.com/huggingface/datasets/issues/1844
Update Open Subtitles corpus with original sentence IDs
Hi ! You're right this can can useful. This should be easy to add, so feel free to give it a try if you want to contribute :) I think we just need to add it to the _generate_examples method of the OpenSubtitles dataset builder [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L103)
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks!
46
Update Open Subtitles corpus with original sentence IDs Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks! Hi ! You're right this can can useful. This should be easy to add, so feel free to give it a try if you want to contribute :) I think we just need to add it to the _generate_examples method of the OpenSubtitles dataset builder [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L103)
[ 0.20111246407032013, 0.16045261919498444, -0.04834127798676491, -0.20894022285938263, -0.13016583025455475, 0.2428109347820282, 0.27112382650375366, 0.2571239769458771, -0.2969913184642792, -0.038674283772706985, -0.31456467509269714, 0.24536369740962982, 0.21585606038570404, -0.07630879431962967, 0.08549921214580536, -0.3325570225715637, 0.11799421906471252, 0.0025805423501878977, 0.5615062117576599, -0.2076052874326706, -0.34362542629241943, 0.19639714062213898, 0.012337801977992058, -0.12730422616004944, -0.19219930469989777, 0.3085807263851166, -0.40580037236213684, 0.04762418195605278, 0.05754519999027252, -0.5313262939453125, 0.02319338731467724, 0.5336881279945374, 0.29392948746681213, 0.0675310418009758, -0.00011404247197788209, -0.17198413610458374, 0.2067977488040924, -0.23935912549495697, -0.26246196031570435, -0.07093241065740585, 0.08785219490528107, -0.321098268032074, -0.233664870262146, -0.3475586771965027, 0.024386916309595108, 0.0029205770697444677, 0.08485260605812073, -0.36395782232284546, -0.19324178993701935, 0.11321868002414703, 0.10027486830949783, -0.0030476937536150217, 0.013768705539405346, -0.12019572407007217, 0.5767492055892944, -0.03088432550430298, 0.18409158289432526, 0.3108731508255005, 0.5937850475311279, 0.20887386798858643, 0.17910991609096527, 0.395300954580307, -0.4267852008342743, -0.4061586856842041, -0.22259314358234406, -0.05905410647392273, -0.04441649466753006, -0.27659204602241516, -0.07530810683965683, 0.14901836216449738, 0.430027037858963, -0.11632043868303299, -0.7273461222648621, -0.41939419507980347, 0.03713216632604599, -0.20229168236255646, -0.29254716634750366, 0.4444064199924469, 0.3025396764278412, 0.33188319206237793, 0.12088602781295776, -0.13085712492465973, 0.08795548230409622, -0.07989700883626938, 0.30856043100357056, 0.1870672106742859, 0.2493826150894165, -0.14551955461502075, 0.11236385256052017, -0.1316785365343094, -0.2491820752620697, 0.19706307351589203, -0.4026862680912018, 0.035591959953308105, -0.00915170181542635, -0.1193121001124382, -0.10487046837806702, -0.4867627024650574, -0.0857827216386795, -0.03607548028230667, 0.059459757059812546, 0.08932994306087494, -0.24214254319667816, -0.10717618465423584, 0.10650602728128433, 0.298519492149353, 0.43470078706741333, 0.20944586396217346, -0.08220414072275162, 0.043052658438682556, -0.13784126937389374, -0.04079841449856758, -0.23220159113407135, 0.23161642253398895, -0.3186006546020508, 0.246942937374115, 0.1391962766647339, 0.055712953209877014, -0.003922528121620417, 0.13907572627067566, -0.4542085826396942, -0.058622993528842926, -0.14604094624519348, 0.014533071778714657, 0.08818066865205765, 0.23709917068481445, 0.22807060182094574, 0.11761276423931122, -0.011767180636525154, -0.3454347252845764, -0.09803692996501923, -0.022603198885917664, 0.052542347460985184, 0.07269063591957092, -0.1043013408780098, -0.37546733021736145, 0.3222719132900238, -0.22430354356765747, -0.15497730672359467, -0.1410839855670929, -0.29717832803726196, 0.14998456835746765, 0.039735134690999985, -0.19256536662578583, 0.04125384986400604, 0.015070564113557339, -0.1407558023929596, -0.21305081248283386, 0.03750183805823326, 0.2365284264087677, -0.11831342428922653, -0.3088013529777527, -0.3827463686466217, 0.10784795135259628, -0.39662861824035645, -0.31418728828430176, 0.3781784176826477, 0.3722530007362366, 0.1920836865901947, -0.253431499004364, 0.27069219946861267, 0.14604999125003815, -0.2637155055999756, 0.15512698888778687, -0.15512727200984955, 0.6188796758651733, -0.031307026743888855, -0.11252062767744064, 0.4339675307273865, 0.1616252362728119, 0.1579475700855255, 0.1029895693063736, 0.41291216015815735, 0.05533706396818161, -0.01092242356389761, 0.05937398597598076, -0.4170089662075043, -0.644865870475769, -0.013277956284582615, 0.02969999983906746, 0.0956350713968277, 0.07732464373111725, 0.33469852805137634, -0.005736847873777151, 0.6432263255119324, -0.39047154784202576, -0.13780641555786133, -0.02482653595507145, 0.013733063824474812, 0.11155302077531815, -0.17397993803024292, -0.16759072244167328, -0.2826330363750458, 0.17587199807167053, -0.06575068086385727, 0.1716846525669098, 0.3092028796672821, 0.07023373991250992, 0.47728314995765686, -0.1497456431388855, 0.11359608173370361, 0.030829332768917084, -0.08554097265005112, 0.40202242136001587, 0.165106862783432, 0.13937856256961823, 0.16537000238895416, 0.12263555824756622, 0.10773076862096786, 0.3007262051105499, 0.15163016319274902, -0.2972262501716614, -0.0077407569624483585, -0.018494265154004097, 0.18425261974334717, -0.2402288168668747, 0.026861362159252167, 0.08024588227272034, -0.15751972794532776, 0.23021963238716125, -0.3226483464241028, 0.10638879239559174, -0.1910545378923416, 0.032015636563301086, -0.23047666251659393, -0.10933278501033783, 0.19024232029914856, 0.024031490087509155, -0.024654341861605644, 0.347586452960968, -0.13663126528263092, 0.12595762312412262, -0.13658736646175385, 0.4836284816265106, -0.07065587490797043, 0.42516404390335083, 0.16385547816753387, -0.19201034307479858, 0.34966811537742615, -0.27630048990249634, 0.1353268325328827, -0.05118590220808983, -0.1747102588415146, -0.012067693285644054, -0.06255491077899933, 0.03828355297446251, -0.03268183395266533, -0.053750187158584595, -0.03006293997168541, 0.06769026815891266, -0.1735161393880844, 0.057039372622966766, -0.5073084831237793, -0.3154093325138092, -0.04233160987496376, 0.06572271138429642, -0.4276805818080902, 0.06060703471302986, -0.14913296699523926, 0.19116953015327454, 0.15270252525806427, -0.3350783884525299, -0.016220489516854286, 0.3151858448982239, -0.03084094077348709, 0.04884418845176697, 0.0017455241177231073, 0.12141407281160355, 0.03305620700120926, 0.2184402197599411, 0.17317689955234528, 0.19669058918952942, 0.5540255904197693, -0.3212423622608185, 0.2545958161354065, 0.3876331150531769, -0.24620936810970306, -0.012334899045526981, 0.29423558712005615, 0.2663766145706177, -0.2216777503490448, 0.5088404417037964, 0.015542082488536835, 0.030017441138625145, -0.09838972985744476, 0.0024216228630393744, -0.23008060455322266, -0.4314876198768616, 0.04512152448296547, -0.43683916330337524, -0.09108535945415497, -0.02842903323471546, 0.20962077379226685, -0.2737998962402344, -0.314365029335022, 0.379294753074646, 0.2540474236011505, 0.2135632187128067, -0.14553901553153992, 0.07653732597827911, 0.05472392961382866, -0.5638497471809387, 0.256321519613266, 0.0055903778411448, -0.16943348944187164, -0.14029563963413239, 0.10020239651203156, -0.31544268131256104, 0.0940261036157608, -0.3524289131164551, -0.22802728414535522, -0.24671992659568787, -0.04561507701873779, -0.026766547933220863, 0.4491194486618042, -0.2979276180267334, -0.1281392127275467, -0.25952133536338806, -0.09630430489778519, -0.04213077202439308, -0.16364291310310364, -0.28935813903808594, -0.0660991296172142, 0.0033792525064200163, -0.20846246182918549, -0.13786618411540985, -0.24109843373298645, -0.4264029562473297, 0.4629020690917969, -0.015185435302555561, 0.14536155760288239, 0.3218546211719513, -0.10292699187994003, -0.13518361747264862, -0.08635474741458893, 0.12377254664897919, -0.047183066606521606, -0.548348069190979, 0.10134752094745636, -0.26355069875717163, -0.09495994448661804, -0.22012242674827576, -0.19924820959568024, -0.19493889808654785, -0.3742799460887909, -0.12437570095062256, 0.13961240649223328, 0.188587486743927, -0.16563200950622559, 0.5132589936256409, 0.34309810400009155, 0.010856576263904572, 0.015213939361274242, -0.007550686132162809, -0.17368629574775696, -0.2486007660627365, 0.11736591160297394, 0.37634530663490295, 0.09782242029905319, 0.011675084009766579, 0.13486094772815704, 0.1020316481590271, 0.01414982695132494, 0.0617835558950901, 0.03846142068505287, 0.3445850610733032, 0.09133611619472504, 0.2637007534503937, 0.0993972197175026, -0.48505088686943054, 0.15641243755817413, -0.12709054350852966, 0.00580177316442132, 0.4693221151828766, 0.20178622007369995, -0.22099848091602325, -0.07314028590917587, -0.438110888004303, -0.11399395018815994, -0.15372765064239502, -0.20478619635105133, -0.3517322838306427, 0.2849878668785095, 0.24827192723751068, -0.13062141835689545, -0.2383810430765152, -0.09966263920068741, 0.09692108631134033, 0.041692592203617096, 0.5833786129951477, 0.07282786816358566, -0.0838397890329361, 0.1534321904182434, 0.29567402601242065, 0.18179544806480408, 0.482320636510849, -0.1313946396112442, 0.3425047695636749, -0.19027739763259888, 0.07162576913833618, 0.2895001471042633, 0.3205430209636688, -0.13600142300128937, -0.3276410698890686, 0.027912667021155357, 0.055018384009599686, -0.0351124107837677, -0.15703976154327393, 0.22971801459789276, -0.39355671405792236, 0.5220839381217957, -0.13180135190486908, -0.08091798424720764, 0.2195262312889099, 0.46116235852241516, -0.1875392645597458, -0.1322612464427948, -0.18748115003108978, -0.023899557068943977, -0.1624842882156372, -0.6518250703811646, 0.013278194703161716, 0.022375592961907387, -0.20794741809368134, 0.052044063806533813, 0.01710856892168522, 0.04008082300424576, 0.23638029396533966, 0.072011299431324, -0.14336657524108887, 0.04478765279054642, 0.517612636089325, 0.2186274230480194, 0.1045110672712326, -0.14030571281909943, 0.16849006712436676, 0.45280712842941284, -0.45791420340538025, -0.0011401959927752614, -0.20725786685943604, 0.019594542682170868, 0.3598827123641968, 0.35093003511428833, 0.44920971989631653, 0.04550768435001373, 0.1835981160402298, -0.25120869278907776, -0.041762255132198334, -0.09711134433746338, -0.14152811467647552, -0.00017743917123880237, -0.11033610254526138, -0.627203106880188, 0.07981540262699127, -0.3005557954311371, -0.08088379353284836, -0.6132524609565735, 0.14876046776771545, -0.07299941033124924, 0.38172659277915955, 0.358834832906723, 0.9718941450119019, 0.11647813022136688, -0.0031876121647655964, -0.11295054107904434, 0.023306364193558693, 0.5999675393104553, 0.1288735568523407, -0.1429373323917389, -0.15463604032993317, -0.07747365534305573, 0.11473936587572098, 0.15045666694641113, -0.2465156465768814, -0.25541162490844727, -0.32861989736557007, -0.011886938475072384, 0.4563327133655548, -0.08105240762233734, 0.2831672728061676, 0.16639430820941925, 0.12661781907081604, -0.4115234613418579, 0.2408716380596161, 0.05317417159676552, -0.0161109808832407, 0.12228580564260483, 0.029313985258340836, -0.34165823459625244, 0.29916685819625854, -0.04208673536777496, -0.29014596343040466, -0.0062632206827402115, -0.022912124171853065, -0.1737755984067917, 0.008344736881554127, -0.016308341175317764, -0.03141738101840019, 0.4820689558982849, 0.4039408266544342, 0.2079453468322754, 0.32599136233329773, 0.15581461787223816, 0.6453319787979126, -0.24280190467834473, 0.20311914384365082, 0.1655898243188858, 0.3280929625034332, -0.18769840896129608, -0.3354998528957367, -0.10833727568387985, 0.2084200382232666, -0.0974554494023323, -0.15421423316001892, -0.13533303141593933, -0.06440214812755585, 0.12078537046909332, -0.05367325246334076, 0.1561109572649002, -0.12906143069267273, -0.26357829570770264, 0.034570567309856415, 0.06934992969036102, -0.2068426012992859, -0.10446780920028687, -0.21203318238258362, -0.2099655419588089, -0.1732967495918274, 0.2547558844089508, 0.05119878053665161, -0.33913862705230713, 0.24685215950012207, 0.41445010900497437, 0.018232375383377075, 0.11217691749334335, 0.06474307179450989, -0.4947632849216461, -0.3805936872959137, 0.08185900002717972, -0.14771510660648346, -0.10538842529058456, -0.03823849558830261, 0.0030050943605601788, 0.0654432401061058, 0.2761075794696808, 0.07738838344812393, 0.06101904436945915, -0.5125809907913208, 0.14177660644054413, -0.21698792278766632, 0.19525398313999176, -0.07053773105144501, -0.4104263186454773, -0.09728038311004639, 0.0849568173289299, -0.2472589761018753, 0.11677231639623642, 0.0008761982317082584, 0.014864258468151093, 0.5638490915298462, -0.06998409330844879, -0.20958971977233887, -0.35243096947669983, 0.030410517007112503, 0.17927953600883484, 0.13760969042778015, -0.07306619733572006, -0.39107081294059753, 0.14693324267864227, -0.0028439697343856096, 0.20717081427574158, -0.02673988603055477, -0.06757011264562607, 0.10649993270635605, -0.20798511803150177, -0.11042602360248566, 0.3379041850566864, -0.020573478192090988, 0.43210604786872864, 0.150740385055542, 0.11594544351100922, 0.0684213787317276, 0.09469736367464066, 0.13313542306423187, 0.254161536693573, -0.07556596398353577, 0.1081777885556221, -0.21997232735157013, -0.1154978796839714, 0.3980037271976471, 0.11266504973173141, 0.3249579071998596, 0.13414828479290009, 0.3710063397884369, 0.16622598469257355, 0.20870569348335266, 0.3805684447288513, -0.08650199323892593, -0.026110397651791573, -0.1307559609413147, -0.04566787928342819, 0.05399320647120476, 0.1476753056049347, -0.2826767861843109, 0.25303930044174194, -0.13120688498020172, -0.07670393586158752, -0.056072577834129333, 0.39001649618148804, 0.21056324243545532, -0.11010152846574783, 0.020420938730239868, 0.25877541303634644, 0.19198556244373322, 0.224138543009758, 0.24550457298755646, 0.3673419952392578, 0.11780213564634323, -0.15130844712257385, -0.23452435433864594, -0.1215384304523468, 0.23630140721797943, -0.08680824190378189, -0.15394309163093567, 0.09632675349712372, 0.6369192600250244, 0.2987167239189148, 0.34178176522254944, 0.2459939569234848, 0.2233009785413742, 0.16315948963165283, 0.15148502588272095, 0.15541185438632965, 0.14279454946517944, 0.15424063801765442, 0.3192984461784363, -0.06369203329086304, 0.1114114448428154, 0.8260493874549866, 0.18789219856262207, -0.3855336606502533, -0.3495062589645386, 0.07462342828512192, -0.05549785867333412, -0.27687811851501465, -0.014108101837337017, 0.038253940641880035, -0.4017592966556549, 0.07687294483184814, 0.016851069405674934, -0.11809434741735458, -0.49022921919822693, -0.4592854082584381, 0.572748064994812, -0.27303436398506165, -0.08359470963478088, 0.38947588205337524, -0.05972784385085106, 0.4841770827770233, 0.6211230158805847, 0.3014132082462311, 0.05035020038485527, 0.08070811629295349, 0.4370158314704895, -0.2049182653427124, 0.017068399116396904, 0.27130037546157837, 0.24280886352062225, 0.17798854410648346, 0.13398173451423645, 0.042123693972826004, 0.03340030089020729, -0.0892525464296341, 0.08767919987440109, -0.09865842759609222, -0.011544056236743927, -0.08752599358558655, 0.4805684983730316, 0.17685095965862274, -0.22676469385623932, -0.15391841530799866, 0.2814253270626068, -0.3128552734851837, 0.12963160872459412, 0.07032149285078049, -0.05974425747990608, -0.11075287312269211, 0.09998376667499542, 0.034561604261398315, 0.12254449725151062, 0.22748158872127533, 0.5293459892272949, 0.048685602843761444, 0.0473000630736351, 0.0671931654214859, -0.37053975462913513, -0.23245567083358765, 0.3131982386112213, 0.1587548553943634, 0.10722149908542633, -0.2613006830215454, 0.5000702738761902, 0.3267732262611389, -0.3188730478286743, -0.15764781832695007, -0.4547407925128937, 0.1657605618238449, -0.14729951322078705, 0.00390899321064353, 0.1736495941877365, 0.13795925676822662, 0.03778114914894104, 0.34269487857818604, -0.26427537202835083, -0.4845813512802124, -0.05192806199193001, 0.17417208850383759, 0.039389897137880325, 0.03168150410056114, -0.08917605131864548, 0.03425915911793709, -0.10339526832103729, -0.05344583839178085, -0.13808520138263702, -0.10362435132265091, -0.13959406316280365, -0.5137282013893127, -0.1348690688610077, 0.0003543596831150353, -0.11348520964384079, 0.38351139426231384, -0.026216156780719757, -0.17794349789619446, 0.15348409116268158, -0.20159931480884552, 0.06930050998926163, -0.007452396210283041, -0.5337433815002441, 0.05496401712298393, -0.035337358713150024, -0.1574750691652298, 0.22660839557647705, 0.14938101172447205, 0.13262787461280823, 0.25816845893859863, -0.43739354610443115, -0.4970720708370209, 0.5725141763687134, -0.23977743089199066, 0.12965954840183258, -0.25250107049942017, 0.27743950486183167, 0.19572314620018005, 0.07596757262945175, -0.554280698299408, 0.05961132049560547, 0.3096802830696106, 0.006181888747960329, -0.3936904966831207, 0.1828484982252121, 0.11973971873521805, -0.0011748098768293858, -0.18912406265735626, -0.3156057894229889, 0.2881157398223877, -0.19431671500205994, -0.23942959308624268, -0.02041177824139595 ]
https://github.com/huggingface/datasets/issues/1844
Update Open Subtitles corpus with original sentence IDs
Hey @lhoestq , absolutely yes! Just one question before I start implementing. The ids found in the zip file have this format: (the following is line `22497315` of the `ids` file of the `de-en` dump) `de/2017/7006210/7063319.xml.gz en/2017/7006210/7050201.xml.gz 335 339 340` (every space is actually a tab, aside from the space between `339` and `340`) Where filenames encode the information like this: `lang/year/imdb_id/opensubtitles_id.xml.gz` whereas the numbers correspond to the sentence ids which are linked together (i.e. sentence `335` of the German subtitle corresponds to lines `339` and `340` of the English file) That being said, do you think I should stick to the raw sentence id (and replace the current sequential id) or should I include more detailed metadata (or both things maybe)? Going with raw ID is surely simpler, but including `year`, `imdbId` and `subtitleId` should save space as they're just integers; besides, any operation (like filtering or grouping) will be much easier if users don't have to manually parse the ids every time. As for the language-specific sentenceIds, what could be the best option? A list of integers or a comma-separated string? **Note:** I did not find any official information about this encoding, but it appears to check out: https://www.imdb.com/title/tt7006210/, https://www.opensubtitles.org/en/subtitles/7063319 and https://www.opensubtitles.org/en/subtitles/7050201 all link to the same episode, so I guess (I hope!) it's correct.
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks!
217
Update Open Subtitles corpus with original sentence IDs Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks! Hey @lhoestq , absolutely yes! Just one question before I start implementing. The ids found in the zip file have this format: (the following is line `22497315` of the `ids` file of the `de-en` dump) `de/2017/7006210/7063319.xml.gz en/2017/7006210/7050201.xml.gz 335 339 340` (every space is actually a tab, aside from the space between `339` and `340`) Where filenames encode the information like this: `lang/year/imdb_id/opensubtitles_id.xml.gz` whereas the numbers correspond to the sentence ids which are linked together (i.e. sentence `335` of the German subtitle corresponds to lines `339` and `340` of the English file) That being said, do you think I should stick to the raw sentence id (and replace the current sequential id) or should I include more detailed metadata (or both things maybe)? Going with raw ID is surely simpler, but including `year`, `imdbId` and `subtitleId` should save space as they're just integers; besides, any operation (like filtering or grouping) will be much easier if users don't have to manually parse the ids every time. As for the language-specific sentenceIds, what could be the best option? A list of integers or a comma-separated string? **Note:** I did not find any official information about this encoding, but it appears to check out: https://www.imdb.com/title/tt7006210/, https://www.opensubtitles.org/en/subtitles/7063319 and https://www.opensubtitles.org/en/subtitles/7050201 all link to the same episode, so I guess (I hope!) it's correct.
[ 0.2530389428138733, 0.24825794994831085, -0.013386853970587254, -0.12635333836078644, -0.26490500569343567, 0.16548411548137665, 0.2578907608985901, 0.2178693413734436, -0.33855190873146057, -0.11331028491258621, -0.3191741704940796, 0.32153892517089844, 0.15918579697608948, -0.1485188901424408, 0.07733899354934692, -0.29489806294441223, 0.13163137435913086, -0.12500134110450745, 0.4648747444152832, -0.2300005853176117, -0.36198145151138306, 0.3236778676509857, -0.037035536020994186, -0.09360082447528839, -0.06153567507863045, 0.3529784679412842, -0.4526574909687042, 0.2638053894042969, -0.04466935619711876, -0.40469294786453247, -0.06947710365056992, 0.5757684111595154, 0.3239985704421997, 0.12948834896087646, -0.00011813001037808135, -0.28747081756591797, 0.10348882526159286, -0.3369552195072174, -0.19638723134994507, 0.013004615902900696, -0.008869878947734833, -0.4548185467720032, -0.38909250497817993, -0.4192705452442169, 0.154150128364563, -0.02618441730737686, 0.11121106147766113, -0.39062899351119995, 0.12096450477838516, 0.0818595439195633, 0.04133543744683266, -0.20768243074417114, 0.15956589579582214, -0.07562367618083954, 0.5919966101646423, 0.011652120389044285, 0.260861337184906, 0.32101577520370483, 0.689113199710846, 0.1703943908214569, 0.0037901524920016527, 0.3019768297672272, -0.2869805097579956, -0.36340081691741943, -0.11784504354000092, -0.05247548595070839, 0.1650872528553009, -0.3370421826839447, -0.09824933111667633, 0.05359195917844772, 0.3832523226737976, -0.12711232900619507, -0.6749767065048218, -0.40485692024230957, -0.12872537970542908, -0.2527373135089874, -0.23952047526836395, 0.24748718738555908, 0.21076449751853943, 0.3021942377090454, 0.2062903493642807, -0.08327259868383408, 0.03393493592739105, -0.009423982352018356, 0.12937860190868378, 0.5042909979820251, 0.30082958936691284, -0.13671788573265076, 0.18754591047763824, -0.1222255602478981, -0.15834647417068481, 0.10580440610647202, -0.30156296491622925, 0.05850527435541153, 0.09428819268941879, -0.23538276553153992, -0.16159798204898834, -0.6308350563049316, 0.07443275302648544, -0.040086254477500916, 0.0709182396531105, 0.15099471807479858, -0.1224704384803772, -0.1361672580242157, 0.16982434689998627, 0.42949095368385315, 0.46134504675865173, 0.10246371477842331, -0.15213657915592194, 0.012432913295924664, 0.06591379642486572, 0.07664071768522263, -0.21180737018585205, 0.15157455205917358, -0.35875099897384644, 0.46237462759017944, -0.02516690269112587, 0.054059531539678574, 0.08127184957265854, 0.174812912940979, -0.39386606216430664, -0.16476412117481232, -0.17462818324565887, -0.16310861706733704, 0.08966084569692612, 0.320132851600647, 0.19452743232250214, 0.08533155173063278, -0.024815894663333893, -0.34843960404396057, -0.03040526993572712, -0.023160425946116447, -0.0796518623828888, -0.03018585965037346, -0.09082061052322388, -0.26827728748321533, 0.24770386517047882, -0.2299615889787674, -0.18002954125404358, -0.10327360779047012, -0.22971850633621216, 0.128249853849411, 0.06654313206672668, -0.2357313632965088, -0.058126043528318405, 0.005192693788558245, -0.16248396039009094, -0.25964102149009705, -0.06650834530591965, 0.25974398851394653, -0.19970394670963287, -0.2225968986749649, -0.37626996636390686, 0.055048178881406784, -0.37406396865844727, -0.25585421919822693, 0.4713917374610901, 0.4103688895702362, 0.16033975780010223, -0.3092690408229828, 0.2056642770767212, 0.2361137717962265, -0.2818244397640228, 0.12934859097003937, -0.22696688771247864, 0.678419291973114, -0.27386948466300964, 0.02621445804834366, 0.32774707674980164, 0.2242720127105713, 0.29164546728134155, 0.0869123712182045, 0.34883204102516174, -0.018047137185931206, 0.10294977575540543, 0.10829126834869385, -0.335112988948822, -0.5341979265213013, 0.004710250534117222, 0.16751830279827118, 0.008104241453111172, 0.10241802781820297, 0.32913318276405334, -0.09774201363325119, 0.5350012183189392, -0.49033841490745544, -0.005577480886131525, -0.0045299953781068325, -0.004121174570173025, 0.1031666174530983, -0.23951059579849243, -0.21000346541404724, -0.18952825665473938, 0.1265675127506256, -0.018291492015123367, 0.017737360671162605, 0.2712004780769348, 0.08739586174488068, 0.44656944274902344, -0.11886043846607208, 0.13697269558906555, 0.0870913565158844, -0.17913827300071716, 0.41757816076278687, 0.1814684122800827, 0.3354206681251526, -0.0550515353679657, 0.0875706747174263, -0.0712578147649765, 0.29137158393859863, 0.06996726244688034, -0.2244156152009964, 0.004740857519209385, -0.08303862065076828, 0.16839011013507843, -0.2202780395746231, 0.021133314818143845, 0.20273207128047943, -0.09428466111421585, 0.053580380976200104, -0.34074634313583374, 0.07406436651945114, 0.030033739283680916, 0.02456500753760338, -0.3404155671596527, -0.0929088220000267, 0.06694505363702774, 0.03420756757259369, -0.0637572780251503, 0.252834290266037, -0.06909354031085968, -0.0418013259768486, -0.07419183105230331, 0.4374392628669739, 0.08160755783319473, 0.1990167647600174, 0.07984308153390884, -0.1302952915430069, 0.403684139251709, -0.1952105164527893, 0.31031325459480286, 0.008368532173335552, -0.16332943737506866, -0.12017704546451569, -0.11960124224424362, 0.052189361304044724, -0.13442406058311462, -0.12013941258192062, -0.1318630874156952, -0.04295412823557854, -0.18005123734474182, 0.04621478542685509, -0.5524299740791321, -0.30593377351760864, -0.1259782910346985, 0.07822859287261963, -0.35594460368156433, 0.20434892177581787, -0.033742357045412064, 0.07002851366996765, 0.17989298701286316, -0.30223309993743896, -0.18355681002140045, 0.2993926405906677, 0.10390415787696838, -0.028524378314614296, 0.08373308926820755, 0.18777698278427124, 0.1098022386431694, 0.2179260402917862, 0.2721732556819916, 0.1856481432914734, 0.5387430191040039, -0.3212418258190155, 0.15392401814460754, 0.3775049149990082, -0.27003708481788635, 0.09313121438026428, 0.16638891398906708, 0.3374491035938263, -0.07460615783929825, 0.4613173007965088, 0.13287007808685303, -0.02137310802936554, -0.09505641460418701, 0.10007351636886597, -0.11705781519412994, -0.48703259229660034, 0.05278851464390755, -0.40627703070640564, -0.09331553429365158, -0.003270577173680067, 0.29487916827201843, -0.402211457490921, -0.42090022563934326, 0.39822158217430115, 0.44751253724098206, 0.2819490134716034, -0.16609835624694824, 0.04998986795544624, -0.0551488921046257, -0.5352996587753296, 0.14355577528476715, -0.01709894835948944, 0.026980560272932053, -0.07719750702381134, -0.03821134567260742, -0.3761482238769531, 0.08115324378013611, -0.27570661902427673, -0.3715784549713135, -0.237211212515831, -0.1024627834558487, 0.05638766661286354, 0.32515275478363037, -0.18168269097805023, -0.1408332884311676, -0.32504820823669434, -0.09822635352611542, 0.033739641308784485, -0.12492617219686508, -0.2722986042499542, 0.04822414368391037, -0.05976581946015358, -0.22885754704475403, -0.1042751669883728, -0.3540495038032532, -0.38074785470962524, 0.37751805782318115, 0.041725464165210724, 0.2504080832004547, 0.263255774974823, -0.10983914881944656, -0.22204452753067017, 0.0035441189538687468, 0.047715865075588226, -0.05024391785264015, -0.5488945245742798, 0.14635008573532104, -0.2529662251472473, -0.08062208443880081, -0.23956158757209778, -0.2055950164794922, -0.08891646564006805, -0.2992272973060608, -0.003773057833313942, 0.17298462986946106, 0.23577024042606354, -0.16248594224452972, 0.35061290860176086, 0.3530947268009186, 0.1605842560529709, 0.012619773857295513, 0.037452924996614456, -0.15946997702121735, -0.13148857653141022, 0.23385979235172272, 0.41422927379608154, 0.16997995972633362, 0.11128745973110199, 0.0068855867721140385, 0.20429934561252594, -0.0031305968295782804, 0.09562309831380844, 0.06477971374988556, 0.2745959460735321, 0.26834478974342346, 0.19466188549995422, 0.09586457908153534, -0.380487859249115, -0.01814136654138565, -0.049197640269994736, -0.040490370243787766, 0.5621252655982971, 0.14046280086040497, -0.3641776144504547, -0.23760007321834564, -0.2099028080701828, -0.08275547623634338, -0.18771833181381226, -0.10308481752872467, -0.1791359782218933, 0.16771571338176727, 0.1812947541475296, -0.12903538346290588, -0.36853286623954773, -0.017330706119537354, 0.08364324271678925, 0.022530803456902504, 0.5093557238578796, 0.13727837800979614, -0.027088895440101624, 0.23782183229923248, 0.1579573154449463, 0.2556649148464203, 0.4453360438346863, -0.18139128386974335, 0.305724561214447, -0.2214788943529129, 0.06650635600090027, 0.12079041451215744, 0.12766413390636444, -0.13939553499221802, -0.2735547125339508, 0.1430664211511612, 0.1358131319284439, 0.005356111563742161, -0.1844865381717682, 0.07937058806419373, -0.5605742931365967, 0.6572242379188538, -0.20630931854248047, -0.3128501772880554, 0.11389293521642685, 0.3463480770587921, -0.23007850348949432, -0.05025184527039528, -0.18497194349765778, 0.12734735012054443, -0.22020158171653748, -0.57415372133255, -0.00890143122524023, 0.13343700766563416, -0.26749876141548157, 0.1891990453004837, 0.09039834141731262, 0.18313704431056976, 0.2104639858007431, 0.12014516443014145, -0.14546188712120056, -0.11121749132871628, 0.5019403100013733, 0.07520118355751038, 0.13966351747512817, -0.13228024542331696, 0.1509731411933899, 0.3216263949871063, -0.4710192382335663, -0.05696680024266243, -0.12523064017295837, -0.06596629321575165, 0.2320084124803543, 0.4689910411834717, 0.37846291065216064, -0.22327183187007904, 0.1639682501554489, -0.28120771050453186, -0.08889590203762054, -0.15284070372581482, -0.05139824375510216, 0.014266008511185646, -0.07248559594154358, -0.5687923431396484, 0.02566985972225666, -0.19058331847190857, -0.20895476639270782, -0.46142348647117615, -0.013613416813313961, -0.1713096797466278, 0.5519625544548035, 0.40348780155181885, 1.0733836889266968, 0.14489421248435974, -0.018529927358031273, -0.14812302589416504, 0.0640093982219696, 0.4912935495376587, -0.018307922407984734, -0.132243812084198, -0.09088831394910812, 0.033958543092012405, 0.020683979615569115, 0.19174417853355408, -0.15988653898239136, 0.030486445873975754, -0.33276766538619995, 0.012082907371222973, 0.48956629633903503, -0.3025807738304138, 0.16467717289924622, 0.22874321043491364, 0.07936647534370422, -0.35939261317253113, 0.2810899019241333, 0.030774246901273727, -0.0743219405412674, 0.1336578130722046, 0.023589851334691048, -0.4508489966392517, 0.06300114840269089, -0.11769209802150726, -0.17711731791496277, -0.10229036211967468, -0.16404013335704803, -0.14706620573997498, -0.15710529685020447, 0.06316053122282028, -0.08232785016298294, 0.44467154145240784, 0.35066863894462585, 0.15070323646068573, 0.3611939251422882, 0.030914951115846634, 0.7040265798568726, -0.15926562249660492, 0.2576494514942169, 0.08567018061876297, 0.3726053535938263, -0.14054325222969055, -0.1735812872648239, -0.15606561303138733, 0.12236674129962921, -0.05193011090159416, -0.09589847922325134, -0.14764156937599182, 0.09597116708755493, 0.07698513567447662, 0.006541279144585133, 0.3046068847179413, -0.3487662971019745, -0.08539580553770065, 0.019490351900458336, -0.012629390694200993, -0.23872004449367523, 0.05135701224207878, -0.3527491092681885, -0.16411791741847992, -0.1140381246805191, 0.23145604133605957, -0.047793641686439514, -0.37624332308769226, 0.08495531976222992, 0.3765701949596405, -0.06806177645921707, 0.15894241631031036, 0.03155617043375969, -0.5533150434494019, -0.4605734050273895, -0.05334122106432915, -0.20234766602516174, -0.23779436945915222, -0.06323080509901047, 0.03167982026934624, 0.28754377365112305, 0.29548531770706177, 0.2739045321941376, 0.1388172060251236, -0.48110559582710266, 0.258126825094223, -0.17333200573921204, 0.20990659296512604, -0.044211097061634064, -0.5055651068687439, -0.12442292273044586, 0.07458328455686569, -0.22333431243896484, 0.2171487659215927, 0.14282606542110443, -0.03370356932282448, 0.519844114780426, -0.16647471487522125, -0.3323402404785156, -0.2878304719924927, -0.00125914067029953, 0.27724993228912354, 0.12124630063772202, -0.02470744214951992, -0.2537342607975006, 0.15735964477062225, 0.041116755455732346, -0.0572439506649971, 0.07723156362771988, -0.08407817035913467, 0.060328368097543716, -0.15455938875675201, -0.07044577598571777, 0.24450555443763733, 0.0040304516442120075, 0.38421010971069336, 0.32613447308540344, 0.22467540204524994, 0.05690445378422737, 0.20616532862186432, 0.20818181335926056, 0.382097452878952, -0.15889547765254974, 0.10954122990369797, -0.24455468356609344, -0.14863216876983643, 0.40110695362091064, 0.20849920809268951, 0.3131089508533478, 0.07997971028089523, 0.3748278319835663, 0.15595535933971405, 0.17768660187721252, 0.45414724946022034, -0.15974582731723785, 0.14509110152721405, -0.11014046519994736, -0.12711378931999207, 0.11001748591661453, 0.14968258142471313, -0.17344260215759277, 0.2525624930858612, -0.08960055559873581, 0.12286391854286194, -0.07680587470531464, 0.3847632110118866, 0.2813182473182678, -0.19840022921562195, 0.0618167370557785, 0.2656439542770386, 0.2513611614704132, 0.3486652076244354, 0.20697206258773804, 0.41526320576667786, 0.012570369057357311, -0.07083766907453537, -0.34611454606056213, -0.04147825390100479, 0.2416088581085205, -0.22970357537269592, -0.11931487917900085, -0.009348456747829914, 0.6945897936820984, 0.394724577665329, 0.18839222192764282, 0.052394766360521317, 0.0906522274017334, 0.34608763456344604, 0.28651633858680725, 0.15878494083881378, 0.2790274918079376, 0.15090827643871307, 0.38069242238998413, -0.0695967823266983, 0.0784202441573143, 0.8199092149734497, 0.15616706013679504, -0.22313816845417023, -0.40241697430610657, 0.047814562916755676, -0.1816151887178421, -0.24175238609313965, -0.15966591238975525, -0.0478021502494812, -0.3144461214542389, 0.07781971246004105, 0.14369173347949982, 0.014725036919116974, -0.44425973296165466, -0.6542370915412903, 0.5127460360527039, -0.2960861623287201, 0.14539940655231476, 0.4529326558113098, -0.13359597325325012, 0.5429691672325134, 0.5608363151550293, 0.21015404164791107, 0.01492134016007185, 0.12369104474782944, 0.333879679441452, -0.23330429196357727, 0.026471879333257675, 0.19821755588054657, 0.35790562629699707, 0.17133361101150513, 0.061767905950546265, 0.03601755201816559, -0.004426592495292425, -0.07104621082544327, -0.12276490777730942, -0.05123559758067131, -0.07653756439685822, 0.1513156145811081, 0.43174293637275696, 0.26711079478263855, -0.1425502598285675, 0.0683983638882637, 0.08139661699533463, -0.39378586411476135, 0.031868357211351395, -0.09344365447759628, -0.011761363595724106, 0.03564542904496193, 0.1442168653011322, 0.009041758254170418, 0.10348904877901077, 0.12837183475494385, 0.42883428931236267, -0.03542900085449219, -0.03627464547753334, -0.02811954915523529, -0.39737623929977417, -0.24212394654750824, 0.35891440510749817, 0.2464032918214798, -0.013506859540939331, -0.26037806272506714, 0.4524378180503845, 0.46287643909454346, -0.34839022159576416, -0.09272678196430206, -0.36761221289634705, 0.3355751633644104, -0.34715259075164795, 0.2463449388742447, 0.43439650535583496, 0.19939573109149933, 0.07083313167095184, 0.3511964976787567, -0.20940880477428436, -0.33323267102241516, -0.08043897151947021, 0.2059747278690338, -0.07852603495121002, -0.0017292541451752186, 0.05449791997671127, -0.043844837695360184, -0.07781539112329483, 0.07447410374879837, -0.10331887751817703, -0.07860290259122849, -0.09539052844047546, -0.27449995279312134, -0.10104767233133316, 0.00020058004884049296, -0.049228258430957794, 0.32498764991760254, -0.08844242990016937, -0.10825413465499878, 0.09119291603565216, -0.2899884581565857, -0.07293068617582321, 0.025812409818172455, -0.6710768938064575, 0.029355008155107498, -0.0577794574201107, -0.1040107011795044, 0.20803135633468628, 0.277299165725708, 0.24545204639434814, 0.2480410784482956, -0.4210088551044464, -0.4685881733894348, 0.577604353427887, -0.08899269253015518, 0.09675004333257675, -0.264200896024704, 0.12314888834953308, 0.29442137479782104, 0.16403691470623016, -0.35547590255737305, 0.060945864766836166, 0.19702990353107452, -0.020346416160464287, -0.27165767550468445, 0.07761222124099731, -0.017560424283146858, -0.19643154740333557, -0.24486832320690155, -0.2925897538661957, 0.23467707633972168, -0.18281744420528412, -0.3121432363986969, -0.05810495465993881 ]
https://github.com/huggingface/datasets/issues/1844
Update Open Subtitles corpus with original sentence IDs
I like the idea of having `year`, `imdbId` and `subtitleId` as columns for filtering for example. And for the `sentenceIds` a list of integers is fine.
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks!
26
Update Open Subtitles corpus with original sentence IDs Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks! I like the idea of having `year`, `imdbId` and `subtitleId` as columns for filtering for example. And for the `sentenceIds` a list of integers is fine.
[ 0.20258603990077972, 0.15204811096191406, -0.04639825597405434, -0.21517983078956604, -0.2097591608762741, 0.2218642234802246, 0.29271382093429565, 0.3270958364009857, -0.2807442843914032, -0.08636641502380371, -0.34239405393600464, 0.17482209205627441, 0.18115787208080292, -0.13348858058452606, 0.02853197231888771, -0.33979663252830505, 0.13690637052059174, -0.0015650629065930843, 0.6896283030509949, -0.22065632045269012, -0.35826703906059265, 0.24269521236419678, -0.06531418859958649, -0.05622757226228714, -0.18819086253643036, 0.2943159341812134, -0.4418635070323944, 0.10194601118564606, -0.02285260334610939, -0.46550920605659485, -0.1128992885351181, 0.5621759295463562, 0.3112179636955261, 0.042608000338077545, -0.00012075169070158154, -0.2834949493408203, 0.1895885169506073, -0.25009220838546753, -0.2641485333442688, 0.0643005445599556, 0.04724784195423126, -0.28897660970687866, -0.19157247245311737, -0.34148815274238586, 0.06597204506397247, -0.009986930526793003, 0.01768207550048828, -0.3728539049625397, -0.18405427038669586, 0.139695405960083, 0.05855817347764969, -0.10177034884691238, 0.027239179238677025, -0.09780672937631607, 0.5829446315765381, -0.05974278226494789, 0.19454364478588104, 0.25582894682884216, 0.7497335076332092, 0.1804835945367813, 0.2259279191493988, 0.3277648389339447, -0.5435166358947754, -0.4296789765357971, -0.1445404440164566, -0.07945939898490906, 0.0035760453902184963, -0.2353164702653885, 0.00015245424583554268, 0.10741019994020462, 0.4455195963382721, -0.04367218166589737, -0.6220411062240601, -0.38645413517951965, -0.06505978852510452, -0.21826161444187164, -0.2932417690753937, 0.31423240900039673, 0.2823576331138611, 0.3710571825504303, 0.12165240198373795, -0.1338580846786499, 0.11207952350378036, -0.017410939559340477, 0.2732372283935547, 0.27821075916290283, 0.28811192512512207, -0.138827383518219, 0.1407502293586731, -0.11996850371360779, -0.21388155221939087, 0.15297234058380127, -0.3576209545135498, 0.023527074605226517, 0.014302875846624374, -0.22083544731140137, -0.1321442425251007, -0.556171715259552, -0.1693899780511856, -0.09905841201543808, 0.08493107557296753, 0.11060092598199844, -0.0765189602971077, -0.10256776213645935, 0.16074585914611816, 0.2703847885131836, 0.4041803181171417, 0.13894988596439362, -0.1216181293129921, -0.06475141644477844, -0.15019112825393677, -0.033311471343040466, -0.22526933252811432, 0.3126198947429657, -0.2768227159976959, 0.2574811577796936, 0.05922052636742592, 0.028796004131436348, 0.005073126405477524, 0.12691344320774078, -0.4585185647010803, -0.05672312527894974, -0.13811220228672028, -0.004900316242128611, 0.11799965798854828, 0.23690085113048553, 0.2082662731409073, 0.10772298276424408, 0.02425563894212246, -0.4484049081802368, -0.08716496080160141, 0.024688679724931717, 0.052552931010723114, -0.035972610116004944, -0.11401980370283127, -0.3677075207233429, 0.23248812556266785, -0.22349753975868225, -0.22072994709014893, -0.20212863385677338, -0.2647820711135864, 0.16693873703479767, 0.11200734972953796, -0.12801966071128845, 0.08951443433761597, 0.060876622796058655, -0.1455754041671753, -0.1422111988067627, 0.0009647022234275937, 0.28891852498054504, -0.1694345772266388, -0.3882230520248413, -0.41938069462776184, 0.0715937539935112, -0.3491356372833252, -0.3035750091075897, 0.4186147451400757, 0.3618099093437195, 0.21224772930145264, -0.26273301243782043, 0.2700008153915405, 0.1401197612285614, -0.3034575283527374, 0.09731430560350418, -0.23338714241981506, 0.5517134070396423, -0.11103449761867523, 0.009220807813107967, 0.2950674593448639, 0.23184296488761902, 0.19405122101306915, 0.11537167429924011, 0.4618017077445984, 0.006568778771907091, 0.11396884173154831, 0.01764507219195366, -0.3239227533340454, -0.5405445098876953, 0.05319429561495781, 0.028963277116417885, 0.09201019257307053, 0.03659459203481674, 0.33350297808647156, 0.02499356120824814, 0.6624993085861206, -0.4460938274860382, -0.09476570785045624, -0.05499580502510071, -0.08074523508548737, 0.09782368689775467, -0.17326104640960693, -0.17856553196907043, -0.35341906547546387, 0.1526338905096054, 0.010506151244044304, 0.1988871693611145, 0.36152803897857666, 0.0638975128531456, 0.45454320311546326, -0.1058070957660675, 0.0929386168718338, -0.006892670411616564, -0.09401042759418488, 0.4595712423324585, 0.16896390914916992, 0.17949427664279938, 0.14529076218605042, 0.06087970361113548, 0.1969754993915558, 0.24310491979122162, 0.2571721374988556, -0.26506897807121277, -0.00986399594694376, -0.01658616214990616, 0.34127670526504517, -0.15861636400222778, -0.007730971090495586, 0.1010715663433075, -0.1333775371313095, 0.15117192268371582, -0.4317305088043213, 0.10677201300859451, -0.20143216848373413, -0.0007566176354885101, -0.1344544142484665, -0.1698809713125229, 0.16812780499458313, -0.047191545367240906, -0.02039676532149315, 0.27701354026794434, -0.1128409206867218, 0.10627437382936478, -0.09830231219530106, 0.44565457105636597, -0.07352940738201141, 0.3537280559539795, 0.05852266401052475, -0.023235194385051727, 0.28862428665161133, -0.24668386578559875, 0.16736531257629395, -0.16675956547260284, -0.19789458811283112, -0.07747844606637955, 0.053305089473724365, 0.01614740863442421, -0.09392348676919937, -0.08084084093570709, -0.13261888921260834, 0.036587268114089966, -0.2571316957473755, 0.06562063097953796, -0.4624592065811157, -0.24569232761859894, -0.06781560182571411, 0.06294747442007065, -0.5987547039985657, 0.08716645836830139, -0.19130776822566986, 0.16865552961826324, 0.07480379939079285, -0.27275875210762024, 0.004082052502781153, 0.26865094900131226, 0.05313926562666893, -0.022954918444156647, -0.04082014411687851, 0.04611947387456894, 0.007835098542273045, 0.17846406996250153, 0.1472983956336975, 0.1579870581626892, 0.5284190773963928, -0.29435399174690247, 0.26334452629089355, 0.4139413833618164, -0.31464579701423645, -0.05067902058362961, 0.2791540026664734, 0.334371417760849, -0.15810221433639526, 0.5288507342338562, 0.007489609532058239, 0.05863211676478386, -0.09982419013977051, 0.007482787594199181, -0.1781916469335556, -0.4455881714820862, 0.2280273139476776, -0.4807479679584503, 0.02589350752532482, 0.011060110293328762, 0.21368426084518433, -0.2000712901353836, -0.3091619610786438, 0.2962982654571533, 0.15741117298603058, 0.35548341274261475, -0.10575439035892487, 0.11368048936128616, -0.033843521028757095, -0.49569225311279297, 0.2197573035955429, -0.026655593886971474, -0.1890273541212082, -0.09950169175863266, 0.07172559201717377, -0.25298750400543213, 0.14598241448402405, -0.30894777178764343, -0.2556655704975128, -0.31729307770729065, -0.01037242915481329, 0.000022164223992149346, 0.3998185098171234, -0.14799349009990692, -0.2118762731552124, -0.2598627209663391, -0.11578962206840515, -0.03471236675977707, -0.13423629105091095, -0.26728513836860657, 0.038893021643161774, -0.07500222325325012, -0.1597883701324463, -0.025538252666592598, -0.1699218451976776, -0.4189926087856293, 0.2884584069252014, -0.03393928334116936, 0.17666682600975037, 0.232014462351799, -0.06878713518381119, -0.22205185890197754, -0.0449993722140789, 0.15993168950080872, -0.03392704576253891, -0.5086307525634766, 0.08215425908565521, -0.17387805879116058, -0.06099728122353554, -0.20351165533065796, -0.18488170206546783, -0.300708532333374, -0.28544190526008606, -0.06579796969890594, 0.2014685869216919, 0.2741645872592926, -0.268877238035202, 0.5612777471542358, 0.21551772952079773, 0.048408981412649155, -0.03934675082564354, 0.03120868094265461, -0.17454618215560913, -0.31079432368278503, 0.09059908241033554, 0.4777965843677521, 0.11615385115146637, 0.04552941396832466, 0.14079244434833527, 0.08753500878810883, -0.036403950303792953, 0.017718683928251266, 0.01034524291753769, 0.3364099860191345, 0.191241055727005, 0.1911739557981491, 0.035018440335989, -0.5634856820106506, 0.08375909179449081, -0.03025081753730774, -0.06813361495733261, 0.5521845817565918, 0.19221806526184082, -0.28579747676849365, -0.14580398797988892, -0.29349082708358765, -0.1148093119263649, -0.0804411768913269, -0.12620341777801514, -0.25188639760017395, 0.35266420245170593, 0.2575189471244812, -0.14407643675804138, -0.2897811532020569, -0.14916223287582397, 0.05084879696369171, 0.09847112745046616, 0.5742337107658386, 0.12505611777305603, -0.0238505769520998, 0.19022774696350098, 0.3251267671585083, 0.22063390910625458, 0.4722908139228821, -0.10294366627931595, 0.2900046706199646, -0.2374352514743805, 0.17867569625377655, 0.33765336871147156, 0.2217264324426651, -0.23464436829090118, -0.3685334026813507, 0.0910918116569519, 0.020918069407343864, 0.04531744867563248, -0.13809384405612946, 0.21596772968769073, -0.5401026010513306, 0.6022511720657349, -0.1985391080379486, -0.031469862908124924, 0.21850690245628357, 0.4779150187969208, -0.26940372586250305, -0.11370563507080078, -0.203218474984169, 0.05124349519610405, -0.12245522439479828, -0.5893539190292358, -0.0019224544521421194, 0.04216174781322479, -0.26446861028671265, 0.15176165103912354, -0.024682365357875824, 0.07173804938793182, 0.20863428711891174, 0.09640393406152725, -0.14310522377490997, -0.06273014843463898, 0.5997660756111145, 0.1291743516921997, 0.1122448667883873, -0.14741595089435577, 0.17949827015399933, 0.25609397888183594, -0.4961572289466858, 0.09317050129175186, -0.1482703536748886, -0.012206459417939186, 0.34699979424476624, 0.3949154019355774, 0.4357191324234009, 0.01699223555624485, 0.18029022216796875, -0.31924986839294434, 0.0696520134806633, -0.14874324202537537, -0.14628854393959045, -0.050635289400815964, -0.09444057941436768, -0.630087673664093, 0.02567937783896923, -0.27061423659324646, -0.13975879549980164, -0.5500960350036621, 0.15431304275989532, -0.04568779468536377, 0.4206373989582062, 0.4109289348125458, 1.0612905025482178, 0.0454486720263958, -0.1464199423789978, -0.24696330726146698, 0.041936539113521576, 0.549252986907959, 0.16201668977737427, -0.09130334109067917, -0.160763218998909, 0.03210718184709549, 0.09893712401390076, 0.11614693701267242, -0.2794181704521179, -0.25413990020751953, -0.3178936243057251, -0.0872875526547432, 0.46871939301490784, -0.10887755453586578, 0.25446850061416626, 0.1779143512248993, 0.22308748960494995, -0.300831139087677, 0.32466575503349304, 0.01442455593496561, -0.030062558129429817, 0.10732457041740417, 0.03665763884782791, -0.3281345069408417, 0.2605346739292145, -0.05390738323330879, -0.3064027726650238, -0.19653913378715515, 0.05928012728691101, -0.18146635591983795, -0.005046207923442125, -0.03547091782093048, -0.035126060247421265, 0.43212437629699707, 0.40086629986763, 0.11904619634151459, 0.3698367774486542, 0.02415364980697632, 0.7271579504013062, -0.2729673683643341, 0.17305240035057068, 0.15800121426582336, 0.36566731333732605, -0.1582159847021103, -0.23478646576404572, -0.04312280938029289, 0.21810168027877808, -0.24316515028476715, -0.18121224641799927, -0.08483100682497025, 0.10395780950784683, 0.08220213651657104, -0.06762946397066116, 0.09146209806203842, -0.1539803147315979, -0.22643035650253296, -0.0026956715155392885, 0.061170097440481186, -0.05505118519067764, -0.08915198594331741, -0.13791261613368988, -0.1850070059299469, -0.1715220957994461, 0.20257480442523956, 0.06050783023238182, -0.435804545879364, 0.1626015454530716, 0.42468568682670593, -0.006994922645390034, 0.16477492451667786, -0.00026114386855624616, -0.6238164305686951, -0.2848275303840637, 0.11415248364210129, -0.26113131642341614, -0.2134484201669693, 0.0011064321734011173, 0.04957273229956627, 0.09994570910930634, 0.3431379199028015, 0.13338789343833923, 0.1001587063074112, -0.47504207491874695, 0.19214873015880585, -0.25634101033210754, 0.13561415672302246, -0.15495340526103973, -0.47973740100860596, -0.10535095632076263, 0.014661992900073528, -0.19417957961559296, 0.09780070185661316, 0.060711074620485306, 0.045481279492378235, 0.5873953104019165, -0.027725469321012497, -0.3805014193058014, -0.32556697726249695, -0.030750196427106857, 0.16008909046649933, 0.1722453534603119, -0.023335818201303482, -0.2756185829639435, 0.19589032232761383, 0.05424291267991066, 0.16532175242900848, -0.07563219219446182, -0.1026797741651535, 0.06729321926832199, -0.1668597310781479, -0.2070128172636032, 0.3138860762119293, 0.014466777443885803, 0.2859565019607544, 0.19228805601596832, 0.09586063027381897, 0.08528897166252136, 0.17184272408485413, 0.14045429229736328, 0.20240329205989838, -0.15024305880069733, 0.11574983596801758, -0.16834771633148193, -0.14091555774211884, 0.507762610912323, 0.14341311156749725, 0.3052777647972107, 0.0637400820851326, 0.3995055854320526, 0.22788648307323456, 0.22097012400627136, 0.4789086580276489, -0.20550943911075592, 0.02512930892407894, -0.1554468423128128, -0.08122335374355316, -0.037695810198783875, 0.12492803484201431, -0.19662222266197205, 0.29861196875572205, -0.12737450003623962, 0.17974087595939636, -0.10880744457244873, 0.3950013816356659, 0.22687062621116638, -0.2164062261581421, 0.08759985119104385, 0.2835344076156616, 0.2482975721359253, 0.2138535976409912, 0.1780230849981308, 0.3404659330844879, 0.12276359647512436, -0.15380193293094635, -0.2184619903564453, -0.11275210976600647, 0.16512620449066162, -0.16208213567733765, -0.07313691079616547, -0.05633870139718056, 0.7049531936645508, 0.3048967123031616, 0.3184441328048706, 0.22545264661312103, 0.25800779461860657, 0.24707262217998505, 0.14878584444522858, 0.13652284443378448, 0.22025910019874573, 0.03210991993546486, 0.46216705441474915, -0.04909740015864372, 0.07929396629333496, 0.7958608865737915, 0.09310133010149002, -0.24465835094451904, -0.41602128744125366, 0.054552722722291946, -0.02083062380552292, -0.3062521517276764, -0.03516269847750664, 0.11465822160243988, -0.3842499852180481, 0.06529336422681808, 0.04821936786174774, -0.08953592926263809, -0.46401122212409973, -0.47442787885665894, 0.522725522518158, -0.27811944484710693, -0.11289430409669876, 0.30380895733833313, 0.008464505895972252, 0.6416424512863159, 0.5664148926734924, 0.2642947733402252, 0.10104779154062271, 0.08641944825649261, 0.455998957157135, -0.255685418844223, -0.051440946757793427, 0.22702787816524506, 0.32197293639183044, 0.23846618831157684, 0.14850053191184998, -0.0434492751955986, -0.004267302807420492, -0.04997850954532623, 0.08329514414072037, -0.12635597586631775, 0.05814564973115921, -0.01814480870962143, 0.4207746088504791, 0.23231758177280426, -0.2503964304924011, -0.034853093326091766, 0.2278527468442917, -0.21587328612804413, 0.12681955099105835, 0.04584218189120293, -0.06576747447252274, -0.12506671249866486, 0.13177338242530823, -0.000004010547854704782, 0.12726543843746185, 0.08598808944225311, 0.5072779059410095, -0.0002080450503854081, 0.08757096529006958, 0.02289624884724617, -0.29345548152923584, -0.2539844512939453, 0.3089732825756073, 0.23832550644874573, 0.12091516703367233, -0.22247730195522308, 0.5440022349357605, 0.41170549392700195, -0.2848431468009949, -0.10102507472038269, -0.548821210861206, 0.27064862847328186, -0.17946526408195496, 0.045836128294467926, 0.2599017918109894, 0.16985560953617096, -0.00332218362018466, 0.38137510418891907, -0.16001419723033905, -0.5111731886863708, -0.06796868145465851, 0.15546032786369324, -0.08923253417015076, 0.09506925940513611, 0.10218211263418198, -0.05991079658269882, -0.09743474423885345, 0.002209756523370743, -0.1403130143880844, 0.02571459487080574, -0.1727074235677719, -0.4073496162891388, -0.08148778229951859, -0.017417388036847115, -0.09323138743638992, 0.339763343334198, -0.026092326268553734, -0.13584420084953308, 0.2175070196390152, -0.15468090772628784, 0.014402640983462334, -0.02581501379609108, -0.5638809204101562, 0.0654296725988388, -0.03969060629606247, -0.06613201647996902, 0.2783854007720947, 0.06306105852127075, 0.1904573291540146, 0.2627519369125366, -0.46435055136680603, -0.5056291222572327, 0.5837918519973755, -0.2052413821220398, 0.09389693289995193, -0.29691237211227417, 0.30898457765579224, 0.24188895523548126, 0.16432087123394012, -0.41745954751968384, -0.05295869708061218, 0.2758614718914032, -0.08632030338048935, -0.31643393635749817, 0.1886344701051712, 0.13104373216629028, 0.021329190582036972, -0.15739722549915314, -0.38989341259002686, 0.308056116104126, -0.12761352956295013, -0.3563328683376312, -0.04170530289411545 ]
https://github.com/huggingface/datasets/issues/1844
Update Open Subtitles corpus with original sentence IDs
Something like this? (adapted from [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L114)) ```python result = ( sentence_counter, { "id": str(sentence_counter), "meta": { "year": year, "imdbId": imdb_id, "subtitleId": {l1: l1_sub_id, l2: l2_sub_id}, "sentenceIds": {l1: [... source_sids ...], l2: [... target_sids ...]}, # or maybe src/tgt? I'd go with the first one for consistency with 'translation' "subtitleId": {"src": l1_sub_id, "tgt": l2_sub_id}, "sentenceIds": {"src": [... source_sids ...], "tgt": [... target_sids ...]}, }, "translation": {l1: x, l2: y}, }, ) ``` Or at top level, avoiding nesting into 'meta'?
Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks!
79
Update Open Subtitles corpus with original sentence IDs Hi! It would be great if you could add the original sentence ids to [Open Subtitles](https://huggingface.co/datasets/open_subtitles). I can think of two reasons: first, it's possible to gather sentences for an entire document (the original ids contain media id, subtitle file id and sentence id), therefore somewhat allowing for document-level machine translation (and other document-level stuff which could be cool to have); second, it's possible to have parallel sentences in multiple languages, as they share the same ids across bitexts. I think I should tag @abhishekkrthakur as he's the one who added it in the first place. Thanks! Something like this? (adapted from [here](https://github.com/huggingface/datasets/blob/master/datasets/open_subtitles/open_subtitles.py#L114)) ```python result = ( sentence_counter, { "id": str(sentence_counter), "meta": { "year": year, "imdbId": imdb_id, "subtitleId": {l1: l1_sub_id, l2: l2_sub_id}, "sentenceIds": {l1: [... source_sids ...], l2: [... target_sids ...]}, # or maybe src/tgt? I'd go with the first one for consistency with 'translation' "subtitleId": {"src": l1_sub_id, "tgt": l2_sub_id}, "sentenceIds": {"src": [... source_sids ...], "tgt": [... target_sids ...]}, }, "translation": {l1: x, l2: y}, }, ) ``` Or at top level, avoiding nesting into 'meta'?
[ 0.22097836434841156, 0.034774161875247955, -0.017486095428466797, -0.15179476141929626, -0.20496031641960144, 0.3104096055030823, 0.3499240279197693, 0.23899127542972565, -0.4182046353816986, -0.11902206391096115, -0.3992205262184143, 0.2717107832431793, 0.22532010078430176, -0.12070678919553757, 0.10574612766504288, -0.2710322439670563, 0.15779517590999603, -0.06479509174823761, 0.5990244150161743, -0.1972804218530655, -0.3916410505771637, 0.23155978322029114, 0.023285817354917526, -0.10528983175754547, -0.19194982945919037, 0.33268117904663086, -0.5179935693740845, 0.18938376009464264, 0.055862195789813995, -0.4463597536087036, -0.05193155258893967, 0.5385543704032898, 0.25940150022506714, 0.06866391748189926, -0.00012017494009342045, -0.18870417773723602, 0.15327128767967224, -0.24640235304832458, -0.24760839343070984, -0.06820187717676163, 0.16302238404750824, -0.2673370838165283, -0.29455652832984924, -0.30697667598724365, 0.09791016578674316, -0.059778619557619095, 0.008120479062199593, -0.42142051458358765, -0.1565280705690384, 0.0395495668053627, 0.046488240361213684, -0.04178417846560478, 0.03532395884394646, -0.10262352973222733, 0.5562962889671326, -0.0020259569864720106, 0.24943014979362488, 0.32105720043182373, 0.6099583506584167, 0.24947978556156158, 0.23386520147323608, 0.3001664876937866, -0.4769386053085327, -0.4708837568759918, -0.1287597119808197, -0.027208201587200165, 0.028209269046783447, -0.19223512709140778, -0.0698116198182106, 0.041338637471199036, 0.32808011770248413, -0.13307908177375793, -0.7111257910728455, -0.4584232568740845, -0.04611873999238014, -0.21369025111198425, -0.4144744873046875, 0.3474138081073761, 0.3577762544155121, 0.3390948176383972, 0.0551946647465229, -0.16470393538475037, 0.17309702932834625, 0.023302411660552025, 0.27413126826286316, 0.2407245635986328, 0.234087273478508, -0.07190902531147003, 0.15933728218078613, -0.1263432502746582, -0.30188804864883423, 0.09611551463603973, -0.35303983092308044, -0.023110585287213326, 0.05522145703434944, -0.180323988199234, -0.03991958871483803, -0.5612176060676575, -0.06887572258710861, -0.06346999108791351, 0.12004537880420685, 0.0367327556014061, -0.12030385434627533, -0.07871858030557632, 0.17726823687553406, 0.3284095823764801, 0.3404318690299988, 0.09054075181484222, -0.14240244030952454, 0.026658639311790466, -0.11319036781787872, -0.011052276007831097, -0.1618148386478424, 0.2903779149055481, -0.3519209921360016, 0.2706139385700226, 0.1015036553144455, 0.16308315098285675, -0.010381133295595646, 0.0979342833161354, -0.4913240671157837, -0.0882694199681282, -0.1628611981868744, 0.012042885646224022, 0.1813013106584549, 0.2778903841972351, 0.21037112176418304, 0.21652576327323914, 0.01949276588857174, -0.34892839193344116, -0.11004849523305893, 0.02826654724776745, 0.07729777693748474, 0.06549490243196487, -0.1279773861169815, -0.30862486362457275, 0.3220810294151306, -0.22503797709941864, -0.06506826728582382, -0.20308473706245422, -0.30652469396591187, 0.13057686388492584, 0.07326976209878922, -0.15969450771808624, 0.09171339124441147, 0.09787306189537048, -0.1367482841014862, -0.12294381856918335, -0.01385218370705843, 0.2216382771730423, -0.1644519567489624, -0.35614463686943054, -0.21581628918647766, 0.04656006768345833, -0.3473246097564697, -0.3419598639011383, 0.24204982817173004, 0.40232399106025696, 0.22669020295143127, -0.2590726315975189, 0.24222680926322937, 0.1845211237668991, -0.34988346695899963, 0.05922063812613487, -0.13137109577655792, 0.6238108277320862, -0.00776628265157342, -0.08329648524522781, 0.38779571652412415, 0.2720645070075989, 0.08591537922620773, 0.1677539199590683, 0.4032236337661743, 0.05363638326525688, 0.04700713977217674, 0.04326069355010986, -0.4101865291595459, -0.624487578868866, 0.03835972398519516, 0.04822908341884613, -0.03450222685933113, 0.13059575855731964, 0.3557189106941223, 0.0006957441801205277, 0.5223417282104492, -0.4122363328933716, -0.0007481199572794139, -0.03319668024778366, -0.015766164287924767, 0.09644617140293121, -0.16803433001041412, -0.23565807938575745, -0.29977133870124817, 0.11348661035299301, -0.06493634730577469, 0.13169090449810028, 0.2948750853538513, 0.0013584827538579702, 0.4646090865135193, -0.16612176597118378, 0.07938425987958908, -0.03453868627548218, -0.08439206331968307, 0.3948911428451538, 0.12124765664339066, 0.19216829538345337, -0.0429232083261013, 0.11075028777122498, 0.16541114449501038, 0.2414625585079193, 0.19154198467731476, -0.29822206497192383, 0.049358345568180084, -0.0343867726624012, 0.21780410408973694, -0.2670891284942627, -0.015209673903882504, 0.15297682583332062, -0.12493644654750824, 0.1704557090997696, -0.3960724472999573, -0.016192007809877396, -0.07769086211919785, 0.0775524452328682, -0.19728846848011017, -0.1050516739487648, 0.16278675198554993, 0.037642281502485275, -0.0499206967651844, 0.3225729167461395, -0.08503344655036926, 0.05836910381913185, 0.0013717191759496927, 0.46638721227645874, -0.026458468288183212, 0.4859480857849121, 0.047754622995853424, -0.1175583079457283, 0.3558054268360138, -0.2490111142396927, 0.14584855735301971, -0.08905480057001114, -0.16675002872943878, -0.13846485316753387, -0.0018216754542663693, 0.04634002968668938, -0.07066024094820023, -0.038607075810432434, -0.03717035427689552, -0.007378525100648403, -0.30984559655189514, 0.0987732782959938, -0.4832099378108978, -0.3038068115711212, -0.07896407693624496, 0.09301909059286118, -0.4492991268634796, 0.14169172942638397, -0.1375742107629776, 0.236161470413208, 0.10314542800188065, -0.30405473709106445, -0.07717165350914001, 0.2178611308336258, -0.04489123821258545, -0.004225000739097595, -0.044380687177181244, 0.06552551686763763, 0.09416335821151733, 0.2101772427558899, 0.17719559371471405, 0.2408747524023056, 0.6037325263023376, -0.2918299734592438, 0.2677742540836334, 0.4215081036090851, -0.27985870838165283, 0.009012655355036259, 0.36308228969573975, 0.3062950372695923, -0.1610845923423767, 0.5001883506774902, 0.015115032903850079, -0.02934602089226246, -0.15571534633636475, 0.025598891079425812, -0.15574344992637634, -0.34633249044418335, 0.022557269781827927, -0.5094449520111084, -0.053093552589416504, -0.07384025305509567, 0.15771132707595825, -0.24634584784507751, -0.32933250069618225, 0.24780137836933136, 0.2494489848613739, 0.24260671436786652, -0.18325157463550568, 0.0030816274229437113, 0.034484781324863434, -0.5286227464675903, 0.31137585639953613, -0.0645061507821083, -0.1090998500585556, -0.18356215953826904, -0.005450652912259102, -0.30632612109184265, 0.0851268395781517, -0.3004779517650604, -0.2967127859592438, -0.29045796394348145, -0.12312684208154678, -0.030330749228596687, 0.4129614233970642, -0.25599318742752075, -0.1472993791103363, -0.29083725810050964, 0.026472747325897217, 0.017898796126246452, -0.16153165698051453, -0.31753188371658325, 0.023416057229042053, -0.1008802056312561, -0.21083788573741913, -0.0929475873708725, -0.22805547714233398, -0.3786451518535614, 0.48783078789711, -0.04834907874464989, 0.10763435810804367, 0.2692919075489044, -0.07818468660116196, -0.2370762676000595, -0.18412311375141144, 0.14739346504211426, -0.05027452111244202, -0.5810418725013733, 0.07226154208183289, -0.1957203596830368, -0.028628617525100708, -0.2978205382823944, -0.14490389823913574, -0.21621380746364594, -0.30665841698646545, -0.09892210364341736, 0.17042239010334015, 0.24135969579219818, -0.2342206835746765, 0.5072845220565796, 0.36993199586868286, -0.010472663678228855, -0.04427109286189079, 0.03599144145846367, -0.1981699913740158, -0.24082745611667633, 0.12448883801698685, 0.4949030578136444, 0.03046814538538456, 0.01346275769174099, 0.16553464531898499, 0.19439688324928284, 0.10374052077531815, 0.09541728347539902, -0.0017625043401494622, 0.3459447920322418, 0.12875030934810638, 0.23382556438446045, 0.09049975126981735, -0.6101652979850769, 0.05914076045155525, -0.12778452038764954, -0.04005441442131996, 0.4969542920589447, 0.1766005903482437, -0.2033744901418686, -0.19655495882034302, -0.34672194719314575, -0.04263510927557945, -0.15341702103614807, -0.18737073242664337, -0.17455622553825378, 0.28247806429862976, 0.2552606761455536, -0.1768401861190796, -0.24429096281528473, -0.06258456408977509, 0.07281675934791565, 0.10158263146877289, 0.5623084306716919, 0.15681353211402893, -0.08020598441362381, 0.10299289971590042, 0.20306389033794403, 0.21304579079151154, 0.5398973226547241, -0.10103315114974976, 0.38521549105644226, -0.29626917839050293, 0.07368914783000946, 0.24673496186733246, 0.25282084941864014, -0.1431400179862976, -0.3250364065170288, 0.09065696597099304, -0.07714461535215378, -0.0479840487241745, -0.0847771018743515, 0.2388012856245041, -0.48612770438194275, 0.655135452747345, -0.04466833919286728, -0.13839632272720337, 0.22075240314006805, 0.4505433738231659, -0.2518523335456848, -0.06144314631819725, -0.20979435741901398, -0.008691973984241486, -0.1219845712184906, -0.6096373200416565, -0.05745330825448036, 0.03752552717924118, -0.21380241215229034, 0.15934857726097107, 0.0025435106363147497, 0.08818038552999496, 0.15997810661792755, 0.1477334350347519, -0.1215679720044136, -0.08276189118623734, 0.529115617275238, 0.1702372431755066, 0.17288678884506226, -0.09090907126665115, 0.3126511871814728, 0.40047210454940796, -0.44110292196273804, 0.05557526275515556, -0.2909815013408661, 0.036092422902584076, 0.4481695294380188, 0.3489745557308197, 0.3569919764995575, -0.0036159874871373177, 0.14566440880298615, -0.2892705202102661, -0.08804047852754593, -0.14213865995407104, -0.10540258139371872, -0.022924408316612244, -0.04243951663374901, -0.579997718334198, 0.08735937625169754, -0.24522928893566132, -0.05975586548447609, -0.61794114112854, 0.16580308973789215, -0.11910916119813919, 0.34211301803588867, 0.3598659634590149, 1.0053170919418335, 0.12381809204816818, 0.08802100270986557, -0.11645530164241791, 0.13195794820785522, 0.5445372462272644, 0.1574394553899765, -0.11658349633216858, -0.11653490364551544, 0.05903926491737366, 0.12692490220069885, 0.08886266499757767, -0.266745924949646, -0.24396470189094543, -0.2833569347858429, -0.023719439283013344, 0.44245457649230957, -0.04617711529135704, 0.2295760214328766, 0.13055028021335602, 0.18711963295936584, -0.2922725975513458, 0.2862824499607086, -0.02275555580854416, 0.0141829838976264, 0.056849993765354156, 0.00949866883456707, -0.3129800260066986, 0.14038151502609253, -0.09348960965871811, -0.23287495970726013, -0.16174279153347015, -0.08398406207561493, -0.14421822130680084, -0.13181281089782715, -0.009191692806780338, -0.028360135853290558, 0.3801969885826111, 0.36028194427490234, 0.13806742429733276, 0.35860586166381836, -0.023959342390298843, 0.6386114954948425, -0.2633194029331207, 0.14275036752223969, 0.08634219318628311, 0.26322877407073975, -0.09972099959850311, -0.24404661357402802, -0.11777957528829575, 0.23793721199035645, -0.15311367809772491, -0.22273129224777222, -0.07341282814741135, -0.019321639090776443, 0.1067316085100174, -0.10660547763109207, 0.2211955487728119, -0.1674102395772934, -0.24966102838516235, -0.0274971891194582, 0.066229909658432, -0.1441977471113205, -0.120433010160923, -0.25712257623672485, -0.22714048624038696, -0.1521003544330597, 0.2999049425125122, 0.011011271737515926, -0.3845517039299011, 0.197735995054245, 0.4038412570953369, -0.015292911790311337, 0.20563989877700806, 0.07377025485038757, -0.5600080490112305, -0.3261527717113495, 0.15431463718414307, -0.20553043484687805, -0.12411797046661377, -0.09724703431129456, 0.09449149668216705, 0.11754000186920166, 0.301524817943573, 0.15949766337871552, 0.08255369961261749, -0.48284435272216797, 0.27532070875167847, -0.2664922773838043, 0.17545045912265778, -0.030631201341748238, -0.3450261056423187, -0.16099709272384644, 0.12798020243644714, -0.19141994416713715, 0.17959064245224, 0.12901321053504944, -0.022878872230648994, 0.5700923800468445, -0.13853444159030914, -0.258790522813797, -0.31955718994140625, -0.01741199940443039, 0.1505303680896759, 0.14742521941661835, -0.018913842737674713, -0.3108358085155487, 0.18581658601760864, 0.10508237779140472, 0.22384944558143616, 0.007544234395027161, -0.028107890859246254, 0.08994856476783752, -0.2263011336326599, -0.08960351347923279, 0.3430849611759186, 0.08690302073955536, 0.2806055247783661, 0.183249831199646, 0.10893982648849487, -0.011505261063575745, 0.18620817363262177, 0.2204471379518509, 0.14327512681484222, -0.11629746109247208, 0.0819212794303894, -0.2621045708656311, -0.11713183671236038, 0.5180975794792175, 0.13312959671020508, 0.39207616448402405, 0.1230291947722435, 0.38137000799179077, 0.18140988051891327, 0.15239906311035156, 0.3915373682975769, -0.09629865735769272, 0.05032090097665787, -0.08886217325925827, -0.04695354774594307, -0.059520453214645386, 0.10103704780340195, -0.18007171154022217, 0.2891717553138733, 0.004001781344413757, 0.11043582111597061, -0.02880854718387127, 0.41643455624580383, 0.22671033442020416, -0.10729555785655975, -0.060307104140520096, 0.24156396090984344, 0.24791313707828522, 0.33637046813964844, 0.2434161901473999, 0.2799059748649597, 0.1374017894268036, -0.11328215152025223, -0.1982458084821701, 0.03177326172590256, 0.291326105594635, -0.17010748386383057, -0.13765661418437958, 0.03230324760079384, 0.652604877948761, 0.17217272520065308, 0.4123954474925995, 0.23162196576595306, 0.2014802098274231, 0.22393517196178436, 0.30610254406929016, 0.11052669584751129, 0.10288729518651962, 0.18333826959133148, 0.4449321925640106, -0.04682489484548569, 0.1626712828874588, 0.8947780132293701, 0.11343734711408615, -0.37876439094543457, -0.3137112259864807, 0.06611938029527664, -0.10216283798217773, -0.29683464765548706, -0.09134834259748459, -0.09678462892770767, -0.3326018154621124, 0.05465436354279518, 0.08101680129766464, -0.11873237788677216, -0.5291763544082642, -0.42423728108406067, 0.5176986455917358, -0.30086180567741394, -0.09954468160867691, 0.43256935477256775, -0.01771651953458786, 0.5202094912528992, 0.5960303544998169, 0.3152927756309509, 0.06761889159679413, 0.07064326852560043, 0.42899513244628906, -0.26210978627204895, 0.0018361739348620176, 0.22036895155906677, 0.2570602595806122, 0.09678352624177933, 0.05939158424735069, 0.0722724199295044, -0.004069406073540449, -0.051077064126729965, -0.0314330980181694, -0.05423538014292717, 0.07115237414836884, -0.13853055238723755, 0.47409090399742126, 0.024607853963971138, -0.1848061978816986, 0.007248627953231335, 0.3113252520561218, -0.3124317526817322, 0.13747148215770721, 0.0962601900100708, -0.08262424916028976, -0.10981424152851105, 0.11039053648710251, -0.00012444506864994764, 0.10498634725809097, 0.14136922359466553, 0.4995453655719757, 0.002235719468444586, 0.014610355719923973, 0.03695845231413841, -0.36286604404449463, -0.25463151931762695, 0.36389070749282837, 0.23390087485313416, 0.07204584777355194, -0.15066932141780853, 0.548511803150177, 0.4051656126976013, -0.2288871556520462, 0.016217097640037537, -0.5260776877403259, 0.2718007564544678, -0.13917550444602966, 0.07990420609712601, 0.13064585626125336, 0.03149135410785675, 0.0767940804362297, 0.40034133195877075, -0.321403443813324, -0.49014025926589966, -0.09518221765756607, 0.1373232901096344, 0.02010241337120533, -0.06011844798922539, -0.09389004111289978, -0.048237983137369156, -0.09406574815511703, -0.018172547221183777, -0.0797826275229454, -0.11920498311519623, -0.2002188116312027, -0.40867289900779724, -0.10553516447544098, 0.02887188456952572, -0.1562335342168808, 0.3772971034049988, -0.15198102593421936, -0.11899477243423462, 0.18036441504955292, -0.19503656029701233, 0.13516591489315033, -0.14045171439647675, -0.5362726449966431, 0.1425037533044815, -0.09600577503442764, -0.14367200434207916, 0.250548392534256, 0.25196680426597595, 0.15383383631706238, 0.32092592120170593, -0.38750946521759033, -0.5163570642471313, 0.6283264756202698, -0.23688487708568573, 0.1326724737882614, -0.28544893860816956, 0.27631136775016785, 0.25713565945625305, 0.1662464141845703, -0.5226232409477234, 0.032039824873209, 0.2893504500389099, -0.020616775378584862, -0.3545166552066803, 0.19280488789081573, 0.03811759129166603, -0.11577295511960983, -0.18749204277992249, -0.3579190969467163, 0.30213025212287903, -0.12331561744213104, -0.24826528131961823, -0.07224765419960022 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
That's awesome! Actually, I just noticed that this dataset might become a bit too big! MuST-C is the main dataset used for IWSLT19 and should probably be added as a standalone dataset. Would you be interested also in adding `datasets/MuST-C` instead? Description: _MuST-C is a multilingual speech translation corpus whose size and quality facilitates the training of end-to-end systems for speech translation from English into several languages. For each target language, MuST-C comprises several hundred hours of audio recordings from English TED Talks, which are automatically aligned at the sentence level with their manual transcriptions and translations._ Paper: https://www.aclweb.org/anthology/N19-1202.pdf Dataset: https://ict.fbk.eu/must-c/ (One needs to fill out a short from to download the data, but it's very easy). It would be awesome if you're interested in adding this datates. I'm very happy to guide you through the PR! I think the easiest way to start would probably be to read [this README on how to add a dataset](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) and open a PR. Think you can copy & paste some code from: - Librispeech_asr: https://github.com/huggingface/datasets/blob/master/datasets/librispeech_asr/librispeech_asr.py - Flores Translation: https://github.com/huggingface/datasets/blob/master/datasets/flores/flores.py Think all the rest can be handled on the PR :-)
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
188
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). That's awesome! Actually, I just noticed that this dataset might become a bit too big! MuST-C is the main dataset used for IWSLT19 and should probably be added as a standalone dataset. Would you be interested also in adding `datasets/MuST-C` instead? Description: _MuST-C is a multilingual speech translation corpus whose size and quality facilitates the training of end-to-end systems for speech translation from English into several languages. For each target language, MuST-C comprises several hundred hours of audio recordings from English TED Talks, which are automatically aligned at the sentence level with their manual transcriptions and translations._ Paper: https://www.aclweb.org/anthology/N19-1202.pdf Dataset: https://ict.fbk.eu/must-c/ (One needs to fill out a short from to download the data, but it's very easy). It would be awesome if you're interested in adding this datates. I'm very happy to guide you through the PR! I think the easiest way to start would probably be to read [this README on how to add a dataset](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) and open a PR. Think you can copy & paste some code from: - Librispeech_asr: https://github.com/huggingface/datasets/blob/master/datasets/librispeech_asr/librispeech_asr.py - Flores Translation: https://github.com/huggingface/datasets/blob/master/datasets/flores/flores.py Think all the rest can be handled on the PR :-)
[ -0.2875136137008667, 0.175274059176445, -0.05233761668205261, -0.01608082838356495, -0.10274022817611694, 0.04134649783372879, 0.03224548324942589, 0.15731358528137207, -0.3544578552246094, 0.2396768480539322, -0.23819899559020996, -0.1111772283911705, -0.19824476540088654, 0.10468888282775879, 0.12996742129325867, -0.11739377677440643, 0.06263241916894913, 0.16216665506362915, -0.2575620710849762, -0.24262811243534088, -0.08484086394309998, -0.021014006808400154, -0.16761794686317444, -0.2154308706521988, -0.2636876106262207, -0.23435868322849274, -0.3444112539291382, -0.02224314585328102, -0.22283029556274414, -0.11759205162525177, 0.1175156831741333, 0.24841360747814178, 0.23995958268642426, 0.4444425106048584, -0.00010515678150113672, -0.19214211404323578, 0.1900988072156906, -0.3233177959918976, -0.3289238512516022, -0.007507554721087217, -0.2392933964729309, -0.15383069217205048, -0.5299215912818909, -0.05031702294945717, -0.08309515565633774, -0.32029151916503906, 0.040713030844926834, 0.16451652348041534, 0.20446857810020447, 0.5778828263282776, 0.21405638754367828, 0.1666969656944275, 0.3482292890548706, -0.11885480582714081, 0.2372102290391922, 0.10144500434398651, -0.12061981856822968, 0.13595153391361237, 0.321425199508667, 0.05029339715838432, 0.12982869148254395, 0.35192933678627014, 0.07516258955001831, -0.20782099664211273, -0.0013169184094294906, -0.29706084728240967, -0.17037245631217957, -0.4697273075580597, 0.054620224982500076, 0.34667205810546875, 0.566889226436615, -0.23009167611598969, -0.1379351168870926, -0.18856507539749146, 0.23853251338005066, -0.2753943204879761, -0.1425790935754776, 0.1017547994852066, -0.24686510860919952, 0.2201552540063858, 0.13388380408287048, -0.19836197793483734, -0.26175689697265625, 0.4235546588897705, -0.03932201489806175, 0.2688903510570526, -0.02102542296051979, -0.06641865521669388, 0.15837687253952026, -0.24045145511627197, -0.27389487624168396, -0.02259562723338604, 0.10158134251832962, -0.00836237333714962, -0.21822009980678558, -0.3157851994037628, 0.2978568971157074, -0.1357147991657257, 0.17325037717819214, -0.37560608983039856, -0.18921299278736115, -0.15222473442554474, -0.16864566504955292, 0.030830634757876396, 0.10539436340332031, 0.34807324409484863, -0.1274256408214569, 0.1075952872633934, -0.03609371557831764, -0.1672757863998413, 0.0026852386072278023, 0.2127128690481186, -0.13084225356578827, 0.15243321657180786, -0.33704131841659546, 0.25810739398002625, -0.13946376740932465, -0.10064923018217087, -0.2270863950252533, 0.15193219482898712, -0.15494480729103088, 0.19768919050693512, -0.04976843670010567, 0.16787350177764893, 0.15022246539592743, 0.4123961925506592, -0.08524990826845169, 0.3266161382198334, 0.04359499737620354, -0.18593384325504303, -0.05001157894730568, 0.15480026602745056, -0.2542712092399597, 0.25665730237960815, 0.23782142996788025, 0.31298744678497314, 0.1783686727285385, 0.005379015579819679, 0.3276020884513855, 0.0617617592215538, -0.0991259515285492, -0.05115742236375809, 0.28838932514190674, 0.10071378946304321, 0.13635553419589996, 0.00002625313754833769, -0.2535661458969116, -0.17372652888298035, -0.277448445558548, 0.009300597943365574, 0.13574276864528656, -0.17946213483810425, -0.15828438103199005, 0.23795509338378906, -0.10186554491519928, -0.17411668598651886, -0.3040418028831482, 0.7007127404212952, -0.060636311769485474, -0.12106294184923172, 0.05289558321237564, -0.05322117730975151, -0.3657286465167999, 0.03425139561295509, -0.08725187927484512, 0.31262272596359253, -0.28720930218696594, 0.03939436376094818, 0.057468827813863754, 0.0726865828037262, 0.13553397357463837, 0.1585358828306198, -0.12878164649009705, 0.3593235909938812, -0.033101025968790054, 0.3460196554660797, -0.04887452349066734, -0.43974995613098145, -0.28159913420677185, 0.15357264876365662, -0.2127692550420761, 0.09607233107089996, 0.1783142238855362, -0.10739670693874359, 0.5414615869522095, -0.37189868092536926, 0.03497737646102905, 0.3706720173358917, -0.17272719740867615, 0.034049831330776215, -0.18943724036216736, -0.2846863269805908, 0.07880079001188278, 0.18390101194381714, -0.032320525497198105, -0.08002250641584396, -0.04356388747692108, 0.3727608025074005, 0.26673516631126404, -0.3871520459651947, 0.22023528814315796, 0.2563532888889313, -0.04474159702658653, -0.07487820833921432, -0.028326749801635742, -0.19607754051685333, -0.18360967934131622, -0.05902593582868576, 0.19121401011943817, 0.621902585029602, 0.1550300568342209, -0.25316646695137024, -0.14195629954338074, -0.236906498670578, -0.14439450204372406, -0.06201371178030968, 0.2281484454870224, 0.31509751081466675, 0.11076216399669647, -0.11259874701499939, -0.08612683415412903, 0.20712019503116608, -0.5647341012954712, -0.26470881700515747, -0.1538946032524109, 0.1814260184764862, 0.008466877974569798, -0.21958495676517487, 0.3080781102180481, 0.42270171642303467, 0.01465993095189333, 0.05355437472462654, 0.02855502814054489, 0.13541217148303986, -0.1619788557291031, 0.25796037912368774, 0.07811930030584335, 0.1648431122303009, 0.27278584241867065, -0.5677765607833862, 0.1332097351551056, 0.46465855836868286, 0.07762610167264938, -0.17824219167232513, -0.0820307731628418, 0.12444889545440674, 0.29897624254226685, 0.18296541273593903, 0.16404622793197632, -0.1839018017053604, 0.18197821080684662, -0.00043212625314481556, -0.21238015592098236, -0.04353878274559975, 0.14989632368087769, 0.1638152152299881, -0.23492829501628876, 0.03654170781373978, -0.3542167544364929, 0.22356656193733215, 0.45180273056030273, -0.2263442426919937, 0.2648504376411438, 0.3474595248699188, -0.04243704676628113, -0.17568331956863403, -0.0004731133230961859, -0.10340084135532379, 0.33192816376686096, 0.3627648651599884, 0.24225358664989471, 0.00710545526817441, 0.07170218229293823, -0.0730777159333229, 0.13889575004577637, 0.12378199398517609, -0.11277737468481064, 0.29406848549842834, 0.1811237335205078, -0.042267654091119766, -0.32544636726379395, -0.08920785039663315, -0.038253460079431534, 0.18449686467647552, -0.10446297377347946, -0.2978942096233368, 0.013378271833062172, -0.2083916813135147, -0.23774586617946625, 0.012981337495148182, 0.002897754078730941, 0.0303695909678936, 0.35400351881980896, 0.0479804165661335, -0.2579820156097412, 0.2546875774860382, 0.2618292570114136, 0.26775699853897095, -0.34537357091903687, -0.07911652326583862, 0.05458996817469597, -0.40097740292549133, -0.3158775269985199, 0.21584148705005646, 0.30167901515960693, 0.25560101866722107, 0.1860276758670807, -0.19140736758708954, 0.10035131126642227, -0.16301272809505463, -0.3969956338405609, 0.1623777449131012, -0.3061773180961609, 0.06126061826944351, -0.14004020392894745, 0.10189145803451538, 0.021082952618598938, -0.5848557353019714, -0.21910758316516876, 0.14481689035892487, -0.11598802357912064, -0.10499604791402817, -0.5161019563674927, -0.169914111495018, -0.04853286221623421, -0.6011026501655579, -0.4975530505180359, -0.4463852345943451, 0.27681079506874084, -0.19840139150619507, 0.057375334203243256, 0.0979481041431427, 0.12523508071899414, 0.06776361912488937, 0.008915847167372704, 0.17878873646259308, -0.23387470841407776, -0.0812651738524437, 0.172740176320076, -0.2196904420852661, -0.2960358262062073, -0.2503241300582886, -0.12694619596004486, 0.03450830280780792, -0.045371003448963165, -0.3076550364494324, 0.1568707376718521, -0.11726987361907959, 0.1862730234861374, 0.06959003955125809, 0.1646302342414856, 0.3058907389640808, -0.036611784249544144, -0.1327185183763504, -0.10652899742126465, -0.10932763665914536, 0.03631026670336723, 0.36743679642677307, 0.25476858019828796, 0.0032190331257879734, 0.003039519302546978, -0.02364935353398323, 0.5740112662315369, 0.29567012190818787, -0.12115512788295746, 0.10027105361223221, 0.04732351750135422, 0.2798263728618622, -0.1951165497303009, -0.3320174813270569, 0.4544562101364136, 0.054715581238269806, -0.05949737876653671, 0.5838142037391663, 0.015740489587187767, -0.4595153331756592, -0.049479130655527115, -0.2481124997138977, -0.24015098810195923, -0.29292032122612, 0.35754793882369995, 0.16843783855438232, 0.27321958541870117, -0.07390011101961136, -0.26944810152053833, -0.259223997592926, -0.20805014669895172, 0.11782536655664444, 0.14267688989639282, 0.03197667747735977, 0.03504467010498047, -0.2550532817840576, -0.01484275609254837, -0.24040794372558594, -0.05144819989800453, 0.350737065076828, 0.26693660020828247, -0.3556976318359375, 0.008583484217524529, -0.1341502070426941, 0.12011951953172684, 0.23525366187095642, -0.3290526270866394, -0.1241113543510437, 0.16914506256580353, 0.6236921548843384, 0.05809062719345093, 0.24498644471168518, -0.27829915285110474, -0.40770968794822693, 0.5713499188423157, 0.32709354162216187, -0.31807342171669006, 0.029558734968304634, 0.18056942522525787, 0.4551043212413788, 0.01963171176612377, -0.1199948638677597, 0.06692846864461899, -0.4188571572303772, -0.39545732736587524, 0.2638203799724579, 0.419243723154068, -0.030220752581954002, 0.14443634450435638, 0.05137460306286812, 0.2739146649837494, -0.09937266260385513, 0.5432232618331909, 0.04442945867776871, 0.004227609373629093, 0.5168446898460388, 0.0652429535984993, -0.02138764224946499, -0.19695280492305756, 0.15595167875289917, 0.25225308537483215, -0.07593344151973724, -0.25593820214271545, 0.08561254292726517, -0.1964673101902008, 0.3721092939376831, 0.3864419758319855, 0.12510381639003754, 0.015251733362674713, -0.09599132090806961, 0.03403085097670555, -0.22133111953735352, 0.3231516182422638, 0.17185041308403015, 0.0787985548377037, -0.2946382761001587, -0.17973434925079346, 0.4043145775794983, 0.021440953016281128, -0.07492512464523315, 0.14125335216522217, 0.18432927131652832, -0.20573550462722778, 0.35135534405708313, -0.13850894570350647, 1.2044342756271362, 0.2380194365978241, 0.05688878521323204, 0.2659078538417816, -0.109637551009655, 0.08832962065935135, -0.4995723068714142, -0.08496425300836563, 0.3907913863658905, 0.2597649097442627, -0.019022410735487938, 0.20986057817935944, -0.1178983747959137, 0.2537149488925934, -0.43998071551322937, 0.24260970950126648, 0.1150815561413765, -0.007401944603770971, 0.23064157366752625, 0.5852332711219788, -0.17134949564933777, -0.5080523490905762, -0.24036905169487, 0.21985012292861938, 0.09457501024007797, 0.06718703359365463, 0.1623472273349762, -0.2743900716304779, 0.11779370158910751, -0.012320385314524174, -0.6150575876235962, 0.09306018054485321, -0.24320581555366516, -0.20297087728977203, -0.42964670062065125, -0.14721867442131042, 0.37992721796035767, 0.2104634791612625, 0.29859083890914917, 0.01688448339700699, -0.2263965606689453, 0.173262819647789, 0.0865623876452446, -0.022395864129066467, 0.08274673670530319, -0.17294694483280182, 0.4044257402420044, -0.2710452377796173, -0.2950930595397949, 0.2002258151769638, 0.07041847705841064, 0.01336462702602148, -0.40022486448287964, -0.2600349485874176, 0.24563249945640564, 0.14672832190990448, 0.24034729599952698, 0.6309659481048584, -0.035970211029052734, -0.2770219147205353, 0.18739204108715057, -0.18144503235816956, -0.3884578347206116, 0.22417911887168884, -0.2762507200241089, -0.11897705495357513, -0.2200239896774292, 0.061596665531396866, 0.27486860752105713, -0.06350871175527573, 0.3337152302265167, 0.3225398361682892, -0.0669054314494133, -0.3963092863559723, 0.03044542297720909, -0.010455324314534664, -0.44092488288879395, -0.020186597481369972, 0.09051158279180527, -0.1279536485671997, -0.2117042988538742, 0.4416198134422302, 0.2073623538017273, -0.07166637480258942, -0.014257737435400486, -0.04645058512687683, -0.33226466178894043, -0.016414174810051918, 0.09120447188615799, 0.1912335604429245, -0.09927552193403244, 0.37921109795570374, -0.032558973878622055, 0.11845114827156067, -0.43360820412635803, 0.07619881629943848, -0.16268198192119598, 0.2437882423400879, 0.2632614076137543, -0.14266106486320496, 0.2488957792520523, 0.041407935321331024, 0.15913888812065125, 0.010206690989434719, -0.06190517917275429, -0.22238817811012268, -0.16574259102344513, 0.08454611152410507, 0.11847598850727081, 0.1900925189256668, 0.08741620928049088, -0.04353991895914078, -0.17226308584213257, 0.10139279812574387, 0.2535378336906433, 0.11840681731700897, -0.03530244156718254, 0.15907077491283417, -0.024770494550466537, -0.057377565652132034, 0.1267603635787964, -0.022257618606090546, 0.3171493411064148, 0.34229499101638794, 0.05907753109931946, 0.17317885160446167, 0.009803395718336105, -0.21613745391368866, -0.0024718628264963627, 0.3561343848705292, 0.2103474736213684, 0.02304549142718315, 0.04137727618217468, 0.15746833384037018, 0.028891365975141525, 0.2351679503917694, 0.04910600930452347, 0.05484824255108833, -0.04705386608839035, -0.021470308303833008, 0.2766661047935486, 0.2646978795528412, -0.15335342288017273, 0.24257153272628784, -0.2537618577480316, -0.3012736737728119, 0.1291770488023758, 0.10176057368516922, 0.10319308191537857, -0.1311917006969452, 0.2717258036136627, -0.1053742915391922, -0.2317267507314682, 0.0490289144217968, -0.03572367876768112, 0.2377202957868576, 0.12845584750175476, -0.08594730496406555, -0.05626833066344261, 0.031223302707076073, 0.22075074911117554, -0.03867415338754654, -0.16504040360450745, 0.5045085549354553, 0.055366504937410355, 0.0940546840429306, 0.27530160546302795, -0.16371704638004303, 0.09640487283468246, 0.05684961751103401, 0.21947696805000305, 0.15393361449241638, 0.05172102525830269, 0.4231323301792145, 0.048220016062259674, -0.3117501437664032, -0.14600180089473724, 0.2334001064300537, 0.10638291388750076, 0.010845261625945568, -0.2279701679944992, -0.21692101657390594, -0.2533045709133148, -0.0314629003405571, 0.01693989709019661, -0.34706911444664, -0.04720279946923256, 0.15840144455432892, -0.13481897115707397, -0.19554172456264496, -0.18274539709091187, -0.2227243334054947, 0.15877211093902588, -0.17298556864261627, 0.36216023564338684, 0.23587556183338165, -0.151926189661026, 0.1546727567911148, 0.4195306599140167, 0.5034294724464417, 0.016472438350319862, -0.26599928736686707, 0.25527283549308777, 0.07221614569425583, -0.11349663883447647, 0.004205089993774891, 0.3613186180591583, 0.04383045434951782, 0.053094059228897095, 0.23833133280277252, 0.22130249440670013, -0.260759174823761, -0.23579305410385132, 0.09989777952432632, -0.19373220205307007, -0.11343014240264893, 0.09294641762971878, -0.05395271256566048, 0.19048959016799927, -0.4325955808162689, -0.037257589399814606, -0.6131446361541748, 0.14929819107055664, 0.5136842131614685, -0.23913948237895966, 0.07910993695259094, -0.128225639462471, 0.11622694879770279, -0.30672016739845276, 0.3376336097717285, 0.3489733040332794, 0.139545738697052, -0.21940754354000092, -0.20143921673297882, -0.32091113924980164, -0.014734561555087566, -0.06313098967075348, -0.10132280737161636, -0.3647855520248413, 0.09813716262578964, 0.45249465107917786, 0.36583471298217773, -0.2682144343852997, -0.2221832573413849, -0.3807543218135834, 0.1827518194913864, -0.31414350867271423, 0.2570055425167084, -0.025315556675195694, 0.4205213189125061, 0.09024834632873535, -0.24136905372142792, -0.260752409696579, 0.18645279109477997, 0.0894533023238182, -0.13241218030452728, -0.08810034394264221, -0.12447360157966614, -0.05158376321196556, 0.10090277343988419, -0.04019298031926155, 0.5253706574440002, -0.2989621162414551, -0.12349539995193481, -0.16563379764556885, 0.0010459002805873752, -0.18615689873695374, -0.059518080204725266, -0.04278133064508438, 0.3104841709136963, -0.22207394242286682, 0.39154547452926636, -0.03505009040236473, -0.21252106130123138, 0.12080421298742294, 0.061291128396987915, -0.29695600271224976, 0.11239809542894363, -0.2163970172405243, 0.04075370356440544, 0.03706217557191849, 0.3508242070674896, 0.002080711303278804, -0.05121545121073723, -0.29303663969039917, -0.2200300246477127, 0.512965977191925, -0.14261631667613983, -0.2901846766471863, -0.02678886242210865, 0.3327949047088623, 0.12209507077932358, 0.1083659902215004, -0.6881360411643982, 0.2756844758987427, 0.23023715615272522, 0.14843688905239105, -0.04744289070367813, 0.19266550242900848, 0.05839894339442253, -0.07805544883012772, -0.04383574053645134, -0.048791058361530304, 0.05657610669732094, -0.21921595931053162, 0.07280561327934265, -0.3567449152469635 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Hi @patrickvonplaten I have tried downloading this dataset, but the connection seems to reset all the time. I have tried it via the browser, wget, and using gdown . But it gives me an error message. _"The server is busy or down, pls try again"_ (rephrasing the message here) I have completed adding 4 datasets in the previous data sprint (including the IWSLT dataset #1676 ) ...so just checking if you are able to download it at your end. Otherwise will write to the dataset authors to update the links.
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
90
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi @patrickvonplaten I have tried downloading this dataset, but the connection seems to reset all the time. I have tried it via the browser, wget, and using gdown . But it gives me an error message. _"The server is busy or down, pls try again"_ (rephrasing the message here) I have completed adding 4 datasets in the previous data sprint (including the IWSLT dataset #1676 ) ...so just checking if you are able to download it at your end. Otherwise will write to the dataset authors to update the links.
[ -0.40575113892555237, 0.11951566487550735, -0.003910295199602842, 0.15090256929397583, 0.022045936435461044, -0.08532173186540604, -0.13353094458580017, -0.006255718879401684, -0.2400020807981491, 0.12572944164276123, -0.27505189180374146, -0.31894710659980774, 0.10233355313539505, 0.13984817266464233, 0.14491628110408783, -0.09393052756786346, 0.12054289132356644, 0.025905828922986984, -0.33614686131477356, -0.26575419306755066, -0.08172187954187393, 0.04912151023745537, -0.2169913947582245, -0.288932204246521, -0.2452695667743683, -0.07997240126132965, -0.3513834774494171, -0.12463868409395218, -0.40128520131111145, -0.19961804151535034, 0.11502822488546371, 0.28579261898994446, 0.06138918921351433, 0.3938322961330414, -0.00010921755892923102, -0.1187211349606514, 0.27976712584495544, -0.29491835832595825, -0.46902063488960266, -0.21306155622005463, -0.46738317608833313, -0.20183201134204865, -0.38757964968681335, 0.0961180180311203, -0.06335808336734772, -0.11151257902383804, 0.20502065122127533, 0.11715619266033173, 0.3408113420009613, 0.5179669260978699, 0.19697578251361847, 0.06982101500034332, 0.4441026747226715, -0.2930298149585724, 0.06935734301805496, -0.041787199676036835, -0.019698426127433777, 0.29127076268196106, 0.2534223198890686, 0.02117500826716423, 0.19610100984573364, 0.08921154588460922, -0.052303459495306015, -0.139849454164505, -0.06792473047971725, -0.2415890395641327, -0.08774812519550323, -0.40397751331329346, 0.473798006772995, 0.3026016652584076, 0.8854364156723022, -0.12355207651853561, -0.05721310153603554, 0.05575288459658623, 0.3473542630672455, -0.15457850694656372, 0.05949655547738075, -0.036159250885248184, -0.23031045496463776, 0.21894681453704834, 0.03700144216418266, -0.3095419108867645, -0.2542935013771057, 0.4501921236515045, -0.026302767917513847, 0.32997339963912964, -0.04263702780008316, 0.09615620970726013, 0.13980762660503387, -0.2091660499572754, -0.11205577850341797, -0.06455130130052567, -0.10944504290819168, 0.1329554170370102, -0.3483427166938782, -0.07176268845796585, 0.11174333095550537, -0.014107774943113327, 0.045082349330186844, -0.2468636929988861, -0.23099398612976074, 0.0057511175982654095, -0.08934350311756134, -0.08717722445726395, 0.1881146878004074, 0.37997138500213623, -0.02955949492752552, -0.11595559865236282, 0.1522301435470581, -0.01739039085805416, 0.014199478551745415, 0.009937549941241741, -0.11142901331186295, 0.05473950505256653, -0.34089553356170654, 0.1652858406305313, 0.0806242823600769, -0.20363295078277588, -0.2136303335428238, 0.08811966329813004, -0.2003665417432785, -0.04662128537893295, -0.10082444548606873, 0.43767696619033813, -0.05910923704504967, 0.3093269169330597, -0.060377053916454315, 0.19304445385932922, -0.14792290329933167, -0.36953654885292053, -0.08712653815746307, -0.016754359006881714, -0.2718508541584015, 0.08073166012763977, 0.23283979296684265, 0.2596513330936432, 0.05901357904076576, 0.09371263533830643, 0.04921184107661247, -0.06658686697483063, -0.23986117541790009, -0.03846464678645134, 0.21158955991268158, 0.1285424679517746, 0.06984850019216537, 0.22051449120044708, -0.09208392351865768, -0.225044846534729, -0.04268212243914604, 0.10047126561403275, 0.08373930305242538, -0.07450266927480698, -0.1287999302148819, 0.19206658005714417, -0.1797720342874527, -0.31410011649131775, -0.31805408000946045, 0.5080103874206543, -0.24146175384521484, -0.06528598815202713, 0.03236539289355278, 0.1024627536535263, -0.46886447072029114, -0.021020643413066864, 0.04072652757167816, 0.5596441626548767, -0.4436147212982178, -0.030784182250499725, 0.08801951259374619, -0.03090490773320198, 0.1453658491373062, 0.15752530097961426, -0.1545802503824234, 0.31936243176460266, -0.02144937589764595, 0.30116409063339233, -0.028509603813290596, -0.22305002808570862, -0.6605321168899536, 0.07810579985380173, -0.09664783626794815, -0.06668507307767868, 0.06184489652514458, -0.009019008837640285, 0.6679301857948303, 0.04563002288341522, -0.15640169382095337, 0.44662418961524963, 0.049411945044994354, -0.07151144742965698, -0.14203140139579773, -0.33191797137260437, 0.28921669721603394, -0.019795212894678116, 0.16870267689228058, -0.05372404307126999, 0.13308051228523254, 0.3083943724632263, 0.31693023443222046, -0.01407801453024149, 0.29645484685897827, 0.34746620059013367, 0.08166583627462387, -0.018895456567406654, 0.04849087446928024, 0.024598894640803337, -0.3104141056537628, 0.1486814022064209, 0.21966174244880676, 0.48366618156433105, -0.09787844866514206, 0.0032813744619488716, -0.2344835251569748, -0.13089418411254883, -0.36034902930259705, -0.10231872648000717, 0.18766382336616516, 0.37287572026252747, 0.14797617495059967, 0.096686452627182, -0.07755635678768158, 0.3941011130809784, -0.27668437361717224, -0.10551529377698898, -0.08797191828489304, 0.42491376399993896, -0.006179129239171743, -0.2714396119117737, 0.18619997799396515, 0.20408512651920319, 0.33420681953430176, -0.0953073799610138, -0.026194702833890915, 0.2505723536014557, -0.24820297956466675, 0.3651423156261444, 0.1121956929564476, 0.09923011064529419, 0.26522424817085266, -0.5659913420677185, 0.21993698179721832, 0.44329696893692017, 0.22069957852363586, -0.32553228735923767, 0.005690120160579681, -0.1550026834011078, 0.2652444541454315, 0.15659138560295105, 0.09057652205228806, 0.029094574972987175, 0.45529672503471375, -0.08147915452718735, -0.16549351811408997, 0.034561820328235626, 0.2561267912387848, 0.22512459754943848, -0.17972373962402344, -0.1153322234749794, -0.27866339683532715, 0.25715699791908264, 0.38684961199760437, -0.30512917041778564, 0.26232287287712097, 0.15704914927482605, -0.03619959205389023, -0.2613961398601532, -0.019696451723575592, -0.10091576725244522, 0.2762661278247833, 0.17339083552360535, 0.30404824018478394, 0.0963481217622757, 0.05657665431499481, -0.06220851466059685, 0.20410796999931335, 0.021329965442419052, -0.1722142994403839, 0.21428893506526947, 0.13728266954421997, -0.20129342377185822, -0.3991735577583313, 0.08783270418643951, 0.1849188506603241, 0.3150723874568939, -0.0980788916349411, -0.27445974946022034, -0.21131913363933563, -0.26934704184532166, -0.30654338002204895, -0.09197497367858887, -0.3515450954437256, -0.08077864348888397, 0.18751484155654907, 0.07191977649927139, 0.13176469504833221, 0.2187938690185547, 0.22437217831611633, 0.23385871946811676, -0.30132153630256653, -0.04228880628943443, 0.028026603162288666, -0.3736094832420349, -0.4183720350265503, 0.0749586969614029, 0.3446522057056427, 0.2606096565723419, 0.24958296120166779, -0.19365353882312775, 0.017233289778232574, -0.3335570693016052, -0.2054547518491745, 0.26994431018829346, -0.1151752918958664, 0.049856316298246384, -0.25668537616729736, 0.3304843306541443, -0.05549297854304314, -0.2536814510822296, -0.15106001496315002, -0.07299678027629852, 0.07809064537286758, -0.029139427468180656, -0.3341873586177826, -0.18402351438999176, 0.08490714430809021, -0.5110998749732971, -0.42482468485832214, -0.2990656793117523, 0.32477861642837524, -0.3723617196083069, -0.07137171924114227, 0.156987726688385, 0.0470275916159153, 0.12903358042240143, -0.07992495596408844, 0.004536858294159174, -0.42044544219970703, -0.09208737313747406, 0.16202548146247864, -0.0662747472524643, -0.410142183303833, 0.12325260788202286, 0.14406821131706238, 0.16362790763378143, -0.04567950591444969, -0.3998602628707886, 0.24959172308444977, -0.11164720356464386, 0.28859344124794006, 0.21770933270454407, 0.11705406755208969, 0.32759764790534973, -0.1510174721479416, -0.07645875960588455, -0.13975757360458374, -0.1971045434474945, 0.036246493458747864, 0.3786497712135315, 0.451707661151886, 0.10345439612865448, 0.09493502229452133, 0.0015614402946084738, 0.5036545395851135, 0.24244198203086853, -0.003120912704616785, 0.19955989718437195, -0.03233257308602333, 0.34518444538116455, -0.12026979774236679, -0.4784111976623535, 0.34221988916397095, -0.12093168497085571, -0.10801348090171814, 0.3984341025352478, -0.023738648742437363, -0.4457186758518219, -0.2867491841316223, -0.20881810784339905, -0.17307262122631073, -0.39483964443206787, 0.20358508825302124, 0.3248842656612396, 0.19424980878829956, 0.08941265940666199, -0.06773589551448822, -0.06992340087890625, -0.24380207061767578, 0.25303205847740173, 0.19205783307552338, -0.1503235399723053, 0.04578949883580208, -0.22620226442813873, -0.06157180294394493, -0.5227600336074829, -0.0031615556217730045, 0.08835741132497787, 0.6162909269332886, -0.5153840184211731, 0.27880749106407166, 0.16378940641880035, 0.11187675595283508, 0.4498528838157654, -0.4674544632434845, 0.025674160569906235, 0.2579934298992157, 0.5658137202262878, -0.024493539705872536, 0.0852498784661293, -0.182638481259346, -0.32910382747650146, 0.7147045135498047, 0.19014522433280945, -0.24038158357143402, 0.1496540606021881, 0.07431185245513916, 0.4221889078617096, -0.09127632528543472, -0.10627378523349762, 0.08183173090219498, -0.46520769596099854, -0.36230480670928955, 0.016762839630246162, 0.21979497373104095, 0.023224133998155594, 0.30309727787971497, 0.16810286045074463, 0.28683340549468994, -0.08583086729049683, 0.27004286646842957, -0.06969413161277771, -0.06538797914981842, 0.6191538572311401, 0.18404549360275269, 0.1778920739889145, -0.09543278068304062, -0.12224243581295013, 0.388108491897583, -0.11372749507427216, -0.3406705856323242, 0.08159337192773819, -0.2186899036169052, 0.2896743416786194, 0.44770577549934387, 0.19239887595176697, 0.1342252492904663, 0.09141036123037338, 0.05411307141184807, -0.28611692786216736, 0.24857917428016663, 0.29366034269332886, 0.17742714285850525, -0.3353138267993927, -0.40662968158721924, 0.4526824355125427, -0.11070481687784195, -0.07927872985601425, 0.1087716743350029, 0.11368904262781143, -0.1474589854478836, 0.10332935303449631, -0.2280924767255783, 1.3418972492218018, 0.26033133268356323, -0.10362068563699722, 0.1596800535917282, -0.3964632451534271, 0.04892246797680855, -0.4883714020252228, 0.05775250867009163, 0.2418975830078125, 0.12644870579242706, -0.07929263263940811, 0.23860549926757812, -0.07683230936527252, 0.04886135831475258, -0.4408457577228546, 0.45171454548835754, 0.03552895411849022, 0.0824260339140892, 0.20135486125946045, 0.5475215315818787, -0.1408499926328659, -0.2970794439315796, -0.18802225589752197, 0.22207427024841309, 0.11915694177150726, 0.4247295558452606, 0.07017067819833755, -0.14907318353652954, 0.15834137797355652, -0.08466508984565735, -0.8224685192108154, 0.1091834008693695, -0.33923596143722534, -0.03963901475071907, -0.4534522294998169, -0.046715617179870605, 0.17599935829639435, 0.045441884547472, 0.3028605878353119, -0.00963085237890482, -0.3284364938735962, 0.32357895374298096, -0.11580704897642136, -0.06657996028661728, 0.12939392030239105, -0.10589782893657684, 0.25523120164871216, -0.20619747042655945, -0.455262690782547, 0.1773906946182251, 0.15392090380191803, 0.007360640447586775, -0.3866426348686218, -0.28271088004112244, 0.0224933922290802, 0.09629637002944946, 0.25354039669036865, 0.5415584444999695, 0.05583811551332474, -0.18778154253959656, 0.13132387399673462, -0.10406209528446198, -0.2573307454586029, 0.2665685713291168, -0.20133239030838013, -0.21232949197292328, -0.23596160113811493, 0.4419168531894684, 0.03647492825984955, -0.07239481061697006, 0.45627447962760925, 0.5152435898780823, -0.18427708745002747, -0.2891138195991516, -0.1190691813826561, -0.07730969041585922, -0.5514747500419617, -0.08087224513292313, -0.049354009330272675, 0.09203613549470901, -0.255332350730896, 0.3498767912387848, 0.06987832486629486, 0.01735682599246502, -0.09593409299850464, -0.19917424023151398, -0.15583889186382294, -0.09776223450899124, 0.28871649503707886, 0.2710496485233307, -0.20011986792087555, 0.13033147156238556, 0.25511589646339417, -0.13904969394207, -0.3407120406627655, 0.11936317384243011, -0.1413028985261917, 0.1880841702222824, 0.2851235270500183, -0.2964828312397003, 0.3054428696632385, 0.005375012755393982, 0.08207898586988449, -0.1342371106147766, -0.08786382526159286, -0.11900195479393005, -0.045848291367292404, 0.10821434110403061, 0.0690946877002716, -0.0024017111863940954, -0.16773830354213715, -0.36039191484451294, -0.15494859218597412, 0.24081237614154816, 0.1800762414932251, 0.269481897354126, -0.11452403664588928, 0.02283368818461895, -0.005932742729783058, 0.014789512380957603, 0.1496964991092682, 0.00039990118239074945, 0.28443148732185364, 0.5005554556846619, 0.1575217843055725, 0.21742714941501617, 0.05948160961270332, -0.026523884385824203, -0.2028462439775467, 0.33821016550064087, 0.15226823091506958, -0.16358619928359985, 0.1632891446352005, -0.009359394200146198, 0.09800016134977341, 0.1910664588212967, 0.15485158562660217, 0.2413555234670639, -0.04168134927749634, -0.1847531795501709, 0.4256344735622406, 0.16498403251171112, -0.17445500195026398, 0.028038356453180313, -0.14189434051513672, -0.050834864377975464, 0.02317873015999794, 0.04877138510346413, -0.0049957758747041225, -0.32027649879455566, 0.15850554406642914, -0.03471152111887932, 0.008387470617890358, 0.08323145657777786, 0.03588670492172241, 0.25887617468833923, 0.030473386868834496, -0.17394933104515076, 0.08404193073511124, 0.03982560336589813, -0.07761674374341965, -0.04062371701002121, -0.16572768986225128, 0.3330060541629791, -0.06223517656326294, 0.24786575138568878, 0.12069498747587204, -0.20343554019927979, 0.06793976575136185, 0.12659357488155365, 0.06781776249408722, 0.08980170637369156, 0.05542017146945, 0.4078167974948883, 0.038784828037023544, -0.14633841812610626, -0.2957155108451843, 0.3513897955417633, 0.14440269768238068, -0.06649855524301529, -0.09862793982028961, -0.3691883385181427, -0.3593108355998993, 0.1443934142589569, 0.055379197001457214, -0.2998833656311035, 0.04090022295713425, 0.2840974032878876, -0.1750616431236267, -0.16259229183197021, -0.3025871515274048, -0.21623879671096802, 0.04076977074146271, -0.3084474503993988, 0.3035302758216858, 0.19489067792892456, -0.024065235629677773, 0.16237327456474304, 0.525532603263855, 0.4240308105945587, 0.13625846803188324, -0.21811543405056, 0.42444297671318054, 0.105322927236557, -0.07066324353218079, 0.09540177881717682, 0.43096134066581726, 0.11977574974298477, 0.031716395169496536, 0.24873888492584229, 0.1331913024187088, -0.1352529227733612, -0.09084015339612961, 0.0301530584692955, 0.0016618981026113033, -0.1724865436553955, 0.058937523514032364, 0.0017147893086075783, 0.32379940152168274, -0.525659441947937, -0.17043311893939972, -0.6494346857070923, 0.10553690791130066, 0.3118792474269867, -0.28091228008270264, 0.2777462899684906, -0.22004356980323792, 0.0765104591846466, -0.35349786281585693, 0.35163137316703796, 0.31778043508529663, 0.15684136748313904, -0.20558284223079681, -0.22691814601421356, -0.42492273449897766, -0.13975723087787628, -0.13533750176429749, 0.09342260658740997, -0.2800356447696686, 0.09738081693649292, 0.2640984058380127, 0.22546304762363434, 0.03991032764315605, -0.011921628378331661, -0.42187806963920593, 0.3082423806190491, -0.18785470724105835, 0.10518186539411545, 0.1375581920146942, 0.5417033433914185, -0.05048518255352974, -0.08526886999607086, -0.03515344485640526, 0.15707412362098694, 0.013198059983551502, -0.06135091558098793, -0.2157156616449356, -0.11668528616428375, -0.26017844676971436, 0.11197475343942642, 0.04905445873737335, 0.5883558988571167, -0.14001819491386414, -0.07036083936691284, -0.4372199475765228, -0.10420604050159454, -0.03013581410050392, -0.04357273504137993, -0.019223954528570175, 0.16321305930614471, -0.08836416900157928, 0.3698633313179016, -0.23260994255542755, -0.24435311555862427, -0.09029509872198105, 0.3523513674736023, -0.34441059827804565, -0.06611520797014236, -0.1640637069940567, 0.16833828389644623, -0.05991388484835625, 0.11664678156375885, -0.02664760872721672, -0.05754117667675018, -0.29331153631210327, -0.09798098355531693, 0.4137921929359436, -0.19227726757526398, -0.3772278428077698, -0.22226083278656006, 0.30684345960617065, -0.014948458410799503, 0.14554201066493988, -0.6260251402854919, 0.24533601105213165, 0.22478117048740387, 0.05619523301720619, -0.08777647465467453, 0.14868730306625366, 0.14266470074653625, 0.13320624828338623, -0.06931736320257187, 0.05543467029929161, 0.2344236671924591, -0.22376874089241028, 0.2015012502670288, -0.2066238671541214 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
@skyprince999, I think I'm getting the same error you're getting :-/ ``` Sorry, you can't view or download this file at this time. Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator. ``` It would be great if you could write the authors to see whether they can fix it. Also cc @lhoestq - do you think we could mirror the dataset?
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
117
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). @skyprince999, I think I'm getting the same error you're getting :-/ ``` Sorry, you can't view or download this file at this time. Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator. ``` It would be great if you could write the authors to see whether they can fix it. Also cc @lhoestq - do you think we could mirror the dataset?
[ -0.3741527795791626, 0.05198933929204941, -0.0482889749109745, 0.07955189794301987, -0.01357110682874918, 0.017498750239610672, 0.0815654993057251, 0.18861328065395355, -0.20640315115451813, 0.38557565212249756, -0.3391430377960205, -0.5373645424842834, -0.05325774475932121, -0.010435939766466618, 0.13056133687496185, -0.21010324358940125, 0.0005457511870190501, -0.061969559639692307, -0.2461225390434265, -0.10636960715055466, -0.10544721782207489, 0.03694900870323181, -0.12918268144130707, -0.02384342812001705, -0.20578007400035858, -0.10446847975254059, -0.3355359435081482, -0.06736445426940918, -0.3276139497756958, -0.26889336109161377, 0.019658373668789864, 0.27341631054878235, 0.11549953371286392, 0.4012148380279541, -0.00010457432654220611, 0.00014947263116482645, 0.40673765540122986, -0.048194654285907745, -0.34581488370895386, -0.17425154149532318, -0.1645573079586029, -0.28988856077194214, -0.435611367225647, 0.059661466628313065, -0.22533786296844482, -0.1871693730354309, 0.26307761669158936, 0.046196773648262024, 0.33122509717941284, 0.5269781947135925, 0.21982800960540771, -0.057559784501791, 0.3618277609348297, -0.3024638891220093, 0.30618900060653687, -0.12634141743183136, -0.08863025903701782, 0.37887340784072876, 0.3622792661190033, 0.1281084567308426, 0.19285064935684204, 0.25640836358070374, -0.049439337104558945, -0.1281774938106537, 0.00931118056178093, -0.3232191801071167, -0.06198744475841522, -0.3781905174255371, 0.11266160756349564, 0.2508857846260071, 0.8849614262580872, 0.11650919914245605, -0.23764358460903168, -0.04536917805671692, 0.1858687400817871, -0.08202855288982391, 0.17163725197315216, 0.08199618011713028, -0.09749740362167358, 0.24207302927970886, 0.010667094960808754, -0.26991602778434753, -0.27612078189849854, 0.28457802534103394, 0.06108248978853226, 0.14045630395412445, -0.07214706391096115, 0.1089523658156395, 0.21836590766906738, -0.20038753747940063, -0.2603648602962494, 0.18270689249038696, -0.09529640525579453, 0.22843234241008759, -0.11515045166015625, -0.03163916990160942, 0.23588423430919647, -0.16714778542518616, -0.05375632271170616, -0.17103208601474762, -0.13050420582294464, -0.19165576994419098, -0.20570066571235657, 0.0987531989812851, -0.0011441736714914441, 0.422584593296051, -0.02582179568707943, -0.0939667746424675, 0.24319113790988922, -0.1216178834438324, -0.04087739810347557, 0.06720224022865295, -0.16116616129875183, -0.15631744265556335, -0.4741422235965729, 0.2587383985519409, 0.0858989730477333, -0.1574447751045227, -0.22320635616779327, 0.008140972815454006, -0.06438615173101425, -0.02683773823082447, 0.0266043059527874, 0.37635743618011475, -0.04674486815929413, 0.21724006533622742, 0.07224735617637634, 0.24953404068946838, -0.07253614813089371, -0.3502604365348816, -0.06449981033802032, 0.09667445719242096, -0.5013251304626465, 0.17742538452148438, 0.33678138256073, 0.12709403038024902, 0.022837931290268898, -0.02180967479944229, 0.14302323758602142, -0.15200066566467285, -0.1542092114686966, -0.13165006041526794, 0.07182607054710388, 0.1473984271287918, 0.16323024034500122, 0.28876549005508423, -0.06352519243955612, -0.20757733285427094, -0.04148939996957779, 0.02018946036696434, -0.12725144624710083, -0.3853567838668823, -0.13587887585163116, 0.26404622197151184, -0.12399692088365555, -0.053865280002355576, -0.3378993272781372, 0.4284416437149048, -0.25009387731552124, -0.27040913701057434, -0.18366077542304993, 0.2193419486284256, -0.4041495621204376, -0.09899343550205231, -0.061612654477357864, 0.5527353882789612, -0.2626284658908844, 0.10055353492498398, -0.06429804861545563, -0.0722772479057312, 0.07273232936859131, 0.33850470185279846, -0.3098074197769165, 0.2924599349498749, -0.1130012571811676, 0.24164524674415588, 0.08202283084392548, -0.3433903157711029, -0.6367416381835938, 0.15747493505477905, -0.3702492415904999, -0.12314841896295547, 0.36225125193595886, -0.0813826322555542, 0.7645018696784973, -0.38590553402900696, -0.04157878831028938, 0.2580491006374359, 0.28414386510849, 0.008239449001848698, -0.24564974009990692, -0.2950388193130493, 0.12855759263038635, 0.09932837635278702, 0.03454212471842766, 0.12004898488521576, 0.2588181495666504, 0.3030824363231659, 0.3145306706428528, -0.1403212994337082, 0.1904461830854416, 0.3736029863357544, 0.064875528216362, 0.14245039224624634, -0.04100148007273674, -0.033505119383335114, -0.07726588845252991, 0.04287964478135109, 0.11944573372602463, 0.28785601258277893, 0.13236744701862335, -0.18398648500442505, -0.3479401171207428, -0.21244622766971588, -0.38999810814857483, -0.06713391840457916, 0.21372821927070618, 0.36391371488571167, 0.13348034024238586, 0.05469924584031105, 0.14922097325325012, 0.3630463182926178, -0.3433389365673065, -0.16818566620349884, -0.12033951282501221, 0.37633928656578064, -0.19439813494682312, -0.09724447131156921, 0.20113591849803925, 0.181870698928833, 0.33160439133644104, -0.09486214071512222, -0.028608005493879318, 0.18829533457756042, -0.2663228213787079, 0.2544407844543457, 0.20893843472003937, 0.18665547668933868, 0.2824367880821228, -0.7307385802268982, 0.30037805438041687, 0.32129499316215515, 0.2425287961959839, -0.12430830299854279, -0.12570975720882416, -0.03052976354956627, 0.25921550393104553, 0.06854912638664246, 0.102805957198143, -0.050961051136255264, 0.47342368960380554, 0.004328825511038303, -0.07415736466646194, -0.025404775515198708, 0.24930982291698456, 0.2675666809082031, -0.33081766963005066, -0.16317665576934814, -0.15643812716007233, 0.08932209014892578, 0.3958452641963959, -0.14097531139850616, 0.030445706099271774, 0.217543363571167, 0.007371906191110611, -0.18569685518741608, -0.03863557055592537, -0.1548449844121933, 0.18786658346652985, 0.29404398798942566, 0.2710776925086975, 0.04188878461718559, 0.19363412261009216, -0.11560063809156418, 0.22622911632061005, 0.08442838490009308, -0.23446208238601685, 0.16121381521224976, 0.1995624154806137, 0.011399258859455585, -0.19934901595115662, -0.13308604061603546, 0.23036184906959534, 0.2885443866252899, -0.19606295228004456, -0.3173700273036957, 0.035616762936115265, -0.26725083589553833, -0.12097916752099991, -0.07980909943580627, -0.27163979411125183, -0.11204857379198074, 0.17614421248435974, 0.2219208925962448, -0.13003258407115936, 0.05250224098563194, 0.30185526609420776, 0.26637765765190125, -0.2395303100347519, 0.16973887383937836, -0.08989938348531723, -0.2039329558610916, -0.24183408915996552, 0.1517958790063858, 0.3139507472515106, -0.02350185438990593, 0.26081112027168274, -0.17032454907894135, 0.2581343948841095, -0.41933515667915344, -0.24843476712703705, 0.07255510985851288, -0.15654294192790985, 0.1284320056438446, -0.38581788539886475, 0.2875359356403351, 0.04107251018285751, -0.45584073662757874, -0.04802040755748749, -0.04962293803691864, -0.00678998464718461, 0.022300025448203087, -0.2981390357017517, -0.1353989541530609, 0.0043041096068918705, -0.5185351371765137, -0.5353164076805115, -0.4876824617385864, 0.3409762978553772, -0.21745501458644867, 0.04693186283111572, 0.13933008909225464, 0.11687236279249191, 0.15930019319057465, -0.09936033189296722, 0.18086738884449005, -0.2902185022830963, -0.20105689764022827, 0.15144142508506775, -0.3761225938796997, -0.3692213296890259, 0.09506041556596756, 0.2483452558517456, -0.04269176349043846, -0.1107681393623352, -0.48232901096343994, 0.16883525252342224, -0.34148159623146057, 0.17689482867717743, 0.05422111973166466, 0.02615295723080635, 0.17994175851345062, -0.16570554673671722, -0.13135483860969543, -0.002324204659089446, -0.20003867149353027, -0.061942603439092636, 0.3084881901741028, 0.28288179636001587, -0.14652135968208313, 0.17686885595321655, 0.1262531280517578, 0.7308598160743713, 0.3372611701488495, 0.21937315165996552, 0.22548098862171173, 0.05925104022026062, 0.32176223397254944, -0.25762978196144104, -0.42479169368743896, 0.43192580342292786, -0.19595253467559814, 0.002423379337415099, 0.4522395431995392, 0.08290857076644897, -0.32562071084976196, -0.2853498160839081, -0.40648043155670166, -0.39025360345840454, -0.4201672673225403, 0.055117927491664886, 0.3270706534385681, 0.0952722430229187, 0.12884850800037384, -0.13038864731788635, -0.18084822595119476, -0.2825462818145752, 0.23671318590641022, 0.3933320641517639, -0.061327725648880005, 0.04823078587651253, -0.05541553348302841, -0.10637663304805756, -0.29483672976493835, 0.16871307790279388, 0.11416216194629669, 0.35052749514579773, -0.5199870467185974, 0.20941169559955597, 0.29399415850639343, 0.1402662694454193, 0.5945846438407898, -0.30369290709495544, 0.23898839950561523, 0.0857534259557724, 0.4931541681289673, 0.012979055754840374, 0.08222943544387817, -0.1953352987766266, -0.22386519610881805, 0.6836935877799988, 0.23629233241081238, -0.22470541298389435, 0.23382623493671417, 0.17911513149738312, 0.21379481256008148, -0.03914710879325867, -0.10975603759288788, 0.03564788028597832, -0.35319584608078003, -0.48954471945762634, 0.12203321605920792, 0.33988019824028015, 0.12821169197559357, 0.06625980138778687, 0.011531999334692955, 0.27799227833747864, -0.11564727127552032, 0.3644883930683136, 0.0395309142768383, 0.024725938215851784, 0.6241251826286316, 0.14970813691616058, 0.17967642843723297, -0.09256072342395782, -0.1748550683259964, 0.5049252510070801, -0.004521379247307777, -0.27216094732284546, 0.05290450528264046, -0.18283170461654663, 0.15261292457580566, 0.49527421593666077, 0.0034145561512559652, -0.0024311039596796036, 0.1519775688648224, 0.08384734392166138, -0.23810654878616333, 0.3139921724796295, 0.2047504335641861, 0.00512214470654726, -0.42767155170440674, -0.3296119272708893, 0.48168259859085083, 0.08168137073516846, -0.18380911648273468, 0.21211743354797363, 0.19736050069332123, -0.048270754516124725, 0.12124114483594894, -0.3054202198982239, 1.2670201063156128, -0.03450843691825867, -0.02627449668943882, 0.1436275839805603, -0.2191213071346283, 0.05643179640173912, -0.5175653696060181, 0.08865270018577576, 0.2112247198820114, -0.012561559677124023, 0.020040029659867287, 0.09092235565185547, 0.005388323683291674, 0.14987044036388397, -0.3562782406806946, 0.07334145158529282, 0.0318925641477108, 0.03263326734304428, -0.023646986111998558, 0.5749601125717163, -0.18096871674060822, -0.1283806711435318, -0.1721377819776535, 0.20325863361358643, 0.023101815953850746, 0.34180259704589844, 0.059490326792001724, -0.2116236537694931, 0.03844302147626877, -0.11935783922672272, -0.7107993960380554, 0.14040668308734894, -0.20198184251785278, -0.014248289167881012, -0.5004385113716125, -0.10420257598161697, 0.4435341954231262, 0.11945158988237381, 0.17692415416240692, 0.24400341510772705, -0.39419057965278625, 0.24166379868984222, -0.14660793542861938, -0.1694498509168625, -0.05211532488465309, -0.02791426330804825, 0.30195939540863037, -0.28294816613197327, -0.3729143440723419, 0.2836351692676544, -0.0017939421813935041, 0.028226278722286224, -0.4600767195224762, -0.051117461174726486, 0.18261925876140594, 0.01978401094675064, 0.22070413827896118, 0.37979862093925476, -0.1771153062582016, -0.2517741024494171, 0.14492389559745789, -0.06852848082780838, -0.3642738163471222, -0.043389324098825455, -0.16732443869113922, -0.2443777322769165, 0.02728383056819439, 0.3833365738391876, 0.14901573956012726, -0.10595326870679855, 0.5424477458000183, 0.36017802357673645, -0.2853143513202667, -0.24421939253807068, -0.1411842405796051, -0.1164887323975563, -0.7241870760917664, -0.01069185882806778, 0.07644866406917572, 0.05802037566900253, -0.10227478295564651, 0.2253747135400772, 0.2350109964609146, -0.056915245950222015, -0.010107583366334438, -0.3057067096233368, -0.2525348663330078, -0.08369650691747665, -0.07834727317094803, 0.015639809891581535, -0.0557715930044651, 0.23277363181114197, 0.23388060927391052, -0.051649000495672226, -0.38669919967651367, 0.09639350324869156, -0.14170359075069427, 0.157255157828331, 0.35182985663414, -0.26266852021217346, 0.2583806812763214, 0.09980608522891998, 0.12145698070526123, 0.03685376048088074, -0.18256399035453796, -0.1610727310180664, -0.056574806571006775, 0.11140484362840652, 0.06813744455575943, -0.028857333585619926, -0.040441978722810745, -0.36409661173820496, -0.07177038490772247, 0.27553167939186096, 0.21000924706459045, 0.19298055768013, -0.006882399320602417, -0.06666574627161026, -0.07389703392982483, -0.01786232553422451, 0.26827502250671387, 0.21908865869045258, 0.08596926182508469, 0.4051472544670105, 0.10104682296514511, 0.20302192866802216, 0.05254194885492325, -0.0890607163310051, -0.28415441513061523, 0.11980220675468445, 0.149939626455307, 0.051820240914821625, 0.1336269974708557, -0.07912281155586243, 0.27453577518463135, 0.26607710123062134, 0.1616659164428711, 0.06667740643024445, -0.09280490130186081, -0.09011251479387283, 0.48744794726371765, 0.20300699770450592, -0.24154804646968842, 0.07627694308757782, -0.11213508993387222, -0.18488261103630066, 0.01246056891977787, -0.10283898562192917, 0.11345731467008591, -0.20102426409721375, 0.19464610517024994, -0.03808366507291794, -0.028170716017484665, -0.01941639930009842, 0.029357081279158592, 0.33931630849838257, -0.041885197162628174, -0.2344796061515808, 0.11692661046981812, 0.14332084357738495, -0.013724129647016525, 0.2548772990703583, -0.1808050125837326, 0.28454747796058655, -0.053758084774017334, 0.22205263376235962, 0.030297113582491875, -0.3563711643218994, 0.11204440146684647, 0.07069084048271179, -0.06677423417568207, 0.23246310651302338, -0.005503552500158548, 0.2380455732345581, -0.0018274656031280756, 0.06176133453845978, -0.22196263074874878, 0.3045003116130829, 0.14095740020275116, 0.07310019433498383, 0.06903427839279175, -0.25751104950904846, -0.2445528656244278, 0.07425515353679657, -0.07768433541059494, -0.2890942096710205, -0.11145668476819992, 0.21908263862133026, -0.2013312131166458, -0.13367442786693573, -0.11047502607107162, -0.16311003267765045, 0.19399121403694153, -0.30726009607315063, 0.3899516463279724, 0.08092308044433594, -0.0012234700843691826, 0.3901755213737488, 0.3995126485824585, 0.4556726813316345, 0.07928182184696198, -0.12068003416061401, 0.2690318524837494, -0.07153382897377014, -0.10906839370727539, 0.0018281291704624891, 0.5251641273498535, 0.3019503057003021, 0.1344427466392517, 0.372732549905777, 0.1574205905199051, -0.19413334131240845, -0.12153958529233932, 0.012079324573278427, -0.03149499371647835, -0.19553077220916748, 0.10123629868030548, -0.23754405975341797, -0.05939244478940964, -0.4787735641002655, -0.18212758004665375, -0.7445865869522095, 0.01205740962177515, 0.4457136392593384, -0.2951313257217407, 0.12176927924156189, -0.25558385252952576, 0.08480875939130783, -0.16297608613967896, 0.2783348858356476, 0.4391406178474426, 0.2204277515411377, -0.06074660271406174, -0.07936718314886093, -0.5453101396560669, 0.09166659414768219, -0.10293786972761154, 0.2013355791568756, -0.2300073206424713, 0.13448049128055573, 0.1855953186750412, 0.10588295757770538, 0.08453191816806793, -0.015599322505295277, -0.2895369231700897, 0.1473759412765503, -0.15301689505577087, 0.060442034155130386, 0.1155008003115654, 0.4367617666721344, -0.045775339007377625, -0.1615932285785675, -0.03116292878985405, 0.07095760107040405, 0.03244388476014137, -0.05763839930295944, -0.10009486973285675, -0.2733290195465088, -0.22939804196357727, 0.28405141830444336, 0.10853271186351776, 0.5500639081001282, -0.1439037024974823, -0.056182604283094406, -0.41763970255851746, -0.13136713206768036, 0.008235176093876362, 0.02966068498790264, 0.17820999026298523, 0.25972065329551697, -0.1403370201587677, 0.26827293634414673, -0.04551563039422035, -0.2081945240497589, -0.11686132103204727, 0.17635324597358704, -0.31872546672821045, -0.039725709706544876, -0.10877525061368942, 0.14643613994121552, 0.06855980306863785, 0.09353430569171906, 0.12445411086082458, -0.2427157312631607, -0.30762314796447754, -0.1533099114894867, 0.5325170159339905, -0.24896295368671417, -0.40534523129463196, 0.07484705001115799, 0.4408690929412842, -0.018105311319231987, 0.1790771782398224, -0.5474327206611633, 0.30000540614128113, 0.3179764151573181, 0.1242564246058464, 0.02369648590683937, 0.12113232165575027, -0.05147770792245865, -0.030004000291228294, -0.017614776268601418, -0.07394389063119888, 0.11506614089012146, -0.1863275021314621, 0.22791391611099243, -0.22542540729045868 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Also there are huge those datasets. Think downloading MuST-C v1.2 amounts to ~ 1000GB... because there are 14 possible configs each around 60-70GB. I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in `datasets` no? cc @lhoestq
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
64
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Also there are huge those datasets. Think downloading MuST-C v1.2 amounts to ~ 1000GB... because there are 14 possible configs each around 60-70GB. I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in `datasets` no? cc @lhoestq
[ -0.39452776312828064, 0.2756187915802002, -0.0875777006149292, 0.006216227542608976, -0.06524194031953812, 0.02863576076924801, -0.18247227370738983, 0.2685895562171936, -0.25951260328292847, 0.32267117500305176, -0.2936771810054779, -0.295771986246109, -0.1945604830980301, 0.18701939284801483, 0.2089390605688095, 0.09105189889669418, 0.030066607519984245, 0.2597116529941559, -0.48891156911849976, -0.1047806441783905, -0.024491049349308014, 0.14151622354984283, -0.1815803349018097, -0.1668795645236969, -0.2045278698205948, -0.013639766722917557, -0.3177773356437683, -0.2916285991668701, -0.31662192940711975, -0.33895576000213623, 0.2591308355331421, 0.4024864435195923, 0.2682633697986603, 0.2643741965293884, -0.00011650468513835222, -0.18141520023345947, 0.1977117508649826, -0.28725215792655945, -0.4984127879142761, 0.014720774255692959, -0.2707018554210663, -0.39959967136383057, -0.427979439496994, 0.04961482435464859, 0.013106238096952438, -0.2586950659751892, 0.2993297278881073, 0.13137036561965942, 0.15402109920978546, 0.6043413281440735, 0.11893857270479202, 0.12279930710792542, 0.19797757267951965, -0.2026139795780182, 0.3769969344139099, 0.03626440092921257, -0.08841527253389359, 0.24862298369407654, 0.211314395070076, 0.09406068921089172, 0.33033961057662964, 0.3243899345397949, 0.2032756358385086, -0.16837181150913239, 0.04053603112697601, -0.3225005269050598, -0.2506559193134308, -0.5101647973060608, -0.013899171724915504, 0.4631095230579376, 0.6668587327003479, -0.31012263894081116, -0.13223007321357727, -0.17011305689811707, 0.24393846094608307, -0.1759990006685257, 0.012360169552266598, 0.0486721508204937, -0.2894197404384613, 0.21032249927520752, 0.005816343240439892, -0.3425409495830536, -0.23238301277160645, 0.39280179142951965, -0.1653013378381729, 0.09851567447185516, -0.13631659746170044, -0.04380945861339569, 0.22208495438098907, -0.2304326444864273, -0.2993955910205841, -0.04861060529947281, -0.010330279357731342, 0.08449877053499222, -0.23372769355773926, -0.4959620237350464, 0.16984282433986664, -0.03157864511013031, 0.17684544622898102, -0.45618951320648193, -0.1986825168132782, -0.21898162364959717, -0.27753859758377075, 0.002994154579937458, 0.11458184570074081, 0.3686314523220062, 0.07290031015872955, 0.09450750797986984, 0.1670214682817459, -0.30231162905693054, 0.10476040095090866, 0.08556932210922241, -0.14266221225261688, 0.13739676773548126, -0.4395263195037842, 0.158925861120224, -0.14223764836788177, -0.0756254568696022, -0.3051210641860962, 0.18056605756282806, -0.036261335015296936, 0.15406672656536102, -0.04332827031612396, 0.15926697850227356, 0.06386587768793106, 0.33216550946235657, 0.008635872974991798, 0.2712828814983368, 0.07370754331350327, -0.23598772287368774, -0.015637878328561783, 0.07431656122207642, -0.1880125254392624, 0.29726070165634155, 0.37246453762054443, 0.16952519118785858, 0.23060500621795654, -0.12340516597032547, 0.2562732696533203, 0.2554148733615875, -0.15759246051311493, -0.07712195813655853, 0.08425213396549225, 0.20031091570854187, -0.007614508271217346, 0.07686704397201538, -0.3242165744304657, 0.038529157638549805, -0.35305216908454895, 0.11655683070421219, 0.14611466228961945, -0.1681930422782898, -0.004242471419274807, 0.12086038291454315, -0.1454235017299652, -0.184689462184906, -0.31415170431137085, 0.667088508605957, -0.1658892035484314, -0.18843935430049896, -0.03262005001306534, -0.06200188398361206, -0.3356952667236328, 0.09286967664957047, -0.20540104806423187, 0.3628072738647461, -0.45991232991218567, -0.03129170462489128, 0.05167398229241371, -0.01947302743792534, -0.01658272184431553, 0.287041574716568, -0.165841743350029, 0.22810137271881104, -0.11188112944364548, 0.1431235820055008, 0.11213503032922745, -0.35748156905174255, -0.4023279845714569, 0.22973231971263885, -0.025099771097302437, -0.05282360687851906, 0.3132537603378296, -0.015469636768102646, 0.6000567078590393, -0.40326613187789917, -0.15610115230083466, 0.30505427718162537, 0.0663902759552002, -0.06498787552118301, -0.21709851920604706, -0.5506219267845154, 0.07572241127490997, 0.0820106565952301, 0.25629860162734985, 0.0670405700802803, 0.13276968896389008, 0.44509875774383545, 0.4237915575504303, -0.20130060613155365, 0.18303142488002777, 0.18107929825782776, 0.10052812099456787, -0.07628966122865677, -0.0904814600944519, -0.36035865545272827, -0.22457453608512878, 0.07524201273918152, 0.16994579136371613, 0.2961946427822113, 0.2997467517852783, -0.3767058551311493, 0.056624241173267365, -0.2456876039505005, 0.0667724609375, -0.015130476094782352, 0.09871279448270798, 0.21765895187854767, 0.273474782705307, -0.15411114692687988, -0.13042818009853363, 0.38238126039505005, -0.4641741216182709, -0.23128803074359894, 0.06439419835805893, 0.14788547158241272, 0.06510566920042038, -0.10284953564405441, 0.16760317981243134, 0.07030419260263443, 0.11732497066259384, 0.0539960041642189, 0.08473504334688187, 0.13485924899578094, -0.15689702332019806, 0.11024802178144455, -0.07234431803226471, 0.09681344032287598, 0.33856359124183655, -0.44926998019218445, 0.27064579725265503, 0.36655595898628235, 0.13743992149829865, -0.09891073405742645, -0.23627477884292603, 0.028565946966409683, 0.2820815443992615, 0.12193720787763596, 0.28269511461257935, -0.1613173931837082, 0.23316890001296997, 0.14160852134227753, -0.18273037672042847, -0.3336014151573181, 0.10056094825267792, 0.33411869406700134, -0.2534903585910797, 0.13249415159225464, -0.2808021903038025, -0.04484310746192932, 0.5708279609680176, -0.08698371797800064, 0.32578980922698975, 0.40194112062454224, -0.027068696916103363, -0.21966873109340668, 0.16173943877220154, -0.1772952526807785, 0.39056679606437683, 0.4227864742279053, 0.4028216600418091, 0.08942099660634995, 0.08766055107116699, -0.14215829968452454, 0.1728161871433258, -0.04891274496912956, -0.2792549133300781, 0.10393865406513214, 0.036437153816223145, -0.06349410861730576, -0.3835659921169281, -0.11890815198421478, 0.06261532753705978, 0.17456448078155518, -0.18547476828098297, -0.44447851181030273, -0.1693069040775299, -0.1456025093793869, -0.07099815458059311, 0.08946536481380463, -0.006490520667284727, -0.050076067447662354, 0.2922295331954956, 0.13396447896957397, -0.13730987906455994, 0.1132407858967781, 0.02937457151710987, 0.4036887288093567, -0.3597383499145508, -0.09852008521556854, -0.010886321775615215, -0.17405486106872559, -0.34885022044181824, 0.10274915397167206, 0.15262103080749512, 0.035142093896865845, 0.034648917615413666, -0.22882966697216034, 0.14616866409778595, -0.17697785794734955, -0.4210933446884155, 0.2096334546804428, -0.1606569141149521, 0.03149791434407234, -0.1883484572172165, 0.18517911434173584, 0.01841856725513935, -0.23071351647377014, -0.33560270071029663, 0.08435910195112228, -0.1430414617061615, -0.07944751530885696, -0.47122737765312195, -0.08721821010112762, -0.04901989549398422, -0.3670860528945923, -0.4791993498802185, -0.40644845366477966, 0.41877755522727966, -0.13183310627937317, 0.11766701936721802, 0.19570143520832062, 0.1825718879699707, 0.039326298981904984, -0.24410869181156158, 0.17942330241203308, -0.17954692244529724, -0.20610398054122925, 0.3044109344482422, -0.25312137603759766, -0.16930612921714783, -0.16192692518234253, 0.12876227498054504, 0.07214339077472687, 0.1599908173084259, -0.47169846296310425, 0.27161288261413574, -0.3734464645385742, 0.3990856409072876, 0.0809297114610672, 0.19739621877670288, 0.3172205686569214, -0.23138761520385742, -0.0570685900747776, -0.03618282079696655, -0.14246612787246704, 0.03723356872797012, 0.40064406394958496, 0.1502836048603058, -0.107005275785923, 0.08745676279067993, 0.26456204056739807, 0.6685687899589539, 0.23415781557559967, 0.03707234561443329, 0.12523294985294342, 0.10931681096553802, 0.6374330520629883, -0.23021046817302704, -0.18133574724197388, 0.41564294695854187, 0.21946528553962708, 0.01606474444270134, 0.43947651982307434, 0.039806902408599854, -0.3308632969856262, -0.1140277236700058, -0.2987900674343109, -0.04394853860139847, -0.26368024945259094, 0.29184454679489136, -0.030159106478095055, 0.18688462674617767, 0.04416941478848457, -0.1829184889793396, -0.19492708146572113, -0.11149556934833527, 0.002825091825798154, 0.18893906474113464, 0.025973116979002953, 0.1535172015428543, -0.11687105149030685, -0.100487619638443, -0.24016736447811127, -0.08251715451478958, 0.09020818024873734, 0.3649492561817169, -0.344826340675354, 0.05591884255409241, -0.10135077685117722, 0.1461898684501648, 0.3217301666736603, -0.20756784081459045, -0.10450467467308044, 0.08681019395589828, 0.6164699792861938, -0.22225579619407654, 0.09912867844104767, -0.15850016474723816, -0.45020899176597595, 0.5935956239700317, 0.18604424595832825, -0.25083473324775696, -0.08680111169815063, 0.29343682527542114, 0.36853381991386414, 0.008427397347986698, -0.1660439670085907, 0.017076658084988594, -0.27665215730667114, -0.40735822916030884, 0.3156575858592987, 0.3849789798259735, -0.1538509726524353, 0.2192334234714508, -0.030027205124497414, 0.05181539058685303, -0.2847200334072113, 0.38869258761405945, -0.024537820369005203, -0.1007302924990654, 0.5650278329849243, 0.17475654184818268, -0.09819462895393372, -0.41756367683410645, 0.009269800037145615, 0.30482926964759827, -0.07425825297832489, -0.3260016143321991, 0.03517035022377968, -0.08172345906496048, 0.33399465680122375, 0.45968979597091675, -0.1333199292421341, -0.04588807001709938, -0.14162304997444153, 0.08587516099214554, -0.10065107047557831, 0.4539079964160919, 0.11331768333911896, -0.03405306488275528, -0.2912556827068329, -0.3026297688484192, 0.4794853925704956, 0.06599840521812439, -0.12661810219287872, 0.2027900069952011, 0.09903892874717712, -0.33261555433273315, 0.06564728170633316, -0.1355229616165161, 1.2328354120254517, 0.10606604814529419, 0.1131630465388298, 0.02187012881040573, -0.27888596057891846, 0.2806355953216553, -0.6616119742393494, -0.014123089611530304, 0.45496174693107605, 0.1489105522632599, -0.056107763200998306, 0.22307567298412323, 0.19392302632331848, 0.36260494589805603, -0.3357541263103485, 0.31826239824295044, 0.11215036362409592, 0.1734447181224823, 0.2129327654838562, 0.5456166863441467, -0.5706208348274231, -0.3597722053527832, -0.11818331480026245, 0.15149952471256256, 0.13576295971870422, 0.16877295076847076, 0.011525621637701988, -0.1516522914171219, 0.3683600127696991, -0.06218821555376053, -0.638695240020752, 0.10009888559579849, -0.34319978952407837, -0.11128532886505127, -0.5482457280158997, 0.06909261643886566, 0.32965967059135437, 0.2797996699810028, 0.24341286718845367, 0.3696209192276001, -0.34382864832878113, 0.2961903512477875, -0.04472102224826813, 0.02923143282532692, 0.12492378801107407, -0.17969122529029846, 0.1681111603975296, -0.31761500239372253, -0.1660720258951187, 0.19710832834243774, 0.1828441470861435, -0.00684703141450882, -0.3814730644226074, -0.19822406768798828, 0.17440947890281677, 0.22314974665641785, 0.16685344278812408, 0.6332226395606995, -0.026885736733675003, -0.18476484715938568, 0.09419164806604385, -0.05393534153699875, -0.29787176847457886, 0.2821994423866272, -0.4007057547569275, -0.23259137570858002, -0.33341872692108154, 0.29647204279899597, 0.21679863333702087, -0.03973766416311264, 0.2869245707988739, 0.08102258294820786, -0.2079160213470459, -0.37850525975227356, 0.007560300640761852, -0.2319057583808899, -0.4202311038970947, 0.04163246229290962, 0.025050340220332146, -0.11959271132946014, -0.3540143370628357, 0.4248914122581482, 0.2778799533843994, -0.12719683349132538, 0.10376964509487152, -0.007914671674370766, -0.32897546887397766, -0.12410203367471695, 0.11378828436136246, 0.23268266022205353, -0.020834563300013542, 0.2385648936033249, 0.037387531250715256, 0.0770760029554367, -0.3000096082687378, 0.043497078120708466, 0.10292040556669235, 0.16607937216758728, 0.10940290987491608, 0.12520860135555267, 0.2947101294994354, 0.022357651963829994, 0.021724842488765717, 0.12341412901878357, -0.06279648840427399, -0.06287951022386551, -0.1510150134563446, 0.1382300853729248, 0.19911496341228485, 0.251188188791275, -0.01078952569514513, -0.13299117982387543, -0.13904298841953278, 0.08400474488735199, 0.3748176395893097, 0.3341173529624939, -0.10511324554681778, 0.24555304646492004, -0.062152475118637085, -0.10954012721776962, 0.11723320186138153, 0.09818322211503983, 0.3158509433269501, 0.3510105013847351, 0.21240536868572235, 0.34871065616607666, 0.038874752819538116, -0.16963984072208405, -0.08793847262859344, 0.4134810268878937, -0.020312607288360596, -0.04974672198295593, -0.033848099410533905, 0.11996953934431076, 0.09418713301420212, 0.26269006729125977, -0.05829985439777374, 0.21624404191970825, 0.07376955449581146, -0.09635581821203232, 0.48458826541900635, 0.15905049443244934, -0.18363666534423828, 0.17445647716522217, -0.3760048747062683, -0.1898876577615738, 0.016881149262189865, 0.1298239380121231, 0.02048611268401146, -0.1960720270872116, 0.4394213855266571, -0.06818283349275589, -0.24962486326694489, 0.14918695390224457, 0.10736214369535446, 0.26143571734428406, 0.1854948103427887, -0.137529194355011, 0.17848637700080872, 0.07979777455329895, 0.23436014354228973, 0.22072763741016388, -0.3789801299571991, 0.2936016917228699, 0.12807774543762207, 0.12608522176742554, 0.19322434067726135, -0.34211233258247375, 0.13575725257396698, 0.23708964884281158, 0.019966086372733116, 0.11606334149837494, 0.0408363863825798, 0.04341541603207588, 0.002709716558456421, -0.09693128615617752, -0.3338383734226227, 0.05465201660990715, 0.06086521968245506, 0.00034727470483630896, -0.167405366897583, -0.2518032193183899, -0.08565004169940948, 0.1786956787109375, 0.015708018094301224, -0.5163853764533997, -0.03413359448313713, 0.24217438697814941, -0.16199681162834167, -0.34918898344039917, 0.09154418855905533, -0.23023608326911926, 0.14701931178569794, -0.3118011951446533, 0.4185453951358795, 0.0030816015787422657, -0.12274131923913956, 0.2632625997066498, 0.35525280237197876, 0.3930787742137909, 0.09284395724534988, 0.05198429897427559, 0.1928481161594391, -0.042066507041454315, -0.06527573615312576, -0.15564505755901337, 0.34562548995018005, 0.03668300807476044, 0.43787962198257446, 0.21637125313282013, 0.15741746127605438, -0.1573796272277832, -0.1653936207294464, 0.05710674449801445, -0.19000600278377533, -0.3627469539642334, 0.29120659828186035, 0.060647569596767426, 0.19025616347789764, -0.20299530029296875, 0.02833598107099533, -0.5914894342422485, -0.04466686770319939, 0.4822019636631012, -0.34176701307296753, 0.21640214323997498, -0.2335929274559021, 0.05364743992686272, -0.20620350539684296, 0.24281954765319824, 0.35256344079971313, -0.017420468851923943, -0.21161307394504547, -0.05695025995373726, -0.25938671827316284, -0.2869320511817932, -0.11897262930870056, 0.08252029865980148, -0.3457994759082794, 0.24470043182373047, 0.2578901946544647, 0.3945361077785492, -0.20881018042564392, 0.20642083883285522, -0.2922367453575134, 0.057698141783475876, -0.23141948878765106, 0.25135692954063416, 0.02881706692278385, 0.6024889349937439, 0.0707649439573288, -0.38216978311538696, -0.16068804264068604, 0.08457870781421661, -0.03253261744976044, -0.20922403037548065, -0.003353056963533163, 0.011918819509446621, -0.19064539670944214, 0.37468990683555603, -0.06062072888016701, 0.5547402501106262, -0.12992803752422333, -0.019128676503896713, -0.2614652216434479, 0.12844249606132507, -0.18601541221141815, -0.16695785522460938, -0.035150203853845596, 0.21196109056472778, -0.32943856716156006, 0.31775251030921936, -0.008202796801924706, -0.03436644747853279, 0.012650197371840477, 0.04957784339785576, 0.025830332189798355, -0.08174023032188416, -0.20753541588783264, 0.1316099762916565, 0.01349976472556591, 0.25410956144332886, -0.014394091442227364, -0.11893436312675476, -0.28979411721229553, -0.2972889542579651, 0.37014904618263245, -0.15486682951450348, -0.23180750012397766, -0.1498023271560669, 0.3886863887310028, 0.28761181235313416, -0.0012162575731053948, -0.5777562260627747, 0.2842469811439514, 0.3728407919406891, 0.1047305315732956, 0.07069481909275055, 0.28553307056427, -0.005319379735738039, -0.05315861478447914, -0.12513189017772675, 0.18587267398834229, 0.07846168428659439, -0.383340984582901, -0.08483818918466568, -0.4800370931625366 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
> Also cc @lhoestq - do you think we could mirror the dataset? Yes we can mirror it if the authors are fine with it. You can create a dataset repo on huggingface.co (possibly under the relevant org) and add the mirrored data files. > I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in datasets no? cc @lhoestq If there are different download links for each configuration we can make the dataset builder download only the files related to the requested configuration.
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
110
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). > Also cc @lhoestq - do you think we could mirror the dataset? Yes we can mirror it if the authors are fine with it. You can create a dataset repo on huggingface.co (possibly under the relevant org) and add the mirrored data files. > I think users mostly will only use one of the 14 configs so that they would only need, in theory, will have to download ~60GB which is ok. But I think this functionality doesn't exist yet in datasets no? cc @lhoestq If there are different download links for each configuration we can make the dataset builder download only the files related to the requested configuration.
[ -0.3701685965061188, 0.0756918266415596, -0.050021715462207794, 0.14280164241790771, -0.1143721267580986, -0.022535474970936775, 0.024504071101546288, 0.25288209319114685, -0.21712855994701385, 0.21631355583667755, -0.3634776771068573, -0.27138659358024597, -0.09528831392526627, 0.25483766198158264, 0.11782299727201462, -0.22566631436347961, 0.07152452319860458, 0.06289372593164444, -0.49344003200531006, -0.18065661191940308, -0.01679985597729683, 0.08003813773393631, -0.07713199406862259, -0.1608680933713913, -0.22869136929512024, 0.05143182724714279, -0.34973815083503723, -0.2192532867193222, -0.3488779366016388, -0.2112867832183838, 0.030379651114344597, 0.23466064035892487, 0.20907068252563477, 0.35337597131729126, -0.00010471884888829663, -0.0938931554555893, 0.21018198132514954, -0.22755277156829834, -0.4023520052433014, -0.14741814136505127, -0.16945530474185944, -0.2165045589208603, -0.4638257622718811, 0.043206531554460526, -0.2301795780658722, -0.19329248368740082, 0.10554390400648117, 0.09088978171348572, 0.35076600313186646, 0.39854636788368225, 0.20882953703403473, 0.16811969876289368, 0.13849523663520813, -0.1770460456609726, 0.12944306433200836, -0.027112992480397224, -0.06447203457355499, 0.19530320167541504, 0.2781892418861389, 0.24234114587306976, 0.02506783790886402, 0.4822727143764496, 0.05101275444030762, -0.11217720061540604, 0.06458292156457901, -0.30235037207603455, -0.12285861372947693, -0.4970501661300659, 0.058518022298812866, 0.4549773037433624, 0.7421861290931702, -0.23275180160999298, -0.2601964771747589, -0.3296443819999695, 0.24171003699302673, -0.06080527976155281, -0.04126257821917534, 0.1268949657678604, -0.2630248963832855, 0.30544736981391907, -0.0407554917037487, -0.3075765371322632, -0.18508072197437286, 0.3004443347454071, -0.02464369498193264, 0.23497578501701355, -0.15256786346435547, -0.04944556951522827, 0.09383451193571091, -0.30005404353141785, -0.3330557942390442, -0.13879744708538055, -0.019522815942764282, 0.18395443260669708, -0.13062067329883575, -0.3575485646724701, 0.12716853618621826, -0.06992460787296295, 0.2695178985595703, -0.2468394637107849, -0.18448325991630554, -0.16024234890937805, -0.10865320265293121, -0.01747434213757515, 0.19749534130096436, 0.4110052287578583, 0.05086032301187515, -0.0448157861828804, 0.049041736871004105, -0.21039403975009918, 0.08389788120985031, 0.08062949031591415, -0.05428696051239967, 0.20222245156764984, -0.4636359214782715, 0.03146316483616829, -0.06570181995630264, -0.15996628999710083, -0.1069280281662941, 0.0018303502583876252, 0.04562149569392204, 0.02219080552458763, 0.013931828550994396, 0.26296448707580566, -0.02542017214000225, 0.2773417532444, -0.08891186863183975, 0.33188867568969727, 0.007695698644965887, -0.27271634340286255, -0.05564194545149803, 0.03875432908535004, -0.2634614109992981, 0.2528854012489319, 0.24206162989139557, 0.2499380111694336, 0.23414818942546844, -0.018229736015200615, 0.2714519798755646, 0.07346206903457642, -0.1332448273897171, -0.021227434277534485, 0.12947724759578705, 0.017869416624307632, 0.026199549436569214, 0.11651221662759781, -0.28892552852630615, -0.1574307084083557, -0.30019477009773254, -0.007091710343956947, 0.07253909856081009, -0.16728977859020233, -0.15035675466060638, 0.2312587946653366, -0.27658870816230774, -0.2198784053325653, -0.37842875719070435, 0.7613034248352051, -0.15716524422168732, -0.0671311542391777, -0.025861645117402077, 0.1604853868484497, -0.49846193194389343, 0.0312188770622015, -0.018464962020516396, 0.5725065469741821, -0.2136990875005722, -0.23643316328525543, 0.1852809637784958, -0.040738657116889954, -0.0329282321035862, 0.3206642270088196, -0.15486012399196625, 0.23705008625984192, -0.06432294845581055, 0.3969774842262268, 0.0862112045288086, -0.33656710386276245, -0.33379244804382324, 0.2003617286682129, -0.1630748063325882, 0.012681589461863041, 0.2968084514141083, -0.10839854180812836, 0.6236358880996704, -0.3085468113422394, -0.06562197953462601, 0.44079920649528503, 0.04368897154927254, 0.07631552964448929, -0.21914304792881012, -0.4411574602127075, 0.17379742860794067, 0.2197508066892624, 0.09457764774560928, 0.007712704595178366, -0.054192543029785156, 0.3305041193962097, 0.28519803285598755, -0.27743059396743774, 0.3457452654838562, 0.18454867601394653, -0.03755518049001694, -0.03140972554683685, -0.028948895633220673, -0.249455526471138, -0.23960751295089722, 0.07019783556461334, 0.1038617491722107, 0.40979230403900146, 0.20495827496051788, -0.25755661725997925, -0.14352288842201233, -0.22723829746246338, -0.23293611407279968, -0.14366430044174194, 0.20241929590702057, 0.17300188541412354, 0.22261673212051392, -0.014086824841797352, -0.16226382553577423, 0.3276187479496002, -0.30896228551864624, -0.11294979602098465, -0.12025073170661926, 0.21346616744995117, 0.058117352426052094, -0.16024455428123474, 0.24803124368190765, 0.32615113258361816, 0.10551171004772186, 0.022945670410990715, 0.08194535970687866, 0.1655612736940384, -0.23605597019195557, 0.25173765420913696, 0.1058906689286232, 0.23298075795173645, 0.34964725375175476, -0.4438669979572296, 0.37182721495628357, 0.3226098120212555, 0.10470715910196304, -0.16497986018657684, -0.2093893438577652, 0.11102750152349472, 0.326998233795166, 0.11794322729110718, 0.14518986642360687, -0.06758616864681244, 0.28561151027679443, 0.03673011437058449, -0.28830671310424805, -0.173676997423172, 0.11106638610363007, 0.12113911658525467, 0.009759542532265186, 0.15804244577884674, -0.3687123954296112, 0.16987726092338562, 0.4562646150588989, -0.14241932332515717, 0.16896599531173706, 0.32466185092926025, -0.20693159103393555, -0.1832817792892456, 0.08713244646787643, -0.1043378934264183, 0.22615572810173035, 0.3713854253292084, 0.39327725768089294, 0.12422138452529907, 0.23005837202072144, -0.08347881585359573, 0.12328106164932251, -0.1006215289235115, -0.27780085802078247, 0.17179656028747559, -0.006829108111560345, -0.08285538852214813, -0.32441869378089905, 0.0117570161819458, -0.033958785235881805, 0.1024271622300148, -0.19194045662879944, -0.4238792955875397, -0.03898093104362488, -0.42754966020584106, -0.34291985630989075, 0.068720243871212, -0.21920651197433472, 0.08120538294315338, 0.37720105051994324, 0.01714743673801422, -0.20119896531105042, 0.19204214215278625, 0.24464207887649536, 0.2857390344142914, -0.37916889786720276, -0.06796813011169434, -0.029263557866215706, -0.2193155139684677, -0.1448601484298706, 0.15910539031028748, 0.28932127356529236, 0.13323242962360382, 0.26288485527038574, -0.2597987651824951, 0.054517459124326706, -0.28783634305000305, -0.32965436577796936, 0.25913944840431213, -0.18167336285114288, 0.03424565866589546, -0.2146521806716919, 0.12871943414211273, -0.009862399660050869, -0.33604905009269714, -0.13462941348552704, 0.13601580262184143, -0.0662718266248703, -0.14350205659866333, -0.369438111782074, -0.19058114290237427, 0.01581674814224243, -0.4421800673007965, -0.5470239520072937, -0.43638598918914795, 0.4418894648551941, -0.23288878798484802, -0.01174976583570242, 0.0389079786837101, 0.14858397841453552, 0.08612700551748276, -0.2614704668521881, 0.19995367527008057, -0.27807217836380005, -0.2521604895591736, 0.19674783945083618, -0.2384425699710846, -0.32392773032188416, -0.2167908400297165, 0.14822368323802948, 0.032987624406814575, -0.058827463537454605, -0.3675879240036011, 0.06564068794250488, -0.21718673408031464, 0.3849048614501953, 0.16570867598056793, 0.3021330237388611, 0.2084798961877823, -0.05489203706383705, -0.09974562376737595, -0.04849424213171005, -0.1371169537305832, 0.09446094185113907, 0.29403772950172424, 0.12074049562215805, -0.03736318275332451, -0.013512451201677322, 0.07063997536897659, 0.7331627607345581, 0.4433308243751526, 0.035932090133428574, 0.13783210515975952, 0.06682682037353516, 0.442556768655777, -0.2520739436149597, -0.2575770318508148, 0.48648419976234436, 0.11102917790412903, 0.048016104847192764, 0.5023182034492493, 0.14461632072925568, -0.3531341552734375, -0.162128284573555, -0.382790207862854, -0.16127803921699524, -0.3055438995361328, 0.31229835748672485, 0.14870354533195496, 0.1491454690694809, 0.0018647747347131371, -0.2088152915239334, -0.17991214990615845, -0.09951750189065933, 0.14110992848873138, 0.1865566521883011, -0.06725362688302994, 0.11552504450082779, -0.20713041722774506, -0.06096913665533066, -0.4196382462978363, -0.11906413733959198, 0.15407532453536987, 0.1639535129070282, -0.3308209180831909, 0.06458641588687897, -0.03119712322950363, 0.18475477397441864, 0.33909791707992554, -0.19801336526870728, -0.04496318846940994, -0.033977359533309937, 0.3296676278114319, -0.0582754909992218, 0.22819660604000092, -0.13638761639595032, -0.3484119772911072, 0.5243244767189026, 0.3274693191051483, -0.43394702672958374, -0.08513887226581573, 0.18360470235347748, 0.4520295262336731, -0.04595489799976349, -0.20493273437023163, 0.16892938315868378, -0.30005770921707153, -0.4342637062072754, 0.203282430768013, 0.40885820984840393, -0.11144692450761795, 0.19113203883171082, 0.07830765843391418, 0.2157871425151825, -0.050450343638658524, 0.3658585846424103, 0.11753914505243301, -0.0030348291620612144, 0.4130159914493561, 0.2029380202293396, 0.08965746313333511, -0.06909840553998947, -0.08989372104406357, 0.3772088289260864, -0.023602787405252457, -0.30432313680648804, -0.12289004027843475, -0.2131723314523697, 0.20437383651733398, 0.3947954773902893, 0.09382481873035431, -0.04376828297972679, -0.007769664283841848, 0.12363417446613312, -0.21659614145755768, 0.1542898565530777, 0.1270652413368225, 0.22243709862232208, -0.3160654902458191, -0.3919171988964081, 0.5125018954277039, 0.045015670359134674, -0.0917447954416275, 0.05867135524749756, 0.27839168906211853, -0.22305060923099518, 0.19368505477905273, -0.21504025161266327, 1.2153544425964355, 0.1881241798400879, 0.11481770128011703, 0.20177923142910004, -0.246956005692482, 0.20230898261070251, -0.3942831754684448, -0.18970516324043274, 0.27210503816604614, 0.24573352932929993, 0.0009764353162609041, 0.2117398977279663, -0.08133112639188766, 0.2784779965877533, -0.49628424644470215, 0.27118948101997375, 0.11139056831598282, 0.04556901007890701, 0.08838508278131485, 0.5809130072593689, -0.42321571707725525, -0.4742908179759979, -0.3706199526786804, 0.23871350288391113, 0.09024965018033981, 0.18753108382225037, 0.11564856767654419, -0.23398922383785248, 0.16497644782066345, -0.04283019155263901, -0.6325398087501526, 0.10840325802564621, -0.2850009500980377, -0.2105817198753357, -0.387123167514801, -0.009103973396122456, 0.33682286739349365, 0.27095991373062134, 0.2840486466884613, 0.019789913669228554, -0.3268596827983856, 0.22026364505290985, -0.08454415202140808, 0.04964990168809891, 0.09463850408792496, -0.09912250190973282, 0.4290616810321808, -0.33329296112060547, -0.2859705686569214, 0.06804709136486053, 0.16077207028865814, 0.14626045525074005, -0.41292187571525574, -0.27942466735839844, 0.07100865244865417, -0.028715837746858597, 0.13410069048404694, 0.5576694011688232, 0.020814191550016403, -0.12886452674865723, 0.16562819480895996, -0.006819427944719791, -0.44916728138923645, 0.24233375489711761, -0.13952070474624634, -0.22030821442604065, -0.1989898383617401, 0.2189781367778778, 0.2148149013519287, -0.058596014976501465, 0.3552802503108978, 0.22563618421554565, -0.17963185906410217, -0.30440443754196167, -0.06848625093698502, 0.07818293571472168, -0.5221436619758606, 0.03592092543840408, 0.07176343351602554, -0.1466502547264099, -0.33785197138786316, 0.2661680281162262, 0.24907340109348297, -0.102981798350811, 0.0247283186763525, 0.00022289050684776157, -0.2718353569507599, 0.02648043818771839, 0.16963177919387817, 0.1759611964225769, -0.12324191629886627, 0.21955981850624084, 0.17063991725444794, -0.07800755649805069, -0.4171721339225769, 0.032723888754844666, -0.023667003959417343, 0.19874849915504456, 0.38780614733695984, -0.031005343422293663, 0.15623515844345093, 0.03505807742476463, 0.1031295582652092, -0.09030107408761978, -0.22461746633052826, -0.2040344923734665, -0.20997098088264465, 0.09569849073886871, 0.11285620927810669, 0.12286832928657532, 0.03270947188138962, -0.11714370548725128, -0.1364215612411499, 0.059191036969423294, 0.35215580463409424, 0.3154357671737671, -0.07667052745819092, 0.2034246027469635, 0.038551557809114456, -0.08210787922143936, 0.06481856852769852, 0.19831722974777222, 0.34283435344696045, 0.3074667453765869, 0.10404347628355026, 0.22096705436706543, 0.007188304793089628, -0.11541325598955154, 0.07406170666217804, 0.3046555817127228, 0.185720294713974, 0.0020024548284709454, 0.07260812819004059, 0.1045008972287178, 0.20164282619953156, 0.29571646451950073, 0.17133550345897675, 0.17346200346946716, -0.050045739859342575, -0.07488841563463211, 0.42092618346214294, 0.25396549701690674, -0.14799080789089203, 0.17241843044757843, -0.012594383209943771, -0.2478974610567093, 0.1724129319190979, 0.14829325675964355, 0.10703127831220627, -0.041175663471221924, 0.2748090624809265, -0.13275264203548431, -0.11535944044589996, 0.11353051662445068, 0.06601479649543762, 0.24150486290454865, 0.12964411079883575, -0.07226724177598953, 0.019470300525426865, 0.1619669795036316, 0.17290113866329193, 0.025602467358112335, -0.2666928768157959, 0.3512333035469055, -0.009679868817329407, 0.23217153549194336, 0.20023766160011292, -0.13443322479724884, 0.11862635612487793, 0.175696462392807, 0.13157705962657928, 0.2086503803730011, -0.04271312430500984, 0.30435633659362793, 0.040630586445331573, -0.27040085196495056, -0.11325725167989731, 0.3184627294540405, 0.09088609367609024, -0.09681732207536697, -0.1420932114124298, -0.2933769226074219, -0.30843672156333923, 0.11664502322673798, -0.06996295601129532, -0.42487138509750366, -0.0010499476920813322, 0.18266171216964722, -0.07671604305505753, -0.19787809252738953, -0.052708566188812256, -0.17913159728050232, 0.15753678977489471, -0.27767691016197205, 0.36287716031074524, 0.16349101066589355, -0.1249055415391922, 0.30192214250564575, 0.5595834255218506, 0.4070013165473938, -0.01300791371613741, -0.05830603837966919, 0.3310627341270447, 0.033127933740615845, -0.0445074588060379, -0.1409437656402588, 0.2963186204433441, 0.017304299399256706, 0.061604831367731094, 0.29341810941696167, 0.19772721827030182, -0.22780930995941162, -0.23081174492835999, -0.02804667316377163, -0.20649908483028412, -0.21125918626785278, 0.08717767149209976, -0.07416030019521713, 0.13216190040111542, -0.4074137508869171, -0.1699424535036087, -0.6608304977416992, 0.15932998061180115, 0.473075270652771, -0.26150915026664734, 0.1429409384727478, -0.1474597007036209, 0.10281497240066528, -0.12276190519332886, 0.35996538400650024, 0.34479448199272156, 0.029529035091400146, -0.10411152988672256, -0.1327616274356842, -0.42923957109451294, -0.2139892429113388, 0.03773283585906029, 0.089361771941185, -0.2855096459388733, 0.15093488991260529, 0.28794264793395996, 0.3707044720649719, -0.1318272054195404, 0.007549317553639412, -0.40608251094818115, 0.09434729814529419, -0.23347367346286774, 0.11232147365808487, -0.04999905452132225, 0.6286004781723022, 0.18071584403514862, -0.13378497958183289, -0.17895318567752838, 0.18589304387569427, 0.029987391084432602, -0.043067652732133865, 0.10705271363258362, -0.20274031162261963, -0.40294116735458374, 0.09683234989643097, 0.008099912665784359, 0.4688543975353241, -0.22519683837890625, -0.0255570225417614, -0.18936364352703094, -0.03418911620974541, -0.3663252294063568, -0.026794858276844025, -0.02591095119714737, 0.2615020275115967, -0.27571162581443787, 0.2454531490802765, -0.07357466220855713, -0.15641038119792938, 0.07538370788097382, -0.016963021829724312, -0.21759885549545288, 0.04149914160370827, -0.11020083725452423, 0.08605080097913742, -0.022421488538384438, 0.3933382034301758, -0.10968918353319168, -0.09776877611875534, -0.2531045079231262, -0.24900144338607788, 0.48571088910102844, -0.14619655907154083, -0.22771674394607544, -0.05568947270512581, 0.19052211940288544, 0.1770891696214676, -0.04303605854511261, -0.7272624373435974, 0.3224767744541168, 0.263212114572525, 0.10821343958377838, 0.07521557807922363, 0.24620208144187927, 0.029300909489393234, -0.08449568599462509, -0.1843973696231842, 0.06426500529050827, 0.11963547766208649, -0.2461557388305664, 0.13798731565475464, -0.34592100977897644 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
I have written to the dataset authors, highlighting this issue. Waiting for their response. Update on 25th Feb: The authors have replied back, they are updating the download link and will revert back shortly! ``` first of all thanks a lot for being interested in MuST-C and for building the data-loader. Before answering your request, I'd like to clarify that the creation, maintenance, and expansion of MuST-c are not supported by any funded project, so this means that we need to find economic support for all these activities. This also includes permanently moving all the data to AWS or GCP. We are working at this with the goal of facilitating the use of MuST-C, but this is not something that can happen today. We hope to have some news ASAP and you will be among the first to be informed. I hope you understand our situation. ```
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
147
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). I have written to the dataset authors, highlighting this issue. Waiting for their response. Update on 25th Feb: The authors have replied back, they are updating the download link and will revert back shortly! ``` first of all thanks a lot for being interested in MuST-C and for building the data-loader. Before answering your request, I'd like to clarify that the creation, maintenance, and expansion of MuST-c are not supported by any funded project, so this means that we need to find economic support for all these activities. This also includes permanently moving all the data to AWS or GCP. We are working at this with the goal of facilitating the use of MuST-C, but this is not something that can happen today. We hope to have some news ASAP and you will be among the first to be informed. I hope you understand our situation. ```
[ -0.1994689702987671, 0.2436523586511612, -0.0974724143743515, -0.07846856117248535, -0.010633828118443489, -0.1451655924320221, 0.05247565731406212, 0.0750114694237709, -0.1210067868232727, 0.30050310492515564, -0.16881266236305237, -0.12146369367837906, -0.09290558844804764, 0.10149303823709488, 0.04924006387591362, 0.052046578377485275, 0.015937000513076782, 0.14174579083919525, -0.4235427975654602, -0.2137574702501297, 0.06769125908613205, 0.16524530947208405, -0.19717071950435638, -0.11855998635292053, -0.2417689561843872, -0.005175365600734949, -0.19879727065563202, -0.16273920238018036, -0.2773725092411041, -0.1755138486623764, 0.3096412718296051, 0.18611092865467072, -0.049367230385541916, 0.413804292678833, -0.00010417114390293136, -0.08866779506206512, 0.2680438458919525, -0.26990559697151184, -0.5759392976760864, -0.18693317472934723, -0.26990073919296265, -0.3016951084136963, -0.3962216377258301, 0.0005747125251218677, -0.15655866265296936, -0.25017601251602173, 0.19012027978897095, 0.08452128618955612, 0.19829608500003815, 0.5663025379180908, 0.2318573296070099, 0.12942825257778168, 0.15951527655124664, -0.281353235244751, 0.21314498782157898, 0.1161138266324997, -0.12013230472803116, 0.33041298389434814, 0.32303348183631897, -0.053768906742334366, 0.05123413726687431, 0.33517730236053467, 0.14303916692733765, -0.1815522462129593, -0.03451260179281235, -0.40156516432762146, -0.11710171401500702, -0.27424678206443787, 0.020796185359358788, 0.2020585685968399, 0.625765860080719, -0.29486072063446045, -0.12838280200958252, -0.04890303686261177, 0.2616826891899109, -0.04910990223288536, 0.07344497740268707, -0.021956073120236397, -0.15685208141803741, 0.2644259035587311, 0.2554607093334198, -0.14691416919231415, -0.30022162199020386, 0.34917938709259033, -0.10341934114694595, 0.2759418189525604, -0.1623293161392212, -0.09582944214344025, 0.06700686365365982, -0.1347404271364212, -0.19822512567043304, 0.04341147467494011, 0.07948862761259079, 0.02686026319861412, -0.2630918025970459, -0.23747491836547852, 0.19051149487495422, -0.12999093532562256, -0.0011356999166309834, -0.2518419325351715, -0.03306588530540466, -0.13789114356040955, -0.24237127602100372, 0.16906702518463135, 0.027530640363693237, 0.39160043001174927, 0.04780540242791176, 0.025896072387695312, 0.04543904587626457, -0.11203334480524063, 0.016896044835448265, 0.08041972666978836, -0.07517439872026443, 0.12114011496305466, -0.43992310762405396, 0.2164539098739624, -0.1125936210155487, -0.08307499438524246, -0.3828398883342743, 0.22139306366443634, 0.012135018594563007, 0.2058010846376419, -0.08277708292007446, 0.2824523150920868, 0.11290495842695236, 0.3342090845108032, 0.0786055475473404, 0.31836992502212524, -0.052352070808410645, -0.23995158076286316, -0.08533647656440735, 0.1575845330953598, -0.30827397108078003, 0.19938863813877106, 0.31404444575309753, 0.19703054428100586, 0.2421519160270691, 0.038502391427755356, 0.33478468656539917, 0.10337906330823898, -0.250506192445755, 0.01732184924185276, 0.16288109123706818, 0.1811029016971588, 0.05413530766963959, 0.14322805404663086, -0.1262156069278717, -0.10760758817195892, -0.11034742742776871, -0.007238124031573534, 0.1177448183298111, -0.13877460360527039, -0.15974584221839905, 0.27938374876976013, -0.0914543941617012, -0.14640922844409943, -0.2564219534397125, 0.48645344376564026, -0.1666957288980484, -0.2322051227092743, -0.03342094644904137, -0.07397549599409103, -0.24278560280799866, 0.06479670107364655, -0.05705733969807625, 0.3744242489337921, -0.499931275844574, -0.044874079525470734, -0.060898493975400925, 0.03909064456820488, 0.21534627676010132, 0.2850784957408905, -0.19692790508270264, 0.22096771001815796, -0.15839090943336487, 0.1526082158088684, -0.07547156512737274, -0.3909390866756439, -0.4706939458847046, 0.2447112649679184, -0.13408777117729187, 0.022621145471930504, 0.20442146062850952, -0.1413867324590683, 0.49703043699264526, -0.31353726983070374, -0.0905563086271286, 0.22671303153038025, 0.13106942176818848, 0.020901605486869812, -0.3485870361328125, -0.2638445794582367, 0.22145648300647736, 0.09604741632938385, -0.0052672396413981915, 0.07032030820846558, 0.1484970897436142, 0.29473158717155457, 0.24755045771598816, -0.19667892158031464, 0.1935809999704361, 0.2508872449398041, 0.042926937341690063, -0.11770901083946228, 0.02682550624012947, -0.03628317266702652, -0.2171425074338913, 0.016081709414720535, 0.05337848141789436, 0.5594958066940308, 0.049568284302949905, -0.18252180516719818, -0.2243383526802063, -0.08057986199855804, -0.09102126955986023, -0.0941777229309082, 0.23625706136226654, 0.2504652738571167, -0.00047874412848614156, -0.0016525384271517396, 0.026191525161266327, 0.36736902594566345, -0.5647370219230652, -0.36079272627830505, -0.053970132023096085, 0.33573681116104126, -0.07399912178516388, -0.19659779965877533, 0.18269935250282288, 0.15745766460895538, 0.20130512118339539, 0.06313282996416092, -0.03899841755628586, 0.0641014501452446, -0.1801028847694397, 0.38664278388023376, -0.008245062083005905, 0.07210856676101685, 0.2638551890850067, -0.6111438870429993, 0.23644988238811493, 0.37631699442863464, 0.2113756239414215, -0.21726304292678833, -0.11777330935001373, 0.1943615972995758, 0.2179935723543167, 0.10463376343250275, 0.18121956288814545, -0.10039833933115005, 0.41806572675704956, 0.033207084983587265, -0.1543387770652771, -0.21846389770507812, 0.1855137199163437, 0.2518801987171173, -0.23449258506298065, 0.05025957524776459, -0.24993281066417694, 0.1158861368894577, 0.5303115844726562, -0.04323194921016693, 0.2990737855434418, 0.296060174703598, -0.02046412229537964, -0.22502835094928741, 0.14317135512828827, -0.17258232831954956, 0.3313247859477997, 0.3123624920845032, 0.18394926190376282, 0.018274761736392975, 0.11119433492422104, -0.2318570464849472, 0.2586859464645386, 0.06422201544046402, -0.18485431373119354, 0.2662469744682312, 0.16692708432674408, -0.09632615745067596, -0.40545034408569336, -0.09044282138347626, 0.10065319389104843, 0.1656440794467926, -0.20151102542877197, -0.2808838188648224, -0.09344161301851273, -0.004067539237439632, -0.03404450789093971, 0.012092200107872486, -0.11517205089330673, -0.17633868753910065, 0.3696868419647217, 0.14510174095630646, -0.27633267641067505, 0.21187831461429596, 0.17016850411891937, 0.27206888794898987, -0.3504617214202881, -0.1271257996559143, -0.27083832025527954, -0.38595104217529297, -0.33275875449180603, 0.1698758453130722, 0.15694083273410797, 0.2146906852722168, 0.13930003345012665, -0.10367428511381149, 0.12194845825433731, -0.26988863945007324, -0.3286660611629486, 0.19645068049430847, -0.2829556167125702, 0.19264182448387146, -0.15228532254695892, 0.10866173356771469, -0.06628906726837158, -0.3872900903224945, -0.19750268757343292, -0.039969202131032944, -0.1109139621257782, 0.02991250529885292, -0.44601210951805115, -0.04198702797293663, -0.1716654747724533, -0.4508727788925171, -0.5141519904136658, -0.487308144569397, 0.19614358246326447, -0.23058272898197174, 0.08912486582994461, 0.2859632968902588, 0.1802772581577301, -0.06894761323928833, 0.048441141843795776, 0.16054369509220123, -0.33845752477645874, -0.3026749789714813, 0.20916157960891724, -0.2544579803943634, -0.2924204170703888, -0.16418787837028503, 0.0963815376162529, 0.27458813786506653, -0.12033071368932724, -0.39254656434059143, 0.2880347669124603, -0.16406013071537018, 0.3043847382068634, 0.04737860709428787, 0.0017232759855687618, 0.35032328963279724, -0.1856275349855423, -0.17926159501075745, -0.21700257062911987, -0.17525719106197357, 0.042524684220552444, 0.39766108989715576, 0.20706316828727722, -0.05418141186237335, 0.0527159720659256, 0.108641117811203, 0.5772781372070312, 0.13537609577178955, -0.02179914340376854, 0.26152923703193665, 0.09094026684761047, 0.48085522651672363, -0.22865109145641327, -0.3318849205970764, 0.30997133255004883, 0.14300484955310822, -0.053746748715639114, 0.44222915172576904, -0.06037294119596481, -0.339667409658432, -0.07211238145828247, -0.24839849770069122, -0.2171340137720108, -0.2148474156856537, 0.2890892028808594, 0.016825007274746895, 0.2655296325683594, 0.07364343106746674, -0.1033732071518898, -0.20269523561000824, -0.1360349953174591, 0.1813148409128189, 0.11131012439727783, 0.0707893893122673, -0.017416995018720627, -0.07590717077255249, 0.023655936121940613, -0.2593647241592407, -0.0969189926981926, 0.11128384619951248, 0.3617006838321686, -0.48038628697395325, 0.03053591027855873, 0.034019410610198975, 0.09669531136751175, 0.3674919903278351, -0.2934877276420593, 0.04350503906607628, 0.3052763044834137, 0.6362547278404236, -0.12750767171382904, 0.11576442420482635, -0.2674591541290283, -0.3658488392829895, 0.6204196214675903, 0.16985119879245758, -0.26206174492836, -0.016906235367059708, 0.011989242397248745, 0.275143563747406, -0.015640228986740112, -0.226795956492424, 0.03383178636431694, -0.3036287724971771, -0.36584189534187317, 0.23292243480682373, 0.4387887716293335, 0.0009315632632933557, 0.08622454106807709, 0.08773873001337051, 0.12069854140281677, -0.12330593168735504, 0.4253782629966736, -0.02168220654129982, 0.05687621608376503, 0.46729180216789246, 0.12634611129760742, -0.09974637627601624, -0.2278052419424057, -0.01943994127213955, 0.4284523129463196, 0.04373158514499664, -0.252092570066452, 0.193125382065773, -0.15051592886447906, 0.3266104459762573, 0.3590148985385895, 0.0778011903166771, -0.08119790256023407, -0.10516408830881119, 0.03090568073093891, -0.11803518980741501, 0.2863196134567261, 0.16819216310977936, -0.006064857821911573, -0.2975885570049286, -0.1450769305229187, 0.29084423184394836, -0.1543271839618683, -0.14238877594470978, 0.05506841465830803, 0.12462371587753296, -0.19989775121212006, 0.2963705062866211, -0.16503304243087769, 1.219426155090332, 0.2236497402191162, 0.014954698272049427, 0.17214713990688324, -0.25627249479293823, 0.04603132605552673, -0.5465510487556458, -0.10119351744651794, 0.2851528227329254, 0.05964440107345581, 0.031302500516176224, 0.2506735026836395, 0.06187180057168007, 0.3207915127277374, -0.39777296781539917, 0.1666981279850006, 0.06249456852674484, 0.04782521352171898, 0.2526809275150299, 0.48724764585494995, -0.29545482993125916, -0.4569346010684967, -0.4111875593662262, 0.2819787263870239, 0.1554117500782013, 0.17006877064704895, 0.12637396156787872, -0.2567600607872009, 0.3119805157184601, -0.06565819680690765, -0.48681673407554626, 0.29260146617889404, -0.24129755795001984, -0.07545226812362671, -0.41495275497436523, -0.00197922857478261, 0.5006424784660339, 0.14658671617507935, 0.18779434263706207, 0.18892119824886322, -0.20836634933948517, 0.367381751537323, 0.0740620493888855, 0.0009779972024261951, 0.14979510009288788, -0.03171766549348831, 0.31776702404022217, -0.26019614934921265, -0.29626092314720154, 0.22223113477230072, 0.04584307223558426, -0.12835660576820374, -0.34814077615737915, -0.14228181540966034, 0.13433332741260529, 0.12770850956439972, 0.19805994629859924, 0.48068544268608093, -0.11199936270713806, -0.3046717345714569, 0.1981637328863144, -0.13009445369243622, -0.3827238082885742, 0.2528733015060425, -0.25196757912635803, -0.29970473051071167, -0.24459968507289886, 0.38139572739601135, 0.17682425677776337, 0.03698074445128441, 0.4371759295463562, 0.2896379232406616, -0.23611389100551605, -0.4695900082588196, -0.111073799431324, -0.06074600666761398, -0.6077984571456909, 0.08017519861459732, 0.1317833811044693, -0.17477832734584808, -0.12155365198850632, 0.4586317837238312, 0.12444661557674408, -0.09601927548646927, -0.04950176924467087, -0.19597190618515015, -0.3087393343448639, -0.18028675019741058, 0.07636644691228867, 0.1393098384141922, 0.0840599536895752, 0.27933821082115173, -0.007221325300633907, -0.030710158869624138, -0.4479879140853882, 0.08970614522695541, -0.15544676780700684, 0.1697264313697815, 0.02667430229485035, -0.18966513872146606, 0.4018852114677429, 0.06061817333102226, 0.19808454811573029, 0.10598821938037872, -0.037159863859415054, -0.23947526514530182, -0.14743125438690186, 0.0904163122177124, 0.19010235369205475, 0.31057485938072205, -0.12292756885290146, -0.1192806288599968, -0.1477828174829483, 0.12485644221305847, 0.390358030796051, 0.2951333224773407, -0.11268573999404907, 0.22861912846565247, -0.12750250101089478, 0.15388701856136322, 0.2071761190891266, -0.12383989989757538, 0.23679988086223602, 0.37394484877586365, 0.06922983378171921, 0.12963536381721497, -0.019329849630594254, -0.16988937556743622, -0.0997861996293068, 0.3650916814804077, -0.036329369992017746, 0.1720937192440033, 0.13706718385219574, 0.036597732454538345, 0.1279010772705078, 0.14740237593650818, 0.016157157719135284, -0.019127029925584793, -0.025065472349524498, -0.23371489346027374, 0.4090501666069031, 0.29811978340148926, -0.3287239670753479, 0.11986491829156876, -0.48336759209632874, -0.17938083410263062, 0.12374367564916611, -0.017830654978752136, 0.10649727284908295, -0.1830836832523346, 0.4820230007171631, -0.006135500036180019, -0.1658010482788086, -0.05348174646496773, -0.03714901581406593, 0.11064032465219498, 0.06599093973636627, -0.04929767921566963, 0.12646926939487457, -0.026414599269628525, 0.032879240810871124, 0.11688795685768127, -0.21441246569156647, 0.44239965081214905, 0.16501930356025696, 0.2033480703830719, 0.15491236746311188, -0.24640832841396332, 0.06353459507226944, 0.11941917985677719, 0.0035674162209033966, 0.2820298969745636, 0.06365428864955902, 0.16508062183856964, -0.07727458328008652, -0.1518947333097458, -0.25472235679626465, 0.05819450691342354, -0.019145509228110313, 0.03798800706863403, -0.2861805260181427, -0.19991253316402435, -0.17099417746067047, 0.048520006239414215, 0.005086218938231468, -0.20919108390808105, 0.00010824585478985682, 0.19147607684135437, -0.23313382267951965, -0.28153833746910095, -0.12377329915761948, -0.12306702136993408, 0.17282739281654358, -0.26227647066116333, 0.46657609939575195, 0.1278894543647766, 0.010810477659106255, 0.19993537664413452, 0.3350885212421417, 0.48665621876716614, 0.01781756617128849, -0.0781429260969162, 0.09810072183609009, -0.0484178252518177, -0.16086949408054352, -0.03458821401000023, 0.49153250455856323, 0.05959618464112282, 0.290347158908844, 0.23336824774742126, 0.26291805505752563, -0.2601224184036255, -0.22371020913124084, 0.2366568148136139, -0.09091626107692719, -0.13181988894939423, 0.2377183735370636, 0.03857744112610817, 0.16026756167411804, -0.4732818305492401, -0.05027882382273674, -0.6061912178993225, -0.09877359122037888, 0.3786171078681946, -0.22552958130836487, 0.25814521312713623, -0.26841607689857483, 0.14973360300064087, -0.249827578663826, 0.3377906382083893, 0.3482753038406372, -0.014710585586726665, -0.20867657661437988, -0.12431890517473221, -0.24749593436717987, -0.050140175968408585, 0.07806582003831863, 0.04361467435956001, -0.42006000876426697, 0.11174637824296951, 0.46514835953712463, 0.14752259850502014, -0.1727704405784607, 0.11166640371084213, -0.294639527797699, 0.07354139536619186, -0.31312814354896545, 0.32694315910339355, 0.10251612961292267, 0.4720628559589386, 0.06353379040956497, -0.23274068534374237, -0.3049160838127136, 0.2680440843105316, 0.09591193497180939, -0.12548600137233734, -0.10326141864061356, -0.10062092542648315, -0.08354751020669937, 0.34231555461883545, -0.035718608647584915, 0.46852973103523254, -0.2829301655292511, -0.009579559788107872, -0.23340502381324768, -0.11468418687582016, -0.04614634811878204, -0.035691987723112106, -0.00012583388888742775, 0.2495303750038147, -0.06529119610786438, 0.27965104579925537, -0.09385174512863159, -0.06763593852519989, 0.015478033572435379, 0.0632471889257431, -0.21293531358242035, 0.17209303379058838, -0.2163696140050888, 0.09715761244297028, -0.24149517714977264, 0.20025190711021423, 0.10393457114696503, -0.1538536250591278, -0.33137109875679016, -0.2756568193435669, 0.3822060525417328, -0.14177998900413513, -0.36278867721557617, 0.0031978776678442955, 0.3467353582382202, 0.14248773455619812, 0.05439632385969162, -0.5818465352058411, 0.20407718420028687, 0.29361656308174133, 0.06264845281839371, 0.09746593236923218, 0.1681452989578247, 0.018458576872944832, -0.013142310082912445, -0.11005153506994247, 0.03965400531888008, 0.1952485293149948, -0.2644457221031189, 0.057830195873975754, -0.3341229259967804 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Awesome, actually @lhoestq let's just ask the authors if we should host the dataset no? They could just use our links then as well for their website - what do you think? Is it fine to use our AWS dataset storage also as external links?
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
45
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Awesome, actually @lhoestq let's just ask the authors if we should host the dataset no? They could just use our links then as well for their website - what do you think? Is it fine to use our AWS dataset storage also as external links?
[ -0.17688915133476257, 0.2350068986415863, -0.08606839925050735, 0.20410384237766266, -0.23309814929962158, -0.043464578688144684, 0.37422633171081543, -0.04431717470288277, 0.06548865884542465, 0.10112393647432327, -0.44230785965919495, -0.2948477864265442, -0.053012434393167496, 0.19022299349308014, 0.18855483829975128, 0.06279908865690231, 0.19078290462493896, -0.22387103736400604, -0.1670018434524536, -0.19653823971748352, -0.1766093671321869, -0.07325785607099533, 0.07063470780849457, -0.05589520186185837, -0.10986960679292679, -0.03467000275850296, -0.2770482301712036, -0.2518583834171295, -0.13460120558738708, -0.10938461869955063, -0.08872533589601517, 0.07147427648305893, 0.21228164434432983, 0.374848872423172, -0.00011114581866422668, -0.03831741213798523, 0.19570893049240112, -0.05654184892773628, -0.3509964048862457, -0.16939711570739746, -0.5732914209365845, 0.06604492664337158, -0.5719043612480164, -0.10174470394849777, -0.12679116427898407, -0.22106102108955383, -0.024783454835414886, -0.026252733543515205, -0.021778246387839317, 0.4211544692516327, 0.17242367565631866, 0.0767071545124054, -0.07573481649160385, 0.07121724635362625, 0.5016151666641235, 0.19039779901504517, -0.12085414677858353, 0.04860822483897209, 0.15751749277114868, 0.24471017718315125, 0.03805436193943024, 0.4838583171367645, -0.0023883208632469177, -0.09432359784841537, 0.14079095423221588, -0.06521689146757126, -0.2729617953300476, -0.21059633791446686, -0.05848897993564606, 0.12729616463184357, 0.9238364100456238, -0.08048723638057709, -0.36187639832496643, -0.08671947568655014, 0.1270468682050705, 0.025630494579672813, -0.022561505436897278, 0.3293758034706116, 0.08803489804267883, 0.4814620316028595, 0.07300309836864471, -0.5656751394271851, -0.2542559504508972, 0.4220222234725952, -0.007556748576462269, 0.42864859104156494, -0.11967966705560684, 0.06453078240156174, -0.22508488595485687, -0.007290827576071024, 0.1006179079413414, -0.390122652053833, 0.08256896585226059, -0.1444491297006607, 0.0219033882021904, -0.26024317741394043, 0.1390443593263626, -0.0016060657799243927, -0.035211231559515, -0.11277853697538376, -0.028062520548701286, -0.24985001981258392, -0.18363462388515472, 0.17592932283878326, 0.11288860440254211, 0.19468598067760468, -0.05571046099066734, 0.12342040240764618, 0.3331669569015503, -0.1184011772274971, 0.10244505107402802, 0.05358993262052536, 0.05062142014503479, 0.34870827198028564, -0.6194531321525574, -0.15461328625679016, 0.053544286638498306, -0.1730266511440277, -0.2532062530517578, 0.27150657773017883, 0.07610873878002167, 0.08112170547246933, 0.09384995698928833, 0.2281724512577057, 0.11549067497253418, 0.09707546979188919, -0.09829084575176239, 0.4322942793369293, 0.2728833556175232, -0.2129601687192917, 0.06882531195878983, 0.0687561184167862, -0.1255340278148651, 0.285440593957901, -0.013451078906655312, 0.43730592727661133, 0.043211981654167175, 0.07233491539955139, 0.45368310809135437, -0.04964139685034752, 0.08444575220346451, -0.07907602190971375, 0.14106233417987823, 0.1844746321439743, 0.11133337020874023, 0.20039421319961548, -0.2696186304092407, -0.08290641009807587, -0.09824170917272568, 0.13924820721149445, 0.041065119206905365, -0.4283359944820404, -0.20542429387569427, 0.15301668643951416, -0.24116718769073486, -0.17724336683750153, -0.39374032616615295, 0.46771812438964844, -0.10898037254810333, -0.15801824629306793, 0.06681564450263977, 0.36488527059555054, -0.5243889093399048, 0.03202594444155693, -0.24612343311309814, 0.30351522564888, -0.26568636298179626, 0.1624673455953598, 0.15068505704402924, 0.3610345125198364, -0.0026279476005584, 0.363071084022522, -0.3029226064682007, 0.3589451313018799, -0.046887464821338654, 0.26672109961509705, 0.19629515707492828, -0.23161563277244568, -0.3109971582889557, 0.38332968950271606, -0.15814025700092316, -0.08030326664447784, 0.12024562805891037, -0.09302233904600143, 0.31541380286216736, -0.25493672490119934, 0.03801441937685013, 0.35980284214019775, 0.3089081645011902, 0.15845081210136414, -0.29771339893341064, -0.30352550745010376, 0.19377708435058594, 0.2918931841850281, -0.005383250769227743, 0.04014207422733307, 0.2056317925453186, 0.1810537874698639, 0.08135148137807846, -0.4483514130115509, 0.33149170875549316, 0.18314136564731598, 0.06472565233707428, -0.08495549857616425, -0.08951505273580551, 0.0210450179874897, -0.23346036672592163, -0.014324876479804516, 0.1769757717847824, 0.5444403886795044, 0.016345756128430367, -0.33883658051490784, -0.10664074867963791, -0.09031929820775986, -0.12110554426908493, -0.2375425547361374, 0.1293760985136032, 0.10122095793485641, -0.022610532119870186, 0.21129998564720154, -0.15140119194984436, 0.1217542439699173, -0.37334057688713074, -0.1286698430776596, -0.06280005723237991, 0.39039596915245056, -0.026916952803730965, 0.16042348742485046, 0.09971314668655396, 0.2631109058856964, 0.018151869997382164, -0.1116657555103302, 0.12293565273284912, 0.1779540628194809, -0.1991262435913086, 0.4674483835697174, 0.2875533401966095, 0.27187982201576233, 0.4537724256515503, -0.45680350065231323, 0.4307042062282562, 0.11179312318563461, 0.05570651590824127, -0.27083316445350647, -0.09530934691429138, 0.14117449522018433, 0.07126454263925552, 0.27983322739601135, -0.08128218352794647, -0.013991530053317547, 0.12279477715492249, 0.1529696136713028, -0.31945425271987915, -0.06755384057760239, 0.11929821223020554, 0.39071619510650635, -0.05007923021912575, 0.08405766636133194, -0.24869368970394135, 0.2649669051170349, 0.2224408984184265, -0.14015619456768036, 0.12981173396110535, 0.20511174201965332, -0.16181136667728424, -0.30604517459869385, 0.3169539272785187, 0.01088955719023943, 0.34270143508911133, 0.22596262395381927, 0.33968019485473633, -0.03801765665411949, 0.20256388187408447, -0.19476479291915894, 0.3998699188232422, 0.12127333134412766, -0.23179173469543457, 0.026117529720067978, 0.05983357131481171, -0.22109590470790863, -0.19626353681087494, -0.1436420977115631, 0.06851190328598022, -0.022015677765011787, -0.2928760051727295, -0.12601850926876068, 0.3531070351600647, -0.22138474881649017, -0.14543934166431427, -0.08895812183618546, -0.22368551790714264, -0.07370246201753616, 0.29395854473114014, 0.026152288541197777, -0.38821640610694885, 0.05274328589439392, 0.14345379173755646, 0.42673787474632263, -0.49904921650886536, -0.2249458283185959, -0.1499342918395996, -0.3044835925102234, -0.056817155331373215, 0.11554187536239624, 0.42163586616516113, 0.09270911663770676, 0.12397690862417221, 0.019919374957680702, 0.16071568429470062, -0.5759227275848389, -0.08785673975944519, 0.11583763360977173, -0.2258935123682022, 0.1047840490937233, -0.17583614587783813, 0.005704324692487717, -0.11092086136341095, -0.33678144216537476, -0.10697043687105179, 0.25747618079185486, 0.3168448805809021, -0.2773301303386688, -0.160043865442276, -0.14566312730312347, 0.02777077630162239, -0.32744014263153076, -0.4971727728843689, -0.25631099939346313, 0.21216478943824768, -0.16059404611587524, -0.036345548927783966, -0.18560920655727386, 0.12090902030467987, 0.02765795588493347, 0.26401039958000183, -0.12190227210521698, -0.35777121782302856, -0.4457058012485504, 0.2771979868412018, -0.279257208108902, -0.31867629289627075, -0.2165580838918686, 0.2202294021844864, 0.3044368326663971, 0.007286523003131151, -0.5050753951072693, 0.12217014282941818, 0.1136535108089447, 0.23362356424331665, 0.16581127047538757, 0.2572154700756073, -0.11630716174840927, -0.045631326735019684, -0.09722312539815903, -0.033504609018564224, -0.0529940240085125, -0.014532331377267838, 0.3511262834072113, 0.11419876664876938, 0.1847342550754547, -0.0652746707201004, 0.04659317433834076, 0.8114853501319885, 0.20521457493305206, 0.09424521028995514, 0.20724007487297058, 0.12226403504610062, 0.25841158628463745, -0.10968677699565887, -0.23267704248428345, 0.4507555663585663, -0.011075390502810478, -0.4531015455722809, 0.4092402160167694, 0.1936357021331787, -0.4243687093257904, -0.1811835914850235, -0.19274303317070007, -0.2558113932609558, -0.2215343713760376, 0.22017131745815277, -0.00041856744792312384, 0.2325727939605713, 0.25501081347465515, -0.34092438220977783, -0.15010032057762146, -0.22516264021396637, 0.17382502555847168, 0.10809005796909332, 0.15004655718803406, -0.03392234817147255, -0.15731817483901978, 0.007290552370250225, -0.42443516850471497, 0.12239101529121399, 0.10364416986703873, -0.05357338488101959, -0.15059268474578857, 0.04375731199979782, 0.23787690699100494, 0.04675694927573204, 0.2373415231704712, -0.6042848825454712, -0.23360848426818848, -0.10051229596138, 0.5441200733184814, -0.08723825961351395, 0.2938612103462219, -0.07094499468803406, -0.32174137234687805, 0.43243759870529175, 0.07963994890451431, -0.31607919931411743, 0.17356941103935242, -0.037849586457014084, 0.17862434685230255, 0.015404151752591133, -0.24830634891986847, 0.16220822930335999, -0.2626964747905731, -0.3507337272167206, 0.024576375260949135, 0.4427521228790283, -0.2547819912433624, 0.1167394369840622, 0.10652635246515274, 0.18454483151435852, 0.17309053242206573, 0.37461531162261963, 0.027827627956867218, -0.20921455323696136, 0.2684529721736908, -0.1993253529071808, -0.0012191727291792631, -0.030335107818245888, 0.11175449192523956, 0.5347272753715515, 0.12441796809434891, -0.09206275641918182, -0.06595124304294586, -0.31508195400238037, 0.24783280491828918, 0.47891268134117126, 0.15419833362102509, -0.019274985417723656, -0.1379908323287964, 0.018234452232718468, -0.2363635003566742, 0.11493919044733047, 0.04476505145430565, 0.1696808785200119, -0.16911500692367554, -0.31247034668922424, 0.4716697931289673, -0.11614245921373367, -0.27484408020973206, 0.13534963130950928, 0.4610559940338135, -0.3331757187843323, 0.3812471628189087, -0.0777207538485527, 1.2574033737182617, 0.20912668108940125, 0.30341556668281555, 0.16671912372112274, -0.21479026973247528, 0.36229804158210754, -0.8011130690574646, -0.3374134302139282, 0.24670149385929108, 0.4070863127708435, -0.1861030012369156, 0.05393264442682266, -0.1168687641620636, 0.258872926235199, -0.2602079510688782, 0.10859507322311401, 0.38845524191856384, 0.26796868443489075, 0.04731288179755211, 0.6849005222320557, -0.16148945689201355, -0.3734569847583771, -0.3993864953517914, 0.22342073917388916, -0.054996050894260406, 0.11945465952157974, -0.11274339258670807, -0.0717182531952858, 0.026760274544358253, -0.020831365138292313, -0.4345802366733551, 0.05076436698436737, -0.17326554656028748, 0.10412399470806122, -0.7388636469841003, -0.19871051609516144, 0.48515811562538147, 0.26175108551979065, 0.3026670813560486, -0.13196665048599243, -0.32295140624046326, 0.1003107950091362, -0.13608896732330322, 0.205632284283638, 0.07880190014839172, -0.27935081720352173, 0.24902090430259705, -0.19469070434570312, -0.16996198892593384, 0.303607314825058, 0.1826772540807724, -0.12577509880065918, -0.18696704506874084, -0.23140639066696167, -0.0634152814745903, -0.1014573872089386, 0.06453702598810196, 0.7086154818534851, -0.12422719597816467, -0.14234693348407745, 0.08981931209564209, -0.03551868721842766, -0.18234744668006897, 0.06302455067634583, -0.17242160439491272, -0.2583627998828888, -0.2958754897117615, 0.2627400755882263, 0.14361099898815155, -0.16577914357185364, 0.16065438091754913, 0.20662912726402283, -0.20302267372608185, -0.23323428630828857, 0.29716068506240845, -0.19689291715621948, -0.4040929079055786, -0.09789746254682541, 0.10394249856472015, 0.008909300900995731, -0.6479464769363403, 0.012278352864086628, 0.3014065623283386, 0.05656769499182701, 0.012474599294364452, -0.003278452903032303, -0.10576022416353226, 0.11535701155662537, 0.1963130533695221, 0.1957065910100937, -0.004136428236961365, 0.022176112979650497, -0.004018872510641813, -0.29365912079811096, -0.32576897740364075, 0.12165359407663345, 0.1322048455476761, 0.015142856165766716, 0.23047251999378204, -0.05592471361160278, 0.37303435802459717, -0.13030841946601868, 0.003781734500080347, -0.2780865728855133, -0.13216373324394226, -0.12665486335754395, -0.09024663269519806, 0.13399645686149597, 0.37596020102500916, -0.10652459412813187, -0.3196534812450409, -0.32336562871932983, -0.1000310480594635, 0.17223846912384033, 0.24965429306030273, 0.2512977719306946, -0.20866702497005463, 0.024166995659470558, -0.08988426625728607, -0.07304435223340988, -0.12854619324207306, 0.053213927894830704, 0.20117028057575226, 0.42495492100715637, -0.06613793224096298, 0.21517476439476013, 0.22741611301898956, -0.15336397290229797, -0.028384197503328323, 0.31250566244125366, 0.08121228963136673, 0.3080127239227295, 0.2752339243888855, 0.004459928255528212, 0.16440798342227936, 0.14269624650478363, 0.1786898970603943, 0.24650703370571136, -0.15804214775562286, -0.24832864105701447, 0.2400391697883606, 0.18790748715400696, -0.014929772354662418, 0.12488064169883728, -0.24573417007923126, -0.10615605115890503, 0.11785371601581573, 0.12354058027267456, 0.40392330288887024, 0.1374647617340088, -0.005647012498229742, -0.03770618513226509, -0.03369845077395439, -0.07295151054859161, -0.044083189219236374, 0.0375480130314827, -0.04809996858239174, 0.21222487092018127, -0.056209295988082886, 0.1301833689212799, 0.056459784507751465, 0.14029482007026672, -0.2529904842376709, 0.4280247986316681, 0.395854115486145, 0.06099386513233185, 0.2322165071964264, 0.18270227313041687, 0.03951433300971985, -0.10882257670164108, 0.09875187277793884, 0.11067688465118408, 0.19326280057430267, 0.10295671969652176, 0.04995966702699661, -0.08836192637681961, -0.16289593279361725, 0.22125054895877838, 0.15593765676021576, -0.054639339447021484, -0.32228928804397583, -0.22646263241767883, -0.20324762165546417, 0.03934387490153313, -0.2180347591638565, -0.306126207113266, -0.0036359350197017193, 0.18274709582328796, 0.018577273935079575, -0.1639651656150818, 0.2126779854297638, -0.13893797993659973, 0.10957318544387817, -0.17861361801624298, 0.22149494290351868, 0.17736992239952087, 0.05187700316309929, 0.14550447463989258, 0.505480170249939, 0.4030260741710663, -0.09547155350446701, -0.11775768548250198, 0.21304962038993835, -0.08502044528722763, -0.04152671620249748, -0.05015096813440323, 0.3698761761188507, -0.09476272761821747, -0.02041739784181118, 0.4580846130847931, 0.1208323985338211, -0.12284442037343979, 0.035898949950933456, -0.06578246504068375, -0.015514710918068886, -0.18482862412929535, 0.20888248085975647, -0.06472095847129822, -0.08886201679706573, -0.19721932709217072, -0.2323087453842163, -0.45678287744522095, 0.08731364458799362, 0.6285586357116699, -0.4415357708930969, 0.18775323033332825, -0.16885869204998016, 0.0637907013297081, -0.1417003571987152, 0.4888128340244293, 0.22919140756130219, 0.12238426506519318, -0.3486630618572235, -0.0772763341665268, -0.3244714140892029, -0.08449047058820724, 0.030825495719909668, 0.18851915001869202, -0.5234078764915466, 0.16617442667484283, 0.3957462012767792, 0.46610498428344727, -0.30109351873397827, 0.057813018560409546, -0.7391774654388428, 0.13252155482769012, -0.263207346200943, 0.2868497967720032, -0.24001578986644745, 0.7252260446548462, -0.09475362300872803, 0.09524451941251755, -0.08407928049564362, 0.28257688879966736, -0.06991691142320633, -0.2538464665412903, 0.09706968069076538, -0.1875055730342865, -0.2575329840183258, 0.3402140438556671, -0.002648133784532547, 0.27877309918403625, -0.18990452587604523, 0.0229584202170372, -0.22575870156288147, -0.2839411795139313, -0.05334201827645302, 0.11287877708673477, -0.15347367525100708, 0.22662167251110077, -0.2143361121416092, 0.01665622554719448, -0.031710751354694366, -0.2789264917373657, -0.03958158567547798, 0.23075179755687714, -0.12914171814918518, -0.06281965970993042, -0.2441747933626175, 0.11290134489536285, -0.09183111786842346, 0.3301851749420166, -0.025787528604269028, -0.08229333907365799, -0.2801321744918823, -0.260049045085907, 0.38126611709594727, -0.015017425641417503, -0.29196107387542725, 0.3405649662017822, 0.36713898181915283, 0.22141291201114655, -0.047507394105196, -0.7940043807029724, 0.10445662587881088, 0.33248499035835266, 0.10106844455003738, -0.04505607858300209, 0.07021716237068176, 0.16054895520210266, -0.024523595348000526, -0.25140297412872314, 0.018531234934926033, -0.11451815068721771, -0.26853683590888977, -0.10672400146722794, -0.3115553855895996 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Yes definitely. Shall we suggest them to create a dataset repository under their org on huggingface.co ? @julien-c The dataset is around 1TB
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
23
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Yes definitely. Shall we suggest them to create a dataset repository under their org on huggingface.co ? @julien-c The dataset is around 1TB
[ -0.2819744348526001, 0.13164949417114258, -0.11428937315940857, 0.1891256421804428, -0.07617266476154327, 0.02389547973871231, -0.015186993405222893, 0.1323355883359909, -0.2927861511707306, 0.1568833291530609, -0.288278728723526, -0.22735321521759033, -0.13568951189517975, 0.1771465688943863, 0.19771011173725128, -0.16475744545459747, 0.12651944160461426, -0.023116199299693108, -0.32716792821884155, -0.2998177111148834, -0.09859703481197357, 0.07615090906620026, -0.08869708329439163, -0.1920018494129181, -0.26979395747184753, -0.036812178790569305, -0.3112088739871979, -0.21777255833148956, -0.3672378361225128, -0.21104852855205536, 0.03926839306950569, 0.059467680752277374, 0.16564249992370605, 0.5584843754768372, -0.00010524588287808001, -0.12061119079589844, 0.19928428530693054, -0.23859918117523193, -0.2963809370994568, -0.1344757378101349, -0.20269660651683807, -0.23499000072479248, -0.6540790796279907, 0.033120401203632355, -0.25151756405830383, -0.14977571368217468, 0.02420766092836857, -0.005127147305756807, 0.18497471511363983, 0.5032080411911011, 0.22876396775245667, 0.11690168082714081, 0.291044145822525, -0.1472681313753128, 0.24384479224681854, 0.07538720965385437, -0.16098883748054504, 0.15516501665115356, 0.28919246792793274, 0.22601957619190216, 0.11283282935619354, 0.508825421333313, 0.049854982644319534, -0.2827511131763458, -0.003575472626835108, -0.305814266204834, -0.1964978128671646, -0.4243428111076355, 0.14942628145217896, 0.27483612298965454, 0.5471498966217041, -0.22781790792942047, -0.22908177971839905, -0.16973665356636047, 0.2611934244632721, -0.15680348873138428, -0.04991895705461502, 0.11228950321674347, -0.16897529363632202, 0.3771129846572876, 0.1019047200679779, -0.3955155611038208, -0.21127204596996307, 0.2854035794734955, 0.023280976340174675, 0.2817801833152771, -0.15768717229366302, -0.09900131076574326, 0.10042298585176468, -0.26466184854507446, -0.3853089213371277, -0.08338749408721924, -0.007706701289862394, 0.09231267869472504, -0.17226487398147583, -0.31426751613616943, 0.21359123289585114, -0.006790639832615852, 0.25829213857650757, -0.3227827847003937, -0.2262992113828659, -0.15160274505615234, -0.1931733340024948, -0.08005377650260925, 0.09862130880355835, 0.38441434502601624, -0.0672849640250206, -0.016043929383158684, 0.1091509610414505, -0.22921746969223022, 0.07161528617143631, 0.14436422288417816, -0.07460804283618927, 0.17867261171340942, -0.4144825339317322, 0.07346539944410324, 0.02918807603418827, -0.2194572240114212, -0.189615398645401, 0.12062649428844452, -0.03071892261505127, 0.05993111431598663, -0.011248704977333546, 0.32623958587646484, 0.052554041147232056, 0.26421186327934265, -0.10743672400712967, 0.3535126745700836, -0.04940728470683098, -0.22312235832214355, -0.09070905297994614, 0.12493942677974701, -0.18162642419338226, 0.15852589905261993, 0.22242775559425354, 0.25212815403938293, 0.08082453906536102, -0.030710088089108467, 0.25430506467819214, 0.11203514039516449, -0.21700941026210785, -0.04385875537991524, 0.22660981118679047, 0.034367937594652176, -0.006522388197481632, 0.057470791041851044, -0.2188866287469864, -0.11990389972925186, -0.20176158845424652, 0.05618894472718239, 0.07379819452762604, -0.13034862279891968, -0.24507930874824524, 0.2372363805770874, -0.14334355294704437, -0.23461197316646576, -0.36582717299461365, 0.6624652147293091, -0.09893876314163208, -0.06188239902257919, 0.0915611982345581, 0.2291865199804306, -0.4113326370716095, 0.04137479513883591, -0.07402299344539642, 0.3984494209289551, -0.13735008239746094, -0.13094134628772736, 0.11314321309328079, 0.03831798955798149, 0.013881782069802284, 0.2907523512840271, -0.03837382420897484, 0.193307563662529, -0.03245087340474129, 0.34800681471824646, 0.03418625891208649, -0.40460729598999023, -0.4445280134677887, 0.1492794156074524, -0.26170894503593445, -0.08497811108827591, 0.2305227816104889, -0.07539872080087662, 0.5631125569343567, -0.2706463932991028, -0.0062926518730819225, 0.2914619445800781, -0.024723950773477554, 0.09287401288747787, -0.2349776327610016, -0.4155747592449188, 0.2283688187599182, 0.1699579954147339, 0.08371471613645554, -0.04538775980472565, -0.039007410407066345, 0.3225705921649933, 0.1939517855644226, -0.26404640078544617, 0.2739545404911041, 0.2638484835624695, 0.11226540058851242, -0.11788223683834076, -0.010532368905842304, -0.22655336558818817, -0.1622181087732315, -0.04582013934850693, 0.16517379879951477, 0.5588307976722717, 0.03934217244386673, -0.2482076734304428, -0.10936573147773743, -0.17966265976428986, -0.19668060541152954, -0.1557607650756836, 0.2379560023546219, 0.2530168294906616, 0.19449898600578308, 0.1405167281627655, -0.14185456931591034, 0.2613060772418976, -0.31850719451904297, -0.18505574762821198, -0.13663868606090546, 0.23913490772247314, -0.006255661603063345, -0.21495971083641052, 0.24084129929542542, 0.49561476707458496, 0.08686857670545578, -0.07899288088083267, 0.07189606130123138, 0.055457573384046555, -0.3503279983997345, 0.17385399341583252, 0.12443913519382477, 0.2339416742324829, 0.32750022411346436, -0.5012208819389343, 0.2246919721364975, 0.2709731161594391, 0.10816576331853867, -0.1598503440618515, -0.11660397797822952, 0.15067122876644135, 0.29148751497268677, 0.08309660851955414, 0.056992609053850174, -0.08835810422897339, 0.33506885170936584, 0.09631703048944473, -0.1294330209493637, -0.0824156254529953, 0.11843603104352951, 0.19736944139003754, 0.008262818679213524, 0.1231067106127739, -0.30710944533348083, 0.17545931041240692, 0.5225211381912231, -0.1822333186864853, 0.308097243309021, 0.33165496587753296, -0.09873843193054199, -0.13552312552928925, 0.08561937510967255, -0.18747428059577942, 0.26950567960739136, 0.3026120066642761, 0.21792225539684296, -0.0037570088170468807, 0.32384222745895386, -0.07486515492200851, 0.12743540108203888, 0.016029398888349533, -0.24426911771297455, 0.1969403624534607, 0.1947350651025772, -0.10073806345462799, -0.3468719720840454, 0.04540174826979637, -0.038536544889211655, 0.23384998738765717, -0.0725075751543045, -0.3474932312965393, 0.13094399869441986, -0.2900651693344116, -0.26316913962364197, 0.0869782567024231, -0.2649090588092804, 0.07767347991466522, 0.32616573572158813, -0.022097012028098106, -0.07911506295204163, 0.20161865651607513, 0.24477969110012054, 0.34286653995513916, -0.401115357875824, -0.08043039590120316, -0.017581071704626083, -0.3277682960033417, -0.1439276784658432, 0.18106555938720703, 0.28568947315216064, 0.11810899525880814, 0.2969580590724945, -0.18189212679862976, 0.14762422442436218, -0.28223586082458496, -0.3307645916938782, 0.22424755990505219, -0.27913764119148254, 0.0409083366394043, -0.19014909863471985, 0.034461114555597305, -0.05750511214137077, -0.37698981165885925, -0.14642281830310822, 0.06300752609968185, -0.11375408619642258, -0.10054823011159897, -0.42175230383872986, -0.1302700936794281, 0.026523863896727562, -0.4483323395252228, -0.5188707709312439, -0.42685455083847046, 0.485784649848938, -0.25412872433662415, -0.06963174045085907, 0.004321156535297632, 0.022377174347639084, 0.19442212581634521, -0.09268321841955185, 0.18667355179786682, -0.2760032117366791, -0.2769824266433716, 0.16211770474910736, -0.20883166790008545, -0.3052792549133301, -0.21771429479122162, 0.04256875067949295, 0.08882269263267517, -0.11373627930879593, -0.4125669598579407, 0.10124038904905319, -0.15009744465351105, 0.3791903555393219, 0.1974518597126007, 0.15988829731941223, 0.2622486352920532, -0.1320287138223648, -0.11258725821971893, -0.10748196393251419, -0.20575609803199768, 0.02099768817424774, 0.3534576892852783, 0.2022939920425415, -0.00507606053724885, 0.10066263377666473, 0.07428094744682312, 0.6177757978439331, 0.3007920980453491, -0.0149307232350111, 0.20795001089572906, 0.10917522013187408, 0.46075233817100525, -0.2662662863731384, -0.4412497282028198, 0.5007206201553345, 0.12886478006839752, 0.006646604277193546, 0.4606548249721527, 0.14169688522815704, -0.33816006779670715, -0.12342415004968643, -0.44039449095726013, -0.18571393191814423, -0.2916959226131439, 0.3045724630355835, 0.16763129830360413, 0.20781484246253967, -0.06558149307966232, -0.23408107459545135, -0.2560773491859436, -0.14121222496032715, 0.21514084935188293, 0.19322098791599274, -0.0028489897958934307, 0.00960773229598999, -0.19962841272354126, -0.045490577816963196, -0.5053685903549194, -0.07741506397724152, 0.17000816762447357, 0.28665095567703247, -0.46978306770324707, 0.10195935517549515, 0.015119518153369427, 0.1103728860616684, 0.33224886655807495, -0.2976493239402771, -0.0814967006444931, 0.12115570157766342, 0.3847758173942566, 0.04154892638325691, 0.34287598729133606, -0.192423477768898, -0.1800597757101059, 0.5656825304031372, 0.3200426399707794, -0.423236221075058, -0.04730065166950226, 0.2894096076488495, 0.3699547350406647, -0.02235143817961216, -0.10714920610189438, 0.11506875604391098, -0.3763309717178345, -0.36718520522117615, 0.2561839818954468, 0.47825026512145996, 0.014908133074641228, 0.29876604676246643, 0.14303717017173767, 0.17449259757995605, -0.07851850986480713, 0.43223443627357483, -0.08490017056465149, -0.07094313204288483, 0.4809965193271637, 0.1570386439561844, 0.04984423890709877, -0.011930938810110092, -0.04713926464319229, 0.31871289014816284, -0.09618055075407028, -0.3610304296016693, 0.010158457793295383, -0.2590031623840332, 0.36011242866516113, 0.38178518414497375, 0.16502442955970764, 0.047734584659338, -0.06674928218126297, 0.09958551824092865, -0.25444266200065613, 0.14955249428749084, 0.23855151236057281, 0.2091665118932724, -0.39747488498687744, -0.23173345625400543, 0.3972524106502533, 0.018185380846261978, -0.036224618554115295, 0.022150086238980293, 0.3118016719818115, -0.21926815807819366, 0.22984561324119568, -0.19932492077350616, 1.2992122173309326, 0.16324983537197113, 0.09036388248205185, 0.21979668736457825, -0.21111132204532623, 0.13768300414085388, -0.3781127333641052, -0.17612211406230927, 0.27716493606567383, 0.20058804750442505, 0.00011485689174151048, 0.26281237602233887, -0.007144998759031296, 0.19687220454216003, -0.4309057593345642, 0.2430020570755005, 0.08248233050107956, 0.11203061044216156, 0.0918787270784378, 0.5037060379981995, -0.21236392855644226, -0.43686333298683167, -0.45651763677597046, 0.2659361660480499, 0.13286863267421722, 0.2141069918870926, 0.10907694697380066, -0.28101077675819397, 0.12475556880235672, -0.03852950781583786, -0.6611125469207764, 0.01858855038881302, -0.24859337508678436, -0.09873688966035843, -0.34999987483024597, -0.17877231538295746, 0.35459044575691223, 0.20691019296646118, 0.39119288325309753, 0.006571998819708824, -0.25547799468040466, 0.179365336894989, -0.05393020436167717, -0.016612166538834572, 0.23459410667419434, -0.11298605054616928, 0.3398454487323761, -0.30371639132499695, -0.303827166557312, 0.11857906728982925, 0.17891408503055573, -0.05877591297030449, -0.42784610390663147, -0.19759348034858704, 0.08248317986726761, 0.020846420899033546, 0.13242952525615692, 0.5716286897659302, -0.07250810414552689, -0.18655313551425934, 0.19200092554092407, 0.003756194608286023, -0.3681880533695221, 0.17158658802509308, -0.12643566727638245, -0.24244968593120575, -0.24661894142627716, 0.22817087173461914, 0.2111576944589615, -0.07086319476366043, 0.32063472270965576, 0.2639296054840088, -0.2118224799633026, -0.3511907458305359, -0.027741434052586555, 0.15814416110515594, -0.6010574102401733, -0.023775624111294746, 0.1153099313378334, -0.14786511659622192, -0.2918297350406647, 0.2249114215373993, 0.16225285828113556, -0.1301768273115158, -0.021707192063331604, 0.0005141223082318902, -0.3193929195404053, 0.04089080169796944, 0.19097685813903809, 0.1280006766319275, -0.0940302386879921, 0.2617276608943939, 0.08424157649278641, -0.10707926750183105, -0.42646631598472595, 0.10155563801527023, -0.09286126494407654, 0.15036195516586304, 0.352009117603302, -0.1229465901851654, 0.16425049304962158, -0.008465403690934181, 0.14717581868171692, -0.04994437098503113, -0.12538555264472961, -0.2292289435863495, -0.10272210091352463, 0.09125412255525589, 0.046807270497083664, 0.15376873314380646, 0.025381730869412422, -0.1104472205042839, -0.21515128016471863, 0.12173164635896683, 0.3245624303817749, 0.2861369848251343, 0.0006520318565890193, 0.09007741510868073, -0.016748959198594093, -0.052210550755262375, 0.17076201736927032, 0.07091033458709717, 0.36547619104385376, 0.34591296315193176, 0.11996784061193466, 0.16755619645118713, 0.04619095101952553, -0.12346645444631577, -0.017863938584923744, 0.32096099853515625, 0.22236299514770508, 0.05749528855085373, 0.06834942102432251, 0.0039026716258376837, 0.15139465034008026, 0.4949725866317749, 0.05590303987264633, -0.019386371597647667, -0.11283054947853088, -0.012218400835990906, 0.4042264223098755, 0.2655511200428009, -0.2175692766904831, 0.15770722925662994, -0.11656180024147034, -0.26818278431892395, 0.14534534513950348, 0.13605348765850067, 0.025958096608519554, 0.04932491108775139, 0.21347194910049438, -0.05002517253160477, -0.11258824914693832, 0.11137819290161133, 0.03325198218226433, 0.156878262758255, 0.17740145325660706, -0.040456417948007584, 0.07922685146331787, 0.10816719383001328, 0.14491988718509674, 0.0022457933519035578, -0.21281860768795013, 0.47936323285102844, 0.0601191371679306, 0.17907658219337463, 0.2776881158351898, -0.05780109763145447, 0.04608391225337982, 0.2010468989610672, 0.1733367145061493, 0.15914413332939148, -0.0010348826181143522, 0.4170069694519043, 0.010353513062000275, -0.3126986026763916, -0.1372697353363037, 0.2817871570587158, -0.04075329750776291, -0.04225185140967369, 0.039839789271354675, -0.22051610052585602, -0.25305458903312683, 0.034265875816345215, -0.0721726268529892, -0.32665687799453735, -0.03588686138391495, 0.17900115251541138, -0.1568441092967987, -0.20474852621555328, -0.13559700548648834, -0.17444348335266113, 0.1936497539281845, -0.1843632161617279, 0.41019055247306824, 0.19324138760566711, -0.09744028002023697, 0.16638188064098358, 0.5504933595657349, 0.5049692392349243, -0.028464751318097115, -0.113240547478199, 0.273232638835907, -0.07761485874652863, -0.07311497628688812, -0.05076446011662483, 0.4047098457813263, 0.01044276263564825, 0.11425405740737915, 0.20260772109031677, 0.2117384523153305, -0.19361163675785065, -0.19274452328681946, 0.12687891721725464, -0.13385923206806183, -0.23485085368156433, 0.17271508276462555, -0.18696480989456177, 0.0905507355928421, -0.5943130850791931, -0.13082827627658844, -0.5543190836906433, 0.12384522706270218, 0.4093545973300934, -0.30347442626953125, 0.1066187173128128, -0.19987675547599792, 0.1063452959060669, -0.19017155468463898, 0.36640238761901855, 0.3114933967590332, 0.0490189790725708, -0.151706263422966, -0.1676575094461441, -0.4584265649318695, -0.11847615987062454, 0.0661526694893837, 0.13424822688102722, -0.3691920042037964, 0.10727205127477646, 0.3487342894077301, 0.3570179343223572, -0.1373610645532608, -0.139935702085495, -0.41835224628448486, 0.08044225722551346, -0.3068992793560028, 0.19139093160629272, 0.012566525489091873, 0.5848869681358337, 0.17088034749031067, -0.14090724289417267, -0.1698649525642395, 0.2786664068698883, 0.06360163539648056, -0.1539648175239563, 0.09591160714626312, -0.3254550099372864, -0.30922865867614746, 0.1015457734465599, 0.0018898029811680317, 0.3967325985431671, -0.2579968571662903, -0.12280337512493134, -0.16811808943748474, -0.12518872320652008, -0.15539100766181946, 0.0849931612610817, -0.01378472987562418, 0.28102928400039673, -0.22724859416484833, 0.21922928094863892, -0.014504961669445038, -0.11480219662189484, 0.002968049142509699, 0.03718620166182518, -0.24829360842704773, 0.11146277189254761, -0.11980173736810684, 0.004251113161444664, -0.10657418519258499, 0.30878347158432007, -0.0339314229786396, -0.05537618696689606, -0.2479555457830429, -0.23580355942249298, 0.45888885855674744, -0.11825035512447357, -0.27377083897590637, -0.020879117771983147, 0.3357265591621399, 0.16701167821884155, -0.12637048959732056, -0.7813284993171692, 0.2783128321170807, 0.22283504903316498, 0.21469885110855103, -0.00927822757512331, 0.2461499124765396, -0.009982247836887836, -0.11097787320613861, -0.12768623232841492, 0.007531715556979179, -0.0001096300984499976, -0.21531102061271667, 0.2524288594722748, -0.27832940220832825 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Sounds good! Order of magnitude is storage costs ~$20 per TB per month (not including bandwidth). Happy to provide this to the community as I feel this is an important dataset. Let us know what the authors want to do!
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
40
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Sounds good! Order of magnitude is storage costs ~$20 per TB per month (not including bandwidth). Happy to provide this to the community as I feel this is an important dataset. Let us know what the authors want to do!
[ -0.2674567997455597, 0.3468373417854309, -0.11506284028291702, 0.07435601204633713, -0.10949249565601349, 0.028011368587613106, 0.0628127008676529, 0.20077267289161682, -0.3066082000732422, 0.21898384392261505, -0.26910263299942017, -0.2065335065126419, -0.18998673558235168, 0.13933418691158295, 0.17807257175445557, -0.15057069063186646, 0.19186921417713165, 0.007442273665219545, -0.2874940037727356, -0.2704439163208008, -0.08604272454977036, -0.038605187088251114, -0.13796161115169525, -0.2685122787952423, -0.2299313098192215, -0.09461189806461334, -0.34556883573532104, -0.2869122326374054, -0.323231965303421, -0.19623693823814392, -0.05564988777041435, 0.13503721356391907, 0.1240529716014862, 0.49401846528053284, -0.00010455668234499171, -0.25922828912734985, 0.125071719288826, -0.2645716071128845, -0.3532470464706421, -0.03809523954987526, -0.19961637258529663, -0.1757068783044815, -0.6599071621894836, 0.030459348112344742, -0.095602847635746, -0.2508492171764374, 0.06722220033407211, -0.02633066102862358, 0.12660066783428192, 0.5544312596321106, 0.21401505172252655, -0.013065376318991184, 0.17167983949184418, -0.13714225590229034, 0.2871411144733429, 0.0758829414844513, -0.2084587812423706, 0.077227383852005, 0.30492421984672546, 0.11360625177621841, 0.03169303014874458, 0.4821644127368927, -0.007535180076956749, -0.2882492244243622, -0.031844403594732285, -0.37903544306755066, -0.17721836268901825, -0.42072349786758423, 0.10508246719837189, 0.31168806552886963, 0.6529281735420227, -0.2026357352733612, -0.1981208622455597, -0.09611407667398453, 0.266822874546051, -0.15981195867061615, -0.04989707097411156, 0.17370963096618652, -0.12413226813077927, 0.33109110593795776, 0.13926737010478973, -0.2483861744403839, -0.2472926527261734, 0.3075193166732788, 0.05446576699614525, 0.3040258586406708, -0.0862315222620964, -0.09898794442415237, 0.088381327688694, -0.27422457933425903, -0.27668818831443787, -0.06266312301158905, 0.007281742990016937, 0.10950973629951477, -0.14186221361160278, -0.37010905146598816, 0.21697743237018585, -0.13201849162578583, 0.07934672385454178, -0.367450088262558, -0.15922802686691284, -0.13633961975574493, -0.08307894319295883, 0.07130352407693863, -0.01835549995303154, 0.35843658447265625, -0.08028045296669006, -0.07807771861553192, 0.10047270357608795, -0.2737574577331543, 0.04657436162233353, 0.12799380719661713, -0.07597196847200394, 0.335627019405365, -0.3972550332546234, 0.08218009769916534, -0.08616136014461517, -0.1665336936712265, -0.246308833360672, 0.19534708559513092, -0.04669421166181564, 0.0915033146739006, -0.08935142308473587, 0.3172934055328369, 0.044172368943691254, 0.3904404938220978, -0.08309518545866013, 0.3368875980377197, 0.051791150122880936, -0.1928994506597519, -0.06038989871740341, 0.22417010366916656, -0.20172852277755737, 0.254637748003006, 0.23245130479335785, 0.45219624042510986, 0.04944344982504845, 0.018300406634807587, 0.20407605171203613, 0.06864208728075027, -0.0888889878988266, -0.04917202517390251, 0.2716382145881653, 0.025959160178899765, -0.03111180104315281, -0.004762114491313696, -0.24964725971221924, -0.16105709969997406, -0.20354710519313812, -0.010769207030534744, 0.14201462268829346, -0.11017456650733948, -0.29799434542655945, 0.2533712685108185, -0.07169816642999649, -0.26774877309799194, -0.27937954664230347, 0.7518084645271301, -0.17829792201519012, -0.11155633628368378, 0.06970436871051788, 0.1738111525774002, -0.4604194462299347, 0.04593958705663681, -0.13681095838546753, 0.3723900616168976, -0.2363213300704956, -0.039901286363601685, 0.09808597713708878, 0.20547279715538025, 0.044373080134391785, 0.20607824623584747, -0.08105859160423279, 0.26221951842308044, 0.05490883067250252, 0.3178979158401489, 0.044269829988479614, -0.4065379202365875, -0.44632062315940857, 0.1585041880607605, -0.17605841159820557, -0.18460920453071594, 0.29897576570510864, -0.00015182911010924727, 0.6347362995147705, -0.33938732743263245, -0.013722946867346764, 0.3644091784954071, -0.06311177462339401, 0.07184600830078125, -0.2582847774028778, -0.47862550616264343, 0.19882071018218994, 0.15038296580314636, 0.041200753301382065, -0.0575379952788353, 0.06441876292228699, 0.3694817125797272, 0.21831677854061127, -0.3277607858181, 0.24049098789691925, 0.27855464816093445, 0.06227447837591171, -0.15368984639644623, -0.04515572264790535, -0.16933338344097137, -0.15872783958911896, -0.0830603763461113, 0.17816193401813507, 0.4612792432308197, 0.11146197468042374, -0.2092919796705246, -0.007271246984601021, -0.21706753969192505, -0.1183115765452385, -0.1257408857345581, 0.2582395076751709, 0.2570568025112152, 0.11289534717798233, 0.11889585852622986, -0.12457132339477539, 0.19129551947116852, -0.2764892280101776, -0.2479797601699829, 0.004834596533328295, 0.2340553104877472, 0.05565224960446358, -0.29282328486442566, 0.26934924721717834, 0.41564708948135376, 0.1235695630311966, 0.007519840262830257, -0.03546859696507454, 0.12156122922897339, -0.20713923871517181, 0.2657060921192169, 0.17018663883209229, 0.3067449927330017, 0.2318331003189087, -0.4714113771915436, 0.30652159452438354, 0.34071430563926697, 0.17274749279022217, -0.2098974585533142, -0.2183399349451065, 0.11960603296756744, 0.32871201634407043, 0.05226965248584747, 0.050512172281742096, -0.09181852638721466, 0.2911440432071686, 0.09294500946998596, -0.11881212890148163, -0.12938684225082397, 0.1732148975133896, 0.2709851861000061, -0.0985398218035698, 0.13358502089977264, -0.2680143415927887, 0.20479927957057953, 0.561586856842041, -0.13041025400161743, 0.3069731891155243, 0.19905076920986176, -0.052781689912080765, -0.27808335423469543, 0.12042492628097534, -0.1962437927722931, 0.2916378080844879, 0.2810156047344208, 0.22564181685447693, 0.0164783988147974, 0.29857125878334045, -0.15210627019405365, 0.1900845468044281, -0.05073608085513115, -0.2516878545284271, 0.160392165184021, 0.20351746678352356, -0.10734893381595612, -0.32170817255973816, 0.046822451055049896, 0.005420450586825609, 0.14321079850196838, 0.03972166031599045, -0.2647111415863037, 0.11322891712188721, -0.2363809198141098, -0.1619865596294403, 0.0370653010904789, -0.15967555344104767, -0.00325177819468081, 0.3915064334869385, 0.04850330948829651, -0.20694218575954437, 0.15350192785263062, 0.216517373919487, 0.36933931708335876, -0.3941743075847626, -0.08281456679105759, 0.009604183956980705, -0.3672112226486206, -0.17861400544643402, 0.1865740567445755, 0.19845010340213776, 0.1628405898809433, 0.27977484464645386, -0.1282360851764679, 0.1851775199174881, -0.2126672863960266, -0.31216683983802795, 0.15509968996047974, -0.26628243923187256, 0.05243914574384689, -0.27348726987838745, 0.01832687109708786, -0.056688860058784485, -0.38204991817474365, -0.2653360962867737, 0.03158314526081085, 0.02638114243745804, 0.03237718716263771, -0.3927341103553772, -0.1335780918598175, 0.0208344254642725, -0.3891127407550812, -0.5565210580825806, -0.4471626877784729, 0.3865199387073517, -0.25173160433769226, -0.00926304329186678, -0.0017908425070345402, 0.009909114800393581, 0.1746542751789093, -0.07993534952402115, 0.20393572747707367, -0.28521856665611267, -0.2310420423746109, 0.15995295345783234, -0.21691744029521942, -0.3349035084247589, -0.15407535433769226, 0.03911370038986206, 0.06207920238375664, -0.11508506536483765, -0.43639513850212097, 0.17836785316467285, -0.09870338439941406, 0.3334512710571289, 0.16526184976100922, 0.01013336330652237, 0.2976229190826416, -0.10610747337341309, -0.15657447278499603, -0.1825391799211502, -0.16879072785377502, -0.04810826852917671, 0.4235714077949524, 0.12049947679042816, -0.013476911000907421, -0.03808293119072914, 0.1223323792219162, 0.5573826432228088, 0.20542441308498383, 0.027466576546430588, 0.20636479556560516, 0.1498263031244278, 0.4568346440792084, -0.2330978661775589, -0.3974895775318146, 0.5278066992759705, 0.1368788331747055, -0.07438821345567703, 0.5241381525993347, 0.07323403656482697, -0.5568884611129761, -0.10711777955293655, -0.33391720056533813, -0.08183524757623672, -0.2224314957857132, 0.3396258056163788, 0.09924646466970444, 0.15613670647144318, 0.02066093683242798, -0.14056389033794403, -0.2554537057876587, -0.2717413604259491, 0.18959030508995056, 0.09595958888530731, -0.047879114747047424, 0.0007002215133979917, -0.16022640466690063, -0.062019288539886475, -0.3980848491191864, -0.1072697713971138, 0.15695756673812866, 0.24646618962287903, -0.5303565263748169, 0.08707399666309357, 0.004621594678610563, 0.1763378381729126, 0.17988528311252594, -0.3207387328147888, -0.08123524487018585, 0.23424479365348816, 0.5497140288352966, -0.018840806558728218, 0.18530656397342682, -0.2950845956802368, -0.34230202436447144, 0.5709088444709778, 0.3086680471897125, -0.18302609026432037, 0.033910349011421204, 0.16770155727863312, 0.46457022428512573, -0.04900534823536873, -0.0457138754427433, 0.13972769677639008, -0.31517139077186584, -0.31205326318740845, 0.3089372515678406, 0.4163500666618347, -0.014675368554890156, 0.26813602447509766, 0.1516004204750061, 0.1820182055234909, -0.008262362331151962, 0.49426597356796265, -0.07715088129043579, -0.10442561656236649, 0.4753468632698059, 0.09180556237697601, -0.03780020773410797, -0.11172567307949066, -0.08473870903253555, 0.15284964442253113, -0.06127744913101196, -0.2044249176979065, 0.03752599656581879, -0.3595806062221527, 0.3538597524166107, 0.42100512981414795, 0.12466657161712646, 0.011869123205542564, -0.10969440639019012, 0.10382231324911118, -0.3049684166908264, 0.17419524490833282, 0.26453298330307007, 0.10566584765911102, -0.3500522971153259, -0.2346181571483612, 0.3728398084640503, 0.06062722206115723, -0.12133849412202835, 0.09690038114786148, 0.1682979017496109, -0.21650518476963043, 0.35526835918426514, -0.13982664048671722, 1.302878737449646, 0.2360520362854004, 0.15262959897518158, 0.19171875715255737, -0.23249611258506775, 0.07360152155160904, -0.37255194783210754, -0.15488198399543762, 0.3520873188972473, 0.1767754852771759, -0.024960359558463097, 0.22058354318141937, -0.04685252904891968, 0.2085394412279129, -0.5711349248886108, 0.22646503150463104, -0.00927878636866808, 0.12694793939590454, 0.12255542725324631, 0.47478753328323364, -0.26867762207984924, -0.4689061641693115, -0.26841405034065247, 0.29126670956611633, 0.1350044459104538, 0.04003181681036949, 0.15096426010131836, -0.25443601608276367, 0.1512271761894226, 0.06269578635692596, -0.7009248733520508, 0.12113407254219055, -0.11798031628131866, -0.027462497353553772, -0.5845334529876709, -0.04701034724712372, 0.21154384315013885, 0.1814659833908081, 0.33930036425590515, 0.0038955004420131445, -0.23097029328346252, 0.1532793492078781, -0.003309719730168581, 0.004611011128872633, 0.22768321633338928, -0.14183402061462402, 0.41548627614974976, -0.31453487277030945, -0.20732054114341736, 0.22233298420906067, 0.15951912105083466, 0.03235791251063347, -0.45934388041496277, -0.19397558271884918, 0.17332547903060913, 0.04966678470373154, 0.2545643746852875, 0.5486972332000732, -0.11401917785406113, -0.22716504335403442, 0.19726547598838806, -0.0021886038593947887, -0.3667447865009308, 0.27934372425079346, -0.2162352353334427, -0.24337634444236755, -0.2037610113620758, 0.20190928876399994, 0.2641429603099823, -0.04140309989452362, 0.28546977043151855, 0.22601839900016785, -0.227204367518425, -0.41823041439056396, 0.06258295476436615, -0.006832009647041559, -0.48372581601142883, 0.02087431028485298, 0.03440574184060097, -0.20156614482402802, -0.3309279978275299, 0.2069541960954666, 0.06559266895055771, -0.12836167216300964, -0.08479379862546921, -0.04094983637332916, -0.2633307874202728, 0.013384765945374966, 0.19925950467586517, 0.11334690451622009, -0.10205060243606567, 0.17077027261257172, 0.007912907749414444, -0.0708644762635231, -0.43091192841529846, 0.12980593740940094, -0.04415410757064819, 0.1981445699930191, 0.20452328026294708, -0.14167144894599915, 0.1859094798564911, 0.007145805284380913, 0.14056633412837982, -0.09058300405740738, -0.13172894716262817, -0.2335890680551529, -0.166142076253891, 0.09327100217342377, 0.11773379147052765, 0.1945551037788391, 0.018449408933520317, -0.18877388536930084, -0.24214771389961243, 0.06825410574674606, 0.24406413733959198, 0.2484220564365387, -0.07957283407449722, 0.1264837682247162, -0.028904583305120468, 0.047827694565057755, 0.2515585124492645, 0.05763698369264603, 0.32433196902275085, 0.4395703077316284, -0.05653780698776245, 0.16096679866313934, 0.08651431649923325, -0.21131111681461334, -0.025600774213671684, 0.34949788451194763, 0.05736187472939491, 0.000010886146810662467, 0.1125313863158226, 0.027120888233184814, 0.2247648686170578, 0.3390497863292694, -0.06555081158876419, 0.040195342153310776, -0.05900902301073074, -0.07113639265298843, 0.34159615635871887, 0.2797173261642456, -0.10629101097583771, 0.09150305390357971, -0.18584692478179932, -0.176653191447258, 0.15573056042194366, 0.11838727444410324, 0.11226656287908554, -0.1109623908996582, 0.20801590383052826, -0.081558957695961, -0.17139564454555511, 0.07377967238426208, 0.03762385994195938, 0.16667301952838898, 0.1785566508769989, -0.10198726505041122, -0.03325902298092842, 0.10569050163030624, 0.13749900460243225, 0.0014794940361753106, -0.16476722061634064, 0.46250051259994507, 0.1857188493013382, 0.1034669578075409, 0.19842004776000977, -0.012474803254008293, 0.1337440311908722, 0.16428017616271973, 0.08601231873035431, 0.250407338142395, 0.04659033194184303, 0.2660351097583771, -0.05844863876700401, -0.3078385889530182, -0.11159804463386536, 0.21435968577861786, 0.04984193295240402, 0.01850774884223938, -0.02037331834435463, -0.19856378436088562, -0.2563599646091461, 0.07050618529319763, -0.01416886504739523, -0.21234583854675293, -0.06012878194451332, 0.23929378390312195, -0.09220732748508453, -0.10583587735891342, -0.05264643207192421, -0.16349387168884277, 0.28988590836524963, -0.25934088230133057, 0.3642912805080414, 0.15718747675418854, -0.040932126343250275, 0.21520261466503143, 0.4409630000591278, 0.47974225878715515, -0.08140993118286133, -0.20351068675518036, 0.31720444560050964, -0.08816224336624146, -0.12253373116254807, -0.013027120381593704, 0.4353647232055664, 0.01543815154582262, 0.1728735864162445, 0.1735212802886963, 0.21337293088436127, -0.18363900482654572, -0.19904819130897522, 0.1639767736196518, -0.06995004415512085, -0.132380872964859, 0.13194335997104645, -0.0558512844145298, 0.10010994225740433, -0.5145981311798096, -0.11353318393230438, -0.5816863775253296, 0.11982963234186172, 0.40900641679763794, -0.3190320134162903, 0.16620437800884247, -0.12666074931621552, 0.11590030044317245, -0.17480558156967163, 0.3187260329723358, 0.2675611972808838, 0.033846333622932434, -0.07516645640134811, -0.11098366230726242, -0.2891770303249359, -0.17461097240447998, 0.13183695077896118, 0.21511180698871613, -0.3938133418560028, 0.13225899636745453, 0.31899493932724, 0.3898980915546417, -0.16704465448856354, -0.04443643242120743, -0.5264083743095398, 0.11362578719854355, -0.3879910409450531, 0.26371777057647705, 0.16133971512317657, 0.6632785201072693, 0.09197840094566345, -0.16552549600601196, -0.18932659924030304, 0.23058581352233887, 0.09485024213790894, -0.19516494870185852, -0.09200362116098404, -0.2894485890865326, -0.2229039967060089, 0.15015949308872223, -0.051628049463033676, 0.30967605113983154, -0.24791784584522247, -0.11904601752758026, -0.18205684423446655, -0.034869465976953506, -0.10492715239524841, -0.08672131597995758, 0.012523096054792404, 0.2685791254043579, -0.2493440806865692, 0.3319288194179535, 0.09710779041051865, -0.05669621378183365, -0.04842609167098999, 0.0773954689502716, -0.25544148683547974, 0.09295888245105743, -0.1670767217874527, 0.15111228823661804, -0.18695414066314697, 0.23037391901016235, -0.04324274882674217, -0.08687292039394379, -0.2548593580722809, -0.19708536565303802, 0.44784310460090637, -0.10705123841762543, -0.366291344165802, -0.03587377071380615, 0.3192024827003479, 0.16145746409893036, 0.04379822686314583, -0.6474661827087402, 0.22081191837787628, 0.23007851839065552, 0.14810144901275635, 0.03562987223267555, 0.21904924511909485, 0.009154356084764004, -0.08580448478460312, -0.13266868889331818, -0.03872940316796303, 0.010559595189988613, -0.18244381248950958, 0.10665970295667648, -0.3101615607738495 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Great! @skyprince999, do you think you could ping the authors here or link to this thread? I think it could be a cool idea to host the dataset on our side then
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
32
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Great! @skyprince999, do you think you could ping the authors here or link to this thread? I think it could be a cool idea to host the dataset on our side then
[ -0.26381537318229675, 0.25564923882484436, -0.10208883881568909, 0.06742633134126663, -0.11630085110664368, 0.004987445659935474, 0.20887629687786102, 0.13246677815914154, -0.23804596066474915, 0.19588835537433624, -0.2925184965133667, -0.19479013979434967, -0.12356504797935486, 0.17621009051799774, 0.21795417368412018, -0.09659724682569504, 0.13386769592761993, -0.04806055128574371, -0.28364884853363037, -0.30601274967193604, -0.05387129262089729, -0.060047052800655365, -0.11377155035734177, -0.18403828144073486, -0.22311295568943024, -0.031440407037734985, -0.31027746200561523, -0.21159666776657104, -0.2723541557788849, -0.21861344575881958, 0.024948960170149803, 0.14330513775348663, 0.16451454162597656, 0.48072388768196106, -0.00010310800280421972, -0.11604192107915878, 0.19767116010189056, -0.19728708267211914, -0.29797956347465515, -0.1132877990603447, -0.24793407320976257, -0.15204347670078278, -0.6573243141174316, 0.012597393244504929, -0.30995306372642517, -0.2509475350379944, 0.02657092548906803, 0.02225298061966896, 0.11635436862707138, 0.5167067050933838, 0.24084271490573883, 0.055473681539297104, 0.167307510972023, -0.1349189430475235, 0.23404395580291748, 0.11276740580797195, -0.20159953832626343, 0.10496172308921814, 0.303597092628479, 0.12370503693819046, 0.04854262247681618, 0.4394954741001129, -0.026150131598114967, -0.2713295519351959, -0.05859444662928581, -0.30380338430404663, -0.20334558188915253, -0.35970166325569153, 0.0331387035548687, 0.347229540348053, 0.6664746999740601, -0.16108496487140656, -0.18603472411632538, -0.15026074647903442, 0.21883493661880493, -0.1186535581946373, -0.05083503574132919, 0.0833062082529068, -0.12094155699014664, 0.3679974377155304, 0.1617061197757721, -0.304497629404068, -0.21775881946086884, 0.2728981375694275, 0.042706478387117386, 0.42577266693115234, -0.06214902922511101, -0.07888620346784592, -0.05868884176015854, -0.20839329063892365, -0.21321582794189453, -0.08974657207727432, 0.014605608768761158, 0.07520541548728943, -0.16601404547691345, -0.3493969440460205, 0.3036046326160431, -0.15039247274398804, 0.16011953353881836, -0.31799009442329407, -0.16445931792259216, -0.11521755158901215, -0.17380735278129578, 0.0288691446185112, 0.07012001425027847, 0.3264152705669403, -0.023236820474267006, -0.0438527949154377, 0.1637272834777832, -0.18920014798641205, 0.06261222809553146, 0.15448641777038574, -0.03236296400427818, 0.23427024483680725, -0.45130184292793274, 0.22866998612880707, 0.027100056409835815, -0.1980842500925064, -0.23857805132865906, 0.12152167409658432, -0.03002433106303215, 0.08164519816637039, 0.007586916908621788, 0.29753658175468445, 0.048969198018312454, 0.3509744107723236, -0.10109198838472366, 0.3271924555301666, -0.0031228489242494106, -0.21373875439167023, -0.07117026299238205, 0.13369940221309662, -0.2383318394422531, 0.17205771803855896, 0.2494344860315323, 0.42159104347229004, 0.05350983887910843, 0.08210379630327225, 0.322633296251297, 0.07473424077033997, -0.1555282473564148, 0.02607237920165062, 0.27221083641052246, -0.03373310714960098, 0.047503720968961716, 0.03375096246600151, -0.20390020310878754, -0.16631737351417542, -0.2246454358100891, 0.0592585951089859, 0.1313936859369278, -0.11610227823257446, -0.28727641701698303, 0.2791670262813568, -0.12984749674797058, -0.235297292470932, -0.27715495228767395, 0.7251235246658325, -0.16247975826263428, -0.07741500437259674, 0.11326383799314499, 0.22749872505664825, -0.4088672697544098, 0.052191607654094696, -0.0945311188697815, 0.36563247442245483, -0.2517014145851135, -0.016954246908426285, 0.1709544062614441, 0.1352575570344925, 0.022504135966300964, 0.14823544025421143, -0.08284284919500351, 0.3158321678638458, -0.05817349627614021, 0.3497922718524933, 0.039258457720279694, -0.3666365146636963, -0.3150375187397003, 0.13170498609542847, -0.23573321104049683, -0.03503039851784706, 0.25653108954429626, -0.13284437358379364, 0.6240289807319641, -0.31252771615982056, -0.012290297076106071, 0.4339914321899414, 0.006510705687105656, 0.13161852955818176, -0.19828684628009796, -0.32149162888526917, 0.23603680729866028, 0.1815400868654251, -0.005643723998218775, -0.01826578937470913, 0.044128768146038055, 0.27509334683418274, 0.27752313017845154, -0.33025404810905457, 0.2896016836166382, 0.22148270905017853, 0.035499513149261475, -0.1381876915693283, 0.016478348523378372, -0.13796786963939667, -0.15458615124225616, -0.0750243291258812, 0.19703970849514008, 0.5770365595817566, 0.12242411822080612, -0.24678073823451996, -0.16966332495212555, -0.19548840820789337, -0.19232842326164246, -0.17297756671905518, 0.27309897541999817, 0.2822175920009613, 0.05621354654431343, 0.13980819284915924, -0.1364925056695938, 0.2650600075721741, -0.33737143874168396, -0.21615175902843475, -0.04419100657105446, 0.2488892823457718, 0.05469849333167076, -0.23539914190769196, 0.1652756631374359, 0.47161993384361267, 0.16541583836078644, -0.03177040442824364, 0.004643817897886038, 0.07431060075759888, -0.27320632338523865, 0.23474331200122833, 0.15412446856498718, 0.2190740555524826, 0.3090023398399353, -0.5264617800712585, 0.22034502029418945, 0.2899046838283539, 0.09910372644662857, -0.20109118521213531, -0.07364014536142349, 0.17214837670326233, 0.2992241084575653, 0.15549185872077942, 0.009308908134698868, -0.01165478304028511, 0.307735413312912, 0.030527032911777496, -0.18020133674144745, -0.060009680688381195, 0.13244634866714478, 0.28607773780822754, -0.14370223879814148, 0.0011760236229747534, -0.29452550411224365, 0.2530343532562256, 0.45431044697761536, -0.1788538545370102, 0.26928946375846863, 0.16500750184059143, -0.04552594572305679, -0.13972613215446472, 0.1442493200302124, -0.24067462980747223, 0.2386842966079712, 0.30342352390289307, 0.3386998772621155, 0.023741018027067184, 0.2088295817375183, -0.08282136917114258, 0.19225917756557465, -0.047244779765605927, -0.30744755268096924, 0.12861064076423645, 0.18185488879680634, -0.18688102066516876, -0.331763356924057, -0.0036379608791321516, -0.024186501279473305, 0.10927139967679977, -0.13175426423549652, -0.2908283770084381, 0.1634644716978073, -0.21101228892803192, -0.2189677506685257, -0.06185156852006912, -0.22940082848072052, 0.026231687515974045, 0.4298073351383209, 0.03831711411476135, -0.21140141785144806, 0.20071111619472504, 0.2322901338338852, 0.3449680507183075, -0.45110243558883667, -0.032989051192998886, -0.05738915130496025, -0.3996433615684509, -0.18227656185626984, 0.20011663436889648, 0.2146735042333603, 0.18154291808605194, 0.26034125685691833, -0.11864833533763885, 0.14926563203334808, -0.2710839509963989, -0.3136160969734192, 0.18688777089118958, -0.27190375328063965, 0.12089931964874268, -0.19015155732631683, 0.009241392835974693, -0.020303338766098022, -0.4290502965450287, -0.20168739557266235, 0.08876171708106995, -0.030420826748013496, -0.08557452261447906, -0.41415876150131226, -0.08887196332216263, -0.04153960570693016, -0.485882967710495, -0.47961774468421936, -0.4333900511264801, 0.29886549711227417, -0.2710742950439453, -0.02472323179244995, -0.01735331118106842, 0.04020751267671585, 0.07020361721515656, -0.020696615800261497, 0.16878542304039001, -0.3169858157634735, -0.26433008909225464, 0.1111544668674469, -0.31812646985054016, -0.29123491048812866, -0.21739321947097778, 0.05071268975734711, 0.12305581569671631, -0.13517481088638306, -0.33049824833869934, 0.14052394032478333, -0.050678618252277374, 0.35998374223709106, 0.17923125624656677, 0.09345643222332001, 0.23196277022361755, -0.051955267786979675, -0.14445924758911133, -0.16842874884605408, -0.1450241506099701, 0.025761453434824944, 0.37784260511398315, 0.16474393010139465, 0.06512106209993362, -0.004788772668689489, 0.058961667120456696, 0.6301655173301697, 0.17608973383903503, 0.0472845658659935, 0.2631720006465912, 0.08107464015483856, 0.3796309530735016, -0.2192728966474533, -0.41166946291923523, 0.5353420972824097, 0.11328756809234619, -0.08979947865009308, 0.43732568621635437, 0.08514176309108734, -0.48817265033721924, -0.14432521164417267, -0.3178872764110565, -0.22332978248596191, -0.25531792640686035, 0.28329893946647644, 0.08771031349897385, 0.16788364946842194, 0.017108624801039696, -0.1764429807662964, -0.26347604393959045, -0.19804228842258453, 0.2678227126598358, 0.12960882484912872, 0.04844022914767265, -0.03133590519428253, -0.1926930993795395, -0.0355728380382061, -0.40214335918426514, -0.09528671205043793, 0.1271764189004898, 0.2549351155757904, -0.48314613103866577, 0.03632788732647896, 0.06024912744760513, 0.14741091430187225, 0.3275753855705261, -0.3593372702598572, -0.07683715969324112, 0.1758430302143097, 0.5461906790733337, 0.0617816187441349, 0.2076316475868225, -0.17768284678459167, -0.30745482444763184, 0.5304556488990784, 0.30001959204673767, -0.3463911712169647, 0.05798489972949028, 0.15937966108322144, 0.3236672580242157, -0.009710396640002728, -0.13327094912528992, 0.1316123604774475, -0.36054447293281555, -0.31846413016319275, 0.29398444294929504, 0.5474271774291992, -0.011618002317845821, 0.20718790590763092, 0.12998738884925842, 0.2318963259458542, 0.044709112495183945, 0.44153350591659546, 0.01129099540412426, -0.10383119434118271, 0.4746813178062439, 0.06909667700529099, 0.05151660367846489, -0.004530699923634529, -0.1709577590227127, 0.2669612765312195, -0.033877596259117126, -0.32021042704582214, 0.01585446298122406, -0.27540236711502075, 0.4106699824333191, 0.401518315076828, 0.20560182631015778, -0.007871144451200962, -0.10765337198972702, -0.006328844465315342, -0.2898709774017334, 0.1949426680803299, 0.18902522325515747, 0.15428540110588074, -0.3492986857891083, -0.3161601424217224, 0.3706457316875458, -0.007075046189129353, -0.142612487077713, 0.12224829196929932, 0.21972410380840302, -0.26606863737106323, 0.3476284444332123, -0.18866533041000366, 1.295457124710083, 0.2701719403266907, 0.1189180538058281, 0.21701757609844208, -0.24967236816883087, 0.07939016073942184, -0.4509887397289276, -0.13103742897510529, 0.26213333010673523, 0.24157750606536865, -0.026086358353495598, 0.19373227655887604, -0.1302735060453415, 0.2497679889202118, -0.45154938101768494, 0.21200774610042572, 0.03755564987659454, 0.13023163378238678, 0.11486547440290451, 0.455340713262558, -0.15657563507556915, -0.4293521046638489, -0.3479406237602234, 0.28758448362350464, 0.07909401506185532, 0.12527583539485931, 0.10662272572517395, -0.25757256150245667, 0.12084545940160751, -0.03147503733634949, -0.6170514822006226, 0.11918401718139648, -0.18575333058834076, -0.13615739345550537, -0.4633793830871582, -0.1735282987356186, 0.30355727672576904, 0.17405468225479126, 0.4051644802093506, 0.008442927151918411, -0.24363096058368683, 0.201378732919693, 0.03218791261315346, 0.09256143867969513, 0.17751266062259674, -0.12935881316661835, 0.3848471939563751, -0.2787678837776184, -0.34175190329551697, 0.24096466600894928, 0.16347834467887878, -0.05912221223115921, -0.4578172266483307, -0.208445206284523, 0.1368909627199173, 0.04060245305299759, 0.26143354177474976, 0.594108521938324, 0.0673767551779747, -0.2787322998046875, 0.20334313809871674, -0.05380042642354965, -0.40278422832489014, 0.14771756529808044, -0.14250729978084564, -0.2563803493976593, -0.198515847325325, 0.18515415489673615, 0.23064827919006348, -0.06456570327281952, 0.27400678396224976, 0.33343422412872314, -0.1919669806957245, -0.36871659755706787, -0.03614654764533043, 0.13797780871391296, -0.504920244216919, -0.06748447567224503, 0.10387589037418365, -0.1910453736782074, -0.34067434072494507, 0.2093665599822998, 0.08217795193195343, -0.03859955817461014, -0.08555136620998383, -0.03274204954504967, -0.22909000515937805, -0.02544490247964859, 0.12959599494934082, 0.15409663319587708, -0.08907829225063324, 0.22741369903087616, 0.02322246879339218, -0.1621653139591217, -0.4529196619987488, 0.026178447529673576, -0.07937006652355194, 0.16656126081943512, 0.28550031781196594, -0.16010169684886932, 0.15233202278614044, 0.028126439079642296, 0.16636674106121063, -0.13318978250026703, -0.09039833396673203, -0.24541358649730682, -0.15750421583652496, 0.09153405576944351, 0.1256602555513382, 0.18552261590957642, -0.08393263071775436, -0.16788947582244873, -0.20963646471500397, 0.0896463543176651, 0.3444305658340454, 0.2475692331790924, -0.039263539016246796, 0.1491403430700302, -0.06060412526130676, 0.011017019860446453, 0.18458499014377594, 0.04113510623574257, 0.3104196786880493, 0.34985971450805664, 0.04845704883337021, 0.14586758613586426, 0.024168269708752632, -0.17238599061965942, 0.02521960809826851, 0.3243963420391083, 0.1631808578968048, 0.12044259160757065, 0.04279131442308426, 0.09649355709552765, 0.16192051768302917, 0.38789278268814087, 0.04905819147825241, -0.004477345384657383, -0.09398570656776428, -0.09076525270938873, 0.38715535402297974, 0.30039262771606445, -0.15891143679618835, 0.15130358934402466, -0.1665881723165512, -0.2660665214061737, 0.18865104019641876, 0.11151282489299774, 0.12210757285356522, -0.019977355375885963, 0.19619424641132355, -0.05712871626019478, -0.16327813267707825, 0.06694933772087097, -0.003457727376371622, 0.16575264930725098, 0.05722791701555252, -0.05304918438196182, 0.0404496006667614, 0.030416550114750862, 0.06588194519281387, 0.07163265347480774, -0.13898678123950958, 0.49800965189933777, 0.15499036014080048, 0.061730027198791504, 0.2575604021549225, -0.010311678983271122, 0.13854438066482544, 0.04128387197852135, 0.1509946584701538, 0.186984583735466, 0.05236784741282463, 0.3182864487171173, -0.08225882053375244, -0.28973519802093506, -0.11896314471960068, 0.24356578290462494, 0.029378021135926247, 0.024535618722438812, -0.09469526261091232, -0.20036426186561584, -0.26214516162872314, -0.06363421678543091, -0.026087822392582893, -0.2240574210882187, -0.012468420900404453, 0.13751602172851562, -0.17639297246932983, -0.08286018669605255, -0.16582970321178436, -0.20997846126556396, 0.18943355977535248, -0.19930575788021088, 0.3392793536186218, 0.16305574774742126, -0.07616354525089264, 0.218065544962883, 0.5704174041748047, 0.4618905484676361, -0.03981851041316986, -0.24863529205322266, 0.25524288415908813, -0.08105796575546265, -0.12699759006500244, -0.038659632205963135, 0.46181175112724304, -0.009413380175828934, 0.11877743899822235, 0.20675601065158844, 0.23405784368515015, -0.20172806084156036, -0.1915637105703354, 0.15244725346565247, -0.1433832049369812, -0.1096106767654419, 0.16936255991458893, -0.08201335370540619, 0.09176525473594666, -0.5450372695922852, -0.21001850068569183, -0.5755995512008667, 0.04187578335404396, 0.4760654866695404, -0.2757146656513214, 0.10578437894582748, -0.22612757980823517, 0.12408563494682312, -0.15598396956920624, 0.30060723423957825, 0.29199397563934326, 0.053902581334114075, -0.11427098512649536, -0.09736111015081406, -0.42136359214782715, -0.0655742958188057, 0.12247056514024734, 0.12465295195579529, -0.39549028873443604, 0.03114570491015911, 0.4504881501197815, 0.31587839126586914, -0.17477746307849884, -0.10543865710496902, -0.4539685547351837, 0.14669401943683624, -0.38676029443740845, 0.20354942977428436, 0.0492761954665184, 0.6177324056625366, 0.06775873899459839, -0.1090957522392273, -0.1967775672674179, 0.3445982038974762, 0.09746158123016357, -0.12781064212322235, -0.0802878886461258, -0.16930104792118073, -0.2848246395587921, 0.18391749262809753, -0.015608275309205055, 0.4005250036716461, -0.28934940695762634, -0.10235778987407684, -0.20124609768390656, -0.13805857300758362, -0.17109394073486328, -0.02294977754354477, -0.10174606740474701, 0.2447328269481659, -0.15196813642978668, 0.25438204407691956, 0.008115475997328758, -0.16546155512332916, -0.006854253821074963, 0.1092788577079773, -0.23975373804569244, 0.09361684322357178, -0.17069639265537262, 0.02455521561205387, -0.1309182196855545, 0.2695034444332123, -0.004462448414415121, -0.07164105772972107, -0.23016589879989624, -0.2515623867511749, 0.45863470435142517, -0.13341006636619568, -0.38585638999938965, -0.0362837128341198, 0.35882651805877686, 0.05662813037633896, 0.02538706175982952, -0.6963678598403931, 0.238462895154953, 0.22749924659729004, 0.1636926233768463, 0.0862349420785904, 0.19584913551807404, 0.08442804962396622, -0.016970036551356316, -0.10648103803396225, -0.018486617133021355, 0.04027320817112923, -0.1692262887954712, 0.1003190204501152, -0.296977698802948 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Done. They replied back, and they want to have a call over a meet/ skype. Is that possible ? Btw @patrickvonplaten you are looped in that email (_pls check you gmail account_)
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
32
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Done. They replied back, and they want to have a call over a meet/ skype. Is that possible ? Btw @patrickvonplaten you are looped in that email (_pls check you gmail account_)
[ -0.244264155626297, 0.07631269097328186, -0.12693406641483307, 0.12922559678554535, -0.06020641326904297, -0.10816555470228195, 0.09540999680757523, 0.02925928123295307, -0.19839337468147278, 0.2287629246711731, -0.21634294092655182, -0.3068777322769165, -0.036101292818784714, 0.20483815670013428, 0.14468097686767578, -0.12050309777259827, -0.0763828456401825, 0.03521117940545082, -0.25308144092559814, -0.393039345741272, -0.07044348120689392, 0.010074884630739689, -0.0025771060027182102, -0.14565959572792053, -0.19749517738819122, -0.10069125145673752, -0.4669637084007263, 0.004109460394829512, -0.2524195611476898, 0.12154299020767212, 0.0929490178823471, 0.1669032722711563, -0.06179758161306381, 0.22323176264762878, -0.00010504856618354097, -0.19276507198810577, 0.3581829071044922, -0.12525904178619385, -0.28432580828666687, -0.13710519671440125, -0.1715056300163269, -0.16087202727794647, -0.5996170043945312, -0.05780775845050812, -0.35178855061531067, -0.05513066425919533, -0.029753539711236954, 0.017230035737156868, 0.3423314392566681, 0.591704249382019, 0.20084644854068756, 0.08227609843015671, 0.41838526725769043, -0.17693226039409637, 0.11353056132793427, 0.12897510826587677, -0.016100885346531868, 0.1953633576631546, 0.07922787219285965, 0.06270775198936462, 0.41145241260528564, 0.1769372969865799, -0.03876102343201637, -0.37743663787841797, -0.14233160018920898, -0.20573869347572327, -0.263855516910553, -0.49301543831825256, 0.13223516941070557, 0.26594680547714233, 0.6440937519073486, 0.013219011016190052, -0.13940274715423584, -0.023984046652913094, 0.25382000207901, -0.22539082169532776, -0.010474803857505322, -0.14470022916793823, -0.2681509852409363, 0.20216360688209534, 0.04742734879255295, -0.30130067467689514, -0.1538129448890686, 0.4731569290161133, 0.022878771647810936, 0.1806115359067917, -0.014998061582446098, 0.05533061549067497, -0.050349824130535126, -0.21775449812412262, -0.31652387976646423, 0.015790097415447235, -0.004594000987708569, 0.17692528665065765, -0.23438042402267456, -0.434377521276474, 0.393858402967453, -0.007243181113153696, 0.07167530059814453, -0.1693587750196457, -0.19282108545303345, -0.050828199833631516, -0.11169099807739258, -0.07493122667074203, 0.24850240349769592, 0.335270494222641, 0.1783819943666458, -0.06560740619897842, -0.011992705054581165, -0.2647514045238495, 0.1880946159362793, 0.07784129679203033, -0.07602736353874207, 0.12503324449062347, -0.42108404636383057, 0.4101145565509796, 0.08163938671350479, -0.14345882833003998, -0.2587287425994873, 0.1653546392917633, -0.18848399817943573, 0.170343279838562, -0.08824151754379272, 0.3126612901687622, -0.08463116735219955, 0.18505996465682983, 0.022163139656186104, 0.170810729265213, -0.0871572270989418, -0.1974148452281952, -0.1289280205965042, 0.23709043860435486, -0.24070116877555847, 0.16928161680698395, 0.05480676889419556, 0.4120897054672241, -0.046180542558431625, 0.10595749318599701, 0.4214019179344177, -0.027202183380723, -0.17010654509067535, 0.03016839548945427, 0.15266390144824982, -0.004901569802314043, 0.11046311259269714, 0.10515942424535751, -0.12406012415885925, 0.0427514985203743, -0.12277442961931229, 0.04076468572020531, 0.06307713687419891, 0.013862195424735546, -0.17445039749145508, 0.2680433392524719, -0.047498296946287155, -0.1905670166015625, -0.3329378664493561, 0.4064115583896637, -0.20537425577640533, 0.005336570553481579, 0.2562299072742462, 0.1369544416666031, -0.33206290006637573, 0.14418743550777435, -0.04611529782414436, 0.19192519783973694, -0.22805511951446533, 0.002673603128641844, -0.08386534452438354, 0.13088110089302063, 0.20197413861751556, 0.15958884358406067, -0.14896656572818756, 0.24939242005348206, -0.13731327652931213, 0.35562002658843994, 0.09832553565502167, -0.44995883107185364, -0.37810924649238586, 0.03188768029212952, -0.37579694390296936, -0.02306981012225151, 0.07452639192342758, -0.22590602934360504, 0.5838208794593811, -0.1840146780014038, 0.0712347999215126, 0.3171505928039551, -0.11276273429393768, -0.05089489370584488, -0.09992905706167221, -0.3260997235774994, 0.13344985246658325, 0.08847923576831818, -0.034063976258039474, 0.05603928864002228, 0.02986283227801323, 0.31265923380851746, 0.16481801867485046, -0.2535798251628876, 0.06420867890119553, 0.34715110063552856, 0.13755148649215698, -0.07331730425357819, -0.046763963997364044, -0.015037662349641323, -0.1890811026096344, -0.060126952826976776, 0.13089874386787415, 0.6019637584686279, 0.17817442119121552, -0.3046554923057556, -0.15070508420467377, -0.17057381570339203, -0.003508841386064887, -0.13738246262073517, 0.23817099630832672, 0.1877826452255249, 0.1591787189245224, 0.027481993660330772, 0.05610455200076103, 0.24452264606952667, -0.3581734597682953, -0.34077736735343933, -0.04497600346803665, 0.2606639862060547, -0.004841255024075508, -0.2591896057128906, 0.15488436818122864, 0.3563857078552246, 0.3486480712890625, 0.0376991406083107, 0.057180482894182205, -0.06610007584095001, -0.2662828862667084, 0.16544435918331146, -0.0018792975461110473, 0.09225454181432724, 0.14860105514526367, -0.44317159056663513, 0.15912166237831116, 0.20658992230892181, 0.22044922411441803, -0.3144567012786865, -0.06703069806098938, 0.45346301794052124, 0.48910900950431824, 0.036277007311582565, 0.10738534480333328, 0.025401843711733818, 0.31796708703041077, -0.0415220782160759, -0.18600058555603027, -0.003835906507447362, 0.1625525951385498, 0.26361286640167236, 0.04100913926959038, -0.09344621747732162, -0.41893792152404785, 0.2829892635345459, 0.7185632586479187, -0.1966494619846344, 0.25581803917884827, 0.23339079320430756, 0.031401850283145905, -0.2271120697259903, 0.0466245636343956, -0.44407445192337036, 0.2549785375595093, 0.2788476347923279, 0.2681043744087219, 0.13414514064788818, 0.17815962433815002, 0.04830453544855118, 0.13956600427627563, -0.0660703256726265, -0.24604077637195587, 0.11307627707719803, 0.08998648077249527, -0.08760733902454376, -0.2514945864677429, 0.08532732725143433, -0.045035116374492645, 0.1253264993429184, -0.2006140947341919, -0.30338335037231445, 0.17864680290222168, -0.17972585558891296, -0.16301533579826355, -0.18220782279968262, -0.3148112893104553, -0.05921466276049614, 0.18580153584480286, 0.043219901621341705, -0.04975780472159386, 0.05583398416638374, 0.38852816820144653, 0.45854651927948, -0.18453842401504517, 0.06911882013082504, -0.1597394049167633, -0.2829996943473816, -0.2647772431373596, 0.18322832882404327, 0.16877217590808868, 0.26084762811660767, 0.3231385350227356, -0.10662610828876495, 0.08184941858053207, -0.34420838952064514, -0.307697594165802, 0.23933783173561096, -0.2616440951824188, 0.1837863177061081, -0.007095548324286938, 0.15236735343933105, -0.019883479923009872, -0.23663532733917236, -0.15701383352279663, 0.20151910185813904, -0.26496654748916626, -0.09711608290672302, -0.3870859444141388, 0.0635421946644783, -0.0555429607629776, -0.46657249331474304, -0.5568021535873413, -0.28786027431488037, 0.4521853029727936, -0.22673045098781586, -0.03833194077014923, 0.027201000601053238, 0.0805591344833374, 0.19780249893665314, -0.0809098482131958, 0.011397657915949821, -0.46750906109809875, -0.24783563613891602, 0.02299068681895733, -0.12719124555587769, -0.36662623286247253, -0.24521858990192413, 0.030495507642626762, 0.17175805568695068, -0.3337725102901459, -0.31765151023864746, -0.07138970494270325, -0.2055305689573288, 0.24886280298233032, 0.10332155227661133, -0.12966091930866241, 0.3361969590187073, -0.3622722029685974, -0.21653470396995544, -0.18753275275230408, -0.09919052571058273, 0.1613570749759674, 0.3437235355377197, 0.1981695592403412, 0.11437778174877167, 0.278198778629303, -0.07409875094890594, 0.6019594669342041, 0.13010230660438538, 0.0468023307621479, 0.14445151388645172, -0.02795211784541607, 0.20851117372512817, -0.21768875420093536, -0.5086158514022827, 0.4292478859424591, 0.11679434031248093, -0.2174568772315979, 0.2087641954421997, -0.15430204570293427, -0.3772731423377991, -0.1395050436258316, -0.4591852128505707, -0.07456883043050766, -0.2913776636123657, 0.3191235661506653, 0.08438914269208908, -0.09951670467853546, 0.006828482262790203, -0.19419534504413605, -0.21850277483463287, -0.12066416442394257, 0.13029104471206665, 0.1267644315958023, 0.036255404353141785, 0.08843822032213211, -0.3209337592124939, -0.14582037925720215, -0.4038724899291992, 0.01797463558614254, 0.18517637252807617, 0.45076319575309753, -0.5764355659484863, 0.28847503662109375, 0.08597142994403839, 0.00882876105606556, 0.3867132365703583, -0.21529515087604523, 0.0027772067114710808, 0.25854378938674927, 0.447002112865448, 0.2073512077331543, 0.2832023501396179, -0.19604091346263885, -0.2514169216156006, 0.48586776852607727, 0.30709636211395264, -0.22004106640815735, 0.0301252081990242, 0.21432937681674957, 0.18483470380306244, -0.1372201293706894, 0.029784997925162315, 0.05858021602034569, -0.3915022015571594, -0.3112432062625885, 0.3392795920372009, 0.566106915473938, -0.036862898617982864, -0.017980093136429787, 0.02954290062189102, 0.2167554497718811, 0.005473647266626358, 0.41348519921302795, -0.22285547852516174, -0.08177506923675537, 0.3747662901878357, -0.004029907286167145, 0.11484808474779129, -0.017432229593396187, -0.026049278676509857, 0.36234423518180847, 0.15213154256343842, -0.26790687441825867, 0.06530564278364182, -0.39426934719085693, 0.4741290509700775, 0.39243218302726746, 0.0945780798792839, -0.03113459423184395, -0.0038029628340154886, 0.14063329994678497, -0.2975141108036041, 0.28628480434417725, 0.3217414319515228, 0.27209362387657166, -0.34057894349098206, -0.3129255175590515, 0.3925608992576599, 0.025136787444353104, 0.03525155410170555, 0.22538790106773376, 0.24077953398227692, -0.19570760428905487, -0.021729981526732445, -0.09407451003789902, 1.3331972360610962, 0.44699615240097046, 0.15337686240673065, 0.14188367128372192, -0.24851065874099731, 0.10710683465003967, -0.23316186666488647, -0.20410245656967163, 0.25810596346855164, 0.21542178094387054, -0.09540503472089767, 0.22300899028778076, -0.0015434578526765108, 0.31544211506843567, -0.35483452677726746, 0.240084707736969, -0.21093271672725677, -0.09995348751544952, 0.17286086082458496, 0.4671252965927124, -0.09792076051235199, -0.2079845815896988, -0.25885728001594543, 0.25868770480155945, 0.09882728010416031, 0.22391067445278168, 0.16472704708576202, -0.2662474513053894, -0.04264188930392265, -0.3018907308578491, -0.6961404085159302, 0.1005692407488823, -0.3184017539024353, -0.3417174518108368, -0.545469343662262, -0.12995493412017822, 0.2826797068119049, 0.03617962449789047, 0.16273708641529083, 0.06529852002859116, -0.2807627022266388, 0.20302195847034454, 0.009891059249639511, 0.0995783805847168, 0.1525999754667282, -0.14826145768165588, 0.45214515924453735, -0.2773122191429138, -0.31568044424057007, 0.25509828329086304, 0.005866764113306999, -0.06232493743300438, -0.5047733783721924, -0.051357608288526535, 0.01187199167907238, 0.016231494024395943, 0.10437621921300888, 0.43192049860954285, 0.04324067756533623, -0.20516638457775116, 0.19859786331653595, -0.12141378968954086, -0.25319740176200867, 0.07502450048923492, -0.09757469594478607, -0.27552086114883423, -0.16468021273612976, 0.45041200518608093, 0.14989735186100006, -0.2265395075082779, 0.4809013605117798, 0.3105870187282562, -0.16434161365032196, -0.3908766806125641, -0.0836862102150917, 0.24942952394485474, -0.5234820246696472, 0.07702396810054779, -0.028224991634488106, 0.03691549226641655, -0.33903777599334717, 0.294201135635376, -0.04097673296928406, 0.03866009786725044, -0.09925076365470886, -0.23836953938007355, -0.19475007057189941, -0.05977845937013626, 0.08219961076974869, 0.13659514486789703, -0.07131366431713104, 0.3921564519405365, 0.13778705894947052, -0.227803573012352, -0.4338137209415436, -0.022294336929917336, -0.22620278596878052, 0.21204505860805511, 0.43151426315307617, -0.1325906664133072, 0.25580090284347534, -0.04972776025533676, 0.14941725134849548, -0.10514272004365921, 0.02779701165854931, -0.2623109817504883, -0.042990848422050476, 0.0823613777756691, 0.11803022772073746, 0.18561162054538727, 0.1323128342628479, -0.10524655878543854, -0.119707390666008, 0.24836012721061707, 0.22963379323482513, 0.17735959589481354, 0.06114829704165459, 0.0486338809132576, -0.09895803779363632, 0.1509975790977478, 0.11235423386096954, -0.13948848843574524, 0.392362117767334, 0.41676685214042664, -0.13481199741363525, 0.193163201212883, 0.01814122311770916, -0.0772509053349495, 0.08993618935346603, 0.1282999962568283, 0.22439303994178772, 0.05424016714096069, -0.09957372397184372, 0.14472506940364838, 0.10097353905439377, 0.26637470722198486, 0.07747509330511093, -0.020806044340133667, -0.15610989928245544, 0.0022618179209530354, 0.28246989846229553, 0.2942678928375244, -0.04855915904045105, 0.16140876710414886, -0.19192084670066833, -0.38251665234565735, 0.031092016026377678, 0.022492410615086555, -0.043314967304468155, 0.1234695091843605, 0.19323956966400146, -0.20461821556091309, -0.15610282123088837, 0.05262453109025955, 0.05685568228363991, 0.1983296126127243, -0.1778898984193802, -0.061146412044763565, 0.2848489582538605, 0.04911248758435249, -0.025412922725081444, 0.1481504887342453, -0.15199188888072968, 0.2648301124572754, 0.10130544751882553, 0.21097499132156372, 0.20454232394695282, -0.19110272824764252, 0.13170550763607025, 0.10005311667919159, 0.15528857707977295, 0.3295283317565918, -0.007628338411450386, 0.3978172540664673, -0.04416237771511078, -0.2146414965391159, -0.03621651977300644, 0.3101056218147278, -0.09886741638183594, 0.08223187923431396, -0.050283629447221756, -0.20623627305030823, -0.41701334714889526, 0.011311501264572144, -0.02095668949186802, -0.13312400877475739, -0.012766750529408455, 0.01117729302495718, -0.2615373730659485, 0.03507646545767784, -0.3658250868320465, -0.2692299485206604, -0.003394981613382697, -0.39106208086013794, 0.41162940859794617, 0.2446998953819275, -0.10394418239593506, 0.17127351462841034, 0.4762535095214844, 0.46048903465270996, 0.013184064999222755, -0.13290482759475708, 0.22549651563167572, 0.17440831661224365, -0.16479790210723877, 0.058158989995718, 0.36647742986679077, 0.05629836395382881, 0.04349934309720993, 0.05736011639237404, 0.2743002772331238, -0.26062193512916565, 0.010690814815461636, 0.06696009635925293, 0.13824579119682312, -0.2532535791397095, 0.1898958683013916, -0.10795925557613373, 0.246744766831398, -0.7149043083190918, -0.07745813578367233, -0.5943198204040527, -0.039199408143758774, 0.46063685417175293, -0.08980320394039154, 0.10580629110336304, -0.3524148464202881, 0.13924533128738403, -0.394332617521286, 0.32550352811813354, 0.24739588797092438, 0.26962053775787354, -0.03998792916536331, 0.012463675811886787, -0.17451541125774384, -0.05069559067487717, 0.15360553562641144, 0.10970723628997803, -0.33149051666259766, -0.03740835189819336, 0.3865385353565216, 0.18272432684898376, 0.03906804323196411, -0.12032055854797363, -0.4215032458305359, 0.16723386943340302, -0.3105471730232239, 0.2724185585975647, 0.0003334798675496131, 0.5711421370506287, 0.12390231341123581, -0.12677247822284698, -0.09596828371286392, 0.32320961356163025, 0.1145709827542305, -0.2118297964334488, -0.22167545557022095, -0.07720738649368286, -0.09159085899591446, 0.05294232815504074, 0.06047689914703369, 0.8049712181091309, -0.2886042594909668, -0.08352064341306686, 0.06893179565668106, 0.07849312573671341, -0.14894679188728333, -0.007467733696103096, -0.07291287183761597, 0.2028152197599411, 0.036536265164613724, 0.305482417345047, -0.09905630350112915, -0.23754431307315826, -0.08398965746164322, 0.006491389125585556, -0.2925955057144165, 0.01000820379704237, -0.14158208668231964, -0.06673882901668549, -0.17465922236442566, 0.24185320734977722, -0.012543026357889175, -0.07497862726449966, -0.24966290593147278, -0.12446339428424835, 0.45705851912498474, -0.08452226966619492, -0.2663290202617645, -0.0924241840839386, 0.3227212727069855, -0.03915797546505928, -0.0024178384337574244, -0.5286850929260254, 0.15864577889442444, 0.23033249378204346, 0.0859348252415657, 0.17097295820713043, 0.2076754868030548, 0.23881617188453674, 0.12077973037958145, -0.11165040731430054, -0.010602368041872978, 0.24128283560276031, 0.025633875280618668, 0.16395679116249084, -0.3027098774909973 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
@gegallego there were some concerns regarding dataset usage & attribution by a for-profit company, so couldn't take it forward. Also the download links were unstable. But I guess if you want to test the fairseq benchmarks, you can connect with them directly for downloading the dataset.
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
46
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). @gegallego there were some concerns regarding dataset usage & attribution by a for-profit company, so couldn't take it forward. Also the download links were unstable. But I guess if you want to test the fairseq benchmarks, you can connect with them directly for downloading the dataset.
[ -0.35517919063568115, 0.2733171880245209, -0.0848911702632904, 0.043970949947834015, -0.21060757339000702, -0.09972131252288818, 0.014361103996634483, 0.16643014550209045, -0.33349624276161194, 0.18587346374988556, -0.25436070561408997, -0.07739324122667313, 0.05462602153420448, -0.11916062980890274, 0.18836252391338348, -0.2674562633037567, 0.1272600293159485, 0.015944868326187134, -0.4990532696247101, -0.2887563407421112, -0.0022724145092070103, 0.082529217004776, -0.35344016551971436, -0.06582826375961304, -0.22671081125736237, -0.0015484389150515199, -0.3274192810058594, -0.14230690896511078, -0.2602281868457794, -0.2481783628463745, -0.05932224541902542, 0.18650823831558228, 0.07233172655105591, 0.503970742225647, -0.00010577375360298902, -0.18892797827720642, 0.3732987344264984, -0.24888038635253906, -0.30084916949272156, 0.08204173296689987, -0.2667970657348633, 0.07941798865795135, -0.5366250276565552, -0.08511144667863846, -0.22786392271518707, -0.28439274430274963, 0.021157156676054, -0.05453409627079964, 0.14953117072582245, 0.6374399065971375, 0.22251683473587036, 0.2601235508918762, 0.08486266434192657, -0.1991482377052307, 0.18560966849327087, -0.16398406028747559, -0.06907812505960464, 0.19053880870342255, 0.27503541111946106, -0.0210320632904768, -0.08197378367185593, 0.29985010623931885, 0.10422207415103912, -0.0445658415555954, -0.23737722635269165, -0.30531370639801025, -0.1707395315170288, -0.34541991353034973, 0.12469977140426636, 0.5373836159706116, 0.5419611930847168, -0.14564752578735352, -0.3013558089733124, -0.02130049467086792, 0.21596643328666687, -0.013928602449595928, -0.02585447207093239, 0.0006626208196394145, -0.13791605830192566, 0.2246890813112259, -0.0034155931789427996, -0.07485666871070862, -0.2043161541223526, 0.15446265041828156, -0.06556984037160873, 0.4908932149410248, -0.021509287878870964, -0.15485616028308868, 0.1846322864294052, -0.24811547994613647, -0.27016064524650574, -0.025791451334953308, -0.22894257307052612, 0.04442352429032326, -0.19478677213191986, -0.30743661522865295, 0.21981042623519897, -0.14595936238765717, 0.10539776086807251, -0.5148685574531555, -0.2520381808280945, 0.07679232954978943, -0.029841413721442223, 0.03801867738366127, 0.028797822073101997, 0.4303642213344574, 0.08225397020578384, 0.01392398588359356, 0.014390015043318272, -0.12868230044841766, -0.024852696806192398, 0.28484222292900085, 0.008504312485456467, 0.12348951399326324, -0.65891432762146, 0.23969843983650208, -0.19562765955924988, -0.3423020839691162, -0.39119216799736023, 0.10411300510168076, 0.1085190698504448, 0.012172875925898552, -0.10719586908817291, 0.34251558780670166, -0.03214569017291069, 0.11864088475704193, -0.28885143995285034, 0.3779182434082031, -0.2201814502477646, -0.3948865532875061, -0.06383854150772095, 0.2210027575492859, -0.2729826867580414, 0.07725386321544647, 0.33877381682395935, 0.47717639803886414, 0.18673959374427795, -0.08890224248170853, 0.2831927239894867, 0.03269730508327484, -0.04127618297934532, -0.06439996510744095, 0.25503525137901306, -0.06184927001595497, 0.09184061735868454, 0.010809890925884247, -0.1270465850830078, -0.2597825825214386, -0.2591841518878937, -0.006658107507973909, 0.1293061375617981, -0.033812444657087326, -0.1639396697282791, 0.23012933135032654, -0.13514558970928192, -0.26540160179138184, -0.264210969209671, 0.6950762867927551, -0.2816903591156006, -0.17592571675777435, 0.1762402057647705, 0.051303617656230927, -0.42134803533554077, 0.23017723858356476, -0.008358914405107498, 0.372610479593277, -0.3870702385902405, -0.05697270482778549, 0.12884625792503357, 0.13565930724143982, -0.02021707035601139, 0.16022001206874847, -0.15454548597335815, 0.28426608443260193, -0.07054571807384491, 0.3429222106933594, 0.15545931458473206, -0.4663974642753601, -0.42666009068489075, 0.13625212013721466, -0.05377919599413872, -0.014941353350877762, 0.14752662181854248, -0.2671591639518738, 0.728039026260376, -0.20253866910934448, -0.03575490787625313, 0.39766207337379456, 0.1310451328754425, 0.1978927105665207, -0.23835411667823792, -0.2894972860813141, 0.3342304229736328, 0.1956881880760193, -0.02427065186202526, -0.0691484734416008, -0.02180851623415947, 0.0838322713971138, 0.1579398810863495, -0.29658395051956177, 0.14826379716396332, 0.19800372421741486, -0.016970310360193253, -0.32432806491851807, 0.11543790996074677, -0.1188996285200119, 0.014397767372429371, 0.08778877556324005, -0.16107264161109924, 0.5759598612785339, 0.31113284826278687, -0.14695166051387787, -0.2139991819858551, -0.23470240831375122, -0.07711323350667953, -0.30215272307395935, 0.22283384203910828, 0.18029797077178955, 0.13226783275604248, 0.21838410198688507, -0.06274209916591644, 0.18299318850040436, -0.17975202202796936, -0.30597639083862305, 0.0632370263338089, 0.15463198721408844, 0.03358656167984009, -0.26362931728363037, 0.2943403720855713, 0.28895169496536255, -0.008816721849143505, -0.017070412635803223, -0.12835189700126648, 0.1494235396385193, -0.1889587640762329, 0.30210158228874207, 0.3540576696395874, 0.08780956268310547, 0.2557056248188019, -0.5296878218650818, 0.10476715117692947, 0.4869799315929413, 0.17433258891105652, -0.08210958540439606, -0.20450443029403687, 0.40140435099601746, 0.3025272786617279, 0.07748459279537201, 0.2597224712371826, -0.17156510055065155, 0.27477824687957764, 0.011066037230193615, -0.18124732375144958, 0.03983999788761139, 0.37306472659111023, 0.2577480673789978, -0.18588629364967346, -0.004003937356173992, -0.21104301512241364, 0.20287741720676422, 0.693356990814209, -0.14992080628871918, 0.44641879200935364, 0.23415464162826538, -0.14736858010292053, -0.2394634485244751, 0.11440638452768326, -0.3307739794254303, 0.3838004767894745, 0.2252083122730255, 0.32874080538749695, 0.03171386942267418, 0.11547791212797165, -0.01753056049346924, 0.2093214988708496, -0.04898720234632492, -0.44043728709220886, 0.0404125340282917, 0.20456118881702423, -0.2765513062477112, -0.2801459729671478, -0.02691243775188923, 0.01151817012578249, 0.11302316933870316, -0.14199110865592957, -0.1876503974199295, 0.01644524745643139, -0.04354613274335861, -0.11730882525444031, -0.028066202998161316, -0.27990278601646423, -0.01295993011444807, 0.499672532081604, 0.035166800022125244, -0.07766910642385483, 0.2945326864719391, 0.22815756499767303, 0.40966132283210754, -0.20716358721256256, -0.061526719480752945, -0.13809387385845184, -0.4016669690608978, -0.35573476552963257, 0.20328301191329956, 0.12438084930181503, 0.4340558648109436, 0.06779171526432037, -0.17085623741149902, 0.26481306552886963, -0.14784906804561615, -0.16423627734184265, 0.2659851610660553, -0.2536758780479431, 0.30712008476257324, -0.35553646087646484, -0.09926237165927887, -0.26205796003341675, -0.21195600926876068, -0.19348859786987305, -0.11728352308273315, -0.019376691430807114, 0.00928151048719883, -0.3579934239387512, -0.2484484314918518, 0.0018920105649158359, -0.4207041561603546, -0.35747572779655457, -0.3441031277179718, 0.2667470872402191, -0.31425657868385315, -0.04575386270880699, -0.23315785825252533, 0.053805120289325714, 0.2283514142036438, -0.1180998682975769, 0.1282992959022522, -0.308658629655838, -0.37234190106391907, 0.23619715869426727, -0.37312889099121094, -0.4347393810749054, -0.19016563892364502, 0.1128445714712143, 0.20090873539447784, -0.19623008370399475, -0.2799496054649353, 0.08984055370092392, -0.07578710466623306, 0.2916796803474426, 0.19344627857208252, 0.0735822468996048, 0.2507292330265045, -0.2208976298570633, -0.14608700573444366, -0.0767679363489151, -0.1419752538204193, 0.1074148416519165, 0.43290653824806213, 0.17410419881343842, -0.16418476402759552, -0.0780731588602066, -0.03977798670530319, 0.7484601736068726, 0.18186965584754944, -0.036133185029029846, 0.15509110689163208, -0.11572690308094025, 0.2861979007720947, -0.17949187755584717, -0.2003709077835083, 0.4559268653392792, 0.07021376490592957, 0.07965065538883209, 0.5873463153839111, -0.05965043976902962, -0.4037898778915405, -0.1314629763364792, -0.06342144310474396, -0.31090977787971497, -0.21882419288158417, 0.2448398619890213, 0.1556650996208191, 0.12024535983800888, 0.09251175820827484, 0.00671185739338398, -0.14991439878940582, -0.2149370014667511, 0.3076753318309784, 0.06300686299800873, 0.004087653011083603, -0.0539754219353199, -0.1839219629764557, -0.098700612783432, -0.23306094110012054, 0.04509051889181137, 0.1255948841571808, 0.4172140061855316, -0.3388790190219879, 0.10596376657485962, 0.014139321632683277, 0.07126737385988235, 0.30884039402008057, -0.24706894159317017, 0.006138392724096775, 0.2674686014652252, 0.4904710054397583, -0.03746313974261284, 0.12442144751548767, -0.3506258428096771, -0.274436891078949, 0.5050278902053833, 0.044319998472929, -0.20603162050247192, 0.13724400103092194, 0.18444706499576569, 0.18018129467964172, -0.05559049919247627, -0.05328794941306114, -0.17775782942771912, -0.35159337520599365, -0.16249507665634155, 0.4372066557407379, 0.29880666732788086, -0.0007252476643770933, -0.06718350946903229, 0.24529191851615906, 0.11700353771448135, -0.0811980664730072, 0.392259806394577, 0.16799619793891907, -0.02937311865389347, 0.3057394325733185, 0.08868134021759033, 0.028456730768084526, -0.2849119305610657, -0.1788620948791504, 0.17632153630256653, 0.22739586234092712, -0.176400825381279, 0.22874702513217926, -0.24364078044891357, 0.285416841506958, 0.2611728012561798, 0.11362357437610626, -0.05138462409377098, -0.09460438042879105, -0.0017239683074876666, -0.16714246571063995, 0.26432690024375916, 0.25623103976249695, 0.27366340160369873, -0.2923046946525574, -0.08539124578237534, 0.44945940375328064, -0.008611520752310753, -0.08778563141822815, 0.04163266718387604, 0.11388755589723587, -0.22606244683265686, 0.2638055384159088, -0.18474389612674713, 1.143046259880066, 0.1728735864162445, 0.036362096667289734, 0.2057209610939026, -0.1620517075061798, 0.14554256200790405, -0.5122419595718384, -0.028577184304594994, 0.2491745948791504, -0.06427251547574997, -0.06009881570935249, 0.14666761457920074, 0.1465679407119751, 0.15770098567008972, -0.6139906048774719, 0.4243777394294739, 0.15433667600154877, -0.138987734913826, 0.24335989356040955, 0.5378385782241821, -0.04952666535973549, -0.3192809224128723, -0.3945882022380829, 0.25102269649505615, 0.040364332497119904, 0.21105143427848816, 0.20649583637714386, -0.12213816493749619, -0.05917081981897354, -0.019847629591822624, -0.5190367698669434, 0.2081209123134613, -0.04388934373855591, -0.1314898133277893, -0.1924881488084793, -0.035057004541158676, 0.2932009696960449, 0.08340054005384445, 0.2890952527523041, 0.04649500548839569, -0.2714979350566864, 0.3969087302684784, -0.01668652333319187, 0.06819894164800644, 0.3073747456073761, -0.11669117212295532, 0.2369595468044281, -0.2375444769859314, -0.3936288356781006, 0.43143707513809204, 0.12355893105268478, -0.02358621545135975, -0.40869051218032837, -0.30949825048446655, 0.03251748904585838, 0.11469507962465286, 0.2270224541425705, 0.42231664061546326, -0.03730395808815956, -0.2104550302028656, 0.17700625956058502, -0.1110256016254425, -0.4937494099140167, 0.375779926776886, -0.09942719340324402, -0.32586535811424255, -0.1752549558877945, 0.3120814263820648, 0.04495949670672417, -0.01608387753367424, 0.2687605619430542, 0.3269921541213989, -0.0578744001686573, -0.35811424255371094, -0.18322670459747314, 0.1534421145915985, -0.5673995018005371, -0.09133441001176834, -0.11731994152069092, -0.17280642688274384, -0.19165273010730743, 0.3114626109600067, 0.09148995578289032, -0.047094982117414474, -0.038983676582574844, 0.030808158218860626, -0.1744140386581421, -0.0822184607386589, 0.17608943581581116, 0.10849500447511673, -0.12083929777145386, 0.10854367166757584, 0.049506787210702896, -0.063469298183918, -0.40718239545822144, 0.017055058851838112, -0.15130630135536194, 0.1756139099597931, 0.14964157342910767, -0.15068095922470093, 0.10053922981023788, 0.14116550981998444, 0.13926182687282562, 0.0018437154358252883, -0.1265978217124939, -0.24102839827537537, -0.15317396819591522, 0.07932477444410324, 0.0233223345130682, 0.09617739170789719, -0.16203740239143372, -0.04053530469536781, -0.19949126243591309, 0.027944128960371017, 0.19654785096645355, -0.08158060163259506, -0.13641443848609924, 0.17217431962490082, 0.04338963329792023, -0.10033083707094193, 0.14936988055706024, 0.03969186171889305, 0.28799504041671753, 0.3841152489185333, 0.07710390537977219, 0.31713688373565674, 0.06957834213972092, -0.1613859087228775, -0.035491835325956345, 0.3563210666179657, 0.0811980664730072, 0.1574627310037613, 0.013486995361745358, -0.0027523913886398077, 0.25723427534103394, 0.15779370069503784, 0.11148537695407867, 0.08533956855535507, -0.11157719045877457, -0.31100162863731384, 0.3851228952407837, 0.24498550593852997, -0.16008929908275604, 0.053122248500585556, -0.17238672077655792, -0.14832209050655365, 0.27734696865081787, 0.01310597825795412, -0.005473436322063208, -0.01270437054336071, 0.4179850220680237, -0.0069043333642184734, -0.1311264932155609, 0.10084446519613266, -0.06128682568669319, -0.12407837063074112, -0.0041745989583432674, -0.053004439920186996, 0.030240515246987343, 0.025292202830314636, 0.08653752505779266, -0.024177217856049538, -0.008701489306986332, 0.5746212601661682, 0.20383919775485992, 0.3148146867752075, 0.11402607709169388, -0.025513794273138046, 0.14453068375587463, 0.18091633915901184, 0.20901033282279968, 0.35375526547431946, 0.08608472347259521, 0.1479683667421341, -0.24323821067810059, -0.3147217333316803, -0.38566648960113525, 0.08551337569952011, 0.20593899488449097, -0.125652015209198, 0.12578627467155457, -0.23867233097553253, -0.25335589051246643, 0.06280387938022614, -0.07040850073099136, -0.013311746530234814, -0.07975776493549347, 0.09355928748846054, -0.08587857335805893, -0.10892089456319809, -0.2355792373418808, -0.25241389870643616, 0.17216266691684723, -0.1859840452671051, 0.47692424058914185, 0.10654523968696594, -0.007556151133030653, 0.16429363191127777, 0.6191942095756531, 0.29398852586746216, -0.0460427887737751, -0.46760094165802, 0.18146973848342896, -0.14888572692871094, -0.017234891653060913, 0.10766294598579407, 0.467060923576355, 0.12898655235767365, -0.013679607771337032, 0.20012956857681274, 0.22691021859645844, -0.19320514798164368, -0.1744663566350937, 0.06690581142902374, -0.10858557373285294, -0.24204523861408234, -0.023925311863422394, -0.03046540729701519, 0.35592129826545715, -0.43217185139656067, -0.23568476736545563, -0.5966392159461975, -0.03256051987409592, 0.2817836403846741, -0.2985130846500397, 0.0642390176653862, -0.1308942437171936, 0.11206899583339691, -0.2124725729227066, 0.4738665521144867, 0.28633207082748413, 0.4016745686531067, -0.17265906929969788, -0.17637544870376587, -0.33882269263267517, 0.08855714648962021, 0.06959366798400879, 0.18947100639343262, -0.24205970764160156, 0.23476822674274445, 0.2082519680261612, 0.42798537015914917, 0.009279737249016762, 0.03890226036310196, -0.4901134669780731, 0.18814758956432343, -0.36551421880722046, 0.20483827590942383, -0.18749672174453735, 0.49447327852249146, 0.008143243379890919, -0.1845756322145462, -0.13464033603668213, 0.11675379425287247, 0.091679148375988, 0.03340095654129982, -0.17269496619701385, 0.03758297860622406, -0.23082533478736877, 0.22650286555290222, 0.009993233717978, 0.454685777425766, -0.10578442364931107, -0.12657782435417175, -0.1931910365819931, -0.07315002381801605, 0.03168269991874695, -0.12310925126075745, -0.040056753903627396, 0.17662395536899567, -0.016121337190270424, 0.29438963532447815, 0.008163521997630596, 0.01854180544614792, 0.17097267508506775, 0.07982717454433441, -0.22548772394657135, -0.01106205116957426, -0.09638461470603943, 0.027143243700265884, -0.10960009694099426, 0.23352694511413574, 0.05899704992771149, 0.12768617272377014, -0.11615756899118423, 0.03971217945218086, 0.44055235385894775, -0.3146030604839325, -0.30925601720809937, -0.1535417139530182, 0.3522537648677826, 0.0573386549949646, -0.10253846645355225, -0.5595282912254333, 0.18163475394248962, 0.3045865595340729, 0.1808071732521057, 0.1467261165380478, 0.12566132843494415, 0.0741310566663742, 0.08588902652263641, -0.15641926229000092, 0.04402952641248703, 0.05840553715825081, -0.09697205573320389, 0.16546891629695892, -0.23972691595554352 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
Yes, that dataset is not easy to download... I had to copy it to my Google Drive and use `rsync` to be able to download it. However, we could add the dataset with a manual download, right?
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
37
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Yes, that dataset is not easy to download... I had to copy it to my Google Drive and use `rsync` to be able to download it. However, we could add the dataset with a manual download, right?
[ -0.3261704444885254, 0.25857624411582947, -0.09217389672994614, -0.033368077129125595, -0.055430881679058075, 0.020177975296974182, 0.0042863511480391026, 0.1221487820148468, -0.3325340747833252, 0.2870296537876129, -0.24631232023239136, -0.16635265946388245, -0.08833810687065125, 0.043067652732133865, 0.15195423364639282, -0.04609304666519165, 0.10058843344449997, 0.008411405608057976, -0.2816011309623718, -0.31707119941711426, -0.09997717291116714, 0.0702609047293663, -0.10389380156993866, -0.17984789609909058, -0.10231158137321472, -0.11362048983573914, -0.2879885733127594, -0.12926186621189117, -0.3628217279911041, -0.16106204688549042, 0.08287819474935532, 0.2118593156337738, 0.10541854053735733, 0.338577538728714, -0.00010498318442841992, -0.1688213050365448, 0.21882092952728271, -0.21010902523994446, -0.4650348722934723, -0.12277833372354507, -0.26333940029144287, -0.19001580774784088, -0.5593048334121704, -0.058939553797245026, -0.1318381130695343, -0.15390004217624664, 0.19063107669353485, 0.10638461261987686, 0.10014401376247406, 0.5843333005905151, 0.22896383702754974, 0.07180847227573395, 0.17176732420921326, -0.2216980904340744, 0.30095064640045166, 0.11322957277297974, -0.14456135034561157, 0.2121613621711731, 0.20203877985477448, 0.1368405967950821, 0.18799182772636414, 0.2498549371957779, 0.06230074167251587, -0.1541406661272049, -0.031292617321014404, -0.2617175877094269, -0.18313418328762054, -0.4605367183685303, 0.10670144855976105, 0.42210134863853455, 0.6699705123901367, -0.16043971478939056, -0.22267411649227142, -0.11127518117427826, 0.31614115834236145, -0.13186779618263245, -0.04156690090894699, 0.07622527331113815, -0.18028141558170319, 0.24222877621650696, 0.08786184340715408, -0.3472372591495514, -0.18163461983203888, 0.2786093056201935, 0.003075141692534089, 0.3151160478591919, -0.09892426431179047, -0.08513021469116211, 0.059056226164102554, -0.18150119483470917, -0.3160821795463562, -0.0776873528957367, 0.02006682939827442, 0.1641685515642166, -0.04844270646572113, -0.2551892101764679, 0.26030221581459045, -0.11569473892450333, 0.12743864953517914, -0.3338727653026581, -0.190826877951622, -0.11293651163578033, -0.18095724284648895, 0.03270242363214493, -0.00875441450625658, 0.3533172011375427, -0.03891419991850853, 0.006751930341124535, 0.16031861305236816, -0.2577742338180542, 0.1317542940378189, 0.09493003040552139, -0.10609912872314453, 0.10619302839040756, -0.4424649178981781, 0.2819644510746002, 0.01751738227903843, -0.15212848782539368, -0.36087343096733093, 0.0009045109618455172, -0.09837111085653305, 0.09526411443948746, -0.1840297132730484, 0.27112558484077454, 0.059411272406578064, 0.22063060104846954, -0.02994557097554207, 0.3511985242366791, -0.08161812275648117, -0.167633518576622, -0.06350184977054596, 0.1821160465478897, -0.18354181945323944, 0.1410638839006424, 0.206475630402565, 0.40400901436805725, 0.13548652827739716, -0.038283608853816986, 0.2191946655511856, 0.10655932128429413, -0.2609090507030487, -0.02301613613963127, 0.13150881230831146, 0.047559358179569244, 0.1305360496044159, 0.2011229544878006, -0.2909490764141083, -0.24011661112308502, -0.3164716064929962, 0.03723813220858574, 0.1165105476975441, -0.03248119354248047, -0.1799696832895279, 0.26990318298339844, -0.11493588984012604, -0.2823358178138733, -0.3300679624080658, 0.6548676490783691, -0.16716128587722778, -0.15857458114624023, 0.02694844827055931, 0.13181711733341217, -0.40724852681159973, 0.02988564781844616, -0.09194651991128922, 0.3723149597644806, -0.34098750352859497, -0.09580416232347488, 0.04077872633934021, 0.012931243516504765, 0.10609281063079834, 0.1649022400379181, -0.045485224574804306, 0.37976107001304626, -0.12721310555934906, 0.33401477336883545, 0.17381168901920319, -0.2973576486110687, -0.428066223859787, 0.10873054713010788, -0.18398773670196533, 0.05625557154417038, 0.2124159187078476, -0.08879968523979187, 0.6740356683731079, -0.289654016494751, -0.053024739027023315, 0.5153860449790955, -0.007286007981747389, 0.07266003638505936, -0.18647362291812897, -0.3875892758369446, 0.26248234510421753, 0.1165395975112915, 0.13136036694049835, 0.10882821679115295, 0.18102537095546722, 0.3644088804721832, 0.3500249683856964, -0.2707988917827606, 0.14288955926895142, 0.33350786566734314, 0.12238459289073944, -0.15555059909820557, 0.012887177988886833, -0.03796905279159546, -0.25989028811454773, 0.012491091154515743, 0.08379049599170685, 0.5217412114143372, 0.019242126494646072, -0.24378423392772675, -0.10163304954767227, -0.28442105650901794, -0.16746756434440613, -0.09777256846427917, 0.23946484923362732, 0.3028956651687622, 0.15539748966693878, 0.03713284060359001, 0.03485923632979393, 0.29017403721809387, -0.352608859539032, -0.2636924386024475, -0.07625129073858261, 0.12942402064800262, -0.016774773597717285, -0.19084733724594116, 0.17620570957660675, 0.2271558940410614, 0.19903309643268585, -0.07359793037176132, -0.017037076875567436, 0.16290800273418427, -0.23283760249614716, 0.3128569722175598, 0.04639987275004387, 0.1513497233390808, 0.3106360137462616, -0.5115110278129578, 0.1572934091091156, 0.4161936044692993, 0.14678987860679626, -0.2736436426639557, -0.24583671987056732, 0.17215028405189514, 0.3308224678039551, 0.1557466983795166, 0.24337254464626312, -0.01840646006166935, 0.49589696526527405, 0.10717649012804031, -0.19740945100784302, -0.05404341220855713, 0.14980314671993256, 0.3694203794002533, -0.09561727941036224, -0.05429230257868767, -0.3067089915275574, 0.21389475464820862, 0.6212299466133118, -0.19692882895469666, 0.24066953361034393, 0.25204747915267944, -0.07882151752710342, -0.14635321497917175, 0.02909267321228981, -0.1906292885541916, 0.25030526518821716, 0.3527504801750183, 0.35920578241348267, 0.1053784191608429, 0.1532031148672104, -0.10187151283025742, 0.12130074203014374, 0.08636319637298584, -0.20575140416622162, 0.13375788927078247, 0.12396776676177979, -0.09414087235927582, -0.41687795519828796, 0.019733812659978867, 0.04483586922287941, 0.1779794692993164, -0.16679051518440247, -0.32044166326522827, 0.11410418897867203, -0.1600836217403412, -0.1768823117017746, 0.060124147683382034, -0.19969351589679718, -0.11205893754959106, 0.33035463094711304, 0.09858667850494385, -0.18965952098369598, 0.20491346716880798, 0.2834327518939972, 0.2777806520462036, -0.4166874289512634, -0.15252380073070526, -0.015928659588098526, -0.3203987181186676, -0.27320656180381775, 0.186057448387146, 0.23245340585708618, 0.21770690381526947, 0.2699490785598755, -0.28929319977760315, 0.18739382922649384, -0.33567920327186584, -0.31984710693359375, 0.23178359866142273, -0.24859632551670074, 0.06740742921829224, -0.24116715788841248, 0.08072241395711899, 0.0027064860332757235, -0.35516607761383057, -0.2997337579727173, -0.012559464201331139, -0.1087997779250145, -0.09835344552993774, -0.4978320002555847, -0.21455450356006622, -0.08783896267414093, -0.532808780670166, -0.5634721517562866, -0.38256287574768066, 0.3526046872138977, -0.14245638251304626, -0.027618873864412308, 0.04331182688474655, 0.004082617349922657, 0.10982189327478409, 0.02933507040143013, 0.2357153296470642, -0.28322115540504456, -0.056141018867492676, 0.24338467419147491, -0.24328316748142242, -0.40013253688812256, -0.10833737254142761, 0.053758300840854645, 0.050120823085308075, -0.03609997406601906, -0.33123934268951416, 0.20805099606513977, -0.1621939092874527, 0.39296287298202515, 0.13195542991161346, 0.129359632730484, 0.34792768955230713, -0.18761897087097168, -0.12731219828128815, -0.14078350365161896, -0.11034539341926575, 0.07690388709306717, 0.4300548732280731, 0.24325643479824066, -0.0991314947605133, 0.11578170210123062, 0.032439157366752625, 0.6805488467216492, 0.16297481954097748, 0.05031740292906761, 0.13356198370456696, -0.06713598221540451, 0.4736742377281189, -0.22701220214366913, -0.26050636172294617, 0.45799392461776733, 0.04270954430103302, -0.11451733857393265, 0.4364805817604065, 0.008746568113565445, -0.4343084692955017, -0.1088702604174614, -0.19944973289966583, -0.2343459278345108, -0.28162822127342224, 0.24889202415943146, 0.12712430953979492, 0.09769967943429947, 0.20116424560546875, -0.041191473603248596, -0.179949089884758, -0.13314147293567657, 0.2895578145980835, 0.11789516359567642, 0.05754471570253372, 0.028899354860186577, -0.15300077199935913, -0.064693383872509, -0.5273184180259705, -0.05315577611327171, 0.20051568746566772, 0.28305384516716003, -0.4398040175437927, 0.014542551711201668, -0.035618897527456284, 0.0901980772614479, 0.3260079622268677, -0.28684312105178833, -0.025601550936698914, 0.25647181272506714, 0.6237992644309998, -0.03274894133210182, 0.09540964663028717, -0.31408315896987915, -0.31943103671073914, 0.6827369928359985, 0.31488507986068726, -0.3409003019332886, 0.08245480060577393, 0.1701374500989914, 0.41300925612449646, -0.07266121357679367, -0.0695415511727333, 0.007023573387414217, -0.5352048873901367, -0.31323590874671936, 0.21338573098182678, 0.4288979172706604, -0.013669438660144806, 0.10453950613737106, 0.19035708904266357, 0.16778826713562012, 0.006785580422729254, 0.3933681845664978, -0.06707561016082764, -0.02671324834227562, 0.5132442712783813, 0.041639991104602814, 0.0016661465633660555, -0.06518334150314331, -0.18731480836868286, 0.4569416046142578, -0.015506121329963207, -0.3477780222892761, 0.09078839421272278, -0.32100623846054077, 0.27612224221229553, 0.4049679934978485, 0.13503335416316986, -0.0484025664627552, -0.08328032493591309, 0.06966687738895416, -0.21098829805850983, 0.25067874789237976, 0.2178121656179428, 0.04175212234258652, -0.37299132347106934, -0.3129318654537201, 0.41497018933296204, 0.008660185150802135, -0.13629785180091858, 0.10767071694135666, 0.2048519104719162, -0.2556140720844269, 0.22495533525943756, -0.21079762279987335, 1.2595264911651611, 0.20370663702487946, 0.07309859991073608, 0.2657434940338135, -0.31865575909614563, 0.15546636283397675, -0.5350133776664734, -0.09454388916492462, 0.32711395621299744, 0.1984892338514328, -0.02248564548790455, 0.23172809183597565, -0.06716288626194, 0.20905598998069763, -0.4089984595775604, 0.364621639251709, 0.0560600571334362, 0.11152820289134979, 0.2294214963912964, 0.5157228112220764, -0.1826920062303543, -0.34920793771743774, -0.09843354672193527, 0.27078554034233093, 0.13937507569789886, 0.2220141887664795, 0.10908293724060059, -0.2663981318473816, 0.20035049319267273, -0.13681979477405548, -0.6051567792892456, 0.27144184708595276, -0.2138940542936325, -0.057207141071558, -0.5069352984428406, -0.12188877910375595, 0.2273208349943161, 0.13640302419662476, 0.34953737258911133, 0.03223927319049835, -0.24903228878974915, 0.28390803933143616, 0.024266442283988, 0.12548144161701202, 0.2574913799762726, -0.05838308855891228, 0.3492228388786316, -0.27277058362960815, -0.19538190960884094, 0.19961419701576233, -0.034093745052814484, -0.050297126173973083, -0.40928757190704346, -0.2993161082267761, 0.027430519461631775, 0.21172530949115753, 0.14713601768016815, 0.6069576144218445, -0.14619450271129608, -0.26965758204460144, 0.18629419803619385, -0.1487138271331787, -0.3434036076068878, 0.23650722205638885, -0.22078675031661987, -0.33091065287590027, -0.27009251713752747, 0.3704417645931244, 0.18460693955421448, -0.0184132382273674, 0.37586596608161926, 0.20976273715496063, -0.24239052832126617, -0.32361406087875366, -0.08372917026281357, 0.08622393757104874, -0.5519267320632935, -0.0809667706489563, 0.031101752072572708, -0.011935110203921795, -0.32986965775489807, 0.32304590940475464, 0.04546888545155525, 0.017842084169387817, -0.12661108374595642, -0.047195374965667725, -0.1949792355298996, -0.08754183351993561, 0.17221316695213318, 0.0628008022904396, -0.01679198257625103, 0.19222506880760193, 0.08464305102825165, -0.16311106085777283, -0.43556785583496094, -0.003486785339191556, -0.0785147175192833, 0.16919687390327454, 0.219909206032753, -0.028361015021800995, 0.23503537476062775, -0.013018100522458553, 0.18014441430568695, -0.025513026863336563, -0.06446852535009384, -0.2282111942768097, -0.14379152655601501, 0.08786617964506149, 0.1438538134098053, 0.22264759242534637, 0.015805590897798538, -0.13093799352645874, -0.23106127977371216, 0.1258002668619156, 0.30197465419769287, 0.26649579405784607, -0.09473709762096405, 0.06705255061388016, -0.1655731350183487, 0.0737215131521225, 0.16287341713905334, 0.009416920132935047, 0.22011497616767883, 0.4262746274471283, 0.03111281804740429, 0.24399928748607635, 0.012867852114140987, -0.0977618470788002, -0.03770344331860542, 0.24971356987953186, 0.15822733938694, 0.02884938195347786, 0.008228746242821217, 0.03746664896607399, 0.18663494288921356, 0.22590859234333038, 0.035168685019016266, 0.04538325220346451, -0.10834942013025284, -0.11056169867515564, 0.42414921522140503, 0.2845557928085327, -0.2480110079050064, 0.15913541615009308, -0.3266994059085846, -0.25268125534057617, 0.1391417682170868, 0.056315090507268906, 0.022123092785477638, -0.10916747152805328, 0.30568748712539673, -0.12328927218914032, -0.14438751339912415, 0.017091574147343636, 0.023695560172200203, 0.2435683161020279, 0.083244688808918, -0.03505324572324753, 0.03183969110250473, 0.05666208267211914, 0.005072824191302061, 0.13703590631484985, -0.25716865062713623, 0.3858584463596344, 0.07961088418960571, 0.15197467803955078, 0.19335509836673737, -0.15827983617782593, 0.0465591624379158, 0.07297789305448532, 0.05780152976512909, 0.2665903568267822, 0.13127076625823975, 0.12933912873268127, -0.16784033179283142, -0.1768578141927719, -0.20611010491847992, 0.12530167400836945, 0.06345980614423752, 0.07563269138336182, -0.052418943494558334, -0.22318324446678162, -0.21902583539485931, 0.11126504093408585, -0.012349741533398628, -0.23950235545635223, -0.12482814490795135, 0.1331847906112671, -0.1199331060051918, -0.04487314447760582, -0.1700446903705597, -0.37927258014678955, 0.12375001609325409, -0.28637218475341797, 0.34079408645629883, 0.12899164855480194, -0.04862024635076523, 0.14648231863975525, 0.4481004476547241, 0.3994736671447754, 0.10075651854276657, -0.1546635627746582, 0.2085212618112564, 0.01823442243039608, -0.11152543872594833, 0.018064413219690323, 0.41380253434181213, 0.11495235562324524, 0.07384715974330902, 0.187687486410141, 0.2296488881111145, -0.2241993099451065, -0.03255964443087578, 0.12068671733140945, -0.09271734952926636, -0.09405191242694855, 0.21845555305480957, -0.14288592338562012, 0.176333487033844, -0.5103025436401367, -0.11386223882436752, -0.5821377635002136, 0.013606606051325798, 0.36106953024864197, -0.23121577501296997, 0.19266492128372192, -0.1597995012998581, 0.1138642206788063, -0.21106776595115662, 0.37066560983657837, 0.3844023048877716, 0.10412684082984924, -0.08183586597442627, -0.09604339301586151, -0.3968753516674042, -0.13870127499103546, 0.047226645052433014, 0.08853026479482651, -0.31935691833496094, 0.20288358628749847, 0.39512374997138977, 0.2992740571498871, -0.07664873450994492, 0.04627932235598564, -0.379761278629303, 0.11337226629257202, -0.28283536434173584, 0.13926337659358978, 0.06718271970748901, 0.511613130569458, 0.010285216383635998, -0.2501462996006012, -0.1518002301454544, 0.13266877830028534, 0.10153929144144058, -0.1446298211812973, -0.005259835161268711, -0.14812374114990234, -0.1814877837896347, 0.25802165269851685, -0.06734487414360046, 0.4292948544025421, -0.2882864475250244, -0.13585928082466125, -0.1584320217370987, -0.006950828712433577, -0.11215752363204956, -0.02259157970547676, -0.12242119014263153, 0.19815868139266968, -0.06915357708930969, 0.3408110737800598, -0.0444214828312397, -0.14713339507579803, -0.04131607711315155, 0.07860445976257324, -0.3951095938682556, 0.09343189746141434, -0.2726108133792877, 0.13148753345012665, -0.1290503591299057, 0.18551187217235565, -0.0007183623383753002, -0.13412593305110931, -0.28783997893333435, -0.166486456990242, 0.4465264081954956, -0.13181982934474945, -0.29641860723495483, -0.0705268383026123, 0.3546960651874542, 0.12908442318439484, 0.006930829491466284, -0.5353888869285583, 0.255420446395874, 0.2577599883079529, 0.0432407408952713, 0.04039378464221954, 0.15969908237457275, 0.05777737870812416, -0.023025553673505783, -0.09843343496322632, -0.0063535417430102825, 0.0906573235988617, -0.22191771864891052, 0.0700237974524498, -0.41125214099884033 ]
https://github.com/huggingface/datasets/issues/1843
MustC Speech Translation
yes that is possible. I couldn't unfortunately complete this PR, If you would like to add it, please feel free to do it.
## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
23
MustC Speech Translation ## Adding a Dataset - **Name:** *IWSLT19* - **Description:** *The Speech Translation Task addresses the translation of English audio into German and Portuguese text.* - **Hompage:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - **Data:** *https://sites.google.com/view/iwslt-evaluation-2019/speech-translation* - all data under "Allowed Training Data" and "Development and Evalutaion Data for TED/How2" - **Motivation:** Important speech dataset If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). yes that is possible. I couldn't unfortunately complete this PR, If you would like to add it, please feel free to do it.
[ -0.31441694498062134, 0.24071207642555237, -0.0985172688961029, 0.0024266124237328768, -0.04147296026349068, -0.03633299097418785, 0.0861024335026741, 0.1563127338886261, -0.3312872052192688, 0.16874606907367706, -0.3144818842411041, -0.08722862601280212, -0.08008363097906113, 0.11771414428949356, 0.2429225891828537, -0.23413078486919403, 0.12590426206588745, 0.05045660212635994, -0.34248408675193787, -0.24945923686027527, -0.021339546889066696, 0.06726808845996857, -0.07884294539690018, -0.13443897664546967, -0.14483696222305298, 0.03216995298862457, -0.2795511484146118, -0.23418667912483215, -0.30203473567962646, -0.13687889277935028, -0.019575903192162514, 0.10978420823812485, 0.10334429144859314, 0.38157448172569275, -0.000102702368167229, -0.12752215564250946, 0.25279614329338074, -0.2727610766887665, -0.3388959765434265, -0.127854585647583, -0.18108488619327545, -0.08172664046287537, -0.5909470915794373, 0.005200458690524101, -0.3022567331790924, -0.23989582061767578, -0.007225480861961842, 0.09973981231451035, 0.2261945754289627, 0.5919898152351379, 0.2505139708518982, 0.0701204165816307, 0.24646775424480438, -0.17653807997703552, 0.20979426801204681, 0.13428542017936707, -0.1943410485982895, 0.07489241659641266, 0.2492656260728836, 0.10584109276533127, 0.13419879972934723, 0.35475215315818787, 0.09580162912607193, -0.1933063566684723, -0.08367998898029327, -0.2805366516113281, -0.08627748489379883, -0.3472282588481903, 0.09634429216384888, 0.3862760066986084, 0.5706557631492615, -0.1490597277879715, -0.20055393874645233, -0.10980122536420822, 0.31913283467292786, -0.21819829940795898, -0.10300546884536743, 0.0713578537106514, -0.24414373934268951, 0.27610522508621216, 0.16571079194545746, -0.3014530837535858, -0.16010616719722748, 0.25862520933151245, 0.08146628737449646, 0.3450285494327545, -0.08520699292421341, -0.1223037987947464, 0.03758830204606056, -0.2455184906721115, -0.254019558429718, 0.006067256908863783, -0.04611898586153984, 0.08126406371593475, -0.18724289536476135, -0.28068020939826965, 0.22761163115501404, -0.10330848395824432, 0.1497875303030014, -0.3863222002983093, -0.1564149111509323, -0.12693418562412262, -0.1921883225440979, 0.04400540143251419, 0.11500038951635361, 0.3788425922393799, -0.026462556794285774, 0.03777427598834038, 0.047492578625679016, -0.2518240511417389, 0.04977170005440712, 0.11094740778207779, 0.0034477906301617622, 0.1197185143828392, -0.45591992139816284, 0.29560717940330505, -0.03506641089916229, -0.168133944272995, -0.22500458359718323, 0.010360526852309704, -0.09615656733512878, 0.1125093474984169, -0.09187377244234085, 0.28351083397865295, 0.132101908326149, 0.27973443269729614, -0.03977159038186073, 0.3609425127506256, -0.02247478812932968, -0.1811026632785797, -0.024214617908000946, 0.20698273181915283, -0.27135947346687317, 0.1940346509218216, 0.19615104794502258, 0.41220712661743164, 0.10242721438407898, 0.02470865100622177, 0.29953277111053467, 0.06390561163425446, -0.2043532431125641, 0.030297985300421715, 0.29134052991867065, -0.02420813776552677, 0.08462324738502502, 0.005342300049960613, -0.21979135274887085, -0.2398739904165268, -0.21911241114139557, 0.0841149240732193, 0.1576310098171234, 0.01786910556256771, -0.25638508796691895, 0.26004451513290405, -0.06845135241746902, -0.24235528707504272, -0.2785382568836212, 0.7449650764465332, -0.10150192677974701, -0.12975579500198364, 0.09342428296804428, 0.11645961552858353, -0.41053858399391174, 0.16276736557483673, -0.06977540999650955, 0.24694587290287018, -0.19383089244365692, -0.12824080884456635, 0.17058362066745758, 0.03469312936067581, -0.014272664673626423, 0.17066515982151031, -0.07731306552886963, 0.21621456742286682, -0.12216489017009735, 0.34644055366516113, 0.06982244551181793, -0.36579224467277527, -0.21030035614967346, 0.08619944751262665, -0.16949516534805298, -0.03468748927116394, 0.23783282935619354, -0.1547810286283493, 0.6538494825363159, -0.2722483277320862, 0.015308474190533161, 0.3843728005886078, -0.03677765280008316, 0.09691798686981201, -0.19291360676288605, -0.3223567306995392, 0.3236684799194336, 0.12448494881391525, 0.03955482318997383, 0.08096294105052948, -0.04714590311050415, 0.3634015917778015, 0.33074817061424255, -0.3230009078979492, 0.27203232049942017, 0.2625043988227844, 0.05173974856734276, -0.19403916597366333, 0.06534489244222641, -0.18766917288303375, -0.02078486979007721, -0.1414244920015335, 0.10560508072376251, 0.6179710626602173, 0.2154017835855484, -0.26421910524368286, -0.12496136873960495, -0.30515897274017334, -0.1202383041381836, -0.20980019867420197, 0.2888031601905823, 0.2694256007671356, 0.07025619596242905, 0.0411866270005703, -0.09886658191680908, 0.24387715756893158, -0.29700732231140137, -0.2975805699825287, -0.01825319603085518, 0.24787889420986176, 0.019647391512989998, -0.2429092675447464, 0.2222902476787567, 0.4088074862957001, 0.1572905331850052, 0.035228077322244644, -0.050462737679481506, 0.041401688009500504, -0.2443632036447525, 0.22956226766109467, 0.0951734408736229, 0.1721719205379486, 0.2641618847846985, -0.4821305572986603, 0.13075269758701324, 0.3708104193210602, 0.06347084045410156, -0.18448787927627563, -0.09787627309560776, 0.21774183213710785, 0.41069912910461426, 0.15224187076091766, 0.1553034484386444, -0.028025317937135696, 0.42734295129776, -0.03199227154254913, -0.21933066844940186, -0.07383982837200165, 0.09802402555942535, 0.22687384486198425, -0.1545483022928238, -0.05781152844429016, -0.301758348941803, 0.19530096650123596, 0.5034922957420349, -0.15340037643909454, 0.2943388521671295, 0.2214704304933548, -0.055239394307136536, -0.11726673692464828, 0.03823041543364525, -0.25721803307533264, 0.2364937663078308, 0.30231973528862, 0.30692288279533386, 0.03117320127785206, 0.19606824219226837, -0.02992895245552063, 0.13785842061042786, -0.034316714853048325, -0.2566351890563965, 0.18402963876724243, 0.20569895207881927, -0.238939106464386, -0.3877462148666382, 0.09466748684644699, 0.030975500121712685, 0.10880882292985916, -0.17276938259601593, -0.33004119992256165, 0.09641342610120773, -0.26992231607437134, -0.2532971203327179, 0.04540501534938812, -0.13986317813396454, 0.025939026847481728, 0.42458784580230713, 0.05583161488175392, -0.17605195939540863, 0.2835525572299957, 0.34056368470191956, 0.260561466217041, -0.4604910612106323, 0.04293812811374664, -0.10588414967060089, -0.33841273188591003, -0.15018042922019958, 0.23641414940357208, 0.1870856136083603, 0.23698262870311737, 0.19452513754367828, -0.14542093873023987, 0.06934401392936707, -0.2870328426361084, -0.27161043882369995, 0.2488452047109604, -0.25951823592185974, 0.08377016335725784, -0.2471226006746292, -0.033454183489084244, 0.030545955523848534, -0.4345565438270569, -0.20077209174633026, 0.013966056518256664, -0.12613217532634735, -0.11296123266220093, -0.44659918546676636, -0.12314305454492569, -0.11976335197687149, -0.45197173953056335, -0.5385046601295471, -0.4178852438926697, 0.3924361765384674, -0.19686974585056305, -0.058652590960264206, -0.07999193668365479, -0.028854258358478546, 0.038450319319963455, -0.04336274787783623, 0.1207188069820404, -0.34195253252983093, -0.14262571930885315, 0.07225091755390167, -0.35471346974372864, -0.3084491491317749, -0.2175128161907196, 0.025480017066001892, 0.11710833013057709, -0.19032573699951172, -0.18397825956344604, 0.08403876423835754, -0.05183802917599678, 0.34399086236953735, 0.09422163665294647, 0.05204063281416893, 0.234060138463974, -0.13342739641666412, -0.15585431456565857, -0.16844989359378815, -0.14741021394729614, 0.0870957002043724, 0.402090460062027, 0.20115937292575836, -0.014140632003545761, -0.015214969404041767, -0.010618015192449093, 0.5695931315422058, 0.21298131346702576, 0.0032866785768419504, 0.19647912681102753, -0.06911751627922058, 0.42027437686920166, -0.30303579568862915, -0.28249502182006836, 0.46883875131607056, 0.04416537284851074, -0.0698983371257782, 0.43594953417778015, 0.03206833824515343, -0.476317822933197, -0.09402760118246078, -0.2504986822605133, -0.28372758626937866, -0.28081461787223816, 0.3004727363586426, 0.10493335127830505, 0.1418054699897766, 0.017523212358355522, -0.1853661984205246, -0.2366902381181717, -0.13869339227676392, 0.30925583839416504, 0.09522780776023865, 0.10584761202335358, -0.010956056416034698, -0.23832032084465027, -0.03221051022410393, -0.3911246061325073, -0.17593128979206085, 0.16855138540267944, 0.260458379983902, -0.4749261438846588, 0.12476933747529984, -0.09683854877948761, 0.12605160474777222, 0.3391450047492981, -0.35258156061172485, -0.0310483667999506, 0.3051851689815521, 0.4792057275772095, 0.08724801242351532, 0.18700580298900604, -0.24852286279201508, -0.34644803404808044, 0.6289092898368835, 0.3033204674720764, -0.3392406105995178, 0.07346261292695999, 0.17140671610832214, 0.35403570532798767, -0.05671485513448715, -0.12584495544433594, 0.10362455248832703, -0.3130626678466797, -0.3513392508029938, 0.29418495297431946, 0.5863970518112183, -0.004417950287461281, 0.13273191452026367, 0.0856676921248436, 0.15739324688911438, -0.03300592303276062, 0.4120709300041199, -0.056556105613708496, 0.0049825613386929035, 0.5083363056182861, 0.07415775209665298, -0.058531176298856735, -0.09969852864742279, -0.13609762489795685, 0.23600433766841888, -0.02949044108390808, -0.36259546875953674, 0.04109460487961769, -0.31791141629219055, 0.3410190939903259, 0.34196898341178894, 0.19690844416618347, 0.055419959127902985, -0.11516637355089188, -0.004926564637571573, -0.17862562835216522, 0.17871667444705963, 0.21195898950099945, 0.2197781205177307, -0.26655739545822144, -0.2907707095146179, 0.33278974890708923, 0.02384805679321289, -0.13564258813858032, 0.08002528548240662, 0.14265328645706177, -0.2639535665512085, 0.30238014459609985, -0.2055172324180603, 1.2013113498687744, 0.2142936736345291, 0.07088667154312134, 0.18532247841358185, -0.27612408995628357, 0.05569576844573021, -0.4282698333263397, -0.16485778987407684, 0.2509605884552002, 0.13837116956710815, 0.0014107079477980733, 0.23329658806324005, -0.09270137548446655, 0.1877395063638687, -0.468107670545578, 0.20749177038669586, -0.03314991295337677, 0.054916657507419586, 0.1473737508058548, 0.4590070843696594, -0.14142431318759918, -0.40732142329216003, -0.37705573439598083, 0.2764766216278076, 0.1617032289505005, 0.10014849156141281, 0.18671563267707825, -0.31140032410621643, 0.16491131484508514, -0.022921418771147728, -0.6706433892250061, 0.17730183899402618, -0.18283474445343018, -0.1868104338645935, -0.4717199206352234, -0.1523197442293167, 0.23508870601654053, 0.2190217673778534, 0.4069221019744873, -0.01999512128531933, -0.24313488602638245, 0.2917391061782837, 0.023937363177537918, 0.1518750786781311, 0.13129547238349915, -0.060253240168094635, 0.336307168006897, -0.3078974783420563, -0.2724238932132721, 0.22592775523662567, 0.07136157900094986, -0.07578051835298538, -0.3984644412994385, -0.27547693252563477, 0.09630893170833588, 0.15839332342147827, 0.24447102844715118, 0.5786358714103699, -0.02208838053047657, -0.3135794997215271, 0.21439334750175476, -0.11599802225828171, -0.4537077844142914, 0.13476748764514923, -0.1388072967529297, -0.2421625852584839, -0.18488487601280212, 0.2223580926656723, 0.2763397693634033, 0.005674466025084257, 0.30825698375701904, 0.25006940960884094, -0.1052585318684578, -0.36053383350372314, -0.1390840858221054, 0.18911439180374146, -0.4564021825790405, -0.02129419706761837, 0.1425509750843048, -0.1546456664800644, -0.2860097587108612, 0.27140718698501587, 0.033189352601766586, 0.056718651205301285, -0.16729971766471863, -0.012439667247235775, -0.2301473617553711, -0.09230145812034607, 0.11381363123655319, 0.0898490771651268, -0.0456598624587059, 0.33715730905532837, 0.05580366775393486, -0.09541726112365723, -0.4461349546909332, 0.004695641342550516, -0.10531258583068848, 0.22452041506767273, 0.24909019470214844, -0.11897040903568268, 0.09175297617912292, 0.011687079444527626, 0.17571097612380981, -0.003666872624307871, -0.03173393756151199, -0.2695859968662262, -0.19374336302280426, 0.07640443742275238, 0.15058785676956177, 0.25307849049568176, -0.009254565462470055, -0.058282479643821716, -0.16966810822486877, 0.08401970565319061, 0.3346136808395386, 0.2620307207107544, -0.06977768242359161, 0.13935253024101257, -0.04888492822647095, 0.033989068120718, 0.2634314000606537, -0.003681821981444955, 0.34969305992126465, 0.29207342863082886, 0.04169178381562233, 0.15400366485118866, 0.04115232825279236, -0.08303622156381607, -0.003243631450459361, 0.23002788424491882, 0.1934455931186676, 0.11719648540019989, -0.061162568628787994, 0.15714547038078308, 0.18146948516368866, 0.24354033172130585, 0.07426556199789047, 0.029962865635752678, -0.0770980715751648, -0.015185875818133354, 0.39085814356803894, 0.30262291431427, -0.2279479056596756, 0.1720363348722458, -0.20257893204689026, -0.3291877806186676, 0.1894780546426773, 0.06838762760162354, 0.04711727797985077, -0.06919478625059128, 0.35559535026550293, -0.12295305728912354, -0.27523884177207947, 0.024659639224410057, 0.0792309045791626, 0.16581401228904724, 0.09474684298038483, -0.04980013519525528, 0.021853281185030937, -0.046750348061323166, 0.07433336973190308, 0.016037000343203545, -0.1718972623348236, 0.4392331838607788, 0.12955494225025177, 0.17243775725364685, 0.2956700325012207, 0.08155203610658646, 0.09781762212514877, 0.02742324396967888, 0.17824620008468628, 0.2709980010986328, 0.11748158186674118, 0.289727121591568, -0.0029125208966434, -0.3623557984828949, -0.161157488822937, 0.265517920255661, 0.0546865276992321, -0.023885535076260567, -0.04807119444012642, -0.16416873037815094, -0.21514958143234253, -0.03873928263783455, -0.005995056591928005, -0.1757550984621048, -0.1309606432914734, 0.1293320655822754, -0.1634713113307953, -0.0372237004339695, -0.1534482091665268, -0.22954292595386505, 0.13455504179000854, -0.2233678698539734, 0.3498363196849823, 0.17688438296318054, -0.07745588570833206, 0.21226392686367035, 0.5102563500404358, 0.4451506435871124, -0.001789548434317112, -0.1606404036283493, 0.15999023616313934, -0.029453864321112633, -0.0854606181383133, 0.02356278896331787, 0.3419022262096405, 0.16737279295921326, 0.06707063317298889, 0.17426162958145142, 0.25700855255126953, -0.249370738863945, -0.11580587178468704, 0.131418377161026, -0.09739923477172852, -0.09163361042737961, 0.1299997717142105, -0.07696853578090668, 0.19173327088356018, -0.614016592502594, -0.21668392419815063, -0.5189552307128906, 0.10084575414657593, 0.31670793890953064, -0.24512936174869537, 0.08564082533121109, -0.09767092019319534, 0.1314334124326706, -0.1694406270980835, 0.26276370882987976, 0.20988889038562775, 0.07793774455785751, -0.08091319352388382, -0.14416047930717468, -0.3445741832256317, -0.060071177780628204, 0.11624494194984436, 0.08938656002283096, -0.3636898696422577, 0.01200348325073719, 0.4930252134799957, 0.3169734477996826, -0.1438658982515335, -0.13196471333503723, -0.3537127673625946, 0.17926980555057526, -0.4054436683654785, 0.2229895442724228, 0.06749872118234634, 0.6136314272880554, 0.19628366827964783, -0.12558752298355103, -0.2397252768278122, 0.2737289369106293, 0.11329150944948196, -0.04164360836148262, -0.05166718736290932, -0.23662975430488586, -0.2126127928495407, 0.1456015557050705, -0.05307766795158386, 0.48311346769332886, -0.31113991141319275, -0.06111437827348709, -0.04976906254887581, -0.16246788203716278, -0.19494745135307312, 0.00237609026953578, -0.0452817939221859, 0.2194722443819046, -0.10704992711544037, 0.2709200978279114, -0.04055020958185196, -0.1780354231595993, -0.046567123383283615, 0.06095150485634804, -0.29250645637512207, 0.13954052329063416, -0.101631760597229, 0.020232969895005226, -0.1936713010072708, 0.20096108317375183, -0.045645181089639664, -0.09389189630746841, -0.22835421562194824, -0.18692085146903992, 0.4489099383354187, -0.1410408765077591, -0.3384419083595276, -0.06486811488866806, 0.30417945981025696, 0.09849260747432709, -0.06793072074651718, -0.6517698168754578, 0.21813079714775085, 0.23313097655773163, 0.16714313626289368, 0.15499363839626312, 0.15831494331359863, 0.059993304312229156, 0.05495673418045044, -0.10764065384864807, -0.059229522943496704, 0.16673223674297333, -0.15695573389530182, 0.04283960908651352, -0.3223874568939209 ]
https://github.com/huggingface/datasets/issues/1840
Add common voice
Hey @BirgerMoell - awesome that you started working on Common Voice. Common Voice is a bit special since, there is no direct download link to download the data. In these cases we usually consider two options: 1) Find a hacky solution to extract the download link somehow from the XLM tree of the website 2) If this doesn't work we force the user to download the data himself and add a `"data_dir"` as an input parameter. E.g. you can take a look at how it is done for [this](https://github.com/huggingface/datasets/blob/66f2a7eece98d2778bd22bb5034cb7c2376032d4/datasets/arxiv_dataset/arxiv_dataset.py#L66) Also the documentation here: https://huggingface.co/docs/datasets/add_dataset.html?highlight=data_dir#downloading-data-files-and-organizing-splits (especially the "note") might be helpful.
## Adding a Dataset - **Name:** *common voice* - **Description:** *Mozilla Common Voice Dataset* - **Paper:** Homepage: https://voice.mozilla.org/en/datasets - **Data:** https://voice.mozilla.org/en/datasets - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
100
Add common voice ## Adding a Dataset - **Name:** *common voice* - **Description:** *Mozilla Common Voice Dataset* - **Paper:** Homepage: https://voice.mozilla.org/en/datasets - **Data:** https://voice.mozilla.org/en/datasets - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hey @BirgerMoell - awesome that you started working on Common Voice. Common Voice is a bit special since, there is no direct download link to download the data. In these cases we usually consider two options: 1) Find a hacky solution to extract the download link somehow from the XLM tree of the website 2) If this doesn't work we force the user to download the data himself and add a `"data_dir"` as an input parameter. E.g. you can take a look at how it is done for [this](https://github.com/huggingface/datasets/blob/66f2a7eece98d2778bd22bb5034cb7c2376032d4/datasets/arxiv_dataset/arxiv_dataset.py#L66) Also the documentation here: https://huggingface.co/docs/datasets/add_dataset.html?highlight=data_dir#downloading-data-files-and-organizing-splits (especially the "note") might be helpful.
[ -0.19141417741775513, -0.23302292823791504, -0.05791826173663139, -0.16404156386852264, 0.14640522003173828, -0.07734157145023346, 0.22383429110050201, 0.28073108196258545, -0.20906217396259308, 0.3071742653846741, -0.4487554132938385, 0.04147922992706299, -0.050497137010097504, -0.06181100383400917, 0.133749857544899, -0.1799679845571518, -0.29891419410705566, 0.09284140169620514, 0.07319478690624237, -0.0893012285232544, 0.19162937998771667, 0.07035459578037262, 0.006779446266591549, 0.0103030726313591, -0.06486362963914871, -0.08363243192434311, 0.06589164584875107, -0.058536347001791, 0.04358646273612976, -0.1326310634613037, -0.10193680971860886, 0.22079698741436005, -0.13196103274822235, 0.4909033477306366, -0.00009582508209859952, -0.029877807945013046, 0.12395966798067093, -0.1715763658285141, -0.18750357627868652, -0.14832010865211487, -0.26291516423225403, 0.19997428357601166, -0.3399201035499573, 0.1386546641588211, -0.2324221432209015, -0.08417818695306778, 0.08358412235975266, -0.17362244427204132, 0.36701104044914246, 0.42264223098754883, 0.3214830458164215, 0.17549312114715576, -0.06859931349754333, 0.033124301582574844, 0.19890134036540985, 0.10556963831186295, -0.1864423006772995, 0.14507943391799927, 0.19814172387123108, -0.004715465474873781, -0.02694227546453476, 0.373078852891922, 0.040143392980098724, -0.11042217910289764, -0.14066573977470398, 0.054183050990104675, -0.07116225361824036, -0.4051719903945923, 0.04663699120283127, 0.49606794118881226, 0.5813146233558655, -0.2943418323993683, -0.13199281692504883, -0.2549906075000763, 0.09393811225891113, -0.07445868104696274, -0.011960061267018318, 0.10402984172105789, -0.3731025457382202, 0.2526138722896576, 0.1400448977947235, -0.17295287549495697, -0.09266521036624908, 0.1806473731994629, 0.09820470958948135, 0.2873314619064331, -0.09024006873369217, -0.34774893522262573, 0.03502858802676201, -0.1297863870859146, -0.2782461643218994, 0.17417171597480774, 0.37455838918685913, 0.07190905511379242, -0.2025439739227295, -0.20451833307743073, 0.17220497131347656, -0.49435150623321533, 0.33736371994018555, -0.2338503897190094, 0.308848112821579, 0.19370156526565552, -0.2733045518398285, 0.1480516940355301, -0.09295013546943665, 0.14153996109962463, 0.03365940600633621, -0.26108404994010925, 0.4790063500404358, 0.07963182777166367, 0.10170472413301468, 0.08698982745409012, -0.03551744297146797, 0.09551072120666504, -0.16837723553180695, 0.008145426400005817, 0.11574454605579376, 0.12869703769683838, -0.2746966779232025, -0.02485964447259903, -0.07742269337177277, 0.03419017791748047, 0.10076209902763367, 0.3143836259841919, -0.16743606328964233, 0.24231000244617462, 0.012937862426042557, 0.10063555091619492, -0.08718704432249069, -0.43836715817451477, -0.11320153623819351, -0.09015025943517685, -0.04226488247513771, 0.22030144929885864, 0.25128674507141113, 0.00813070498406887, 0.1794687807559967, -0.03837054595351219, 0.36359599232673645, -0.04491189867258072, -0.05802873149514198, 0.16590054333209991, -0.1160881370306015, -0.006316748447716236, 0.17763422429561615, 0.10120704025030136, -0.09472011029720306, -0.05067172646522522, -0.15217013657093048, -0.08140113949775696, 0.0066561270505189896, -0.24002471566200256, -0.23491603136062622, 0.38187506794929504, 0.20674991607666016, -0.09161975979804993, 0.17509981989860535, 0.40599310398101807, 0.020576998591423035, -0.11331001669168472, 0.05760269612073898, 0.2704989016056061, -0.3937545418739319, 0.0019517833134159446, 0.23531606793403625, 0.1386975795030594, -0.10300230979919434, -0.21271862089633942, -0.08870002627372742, 0.025947045534849167, -0.08997184783220291, 0.2812159061431885, -0.0547235906124115, 0.1473570317029953, -0.07837077975273132, 0.5168429613113403, 0.38766440749168396, -0.3474629521369934, -0.3929835855960846, 0.15681113302707672, -0.37012219429016113, -0.002555224811658263, 0.11290314048528671, -0.0325600728392601, 0.23213432729244232, 0.005464861635118723, 0.30861562490463257, 0.27369463443756104, -0.06580435484647751, 0.2519001066684723, -0.2528395354747772, -0.2755354046821594, -0.11300402134656906, 0.22014804184436798, -0.20392094552516937, -0.04755036532878876, -0.021995654329657555, 0.011440649628639221, 0.33050328493118286, -0.2774728834629059, 0.2274194061756134, 0.1372641772031784, 0.3657890260219574, 0.08011753112077713, 0.03492975980043411, -0.17511031031608582, -0.0472080297768116, -0.07068417966365814, -0.04694080725312233, 0.262759268283844, -0.11961989849805832, -0.5422862768173218, -0.32344916462898254, -0.29061123728752136, -0.07412581145763397, 0.06788193434476852, 0.3533303439617157, 0.20433974266052246, 0.12405610084533691, 0.09032760560512543, -0.1320168823003769, 0.16203100979328156, -0.015211604535579681, 0.01989629864692688, 0.07437490671873093, 0.09135537594556808, -0.23566438257694244, 0.006216812413185835, 0.26392149925231934, 0.1740456223487854, -0.1094256341457367, -0.04702010005712509, 0.012194748036563396, 0.4601745307445526, -0.34915339946746826, 0.41369563341140747, -0.07079744338989258, 0.28185293078422546, 0.23625564575195312, -0.27046576142311096, 0.09320838004350662, 0.23708783090114594, 0.03082055225968361, -0.00988602265715599, 0.19477127492427826, 0.020402617752552032, 0.4368922710418701, -0.18290503323078156, 0.2546636760234833, -0.016099728643894196, 0.3013770282268524, -0.0786271020770073, -0.10484208166599274, -0.08269836008548737, -0.027450401335954666, -0.07762555778026581, 0.15357427299022675, -0.16326777637004852, -0.5607643127441406, 0.21254366636276245, 0.536567211151123, -0.15903878211975098, 0.3975813686847687, 0.2310611456632614, -0.3788752555847168, -0.03402521833777428, 0.04175899177789688, -0.1818191260099411, 0.05794911086559296, 0.3344874680042267, 0.2248823195695877, 0.050895821303129196, -0.026341617107391357, -0.201465904712677, 0.12717463076114655, -0.05369945615530014, -0.20163162052631378, 0.39899176359176636, 0.1725071370601654, -0.010491742752492428, -0.563758134841919, -0.16078153252601624, -0.1286458820104599, -0.0980631560087204, -0.26473468542099, -0.15714633464813232, -0.14291462302207947, -0.44203630089759827, -0.1284164935350418, 0.03895293176174164, -0.13040627539157867, -0.1147742047905922, 0.4792990982532501, 0.3162689805030823, -0.06808672100305557, 0.20696111023426056, 0.03798340633511543, 0.3899497985839844, 0.0894135907292366, -0.027965325862169266, 0.002246300922706723, -0.05615009739995003, -0.16873440146446228, 0.2636245787143707, 0.054025109857320786, -0.12383830547332764, 0.22939860820770264, -0.04529862478375435, 0.14930486679077148, -0.03344372287392616, -0.3091455101966858, 0.3005314767360687, -0.16553497314453125, -0.3047586679458618, -0.12069682031869888, 0.07273177802562714, 0.15899668633937836, -0.33748045563697815, -0.010547642596065998, -0.15801817178726196, -0.2190057933330536, -0.03412763401865959, 0.0229269377887249, -0.013109203428030014, -0.33205437660217285, -0.45060643553733826, -0.20568126440048218, -0.5207065343856812, 0.11988935619592667, -0.25911229848861694, 0.11618465930223465, 0.11220387369394302, -0.22332510352134705, 0.19429664313793182, -0.18675540387630463, 0.47127047181129456, -0.32163146138191223, -0.18634945154190063, 0.362521231174469, -0.3688298463821411, -0.37247204780578613, -0.16738347709178925, -0.060676537454128265, 0.3532106578350067, -0.0775352343916893, -0.2152739018201828, -0.11164814233779907, -0.08154697716236115, 0.16899073123931885, -0.047310296446084976, 0.03261645883321762, 0.1993020921945572, 0.15910063683986664, -0.25225406885147095, -0.1729518473148346, 0.05195951089262962, 0.0556863509118557, 0.21034732460975647, 0.010344925336539745, 0.01189458929002285, 0.07780097424983978, 0.22787217795848846, 0.7560045123100281, 0.08107803016901016, -0.07607157528400421, 0.192234605550766, -0.24191078543663025, 0.07154359668493271, 0.09795183688402176, -0.05802233889698982, 0.3411959409713745, 0.13540349900722504, 0.19903048872947693, 0.583526074886322, 0.13468234241008759, -0.10795736312866211, -0.09354448318481445, 0.019406335428357124, -0.3015477657318115, -0.4096619188785553, 0.019701896235346794, -0.06512930244207382, 0.1474778652191162, -0.014565411023795605, -0.02104089967906475, -0.014075650833547115, -0.020469263195991516, 0.45381197333335876, 0.13233491778373718, -0.1864856779575348, -0.1799757182598114, 0.21314367651939392, 0.1475810706615448, -0.31764763593673706, 0.13307583332061768, 0.2769826352596283, 0.0023006361443549395, -0.24785862863063812, -0.24877503514289856, -0.11710229516029358, 0.131393700838089, 0.2856908142566681, -0.13991974294185638, -0.1206066757440567, -0.15985727310180664, 0.23484131693840027, -0.003515077056363225, 0.34971103072166443, -0.13706159591674805, -0.30631402134895325, 0.12639853358268738, -0.006240059621632099, -0.3253071904182434, -0.01577080972492695, -0.18430839478969574, 0.07753507047891617, -0.09265582263469696, -0.015822578221559525, -0.0043921032920479774, -0.26534929871559143, -0.2305489331483841, 0.017184415832161903, 0.0867437943816185, 0.005558749195188284, -0.05112696811556816, -0.1443834751844406, 0.4201834797859192, -0.2546164095401764, 0.32205837965011597, 0.22042392194271088, -0.0859731063246727, 0.24817214906215668, 0.0731482282280922, 0.14241109788417816, 0.1460684984922409, 0.01638679951429367, 0.14828191697597504, 0.23388485610485077, -0.25429901480674744, -0.24963271617889404, -0.18747350573539734, 0.19620497524738312, 0.1179952621459961, 0.19184242188930511, 0.06964878737926483, 0.00705811008810997, 0.17857016623020172, -0.13864147663116455, 0.2552046775817871, 0.2867586314678192, 0.1282338947057724, -0.08002493530511856, -0.2555849552154541, 0.1926201581954956, -0.10532338172197342, -0.10155513882637024, 0.2771303355693817, 0.02409636229276657, -0.30378109216690063, -0.07060318440198898, -0.2882118225097656, 1.0026522874832153, 0.11834371089935303, 0.19081078469753265, 0.341057151556015, 0.07266514003276825, 0.17097264528274536, -0.45450881123542786, 0.20867542922496796, 0.16320453584194183, -0.15379202365875244, -0.0546545647084713, 0.1420113444328308, -0.28635796904563904, 0.1268385946750641, -0.3761087656021118, -0.06167971342802048, -0.021405288949608803, 0.06273952126502991, 0.13250750303268433, 0.423920601606369, -0.15108823776245117, -0.4788641631603241, -0.3154272735118866, 0.2642373740673065, -0.08672880381345749, 0.2362663447856903, 0.26266857981681824, -0.25299006700515747, -0.11492902040481567, -0.06371405720710754, -0.15414340794086456, 0.2917877733707428, -0.2924611270427704, -0.049343302845954895, -0.2072123885154724, 0.09981389343738556, 0.2420375496149063, 0.17412814497947693, 0.23200723528862, 0.1393323540687561, -0.30674949288368225, 0.15881866216659546, 0.19394740462303162, 0.14408403635025024, -0.09950029850006104, 0.059138283133506775, 0.308883398771286, -0.27169865369796753, -0.16983620822429657, 0.23942983150482178, 0.25706636905670166, -0.06989514827728271, -0.26733437180519104, -0.3158339262008667, -0.003501610830426216, -0.09664526581764221, 0.310089647769928, 0.32357263565063477, -0.15490904450416565, -0.10275562107563019, 0.26445436477661133, 0.020974159240722656, -0.2815418839454651, -0.11086271703243256, 0.23352877795696259, 0.0327753908932209, -0.1501256376504898, 0.2513996958732605, 0.06102418899536133, -0.009882044047117233, 0.24717946350574493, 0.02418607845902443, -0.19096416234970093, -0.3668524920940399, -0.25493112206459045, -0.23068079352378845, -0.13141487538814545, -0.13065463304519653, -0.13456226885318756, -0.20673686265945435, -0.24587954580783844, 0.15646992623806, -0.14426657557487488, 0.19526156783103943, -0.08517726510763168, 0.0032710654195398092, -0.3673199415206909, 0.061811063438653946, 0.1946365088224411, 0.13362494111061096, -0.1124662533402443, 0.3103494644165039, 0.07744039595127106, 0.0023245939519256353, -0.5247671008110046, -0.20344290137290955, 0.04916492849588394, -0.03546033427119255, 0.3234439492225647, -0.19276297092437744, 0.40319547057151794, 0.01247746217995882, 0.3258097171783447, 0.048692736774683, -0.0774478018283844, -0.3793220520019531, -0.2583365738391876, 0.07953251898288727, 0.23769955337047577, -0.018729282543063164, 0.07884306460618973, 0.06484538316726685, -0.14208313822746277, -0.0164442490786314, 0.32884958386421204, 0.07249248772859573, 0.007933161221444607, 0.09021761268377304, -0.08632493019104004, 0.055241022258996964, 0.09650521725416183, -0.19425585865974426, -0.05032382905483246, 0.2289905995130539, 0.1543942540884018, 0.02421075478196144, -0.12392202019691467, -0.24028775095939636, -0.10213442146778107, 0.197429358959198, 0.35674387216567993, -0.08043492585420609, 0.23299643397331238, 0.009796779602766037, -0.1402052491903305, 0.12930433452129364, 0.38613229990005493, -0.0911688283085823, -0.24123342335224152, -0.12752965092658997, 0.2536960244178772, 0.4083322286605835, -0.21388572454452515, 0.12255103141069412, -0.06038608029484749, -0.3291773200035095, 0.3680531084537506, 0.17950256168842316, -0.1302817314863205, 0.2072908878326416, 0.04379023611545563, -0.03167038410902023, -0.12170815467834473, -0.11714594066143036, 0.06134205684065819, 0.11343148350715637, -0.04817500337958336, 0.005648111924529076, 0.009661531075835228, -0.027805142104625702, 0.30238640308380127, 0.06773249059915543, -0.35837697982788086, 0.2018926590681076, 0.03996630385518074, -0.08621767908334732, 0.4024357497692108, 0.07038821280002594, -0.07352357357740402, 0.015338512137532234, -0.13961178064346313, 0.2165040224790573, 0.10230559855699539, 0.4589165449142456, -0.18301676213741302, -0.01957745850086212, 0.02813812531530857, 0.3724360764026642, 0.03334345668554306, -0.044289927929639816, -0.26140496134757996, -0.04734192416071892, -0.23035211861133575, -0.16367830336093903, 0.27824050188064575, -0.07065670192241669, 0.0411745123565197, 0.03633703663945198, -0.04969312623143196, -0.1757376343011856, -0.017737340182065964, 0.04396183416247368, 0.46657735109329224, -0.08180196583271027, 0.10765805095434189, 0.007830171845853329, -0.2480558454990387, 0.14564043283462524, 0.2919987738132477, 0.09385112673044205, -0.07347642630338669, -0.20896123349666595, 0.3558448553085327, -0.07808665186166763, -0.07678297162055969, -0.11041556298732758, 0.05554620549082756, 0.27914732694625854, 0.11994370073080063, 0.21188484132289886, 0.2674846947193146, -0.3482513427734375, -0.10668934136629105, 0.018399707973003387, -0.01976734772324562, -0.08932024240493774, 0.15952332317829132, -0.10012951493263245, 0.030762843787670135, -0.3655953109264374, -0.2546171247959137, -0.5871139764785767, -0.02984534576535225, 0.3238987326622009, -0.1353873908519745, 0.13938471674919128, -0.3521350920200348, 0.1749686896800995, 0.054331518709659576, 0.26412835717201233, 0.2829340100288391, 0.04922186955809593, 0.36441001296043396, -0.06164563447237015, -0.43853411078453064, 0.2595634162425995, 0.23885893821716309, -0.09727616608142853, -0.3690236806869507, 0.023348430171608925, 0.28736981749534607, 0.14676496386528015, -0.01010334026068449, -0.29424843192100525, -0.27157336473464966, -0.2155805081129074, -0.16580188274383545, 0.1621248871088028, -0.3059244155883789, 0.28326526284217834, 0.21294623613357544, -0.31172260642051697, 0.06711211800575256, -0.07842429727315903, 0.24113158881664276, -0.04602345824241638, 0.17960214614868164, -0.17867328226566315, -0.3356575071811676, 0.2401757836341858, -0.1234486773610115, 0.2430981993675232, -0.3953340947628021, -0.2057662308216095, 0.13905052840709686, -0.0050307707861065865, -0.21321219205856323, -0.05777222290635109, 0.11268201470375061, 0.33331355452537537, 0.07565958797931671, -0.08009704202413559, -0.23068325221538544, 0.16763143241405487, 0.18346521258354187, -0.15877634286880493, -0.010084201581776142, 0.09718289226293564, -0.022934911772608757, -0.0381476953625679, 0.08628842979669571, 0.1610184758901596, -0.25503283739089966, -0.06843294948339462, -0.13316547870635986, -0.5474584698677063, 0.2972140610218048, -0.18074078857898712, -0.11779749393463135, -0.11959803104400635, 0.3474229872226715, 0.02132459729909897, 0.05120915174484253, -0.34892240166664124, 0.16873452067375183, 0.23285317420959473, 0.03474841266870499, -0.19495730102062225, 0.1563548743724823, 0.009339120239019394, -0.22000998258590698, -0.12831126153469086, 0.4098035991191864, 0.2252569943666458, -0.09016231447458267, 0.0976257249712944, -0.3563472330570221 ]
https://github.com/huggingface/datasets/issues/1840
Add common voice
I added a Work in Progress pull request (hope that is ok). I've made a card for the dataset and filled out the common_voice.py file with information about the datset (not completely). I didn't manage to get the tagging tool working locally on my machine but will look into that later. Left to do. - Tag the dataset - Add missing information and update common_voice.py https://github.com/huggingface/datasets/pull/1886
## Adding a Dataset - **Name:** *common voice* - **Description:** *Mozilla Common Voice Dataset* - **Paper:** Homepage: https://voice.mozilla.org/en/datasets - **Data:** https://voice.mozilla.org/en/datasets - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
66
Add common voice ## Adding a Dataset - **Name:** *common voice* - **Description:** *Mozilla Common Voice Dataset* - **Paper:** Homepage: https://voice.mozilla.org/en/datasets - **Data:** https://voice.mozilla.org/en/datasets - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/common_voice If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). I added a Work in Progress pull request (hope that is ok). I've made a card for the dataset and filled out the common_voice.py file with information about the datset (not completely). I didn't manage to get the tagging tool working locally on my machine but will look into that later. Left to do. - Tag the dataset - Add missing information and update common_voice.py https://github.com/huggingface/datasets/pull/1886
[ -0.13444718718528748, -0.2228568196296692, 0.00019322402658872306, -0.15788519382476807, 0.1937067061662674, 0.004948709160089493, 0.2681259512901306, 0.30204537510871887, -0.24950022995471954, 0.1795225888490677, -0.3955025374889374, 0.23003490269184113, -0.042576864361763, -0.026486150920391083, 0.006709775887429714, -0.1008288636803627, -0.102535180747509, 0.15952502191066742, 0.10418794304132462, -0.248020201921463, 0.19491495192050934, 0.0668473020195961, 0.1133062019944191, -0.07900257408618927, -0.32415780425071716, -0.1644449681043625, 0.023104477673768997, -0.14355595409870148, -0.00032603900763206184, -0.15492746233940125, -0.04535406455397606, 0.27155616879463196, -0.21029818058013916, 0.640272319316864, -0.00010049114644061774, -0.04443657398223877, 0.034192293882369995, -0.245721235871315, -0.08318940550088882, -0.19360536336898804, -0.11551865935325623, 0.10766637325286865, -0.29477161169052124, 0.11475268751382828, -0.29591676592826843, -0.25132888555526733, -0.01814759150147438, -0.23231789469718933, 0.3075147271156311, 0.30867648124694824, 0.2740311026573181, 0.07917796820402145, 0.003706845222041011, 0.10204992443323135, 0.19465556740760803, 0.1500168889760971, -0.22054997086524963, 0.1714201420545578, 0.32425156235694885, -0.13660967350006104, -0.04716964438557625, 0.46626806259155273, 0.09553948044776917, -0.20637665688991547, 0.07212285697460175, 0.03368625417351723, -0.14084811508655548, -0.4390891492366791, 0.07487880438566208, 0.4949433505535126, 0.5199841856956482, -0.4264087378978729, -0.3617733120918274, -0.31733959913253784, 0.10820242017507553, -0.2514178156852722, 0.10103006660938263, -0.11797495931386948, -0.25573962926864624, 0.2239130735397339, 0.10838688164949417, -0.12834712862968445, -0.04898758605122566, 0.08111713081598282, 0.12946955859661102, 0.4218032658100128, 0.031773604452610016, -0.25749027729034424, -0.08358451724052429, -0.13443569839000702, -0.40912097692489624, 0.2767677903175354, 0.24516011774539948, 0.21319130063056946, -0.29559504985809326, -0.16371726989746094, 0.21937306225299835, -0.5752837061882019, 0.2983841598033905, -0.14189335703849792, 0.20433644950389862, 0.1789838671684265, -0.33651256561279297, 0.11850212514400482, -0.07308215647935867, 0.13830192387104034, 0.12299621105194092, -0.18102559447288513, 0.23078250885009766, -0.07752334326505661, -0.05081876367330551, 0.025660518556833267, -0.03548511117696762, 0.11081088334321976, -0.0737336054444313, 0.009948449209332466, 0.15763501822948456, 0.002899942686781287, -0.2117074579000473, 0.1503162682056427, -0.19717516005039215, -0.013434541411697865, 0.021621104329824448, 0.29456356167793274, -0.1580667495727539, 0.32483163475990295, -0.032169222831726074, 0.09629495441913605, 0.04611615836620331, -0.16754205524921417, -0.1163628026843071, -0.10513422638177872, -0.05985746532678604, 0.17833691835403442, 0.2899326682090759, -0.23062770068645477, 0.24745160341262817, 0.09061579406261444, 0.21510525047779083, 0.023988153785467148, -0.11302030831575394, 0.14889632165431976, 0.035211727023124695, 0.013094916008412838, -0.053039923310279846, 0.14883238077163696, -0.016197681427001953, -0.0461043156683445, -0.11226869374513626, -0.14885270595550537, 0.10258497297763824, -0.09914439171552658, -0.40223321318626404, 0.33751365542411804, 0.10656420886516571, -0.08167774975299835, 0.34013158082962036, 0.3973243534564972, 0.1810900866985321, -0.26076459884643555, 0.08631574362516403, 0.20446327328681946, -0.40285664796829224, -0.1337229609489441, 0.29882702231407166, 0.042812272906303406, -0.25014275312423706, -0.12954576313495636, -0.003744315356016159, 0.06622301042079926, -0.04455653205513954, 0.22062897682189941, 0.05884141847491264, 0.0657699704170227, -0.08018829673528671, 0.4227003753185272, 0.29065248370170593, -0.2918365001678467, -0.3610621988773346, 0.16778264939785004, -0.23687061667442322, 0.1416330486536026, 0.19835561513900757, -0.10596349835395813, 0.20487749576568604, -0.004845600109547377, 0.5065509676933289, 0.21914368867874146, -0.2216193974018097, 0.05962120369076729, -0.2887994945049286, -0.15315869450569153, 0.08183412998914719, 0.09171829372644424, -0.13946163654327393, -0.06966565549373627, -0.1532021462917328, -0.11089113354682922, 0.2634883522987366, -0.20501825213432312, 0.1799527108669281, 0.13281716406345367, 0.49781420826911926, 0.11841089278459549, 0.10319483280181885, -0.20386455953121185, -0.18841953575611115, 0.01005635503679514, 0.005452773533761501, 0.31425467133522034, -0.0859173983335495, -0.5233682990074158, -0.29343631863594055, -0.30561214685440063, -0.12412905693054199, 0.010428664274513721, 0.3078222870826721, 0.26252952218055725, 0.02566687949001789, 0.020396338775753975, -0.24929039180278778, 0.12136910110712051, 0.011215443722903728, 0.07952731847763062, 0.02301575429737568, 0.08978390693664551, -0.24018947780132294, -0.16040651500225067, 0.22886274755001068, 0.3455803394317627, -0.15916527807712555, -0.06027359515428543, -0.05895129591226578, 0.3045242726802826, -0.3686719238758087, 0.33526545763015747, -0.07823125272989273, 0.35699158906936646, 0.18490159511566162, -0.1701759696006775, 0.020104030147194862, 0.19424638152122498, 0.07412027567625046, -0.17606326937675476, 0.11428381502628326, 0.10503923147916794, 0.33724507689476013, -0.14759130775928497, 0.08756483346223831, -0.1600455492734909, 0.3091048002243042, 0.010209890082478523, -0.09800926595926285, -0.06314116716384888, -0.0762409120798111, -0.18100064992904663, 0.2161414623260498, -0.015531623736023903, -0.6039129495620728, 0.21933618187904358, 0.6066964864730835, -0.050263721495866776, 0.2664571702480316, 0.18905848264694214, -0.305286169052124, 0.009106095880270004, 0.09645857661962509, -0.2371927797794342, 0.07765884697437286, 0.2682397663593292, 0.16865594685077667, 0.03856397047638893, -0.03255137801170349, -0.13287530839443207, 0.028776761144399643, -0.06176511198282242, -0.04823940992355347, 0.5199928879737854, 0.23964780569076538, 0.12906207144260406, -0.4704148769378662, -0.2076025903224945, -0.10374072939157486, 0.0820092037320137, -0.2697705328464508, -0.163481667637825, -0.0728347897529602, -0.3710727095603943, -0.05085580423474312, -0.05067089572548866, -0.3408680260181427, -0.12550002336502075, 0.3960842788219452, 0.3298541009426117, 0.008716539479792118, 0.40969470143318176, 0.05115479230880737, 0.15715231001377106, 0.06009865924715996, -0.1292620748281479, -0.07130017876625061, -0.08996076136827469, -0.16714692115783691, 0.23671001195907593, 0.14320313930511475, -0.19590452313423157, 0.23391468822956085, -0.005052829626947641, 0.1264350414276123, 0.0359356626868248, -0.4879772365093231, 0.18575140833854675, -0.40267467498779297, -0.22737669944763184, 0.005752498283982277, 0.000028853106414317153, 0.08938395977020264, -0.4461906850337982, 0.07067285478115082, -0.27567383646965027, -0.2109457552433014, -0.0913039892911911, -0.17451493442058563, 0.0008459428208880126, -0.300188273191452, -0.5085435509681702, -0.12444862723350525, -0.5271830558776855, 0.17929591238498688, -0.28192153573036194, 0.11613205820322037, 0.27798783779144287, -0.1688762605190277, 0.10679113119840622, -0.25143963098526, 0.4454710781574249, -0.30801889300346375, -0.22585105895996094, 0.2266342043876648, -0.1953069269657135, -0.3069179356098175, 0.031414806842803955, -0.15082144737243652, 0.5303369164466858, -0.015936680138111115, -0.08824033290147781, -0.178448885679245, -0.02838066965341568, 0.2868046760559082, -0.03142582252621651, 0.06839532405138016, 0.23626254498958588, 0.2672896087169647, -0.20330728590488434, -0.16307277977466583, -0.13078626990318298, 0.02340848743915558, 0.197306290268898, 0.07845790684223175, -0.014974664896726608, 0.18011870980262756, 0.13507921993732452, 0.828818142414093, 0.060088641941547394, -0.24521198868751526, 0.27925875782966614, -0.29658713936805725, 0.24241036176681519, 0.0120592275634408, -0.2315935492515564, 0.3489261567592621, 0.13632985949516296, 0.1873927265405655, 0.48026740550994873, 0.08529657870531082, -0.014054350554943085, -0.09350386261940002, 0.09538926929235458, -0.3411555290222168, -0.309034526348114, 0.21234636008739471, -0.13604819774627686, 0.13840410113334656, 0.021421615034341812, 0.06572466343641281, -0.19595198333263397, -0.10944275557994843, 0.3681486248970032, 0.13098548352718353, -0.06330396980047226, -0.15359361469745636, 0.1443217247724533, -0.014917840249836445, -0.31114837527275085, 0.04327146336436272, 0.2908506989479065, 0.16502094268798828, -0.30336564779281616, -0.1587878316640854, -0.2049720734357834, 0.20937654376029968, 0.25483477115631104, -0.2075529843568802, -0.17398719489574432, 0.16005252301692963, 0.24650231003761292, 0.019007811322808266, 0.2726384997367859, -0.09692400693893433, -0.11665637046098709, 0.15924029052257538, 0.16345040500164032, -0.35005366802215576, -0.05767941102385521, -0.21007892489433289, 0.23656213283538818, -0.0404832698404789, 0.07869674265384674, -0.048907697200775146, -0.21199893951416016, -0.2692866921424866, -0.03033808059990406, 0.09344559907913208, -0.02162821590900421, -0.01656383089721203, -0.017463387921452522, 0.3813254237174988, -0.23553183674812317, 0.4151538610458374, 0.3084324300289154, 0.009539489634335041, 0.2811662256717682, 0.25005340576171875, 0.11806488782167435, 0.22237807512283325, 0.023210817947983742, 0.3118491768836975, 0.11292519420385361, -0.21612191200256348, -0.18791057169437408, -0.19739556312561035, 0.4451722502708435, 0.11900655180215836, 0.21692241728305817, 0.08251633495092392, -0.07614617049694061, 0.029180316254496574, -0.1812075674533844, 0.3324921429157257, 0.3071976602077484, 0.22143690288066864, -0.18135318160057068, -0.2902560532093048, 0.14264094829559326, -0.006095978431403637, -0.1787075251340866, 0.37082672119140625, -0.011330611072480679, -0.3125835359096527, 0.12018285691738129, -0.38054463267326355, 1.0539369583129883, 0.10600543767213821, 0.17056255042552948, 0.3440297245979309, 0.17082630097866058, 0.21443399786949158, -0.43251940608024597, 0.14121519029140472, 0.062288496643304825, -0.21152903139591217, 0.05750102922320366, 0.1662161946296692, -0.18852314352989197, 0.03316965699195862, -0.3631232976913452, 0.06026550754904747, 0.015908783301711082, 0.06024829298257828, 0.13082216680049896, 0.3993859589099884, -0.06641823798418045, -0.4873320162296295, -0.24967996776103973, 0.1965697556734085, -0.12725909054279327, 0.2601589858531952, 0.17860925197601318, -0.24985362589359283, -0.2813640236854553, -0.0841074138879776, -0.2218979001045227, 0.20950362086296082, -0.2499837428331375, -0.21657779812812805, -0.058640677481889725, 0.05421694740653038, 0.262861043214798, 0.023547789081931114, 0.2635440528392792, 0.13672517240047455, -0.26561328768730164, 0.16961239278316498, 0.20357681810855865, 0.14257502555847168, -0.03953797370195389, 0.10316140949726105, 0.48672184348106384, -0.2618870735168457, -0.18681947886943817, 0.14631065726280212, 0.0967755988240242, -0.008074966259300709, -0.36744949221611023, -0.3758533298969269, 0.06263833492994308, -0.21917524933815002, 0.38164693117141724, 0.23621883988380432, -0.07461388409137726, -0.12784381210803986, 0.24537056684494019, 0.18140926957130432, -0.394704669713974, 0.01228315755724907, 0.12933114171028137, 0.062142856419086456, -0.15878082811832428, 0.1683378368616104, 0.11270342767238617, -0.049608729779720306, 0.30671563744544983, 0.12754829227924347, -0.057534392923116684, -0.30171552300453186, -0.3166988790035248, 0.023554278537631035, -0.22332285344600677, -0.335183709859848, 0.01059034001082182, -0.3136928677558899, -0.10528117418289185, 0.2668191194534302, 0.061105456203222275, 0.1855648159980774, 0.007017779164016247, -0.05538174510002136, -0.5129724144935608, 0.10316328704357147, 0.08678749203681946, 0.1530075967311859, -0.2143234759569168, 0.3322770297527313, 0.1086515337228775, 0.16538991034030914, -0.5192531943321228, -0.24624265730381012, 0.03329016640782356, 0.1924852430820465, 0.1842324137687683, -0.2702377438545227, 0.32704493403434753, -0.1153578832745552, 0.3327230215072632, 0.03619419410824776, -0.03053653985261917, -0.3145812749862671, -0.20677649974822998, 0.07174985110759735, 0.20165982842445374, -0.004105883184820414, 0.1488686203956604, 0.19700422883033752, -0.21910060942173004, -0.1433819830417633, 0.2331741601228714, 0.060771457850933075, -0.010069926269352436, 0.1859632134437561, 0.005492682568728924, 0.08294140547513962, 0.23637981712818146, -0.335130900144577, 0.07736317068338394, 0.15779495239257812, 0.1253010630607605, -0.020427394658327103, -0.22572603821754456, -0.22163836658000946, 0.02099039778113365, 0.19401231408119202, 0.17621012032032013, -0.08129897713661194, 0.2119423896074295, -0.012677195481956005, -0.13161379098892212, 0.24304649233818054, 0.49362608790397644, 0.03720725700259209, -0.10534258931875229, -0.017730478197336197, 0.3020403981208801, 0.3756219148635864, -0.30246350169181824, 0.15578676760196686, 0.1194751188158989, -0.18147844076156616, 0.3449588716030121, 0.11648962646722794, -0.0015551070682704449, 0.12042085081338882, -0.046393755823373795, -0.026950201019644737, -0.05550532042980194, -0.23702125251293182, 0.02963803894817829, 0.030387261882424355, -0.05365514010190964, 0.026066241785883904, 0.10194047540426254, -0.008863144554197788, 0.3165408670902252, 0.2017354965209961, -0.21977980434894562, 0.3501242697238922, 0.11471835523843765, -0.15322215855121613, 0.4321586489677429, -0.05663234740495682, 0.015574940480291843, 0.03311248496174812, -0.06502478569746017, 0.21848122775554657, 0.08243417739868164, 0.5198348164558411, -0.1819770187139511, -0.2765974998474121, 0.1574694663286209, 0.30430126190185547, -0.060805223882198334, -0.05194808542728424, -0.13808882236480713, -0.028653770685195923, -0.12118497490882874, -0.28101402521133423, 0.21425969898700714, -0.03455585613846779, 0.1360965520143509, -0.022731615230441093, -0.11950669437646866, -0.09476030617952347, -0.20544394850730896, 0.09517988562583923, 0.5703050494194031, -0.04886368662118912, 0.2297985553741455, 0.09430321305990219, -0.35981500148773193, 0.10324224829673767, 0.34856662154197693, 0.2855011522769928, -0.11418022960424423, -0.17025244235992432, 0.45187801122665405, -0.12363266199827194, -0.05184956640005112, -0.08539383858442307, 0.16822727024555206, 0.24829310178756714, 0.03721535578370094, 0.09633957594633102, 0.2396828532218933, -0.2887352705001831, -0.18793977797031403, 0.016345612704753876, 0.014206552878022194, -0.05239330977201462, 0.1453012228012085, -0.1879604607820511, -0.15689431130886078, -0.3550960123538971, -0.1093548983335495, -0.5188398361206055, -0.12691500782966614, 0.45776739716529846, 0.09511257708072662, 0.1440896838903427, -0.3524838089942932, 0.15030720829963684, 0.07764972746372223, 0.16505888104438782, 0.3841637670993805, 0.10569033771753311, 0.25535982847213745, 0.012490046210587025, -0.49825844168663025, 0.27321895956993103, 0.1742074340581894, -0.07872850447893143, -0.3084371089935303, -0.020290333777666092, 0.38063710927963257, 0.06946266442537308, 0.058356575667858124, -0.26358717679977417, -0.1606084406375885, -0.31069737672805786, -0.25412237644195557, -0.012029245495796204, -0.34385597705841064, 0.15056732296943665, 0.22030547261238098, -0.19606047868728638, 0.012534776702523232, -0.2732784152030945, 0.24780532717704773, -0.1533527374267578, 0.08552294969558716, -0.057532791048288345, -0.17119817435741425, 0.22294777631759644, -0.04617156833410263, 0.2796883285045624, -0.331443190574646, -0.2411089539527893, -0.007700212299823761, -0.1423579305410385, -0.3083873391151428, 0.12256321310997009, 0.07038886100053787, 0.5162593126296997, 0.05529918149113655, -0.13878080248832703, -0.26119282841682434, 0.12689924240112305, 0.14181002974510193, -0.24113744497299194, -0.1124149039387703, 0.31348925828933716, -0.021800165995955467, 0.07893232256174088, 0.11398287862539291, 0.2645879089832306, -0.18105679750442505, -0.023557232692837715, -0.2825874984264374, -0.5902605056762695, 0.40513935685157776, -0.26498034596443176, -0.2718047499656677, -0.22904427349567413, 0.26138439774513245, 0.049172986298799515, 0.03271793946623802, -0.5370388627052307, 0.11342965811491013, 0.26508840918540955, 0.10485018044710159, -0.23215174674987793, 0.03501429408788681, -0.011358496733009815, -0.27136242389678955, -0.09939434379339218, 0.29484841227531433, 0.09603200852870941, -0.05318237841129303, 0.10733312368392944, -0.27084726095199585 ]
https://github.com/huggingface/datasets/issues/1838
Add tedlium
Hi @patrickvonplaten I can have a look to this dataset later since I am trying to add the OpenSLR dataset https://github.com/huggingface/datasets/pull/2173 Hopefully I have enough space since the compressed file is 21GB. The release 3 is even bigger: 54GB :-0
## Adding a Dataset - **Name:** *tedlium* - **Description:** *The TED-LIUM 1-3 corpus is English-language TED talks, with transcriptions, sampled at 16kHz. It contains about 118 hours of speech.* - **Paper:** Homepage: http://www.openslr.org/7/, https://lium.univ-lemans.fr/en/ted-lium2/ &, https://www.openslr.org/51/ - **Data:** http://www.openslr.org/7/ - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/tedlium If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
40
Add tedlium ## Adding a Dataset - **Name:** *tedlium* - **Description:** *The TED-LIUM 1-3 corpus is English-language TED talks, with transcriptions, sampled at 16kHz. It contains about 118 hours of speech.* - **Paper:** Homepage: http://www.openslr.org/7/, https://lium.univ-lemans.fr/en/ted-lium2/ &, https://www.openslr.org/51/ - **Data:** http://www.openslr.org/7/ - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/tedlium If interested in tackling this issue, feel free to tag @patrickvonplaten Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi @patrickvonplaten I can have a look to this dataset later since I am trying to add the OpenSLR dataset https://github.com/huggingface/datasets/pull/2173 Hopefully I have enough space since the compressed file is 21GB. The release 3 is even bigger: 54GB :-0
[ -0.34317779541015625, 0.07050523906946182, -0.06830771267414093, 0.13331244885921478, 0.06836759299039841, -0.020419621840119362, 0.03535737469792366, 0.3795076012611389, -0.4294741749763489, 0.2744411528110504, -0.25794851779937744, 0.3504006564617157, -0.20843666791915894, -0.09178774803876877, 0.2269732505083084, -0.3618195950984955, -0.14128373563289642, 0.19737201929092407, -0.16586998105049133, -0.18006129562854767, 0.04707256332039833, 0.12849313020706177, -0.05396552383899689, -0.45203539729118347, -0.26604700088500977, -0.08072791248559952, -0.11426256597042084, 0.025999000295996666, -0.18035753071308136, -0.032637789845466614, -0.010999220423400402, 0.10458806157112122, 0.0020437617786228657, 0.5920304656028748, -0.00010600442328723148, 0.07620148360729218, 0.2563411593437195, -0.19704189896583557, -0.12616585195064545, -0.09200486540794373, 0.2239142656326294, -0.18769721686840057, -0.40690919756889343, 0.016463451087474823, -0.2588912546634674, -0.3076380789279938, 0.083453468978405, -0.00516060134395957, 0.20929165184497833, 0.39864930510520935, 0.23539172112941742, 0.5247450470924377, 0.34597155451774597, -0.1376192718744278, 0.26156580448150635, 0.05995737761259079, -0.18796247243881226, -0.006950320675969124, 0.12805691361427307, 0.16609984636306763, 0.0979948416352272, 0.37114405632019043, -0.06103803217411041, -0.13150547444820404, -0.09253810346126556, 0.04558036848902702, -0.3500020503997803, -0.23853103816509247, 0.0007928084814921021, 0.5430948734283447, 0.6054983735084534, -0.013903538696467876, -0.18671269714832306, -0.13106569647789001, 0.06369868665933609, -0.43263277411460876, 0.08349061757326126, 0.14287255704402924, -0.2388031929731369, 0.13386064767837524, 0.14944370090961456, -0.11929821223020554, -0.3330070674419403, 0.4302211105823517, 0.13756315410137177, 0.2157864272594452, -0.14521613717079163, -0.09252461791038513, 0.15936024487018585, -0.17506510019302368, -0.22677922248840332, 0.13491961359977722, 0.08575873076915741, 0.030888762325048447, -0.2997763752937317, -0.18996118009090424, 0.048234835267066956, -0.3286362290382385, 0.34310102462768555, -0.10682988911867142, 0.037057165056467056, 0.09686005860567093, -0.19721245765686035, -0.0967441201210022, -0.14319635927677155, 0.1244446262717247, -0.196144700050354, 0.05629323795437813, 0.026354968547821045, -0.07687918096780777, -0.03396467864513397, 0.044427983462810516, -0.18014435470104218, 0.005401022266596556, -0.1989443302154541, -0.17564888298511505, 0.00560413533821702, 0.028463615104556084, 0.07304095476865768, 0.025574233382940292, -0.11701547354459763, -0.007727641146630049, -0.05212656781077385, 0.2615174949169159, -0.07376226782798767, 0.19352906942367554, 0.06409426778554916, 0.17936469614505768, -0.06681014597415924, -0.22734305262565613, -0.241178497672081, 0.20276835560798645, 0.008669900707900524, 0.18342295289039612, 0.2094157338142395, -0.16752558946609497, 0.44419029355049133, -0.07171014696359634, 0.3050287365913391, 0.19252432882785797, 0.2671250104904175, -0.09309723973274231, 0.12176959961652756, 0.3277340829372406, 0.08676183968782425, 0.13704544305801392, -0.01865287311375141, -0.10395149141550064, -0.0937543734908104, 0.12360624969005585, -0.042607683688402176, -0.1835632622241974, -0.32416433095932007, 0.24680468440055847, 0.047236137092113495, -0.1724032163619995, -0.2665526568889618, 0.4495421051979065, 0.02543683722615242, 0.011575574986636639, -0.01336253248155117, 0.09123305976390839, -0.4628697335720062, 0.008845038712024689, 0.138884037733078, 0.06605438888072968, -0.1856422871351242, 0.0794806182384491, -0.009876611642539501, 0.2739847004413605, 0.30115216970443726, 0.33966362476348877, -0.11635055392980576, 0.14940692484378815, -0.05226790904998779, 0.3731701672077179, 0.32464322447776794, -0.5450285077095032, -0.4533586800098419, 0.10476993024349213, -0.3069201111793518, 0.051934849470853806, 0.2519707977771759, 0.1499701738357544, 0.37376004457473755, -0.08304469287395477, 0.4227796494960785, 0.2034451961517334, 0.011058948002755642, -0.13203398883342743, -0.3299344778060913, -0.21082034707069397, 0.0721382424235344, 0.23344433307647705, -0.04651181027293205, -0.14304648339748383, -0.18277744948863983, 0.5555551648139954, 0.21206720173358917, -0.17186036705970764, 0.11728556454181671, 0.3281388282775879, 0.05916054919362068, 0.05881818011403084, -0.017208876088261604, -0.2287880778312683, -0.07493326812982559, -0.12331103533506393, 0.2061918079853058, 0.5123466849327087, 0.3007339835166931, -0.2830668091773987, -0.1193285658955574, -0.28817498683929443, -0.005894498433917761, -0.004930009599775076, 0.24349278211593628, 0.1954975724220276, 0.14457285404205322, 0.0592779777944088, -0.17525723576545715, 0.20670731365680695, -0.3404853940010071, 0.0865430235862732, -0.37774673104286194, 0.14741337299346924, -0.07588562369346619, -0.2832173705101013, 0.3221105933189392, 0.07952454686164856, -0.0662512332201004, -0.22124925255775452, 0.11548992246389389, 0.13404157757759094, -0.23289301991462708, 0.20997263491153717, -0.06790464371442795, 0.25082075595855713, 0.24302348494529724, -0.2084760218858719, -0.043828241527080536, 0.32866212725639343, -0.03762109950184822, -0.13054542243480682, -0.04505244642496109, -0.050719182938337326, 0.2623145878314972, -0.2446405440568924, -0.0181984081864357, -0.032066669315099716, 0.3046458661556244, -0.08504413813352585, -0.1413041353225708, -0.19665619730949402, 0.29577428102493286, 0.2194458395242691, -0.12822559475898743, -0.006285024806857109, -0.4803926944732666, 0.22965888679027557, 0.34153318405151367, -0.1680423766374588, 0.13003309071063995, 0.2549463212490082, -0.28825193643569946, -0.031942181289196014, -0.048563264310359955, -0.18393680453300476, 0.2958211302757263, 0.34232297539711, 0.18629872798919678, -0.010987206362187862, 0.0324564054608345, -0.2777959704399109, 0.159610316157341, -0.022955797612667084, 0.01705910637974739, 0.3979536294937134, 0.2667986750602722, 0.10276135802268982, -0.4513934850692749, -0.010056974366307259, 0.049609847366809845, 0.25149697065353394, -0.1109846830368042, -0.23173508048057556, -0.2771235704421997, -0.2104731947183609, -0.10244084149599075, -0.13423988223075867, 0.005529934074729681, -0.04016612470149994, 0.25749874114990234, 0.30703049898147583, -0.1106535866856575, 0.1858121156692505, 0.1710917353630066, 0.038718149065971375, 0.15629681944847107, -0.11126214265823364, 0.02104654535651207, 0.001997178653255105, -0.14980819821357727, 0.17644210159778595, 0.13085226714611053, 0.10329845547676086, 0.33104875683784485, -0.05679675564169884, 0.0055517093278467655, -0.160617396235466, -0.5656263828277588, 0.27930697798728943, -0.38470572233200073, 0.08757653087377548, -0.03390268236398697, 0.24602986872196198, 0.1505424976348877, -0.45989206433296204, 0.02922760508954525, 0.08525514602661133, -0.253288596868515, -0.047189150005578995, -0.18322815001010895, -0.10326333343982697, -0.1788068562746048, -0.48048466444015503, -0.11461585015058517, -0.5522738099098206, 0.19624130427837372, 0.06530635058879852, 0.06348411738872528, 0.4290143847465515, -0.09632335603237152, 0.17652596533298492, 0.06469777971506119, 0.15739428997039795, -0.38181230425834656, -0.2910330295562744, 0.5326827764511108, -0.37730130553245544, -0.42389845848083496, -0.09341158717870712, -0.11861791461706161, 0.10722192376852036, -0.0012686678674072027, -0.3916934132575989, -0.33132442831993103, -0.1392498016357422, -0.04912782460451126, -0.05119319260120392, 0.020505478605628014, 0.2427380234003067, -0.16082900762557983, -0.21024775505065918, -0.186390683054924, 0.0076035126112401485, 0.16238605976104736, 0.17662787437438965, 0.06794210523366928, -0.10427669435739517, 0.1803448647260666, -0.02731766737997532, 0.23210005462169647, 0.3803943693637848, -0.13082031905651093, 0.23891887068748474, -0.12932854890823364, 0.2053573727607727, -0.21617361903190613, -0.1501193642616272, 0.30809539556503296, 0.2239317148923874, 0.10043490678071976, 0.4423479437828064, 0.083969846367836, -0.006821012124419212, 0.048705827444791794, -0.2918674051761627, -0.046013109385967255, -0.28751322627067566, 0.20974311232566833, 0.330428808927536, 0.09423588216304779, -0.0393204502761364, -0.13844086229801178, -0.25836601853370667, -0.32347819209098816, 0.1980762928724289, 0.23725008964538574, -0.11271898448467255, -0.07326488941907883, -0.4805629253387451, 0.3063931167125702, -0.6605848670005798, 0.04691297188401222, 0.16851699352264404, 0.23971813917160034, -0.2350100576877594, -0.05481215566396713, -0.09029918164014816, 0.03486175462603569, 0.5300671458244324, -0.23909586668014526, -0.11947538703680038, 0.1587279886007309, 0.18214687705039978, -0.16536438465118408, 0.31140267848968506, -0.22986705601215363, -0.22696004807949066, 0.29780521988868713, 0.4735638499259949, -0.321416974067688, 0.006510818377137184, 0.35847941040992737, 0.35828590393066406, 0.07073528319597244, -0.03159806877374649, -0.16296666860580444, -0.5779345035552979, -0.1653156280517578, -0.10914236307144165, 0.22320203483104706, 0.29616260528564453, 0.2642081081867218, -0.23368756473064423, 0.23931531608104706, -0.1497078239917755, 0.3834996521472931, -0.12889261543750763, 0.16939876973628998, 0.4644753932952881, 0.19346442818641663, -0.026081012561917305, -0.0012989069800823927, 0.16904808580875397, 0.18431319296360016, 0.12550988793373108, -0.3187141418457031, 0.09650683403015137, -0.4157077372074127, 0.07754846662282944, 0.11776770651340485, -0.008137259632349014, 0.21318408846855164, -0.31961989402770996, 0.33372148871421814, -0.2375832498073578, 0.4872474670410156, 0.30902522802352905, 0.0380474217236042, -0.36095914244651794, -0.22621381282806396, 0.3978446125984192, 0.02006463147699833, 0.16308756172657013, 0.6163814067840576, 0.1752379685640335, -0.2517213523387909, 0.2007851004600525, -0.1126384288072586, 1.068471074104309, 0.004505885764956474, 0.14938127994537354, 0.4984109699726105, 0.15195012092590332, 0.4557759165763855, -0.4085029661655426, 0.09112884104251862, 0.32473888993263245, -0.22845327854156494, 0.04704020544886589, 0.13970373570919037, -0.16720429062843323, -0.08585118502378464, -0.49164333939552307, -0.06979738175868988, -0.020287809893488884, -0.0910477340221405, 0.030360115692019463, 0.570503294467926, 0.05274825915694237, -0.45451870560646057, -0.40494194626808167, 0.23123294115066528, 0.23293034732341766, 0.11133059114217758, 0.14141729474067688, -0.1698576658964157, -0.23187761008739471, -0.07954141497612, -0.39217719435691833, -0.008545863442122936, -0.15243904292583466, -0.10356511920690536, -0.0707160159945488, -0.3387386202812195, 0.14035215973854065, 0.20513474941253662, 0.4466015696525574, 0.06534981727600098, -0.24535071849822998, 0.1592048704624176, -0.3543910086154938, -0.20519378781318665, 0.02099226415157318, -0.17987652122974396, 0.3663342297077179, -0.31092125177383423, 0.033988405019044876, 0.22564373910427094, 0.10664068907499313, -0.22489264607429504, -0.15314874053001404, -0.2863204777240753, -0.11657175421714783, -0.12289615720510483, 0.041749000549316406, 0.43275853991508484, -0.22382161021232605, -0.14104975759983063, 0.20169012248516083, -0.009342264384031296, -0.3379742205142975, -0.07021517306566238, 0.18146763741970062, -0.16633786261081696, -0.013168694451451302, 0.24019372463226318, 0.3308612108230591, -0.041788652539253235, 0.4671475291252136, 0.275114506483078, -0.12933501601219177, -0.24958296120166779, -0.22516678273677826, -0.06196730583906174, -0.2933136820793152, 0.023881133645772934, 0.14277826249599457, 0.024140847846865654, 0.05208014324307442, 0.5436137914657593, 0.007055430673062801, -0.10380737483501434, -0.17917408049106598, 0.01761767454445362, -0.4704033434391022, 0.06027308478951454, -0.13826462626457214, 0.11040710657835007, -0.07395359873771667, 0.49508553743362427, -0.05994138494133949, 0.20715618133544922, -0.40440642833709717, 0.02805272676050663, -0.10699214041233063, 0.1881234049797058, 0.32106736302375793, -0.15310759842395782, 0.37616249918937683, -0.00980483740568161, 0.17064860463142395, 0.09292831271886826, -0.1838899701833725, -0.25338706374168396, -0.23445114493370056, 0.06262025237083435, 0.10277877002954483, -0.08437461405992508, 0.08307715505361557, -0.11792480200529099, -0.28848978877067566, -0.03096248023211956, 0.3303532004356384, 0.07960742712020874, -0.06392015516757965, -0.00828411802649498, 0.010267088189721107, -0.02151334285736084, 0.13275261223316193, -0.038555387407541275, 0.12752413749694824, 0.2622128427028656, 0.08459882438182831, -0.026937689632177353, 0.07923445105552673, -0.18813037872314453, -0.11152279376983643, 0.2177862673997879, 0.17967861890792847, -0.22911182045936584, 0.23723694682121277, -0.11429529637098312, -0.09210097044706345, 0.15452632308006287, 0.17131352424621582, -0.11870218068361282, -0.1974859982728958, 0.04277046024799347, 0.2852051556110382, 0.28012871742248535, -0.32123276591300964, -0.024203788489103317, 0.12203697115182877, -0.04266020655632019, 0.21538139879703522, 0.06798962503671646, 0.024606384336948395, 0.08513158559799194, 0.08556386083364487, 0.06167922914028168, 0.05120779201388359, 0.029099324718117714, 0.10722120106220245, 0.09474589675664902, 0.05217723548412323, 0.01367335394024849, -0.0881621241569519, -0.02368413284420967, 0.1438586711883545, -0.04949651286005974, -0.04202956706285477, 0.47596776485443115, 0.060407139360904694, 0.02088930830359459, 0.1528877466917038, -0.08183440566062927, -0.17961208522319794, 0.2707379162311554, 0.1482342630624771, 0.36882874369621277, -0.010210706852376461, 0.5753257870674133, 0.07804425805807114, -0.08323504030704498, -0.03231966122984886, 0.33083271980285645, -0.030084488913416862, -0.1051604375243187, -0.22051995992660522, -0.08473920077085495, -0.17597538232803345, -0.0009996285662055016, 0.17675067484378815, -0.09959658235311508, -0.3618551194667816, 0.20245325565338135, -0.1753324419260025, -0.010282372124493122, -0.11822640895843506, 0.03620193898677826, 0.021750761196017265, -0.14540760219097137, 0.319100946187973, 0.17872264981269836, -0.1570974439382553, 0.09542477875947952, 0.31172895431518555, 0.3932827115058899, -0.034617070108652115, -0.03258436918258667, 0.3784397840499878, -0.007103482261300087, -0.04266887530684471, -0.10957019031047821, 0.3652689754962921, 0.3000556528568268, -0.1450006514787674, 0.2046090066432953, 0.17622649669647217, -0.31389907002449036, -0.010108000598847866, 0.019819004461169243, -0.09884274750947952, -0.21416018903255463, -0.11335892975330353, -0.045451559126377106, 0.027653587982058525, -0.42618629336357117, -0.27303269505500793, -0.4859864115715027, 0.26976078748703003, 0.43828085064888, -0.1422918438911438, 0.05457991361618042, -0.08690197765827179, 0.13180802762508392, -0.31377360224723816, 0.39436638355255127, 0.31681567430496216, 0.13923481106758118, 0.09830556809902191, -0.453998327255249, -0.4440172612667084, 0.33148911595344543, -0.19362442195415497, -0.3071631193161011, -0.16997390985488892, 0.2537253201007843, 0.4797614514827728, 0.21207277476787567, -0.057648587971925735, -0.6558500528335571, -0.11153341829776764, 0.02023477293550968, -0.32387974858283997, 0.21110105514526367, -0.16958732903003693, 0.18981122970581055, 0.1044229194521904, -0.12298492342233658, -0.0006059270817786455, 0.02849673479795456, 0.14516384899616241, -0.41493189334869385, 0.28972184658050537, -0.20879866182804108, 0.012734041549265385, 0.19098129868507385, -0.07229447364807129, 0.2729312479496002, -0.3162320852279663, -0.13068921864032745, -0.13382689654827118, 0.1307649463415146, -0.24909235537052155, -0.20177322626113892, 0.15915167331695557, 0.3778859078884125, -0.12942177057266235, 0.2802940607070923, -0.10988283157348633, 0.3118395507335663, 0.01158936694264412, -0.027020979672670364, -0.31531521677970886, 0.27752190828323364, -0.10674016922712326, -0.10656602680683136, 0.12288777530193329, 0.49377888441085815, -0.03325522318482399, -0.0316833034157753, -0.29562243819236755, -0.5551958680152893, 0.43372300267219543, -0.533398449420929, -0.26639899611473083, 0.10709220916032791, 0.03607017546892166, 0.1670575588941574, -0.011262482032179832, -0.7686281204223633, 0.2083090990781784, 0.23062163591384888, 0.22123080492019653, -0.18435081839561462, 0.31456178426742554, 0.06856687366962433, -0.05728521943092346, -0.0314863882958889, 0.10106755793094635, 0.13174942135810852, -0.2307506948709488, -0.12340845167636871, -0.3093240559101105 ]
https://github.com/huggingface/datasets/issues/1831
Some question about raw dataset download info in the project .
Hi ! The `dl_manager` is a `DownloadManager` object and is responsible for downloading the raw data files. It is used by dataset builders in their `_split_generators` method to download the raw data files that are necessary to build the datasets splits. The `Conll2003` class is a dataset builder, and so you can download all the raw data files by calling `_split_generators` with a download manager: ```python from datasets import DownloadManager from datasets.load import import_main_class conll2003_builder = import_main_class(...) dl_manager = DownloadManager() splis_generators = conll2003_builder._split_generators(dl_manager) ``` Then you can see what files have been downloaded with ```python dl_manager.get_recorded_sizes_checksums() ``` It returns a dictionary with the format {url: {num_bytes: int, checksum: str}} Then you can get the actual location of the downloaded files with ```python from datasets import cached_path local_path_to_downloaded_file = cached_path(url) ``` ------------------ Note that you can also get the urls from the Dataset object: ```python from datasets import load_dataset conll2003 = load_dataset("conll2003") print(conll2003["train"].download_checksums) ``` It returns the same dictionary with the format {url: {num_bytes: int, checksum: str}}
Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ?
166
Some question about raw dataset download info in the project . Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ? Hi ! The `dl_manager` is a `DownloadManager` object and is responsible for downloading the raw data files. It is used by dataset builders in their `_split_generators` method to download the raw data files that are necessary to build the datasets splits. The `Conll2003` class is a dataset builder, and so you can download all the raw data files by calling `_split_generators` with a download manager: ```python from datasets import DownloadManager from datasets.load import import_main_class conll2003_builder = import_main_class(...) dl_manager = DownloadManager() splis_generators = conll2003_builder._split_generators(dl_manager) ``` Then you can see what files have been downloaded with ```python dl_manager.get_recorded_sizes_checksums() ``` It returns a dictionary with the format {url: {num_bytes: int, checksum: str}} Then you can get the actual location of the downloaded files with ```python from datasets import cached_path local_path_to_downloaded_file = cached_path(url) ``` ------------------ Note that you can also get the urls from the Dataset object: ```python from datasets import load_dataset conll2003 = load_dataset("conll2003") print(conll2003["train"].download_checksums) ``` It returns the same dictionary with the format {url: {num_bytes: int, checksum: str}}
[ -0.1392955482006073, -0.09699487686157227, -0.05754384025931358, 0.53155517578125, 0.18065372109413147, -0.07769393175840378, 0.12914742529392242, -0.0684933066368103, 0.13074781000614166, 0.12636715173721313, -0.4010904133319855, 0.19039887189865112, -0.07171736657619476, 0.5283394455909729, 0.16424012184143066, -0.0650978833436966, -0.11068323254585266, 0.14757822453975677, -0.09337674826383591, -0.07304339855909348, -0.39444392919540405, 0.28272107243537903, -0.3126266598701477, 0.1286265254020691, -0.13044439256191254, 0.00523214740678668, -0.03755934536457062, 0.2881945073604584, -0.4633614122867584, -0.2766466438770294, 0.3559422194957733, 0.22831158339977264, 0.41031062602996826, 0.2549622654914856, -0.00012279486691113561, 0.04534446448087692, 0.2947673201560974, -0.3216657340526581, -0.5304580330848694, -0.3504639267921448, -0.637402355670929, -0.006607771851122379, -0.08765867352485657, -0.3026123642921448, 0.07270048558712006, -0.04441418498754501, -0.07044855505228043, -0.23772047460079193, 0.11797058582305908, 0.10204381495714188, 0.07890834659337997, 0.28017082810401917, -0.025804676115512848, 0.04328491911292076, 0.2848977744579315, 0.28035926818847656, 0.05253824591636658, 0.1077040433883667, -0.07476869970560074, 0.40119633078575134, 0.2505822777748108, 0.3100154995918274, 0.13770857453346252, 0.15744751691818237, 0.5022878646850586, 0.32057785987854004, -0.2726312577724457, -0.3046385943889618, 0.10461384057998657, 0.19351649284362793, 0.40408140420913696, -0.367397278547287, -0.5436564683914185, -0.3483594059944153, -0.16833703219890594, -0.5926067233085632, 0.03220335766673088, 0.14673860371112823, -0.3645533621311188, 0.3069460093975067, -0.5524963140487671, -0.4242561161518097, -0.10692380368709564, -0.02951408177614212, -0.1963631808757782, 0.3718152642250061, -0.3595735728740692, 0.06532483547925949, 0.07806864380836487, 0.4294738471508026, 0.19982314109802246, -0.29332900047302246, -0.0176413394510746, 0.27592217922210693, -0.17268051207065582, -0.08907782286405563, -0.021098535507917404, 0.3046436607837677, 0.19167782366275787, -0.0031794141978025436, -0.11859069019556046, -0.19603170454502106, 0.06447940319776535, 0.09115545451641083, 0.36028239130973816, 0.13484041392803192, 0.12200577557086945, 0.271299809217453, 0.22105439007282257, 0.15820303559303284, 0.16287395358085632, -0.2994874119758606, -0.039951249957084656, -0.04997045546770096, -0.309329092502594, 0.16166231036186218, 0.07092631608247757, -0.12266481667757034, -0.19936569035053253, -0.21416175365447998, -0.10704275220632553, -0.2923628091812134, 0.32213515043258667, 0.4048183262348175, -0.11206274479627609, 0.07313073426485062, -0.019703002646565437, 0.048481471836566925, 0.13255004584789276, -0.21030384302139282, -0.10686524212360382, -0.14259123802185059, -0.14245153963565826, 0.13092102110385895, -0.2759808897972107, -0.07525284588336945, 0.38062676787376404, 0.05235113948583603, 0.015530247241258621, 0.007026941981166601, 0.020547861233353615, -0.13927750289440155, 0.20368966460227966, 0.15111427009105682, -0.01313554123044014, 0.3002576231956482, -0.15822558104991913, -0.3350558280944824, -0.19506099820137024, -0.09400442242622375, -0.36492833495140076, -0.42160287499427795, 0.01582452468574047, 0.02551819011569023, -0.22532297670841217, 0.10368645191192627, -0.30645647644996643, -0.02583678811788559, 0.10352839529514313, 0.3552072048187256, 0.07360409945249557, -0.04130421206355095, -0.4622369706630707, -0.26651182770729065, 0.4400368332862854, 0.4818967282772064, -0.24818366765975952, -0.14288948476314545, 0.04886047542095184, -0.37079840898513794, 0.11049836128950119, 0.0247119702398777, -0.3937753140926361, 0.5463497638702393, -0.41109874844551086, -0.12885013222694397, 0.41116344928741455, -0.4205348491668701, -0.27437150478363037, 0.5594003796577454, 0.11898961663246155, -0.004063799977302551, 0.3508142828941345, -0.0029530145693570375, 0.2521324157714844, -0.08631287515163422, -0.1183067187666893, 0.5005720853805542, 0.1785060316324234, -0.11542824655771255, -0.01504659466445446, -0.19980964064598083, -0.15042245388031006, -0.1076827123761177, -0.13249804079532623, 0.25103244185447693, 0.03637940064072609, -0.09306111186742783, 0.5309393405914307, -0.11459650844335556, 0.19996650516986847, 0.31543201208114624, 0.026568932458758354, 0.24618788063526154, -0.019120635464787483, 0.029234295710921288, -0.6519914865493774, 0.16605441272258759, -0.3580198585987091, -0.2422896772623062, -0.30387330055236816, -0.3468744158744812, -0.3359973728656769, 0.15263782441616058, -0.2951541841030121, -0.37116023898124695, -0.058471642434597015, 0.16493098437786102, 0.4927290380001068, -0.033501215279102325, -0.30862462520599365, 0.5376634001731873, -0.07711320370435715, 0.11037120223045349, -0.15247392654418945, 0.021506985649466515, 0.10994768142700195, 0.1840827763080597, -0.06649725139141083, 0.10192606598138809, 0.10839836299419403, -0.18854929506778717, 0.05988076329231262, 0.5309790968894958, 0.23963433504104614, 0.18183325231075287, 0.1540873497724533, 0.02922072447836399, 0.24965816736221313, 0.12449215352535248, -0.07289495319128036, -0.2197050303220749, 0.21307435631752014, 0.20210911333560944, 0.09575820714235306, 0.4194435775279999, 0.003915798384696245, 0.2770680785179138, 0.13969890773296356, -0.07814837247133255, 0.13789691030979156, -0.06180992349982262, 0.15540394186973572, -0.16009941697120667, -0.1753719598054886, 0.20472829043865204, 0.3687293231487274, 0.13241806626319885, -0.20144782960414886, 0.19544272124767303, 0.36350029706954956, -0.0819677785038948, -0.24796105921268463, 0.016517668962478638, -0.29281216859817505, -0.040301013737916946, 0.02024642564356327, 0.7880973219871521, 0.48423823714256287, 0.009910919703543186, 0.19300906360149384, 0.08171826601028442, 0.28972792625427246, -0.13008064031600952, 0.40446653962135315, 0.14610055088996887, -0.07099266350269318, -0.03355206176638603, -0.4765406548976898, -0.17368635535240173, 0.16128046810626984, -0.01825542375445366, 0.1560424119234085, 0.13740836083889008, -0.37707701325416565, 0.12285429984331131, -0.24532471597194672, -0.35932284593582153, -0.28252580761909485, -0.18249084055423737, 0.07965746521949768, -0.1788530796766281, -0.30236560106277466, -0.0960523933172226, -0.08657415211200714, -0.19618535041809082, -0.028490815311670303, 0.007860584184527397, -0.26903316378593445, 0.03462674468755722, -0.17259123921394348, -0.18462280929088593, -0.13051189482212067, -0.07384446263313293, 0.16627763211727142, 0.03421059995889664, 0.08375819772481918, -0.4706438481807709, 0.06891744583845139, -0.1695154309272766, 0.17596352100372314, 0.32473430037498474, 0.057018302381038666, 0.17769645154476166, 0.39063239097595215, 0.14288689196109772, -0.14176033437252045, 0.02283536083996296, -0.07063499093055725, 0.10466843843460083, -0.1442244052886963, -0.39273539185523987, 0.13367997109889984, 0.06083890423178673, -0.10030248016119003, -0.17979519069194794, -0.701850414276123, -0.09427075833082199, 0.14839999377727509, -0.1141359955072403, 0.22856317460536957, -0.06347532570362091, -0.18335986137390137, 0.11429041624069214, -0.2739400565624237, 0.049796123057603836, -0.23460820317268372, -0.7871111631393433, 0.289440393447876, -0.34768372774124146, -0.2662126123905182, -0.04405396059155464, -0.09772423654794693, 0.19840188324451447, 0.015491047874093056, -0.2537757456302643, -0.03174087032675743, -0.22029590606689453, 0.17114569246768951, 0.10691222548484802, 0.368753045797348, 0.012760927900671959, -0.10263682901859283, 0.13000443577766418, -0.19757020473480225, -0.06178254634141922, 0.1827078014612198, -0.3824939429759979, 0.3085658550262451, 0.3824217915534973, -0.03352107107639313, 0.17485345900058746, 0.7821298837661743, 0.2444392293691635, -0.1355069875717163, 0.18098492920398712, -0.07585588842630386, 0.41017434000968933, 0.28398194909095764, -0.21862278878688812, -0.04893278330564499, -0.03390543907880783, -0.10784854739904404, 0.144003763794899, 0.0604696124792099, 0.18966296315193176, -0.3165883421897888, -0.1123700961470604, -0.1500530242919922, -0.15170490741729736, -0.1255161315202713, 0.5231508016586304, 0.18937508761882782, 0.06159907579421997, 0.19744420051574707, -0.006582281552255154, 0.09127937257289886, 0.061856672167778015, 0.43060433864593506, 0.34607604146003723, 0.19759750366210938, -0.19607265293598175, -0.08577363193035126, -0.20449188351631165, 0.11648861318826675, 0.2858871817588806, -0.11611146479845047, 0.1796920746564865, 0.12008342146873474, 0.17902813851833344, 0.1177055612206459, 0.6446791887283325, 0.022620901465415955, -0.040195103734731674, -0.12750884890556335, -0.3101217746734619, -0.07607918977737427, 0.12807267904281616, -0.15003268420696259, 0.07375352829694748, 0.42132309079170227, 0.16378755867481232, -0.4036838710308075, -0.3825341463088989, 0.07454092800617218, 0.13523374497890472, -0.2881730794906616, -0.14954455196857452, -0.14889276027679443, -0.20912852883338928, -0.17887093126773834, -0.230875626206398, 0.12962721288204193, 0.12780620157718658, 0.034697141498327255, 0.0025438808370381594, 0.05059564858675003, 0.11937042325735092, 0.003072507679462433, 0.07472915202379227, 0.3675094544887543, -0.056199248880147934, -0.10574183613061905, 0.3754262328147888, 0.3393513858318329, 0.1690370738506317, 0.4490523338317871, -0.3288877606391907, -0.1851528137922287, -0.06483685970306396, 0.09757144004106522, 0.6481596827507019, 0.14968165755271912, -0.4898109436035156, 0.04934874176979065, 0.03485480695962906, -0.14900587499141693, -0.38975876569747925, 0.24325287342071533, 0.2638327479362488, 0.007181116379797459, -0.09935563802719116, -0.7190068960189819, 0.4855559170246124, -0.007339837960898876, -0.22853617370128632, 0.16060617566108704, 0.08337932080030441, -0.35515880584716797, -0.1382271647453308, 0.03492017090320587, 0.8198540210723877, 0.13426733016967773, 0.08225295692682266, 0.10077792406082153, -0.4830282926559448, 0.5889970064163208, -0.060215797275304794, -0.1731599122285843, -0.22252507507801056, 0.02223471738398075, -0.15202122926712036, -0.28602346777915955, 0.07052252441644669, -0.07608086615800858, -0.10988318175077438, 0.36455315351486206, -0.09830151498317719, 0.049823660403490067, 0.04359539598226547, 0.510431170463562, -0.08311771601438522, -0.140968456864357, 0.07536770403385162, -0.08400024473667145, 0.1918078064918518, 0.4800063669681549, -0.11400312185287476, -0.43102481961250305, -0.2550564408302307, 0.07956980168819427, -0.0654514729976654, -0.10178405791521072, -0.4333566725254059, 0.030224749818444252, 0.013373146764934063, -0.32176923751831055, -0.037125758826732635, 0.6608518362045288, 0.2790500819683075, 0.016437415033578873, -0.21993306279182434, 0.06367053836584091, -0.09201575070619583, 0.12733660638332367, 0.25037088990211487, 0.12391147017478943, -0.0576402023434639, -0.05348418653011322, -0.16293539106845856, 0.1557432860136032, -0.005831927061080933, -0.18104834854602814, 0.17485053837299347, -0.1016855537891388, 0.21252042055130005, -0.25074073672294617, -0.05611642077565193, -0.010821390897035599, 0.06260687112808228, -0.06816127151250839, -0.0006632780423387885, 0.2437824159860611, -0.3698800206184387, 0.0706733986735344, -0.2798640727996826, -0.42271196842193604, -0.19077248871326447, 0.3606047034263611, -0.0719434916973114, 0.07881814241409302, 0.26847001910209656, -0.10255047678947449, -0.22497856616973877, -0.030910005792975426, 0.2886572778224945, -0.10915776342153549, -0.31593942642211914, 0.2659701704978943, 0.30490249395370483, 0.17883801460266113, -0.4056989252567291, 0.2560828626155853, 0.0011083482531830668, -0.2817418575286865, -0.22229404747486115, -0.4993061423301697, -0.20701906085014343, 0.10975641757249832, -0.2958475351333618, 0.1551882028579712, -0.012737128883600235, 0.17064982652664185, 0.10408856719732285, 0.028385713696479797, -0.19552496075630188, 0.01576075702905655, -0.0842292532324791, -0.10643351823091507, 0.33750951290130615, 0.09713070094585419, 0.2482391744852066, -0.003077229717746377, -0.05896022170782089, -0.039009641855955124, -0.09004610776901245, -0.0314561203122139, -0.22686418890953064, 0.18874984979629517, -0.08398497849702835, -0.2017303705215454, 0.08763139694929123, -0.061709463596343994, -0.07869910448789597, 0.059081848710775375, 0.25080645084381104, 0.2661230266094208, 0.1293436586856842, 0.3978659510612488, -0.057714495807886124, -0.003434683196246624, -0.5778409838676453, 0.33550626039505005, 0.06922291219234467, 0.4035027027130127, -0.07793068140745163, 0.4459482729434967, -0.38490867614746094, -0.10467075556516647, 0.1254531741142273, -0.12114772200584412, 0.012671251781284809, -0.08861896395683289, 0.43485668301582336, -0.043594975024461746, 0.1081257238984108, 0.11747115105390549, 0.23705214262008667, 0.238253653049469, -0.08969869464635849, 0.029672976583242416, 0.1940108835697174, -0.027352191507816315, -0.008573160506784916, 0.023925593122839928, -0.13703091442584991, -0.04063667356967926, 0.02410227432847023, 0.3481295108795166, 0.33337533473968506, 0.03856051713228226, -0.07780677080154419, -0.27102261781692505, 0.4011266827583313, 0.4406711757183075, 0.046021394431591034, 0.5709134340286255, 0.1283138543367386, 0.3627934753894806, 0.21173730492591858, 0.6090317964553833, 0.15640608966350555, 0.3393489122390747, -0.26100316643714905, -0.008979239501059055, -0.08741001039743423, 0.24500733613967896, 0.3107309639453888, -0.4485316872596741, 0.17224186658859253, 0.20228876173496246, -0.2262052595615387, 0.021925514563918114, -0.29941311478614807, 0.5222708582878113, -0.15515965223312378, 0.13281451165676117, -0.10601066052913666, 0.47106993198394775, 0.04575185850262642, -0.28849294781684875, -0.17623431980609894, -0.18811562657356262, -0.13175004720687866, 0.15237343311309814, -0.04613432660698891, -0.43707215785980225, 0.13623309135437012, -0.14644503593444824, 0.04272232577204704, 0.018353935331106186, 0.053093478083610535, 0.10409645736217499, 0.02159491553902626, -0.21229569613933563, 0.1915368288755417, -0.04165573790669441, 0.290966659784317, 0.3288467824459076, 0.28295013308525085, 0.06739674508571625, 0.33882930874824524, 0.14623048901557922, -0.21369390189647675, 0.221427783370018, -0.0688992515206337, -0.08749055117368698, 0.02493906393647194, -0.20105275511741638, -0.07470452785491943, 0.4496800899505615, -0.010302516631782055, -0.02285918965935707, -0.3053916394710541, 0.14118322730064392, 0.3131195604801178, -0.014102669432759285, 0.594533383846283, -0.025930549949407578, 0.06706327944993973, 0.09257042407989502, 0.06102772057056427, -0.46179017424583435, 0.06957098841667175, 0.27481940388679504, -0.2647777199745178, 0.2141086906194687, -0.0019730101339519024, 0.01213914155960083, -0.024173110723495483, 0.37117069959640503, 0.2092067152261734, 0.3382588326931, -0.4282614290714264, -0.21278035640716553, -0.49220311641693115, -0.23410648107528687, 0.3432759642601013, -0.24099750816822052, -0.06145204231142998, 0.3055994212627411, -0.22224290668964386, 0.24406147003173828, -0.042408935725688934, 0.27618226408958435, -0.009667226113379002, 0.09546156227588654, -0.05047312751412392, -0.1580982506275177, -0.3776193857192993, 0.14843474328517914, 0.11209768801927567, -0.22211338579654694, 0.3392994701862335, -0.2188190370798111, -0.11058707535266876, -0.08951468020677567, 0.2348068356513977, 0.1685887575149536, -0.227838933467865, 0.17039307951927185, -0.017975149676203728, 0.14916199445724487, -0.060575101524591446, 0.031915828585624695, 0.2514965236186981, 0.2419126033782959, -0.2968149483203888, -0.008200871758162975, -0.1475503295660019, -0.13394975662231445, -0.32015272974967957, 0.020958958193659782, -0.4668419361114502, 0.3759163022041321, 0.31989920139312744, 0.0002502238203305751, -0.04862422123551369, -0.024210793897509575, -0.40645620226860046, 0.038236360996961594, 0.5310786962509155, 0.16299718618392944, -0.2717091739177704, 0.06989641487598419, -0.2187841832637787, -0.057816796004772186, 0.5587485432624817, -0.2671591639518738, 0.12109935283660889, 0.04034893214702606, 0.22793205082416534, 0.3333323299884796, -0.09136702120304108, -0.5478297472000122, 0.2801440358161926, 0.5396883487701416, -0.08369594812393188, 0.03364674001932144, 0.21228313446044922, 0.08878093212842941, -0.0016798622673377395, -0.12197524309158325, 0.47519928216934204, 0.15408150851726532, -0.33863356709480286, 0.09727536141872406, -0.029898498207330704 ]
https://github.com/huggingface/datasets/issues/1831
Some question about raw dataset download info in the project .
I am afraid that there is not a very straightforward way to get that location. Another option, from _split_generators would be to use: - `dl_manager._download_config.cache_dir` to get the directory where all the raw downloaded files are: ```python download_dir = dl_manager._download_config.cache_dir ``` - the function `datasets.utils.file_utils.hash_url_to_filename` to get the filenames of the raw downloaded files: ```python filenames = [hash_url_to_filename(url) for url in urls_to_download.values()] ``` Therefore the complete path to the raw downloaded files would be the join of both: ```python downloaded_paths = [os.path.join(download_dir, filename) for filename in filenames] ``` Maybe it would be interesting to make these paths accessible more easily. I could work on this. What do you think, @lhoestq ?
Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ?
111
Some question about raw dataset download info in the project . Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ? I am afraid that there is not a very straightforward way to get that location. Another option, from _split_generators would be to use: - `dl_manager._download_config.cache_dir` to get the directory where all the raw downloaded files are: ```python download_dir = dl_manager._download_config.cache_dir ``` - the function `datasets.utils.file_utils.hash_url_to_filename` to get the filenames of the raw downloaded files: ```python filenames = [hash_url_to_filename(url) for url in urls_to_download.values()] ``` Therefore the complete path to the raw downloaded files would be the join of both: ```python downloaded_paths = [os.path.join(download_dir, filename) for filename in filenames] ``` Maybe it would be interesting to make these paths accessible more easily. I could work on this. What do you think, @lhoestq ?
[ -0.13469868898391724, -0.029141755774617195, -0.05659552291035652, 0.5307533144950867, 0.11883639544248581, -0.1144692450761795, 0.10200802981853485, -0.008243636228144169, 0.04150892794132233, 0.08339449018239975, -0.4197913706302643, 0.20728379487991333, -0.12456344813108444, 0.5449792742729187, 0.17081983387470245, -0.09607558697462082, -0.0993766039609909, 0.12215793132781982, -0.10155998170375824, -0.06752222776412964, -0.38628527522087097, 0.296413779258728, -0.29332205653190613, 0.17002218961715698, -0.12043645977973938, -0.043712686747312546, -0.03890860080718994, 0.3107964098453522, -0.42152899503707886, -0.2855049669742584, 0.28514528274536133, 0.21042400598526, 0.38972699642181396, 0.26019224524497986, -0.0001252633664989844, 0.03395666927099228, 0.25762802362442017, -0.3376942574977875, -0.5291390419006348, -0.30453208088874817, -0.6149906516075134, -0.018427228555083275, -0.07356998324394226, -0.2560715079307556, 0.14287245273590088, -0.06211479380726814, -0.08166851103305817, -0.1980152428150177, 0.024802567437291145, 0.025719385594129562, 0.05692719295620918, 0.3073020279407501, -0.07054929435253143, 0.0733209177851677, 0.2743452787399292, 0.28895092010498047, 0.006941772066056728, 0.1066000908613205, -0.009436399675905704, 0.3097081482410431, 0.19094218313694, 0.3141840696334839, 0.19176329672336578, 0.11618423461914062, 0.4544142186641693, 0.35118812322616577, -0.36054548621177673, -0.3333880305290222, 0.0019018150633201003, 0.24149352312088013, 0.3311745822429657, -0.3499564826488495, -0.6002610325813293, -0.4451572895050049, -0.14475949108600616, -0.5862119197845459, 0.086664579808712, 0.14513610303401947, -0.42940372228622437, 0.27836987376213074, -0.57370924949646, -0.4702059328556061, -0.10782265663146973, -0.06307540088891983, -0.12458948791027069, 0.3833279609680176, -0.3021118640899658, 0.03660926967859268, 0.12226128578186035, 0.3665379285812378, 0.18311038613319397, -0.20400568842887878, 0.0064972154796123505, 0.26284363865852356, -0.1273602992296219, -0.09684783965349197, -0.06920882314443588, 0.2800373136997223, 0.1793457567691803, 0.0004256917745806277, -0.09320242702960968, -0.26254093647003174, -0.022447554394602776, 0.03677918761968613, 0.32568424940109253, 0.08879418671131134, 0.058816079050302505, 0.2508297264575958, 0.24193531274795532, 0.18523502349853516, 0.22617343068122864, -0.2565542459487915, -0.07564929872751236, -0.09280399233102798, -0.3982120752334595, 0.16897936165332794, 0.02306535094976425, -0.08815600723028183, -0.2564200162887573, -0.25847160816192627, -0.11732137948274612, -0.31539466977119446, 0.3284132182598114, 0.3631950914859772, -0.10644660145044327, 0.09189912676811218, -0.021863948553800583, 0.030009346082806587, 0.13420389592647552, -0.2513059079647064, -0.06025467440485954, -0.13667719066143036, -0.1498383730649948, 0.1586863249540329, -0.23554357886314392, -0.07405270636081696, 0.3717946708202362, 0.0417121984064579, 0.030304722487926483, 0.09196272492408752, -0.005171846132725477, -0.10271137207746506, 0.19871661067008972, 0.11280244588851929, 0.031949929893016815, 0.29062363505363464, -0.2086738646030426, -0.28544172644615173, -0.21640220284461975, -0.12387476116418839, -0.295926570892334, -0.4238969683647156, 0.010931018739938736, -0.026596209034323692, -0.1496950387954712, 0.138033926486969, -0.24266250431537628, 0.006301630288362503, 0.06413635611534119, 0.3371739089488983, 0.02113175019621849, 0.00667377095669508, -0.43593916296958923, -0.28752174973487854, 0.43704795837402344, 0.4985264539718628, -0.27902308106422424, -0.10948601365089417, 0.09183082729578018, -0.365340918302536, 0.04100492596626282, 0.08937163650989532, -0.37694108486175537, 0.5260193347930908, -0.42559659481048584, -0.1558304727077484, 0.4934956729412079, -0.41399848461151123, -0.28344887495040894, 0.5482250452041626, 0.08194157481193542, -0.011939030140638351, 0.3946042060852051, -0.002730818698182702, 0.2809683084487915, -0.09966308623552322, -0.061367206275463104, 0.5419445633888245, 0.12379929423332214, -0.11095280945301056, -0.03870930150151253, -0.2857450544834137, -0.11888639628887177, -0.09950868040323257, -0.1401033252477646, 0.208541601896286, 0.06305191665887833, -0.14875803887844086, 0.5694391131401062, -0.0648537203669548, 0.20241789519786835, 0.36417335271835327, 0.01614191196858883, 0.22173944115638733, -0.03974910080432892, 0.03275742381811142, -0.6237199306488037, 0.14505814015865326, -0.29158955812454224, -0.25667718052864075, -0.34643155336380005, -0.369253545999527, -0.2835109829902649, 0.13590410351753235, -0.2205854207277298, -0.35655343532562256, -0.08133776485919952, 0.19321320950984955, 0.479926198720932, -0.03777691349387169, -0.3269166350364685, 0.5276400446891785, -0.02641589194536209, 0.10044455528259277, -0.15842187404632568, 0.03959687426686287, 0.15314537286758423, 0.15687505900859833, -0.028588727116584778, 0.11564283072948456, 0.1160011738538742, -0.20312318205833435, 0.08793731778860092, 0.47329702973365784, 0.16672207415103912, 0.2244890183210373, 0.24886716902256012, 0.08665228635072708, 0.26758602261543274, 0.18159982562065125, -0.05003848671913147, -0.28405532240867615, 0.11663934588432312, 0.2693532109260559, 0.0217538271099329, 0.40507763624191284, -0.04023045301437378, 0.2749062776565552, 0.2071460634469986, -0.05860799923539162, 0.13754819333553314, -0.046124301850795746, 0.19098559021949768, -0.17176476120948792, -0.14505870640277863, 0.19571903347969055, 0.3370576500892639, 0.14613036811351776, -0.28319087624549866, 0.29675036668777466, 0.43354532122612, -0.04222499951720238, -0.2803862392902374, 0.007216589525341988, -0.2794593572616577, -0.014330608770251274, 0.0462968535721302, 0.7960909008979797, 0.4438543915748596, 0.023024756461381912, 0.19142353534698486, 0.030060304328799248, 0.28355392813682556, -0.08163869380950928, 0.35438084602355957, 0.13280870020389557, -0.0809345543384552, -0.019625868648290634, -0.4542376399040222, -0.16633297502994537, 0.19308406114578247, -0.04399538040161133, 0.18451495468616486, 0.1720050573348999, -0.35270455479621887, 0.07898017019033432, -0.24307885766029358, -0.3965579867362976, -0.24744026362895966, -0.18865586817264557, 0.03429286926984787, -0.1788603514432907, -0.21458986401557922, -0.04657541215419769, -0.13735565543174744, -0.15257233381271362, -0.0752798467874527, -0.023089058697223663, -0.28465330600738525, 0.05192771553993225, -0.17617087066173553, -0.10791464895009995, -0.0871831476688385, -0.07350166887044907, 0.20064528286457062, 0.008562227711081505, 0.09787154942750931, -0.46970754861831665, 0.08699580281972885, -0.24512559175491333, 0.18683673441410065, 0.3407442271709442, 0.061189182102680206, 0.1629946082830429, 0.3850088119506836, 0.154400035738945, -0.1284124106168747, -0.03554520756006241, -0.10438898205757141, 0.11080198734998703, -0.12837910652160645, -0.44184979796409607, 0.12645530700683594, 0.07320324331521988, -0.09493151307106018, -0.20785018801689148, -0.7182461619377136, -0.10018764436244965, 0.22224047780036926, -0.1430765986442566, 0.2521554231643677, -0.16815915703773499, -0.22397705912590027, 0.04244155436754227, -0.32859715819358826, 0.051289595663547516, -0.18833735585212708, -0.764377772808075, 0.2837584316730499, -0.361350953578949, -0.24173173308372498, -0.06835385411977768, -0.13623979687690735, 0.15212556719779968, 0.05783739686012268, -0.19926784932613373, -0.017136916518211365, -0.16935035586357117, 0.21995341777801514, 0.11566855013370514, 0.3086591362953186, 0.03569281846284866, -0.03096267208456993, 0.15848606824874878, -0.15024776756763458, -0.04655136168003082, 0.2151976227760315, -0.34224534034729004, 0.35896754264831543, 0.3947509229183197, -0.04257579892873764, 0.21589189767837524, 0.7951546311378479, 0.22893370687961578, -0.1130504161119461, 0.15162059664726257, -0.10193877667188644, 0.3906204104423523, 0.3349587917327881, -0.23026666045188904, -0.04808772727847099, 0.012357402592897415, -0.03995291888713837, 0.13240393996238708, 0.09985442459583282, 0.22798897325992584, -0.2753509283065796, -0.12350430339574814, -0.17704389989376068, -0.18521155416965485, -0.07103466987609863, 0.5313078761100769, 0.1815858632326126, 0.07378380745649338, 0.20228469371795654, -0.028092160820961, 0.07284309715032578, 0.06058854982256889, 0.4210455119609833, 0.4186694622039795, 0.19214890897274017, -0.1343725472688675, -0.03966272249817848, -0.18153032660484314, 0.05332325026392937, 0.33523067831993103, -0.15678466856479645, 0.14729948341846466, 0.0737626925110817, 0.17967037856578827, 0.1191365197300911, 0.711618185043335, 0.023889830335974693, -0.06984453648328781, -0.143161803483963, -0.2801819443702698, -0.07078762352466583, 0.11492642015218735, -0.0957353338599205, 0.024242734536528587, 0.47469809651374817, 0.23597507178783417, -0.39264535903930664, -0.3926122188568115, 0.12823861837387085, 0.1697731912136078, -0.29946503043174744, -0.11545529961585999, -0.10367782413959503, -0.1777818351984024, -0.19071662425994873, -0.2225702702999115, 0.1076342985033989, 0.06300940364599228, -0.005877171643078327, -0.0068226950243115425, 0.10048243403434753, 0.09173183143138885, 0.01433095894753933, 0.16325581073760986, 0.42218074202537537, -0.039736710488796234, -0.01886775903403759, 0.4088657796382904, 0.3936694264411926, 0.1898285299539566, 0.47660624980926514, -0.42842763662338257, -0.17425888776779175, -0.042308542877435684, 0.049196843057870865, 0.6706669926643372, 0.26398107409477234, -0.499154269695282, 0.041193172335624695, -0.029375746846199036, -0.12052998691797256, -0.3901121914386749, 0.22277703881263733, 0.299439013004303, -0.0055162860080599785, -0.1625821590423584, -0.685382068157196, 0.4479740262031555, -0.04211534932255745, -0.27546244859695435, 0.18759961426258087, 0.052627842873334885, -0.3134819567203522, -0.15793506801128387, -0.04296912997961044, 0.8905712366104126, 0.10916873067617416, 0.1326388567686081, 0.09643560647964478, -0.4127994179725647, 0.606241762638092, -0.09399110078811646, -0.12761804461479187, -0.22416788339614868, -0.008479342795908451, -0.15410971641540527, -0.2611883282661438, -0.018129268661141396, -0.06391426175832748, -0.042786456644535065, 0.3958508372306824, -0.06760308891534805, 0.031684570014476776, 0.029226558282971382, 0.4977274537086487, -0.044174693524837494, -0.17076466977596283, 0.0448247566819191, -0.11758793145418167, 0.22821620106697083, 0.44012558460235596, -0.07899514585733414, -0.4989713430404663, -0.30095216631889343, 0.1147175282239914, -0.05454956367611885, -0.07100513577461243, -0.4479239881038666, 0.028698906302452087, 0.035387810319662094, -0.33402177691459656, -0.0853995829820633, 0.6262854933738708, 0.28296566009521484, -0.003751919372007251, -0.17672671377658844, 0.07250659167766571, -0.057848431169986725, 0.07569583505392075, 0.273887038230896, 0.15861175954341888, -0.0788765624165535, -0.03856194019317627, -0.17388443648815155, 0.08792486786842346, -0.038208577781915665, -0.19048143923282623, 0.11078661680221558, -0.12930923700332642, 0.21010719239711761, -0.2470284402370453, -0.01842481829226017, -0.015843726694583893, 0.08169445395469666, -0.0674474760890007, -0.01877676136791706, 0.2836288809776306, -0.3048096299171448, 0.06305526196956635, -0.28209736943244934, -0.3546585142612457, -0.1788024753332138, 0.31142616271972656, -0.11399513483047485, 0.05608338490128517, 0.23824307322502136, -0.12300024926662445, -0.2812081575393677, 0.0032601221464574337, 0.27753329277038574, -0.13801319897174835, -0.3678474724292755, 0.2783263325691223, 0.30439525842666626, 0.15695622563362122, -0.39938703179359436, 0.25588998198509216, 0.05127754434943199, -0.3115507960319519, -0.23245254158973694, -0.4871138036251068, -0.22405122220516205, 0.19306248426437378, -0.31251591444015503, 0.10297368466854095, -0.06957129389047623, 0.11959869414567947, 0.07090158760547638, -0.022923531010746956, -0.17744693160057068, 0.0112341633066535, -0.05160706117749214, -0.14223875105381012, 0.35806360840797424, 0.10301236808300018, 0.30024591088294983, 0.028435982763767242, -0.06409278512001038, -0.07926236838102341, -0.03253998979926109, 0.0026255447883158922, -0.25506114959716797, 0.19151535630226135, -0.12907327711582184, -0.21191950142383575, 0.08967763930559158, -0.10739148408174515, -0.07285258919000626, 0.038683656603097916, 0.23451323807239532, 0.2677183747291565, 0.1994190663099289, 0.37628868222236633, -0.05581141263246536, -0.07181128859519958, -0.5359957814216614, 0.42927315831184387, 0.06651431322097778, 0.48075631260871887, -0.11214059591293335, 0.48398464918136597, -0.41241753101348877, -0.09120724350214005, 0.17447297275066376, -0.13535714149475098, -0.04912698641419411, -0.05168943107128143, 0.41210368275642395, 0.01653256081044674, 0.10322766751050949, 0.12271760404109955, 0.2486449033021927, 0.24842528998851776, -0.058913860470056534, 0.07339570671319962, 0.258876770734787, -0.05673639476299286, -0.057520344853401184, 0.001968491356819868, -0.12957699596881866, -0.014925146475434303, 0.04100964963436127, 0.346377968788147, 0.33147719502449036, -0.01627257466316223, 0.007801469415426254, -0.28438472747802734, 0.3758380711078644, 0.4476371109485626, 0.009859626181423664, 0.6277905106544495, 0.15138539671897888, 0.38644134998321533, 0.19796475768089294, 0.6132416129112244, 0.1873984932899475, 0.31356081366539, -0.2671072483062744, -0.09850044548511505, -0.100067637860775, 0.22155137360095978, 0.3323749899864197, -0.4487758278846741, 0.1322830319404602, 0.15278388559818268, -0.17467330396175385, 0.0269171055406332, -0.2832140028476715, 0.581244170665741, -0.1307183802127838, 0.11581825464963913, -0.1224224641919136, 0.49584364891052246, 0.07821398973464966, -0.2474399209022522, -0.0964747965335846, -0.2381601631641388, -0.12135479599237442, 0.20788222551345825, -0.0611485131084919, -0.450580894947052, 0.10272618383169174, -0.07968754321336746, 0.1519850194454193, 0.023211048915982246, 0.0723724290728569, 0.13939110934734344, 0.08828799426555634, -0.1974714994430542, 0.1637422740459442, -0.01880783960223198, 0.2937118113040924, 0.333478718996048, 0.2842669188976288, 0.049450043588876724, 0.3033718466758728, 0.17448671162128448, -0.24000123143196106, 0.24576717615127563, -0.012386482208967209, -0.08532527834177017, -0.028378399088978767, -0.13752974569797516, -0.07904209941625595, 0.4382871091365814, -0.03689003735780716, -0.0050122556276619434, -0.2990778684616089, 0.10531565546989441, 0.27478548884391785, 0.05074676126241684, 0.5575399398803711, -0.0524817630648613, 0.03603009507060051, 0.12577103078365326, -0.005042311269789934, -0.4562186896800995, 0.05324767529964447, 0.2740342617034912, -0.2587767243385315, 0.21180585026741028, 0.021721072494983673, -0.000145642930874601, 0.023895420134067535, 0.26188892126083374, 0.19031138718128204, 0.3403913080692291, -0.3425286114215851, -0.2439432591199875, -0.5069082379341125, -0.20153193175792694, 0.36208394169807434, -0.2535525858402252, -0.12728527188301086, 0.29395684599876404, -0.22352255880832672, 0.21327868103981018, 0.05101294815540314, 0.28685832023620605, -0.03186682239174843, 0.14226914942264557, -0.11172657459974289, -0.1762114018201828, -0.3298960328102112, 0.12014250457286835, 0.10102555900812149, -0.19565525650978088, 0.31695595383644104, -0.17721027135849, -0.13248057663440704, -0.1015203595161438, 0.24131737649440765, 0.14228440821170807, -0.16645382344722748, 0.11815910041332245, -0.022762952372431755, 0.09941668063402176, -0.0737086683511734, -0.061180293560028076, 0.18476925790309906, 0.16328147053718567, -0.2971650958061218, 0.0032463015522807837, -0.14494456350803375, -0.16464099287986755, -0.3252433240413666, 0.051983270794153214, -0.5005982518196106, 0.3418349325656891, 0.26400429010391235, 0.04531276226043701, -0.04865679517388344, -0.041343774646520615, -0.31966859102249146, 0.05022898688912392, 0.5476943254470825, 0.11396376043558121, -0.2953314185142517, 0.00012173669529147446, -0.17929977178573608, -0.004662960302084684, 0.5082625150680542, -0.2689802646636963, 0.14560821652412415, 0.07433056831359863, 0.1820535957813263, 0.3494499921798706, -0.04596902057528496, -0.5170988440513611, 0.22811613976955414, 0.5126155614852905, -0.07096673548221588, 0.1337629109621048, 0.17367449402809143, 0.0446934700012207, -0.02027341164648533, -0.11745493859052658, 0.467048704624176, 0.1793738603591919, -0.38254982233047485, 0.12299308180809021, -0.0028743299189954996 ]
https://github.com/huggingface/datasets/issues/1831
Some question about raw dataset download info in the project .
Sure it would be nice to have an easier access to these paths ! The dataset builder could have a method to return those, what do you think ? Feel free to work on this @albertvillanova , it would be a nice addition :) Your suggestion does work as well @albertvillanova if you complete it by specifying `etag=` to `hash_url_to_filename`. The ETag is obtained by a HEAD request and is used to know if the file on the remote host has changed. Therefore if a file is updated on the remote host, then the hash returned by `hash_url_to_filename` is different.
Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ?
100
Some question about raw dataset download info in the project . Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ? Sure it would be nice to have an easier access to these paths ! The dataset builder could have a method to return those, what do you think ? Feel free to work on this @albertvillanova , it would be a nice addition :) Your suggestion does work as well @albertvillanova if you complete it by specifying `etag=` to `hash_url_to_filename`. The ETag is obtained by a HEAD request and is used to know if the file on the remote host has changed. Therefore if a file is updated on the remote host, then the hash returned by `hash_url_to_filename` is different.
[ -0.11998740583658218, -0.10072679072618484, -0.04412250965833664, 0.5240066051483154, 0.04389754682779312, -0.1413998156785965, 0.11834032088518143, 0.0170492772012949, 0.011315274983644485, 0.1344253122806549, -0.34619367122650146, 0.15114407241344452, -0.13548848032951355, 0.592069149017334, 0.18941181898117065, -0.03796269744634628, -0.08418428152799606, 0.12170053273439407, -0.10777196288108826, -0.08790076524019241, -0.35656750202178955, 0.2822728455066681, -0.26870283484458923, 0.16571176052093506, -0.1946669965982437, -0.024845929816365242, -0.01810159906744957, 0.3191280663013458, -0.47272491455078125, -0.27376309037208557, 0.30051466822624207, 0.212832510471344, 0.40053483843803406, 0.1742073893547058, -0.00012492026144172996, 0.0375022292137146, 0.272861510515213, -0.34029045701026917, -0.5269049406051636, -0.2696059048175812, -0.691682755947113, -0.008249585516750813, -0.057973895221948624, -0.2070549577474594, 0.15472491085529327, 0.011264067143201828, -0.05310033634305, -0.13250094652175903, 0.08583228290081024, 0.11862963438034058, 0.05185836926102638, 0.36971500515937805, -0.09700571000576019, 0.06019449979066849, 0.31833264231681824, 0.2908335328102112, 0.007793144788593054, 0.12664437294006348, -0.07617411017417908, 0.34059444069862366, 0.10568817704916, 0.3024415075778961, 0.22258268296718597, 0.10281122475862503, 0.4406277537345886, 0.3373492956161499, -0.3781239688396454, -0.27691128849983215, 0.037309978157281876, 0.24233056604862213, 0.35371237993240356, -0.2812841534614563, -0.584125280380249, -0.4083447754383087, -0.1191256046295166, -0.468543142080307, 0.10807717591524124, 0.12144595384597778, -0.428123414516449, 0.3086462616920471, -0.5675060153007507, -0.47802552580833435, -0.1658399999141693, -0.08521474897861481, -0.1375494748353958, 0.3164411187171936, -0.27753329277038574, 0.0663059875369072, 0.07925619184970856, 0.3843626081943512, 0.2701306939125061, -0.2281225621700287, -0.02187005989253521, 0.21743479371070862, -0.10736148804426193, -0.11027930676937103, -0.05122464522719383, 0.2954007685184479, 0.17769551277160645, 0.01952284760773182, -0.12462660670280457, -0.25779715180397034, -0.062238965183496475, 0.0344972088932991, 0.3408120274543762, 0.03342597559094429, 0.13010402023792267, 0.2412094622850418, 0.2612254023551941, 0.17661060392856598, 0.16608773171901703, -0.26140087842941284, -0.11514923721551895, -0.06749837100505829, -0.346202552318573, 0.16717875003814697, 0.018523169681429863, -0.11034397780895233, -0.17858906090259552, -0.23918142914772034, -0.027965674176812172, -0.349695086479187, 0.3141701817512512, 0.35733017325401306, -0.12206786870956421, 0.04270629212260246, -0.12956422567367554, -0.003386266529560089, 0.10850465297698975, -0.3434864282608032, -0.057591695338487625, -0.20418371260166168, -0.18113486468791962, 0.11465437710285187, -0.24677583575248718, -0.11906014382839203, 0.3445102870464325, 0.036877792328596115, 0.004490570165216923, 0.05116617679595947, -0.021229039877653122, -0.055425629019737244, 0.26338374614715576, 0.11531354486942291, 0.022503437474370003, 0.2498396784067154, -0.17231868207454681, -0.2595720887184143, -0.1941959410905838, -0.14013363420963287, -0.32650992274284363, -0.4692927300930023, -0.05500440299510956, -0.03652232885360718, -0.1397641897201538, 0.08825540542602539, -0.20459173619747162, -0.035949498414993286, -0.004326547496020794, 0.2903865575790405, 0.015333577059209347, 0.036874864250421524, -0.43757444620132446, -0.26140740513801575, 0.4150722920894623, 0.5498956441879272, -0.26407554745674133, -0.12488254904747009, 0.16261520981788635, -0.4113043248653412, 0.0055082570761442184, 0.08511490374803543, -0.37622198462486267, 0.44812577962875366, -0.39542868733406067, -0.14911918342113495, 0.428454726934433, -0.34861278533935547, -0.2835325300693512, 0.5134187340736389, 0.06857388466596603, -0.00926724262535572, 0.4227091073989868, 0.004993470851331949, 0.30713245272636414, -0.08315382897853851, -0.07494858652353287, 0.5160322785377502, 0.11159009486436844, -0.11258484423160553, -0.014631910249590874, -0.25218743085861206, -0.15627296268939972, -0.08697593957185745, -0.09833920747041702, 0.25406572222709656, 0.13403086364269257, -0.18789750337600708, 0.5806208848953247, -0.09069591760635376, 0.2048037350177765, 0.2849578857421875, 0.06661297380924225, 0.14460666477680206, -0.04341558367013931, 0.05923968553543091, -0.6398254036903381, 0.20616884529590607, -0.27134883403778076, -0.24023744463920593, -0.3789285719394684, -0.3321024179458618, -0.2896720767021179, 0.13957694172859192, -0.22517231106758118, -0.3142985701560974, -0.08741088211536407, 0.14751467108726501, 0.47253403067588806, 0.042308226227760315, -0.3148829936981201, 0.5093699097633362, -0.08090494573116302, 0.12229647487401962, -0.16393759846687317, 0.055234409868717194, 0.16159452497959137, 0.1928497850894928, -0.007558512035757303, 0.09639032185077667, 0.11788439005613327, -0.15112115442752838, 0.0378686897456646, 0.4245799779891968, 0.12220469862222672, 0.251421183347702, 0.3347153067588806, 0.0576162151992321, 0.2651588022708893, 0.14589816331863403, -0.005686911288648844, -0.274090051651001, 0.0745328813791275, 0.2104528844356537, 0.03841426223516464, 0.4083471894264221, -0.0198520515114069, 0.27856454253196716, 0.1696809083223343, -0.008431414142251015, 0.10390093177556992, -0.030802283436059952, 0.14525407552719116, -0.16566231846809387, -0.17338283360004425, 0.17355464398860931, 0.32528048753738403, 0.09082671254873276, -0.24939411878585815, 0.2692491412162781, 0.46805527806282043, -0.06802819669246674, -0.34777718782424927, 0.11484146118164062, -0.2691211700439453, -0.05571655184030533, 0.1246277317404747, 0.8814336657524109, 0.4017539918422699, 0.01234361995011568, 0.2361508011817932, 0.07185444980859756, 0.27024778723716736, -0.0683170035481453, 0.3649239242076874, 0.081986203789711, -0.09131710976362228, -0.014956626109778881, -0.48089203238487244, -0.19156627357006073, 0.15246936678886414, -0.02260637655854225, 0.1827385276556015, 0.16122853755950928, -0.36833879351615906, 0.033082425594329834, -0.2861868739128113, -0.3713713586330414, -0.22214818000793457, -0.14414899051189423, -0.08420508354902267, -0.18021422624588013, -0.23560261726379395, -0.09176848828792572, -0.1567494422197342, -0.20119842886924744, -0.11801636964082718, 0.029020603746175766, -0.22266241908073425, 0.06880532950162888, -0.19168034195899963, -0.15537121891975403, -0.09857533127069473, -0.09070247411727905, 0.18381451070308685, -0.03975622355937958, 0.08758198469877243, -0.49639570713043213, 0.1469939798116684, -0.30516529083251953, 0.20475797355175018, 0.3494754135608673, 0.033693209290504456, 0.17684981226921082, 0.4060945212841034, 0.20005249977111816, -0.06655397266149521, 0.0030447354074567556, -0.10940197110176086, 0.09116223454475403, -0.10930421948432922, -0.389408677816391, 0.14040766656398773, 0.09432364255189896, -0.0475679486989975, -0.22936870157718658, -0.6929699778556824, -0.04163160175085068, 0.2408764511346817, -0.19812196493148804, 0.2762165069580078, -0.10551370680332184, -0.1378176063299179, 0.03868144005537033, -0.4083724915981293, -0.013105032034218311, -0.18604786694049835, -0.8774718046188354, 0.2753806710243225, -0.35449865460395813, -0.23037932813167572, -0.05392995849251747, -0.059701140969991684, 0.17877180874347687, 0.06488769501447678, -0.21972578763961792, -0.015143373981118202, -0.11512758582830429, 0.27846041321754456, 0.1276269257068634, 0.29276472330093384, 0.05189410597085953, -0.056652702391147614, 0.16488324105739594, -0.15887093544006348, -0.05074441060423851, 0.2370915710926056, -0.3477131724357605, 0.36562132835388184, 0.4061177968978882, -0.013174078427255154, 0.22611457109451294, 0.7650007605552673, 0.18526563048362732, -0.07836537063121796, 0.1470421552658081, -0.12832865118980408, 0.3387124538421631, 0.3169540464878082, -0.19098293781280518, -0.0454268716275692, -0.07151753455400467, -0.07895341515541077, 0.17518246173858643, 0.12322454154491425, 0.239290252327919, -0.2906849980354309, -0.21207360923290253, -0.16549986600875854, -0.18593163788318634, -0.11481460183858871, 0.5175085663795471, 0.1606007069349289, 0.11399181932210922, 0.21112746000289917, -0.11490876972675323, 0.046660490334033966, 0.09160776436328888, 0.37275540828704834, 0.44404199719429016, 0.18545691668987274, -0.13312022387981415, 0.017286084592342377, -0.2204589694738388, 0.08725778758525848, 0.33342406153678894, -0.13853004574775696, 0.15635497868061066, 0.056496188044548035, 0.19492843747138977, 0.14949367940425873, 0.7233949303627014, -0.010726782493293285, -0.03193722665309906, -0.2197544425725937, -0.25696346163749695, -0.026556259021162987, 0.12340209633111954, -0.048227403312921524, 0.033976610749959946, 0.4549550712108612, 0.24888469278812408, -0.35974985361099243, -0.3623926341533661, 0.1546039581298828, 0.11620968580245972, -0.2746768891811371, -0.1146770641207695, -0.08331272006034851, -0.08994091302156448, -0.18010880053043365, -0.20047374069690704, 0.05396753177046776, 0.056837305426597595, -0.031087329611182213, -0.026908453553915024, 0.1527349203824997, 0.1428890973329544, -0.0335359200835228, 0.17499861121177673, 0.34823933243751526, -0.06587371975183487, -0.023458754643797874, 0.4482230842113495, 0.44150176644325256, 0.17504215240478516, 0.45152202248573303, -0.3798847794532776, -0.19043022394180298, -0.09102248400449753, 0.015267138369381428, 0.6671974658966064, 0.2702566981315613, -0.45986419916152954, 0.02533729374408722, 0.09219145774841309, -0.09705992043018341, -0.42439550161361694, 0.20113864541053772, 0.2834623157978058, -0.02529551088809967, -0.1949807107448578, -0.6230814456939697, 0.4908493459224701, -0.11231522262096405, -0.24026475846767426, 0.18117502331733704, 0.1288718730211258, -0.3148925304412842, -0.16431395709514618, -0.0058821518905460835, 0.8531180024147034, 0.12055126577615738, 0.15518604218959808, 0.11117918789386749, -0.4877265393733978, 0.5681891441345215, -0.11022143810987473, -0.15492786467075348, -0.26228663325309753, -0.013986769132316113, -0.20053507387638092, -0.23488320410251617, -0.007566888816654682, -0.053539540618658066, 0.003647543489933014, 0.3770986795425415, 0.008833954110741615, 0.09624014049768448, 0.019093524664640427, 0.5144587159156799, -0.05744187906384468, -0.15685726702213287, 0.10193256288766861, -0.11203672736883163, 0.20220647752285004, 0.4311734437942505, -0.06114301085472107, -0.502457320690155, -0.2511902153491974, 0.08234617114067078, -0.036788586527109146, -0.057554278522729874, -0.4359019994735718, -0.06462761759757996, 0.10108564794063568, -0.3668344020843506, -0.1016831174492836, 0.5698295831680298, 0.24791912734508514, 0.02138196863234043, -0.21063560247421265, 0.10941644012928009, -0.09360835701227188, 0.1404232382774353, 0.24287211894989014, 0.1114891767501831, -0.07985876500606537, -0.06513483077287674, -0.20686496794223785, 0.07147174328565598, -0.039327237755060196, -0.2618885040283203, 0.12173978239297867, -0.10655423998832703, 0.15921767055988312, -0.26591774821281433, -0.02382364310324192, -0.06511810421943665, 0.066371388733387, -0.0832175761461258, -0.01986660808324814, 0.2281322330236435, -0.2856943607330322, 0.03718733787536621, -0.2354150116443634, -0.3530793786048889, -0.17049476504325867, 0.3665003478527069, -0.18454305827617645, 0.0369892343878746, 0.2687331736087799, -0.09281816333532333, -0.26680755615234375, 0.015024345368146896, 0.30829375982284546, -0.10778450965881348, -0.3853500485420227, 0.2481774091720581, 0.29175662994384766, 0.19743065536022186, -0.4033755958080292, 0.23622721433639526, 0.01753978803753853, -0.2571876347064972, -0.1818036437034607, -0.4481995403766632, -0.22016125917434692, 0.13894496858119965, -0.35900598764419556, 0.1187710389494896, -0.05643127113580704, 0.1030539870262146, 0.08750658482313156, -0.0609072744846344, -0.1775810718536377, 0.02925105392932892, -0.03166346997022629, -0.17088055610656738, 0.30032190680503845, 0.12318705767393112, 0.3215066194534302, 0.03046562150120735, -0.07578675448894501, -0.03750278800725937, -0.023896245285868645, 0.01237089280039072, -0.26746538281440735, 0.20465362071990967, -0.11779151856899261, -0.17218837141990662, 0.09889879822731018, -0.06692878901958466, -0.10826952010393143, 0.1115722581744194, 0.2172594666481018, 0.2519305646419525, 0.17155499756336212, 0.4327419400215149, -0.05780540406703949, -0.0781414732336998, -0.5655530095100403, 0.43708536028862, 0.07442440092563629, 0.5529667139053345, -0.14224334061145782, 0.49687081575393677, -0.4778572618961334, -0.05982115864753723, 0.17091239988803864, -0.06790555268526077, -0.035161133855581284, -0.09247296303510666, 0.4812842905521393, 0.027164814993739128, 0.08242659270763397, 0.11390834301710129, 0.2881806194782257, 0.21349738538265228, -0.05599465221166611, -0.022077230736613274, 0.2925494611263275, -0.06583505868911743, -0.02433803677558899, -0.006056009791791439, -0.11527656763792038, -0.05155225470662117, -0.007452655117958784, 0.26729241013526917, 0.31705939769744873, -0.0574735663831234, 0.03666087985038757, -0.28357598185539246, 0.30315887928009033, 0.41115137934684753, 0.01609077677130699, 0.604790449142456, 0.13519726693630219, 0.3596576154232025, 0.2057717889547348, 0.5650688409805298, 0.14625155925750732, 0.34692075848579407, -0.2732599675655365, -0.10610959678888321, -0.06793239712715149, 0.2807179093360901, 0.3305310606956482, -0.4702310562133789, 0.14464432001113892, 0.11347969621419907, -0.22966627776622772, 0.0006692595779895782, -0.2954067885875702, 0.6380740404129028, -0.04820707440376282, 0.14276942610740662, -0.18980643153190613, 0.5034027695655823, 0.09230212867259979, -0.26702019572257996, -0.13571606576442719, -0.2603681683540344, -0.16468724608421326, 0.2709101736545563, -0.06806691735982895, -0.42041435837745667, 0.09851641952991486, -0.050476472824811935, 0.17679458856582642, 0.028014110401272774, 0.028728678822517395, 0.06619768589735031, 0.09504976868629456, -0.22672155499458313, 0.10044630616903305, 0.01616894081234932, 0.29247719049453735, 0.4172530472278595, 0.232700914144516, 0.03231647238135338, 0.25832653045654297, 0.20042233169078827, -0.22062501311302185, 0.24011056125164032, -0.018181724473834038, -0.06581861525774002, 0.027500353753566742, -0.12936434149742126, 0.013819231651723385, 0.4370177686214447, -0.046409282833337784, 0.02112351916730404, -0.2937389016151428, 0.04024277627468109, 0.2716839611530304, -0.013460654765367508, 0.488511323928833, 0.011189057491719723, 0.021813997998833656, 0.07291284203529358, 0.014840127900242805, -0.41925546526908875, 0.07811833173036575, 0.31700608134269714, -0.2312474250793457, 0.1861361265182495, -0.009423679672181606, -0.0040243822149932384, -0.06532390415668488, 0.3525855541229248, 0.22034136950969696, 0.3803898096084595, -0.34706348180770874, -0.2478010356426239, -0.4514295756816864, -0.2148243933916092, 0.367912232875824, -0.2235807180404663, -0.08212541788816452, 0.2524746060371399, -0.23522169888019562, 0.1795065850019455, 0.014575432986021042, 0.25174570083618164, -0.05158672854304314, 0.18124309182167053, -0.07469592243432999, -0.17617900669574738, -0.359852135181427, 0.1285802125930786, 0.08890757709741592, -0.17426414787769318, 0.35840919613838196, -0.11788652837276459, -0.16735365986824036, -0.09717830270528793, 0.23763595521450043, 0.17410069704055786, -0.23551860451698303, 0.17223045229911804, 0.041374754160642624, 0.13445338606834412, -0.06455430388450623, -0.055709272623062134, 0.12124744802713394, 0.16739852726459503, -0.3241879642009735, -0.03889598324894905, -0.15373925864696503, -0.13084301352500916, -0.1989884376525879, 0.03942905738949776, -0.5205608010292053, 0.3817767798900604, 0.24143856763839722, 0.09032406657934189, -0.05928099527955055, -0.056486841291189194, -0.2958539128303528, 0.011628319509327412, 0.5659472942352295, 0.13104894757270813, -0.2498774379491806, 0.0230491254478693, -0.19824916124343872, 0.0172986201941967, 0.5022478699684143, -0.3008299767971039, 0.15936365723609924, 0.060786813497543335, 0.2231653928756714, 0.34167423844337463, -0.1027989387512207, -0.5669330954551697, 0.20016948878765106, 0.505692720413208, -0.11717211455106735, 0.15273994207382202, 0.16592095792293549, 0.14244568347930908, 0.028701534494757652, -0.10235883295536041, 0.508536696434021, 0.19500426948070526, -0.42775824666023254, 0.1314685195684433, -0.025232991203665733 ]
https://github.com/huggingface/datasets/issues/1831
Some question about raw dataset download info in the project .
Once #1846 will be merged, the paths to the raw downloaded files will be accessible as: ```python builder_instance.dl_manager.downloaded_paths ```
Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ?
19
Some question about raw dataset download info in the project . Hi , i review the code in https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py in the _split_generators function is the truly logic of download raw datasets with dl_manager and use Conll2003 cls by use import_main_class in load_dataset function My question is that , with this logic it seems that i can not have the raw dataset download location in variable in downloaded_files in _split_generators. If someone also want use huggingface datasets as raw dataset downloader, how can he retrieve the raw dataset download path from attributes in datasets.dataset_dict.DatasetDict ? Once #1846 will be merged, the paths to the raw downloaded files will be accessible as: ```python builder_instance.dl_manager.downloaded_paths ```
[ -0.22275273501873016, -0.07279008626937866, -0.07953454554080963, 0.5368559956550598, 0.11309107393026352, -0.07173081487417221, 0.1194332093000412, -0.040838103741407394, 0.030158571898937225, 0.12580588459968567, -0.37297362089157104, 0.19036945700645447, -0.1131492480635643, 0.603097677230835, 0.14625440537929535, -0.04946146905422211, -0.05285147577524185, 0.19315488636493683, -0.09360205382108688, -0.04381421208381653, -0.4198141098022461, 0.30987557768821716, -0.3674633204936981, 0.11164398491382599, -0.18325746059417725, 0.000952891365159303, 0.0041938116773962975, 0.284913569688797, -0.4855916500091553, -0.25978776812553406, 0.2608342170715332, 0.2013038694858551, 0.40079551935195923, 0.24474161863327026, -0.0001246907195309177, 0.04527266323566437, 0.2902218997478485, -0.33600690960884094, -0.49380162358283997, -0.26953449845314026, -0.6499735116958618, 0.008085292764008045, -0.07448305934667587, -0.18323014676570892, 0.08800013363361359, -0.09403695911169052, -0.08865785598754883, -0.11867348104715347, 0.12164265662431717, 0.09114299714565277, 0.06241077557206154, 0.35189032554626465, -0.02135627530515194, 0.024473685771226883, 0.22501838207244873, 0.25220465660095215, 0.05808331444859505, 0.061889830976724625, -0.025265874341130257, 0.3873569667339325, 0.19038034975528717, 0.28158316016197205, 0.23300670087337494, 0.1151764765381813, 0.44007912278175354, 0.2746644914150238, -0.28496474027633667, -0.34415170550346375, 0.06462706625461578, 0.18970772624015808, 0.34174099564552307, -0.3277815580368042, -0.48005053400993347, -0.35111236572265625, -0.12979784607887268, -0.5806761980056763, 0.06381938606500626, 0.12261562794446945, -0.45668306946754456, 0.27881237864494324, -0.5162333250045776, -0.5137311816215515, -0.13608524203300476, -0.09485386312007904, -0.23399032652378082, 0.4693616032600403, -0.36340564489364624, 0.03392338752746582, 0.07878848165273666, 0.40595054626464844, 0.2523898780345917, -0.19821098446846008, -0.03294498100876808, 0.236331969499588, -0.14705786108970642, -0.1451294720172882, -0.12419728189706802, 0.24373209476470947, 0.18728835880756378, -0.010250872001051903, -0.15922954678535461, -0.2508050501346588, 0.06323237717151642, 0.041423555463552475, 0.379071980714798, 0.04836467280983925, 0.07307545095682144, 0.2580432593822479, 0.2510024905204773, 0.12097617238759995, 0.1441129744052887, -0.23359081149101257, -0.09296747297048569, -0.06286259740591049, -0.38143670558929443, 0.1422055959701538, 0.0251010749489069, -0.054440222680568695, -0.2750723361968994, -0.21448826789855957, -0.08977063745260239, -0.3215325176715851, 0.30578672885894775, 0.37439900636672974, -0.10193676501512527, 0.022055823355913162, -0.042346131056547165, 0.0158644188195467, 0.12650983035564423, -0.32918739318847656, -0.08459585905075073, -0.2330511063337326, -0.1551705300807953, 0.03512381762266159, -0.28792670369148254, -0.10389546304941177, 0.4116896986961365, 0.10918478667736053, 0.014076720923185349, 0.0599595345556736, 0.013430366292595863, -0.07171955704689026, 0.16966612637043, 0.18591834604740143, 0.04905162379145622, 0.21484646201133728, -0.1917361468076706, -0.2592780292034149, -0.1738080233335495, -0.07482939213514328, -0.32270142436027527, -0.42819321155548096, -0.12090212851762772, 0.008147846907377243, -0.1694129854440689, 0.119764044880867, -0.21290676295757294, 0.02802576869726181, 0.1235993504524231, 0.28714194893836975, 0.015297824516892433, -0.011190160177648067, -0.4282569885253906, -0.2514011859893799, 0.3835570812225342, 0.4348737895488739, -0.22151359915733337, -0.12300077080726624, 0.09401290118694305, -0.4314326345920563, 0.06299248337745667, 0.04781749099493027, -0.35829129815101624, 0.5085858702659607, -0.42546534538269043, -0.18228000402450562, 0.5232157111167908, -0.3267561197280884, -0.24765728414058685, 0.5593612790107727, 0.11161362379789352, -0.09789687395095825, 0.40940427780151367, -0.03050297498703003, 0.28242892026901245, -0.07300330698490143, -0.07145550101995468, 0.5319207310676575, 0.13482160866260529, -0.11838590353727341, 0.03075011819601059, -0.2429303377866745, -0.15915162861347198, -0.1199129968881607, -0.11367348581552505, 0.2524610757827759, 0.0738949105143547, -0.13676071166992188, 0.5260583162307739, -0.049771565943956375, 0.20350153744220734, 0.3350776433944702, -0.011146490462124348, 0.13695748150348663, 0.017329378053545952, -0.01549921277910471, -0.6657512187957764, 0.0838523730635643, -0.2974482774734497, -0.25763338804244995, -0.26900961995124817, -0.35591235756874084, -0.3377188742160797, 0.17514683306217194, -0.28772544860839844, -0.33276042342185974, -0.07928204536437988, 0.09227004647254944, 0.47108516097068787, -0.02587784454226494, -0.3952087163925171, 0.525118350982666, -0.04188095033168793, 0.16154120862483978, -0.0888034924864769, -0.004625243134796619, 0.14276045560836792, 0.13986723124980927, 0.0007150213932618499, 0.11269511282444, 0.08031412214040756, -0.1782865971326828, 0.06293051689863205, 0.46621939539909363, 0.15163187682628632, 0.19590681791305542, 0.1718025654554367, 0.009357220493257046, 0.2583297789096832, 0.1817043274641037, -0.051087431609630585, -0.22975526750087738, 0.09710299223661423, 0.2127886563539505, 0.0565141998231411, 0.3524628281593323, 0.022317320108413696, 0.2595728039741516, 0.16509486734867096, -0.06907441467046738, 0.14723172783851624, -0.01689845137298107, 0.195960134267807, -0.22397641837596893, -0.14863933622837067, 0.20687654614448547, 0.39712849259376526, 0.15361730754375458, -0.2714306116104126, 0.19678789377212524, 0.42086514830589294, -0.06795477867126465, -0.27242186665534973, 0.03422791138291359, -0.31875771284103394, -0.03334945812821388, 0.0566566176712513, 0.7819693684577942, 0.4830194115638733, 0.018999610096216202, 0.1943269968032837, 0.08965303748846054, 0.29206833243370056, -0.12521089613437653, 0.4004476070404053, 0.12244480848312378, -0.032063186168670654, 0.07603929191827774, -0.47855526208877563, -0.2069205343723297, 0.14022944867610931, 0.028768429532647133, 0.2454364001750946, 0.15550017356872559, -0.3239539563655853, 0.053591009229421616, -0.23969292640686035, -0.39926108717918396, -0.2819204330444336, -0.14867492020130157, -0.015990613028407097, -0.16451327502727509, -0.24365699291229248, -0.057423871010541916, -0.09815341979265213, -0.16977104544639587, -0.048837948590517044, 0.005650239996612072, -0.23273831605911255, 0.07420671731233597, -0.1707392781972885, -0.09411351382732391, -0.1039256677031517, -0.06432092189788818, 0.17746761441230774, -0.022660471498966217, 0.08940000832080841, -0.469409704208374, 0.12176177650690079, -0.1666538119316101, 0.18321493268013, 0.35408103466033936, 0.08138077706098557, 0.15176768600940704, 0.44314971566200256, 0.12896884977817535, -0.020491022616624832, 0.006858672946691513, -0.12509949505329132, 0.12453663349151611, -0.12648019194602966, -0.4716934263706207, 0.1030031070113182, 0.09852875769138336, -0.08310356736183167, -0.20643018186092377, -0.7116608023643494, -0.0992259606719017, 0.12189546972513199, -0.10455449670553207, 0.21853318810462952, -0.13338756561279297, -0.17114128172397614, 0.017439421266317368, -0.28638529777526855, -0.007046523038297892, -0.22023719549179077, -0.7402297258377075, 0.20953795313835144, -0.3735070526599884, -0.20580536127090454, -0.05531495809555054, -0.12005617469549179, 0.2111453264951706, -0.008678367361426353, -0.16509753465652466, 0.05140579864382744, -0.16194406151771545, 0.17685949802398682, 0.08311182260513306, 0.3762393295764923, -0.03478080406785011, -0.049743279814720154, 0.16115731000900269, -0.19358666241168976, -0.0018383630085736513, 0.18269218504428864, -0.39158037304878235, 0.366218626499176, 0.38907504081726074, -0.02434237115085125, 0.12294935435056686, 0.7561134696006775, 0.2864711284637451, -0.150274395942688, 0.1753433495759964, -0.13640351593494415, 0.4252978265285492, 0.2925862967967987, -0.17734749615192413, -0.04888802021741867, 0.07276678085327148, -0.06939850002527237, 0.18231366574764252, 0.0921330526471138, 0.22848427295684814, -0.2628241777420044, -0.16670876741409302, -0.11210236698389053, -0.13026019930839539, -0.14206188917160034, 0.5496481657028198, 0.19257085025310516, 0.09298740327358246, 0.19020378589630127, -0.0035488768480718136, 0.061308275908231735, 0.0210146252065897, 0.4095703959465027, 0.3880935609340668, 0.16189925372600555, -0.06720639020204544, -0.07496117055416107, -0.22479653358459473, 0.0742214024066925, 0.2897367477416992, -0.17738887667655945, 0.1776888221502304, 0.09866625815629959, 0.20313812792301178, 0.11854327470064163, 0.7021445035934448, -0.01807405613362789, -0.09241722524166107, -0.13284832239151, -0.21924221515655518, -0.011309666559100151, 0.10380320996046066, -0.12783242762088776, 0.10783030837774277, 0.5110158324241638, 0.20771965384483337, -0.3721145689487457, -0.4381558895111084, 0.21518336236476898, 0.10949420928955078, -0.2812066078186035, -0.18378397822380066, -0.15446919202804565, -0.10781947523355484, -0.22265535593032837, -0.20919214189052582, 0.14992453157901764, 0.08814973384141922, -0.0057041822001338005, -0.056678809225559235, 0.08265119791030884, 0.08418215811252594, -0.008678627200424671, 0.14627337455749512, 0.3609336018562317, -0.012086181901395321, -0.07332867383956909, 0.35743486881256104, 0.39060720801353455, 0.19430400431156158, 0.4637273848056793, -0.3728151023387909, -0.17683152854442596, -0.02650991454720497, 0.05314035713672638, 0.7556012868881226, 0.17636536061763763, -0.48826703429222107, 0.06012345850467682, -0.011633940041065216, -0.07556865364313126, -0.37209752202033997, 0.24221570789813995, 0.299221932888031, 0.03219931945204735, -0.1801101714372635, -0.6387305855751038, 0.48006922006607056, -0.05209929868578911, -0.20184053480625153, 0.1666301041841507, 0.00697368523105979, -0.30695638060569763, -0.14859777688980103, -0.010579276829957962, 0.7889215350151062, 0.16144756972789764, 0.11219955235719681, 0.08578617870807648, -0.4110889732837677, 0.5621544122695923, -0.12681716680526733, -0.17076456546783447, -0.29673317074775696, 0.053773440420627594, -0.14208091795444489, -0.2615426778793335, 0.04877026006579399, -0.09641502797603607, -0.08357018232345581, 0.35387858748435974, -0.10315544158220291, 0.0783122107386589, 0.035116203129291534, 0.5478227138519287, -0.0928405374288559, -0.10320300608873367, 0.09889666736125946, -0.11135619133710861, 0.25751540064811707, 0.4692697525024414, -0.12615522742271423, -0.48399537801742554, -0.18354938924312592, 0.10571349412202835, -0.05138343945145607, -0.09796974062919617, -0.4327755868434906, -0.016999732702970505, 0.09261470288038254, -0.3537162244319916, 0.012872644700109959, 0.6208481192588806, 0.2836615741252899, 0.023148484528064728, -0.16483353078365326, 0.06734500825405121, -0.04951959475874901, 0.07690165191888809, 0.2480773627758026, 0.20850466191768646, -0.06990522146224976, -0.07847285270690918, -0.15814879536628723, 0.1368752121925354, 0.010730366222560406, -0.20631279051303864, 0.08965562283992767, -0.10356491804122925, 0.1816360354423523, -0.3317034840583801, -0.03476082533597946, -0.04171866923570633, 0.06684201210737228, -0.06872770190238953, -0.010937807150185108, 0.2227703034877777, -0.3475809395313263, 0.06214341148734093, -0.27752190828323364, -0.3875671327114105, -0.19291828572750092, 0.2877936065196991, -0.053740039467811584, 0.06001071259379387, 0.2207133173942566, -0.0982336774468422, -0.20244841277599335, -0.03989126533269882, 0.33630627393722534, -0.10708678513765335, -0.2793472409248352, 0.3372609317302704, 0.3225170969963074, 0.09401234984397888, -0.363756388425827, 0.31484201550483704, -0.040512293577194214, -0.2393660843372345, -0.2452917993068695, -0.48228976130485535, -0.2695072889328003, 0.12329362332820892, -0.33198389410972595, 0.12494083493947983, -0.06201709061861038, 0.19582881033420563, 0.06519666314125061, -0.02437875233590603, -0.17958000302314758, 0.00909832026809454, -0.03626354783773422, -0.14892937242984772, 0.3070858418941498, 0.09862422943115234, 0.27303600311279297, 0.09484066814184189, -0.07222168892621994, -0.020914165303111076, -0.072385273873806, -0.010793246328830719, -0.22540061175823212, 0.18569408357143402, -0.12888655066490173, -0.1764189749956131, 0.11621874570846558, -0.07215742021799088, -0.1746608018875122, 0.12631088495254517, 0.2937784492969513, 0.15771158039569855, 0.17388062179088593, 0.3827468454837799, -0.07631201297044754, -0.05025702342391014, -0.5465728640556335, 0.3560204803943634, 0.09666058421134949, 0.479351669549942, -0.1747332215309143, 0.4857378602027893, -0.45417407155036926, -0.044782355427742004, 0.1853286176919937, -0.12383226305246353, 0.00490571791306138, -0.11672260612249374, 0.4232529401779175, -0.02138529159128666, 0.10240153968334198, 0.10843150317668915, 0.2947755753993988, 0.25231847167015076, -0.10781136900186539, 0.04409710690379143, 0.19664441049098969, -0.04593496024608612, -0.05867651849985123, -0.002026784000918269, -0.11702337116003036, -0.007700064685195684, 0.021397124975919724, 0.3223962187767029, 0.3394870162010193, 0.015131287276744843, -0.011926851235330105, -0.24167713522911072, 0.3374832272529602, 0.4738020896911621, 0.030713548883795738, 0.6178552508354187, 0.1547662615776062, 0.3950328230857849, 0.23197057843208313, 0.6090502738952637, 0.1564682275056839, 0.37640488147735596, -0.25118938088417053, -0.09263981878757477, -0.07205332070589066, 0.20948286354541779, 0.3799172043800354, -0.43240079283714294, 0.1841052770614624, 0.18723903596401215, -0.21922510862350464, 0.028990507125854492, -0.24777096509933472, 0.5808354616165161, -0.14306789636611938, 0.11189033836126328, -0.1777617484331131, 0.4941432476043701, -0.006395747419446707, -0.2583308815956116, -0.14018672704696655, -0.20411597192287445, -0.09134875982999802, 0.2170603722333908, -0.0641431212425232, -0.44200238585472107, 0.025469643995165825, -0.10101297497749329, 0.12053137272596359, 0.05089593678712845, 0.07091318815946579, 0.09712380170822144, 0.01959291473031044, -0.21969765424728394, 0.20893070101737976, -0.09219960123300552, 0.3163807988166809, 0.3709080219268799, 0.29751503467559814, 0.09741907566785812, 0.31269046664237976, 0.1595858782529831, -0.2844436466693878, 0.20181620121002197, -0.04754803702235222, -0.09056143462657928, 0.006173768080770969, -0.12108693271875381, 0.0058409967459738255, 0.41826173663139343, -0.046142060309648514, -0.020061984658241272, -0.3648141026496887, 0.16890065371990204, 0.25127899646759033, 0.00005958396286587231, 0.545522928237915, -0.053552065044641495, 0.008327903226017952, 0.08692631125450134, -0.01725069247186184, -0.477110356092453, 0.06027153506875038, 0.30293750762939453, -0.2579323351383209, 0.20564226806163788, 0.004927877336740494, -0.002101501217111945, -0.0642876923084259, 0.3228248357772827, 0.13366402685642242, 0.3569437265396118, -0.3690541386604309, -0.28266769647598267, -0.4720330238342285, -0.1578613966703415, 0.39023637771606445, -0.2169169932603836, -0.08853713423013687, 0.2607625722885132, -0.2557825744152069, 0.2271682769060135, 0.03406836837530136, 0.32264164090156555, 0.010752138681709766, 0.14977341890335083, -0.0656411275267601, -0.16148234903812408, -0.3975387513637543, 0.1098097488284111, 0.11434246599674225, -0.19394195079803467, 0.36256176233291626, -0.22834405303001404, -0.13993680477142334, -0.11161043494939804, 0.2486991435289383, 0.20834468305110931, -0.20494166016578674, 0.11925160139799118, -0.03922034054994583, 0.15622858703136444, -0.06644030660390854, 0.016616642475128174, 0.23282326757907867, 0.20918911695480347, -0.37842312455177307, -0.0006282525137066841, -0.10048739612102509, -0.19409292936325073, -0.30430546402931213, 0.04658065363764763, -0.4616064429283142, 0.31102973222732544, 0.29014918208122253, 0.06870865821838379, -0.0569680891931057, -0.03966782987117767, -0.3614213168621063, 0.053436364978551865, 0.597509503364563, 0.17920120060443878, -0.2954569458961487, -0.0016946414252743125, -0.2020290642976761, 0.018105341121554375, 0.4721163809299469, -0.2760738432407379, 0.09747079014778137, -0.039549458771944046, 0.1857445240020752, 0.35653945803642273, -0.12932761013507843, -0.5400486588478088, 0.24399448931217194, 0.5118323564529419, -0.12002476304769516, 0.10014602541923523, 0.24151133000850677, 0.15310433506965637, -0.01621835120022297, -0.09920140355825424, 0.510597825050354, 0.20119762420654297, -0.412767231464386, 0.13263173401355743, -0.014809347689151764 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
Hi @wumpusman `datasets` has a caching mechanism that allows to cache the results of `.map` so that when you want to re-run it later it doesn't recompute it again. So when you do `.map`, what actually happens is: 1. compute the hash used to identify your `map` for the cache 2. apply your function on every batch This can explain the time difference between your different experiments. The hash computation time depends of how complex your function is. For a tokenizer, the hash computation scans the lists of the words in the tokenizer to identify this tokenizer. Usually it takes 2-3 seconds. Also note that you can disable caching though using ```python import datasets datasets.set_caching_enabled(False) ```
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
116
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. Hi @wumpusman `datasets` has a caching mechanism that allows to cache the results of `.map` so that when you want to re-run it later it doesn't recompute it again. So when you do `.map`, what actually happens is: 1. compute the hash used to identify your `map` for the cache 2. apply your function on every batch This can explain the time difference between your different experiments. The hash computation time depends of how complex your function is. For a tokenizer, the hash computation scans the lists of the words in the tokenizer to identify this tokenizer. Usually it takes 2-3 seconds. Also note that you can disable caching though using ```python import datasets datasets.set_caching_enabled(False) ```
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
Hi @lhoestq , Thanks for the reply. It's entirely possible that is the issue. Since it's a side project I won't be looking at it till later this week, but, I'll verify it by disabling caching and hopefully I'll see the same runtime. Appreciate the reference, Michael
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
47
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. Hi @lhoestq , Thanks for the reply. It's entirely possible that is the issue. Since it's a side project I won't be looking at it till later this week, but, I'll verify it by disabling caching and hopefully I'll see the same runtime. Appreciate the reference, Michael
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
I believe this is an actual issue, tokenizing a ~4GB txt file went from an hour and a half to ~10 minutes when I switched from my pre-trained tokenizer(on the same dataset) to the default gpt2 tokenizer. Both were loaded using: ``` AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) ``` I trained the tokenizer using ByteLevelBPETokenizer from the Tokenizers library and save it to a tokenizer.json file. I have tested the caching ideas above, changing the number of process, the TOKENIZERS_PARALLELISM env variable, keep_in_memory=True and batching with different sizes. Apologies I can't really upload much code, but wanted to back up the finding and hopefully a fix/the problem can be found. I will comment back if I find a fix as well.
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
117
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. I believe this is an actual issue, tokenizing a ~4GB txt file went from an hour and a half to ~10 minutes when I switched from my pre-trained tokenizer(on the same dataset) to the default gpt2 tokenizer. Both were loaded using: ``` AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) ``` I trained the tokenizer using ByteLevelBPETokenizer from the Tokenizers library and save it to a tokenizer.json file. I have tested the caching ideas above, changing the number of process, the TOKENIZERS_PARALLELISM env variable, keep_in_memory=True and batching with different sizes. Apologies I can't really upload much code, but wanted to back up the finding and hopefully a fix/the problem can be found. I will comment back if I find a fix as well.
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
Hi @johncookds do you think this can come from one tokenizer being faster than the other one ? Can you try to compare their speed without using `datasets` just to make sure ?
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
33
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. Hi @johncookds do you think this can come from one tokenizer being faster than the other one ? Can you try to compare their speed without using `datasets` just to make sure ?
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
Hi yes, I'm closing the loop here with some timings below. The issue seems to be at least somewhat/mainly with the tokenizer's themselves. Moreover legacy saves of the trainer tokenizer perform faster but differently than the new tokenizer.json saves(note nothing about the training process/adding of special tokens changed between the top two trained tokenizer tests, only the way it was saved). This is only a 3x slowdown vs like a 10x but I think the slowdown is most likely due to this. ``` trained tokenizer - tokenizer.json save (same results for AutoTokenizer legacy_format=False): Tokenizer time(seconds): 0.32767510414123535 Tokenized avg. length: 323.01 trained tokenizer - AutoTokenizer legacy_format=True: Tokenizer time(seconds): 0.09258866310119629 Tokenized avg. length: 301.01 GPT2 Tokenizer from huggingface Tokenizer time(seconds): 0.1010282039642334 Tokenized avg. length: 461.21 ```
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
124
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. Hi yes, I'm closing the loop here with some timings below. The issue seems to be at least somewhat/mainly with the tokenizer's themselves. Moreover legacy saves of the trainer tokenizer perform faster but differently than the new tokenizer.json saves(note nothing about the training process/adding of special tokens changed between the top two trained tokenizer tests, only the way it was saved). This is only a 3x slowdown vs like a 10x but I think the slowdown is most likely due to this. ``` trained tokenizer - tokenizer.json save (same results for AutoTokenizer legacy_format=False): Tokenizer time(seconds): 0.32767510414123535 Tokenized avg. length: 323.01 trained tokenizer - AutoTokenizer legacy_format=True: Tokenizer time(seconds): 0.09258866310119629 Tokenized avg. length: 301.01 GPT2 Tokenizer from huggingface Tokenizer time(seconds): 0.1010282039642334 Tokenized avg. length: 461.21 ```
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
@lhoestq , Hi, which version of datasets has datasets.set_caching_enabled(False)? I get module 'datasets' has no attribute 'set_caching_enabled'. To hopefully get around this, I reran my code on a new set of data, and did so only once. @johncookds , thanks for chiming in, it looks this might be an issue of Tokenizer. **Tokenizer**: The runtime of GPT2TokenizerFast.from_pretrained("gpt2") on 1000 chars is: **143 ms** **SlowTokenizer**: The runtime of a locally saved and loaded Tokenizer using the same vocab on 1000 chars is: **4.43 s** That being said, I compared performance on the map function: Running Tokenizer versus using it in the map function for 1000 chars goes from **141 ms** to **356 ms** Running SlowTokenizer versus using it in the map function for 1000 chars with a single element goes from **4.43 s** to **9.76 s** I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior. @lhoestq, do you by chance know how I can redirect this issue to Tokenizer? Regards, Michael
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
182
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. @lhoestq , Hi, which version of datasets has datasets.set_caching_enabled(False)? I get module 'datasets' has no attribute 'set_caching_enabled'. To hopefully get around this, I reran my code on a new set of data, and did so only once. @johncookds , thanks for chiming in, it looks this might be an issue of Tokenizer. **Tokenizer**: The runtime of GPT2TokenizerFast.from_pretrained("gpt2") on 1000 chars is: **143 ms** **SlowTokenizer**: The runtime of a locally saved and loaded Tokenizer using the same vocab on 1000 chars is: **4.43 s** That being said, I compared performance on the map function: Running Tokenizer versus using it in the map function for 1000 chars goes from **141 ms** to **356 ms** Running SlowTokenizer versus using it in the map function for 1000 chars with a single element goes from **4.43 s** to **9.76 s** I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior. @lhoestq, do you by chance know how I can redirect this issue to Tokenizer? Regards, Michael
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
Thanks for the experiments @johncookds and @wumpusman ! > Hi, which version of datasets has datasets.set_caching_enabled(False)? Currently you have to install `datasets` from source to have this feature, but this will be available in the next release in a few days. > I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior. Could you also try with double the number of characters ? This should let us have an idea of the fixed cost (hashing) and the dynamic cost (actual tokenization, grows with the size of the input) > @lhoestq, do you by chance know how I can redirect this issue to Tokenizer? Feel free to post an issue on the `transformers` repo. Also I'm sure there should be related issues so you can also look for someone with the same concerns on the `transformers` repo.
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
157
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. Thanks for the experiments @johncookds and @wumpusman ! > Hi, which version of datasets has datasets.set_caching_enabled(False)? Currently you have to install `datasets` from source to have this feature, but this will be available in the next release in a few days. > I'm trying to figure out why the overhead of map would increase the time by double (figured it would be a fixed increase in time)? Though maybe this is expected behavior. Could you also try with double the number of characters ? This should let us have an idea of the fixed cost (hashing) and the dynamic cost (actual tokenization, grows with the size of the input) > @lhoestq, do you by chance know how I can redirect this issue to Tokenizer? Feel free to post an issue on the `transformers` repo. Also I'm sure there should be related issues so you can also look for someone with the same concerns on the `transformers` repo.
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
@lhoestq, I just checked that previous run time was actually 3000 chars. I increased it to 6k chars, again, roughly double. SlowTokenizer **7.4 s** to **15.7 s** Tokenizer: **276 ms** to **616 ms** I'll post this issue on Tokenizer, seems it hasn't quite been raised (albeit I noticed a similar issue that might relate). Regards, Michael
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
56
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. @lhoestq, I just checked that previous run time was actually 3000 chars. I increased it to 6k chars, again, roughly double. SlowTokenizer **7.4 s** to **15.7 s** Tokenizer: **276 ms** to **616 ms** I'll post this issue on Tokenizer, seems it hasn't quite been raised (albeit I noticed a similar issue that might relate). Regards, Michael
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1830
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer?
Hi, I'm following up here as I found my exact issue. It was with saving and re-loading the tokenizer. When I trained then processed the data without saving and reloading it, it was 10x-100x faster than when I saved and re-loaded it. Both resulted in the exact same tokenized datasets as well. There is additionally a bug where the older legacy tokenizer save does not preserve a learned tokenizing behavior if trained from scratch. Understand its not exactly Datasets related but hope it can help someone if they have the same issue. Thanks!
This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function.
93
using map on loaded Tokenizer 10x - 100x slower than default Tokenizer? This could total relate to me misunderstanding particular call functions, but I added words to a GPT2Tokenizer, and saved it to disk (note I'm only showing snippets but I can share more) and the map function ran much slower: ```` def save_tokenizer(original_tokenizer,text,path="simpledata/tokenizer"): words_unique = set(text.split(" ")) for i in words_unique: original_tokenizer.add_tokens(i) original_tokenizer.save_pretrained(path) tokenizer2 = GPT2Tokenizer.from_pretrained(os.path.join(experiment_path,experiment_name,"tokenizer_squad")) train_set_baby=Dataset.from_dict({"text":[train_set["text"][0][0:50]]}) ```` I then applied the dataset map function on a fairly small set of text: ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The run time for train_set_baby.map was 6 seconds, and the batch itself was 2.6 seconds **100% 1/1 [00:02<00:00, 2.60s/ba] CPU times: user 5.96 s, sys: 36 ms, total: 5.99 s Wall time: 5.99 s** In comparison using (even after adding additional tokens): ` tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")` ``` %%time train_set_baby = train_set_baby.map(lambda d:tokenizer2(d["text"]),batched=True) ``` The time is **100% 1/1 [00:00<00:00, 34.09ba/s] CPU times: user 68.1 ms, sys: 16 µs, total: 68.1 ms Wall time: 62.9 ms** It seems this might relate to the tokenizer save or load function, however, the issue appears to come up when I apply the loaded tokenizer to the map function. I should also add that playing around with the amount of words I add to the tokenizer before I save it to disk and load it into memory appears to impact the time it takes to run the map function. Hi, I'm following up here as I found my exact issue. It was with saving and re-loading the tokenizer. When I trained then processed the data without saving and reloading it, it was 10x-100x faster than when I saved and re-loaded it. Both resulted in the exact same tokenized datasets as well. There is additionally a bug where the older legacy tokenizer save does not preserve a learned tokenizing behavior if trained from scratch. Understand its not exactly Datasets related but hope it can help someone if they have the same issue. Thanks!
[ -0.40404731035232544, -0.013007599860429764, -0.1024707704782486, 0.10343004018068314, 0.14530491828918457, -0.12255387753248215, 0.2550544738769531, 0.18908824026584625, 0.13067802786827087, -0.006501996424049139, -0.05422390624880791, 0.498886376619339, -0.17248143255710602, -0.2727590799331665, -0.13204269111156464, 0.06504253298044205, 0.21975892782211304, 0.022416971623897552, 0.24164536595344543, -0.034286979585886, -0.12187298387289047, 0.10230182111263275, -0.1767260581254959, 0.2414001226425171, -0.3152633011341095, -0.07799335569143295, 0.08123103529214859, -0.20963342487812042, -0.00275608291849494, -0.5689615607261658, -0.20842964947223663, 0.15812428295612335, 0.020943477749824524, 0.5331249833106995, -0.00011487368465168402, 0.04034213349223137, -0.029163047671318054, 0.2731475830078125, 0.13471809029579163, 0.044361334294080734, 0.35295459628105164, -0.19428545236587524, -0.16858355700969696, -0.2257673144340515, -0.05417107418179512, -0.28086310625076294, -0.022122124210000038, -0.22417768836021423, 0.06830835342407227, 0.030042095109820366, 0.1608586609363556, 0.11519484966993332, -0.39643192291259766, -0.059515535831451416, -0.0024583106860518456, -0.10422495752573013, -0.09915491938591003, 0.014027328230440617, 0.07132983952760696, -0.25518617033958435, -0.21165601909160614, 0.19490447640419006, -0.2130434215068817, -0.1478138417005539, 0.26872318983078003, 0.2163694202899933, 0.03461264446377754, -0.24252445995807648, 0.1680866926908493, 0.23163530230522156, 0.06701064109802246, -0.02721233293414116, -0.017124507576227188, -0.3350786864757538, -0.37069129943847656, -0.028482481837272644, 0.14612235128879547, -0.4334966838359833, -0.12065164744853973, -0.08960282057523727, -0.41406527161598206, 0.20377343893051147, 0.2642424702644348, -0.12239355593919754, -0.20392997562885284, 0.43524500727653503, 0.0954279974102974, 0.1497349888086319, 0.10415200889110565, -0.09975159913301468, -0.28079110383987427, -0.26437774300575256, -0.15957728028297424, 0.3733043968677521, -0.34158751368522644, -0.17395485937595367, 0.26929521560668945, -0.3091345727443695, -0.1407882273197174, 0.11427917331457138, -0.14243176579475403, 0.19466538727283478, 0.2083420753479004, -0.047119781374931335, 0.0663062036037445, 0.24600428342819214, 0.03844768553972244, 0.17384624481201172, 0.02969103492796421, -0.48029252886772156, -0.3160507082939148, -0.09036118537187576, -0.18887606263160706, 0.02021399885416031, 0.34587252140045166, -0.24245870113372803, -0.23708051443099976, -0.07258302718400955, -0.020596042275428772, -0.17130723595619202, -0.3799443244934082, -0.09833796322345734, 0.06586100906133652, 0.18545491993427277, 0.05874675512313843, 0.06103675067424774, -0.36479833722114563, -0.20216681063175201, -0.09283189475536346, -0.07672566175460815, -0.12862758338451385, -0.17200028896331787, -0.10449152439832687, 0.2542574107646942, -0.188274085521698, 0.09130501002073288, 0.26017576456069946, 0.07899491488933563, -0.11537648737430573, 0.21030749380588531, 0.2196052074432373, -0.36432331800460815, 0.10472815483808517, -0.11305417120456696, 0.07480136305093765, 0.43602651357650757, -0.005507772788405418, 0.0017844411777332425, -0.25952857732772827, 0.20827613770961761, -0.2649095356464386, -0.2264893651008606, 0.2413853108882904, 0.11915972083806992, -0.0831424668431282, -0.12216079235076904, -0.49423012137413025, 0.4385448396205902, 0.2539222538471222, -0.11635299772024155, -0.07491347938776016, -0.18091270327568054, -0.5298200845718384, -0.21674220263957977, 0.2679250240325928, -0.018772389739751816, -0.07221158593893051, -0.1937798261642456, 0.3418044447898865, 0.1921718269586563, 0.3103518784046173, 0.6430557370185852, -0.38648220896720886, 0.7953384518623352, -0.12505003809928894, 0.7483616471290588, 0.2579949200153351, -0.2477056086063385, -0.3778182566165924, 0.11663828790187836, -0.17846792936325073, 0.2722207009792328, -0.2818510830402374, -0.1200624331831932, 0.7026367783546448, -0.22527828812599182, 0.341983824968338, 0.106144979596138, 0.24699585139751434, 0.3040962517261505, -0.2483736127614975, -0.04919068515300751, 0.5504584908485413, -0.08022225648164749, -0.22425228357315063, -0.15098126232624054, -0.15340621769428253, 0.11113274842500687, -0.03155474364757538, -0.12037348747253418, -0.15540972352027893, 0.061732251197099686, 0.015111555345356464, 0.027055786922574043, -0.06373602151870728, 0.21922598779201508, 0.14711318910121918, 0.21719445288181305, 0.07411599904298782, 0.06839201599359512, 0.42903125286102295, -0.006116863805800676, 0.10551607608795166, -0.06455062329769135, -0.15043310821056366, -0.14192800223827362, 0.17265260219573975, 0.12822067737579346, 0.0678989514708519, 0.08919303119182587, 0.23117312788963318, -0.10698014497756958, 0.015444076620042324, 0.12702274322509766, 0.44377657771110535, -0.30414190888404846, 0.14068640768527985, -0.160289466381073, -0.10612272471189499, -0.19360370934009552, 0.14087450504302979, 0.10873204469680786, -0.18346624076366425, 0.16243252158164978, 0.12479137629270554, 0.3094664514064789, -0.17307010293006897, 0.2074122130870819, 0.1145595833659172, 0.26548364758491516, 0.04486110806465149, 0.11170537769794464, 0.01641794666647911, -0.16180095076560974, -0.10114310681819916, 0.248752623796463, 0.7665546536445618, 0.2934231460094452, -0.09813182801008224, -0.19185064733028412, -0.007449675817042589, 0.20522268116474152, 0.12546032667160034, 0.0902867391705513, -0.017214087769389153, 0.3012905418872833, 0.4247048795223236, 0.17126689851284027, 0.3508590757846832, 0.47433269023895264, 0.5267608761787415, -0.12619858980178833, -0.21092268824577332, 0.1169242411851883, -0.3413848280906677, -0.4390028715133667, -0.032455675303936005, -0.4132474660873413, 0.1679472029209137, 0.10433046519756317, 0.22383277118206024, -0.16898322105407715, -0.013874349184334278, 0.0025532389990985394, 0.27276191115379333, 0.2319285124540329, -0.006252130959182978, -0.03470776975154877, 0.16773170232772827, 0.23547717928886414, -0.32783618569374084, -0.16834259033203125, -0.017744582146406174, 0.2466842532157898, -0.02020302042365074, -0.08809269219636917, 0.0660286694765091, 0.17903880774974823, 0.48365622758865356, -0.0730333998799324, 0.043880585581064224, -0.23364831507205963, -0.08682732284069061, 0.011286526918411255, 0.0730065181851387, 0.1429344266653061, 0.2016058713197708, 0.041603993624448776, 0.05537900701165199, -0.13247545063495636, -0.03263614699244499, -0.20362265408039093, -0.36904415488243103, 0.06732712686061859, 0.047815512865781784, -0.10531225055456161, 0.30129095911979675, 0.18954914808273315, -0.07064688950777054, -0.02847457490861416, -0.4572894871234894, 0.08773885667324066, -0.18031048774719238, 0.009878754615783691, -0.10766526311635971, -0.15344266593456268, -0.1983690857887268, 0.04000276327133179, 0.11686037480831146, -0.27817508578300476, -0.26165148615837097, -0.32242250442504883, -0.11807321757078171, -0.1744087189435959, 0.14054475724697113, -0.020054001361131668, 0.051142264157533646, -0.0312800407409668, 0.12230025231838226, 0.10087127238512039, 0.12934668362140656, -0.24915243685245514, -0.16720826923847198, 0.1939767748117447, -0.05200449749827385, -0.01217165868729353, -0.3335227072238922, -0.24970582127571106, 0.38905900716781616, -0.06997042894363403, -0.014193585142493248, -0.21413728594779968, 0.0942142903804779, 0.16697974503040314, 0.13987138867378235, -0.24602259695529938, 0.21763955056667328, -0.30447137355804443, 0.26148033142089844, 0.038442838937044144, -0.21672195196151733, 0.3941020369529724, 0.22821256518363953, -0.12224356830120087, 0.16977085173130035, -0.24780498445034027, 0.16913434863090515, -0.059003204107284546, -0.2350638508796692, 0.07231411337852478, 0.48403841257095337, 0.24679608643054962, 0.6211673021316528, 0.048982251435518265, -0.01333723682910204, -0.00010424525680718943, -0.3113276958465576, -0.1315828561782837, -0.43118971586227417, -0.07551374286413193, 0.20715558528900146, -0.09913615882396698, 0.025745049118995667, 0.486576646566391, -0.085055872797966, -0.3330835998058319, 0.22216981649398804, -0.17344418168067932, 0.04907584190368652, -0.19993916153907776, 0.1273278146982193, -0.09477273374795914, 0.05930548533797264, 0.0013975249603390694, 0.40460991859436035, -0.5339139103889465, -0.14910277724266052, 0.2374674528837204, -0.2787148952484131, 0.25258201360702515, -0.25178980827331543, -0.9455536007881165, 0.35129180550575256, -0.8524883389472961, 0.09497600793838501, 0.01654781587421894, 0.2276020348072052, 0.047508127987384796, -0.027060681954026222, 0.1163015365600586, -0.03245140239596367, 0.16581274569034576, -0.053808797150850296, -0.08455485105514526, 0.237049862742424, -0.5604737401008606, -0.11725737899541855, -0.14565183222293854, -0.0787849947810173, 0.19362618029117584, 0.5950010418891907, 0.7412638664245605, -0.09443025290966034, -0.28627702593803406, -0.35044485330581665, -0.04790671169757843, 0.0696771964430809, 0.03928402438759804, -0.013842159882187843, -0.10236954689025879, -0.18080192804336548, 0.01081792637705803, 0.10237476229667664, 0.1822671890258789, 0.13342030346393585, -0.1541099101305008, -0.08755329251289368, 0.15052126348018646, 0.3036963939666748, 0.2778017520904541, 0.2423073649406433, -0.03876855969429016, 0.34377947449684143, 0.3173710107803345, 0.10557407140731812, -0.11109762638807297, -0.15754711627960205, 0.21815194189548492, -0.36952996253967285, 0.0900224819779396, 0.09987126290798187, 0.06710688024759293, 0.16950470209121704, -0.03232599049806595, 0.21382693946361542, -0.2696321904659271, 0.34671124815940857, -0.19182991981506348, 0.39901164174079895, 0.5268700122833252, 0.1344362050294876, -0.5008940100669861, -0.3026982843875885, 0.07103835046291351, 0.5278070569038391, -0.26714906096458435, 0.4369063675403595, -0.4802767336368561, -0.40487638115882874, 0.4786457121372223, 0.2622509002685547, 0.5893495082855225, -0.00019716481619980186, 0.21312524378299713, 0.24673695862293243, 0.28208673000335693, 0.18717950582504272, -0.4422426223754883, -0.12835067510604858, -0.2351832240819931, 0.21898171305656433, 0.043299831449985504, -0.07354772835969925, 0.06810461729764938, 0.23929353058338165, -0.11905860155820847, -0.07074636220932007, 0.13437402248382568, 0.8829218745231628, -0.013044094666838646, 0.3027346432209015, 0.4876139461994171, -0.39955615997314453, 0.3429582417011261, 0.1393878310918808, 0.2241419404745102, 0.0627060979604721, 0.09403437376022339, 0.0973556861281395, -0.06829339265823364, -0.15507183969020844, -0.24992847442626953, -0.20255912840366364, -0.5686982274055481, 0.29779380559921265, -0.20471447706222534, 0.030801404267549515, 0.07980076223611832, 0.14483843743801117, 0.041659045964479446, 0.2406434267759323, 0.006632600910961628, 0.28856706619262695, 0.21322724223136902, 0.3364415764808655, 0.25344982743263245, -0.5096055865287781, -0.19772954285144806, -0.009806742891669273, -0.015243933536112309, 0.1644132435321808, -0.26448142528533936, -0.31853193044662476, -0.6420412063598633, -0.045863859355449677, 0.3040495216846466, -0.3656044006347656, 0.019044658169150352, 0.1011224240064621, -0.07926605641841888, -0.1980583220720291, 0.08064135164022446, -0.15343159437179565, 0.08537674695253372, 0.40806475281715393, -0.07441285997629166, -0.2806641757488251, 0.018494149670004845, 0.30225008726119995, 0.12154713273048401, -0.21070395410060883, 0.43070217967033386, -0.47031253576278687, -0.2629356384277344, -0.10358715802431107, 0.21543747186660767, 0.13631369173526764, 0.11987636983394623, 0.09263517707586288, -0.13185368478298187, -0.1832280158996582, 0.09514635056257248, 0.2641548812389374, -0.1274954229593277, -0.10990707576274872, -0.17242039740085602, -0.018341219052672386, -0.30604398250579834, -0.010590975172817707, -0.059931084513664246, 0.09162316471338272, 0.09735424071550369, 0.1349281221628189, -0.3185407221317291, 0.16975069046020508, -0.2577681541442871, -0.12103085964918137, 0.12591134011745453, 0.15388061106204987, -0.20141048729419708, -0.15866516530513763, 0.12080841511487961, 0.041162505745887756, 0.09976699203252792, 0.2575888931751251, 0.03509637713432312, -0.22869464755058289, -0.0834939032793045, 0.14248986542224884, 0.046630728989839554, -0.3604580760002136, 0.06594134867191315, 0.13582025468349457, -0.08454754948616028, -0.5128010511398315, 0.20534461736679077, 0.17162437736988068, 0.013777109794318676, -0.4263344407081604, 0.19677774608135223, -0.004544501658529043, -0.006977221928536892, 0.15401500463485718, -0.04092107713222504, 0.019587859511375427, 0.10938353836536407, 0.21673010289669037, 0.12089186906814575, -0.20395347476005554, 0.04365449398756027, 0.2604883015155792, 0.3350323736667633, 0.17188449203968048, 0.011980448849499226, -0.02603285200893879, -0.06329438090324402, 0.16377724707126617, -0.16998060047626495, 0.21267704665660858, -0.22456982731819153, -0.4430893063545227, 0.20653831958770752, 0.14772039651870728, 0.0679498091340065, -0.23686738312244415, 0.41122522950172424, -0.2698415219783783, 0.17054633796215057, 0.053706325590610504, 0.22349093854427338, 0.2558576464653015, -0.21674524247646332, -0.16781410574913025, 0.45804956555366516, -0.18563036620616913, 0.09275659918785095, 0.11852121353149414, -0.046437736600637436, 0.01436595618724823, 0.32363641262054443, 0.08962966501712799, 0.13182860612869263, 0.420783132314682, 0.20650126039981842, 0.2570442855358124, 0.23929356038570404, 0.3731354773044586, -0.1887238621711731, -0.23241466283798218, -0.057918302714824677, 0.48354068398475647, -0.33757930994033813, 0.14522506296634674, -0.003101671813055873, -0.009071330539882183, 0.015064183622598648, -0.5577238202095032, -0.03618978336453438, 0.3808562457561493, -0.3738008737564087, -0.26346465945243835, -0.10397496074438095, 0.00005103580770082772, -0.04441463202238083, 0.35797277092933655, -0.13069242238998413, -0.04405149444937706, -0.3228890299797058, -0.1085638552904129, -0.07013566046953201, 0.11163036525249481, -0.2539837062358856, -0.23452936112880707, 0.21848854422569275, -0.21756085753440857, 0.23406249284744263, -0.4240412712097168, 0.13494309782981873, -0.055666081607341766, 0.3740638792514801, 0.3734026849269867, 0.2763727903366089, -0.13791438937187195, 0.060441598296165466, -0.0782146006822586, 0.09102980047464371, 0.0376119501888752, 0.14116139709949493, -0.07311536371707916, -0.32126951217651367, 0.1342652440071106, 0.004113889764994383, -0.17982743680477142, -0.3566516935825348, 0.03298240900039673, -0.10908133536577225, 0.19662678241729736, 0.22091232240200043, 0.05098496377468109, -0.14805778861045837, 0.11666093021631241, 0.06280200183391571, 0.08144926279783249, -0.1601276397705078, 0.14899784326553345, 0.07930716127157211, 0.18264631927013397, -0.08430463820695877, 0.07061048597097397, 0.037875495851039886, 0.41893839836120605, 0.02741413749754429, -0.11204179376363754, -0.37865370512008667, -0.330770343542099, -0.3441816568374634, -0.08834480494260788, -0.1933029443025589, 0.13738024234771729, -0.0022711169440299273, 0.0905371904373169, 0.1760559231042862, 0.19486215710639954, 0.2074853777885437, 0.12348596751689911, -0.2083253711462021, -0.09984979778528214, -0.2851070165634155, 0.4816952645778656, -0.17266550660133362, 0.03965532034635544, 0.00644292077049613, -0.350665807723999, 0.4216940999031067, 0.016045330092310905, 0.13119329512119293, -0.1760377436876297, 0.05233059450984001, -0.021239882335066795, 0.09319671243429184, 0.6377806663513184, 0.16887091100215912, 0.0617196299135685, -0.0346786268055439, 0.1621495485305786, 0.1541469693183899, 0.1810179054737091, -0.22025974094867706, 0.0676562637090683, -0.015728941187262535, -0.0018750877352431417, 0.058215826749801636, 0.02758859284222126, -0.07953547686338425, -0.11201295256614685, 0.1741836816072464, -0.09662520885467529, -0.22798722982406616, -0.093588687479496, 0.007985638454556465, 0.1224936917424202, -0.24133987724781036, 0.33198434114456177, 0.07341557741165161, 0.20806638896465302, -0.3973882794380188, -0.06145127862691879, 0.4318275451660156, -0.6654872298240662, -0.12014945596456528, -0.26931047439575195, -0.01178304385393858, 0.32862144708633423, 0.1732213944196701, -0.10575161874294281, -0.2817879617214203, 0.5291827917098999, 0.027850784361362457, -0.28139528632164, 0.3174494504928589, -0.06961564719676971, -0.007653838489204645, -0.033732712268829346, 0.3865732252597809, -0.24105383455753326, -0.18339698016643524, -0.07387308031320572, -0.04495935142040253 ]
https://github.com/huggingface/datasets/issues/1827
Regarding On-the-fly Data Loading
Hi @acul3 Issue #1776 talks about doing on-the-fly data pre-processing, which I think is solved in the next release as mentioned in the issue #1825. I also look forward to using this feature, though :) I wanted to ask about on-the-fly data loading from the cache (before pre-processing).
Hi, I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point. Thanks, Gunjan
48
Regarding On-the-fly Data Loading Hi, I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point. Thanks, Gunjan Hi @acul3 Issue #1776 talks about doing on-the-fly data pre-processing, which I think is solved in the next release as mentioned in the issue #1825. I also look forward to using this feature, though :) I wanted to ask about on-the-fly data loading from the cache (before pre-processing).
[ -0.17268489301204681, -0.28359898924827576, -0.11839687824249268, 0.21907931566238403, 0.33219674229621887, 0.09173014760017395, 0.5707204341888428, 0.13171705603599548, 0.12047555297613144, 0.06700442731380463, 0.07138784229755402, -0.08571413904428482, -0.09655992686748505, 0.2116195410490036, 0.2725096642971039, 0.23096799850463867, 0.002583331661298871, 0.0690007135272026, 0.05912118777632713, -0.02845662832260132, -0.040243733674287796, -0.0728219524025917, -0.012369528412818909, -0.36219799518585205, -0.4274352490901947, -0.09350567311048508, -0.17934755980968475, 0.05714480206370354, -0.1536557525396347, -0.28904059529304504, 0.1886160522699356, 0.25400298833847046, 0.27082592248916626, 0.11724085360765457, -0.00012036382395308465, -0.012450446374714375, 0.38280782103538513, -0.14356505870819092, -0.3206496238708496, 0.12207002192735672, -0.09934482723474503, 0.11576927453279495, 0.10642128437757492, -0.17253603041172028, -0.07603509724140167, 0.42425736784935, 0.12474682182073593, -0.31896620988845825, 0.4757881462574005, -0.08197084069252014, 0.04561224952340126, -0.06935027241706848, -0.31946125626564026, 0.030737701803445816, 0.21068836748600006, 0.1520233154296875, -0.04288901388645172, -0.041378848254680634, 0.36629071831703186, -0.11797425895929337, -0.10223116725683212, 0.3062211275100708, -0.0025019042659550905, 0.004144710022956133, 0.22040998935699463, -0.01543915644288063, 0.06009039655327797, -0.4758678078651428, -0.023906493559479713, 0.15862861275672913, 0.5854740738868713, 0.06450115889310837, -0.3178856372833252, -0.39034023880958557, 0.01984097622334957, -0.3572823405265808, 0.08624986559152603, 0.3821429908275604, -0.32880428433418274, 0.0932319238781929, -0.5378327965736389, -0.4087219536304474, -0.2208579033613205, -0.11402460187673569, -0.09020242840051651, -0.2912569046020508, 0.06889867037534714, -0.07242811471223831, 0.08587664365768433, 0.20787334442138672, 0.6285198926925659, -0.11197707056999207, -0.11090600490570068, 0.493747353553772, -0.27213945984840393, -0.20855753123760223, -0.4864162802696228, -0.19672416150569916, -0.005781460553407669, -0.18262875080108643, 0.2753612697124481, 0.17976532876491547, -0.19198624789714813, 0.062159255146980286, 0.3562069237232208, 0.027307339012622833, 0.16531164944171906, -0.031149569898843765, 0.006468395236879587, -0.2958638668060303, -0.23737946152687073, -0.06342040002346039, -0.40458568930625916, 0.13686060905456543, -0.11525295674800873, -0.2681528925895691, -0.4467121660709381, -0.2506442070007324, 0.25451937317848206, -0.2527230978012085, 0.18362832069396973, -0.04034797474741936, -0.2313978672027588, 0.31271758675575256, -0.02879992686212063, 0.008305592462420464, 0.29754015803337097, -0.16741269826889038, -0.07752937823534012, -0.2540165185928345, -0.04786068573594093, -0.01818190887570381, -0.24933107197284698, 0.13301989436149597, 0.20429152250289917, 0.058919377624988556, 0.11790366470813751, -0.13133341073989868, 0.0041413260623812675, 0.0270397812128067, -0.0003008800558745861, -0.31792694330215454, 0.363692969083786, 0.2754969596862793, -0.01509802509099245, -0.2916894555091858, 0.03124784678220749, 0.3335391581058502, -0.020160622894763947, 0.5988053679466248, -0.297431081533432, -0.08271992206573486, 0.36357229948043823, 0.011818131431937218, -0.029623499140143394, -0.2398853749036789, -0.26265382766723633, 0.41845399141311646, 0.24895639717578888, 0.08594430238008499, 0.2036074697971344, 0.07725603133440018, -0.28514766693115234, -0.021287495270371437, 0.11057554930448532, 0.350160151720047, -0.40268683433532715, -0.30870431661605835, 0.2794792652130127, 0.022266359999775887, -0.12208329141139984, -0.009187499061226845, -0.24881668388843536, 0.3373207151889801, 0.011671631596982479, 0.03748317062854767, 0.11233238130807877, -0.2921564280986786, -0.023615224286913872, 0.4355228841304779, 0.04903864115476608, -0.031964853405952454, -0.00907586608082056, 0.4269596338272095, 0.10203178226947784, 0.17151984572410583, 0.29595208168029785, 0.7635229825973511, 0.0538494735956192, 0.07486122846603394, -0.19584999978542328, -0.3414073586463928, -0.23952506482601166, 0.3621118664741516, 0.24150416254997253, 0.25891438126564026, 0.25173407793045044, 0.02731124497950077, 0.08375110477209091, -0.22633971273899078, -0.01701340265572071, 0.13052193820476532, -0.03172456473112106, 0.16698305308818817, -0.041658028960227966, 0.28199368715286255, -0.46860653162002563, 0.28284138441085815, -0.18402768671512604, -0.045972198247909546, 0.1098962277173996, -0.009528126567602158, 0.38886070251464844, -0.207693949341774, 0.09937544912099838, 0.17371131479740143, -0.09558603167533875, -0.2128094881772995, -0.09971590340137482, -0.009967707097530365, -0.4909343719482422, 0.8521467447280884, -0.47588256001472473, 0.2114948034286499, -0.10445420444011688, 0.10741659253835678, 0.4491928517818451, -0.10812105983495712, -0.1963794231414795, -0.17193463444709778, -0.29919230937957764, 0.01817242056131363, 0.0061650522984564304, 0.46751874685287476, 0.132387176156044, 0.2539480924606323, -0.09844765812158585, 0.10485775768756866, 0.29651474952697754, 0.07313740253448486, 0.20040544867515564, -0.3838968276977539, 0.04076947271823883, -0.19573433697223663, -0.4062645137310028, 0.6067582964897156, 0.060873862355947495, 0.19549036026000977, 0.296791672706604, -0.2305462807416916, -0.012098751030862331, -0.16540759801864624, -0.08601304888725281, 0.11904334276914597, 0.007978221401572227, 0.10607874393463135, 0.5033360123634338, -0.03137095645070076, -0.18199364840984344, -0.22418849170207977, -0.03934314474463463, -0.022537851706147194, -0.10109415650367737, 0.15623852610588074, -0.033374376595020294, -0.09684328734874725, 0.04030962288379669, -0.037649281322956085, 0.3064713180065155, 0.0865679383277893, -0.008804572746157646, 0.144064262509346, 0.21520572900772095, -0.07109864801168442, 0.10037820786237717, -0.02568582259118557, 0.4002474844455719, 0.01960163190960884, 0.06685240566730499, 0.05422012135386467, -0.41418880224227905, 0.37610697746276855, 0.24025271832942963, -0.20681339502334595, -0.1194646954536438, 0.024952445179224014, 0.18020251393318176, -0.2877342998981476, 0.05112864077091217, 0.07855992764234543, -0.2679385542869568, 0.24478687345981598, 0.0626736506819725, -0.03547264263033867, 0.23127076029777527, -0.1007862463593483, -0.05055580288171768, 1.058914303779602, -0.07786993682384491, 0.039690226316452026, -0.1933261603116989, -0.07249783724546432, 0.21993011236190796, 0.017728164792060852, 0.18433471024036407, -0.11261268705129623, 0.23499910533428192, 0.1298399716615677, -0.1127241849899292, 0.2563569247722626, -0.10569743812084198, 0.18943928182125092, 0.2193928062915802, 0.12377499788999557, -0.33094388246536255, -0.008498904295265675, -0.2049756497144699, 0.04210557043552399, -0.19719764590263367, -0.40817931294441223, -0.2879914939403534, -0.47515344619750977, 0.37789538502693176, 0.11208761483430862, -0.16715824604034424, 0.025095561519265175, -0.41679784655570984, -0.040169138461351395, 0.2077399343252182, 0.33846762776374817, 0.1406717449426651, 0.37731051445007324, 0.020809117704629898, -0.18069954216480255, -0.1592867523431778, -0.10367465019226074, -0.20291808247566223, -0.6760940551757812, -0.09393949061632156, -0.14167188107967377, -0.1950511932373047, -0.03568672761321068, 0.09362028539180756, 0.03620552271604538, 0.665134608745575, -0.8735557794570923, -0.053198762238025665, 0.02622820809483528, -0.12403951585292816, -0.20428359508514404, -0.07866047322750092, 0.1373702436685562, -0.2599746584892273, -0.010377038270235062, -0.04974643886089325, 0.22463859617710114, 0.1929006725549698, 0.03367302939295769, 0.07340003550052643, 0.27874791622161865, 0.03189997375011444, 0.12253265082836151, 0.8831713795661926, -0.3712193965911865, -0.06594126671552658, 0.26789525151252747, 0.1573873609304428, 0.3801426291465759, -0.23865146934986115, 0.26359981298446655, -0.1346946805715561, -0.1658608466386795, -0.19585415720939636, 0.15652449429035187, 0.08727455139160156, -0.5369454622268677, -0.41274845600128174, 0.4158638119697571, -0.12845896184444427, 0.11699122190475464, 0.20796817541122437, -0.3225348889827728, 0.25579461455345154, 0.026795772835612297, 0.021449541673064232, -0.19682063162326813, -0.21158917248249054, 0.0191260427236557, -0.057658109813928604, 0.6054165363311768, -0.21143542230129242, -0.12408937513828278, 0.3219359815120697, -0.27472102642059326, 0.007873727940022945, 0.030629755929112434, 0.21628308296203613, -0.029861444607377052, -0.19581574201583862, 0.3248193562030792, -0.014947792515158653, 0.6353757381439209, -0.17680585384368896, 0.0008974807569757104, 0.06563258171081543, -0.46181783080101013, 0.0665295422077179, 0.019755451008677483, -0.06427296996116638, -0.1148606687784195, 0.04670097306370735, 0.2646925747394562, 0.13517563045024872, -0.11731989681720734, -0.08773409575223923, -0.2665199339389801, -0.31925705075263977, -0.3963140547275543, -0.07010666280984879, 0.16051653027534485, -0.21273034811019897, 0.08174264430999756, 0.16314692795276642, -0.04086977243423462, -0.2503908574581146, -0.028384322300553322, -0.35454079508781433, 0.4247934818267822, -0.13198378682136536, -0.24785704910755157, -0.055451612919569016, 0.2683357298374176, 0.18440528213977814, 0.23861300945281982, 0.14158320426940918, -0.015264888294041157, 0.2034435123205185, -0.2024102658033371, 0.08007857948541641, -0.15074054896831512, -0.1296238750219345, 0.24927645921707153, 0.6636552810668945, 0.28606799244880676, -0.03030247986316681, 0.1506049931049347, -0.11892984062433243, -0.29374489188194275, 0.13095150887966156, 0.03134661540389061, -0.2929355502128601, -0.1620035022497177, -0.5915783047676086, 0.6851971745491028, 0.22249405086040497, 0.023062624037265778, 0.3544326722621918, -0.5506947040557861, -0.32026252150535583, 0.29008615016937256, 0.33680427074432373, 0.9200333952903748, -0.3764568269252777, 0.5159748196601868, -0.29942646622657776, 0.3096635043621063, 0.0008139924611896276, -0.32762154936790466, 0.2093079835176468, -0.3369634747505188, -0.2832556664943695, -0.14732079207897186, -0.17532670497894287, -0.11738209426403046, 0.3771115243434906, 0.12501955032348633, -0.07226411998271942, 0.11685311049222946, 0.01818246953189373, 0.05480809509754181, -0.09467672556638718, 0.06084010377526283, -0.40459227561950684, -0.06368772685527802, 0.06485352665185928, 0.21623773872852325, 0.2144353836774826, -0.28499117493629456, 0.05485353246331215, 0.17310591042041779, -0.1351606249809265, 0.0026146722957491875, 0.06200737878680229, -0.2733363211154938, 0.004146593622863293, -0.20198200643062592, -0.2839851379394531, -0.3501133322715759, 0.1486516147851944, 0.30035415291786194, -0.1588251143693924, 0.04286934807896614, 0.21379895508289337, 0.23113557696342468, 0.10839089751243591, -0.04475364834070206, -0.004501082468777895, 0.3801794946193695, -0.08694995939731598, 0.1371842324733734, 0.1390533298254013, -0.24541163444519043, -0.5426344275474548, -0.018865222111344337, 0.10415857285261154, 0.21035130321979523, -0.012462886050343513, -0.21622972190380096, 0.2761091887950897, 0.09403066337108612, 0.09879965335130692, 0.07368773221969604, 0.26839619874954224, -0.19851794838905334, 0.34516581892967224, 0.08301766961812973, -0.18664376437664032, 0.049779247492551804, 0.6502139568328857, 0.17492617666721344, -0.44052231311798096, 0.1786126345396042, 0.11505575478076935, -0.08829092979431152, -0.07991162687540054, 0.016613943502306938, 0.23431360721588135, -0.22399844229221344, 0.09348809719085693, 0.07933082431554794, 0.16056212782859802, -0.08549169450998306, 0.20371480286121368, 0.0990561693906784, -0.05569377914071083, -0.1945217251777649, -0.23886431753635406, -0.3176458179950714, 0.1662857085466385, -0.13898909091949463, 0.3290902376174927, 0.15828503668308258, -0.2370775043964386, 0.25330787897109985, 0.18144401907920837, -0.2273147851228714, 0.19668613374233246, 0.1132524386048317, 0.21267618238925934, -0.02041695825755596, 0.12598124146461487, -0.12172288447618484, -0.0782727524638176, -0.06083355471491814, 0.09267522394657135, 0.0013124943943694234, -0.18895962834358215, 0.08946779370307922, 0.2597551941871643, 0.10290312021970749, -0.061542805284261703, -0.06418691575527191, -0.24945832788944244, -0.21114900708198547, -0.010368275456130505, 0.295249342918396, 0.08706162124872208, -0.16299398243427277, -0.16167479753494263, 0.285411536693573, 0.5793207287788391, -0.16937671601772308, 0.4471304416656494, 0.012473300099372864, 0.34422335028648376, 0.08855243772268295, -0.030133266001939774, -0.2365310788154602, 0.10988978296518326, 0.25946158170700073, -0.09177042543888092, 0.24938024580478668, 0.017095619812607765, 0.18777836859226227, -0.4105765223503113, 0.15096743404865265, -0.15718026459217072, 0.18544773757457733, 0.2735786437988281, -0.49953415989875793, 0.06431476026773453, 0.311789870262146, 0.14442293345928192, 0.06996842473745346, -0.19012999534606934, -0.10925290733575821, -0.3621827960014343, -0.16495002806186676, 0.28041183948516846, 0.5584883093833923, 0.030295467004179955, 0.0003428170457482338, 0.0439930260181427, 0.3751169741153717, -0.4146684408187866, 0.07821579277515411, 0.4015360474586487, -0.04632887989282608, 0.04907828941941261, 0.08587315678596497, 0.5185032486915588, -0.012563609518110752, 0.17871806025505066, 0.015060785226523876, 0.2180618792772293, 0.04585348069667816, 0.09360969066619873, -0.2677706778049469, -0.43083909153938293, 0.058702412992715836, 0.6751394271850586, -0.07135048508644104, 0.4519219696521759, -0.36957451701164246, -0.055846549570560455, -0.01697087101638317, -0.2555284798145294, -0.15901295840740204, 0.1286567747592926, -0.13278810679912567, 0.0760778933763504, -0.1052355021238327, -0.12485134601593018, -0.14457017183303833, 0.4197896420955658, -0.10075622797012329, -0.14252698421478271, 0.25648584961891174, 0.26178526878356934, 0.013030823320150375, 0.19899939000606537, -0.10125130414962769, 0.09684330224990845, 0.2134018987417221, -0.2731974124908447, 0.22596918046474457, -0.441120982170105, 0.1773989200592041, 0.483446329832077, 0.3473462462425232, -0.08138124644756317, 0.31859350204467773, -0.10274183750152588, 0.09607735276222229, 0.09671797603368759, 0.06918928027153015, -0.025633012875914574, 0.3193223774433136, 0.358823299407959, 0.06351246684789658, 0.10424607992172241, 0.025396861135959625, -0.07524601370096207, 0.4104226529598236, -0.01057092659175396, -0.030714893713593483, -0.36591851711273193, 0.1415158361196518, 0.2978208661079407, -0.12302526086568832, 0.0002621548774186522, 0.006375601515173912, -0.3958486020565033, 0.08554188907146454, 0.22740954160690308, -0.4957818388938904, 0.0051388926804065704, 0.44730865955352783, 0.01617766171693802, -0.2025241255760193, 0.5034618973731995, 0.3643021583557129, 0.11371409147977829, -0.2773652970790863, -0.2858848571777344, -0.3451366126537323, 0.024137888103723526, 0.04382498934864998, 0.16584940254688263, -0.006225104443728924, 0.23465503752231598, 0.18113172054290771, 0.1554616093635559, -0.13747166097164154, -0.47723260521888733, -0.10181475430727005, 0.1482335925102234, -0.3347151577472687, 0.22804038226604462, 0.17978443205356598, 0.4630299508571625, -0.22517070174217224, -0.22883111238479614, 0.18368977308273315, 0.14242246747016907, -0.2046663612127304, 0.37404078245162964, -0.08746302872896194, 0.0063898591324687, 0.07313872128725052, 0.40849071741104126, -0.4653458893299103, 0.3128407895565033, 0.017308281734585762, 0.007558564655482769, -0.11583634465932846, -0.35110557079315186, -0.2685947120189667, -0.1359151005744934, 0.11389192938804626, 0.002849886193871498, -0.21716083586215973, -0.07924646884202957, -0.01781834475696087, -0.2589981257915497, -0.0852830708026886, -0.12338653951883316, -0.14467528462409973, -0.4979204833507538, -0.08093114197254181, -0.038352105766534805, 0.20501190423965454, 0.3365008533000946, -0.04318540170788765, -0.24619807302951813, -0.3440428078174591, -0.0021831190679222345, 0.30992060899734497, -0.4316570460796356, 0.008486283011734486, -0.22643829882144928, 0.03243294358253479, -0.008222714066505432, 0.1528896987438202, -0.44107651710510254, 0.16892725229263306, 0.2995240092277527, -0.11882060766220093, -0.04642420634627342, 0.3388528823852539, 0.13880744576454163, -0.0459354892373085, -0.11660777032375336, 0.261957049369812, 0.011112074367702007, -0.09114627540111542, -0.6637380123138428, -0.420708030462265 ]
https://github.com/huggingface/datasets/issues/1827
Regarding On-the-fly Data Loading
Hi ! Currently when you load a dataset via `load_dataset` for example, then the dataset is memory-mapped from an Arrow file on disk. Therefore there's almost no RAM usage even if your dataset contains TB of data. Usually at training time only one batch of data at a time is loaded in memory. Does that answer your question or were you thinking about something else ?
Hi, I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point. Thanks, Gunjan
66
Regarding On-the-fly Data Loading Hi, I was wondering if it is possible to load images/texts as a batch during the training process, without loading the entire dataset on the RAM at any given point. Thanks, Gunjan Hi ! Currently when you load a dataset via `load_dataset` for example, then the dataset is memory-mapped from an Arrow file on disk. Therefore there's almost no RAM usage even if your dataset contains TB of data. Usually at training time only one batch of data at a time is loaded in memory. Does that answer your question or were you thinking about something else ?
[ -0.286943256855011, -0.3630419373512268, -0.14953333139419556, 0.27318304777145386, 0.4143624007701874, 0.17094257473945618, 0.42230141162872314, 0.1292588859796524, 0.1851397454738617, 0.08023807406425476, 0.12164194136857986, -0.06799066066741943, -0.24279657006263733, 0.19639916718006134, 0.18935048580169678, 0.23707498610019684, -0.0065640839748084545, 0.1383555382490158, -0.18601341545581818, 0.06679479032754898, -0.009469592012465, -0.2281021624803543, -0.1345319300889969, -0.36008739471435547, -0.3519834876060486, -0.17887066304683685, -0.2061011642217636, -0.08167465031147003, -0.0664416179060936, -0.1807878166437149, 0.038301385939121246, 0.14545732736587524, 0.26616328954696655, 0.21689176559448242, -0.00011344833910698071, 0.026361901313066483, 0.18785715103149414, -0.16152046620845795, -0.4358327388763428, 0.19280441105365753, -0.08492686599493027, 0.053444795310497284, 0.14894616603851318, -0.259166955947876, -0.043294213712215424, 0.26364144682884216, 0.1821034550666809, -0.3938763439655304, 0.39362677931785583, -0.05979253724217415, 0.12879471480846405, -0.031294360756874084, -0.3372344672679901, 0.011578868143260479, 0.0496063232421875, 0.13176457583904266, 0.07075568288564682, 0.07038259506225586, 0.27104002237319946, -0.05997772887349129, -0.17537914216518402, 0.3019687235355377, 0.0040441881865262985, 0.04812099412083626, 0.3422015905380249, 0.05360410735011101, 0.07542915642261505, -0.33612412214279175, -0.032416075468063354, 0.08975661545991898, 0.5630339980125427, -0.034745603799819946, -0.15532994270324707, -0.3663955330848694, 0.11465182155370712, -0.26986953616142273, -0.06252702325582504, 0.48933422565460205, -0.4659109115600586, 0.040753625333309174, -0.5683209896087646, -0.4256094694137573, -0.25264492630958557, -0.043652359396219254, -0.036720577627420425, -0.47359949350357056, 0.13232971727848053, 0.00798515509814024, 0.1394612044095993, 0.13082748651504517, 0.34375205636024475, -0.23167698085308075, -0.04601745307445526, 0.4015501141548157, -0.25778719782829285, -0.0960034430027008, -0.6005839705467224, -0.29982975125312805, 0.038335006684064865, -0.2760591506958008, 0.1747627556324005, 0.1581803858280182, -0.0951346829533577, 0.10614100098609924, 0.3347070813179016, -0.019386202096939087, 0.024412408471107483, 0.025478163734078407, -0.00010321044828742743, -0.27592676877975464, -0.2644043564796448, -0.057874735444784164, -0.4595874547958374, 0.0949927344918251, 0.03319193422794342, -0.39430034160614014, -0.4661900997161865, 0.008762973360717297, 0.17176836729049683, -0.2818399667739868, 0.041211631149053574, -0.013791443780064583, -0.2435888946056366, 0.29648900032043457, 0.013982553035020828, -0.04814295098185539, 0.46048951148986816, -0.2862052619457245, -0.12498001009225845, -0.2746882140636444, -0.06371985375881195, 0.06569045782089233, -0.3060078024864197, 0.2646065056324005, 0.1331709772348404, 0.1531422734260559, 0.06672936677932739, -0.13713964819908142, -0.06699918955564499, 0.03640447556972504, 0.01998838596045971, -0.3356124460697174, 0.20591869950294495, 0.15517564117908478, -0.11780603229999542, -0.2792702317237854, -0.038168735802173615, 0.31183764338493347, 0.006095629185438156, 0.5027798414230347, -0.2631540298461914, -0.06981239467859268, 0.429309219121933, 0.08178183436393738, 0.08337382227182388, -0.15463243424892426, -0.6008713245391846, 0.3655913770198822, 0.1369960606098175, 0.13334213197231293, 0.07057678699493408, -0.007776439189910889, -0.3763470947742462, 0.005117287393659353, 0.2648206949234009, 0.3271278440952301, -0.3991856873035431, -0.3566911518573761, 0.4185033142566681, -0.015825729817152023, -0.13916300237178802, 0.106280118227005, -0.30863234400749207, 0.4188520610332489, 0.03004249557852745, -0.10012230277061462, 0.09821576625108719, -0.21437358856201172, -0.05439329892396927, 0.3533630669116974, 0.01586013473570347, -0.10139353573322296, 0.02470940537750721, 0.5722174048423767, 0.093857042491436, 0.24929247796535492, 0.3291521668434143, 0.7063398361206055, 0.14415578544139862, 0.12000531703233719, -0.1268433928489685, -0.2603089213371277, -0.3210437595844269, 0.3683956265449524, 0.16437141597270966, 0.1685018688440323, 0.08416350930929184, 0.019454553723335266, 0.23472066223621368, -0.22007621824741364, 0.059916410595178604, 0.2151903212070465, -0.05182654410600662, 0.13261348009109497, -0.10097706317901611, 0.22995927929878235, -0.43849968910217285, 0.2532019317150116, 0.04446621611714363, 0.08210553228855133, 0.11397389322519302, -0.005487559828907251, 0.363118439912796, -0.24878208339214325, 0.1507817506790161, 0.20113439857959747, -0.044428739696741104, -0.3101136088371277, -0.22520366311073303, -0.02292896993458271, -0.4112911522388458, 0.6960080862045288, -0.4796498119831085, 0.21734435856342316, -0.1416354924440384, 0.09893948584794998, 0.5003312826156616, -0.08495956659317017, -0.08525312691926956, -0.2335917353630066, -0.46351370215415955, 0.03531322255730629, 0.06894377619028091, 0.3818087875843048, 0.1407143473625183, 0.17824438214302063, 0.03169894590973854, 0.049243997782468796, 0.18138287961483002, 0.02683543972671032, 0.18267668783664703, -0.31048348546028137, 0.16193076968193054, -0.152164027094841, -0.35861051082611084, 0.4180773198604584, 0.09458044916391373, 0.27599215507507324, 0.3086816668510437, -0.15235550701618195, 0.014111528173089027, -0.14440202713012695, -0.05347451940178871, 0.10241518914699554, 0.043866999447345734, 0.22685837745666504, 0.462164968252182, 0.17079593241214752, -0.2648865580558777, -0.3457984924316406, 0.05040173977613449, -0.11201920360326767, -0.04329083487391472, 0.22490333020687103, -0.12699347734451294, 0.036463335156440735, 0.03297936171293259, -0.0982067734003067, 0.23399321734905243, 0.20311239361763, -0.01201518252491951, 0.17038173973560333, 0.21888263523578644, 0.00952516496181488, 0.08827738463878632, 0.062238309532403946, 0.47839200496673584, -0.1956150233745575, -0.07802621275186539, -0.029674414545297623, -0.2640935182571411, 0.25081127882003784, 0.1417490839958191, -0.1726943552494049, -0.13916802406311035, -0.02423911541700363, 0.004701752215623856, -0.30658698081970215, -0.09982577711343765, 0.3313089907169342, -0.1850050836801529, 0.36011525988578796, -0.012678831815719604, 0.02249988727271557, 0.1696314960718155, 0.007145396899431944, -0.09758925437927246, 0.9094575643539429, -0.046964459121227264, -0.21003729104995728, -0.021173397079110146, -0.07366953045129776, -0.0035659712739288807, 0.03430712968111038, 0.34309518337249756, -0.04839234799146652, 0.37043270468711853, 0.14064842462539673, -0.17756624519824982, 0.1492750346660614, 0.2240162193775177, 0.15290680527687073, 0.22345279157161713, -0.016787970438599586, -0.3906620740890503, 0.1024208813905716, -0.2542734742164612, 0.047784458845853806, -0.08781828731298447, -0.3387583792209625, -0.22434070706367493, -0.3469243049621582, 0.3597922921180725, 0.0980088859796524, -0.035397741943597794, -0.0074071879498660564, -0.4434202313423157, -0.09584656357765198, 0.14048093557357788, 0.19948360323905945, 0.10519015043973923, 0.3841186761856079, 0.16945357620716095, -0.14200477302074432, -0.13634169101715088, -0.025812333449721336, 0.05465788394212723, -0.47638943791389465, -0.08985588699579239, 0.04922322928905487, -0.17513270676136017, -0.09485974907875061, 0.04025862365961075, 0.018546616658568382, 0.8389362692832947, -0.8290776610374451, 0.13934773206710815, -0.037930913269519806, -0.21410655975341797, -0.28197038173675537, 0.05184938758611679, 0.03995470330119133, -0.23879213631153107, -0.09567373991012573, 0.047307394444942474, 0.3101848065853119, 0.1588173508644104, -0.10290884226560593, 0.03734671324491501, 0.2988794445991516, 0.14543727040290833, 0.1473436802625656, 0.7117274403572083, -0.21235276758670807, -0.16627247631549835, 0.1837860345840454, -0.055709440261125565, 0.2883809804916382, -0.13273292779922485, 0.2319423109292984, -0.16282694041728973, -0.20905064046382904, -0.2608182430267334, 0.17890256643295288, 0.06650001555681229, -0.30495014786720276, -0.4226720333099365, 0.2403937131166458, -0.08135373890399933, -0.032050006091594696, 0.34737423062324524, -0.3740394115447998, 0.33034759759902954, -0.001648670993745327, -0.03341224789619446, -0.09696061909198761, -0.2357497364282608, -0.005357659421861172, -0.10438395291566849, 0.41437479853630066, -0.25443676114082336, -0.23465247452259064, 0.4172883927822113, -0.25920507311820984, 0.0629909411072731, -0.09616207331418991, 0.18167537450790405, 0.0727689266204834, -0.14022481441497803, 0.2659958302974701, 0.14215442538261414, 0.5721116662025452, 0.08010797202587128, -0.12905685603618622, 0.04823530092835426, -0.44242483377456665, -0.22158989310264587, 0.0046015274710953236, -0.13777866959571838, -0.09473974257707596, -0.06029054522514343, 0.3573644757270813, -0.03401670977473259, -0.2430555373430252, -0.02232322096824646, -0.021873492747545242, -0.40672194957733154, -0.3591228127479553, -0.17929689586162567, 0.14779449999332428, -0.0813557505607605, 0.07000065594911575, 0.18959830701351166, 0.01608973555266857, 0.04673315957188606, -0.15479449927806854, -0.31141483783721924, 0.3588244616985321, 0.034927260130643845, -0.2902474105358124, 0.012870344333350658, 0.27836713194847107, 0.2972322404384613, 0.1560083031654358, 0.16766497492790222, 0.2824077010154724, 0.2115086317062378, -0.28072601556777954, 0.030746404081583023, -0.14020870625972748, -0.04483361169695854, 0.38987502455711365, 0.4764634668827057, 0.2214212566614151, 0.0638556256890297, 0.14613033831119537, 0.018974537029862404, -0.550262451171875, 0.17621439695358276, 0.09592749923467636, -0.1931823343038559, -0.21836304664611816, -0.667481541633606, 0.704433798789978, 0.22654718160629272, 0.030439531430602074, 0.3714713156223297, -0.4017283022403717, -0.33587655425071716, 0.15638367831707, 0.31377869844436646, 0.7594894766807556, -0.508361279964447, 0.5862457156181335, -0.20890775322914124, 0.31207960844039917, -0.043206021189689636, -0.2429613471031189, 0.2859005033969879, -0.2782701849937439, -0.21864795684814453, -0.057367369532585144, -0.22832946479320526, -0.13765676319599152, 0.4003312885761261, 0.18752147257328033, 0.08054167777299881, 0.11485208570957184, 0.05122460424900055, -0.021650906652212143, -0.04269790276885033, 0.004943916108459234, -0.36372286081314087, -0.070079505443573, 0.1293795257806778, 0.20278233289718628, 0.06890919059515, -0.22743751108646393, 0.13182808458805084, 0.05693383514881134, -0.052289292216300964, 0.10776966065168381, -0.09698058664798737, -0.32521966099739075, 0.056604910641908646, -0.2804451882839203, -0.1579386293888092, -0.2129371166229248, 0.20187914371490479, -0.012654397636651993, -0.12985698878765106, 0.10946158319711685, 0.16359573602676392, 0.03485408052802086, 0.25123894214630127, -0.04552074521780014, -0.02143877185881138, 0.38987085223197937, -0.02189570851624012, 0.029210016131401062, 0.12995538115501404, -0.2188919633626938, -0.3678271174430847, -0.00357945472933352, 0.09045635163784027, 0.19482852518558502, -0.0676584392786026, -0.18209239840507507, 0.17361736297607422, 0.23278255760669708, 0.20634852349758148, 0.1096126139163971, 0.18801282346248627, -0.14462852478027344, 0.49398863315582275, 0.20863094925880432, -0.23867109417915344, 0.08959733694791794, 0.49493467807769775, 0.13674427568912506, -0.3033525347709656, 0.21609097719192505, -0.04145687445998192, -0.11339728534221649, -0.13513581454753876, 0.2718057632446289, 0.4831986427307129, -0.038148198276758194, 0.16060186922550201, 0.1519208699464798, 0.22683638334274292, -0.0794178768992424, 0.11807920038700104, 0.0783064141869545, -0.16718614101409912, -0.11440292000770569, -0.10364395380020142, -0.40506014227867126, 0.2820179760456085, 0.1186196357011795, 0.3430778682231903, 0.18113212287425995, -0.2666761577129364, 0.18191470205783844, 0.11198417097330093, -0.26809245347976685, 0.19365240633487701, 0.08656291663646698, 0.28394216299057007, -0.11367985606193542, 0.15993131697177887, -0.020743923261761665, -0.055225275456905365, 0.052927155047655106, 0.06346665322780609, 0.0021792834158986807, -0.21078702807426453, 0.13710922002792358, 0.20344430208206177, -0.016318300738930702, 0.0004693788068834692, -0.007761587854474783, -0.4162232577800751, -0.1493646651506424, -0.13763749599456787, 0.18334732949733734, 0.16611334681510925, -0.09337124228477478, -0.1546977013349533, 0.3541571795940399, 0.44255319237709045, -0.2050756812095642, 0.4429434835910797, -0.11981673538684845, 0.3913659155368805, 0.1933407187461853, -0.07820086181163788, 0.0165952667593956, 0.06737545132637024, -0.0023898035287857056, -0.011415542103350163, 0.35751399397850037, -0.11862773448228836, -0.013996003195643425, -0.3259764015674591, 0.16052575409412384, -0.11867519468069077, 0.28845441341400146, 0.39290785789489746, -0.5295215845108032, 0.021072261035442352, 0.2882760465145111, 0.21992594003677368, 0.04133814573287964, -0.09991497546434402, 0.0013915336458012462, -0.3731642961502075, -0.08231771737337112, 0.2886892259120941, 0.244426429271698, 0.05734172463417053, -0.29475945234298706, -0.14558005332946777, 0.2715758681297302, -0.2606429159641266, -0.061850931495428085, 0.25371217727661133, 0.101739302277565, -0.0880398377776146, -0.0667773112654686, 0.5002999901771545, 0.09944885969161987, 0.29234927892684937, -0.10785799473524094, 0.33136728405952454, -0.07803257554769516, 0.06738396733999252, -0.3112195134162903, -0.36041128635406494, 0.011753144674003124, 0.6964068412780762, -0.06039201840758324, 0.1763441562652588, -0.36291739344596863, 0.12456972151994705, 0.11411891877651215, -0.37014853954315186, -0.05495152622461319, -0.02520037814974785, -0.12517496943473816, 0.21373993158340454, -0.16836966574192047, -0.13923890888690948, -0.14880456030368805, 0.425766259431839, -0.021482152864336967, -0.31612128019332886, 0.18419522047042847, 0.34282782673835754, 0.06291195005178452, 0.23395641148090363, -0.05586519092321396, 0.19779719412326813, 0.09299878776073456, -0.292955607175827, -0.0018582657212391496, -0.30055665969848633, 0.25026267766952515, 0.4217044711112976, 0.307151198387146, -0.08880876004695892, 0.23050883412361145, -0.00982957798987627, 0.06922734528779984, 0.1632235050201416, 0.0619339644908905, -0.13808396458625793, 0.11379852890968323, 0.32655054330825806, 0.24479806423187256, 0.13475336134433746, 0.07641121000051498, -0.10885992646217346, 0.24045276641845703, 0.0029710240196436644, -0.17576062679290771, -0.4388476312160492, 0.06525663286447525, 0.26994991302490234, -0.15192554891109467, -0.06846961379051208, 0.01865066960453987, -0.24361366033554077, 0.04554325342178345, 0.37527987360954285, -0.522275984287262, -0.017957165837287903, 0.48555541038513184, 0.05309893935918808, -0.21871094405651093, 0.5302191972732544, 0.10262756794691086, 0.23203180730342865, -0.3197324573993683, -0.31639987230300903, -0.3911038041114807, -0.08139099925756454, -0.18390698730945587, 0.12528075277805328, -0.058102138340473175, 0.16720683872699738, 0.22310727834701538, 0.11559250950813293, -0.11437344551086426, -0.4481281340122223, -0.160846546292305, 0.22272397577762604, -0.3137453496456146, 0.08004384487867355, 0.021004216745495796, 0.42218536138534546, -0.1229955404996872, -0.31179022789001465, 0.06429237872362137, -0.13461025059223175, -0.1530558317899704, 0.37623846530914307, 0.07298406213521957, -0.0030935248360037804, 0.2004397213459015, 0.4600735008716583, -0.47801080346107483, 0.3159681260585785, 0.06746604293584824, 0.01631161943078041, 0.019364066421985626, -0.15928325057029724, -0.2847006022930145, 0.0015845185844227672, 0.16155900061130524, -0.03722609207034111, -0.2762807309627533, -0.06114181876182556, -0.03205949068069458, -0.19486884772777557, -0.06415919959545135, -0.2005612999200821, -0.12244895100593567, -0.4066179096698761, 0.05873950570821762, 0.05160701647400856, 0.10415385663509369, 0.3399553894996643, -0.14399957656860352, -0.29600971937179565, -0.34096989035606384, 0.04310442507266998, 0.3233136236667633, -0.475014328956604, 0.01905878260731697, -0.24956977367401123, 0.13820838928222656, -0.061419956386089325, 0.16788560152053833, -0.3513651490211487, 0.11777692288160324, 0.42200130224227905, -0.061619631946086884, -0.10312718898057938, 0.3565874695777893, 0.22949667274951935, -0.028624964877963066, -0.05848880857229233, 0.25895169377326965, -0.27663177251815796, -0.1549822837114334, -0.6072600483894348, -0.4248482584953308 ]
https://github.com/huggingface/datasets/issues/1825
Datasets library not suitable for huge text datasets.
Hi ! Looks related to #861 You are right: tokenizing a dataset using map takes a lot of space since it can store `input_ids` but also `token_type_ids`, `attention_mask` and `special_tokens_mask`. Moreover if your tokenization function returns python integers then by default they'll be stored as int64 which can take a lot of space. Padding can also increase the size of the tokenized dataset. To make things more convenient, we recently added a "lazy map" feature that allows to tokenize each batch at training time as you mentioned. For example you'll be able to do ```python from transformers import BertTokenizer tokenizer = BertTokenizer.from_pretrained("bert-base-uncased") def encode(batch): return tokenizer(batch["text"], padding="longest", truncation=True, max_length=512, return_tensors="pt") dataset.set_transform(encode) print(dataset.format) # {'type': 'custom', 'format_kwargs': {'transform': <function __main__.encode(batch)>}, 'columns': ['idx', 'label', 'sentence1', 'sentence2'], 'output_all_columns': False} print(dataset[:2]) # {'input_ids': tensor([[ 101, 2572, 3217, ... 102]]), 'token_type_ids': tensor([[0, 0, 0, ... 0]]), 'attention_mask': tensor([[1, 1, 1, ... 1]])} ``` In this example the `encode` transform is applied on-the-fly on the "text" column. This feature will be available in the next release 2.0 which will happen in a few days. You can already play with it by installing `datasets` from source if you want :) Hope that helps !
Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions??
197
Datasets library not suitable for huge text datasets. Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions?? Hi ! Looks related to #861 You are right: tokenizing a dataset using map takes a lot of space since it can store `input_ids` but also `token_type_ids`, `attention_mask` and `special_tokens_mask`. Moreover if your tokenization function returns python integers then by default they'll be stored as int64 which can take a lot of space. Padding can also increase the size of the tokenized dataset. To make things more convenient, we recently added a "lazy map" feature that allows to tokenize each batch at training time as you mentioned. For example you'll be able to do ```python from transformers import BertTokenizer tokenizer = BertTokenizer.from_pretrained("bert-base-uncased") def encode(batch): return tokenizer(batch["text"], padding="longest", truncation=True, max_length=512, return_tensors="pt") dataset.set_transform(encode) print(dataset.format) # {'type': 'custom', 'format_kwargs': {'transform': <function __main__.encode(batch)>}, 'columns': ['idx', 'label', 'sentence1', 'sentence2'], 'output_all_columns': False} print(dataset[:2]) # {'input_ids': tensor([[ 101, 2572, 3217, ... 102]]), 'token_type_ids': tensor([[0, 0, 0, ... 0]]), 'attention_mask': tensor([[1, 1, 1, ... 1]])} ``` In this example the `encode` transform is applied on-the-fly on the "text" column. This feature will be available in the next release 2.0 which will happen in a few days. You can already play with it by installing `datasets` from source if you want :) Hope that helps !
[ -0.2644476890563965, 0.07049340009689331, 0.009130422957241535, 0.1295926570892334, 0.30825158953666687, 0.00805096048861742, 0.29017913341522217, 0.37177765369415283, -0.2807385325431824, -0.018172012642025948, -0.048824112862348557, 0.14737839996814728, -0.23607183992862701, 0.010886114090681076, 0.039609313011169434, 0.028868146240711212, 0.2195763885974884, 0.20255109667778015, 0.14690259099006653, 0.06441634148359299, -0.04219729080796242, -0.24234126508235931, -0.22898860275745392, -0.013288759626448154, -0.43021735548973083, -0.2289026379585266, -0.13010059297084808, -0.29405874013900757, -0.35773518681526184, -0.40371784567832947, -0.03291788324713707, 0.1460268348455429, 0.4799691140651703, 0.43304482102394104, -0.00011875783820869401, -0.17877180874347687, 0.15742594003677368, 0.03883754462003708, -0.09152191132307053, 0.06572268903255463, 0.2080894261598587, -0.3404700458049774, -0.15106818079948425, -0.2540649473667145, 0.16791021823883057, -0.187402606010437, 0.012641056440770626, -0.12231740355491638, 0.25587236881256104, -0.022111665457487106, 0.1069587841629982, 0.1478162705898285, -0.11758292466402054, 0.11759326606988907, 0.20554949343204498, -0.025724612176418304, -0.06717456132173538, -0.046168889850378036, 0.3811221122741699, -0.07647775858640671, -0.18748067319393158, 0.30042552947998047, -0.1841917484998703, -0.05763675644993782, 0.392002671957016, -0.004980702418833971, -0.13022814691066742, -0.34289979934692383, 0.23368749022483826, 0.265677809715271, 0.39120233058929443, -0.34159940481185913, -0.29121628403663635, -0.4751833975315094, -0.1442975252866745, -0.16710500419139862, -0.1160396933555603, 0.13336911797523499, 0.1011425107717514, 0.13276472687721252, -0.5343755483627319, -0.3300272822380066, -0.09421940892934799, 0.2805027365684509, -0.12445573508739471, 0.25336819887161255, -0.030992301180958748, 0.06172231584787369, 0.06749509274959564, -0.30112797021865845, 0.11976131796836853, -0.37826815247535706, 0.1251964122056961, 0.4119563102722168, -0.21033085882663727, -0.1967034786939621, -0.1620592623949051, -0.13196821510791779, 0.44410744309425354, -0.21464096009731293, -0.33525538444519043, 0.07517309486865997, -0.24771513044834137, -0.029886236414313316, 0.2738417685031891, 0.20107148587703705, -0.1895846426486969, 0.3804607093334198, 0.1412706971168518, -0.2511979341506958, -0.07609834522008896, -0.11683119833469391, -0.504165530204773, 0.0023227999918162823, 0.24237172305583954, -0.3414869010448456, -0.25376641750335693, -0.010921459645032883, 0.032196320593357086, 0.0937676951289177, -0.3200731575489044, 0.20490367710590363, 0.15706002712249756, 0.2677532732486725, -0.18238571286201477, 0.118254654109478, -0.2504810392856598, 0.15300118923187256, -0.1295624077320099, 0.013684337958693504, -0.034892890602350235, -0.08092106133699417, -0.31185534596443176, 0.08854253590106964, 0.13238723576068878, 0.03693079575896263, 0.1483549028635025, -0.03115963004529476, 0.08308330923318863, 0.11995220929384232, 0.2286500632762909, -0.34310799837112427, 0.06968969106674194, 0.08816846460103989, -0.055142104625701904, 0.3614560067653656, -0.2426367551088333, 0.05438556149601936, -0.24211591482162476, 0.34587380290031433, -0.357513427734375, -0.3633342683315277, 0.11500529944896698, 0.09564822167158127, -0.2124389410018921, -0.01923259347677231, -0.4771782457828522, 0.3124530613422394, 0.41317087411880493, 0.035351406782865524, 0.030804771929979324, -0.22334887087345123, -0.28915438055992126, -0.11198914796113968, 0.2520448565483093, 0.21725748479366302, -0.3746160566806793, -0.046259962022304535, -0.006076812744140625, 0.2774535119533539, 0.3547438681125641, 0.7049418687820435, -0.2344232052564621, 0.4682490825653076, -0.021717270836234093, 0.5970693230628967, 0.1308770626783371, -0.012030260637402534, -0.5504748821258545, 0.30641019344329834, 0.13611169159412384, -0.06262865662574768, -0.04742365702986717, 0.04870356246829033, 0.5649150013923645, -0.1264638453722, 0.24218936264514923, 0.34772858023643494, -0.10757078230381012, 0.23972384631633759, -0.25242355465888977, -0.389459490776062, 0.25437384843826294, 0.21268367767333984, 0.23134298622608185, -0.4073579013347626, -0.10765358805656433, 0.5631247758865356, 0.10746549069881439, -0.2344982773065567, 0.3512016832828522, 0.06945972144603729, 0.19328242540359497, 0.13677895069122314, -0.024493271484971046, -0.1917751580476761, -0.11334852129220963, 0.138760507106781, 0.12848418951034546, -0.03402464836835861, -0.01776936464011669, -0.3649345338344574, 0.1988348662853241, -0.055893976241350174, -0.04517301917076111, 0.002312456490471959, -0.008750718086957932, -0.2987188696861267, -0.052314598113298416, 0.045056674629449844, -0.12357877939939499, -0.25201648473739624, -0.1439158320426941, 0.11906322091817856, -0.0510435625910759, 0.06535021215677261, 0.06423887610435486, -0.0879659354686737, -0.08188056945800781, 0.2881649136543274, -0.10196028649806976, -0.1098921000957489, -0.043020088225603104, 0.11550270020961761, 0.17926393449306488, -0.17297472059726715, -0.19897781312465668, 0.6291496157646179, 0.33137261867523193, -0.05277721583843231, 0.26208940148353577, 0.05794971063733101, 0.0874846801161766, -0.10105212777853012, -0.060875240713357925, 0.19801335036754608, 0.10384319722652435, 0.180986687541008, 0.03713323920965195, -0.23675872385501862, 0.18426597118377686, -0.023145508021116257, 0.057714395225048065, -0.0625002309679985, 0.06317643821239471, 0.13999348878860474, 0.4071199893951416, 0.3443518877029419, -0.09917417168617249, -0.12268031388521194, 0.3456893265247345, -0.25474151968955994, 0.09445659816265106, 0.3692595362663269, -0.42707669734954834, -0.3702394664287567, 0.056060511618852615, -0.28411370515823364, 0.07367709279060364, 0.12155941128730774, 0.05450776219367981, -0.07435289770364761, 0.3321841359138489, 0.004993113223463297, 0.25676730275154114, 0.17685145139694214, 0.09054140746593475, 0.059909023344516754, 0.15247981250286102, 0.24765898287296295, -0.0831810012459755, -0.14849776029586792, 0.2264689952135086, 0.281206876039505, -0.06415345519781113, 0.016554787755012512, -0.17820429801940918, -0.1478777527809143, 0.007127700839191675, -0.09211325645446777, -0.10969004034996033, 0.05295133590698242, 0.1498166173696518, -0.05035959556698799, -0.005036730784922838, 0.20966468751430511, 0.056079454720020294, 0.3908664584159851, 0.08884325623512268, -0.2763008177280426, 0.08699628710746765, -0.08992365747690201, -0.365636944770813, -0.019391244277358055, 0.2563130855560303, -0.33123064041137695, 0.29557663202285767, 0.12390583753585815, 0.11114869266748428, -0.3529423773288727, -0.5111265182495117, 0.055365946143865585, -0.08075850456953049, 0.04302173852920532, 0.005128347314894199, 0.011936936527490616, -0.34706786274909973, 0.045090630650520325, -0.08295740187168121, -0.2204844206571579, -0.04867970943450928, 0.03778510540723801, -0.1488906443119049, -0.19098535180091858, 0.0991198867559433, -0.11782637238502502, -0.2849353849887848, -0.14071598649024963, 0.1821794956922531, -0.17083987593650818, 0.14434799551963806, 0.021596848964691162, 0.058514755219221115, 0.039807114750146866, -0.09085305035114288, -0.21655941009521484, 0.03961159288883209, -0.34565630555152893, 0.4540539085865021, 0.053776320070028305, -0.15994271636009216, -0.07391581684350967, -0.05986281856894493, -0.04376183822751045, 0.3011975884437561, -0.45208629965782166, 0.20265386998653412, -0.294324666261673, 0.23227405548095703, -0.06257319450378418, 0.11540929228067398, 0.06283055245876312, 0.02295532263815403, 0.05326760187745094, 0.08547373116016388, -0.14024488627910614, -0.19865505397319794, -0.044246722012758255, 0.19662517309188843, 0.045827466994524, 0.19260728359222412, 0.33191385865211487, 0.8323059678077698, 0.06499782204627991, -0.12241361290216446, 0.23460201919078827, 0.17437519133090973, 0.12439651787281036, -0.3345833718776703, -0.16107578575611115, 0.14685110747814178, -0.04459616169333458, -0.1165463775396347, 0.5374455451965332, 0.13780391216278076, -0.15283150970935822, 0.3503889739513397, -0.3317066431045532, -0.08019090443849564, -0.17754246294498444, 0.3647335469722748, -0.29595598578453064, 0.2762165665626526, 0.0002357579505769536, -0.0691218227148056, -0.22575819492340088, -0.3720052242279053, 0.0028130949940532446, -0.010875610634684563, 0.06505545973777771, 0.118846595287323, -0.3358931243419647, 0.1355581283569336, -0.5341356992721558, 0.18953406810760498, 0.041223153471946716, 0.2819492220878601, 0.1803768426179886, 0.1240452378988266, 0.15112021565437317, 0.12659868597984314, 0.5065214037895203, -0.02549058198928833, -0.19902303814888, -0.1221659928560257, -0.2344261258840561, -0.07705210149288177, 0.03006213717162609, -0.22335876524448395, 0.10623473674058914, 0.47978636622428894, 0.6534507274627686, -0.33394041657447815, -0.20071883499622345, -0.31130075454711914, 0.4322644770145416, -0.02923177368938923, -0.13366509974002838, 0.028419265523552895, -0.03165696933865547, -0.5678442716598511, 0.22335930168628693, 0.16545288264751434, 0.3397713005542755, 0.24088171124458313, -0.1090206503868103, -0.2026442587375641, -0.013412261381745338, 0.28382280468940735, 0.08371663093566895, 0.16705380380153656, 0.00030504155438393354, 0.29882603883743286, -0.04172720015048981, 0.07444803416728973, 0.43153291940689087, -0.02930588088929653, -0.22439801692962646, -0.4143538177013397, -0.02524617500603199, 0.046216145157814026, 0.5054762363433838, 0.09847619384527206, -0.03852429240942001, 0.25534307956695557, -0.12597881257534027, 0.25325801968574524, -0.2888219952583313, 0.574215829372406, 0.2188752293586731, 0.09654408693313599, -0.7376464605331421, -0.5411150455474854, 0.09038934856653214, 0.22932538390159607, -0.09818631410598755, 0.17401044070720673, -0.15329545736312866, -0.37545090913772583, 0.5328882932662964, 0.2531075179576874, 0.9069620966911316, -0.3994152843952179, 0.42454993724823, -0.27230432629585266, 0.44917139410972595, 0.551566481590271, -0.5493828654289246, 0.029903506860136986, -0.32762837409973145, 0.09712772816419601, 0.10513269156217575, 0.02854589745402336, -0.08680906891822815, 0.2766428291797638, -0.08140435814857483, 0.24701844155788422, 0.09727641195058823, 0.3555186092853546, -0.12672317028045654, 0.49769139289855957, 0.13011327385902405, -0.5027885437011719, -0.1041879951953888, 0.07388812303543091, -0.09473215043544769, -0.07158861309289932, -0.1766846626996994, 0.056698594242334366, 0.07302109897136688, -0.06757350265979767, -0.22015652060508728, -0.18968060612678528, -0.1857755333185196, 0.22027450799942017, -0.04199855774641037, 0.030326472595334053, 0.46120956540107727, -0.0011067731538787484, 0.2244468480348587, 0.5506528615951538, -0.15094535052776337, 0.11743387579917908, -0.1730623096227646, -0.017646264284849167, 0.08735448122024536, -0.24222327768802643, 0.10323165357112885, 0.06273996829986572, 0.19973762333393097, -0.19907519221305847, 0.0809137374162674, -0.05428159981966019, -0.31793662905693054, -0.11110496520996094, 0.6560412049293518, -0.3565060496330261, -0.16611167788505554, -0.1440655142068863, -0.09685448557138443, 0.006193206179887056, 0.05651917681097984, 0.10022518783807755, -0.045260801911354065, 0.37521451711654663, 0.034715380519628525, -0.26486676931381226, -0.07267141342163086, 0.06463290005922318, 0.05073213949799538, -0.05246521532535553, 0.5686115026473999, 0.03181600570678711, -0.2139262557029724, -0.1469622403383255, 0.3851619064807892, 0.2808516323566437, -0.1480034589767456, 0.1107218861579895, 0.1490313559770584, 0.0435369536280632, -0.1176784336566925, 0.183882936835289, 0.1670871526002884, -0.3886723220348358, -0.059925537556409836, -0.14765623211860657, -0.4500805735588074, 0.11747117340564728, -0.02761131338775158, 0.2204980105161667, 0.13440541923046112, 0.22062794864177704, -0.16937479376792908, 0.05294819548726082, -0.21384812891483307, 0.3104969561100006, 0.007993348874151707, 0.3019275367259979, -0.3741818368434906, 0.004355889279395342, -0.16413123905658722, -0.09826641529798508, -0.09766437113285065, 0.22376571595668793, 0.031072542071342468, -0.19159634411334991, -0.25367268919944763, 0.19749708473682404, 0.2984791398048401, -0.30401864647865295, 0.09827300906181335, -0.211051344871521, -0.07528107613325119, -0.424973726272583, 0.23534372448921204, 0.15221267938613892, 0.01806873083114624, -0.18942813575267792, 0.24785828590393066, -0.19596470892429352, -0.25265681743621826, 0.12858827412128448, 0.03377179056406021, 0.19779734313488007, 0.0746597871184349, 0.2385919839143753, 0.34863921999931335, -0.14840048551559448, -0.013297413475811481, 0.17992602288722992, 0.6943491697311401, -0.06668726354837418, 0.06683772057294846, -0.08382642269134521, 0.14753805100917816, 0.3351510763168335, 0.008970958180725574, 0.3940817713737488, -0.21362818777561188, -0.38610029220581055, 0.683388352394104, 0.172422856092453, -0.060216907411813736, -0.18806922435760498, -0.02887037582695484, -0.17906834185123444, -0.1656186282634735, 0.11210037767887115, 0.18015404045581818, 0.2911606729030609, -0.4418918490409851, -0.09856756776571274, 0.3846242129802704, 0.1857513189315796, 0.025836387649178505, 0.46753183007240295, 0.06536751985549927, -0.06930726021528244, 0.3300029933452606, 0.3051340878009796, 0.22508078813552856, 0.4662766456604004, -0.06656476110219955, 0.471809059381485, 0.0667065903544426, 0.12534098327159882, -0.13440018892288208, -0.39104679226875305, -0.23684902489185333, 0.42562198638916016, 0.19484679400920868, 0.03734232485294342, -0.2140035331249237, 0.2732304632663727, 0.2574639320373535, -0.23213434219360352, -0.05052069202065468, 0.3097582757472992, -0.27512460947036743, -0.16672973334789276, -0.05871681123971939, -0.05017998442053795, 0.03087630309164524, 0.25557973980903625, -0.28148648142814636, -0.2813132703304291, 0.10185739398002625, 0.06146517023444176, 0.0013053129659965634, -0.27674129605293274, 0.2092764526605606, 0.09694625437259674, 0.050615981221199036, -0.29898279905319214, 0.23835687339305878, -0.36142629384994507, 0.03960761800408363, -0.2037050873041153, 0.26524657011032104, 0.3167506158351898, 0.42235270142555237, -0.1601746529340744, 0.04025189206004143, -0.19014865159988403, 0.14614872634410858, -0.12595222890377045, 0.38947415351867676, 0.07511882483959198, 0.13779336214065552, 0.10004676878452301, -0.0678023099899292, -0.0697041004896164, -0.10743770748376846, 0.043832529336214066, -0.32806792855262756, -0.02212832123041153, 0.0759526789188385, 0.23820169270038605, -0.24577756226062775, -0.032360903918743134, 0.09718102961778641, -0.3176349997520447, 0.18555337190628052, 0.8031601309776306, -0.30247655510902405, 0.15867549180984497, -0.16049537062644958, 0.04806383326649666, -0.16160283982753754, 0.446498304605484, 0.4236742854118347, -0.003097774460911751, -0.5891640186309814, -0.07248175889253616, -0.39106863737106323, 0.13305088877677917, -0.4093894362449646, 0.29878243803977966, -0.00473150797188282, 0.03670491278171539, -0.1346142292022705, 0.09450136125087738, -0.26722806692123413, 0.15311336517333984, -0.46291226148605347, 0.08518143743276596, -0.04769090563058853, 0.29110801219940186, -0.19003885984420776, 0.20476827025413513, -0.004468688741326332, -0.370198130607605, 0.36270371079444885, -0.1943228393793106, -0.1329682320356369, -0.19116349518299103, 0.29689717292785645, 0.1788274496793747, -0.14119403064250946, 0.44525671005249023, 0.17506319284439087, 0.13580480217933655, 0.060782890766859055, 0.24445293843746185, -0.007435218896716833, 0.07304571568965912, -0.24771498143672943, 0.08837030082941055, -0.020742973312735558, -0.044710882008075714, -0.222128227353096, 0.1344267874956131, -0.15061278641223907, -0.13173283636569977, -0.006913605146110058, -0.15708479285240173, -0.2271619290113449, -0.013233202509582043, -0.18070247769355774, 0.14783701300621033, -0.08150544762611389, 0.4159238636493683, -0.1348462700843811, -0.015056632459163666, -0.269297331571579, -0.28275054693222046, 0.2788337171077728, -0.6746134757995605, -0.40089407563209534, -0.1481923609972, -0.05688754469156265, 0.539702832698822, -0.10906887799501419, -0.6030364632606506, 0.10402324050664902, 0.49999603629112244, 0.10653448104858398, -0.45953434705734253, 0.10347173362970352, -0.011323205195367336, 0.01782160811126232, -0.19560034573078156, 0.546609103679657, -0.194295272231102, -0.2376631796360016, 0.07500321418046951, -0.25919389724731445 ]
https://github.com/huggingface/datasets/issues/1825
Datasets library not suitable for huge text datasets.
How recently was `set_transform` added? I am actually trying to implement it and getting an error: `AttributeError: 'Dataset' object has no attribute 'set_transform' ` I'm on v.1.2.1. EDIT: Oh, wait I see now it's in the v.2.0. Whoops! This should be really useful.
Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions??
43
Datasets library not suitable for huge text datasets. Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions?? How recently was `set_transform` added? I am actually trying to implement it and getting an error: `AttributeError: 'Dataset' object has no attribute 'set_transform' ` I'm on v.1.2.1. EDIT: Oh, wait I see now it's in the v.2.0. Whoops! This should be really useful.
[ -0.46780627965927124, 0.16560696065425873, 0.030423201620578766, 0.13930349051952362, 0.3698439300060272, -0.07995722442865372, 0.13434426486492157, 0.4200880229473114, -0.4338586926460266, -0.10870657116174698, 0.10511987656354904, 0.09787523001432419, -0.2596930265426636, 0.16173535585403442, 0.13775743544101715, 0.007173431105911732, 0.2880682647228241, 0.17738372087478638, -0.025608262047171593, 0.12198585271835327, -0.06834320724010468, -0.12772144377231598, -0.28676924109458923, -0.0003997825551778078, -0.5252428650856018, -0.26347166299819946, -0.017437681555747986, -0.2435949295759201, -0.44486314058303833, -0.324897825717926, -0.19247472286224365, 0.13646599650382996, 0.4324246048927307, 0.512505054473877, -0.00012559664901345968, -0.2210252434015274, 0.2472047209739685, -0.03842518478631973, -0.2875906825065613, -0.03947511687874794, 0.2930535674095154, -0.357769250869751, -0.19684532284736633, -0.21324272453784943, 0.1938285529613495, -0.3745194375514984, -0.041469819843769073, -0.10995018482208252, 0.1161915734410286, 0.2161804437637329, 0.08588820695877075, 0.05413127318024635, 0.07016634196043015, 0.039516814053058624, 0.16454876959323883, -0.001455523888580501, -0.1042264774441719, -0.0228793453425169, 0.4538719952106476, 0.06549335271120071, -0.126835897564888, 0.13993962109088898, -0.12165355682373047, -0.021264025941491127, 0.45770853757858276, -0.07397311180830002, -0.2455064207315445, -0.21502622961997986, 0.17155751585960388, 0.28892457485198975, 0.5197035670280457, -0.48639965057373047, -0.3977503180503845, -0.5967857837677002, -0.16936230659484863, -0.23335738480091095, -0.00512605719268322, 0.10508621484041214, 0.06447821855545044, 0.19546134769916534, -0.5726383924484253, -0.47434794902801514, -0.11595548689365387, 0.39325806498527527, -0.2551797926425934, 0.11431462317705154, -0.12854237854480743, 0.09376861155033112, 0.18534398078918457, -0.14512111246585846, 0.13376478850841522, -0.2565790116786957, 0.0210566483438015, 0.18751488626003265, -0.3344250023365021, -0.12710747122764587, -0.16220255196094513, -0.02116495370864868, 0.4064768850803375, 0.09461905062198639, -0.4326756000518799, 0.06500104069709778, -0.1359984129667282, -0.00835256278514862, 0.2543169856071472, 0.47105512022972107, -0.22278499603271484, 0.2742272615432739, 0.22378583252429962, -0.21963952481746674, 0.012065397575497627, -0.0800841897726059, -0.47909966111183167, -0.17351779341697693, 0.07928085327148438, -0.3584183156490326, -0.12009145319461823, -0.14532756805419922, -0.039695367217063904, -0.0014616423286497593, -0.1404426097869873, 0.1979498565196991, 0.11611063778400421, 0.1320025473833084, -0.057998765259981155, 0.1802777647972107, -0.10723214596509933, 0.23549436032772064, -0.13252748548984528, -0.20003455877304077, 0.002107826992869377, -0.020393192768096924, -0.29102763533592224, 0.1360287368297577, 0.16175557672977448, -0.0009598046308383346, 0.08485175669193268, -0.10976250469684601, 0.0947210043668747, 0.11956243216991425, 0.14495974779129028, -0.32303792238235474, 0.0003702383837662637, 0.16923008859157562, -0.12798120081424713, 0.4077438712120056, -0.17298898100852966, -0.04691525176167488, -0.2752203047275543, 0.3672430217266083, -0.2981252074241638, -0.39047330617904663, -0.06154952943325043, 0.07274125516414642, -0.40905648469924927, -0.048891641199588776, -0.5169221758842468, 0.4131360352039337, 0.4666958749294281, 0.0010690551716834307, 0.022855371236801147, -0.20465224981307983, -0.16119074821472168, -0.009332079440355301, 0.17031767964363098, 0.19399432837963104, -0.6206799745559692, -0.07363961637020111, -0.024231435731053352, 0.15784111618995667, 0.23997516930103302, 0.6512376070022583, -0.14100711047649384, 0.34027108550071716, -0.05928677320480347, 0.3595714867115021, 0.2331758290529251, 0.19292262196540833, -0.532120943069458, 0.2934282720088959, -0.03347267583012581, -0.2285970002412796, -0.018056610599160194, 0.04281336069107056, 0.39133936166763306, -0.11936905980110168, 0.028269270434975624, 0.4206734895706177, -0.06168258562684059, 0.1134222000837326, -0.22826825082302094, -0.32633256912231445, 0.19324232637882233, 0.21309897303581238, 0.20064173638820648, -0.14208412170410156, 0.04381750524044037, 0.454665869474411, 0.037938281893730164, -0.1514839231967926, 0.4403601884841919, 0.0919938012957573, 0.21729987859725952, 0.15100699663162231, 0.059499677270650864, -0.2520762085914612, 0.17664630711078644, 0.03907182440161705, 0.1651194542646408, -0.08735723048448563, -0.03598780930042267, -0.2174772322177887, 0.008902378380298615, -0.02213458903133869, 0.03188883885741234, 0.07268067449331284, -0.12673260271549225, -0.15514223277568817, -0.007906962186098099, 0.1740853190422058, -0.1608181744813919, -0.11975661665201187, -0.2361321896314621, 0.07244333624839783, -0.17394520342350006, 0.07099846750497818, 0.09376980364322662, -0.170337975025177, 0.0002907791349571198, 0.17705890536308289, -0.11854211986064911, -0.1547643542289734, -0.06339136511087418, 0.22321836650371552, -0.034386046230793, -0.1681159883737564, -0.32144129276275635, 0.6541765928268433, 0.27077963948249817, -0.06255289167165756, 0.24109697341918945, -0.07508688420057297, 0.041662778705358505, -0.10140668600797653, -0.026258813217282295, 0.19746479392051697, 0.03180335834622383, 0.17128226161003113, 0.040796857327222824, -0.21162806451320648, 0.09120570123195648, -0.06580426543951035, 0.1283014714717865, -0.009218618273735046, 0.19616475701332092, 0.028207987546920776, 0.35267016291618347, 0.25810176134109497, -0.08915066719055176, -0.14411287009716034, 0.5428147315979004, -0.2562140226364136, 0.25797930359840393, 0.4638552963733673, -0.4305694103240967, -0.3219674527645111, 0.07507821917533875, -0.10992731153964996, 0.2708720862865448, 0.18141186237335205, 0.038494303822517395, -0.0050508007407188416, 0.2958006262779236, -0.05855872482061386, 0.22698232531547546, 0.12926635146141052, 0.23125465214252472, 0.16550204157829285, 0.18570677936077118, 0.17580083012580872, -0.16525496542453766, -0.1809595227241516, 0.2347031533718109, 0.32320263981819153, -0.19560584425926208, 0.08063481003046036, -0.20886985957622528, -0.19413597881793976, -0.09871284663677216, 0.14547939598560333, -0.13879410922527313, 0.005288664251565933, 0.06360986083745956, -0.0917770266532898, 0.1439724713563919, 0.14538833498954773, 0.1162521243095398, 0.39103779196739197, 0.08752498030662537, -0.3043805658817291, 0.1152978241443634, -0.058972448110580444, -0.43237975239753723, -0.03512221947312355, 0.27948084473609924, -0.42646196484565735, 0.2161748707294464, 0.15201959013938904, 0.07639725506305695, -0.2842860221862793, -0.5105534195899963, 0.015310647897422314, 0.018666967749595642, 0.21454867720603943, -0.09795785695314407, 0.020444460213184357, -0.10421740263700485, 0.1304883509874344, -0.03224632516503334, -0.15894551575183868, -0.10282230377197266, 0.0985746830701828, -0.1815347671508789, -0.24359717965126038, 0.12768016755580902, -0.1638978272676468, -0.2868720293045044, -0.210188090801239, 0.2809809446334839, -0.14801938831806183, 0.0006397264660336077, 0.136113241314888, 0.1532781422138214, -0.022164704278111458, 0.00624240655452013, -0.07602439075708389, 0.119932621717453, -0.21263301372528076, 0.5063884258270264, 0.1551692634820938, -0.24017839133739471, -0.11682335287332535, 0.08238283544778824, -0.17069527506828308, 0.4046599566936493, -0.4827156662940979, 0.2901175320148468, -0.3174150288105011, 0.18220050632953644, -0.07470153272151947, 0.11960206925868988, 0.13633005321025848, -0.06622213870286942, 0.09119536727666855, 0.07438685745000839, -0.25660645961761475, -0.26442772150039673, -0.034830205142498016, 0.31903618574142456, -0.05388753488659859, 0.3580648899078369, 0.5046019554138184, 0.5707182884216309, -0.12840089201927185, -0.20259630680084229, 0.3022208511829376, 0.05813749134540558, 0.18593774735927582, -0.38129639625549316, -0.20784850418567657, 0.3076782822608948, -0.1130785197019577, -0.15002316236495972, 0.40429559350013733, 0.073363296687603, -0.12560562789440155, 0.18221329152584076, -0.2858069837093353, -0.07704287767410278, 0.002283737761899829, 0.18168041110038757, -0.2554914951324463, 0.19497092068195343, -0.033225659281015396, -0.1473342627286911, -0.05527224391698837, -0.354381799697876, 0.006502415984869003, 0.0854865163564682, -0.03988191857933998, 0.27809828519821167, -0.5231359004974365, 0.14454522728919983, -0.3172295391559601, 0.1839580535888672, -0.11983826011419296, 0.31764721870422363, 0.08934814482927322, 0.04433511570096016, 0.17285175621509552, -0.0029819903429597616, 0.6573579907417297, 0.16149914264678955, -0.22439147531986237, -0.08020692318677902, -0.18498864769935608, -0.2815260589122772, 0.030736466869711876, -0.15641194581985474, 0.2526804506778717, 0.39690810441970825, 0.44583600759506226, -0.2846605181694031, -0.08748787641525269, -0.15630804002285004, 0.5995655059814453, -0.02874366007745266, -0.20907962322235107, 0.009725617244839668, -0.19376109540462494, -0.6171151399612427, 0.1411241590976715, 0.11847556382417679, 0.37230372428894043, 0.051324740052223206, -0.017696574330329895, -0.16072358191013336, -0.14876767992973328, 0.33147987723350525, -0.02123793587088585, 0.1076570376753807, -0.07592727243900299, 0.2275632619857788, -0.11483181267976761, 0.16615240275859833, 0.509688138961792, -0.01120905950665474, 0.15897272527217865, -0.20576174557209015, 0.01603058911859989, 0.08608096837997437, 0.42286548018455505, -0.018247228115797043, -0.1591092199087143, 0.2727683186531067, -0.1593000888824463, 0.33511048555374146, -0.2517125904560089, 0.4993910789489746, 0.14243178069591522, 0.024775734171271324, -0.7850490808486938, -0.4419430196285248, 0.30653807520866394, 0.1834489107131958, -0.002083668950945139, 0.233221173286438, -0.08983451873064041, -0.3548894226551056, 0.29652339220046997, 0.12644581496715546, 0.9342730045318604, -0.3664005994796753, 0.2955779433250427, -0.3144506514072418, 0.32174116373062134, 0.5618302822113037, -0.6394956707954407, -0.010873875580728054, -0.3764120936393738, 0.05191202089190483, 0.0855146199464798, -0.054223328828811646, 0.13348639011383057, 0.401187539100647, -0.10392488539218903, 0.24858376383781433, 0.09214797616004944, 0.052966032177209854, -0.0280640609562397, 0.6024869680404663, -0.11246144026517868, -0.354743093252182, -0.1395687758922577, 0.03025590069591999, -0.1978616565465927, -0.017632927745580673, -0.15019908547401428, 0.1268526017665863, -0.0480026938021183, 0.08815214782953262, -0.37022116780281067, -0.08578526228666306, -0.07622484862804413, 0.13093452155590057, -0.07100755721330643, -0.1586056649684906, 0.5522632598876953, -0.02438502572476864, 0.29393795132637024, 0.4906291365623474, -0.15993185341358185, 0.1951521784067154, -0.3952561318874359, 0.007242795079946518, 0.22703340649604797, -0.25355350971221924, 0.17695172131061554, -0.002971723908558488, 0.046727169305086136, -0.22745759785175323, 0.12152725458145142, -0.014459406957030296, -0.18631434440612793, -0.1406603306531906, 0.5457146763801575, -0.28158044815063477, -0.1525873839855194, -0.10812519490718842, 0.07396658509969711, -0.09374869614839554, 0.012491370551288128, 0.1646720916032791, -0.020395344123244286, 0.36885449290275574, -0.06504655629396439, -0.26758596301078796, -0.16352306306362152, 0.22400034964084625, 0.038349028676748276, -0.048233646899461746, 0.5090441703796387, 0.1999015212059021, -0.19953130185604095, -0.09599658846855164, 0.3914949893951416, 0.21927915513515472, -0.28440505266189575, 0.22491015493869781, 0.10755347460508347, -0.018357431516051292, -0.11179228872060776, 0.09261618554592133, 0.11750812828540802, -0.44312500953674316, -0.06794361770153046, -0.22729912400245667, -0.37535059452056885, 0.13258622586727142, -0.03168109059333801, 0.11350227892398834, 0.06224866956472397, 0.12035654485225677, 0.000396298331907019, 0.11205844581127167, -0.146340012550354, 0.19430974125862122, 0.09179661422967911, 0.2783544361591339, -0.1562717854976654, 0.04785908758640289, -0.2649522125720978, -0.0907745435833931, -0.1531648188829422, 0.10011430084705353, 0.14193090796470642, -0.13766148686408997, -0.2068958878517151, 0.20381534099578857, 0.2516917586326599, -0.26251259446144104, 0.14885589480400085, -0.29415300488471985, -0.1333901435136795, -0.3269459903240204, 0.21888987720012665, 0.26857107877731323, -0.010176659561693668, -0.055301129817962646, 0.2593255043029785, -0.3359716534614563, -0.2528076469898224, 0.05860460549592972, -0.03265411779284477, 0.11974667757749557, 0.15321382880210876, 0.3857433795928955, 0.5578311681747437, -0.09740772843360901, -0.3966262936592102, 0.23649382591247559, 0.48236364126205444, -0.10040251165628433, 0.10285940021276474, -0.24522356688976288, 0.11800230294466019, 0.32102441787719727, 0.1504737287759781, 0.48416730761528015, -0.18217656016349792, -0.38881343603134155, 0.5509520173072815, 0.09332085400819778, -0.10552029311656952, -0.19484364986419678, 0.062089819461107254, -0.14723430573940277, -0.235494926571846, 0.13202133774757385, 0.2544417977333069, 0.17404814064502716, -0.4353882372379303, -0.05542302504181862, 0.519748330116272, 0.20017892122268677, 0.0402677059173584, 0.48442330956459045, 0.16501925885677338, -0.0563521534204483, 0.3396514654159546, 0.2591528296470642, 0.2522541582584381, 0.5600363612174988, -0.015649810433387756, 0.5746831893920898, 0.21593637764453888, 0.22912436723709106, -0.17783454060554504, -0.48647889494895935, -0.12721306085586548, 0.35177183151245117, 0.21829350292682648, -0.08247854560613632, -0.21620608866214752, 0.2877643406391144, 0.3367442786693573, -0.12256032228469849, -0.03572888672351837, 0.16637764871120453, -0.19160030782222748, -0.1216522753238678, -0.14636489748954773, -0.1660086065530777, -0.013038495555520058, 0.23122793436050415, -0.27122098207473755, -0.37006041407585144, 0.06008080020546913, 0.03202826529741287, -0.10579954832792282, -0.4628702402114868, 0.43355780839920044, 0.06493507325649261, 0.024106109514832497, -0.2738914489746094, 0.2926004230976105, -0.21642723679542542, 0.07362750917673111, 0.04154391214251518, 0.2999279499053955, 0.4472161829471588, 0.4638708531856537, -0.05967208370566368, 0.010904604569077492, -0.24108588695526123, 0.024537215009331703, -0.1439652293920517, 0.4624992609024048, 0.03497748449444771, 0.271282434463501, 0.13451732695102692, -0.06336189806461334, -0.03244660794734955, 0.005067291669547558, 0.10227222740650177, -0.3170354962348938, -0.15145322680473328, 0.03702849894762039, 0.15356029570102692, -0.3451307713985443, -0.1238737627863884, 0.18215589225292206, -0.25989124178886414, 0.017144225537776947, 0.9408838748931885, -0.34574127197265625, 0.05357129126787186, -0.19018518924713135, 0.010261745192110538, -0.11160142719745636, 0.443660706281662, 0.4570562541484833, 0.0764179527759552, -0.33878621459007263, -0.07781881093978882, -0.3848975896835327, 0.20200590789318085, -0.29152897000312805, 0.25985172390937805, 0.006815243978053331, 0.09227891266345978, -0.08701132237911224, 0.052169069647789, -0.27723929286003113, 0.3317890465259552, -0.34693852066993713, 0.07125817239284515, -0.07661071419715881, 0.012941272929310799, -0.11799203604459763, 0.24222739040851593, -0.11845395714044571, -0.36552703380584717, 0.34416529536247253, -0.1634911298751831, -0.1625528782606125, -0.22175151109695435, 0.2344185709953308, 0.18636982142925262, -0.12410471588373184, 0.5211456418037415, 0.1639927625656128, 0.2844230830669403, 0.06964129954576492, 0.3814980387687683, -0.06577873229980469, 0.029626790434122086, -0.36793646216392517, 0.2523971199989319, -0.04130095988512039, 0.020654475316405296, -0.21223615109920502, 0.14735905826091766, -0.04598042741417885, 0.05473918467760086, -0.06017359718680382, -0.025085244327783585, -0.21112382411956787, -0.05758151784539223, -0.17920885980129242, 0.14226435124874115, 0.0848783403635025, 0.2873151898384094, -0.056095462292432785, 0.008837594650685787, -0.380977600812912, -0.2963833808898926, 0.2829849123954773, -0.4146682620048523, -0.39064931869506836, -0.10515397787094116, -0.026661552488803864, 0.5343499779701233, -0.24056056141853333, -0.5345789194107056, 0.05040275305509567, 0.5844868421554565, 0.05054618790745735, -0.32976728677749634, 0.3089815676212311, -0.23216503858566284, 0.010188600979745388, -0.14436906576156616, 0.5861439108848572, -0.16087216138839722, -0.2709832191467285, 0.008573709987103939, -0.10084179788827896 ]
https://github.com/huggingface/datasets/issues/1825
Datasets library not suitable for huge text datasets.
Yes indeed it was added a few days ago. The code is available on master We'll do a release next week :) Feel free to install `datasets` from source to try it out though, I would love to have some feedbacks
Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions??
41
Datasets library not suitable for huge text datasets. Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions?? Yes indeed it was added a few days ago. The code is available on master We'll do a release next week :) Feel free to install `datasets` from source to try it out though, I would love to have some feedbacks
[ -0.40510427951812744, 0.13909542560577393, 0.015502669848501682, 0.29045403003692627, 0.29911482334136963, 0.007427270989865065, 0.07476843893527985, 0.3566736578941345, -0.3289947807788849, -0.0648283064365387, 0.051100097596645355, 0.06047295033931732, -0.2490893453359604, 0.1777266412973404, 0.044380784034729004, 0.08899558335542679, 0.18884696066379547, 0.15917444229125977, 0.11262931674718857, 0.134079709649086, 0.0361785814166069, -0.12296745181083679, -0.23187369108200073, 0.023854833096265793, -0.5338660478591919, -0.24752667546272278, -0.001484386157244444, -0.20429430902004242, -0.4535924792289734, -0.3168499767780304, -0.18656116724014282, 0.18781714141368866, 0.5089608430862427, 0.4989698529243469, -0.000124175421660766, -0.27661049365997314, 0.22809626162052155, -0.001814317423850298, -0.2488391399383545, 0.037592776119709015, 0.41746845841407776, -0.2963126003742218, -0.2088594287633896, -0.19176024198532104, 0.16334329545497894, -0.2845405340194702, -0.024078059941530228, -0.08121006190776825, 0.10663791745901108, 0.07948349416255951, 0.0776781365275383, 0.0891769528388977, 0.03276291862130165, 0.16114456951618195, 0.1430726945400238, 0.04208837077021599, -0.0692555159330368, 0.0685514509677887, 0.4472157955169678, 0.04107651114463806, -0.16497421264648438, 0.18081071972846985, -0.13459795713424683, -0.003542918711900711, 0.3252604305744171, -0.08419691026210785, -0.11486560851335526, -0.18453851342201233, 0.224188432097435, 0.27488401532173157, 0.5318575501441956, -0.44143813848495483, -0.26803311705589294, -0.5356892347335815, -0.1947641521692276, -0.2997778058052063, -0.03668574243783951, 0.18116027116775513, -0.022188382223248482, 0.20495669543743134, -0.43014606833457947, -0.43387481570243835, -0.13849782943725586, 0.36333686113357544, -0.21565914154052734, 0.13450132310390472, -0.13689111173152924, 0.11149605363607407, 0.18070517480373383, -0.20489917695522308, 0.10033570230007172, -0.33740487694740295, 0.012752601876854897, 0.192061185836792, -0.38827285170555115, -0.13607101142406464, -0.1989932358264923, -0.013486102223396301, 0.4718779921531677, -0.027269426733255386, -0.42557841539382935, 0.15663152933120728, -0.12290225923061371, 0.021192435175180435, 0.36214980483055115, 0.21507865190505981, -0.10231038182973862, 0.2536746859550476, 0.1884469836950302, -0.16953833401203156, -0.05735361948609352, -0.07312086224555969, -0.5236904621124268, -0.07493733614683151, 0.10816803574562073, -0.4771713614463806, -0.25287628173828125, -0.19711939990520477, -0.06836742162704468, 0.09076141566038132, -0.19434687495231628, 0.2627507150173187, 0.18459156155586243, 0.1667826622724533, -0.09955078363418579, 0.07954048365354538, -0.20992359519004822, 0.19640353322029114, -0.12868396937847137, -0.19921274483203888, 0.006611332762986422, -0.08781010657548904, -0.2628050446510315, 0.16388043761253357, 0.1636515110731125, -0.023820536211133003, 0.10449399799108505, -0.05775025114417076, 0.08453492075204849, -0.0026521305553615093, 0.146335169672966, -0.34939590096473694, -0.07232409715652466, 0.09370696544647217, -0.04088309034705162, 0.37092968821525574, -0.237840935587883, 0.036097414791584015, -0.20475630462169647, 0.37893545627593994, -0.2517659664154053, -0.3602275848388672, -0.05872252956032753, 0.0722680538892746, -0.3575668931007385, 0.028875360265374184, -0.5238497853279114, 0.3691042363643646, 0.4520558714866638, 0.08413491398096085, 0.010002409107983112, -0.10789667069911957, -0.22906935214996338, -0.015235912054777145, 0.16613340377807617, 0.1557079255580902, -0.6027975678443909, 0.03751246631145477, -0.07486870884895325, 0.10127207636833191, 0.3304007053375244, 0.7473345994949341, -0.15704302489757538, 0.375978946685791, -0.1028381735086441, 0.447592556476593, 0.14349369704723358, 0.1725682020187378, -0.5138142108917236, 0.4206913113594055, 0.004510076716542244, -0.1445610672235489, -0.006396827287971973, 0.09623107314109802, 0.3777557611465454, -0.11913120746612549, 0.1935284584760666, 0.3315507173538208, -0.06460574269294739, 0.09371031075716019, -0.3203215003013611, -0.32192331552505493, 0.1349286139011383, 0.3081052005290985, 0.1901601254940033, -0.2884480357170105, -0.01604161225259304, 0.33375874161720276, 0.15090502798557281, -0.1702379286289215, 0.37060779333114624, 0.1314389705657959, 0.22654953598976135, 0.16377222537994385, -0.008740796707570553, -0.22587543725967407, 0.14989912509918213, 0.06362539529800415, 0.11208774894475937, -0.14398477971553802, -0.042222533375024796, -0.28297728300094604, 0.127365380525589, -0.025516977533698082, 0.005588033702224493, 0.11121521890163422, -0.09919930249452591, -0.21857744455337524, -0.09508045762777328, 0.13622920215129852, -0.06907045841217041, -0.11327540874481201, -0.33143630623817444, 0.12929341197013855, -0.10116434097290039, 0.03128323331475258, 0.03718002513051033, -0.14106066524982452, 0.03658898174762726, 0.22813263535499573, -0.13172516226768494, -0.13469193875789642, 0.0014937970554456115, 0.18875162303447723, 0.015666073188185692, -0.24015136063098907, -0.25950679183006287, 0.5918118953704834, 0.24000997841358185, 0.020716780796647072, 0.24852941930294037, -0.044375255703926086, 0.04712853208184242, -0.11076050996780396, 0.05584505945444107, 0.2861936688423157, 0.08672519773244858, 0.12396746128797531, 0.004620022606104612, -0.29035747051239014, 0.08347150683403015, -0.03301483392715454, 0.19676324725151062, 0.02646234817802906, 0.27169960737228394, 0.06838257610797882, 0.30776354670524597, 0.318215012550354, -0.15976771712303162, -0.15071888267993927, 0.34792113304138184, -0.32448849081993103, 0.1942497193813324, 0.4423328638076782, -0.4264600872993469, -0.32973814010620117, 0.08587665110826492, -0.2397751361131668, 0.13288269937038422, 0.1559302806854248, 0.05243873968720436, -0.04975809529423714, 0.3660892844200134, -0.07127705961465836, 0.16526222229003906, 0.1384436935186386, 0.12987683713436127, 0.2031746506690979, 0.12044159322977066, 0.1302976757287979, -0.17254215478897095, -0.06471634656190872, 0.19561871886253357, 0.3540203273296356, -0.15271206200122833, 0.05291891098022461, -0.21625836193561554, -0.30771374702453613, -0.011040606535971165, 0.18976131081581116, -0.18026013672351837, 0.04592698812484741, 0.12236075848340988, 0.0164138525724411, 0.12563556432724, 0.055650100111961365, 0.16185717284679413, 0.36331501603126526, 0.033652856945991516, -0.3247655928134918, 0.16995777189731598, -0.09471017122268677, -0.49171745777130127, -0.03546648472547531, 0.3435527980327606, -0.33463144302368164, 0.29986080527305603, 0.21900618076324463, 0.05025419220328331, -0.31553977727890015, -0.4621922969818115, 0.017577258870005608, 0.11388832330703735, 0.22941650450229645, -0.1505289524793625, 0.0415530651807785, -0.19998599588871002, 0.16224715113639832, -0.08434522151947021, -0.1278083771467209, -0.08050304651260376, 0.07361499965190887, -0.15907497704029083, -0.21853064000606537, 0.11135222762823105, -0.030094515532255173, -0.2708161175251007, -0.18253636360168457, 0.2240135818719864, -0.1710541993379593, 0.08794920146465302, 0.01596543751657009, 0.0831061601638794, -0.014135539531707764, -0.06200215965509415, -0.14541254937648773, 0.029804777354002, -0.31281495094299316, 0.4159117341041565, 0.20498362183570862, -0.21091647446155548, -0.05610131472349167, 0.1267620325088501, -0.07173372805118561, 0.3511759042739868, -0.5438865423202515, 0.3058476150035858, -0.19194230437278748, 0.19673600792884827, -0.10464271157979965, 0.04410003870725632, 0.019037896767258644, -0.155185729265213, 0.10735592991113663, 0.12181106954813004, -0.22671176493167877, -0.23918765783309937, -0.15586811304092407, 0.34023430943489075, -0.04488150775432587, 0.3125680387020111, 0.42549893260002136, 0.5209858417510986, -0.09033911675214767, -0.16132037341594696, 0.3123968839645386, 0.15995627641677856, 0.20839256048202515, -0.3067103326320648, -0.10908092558383942, 0.2963905334472656, -0.06463783234357834, -0.1498517096042633, 0.4975775182247162, 0.14208628237247467, -0.1262379139661789, 0.24445639550685883, -0.3252081274986267, -0.05377288535237312, -0.07124791294336319, 0.2029605209827423, -0.27553170919418335, 0.21068064868450165, -0.02133077196776867, -0.17582829296588898, -0.04685182869434357, -0.37331944704055786, -0.04102291539311409, 0.15872956812381744, -0.03837725520133972, 0.2196473628282547, -0.5036863088607788, 0.2241731435060501, -0.35069677233695984, 0.17271289229393005, -0.10084082186222076, 0.3289100229740143, 0.119317926466465, 0.1923477202653885, 0.2529758810997009, 0.02959688939154148, 0.5905703902244568, 0.1286071091890335, -0.17127494513988495, -0.14723287522792816, -0.10647435486316681, -0.19701047241687775, 0.04406977817416191, -0.10640464723110199, 0.2871229350566864, 0.46266159415245056, 0.46783164143562317, -0.3716438412666321, -0.15102022886276245, -0.29315316677093506, 0.5599125623703003, -0.011181746609508991, -0.3234749734401703, -0.02116451971232891, -0.14013193547725677, -0.5439138412475586, 0.17722219228744507, 0.15547265112400055, 0.3789798617362976, 0.10985476523637772, -0.0748983845114708, -0.12852150201797485, -0.058399222791194916, 0.33759835362434387, -0.03861730545759201, 0.1393352895975113, -0.1615227460861206, 0.235115185379982, -0.20482705533504486, 0.1606554538011551, 0.5302138924598694, -0.023548651486635208, 0.13114431500434875, -0.27052241563796997, 0.015060081146657467, 0.04802778735756874, 0.40643179416656494, 0.01435338519513607, -0.13174894452095032, 0.3606284260749817, -0.272470086812973, 0.27471688389778137, -0.18692348897457123, 0.5377911329269409, 0.13218830525875092, 0.0761113241314888, -0.8546541333198547, -0.313407301902771, 0.238955557346344, 0.20963726937770844, -0.020394569262862206, 0.24075084924697876, -0.16545650362968445, -0.2896413207054138, 0.29820331931114197, 0.09519647806882858, 0.87819904088974, -0.4335547983646393, 0.314764142036438, -0.37940531969070435, 0.3414393961429596, 0.5416302680969238, -0.6066256761550903, -0.048749350011348724, -0.4083098769187927, 0.1615249514579773, 0.14426329731941223, 0.0018782343249768019, 0.033133115619421005, 0.42432525753974915, 0.041917748749256134, 0.24610988795757294, 0.11470802128314972, 0.14268219470977783, 0.023163650184869766, 0.6419771909713745, -0.04071544483304024, -0.31812435388565063, -0.13953998684883118, 0.03970969840884209, -0.2120802402496338, -0.044990651309490204, -0.2248390167951584, 0.08114179223775864, 0.06335019320249557, 0.04676520451903343, -0.29771941900253296, -0.15693679451942444, -0.10680245608091354, 0.1042611226439476, -0.03312571719288826, -0.10952715575695038, 0.5250961780548096, -0.09116744250059128, 0.24981370568275452, 0.5259618163108826, -0.18305829167366028, 0.13045759499073029, -0.3457982838153839, -0.12371456623077393, 0.17853200435638428, -0.24796077609062195, 0.0235176682472229, -0.02076016739010811, 0.05664563924074173, -0.27097639441490173, 0.1404956430196762, -0.0610765665769577, -0.17204463481903076, -0.09256397932767868, 0.530939519405365, -0.2246360182762146, -0.18552455306053162, -0.20130400359630585, 0.006534472573548555, -0.05889081954956055, 0.014048094861209393, 0.20201614499092102, -0.09097425639629364, 0.3338702917098999, -0.0031671973410993814, -0.2340923696756363, -0.15266448259353638, 0.14350028336048126, 0.06476657837629318, -0.049457937479019165, 0.41632765531539917, 0.2087785303592682, -0.16092437505722046, -0.13654403388500214, 0.36902400851249695, 0.20423363149166107, -0.13335676491260529, 0.16699162125587463, 0.21570120751857758, 0.03367422893643379, -0.05342351272702217, 0.03140052407979965, 0.1624215841293335, -0.4770175516605377, -0.021520765498280525, -0.2094077318906784, -0.4017367959022522, 0.06507391482591629, -0.06594124436378479, 0.14008665084838867, 0.09861420094966888, 0.18323522806167603, -0.12139777839183807, 0.0774238333106041, -0.14260421693325043, 0.3031952381134033, 0.07172420620918274, 0.2567867636680603, -0.2012077122926712, 0.06698156148195267, -0.2717163860797882, -0.07348725199699402, -0.13678418099880219, 0.18100371956825256, 0.08619290590286255, -0.1584147959947586, -0.13021220266819, 0.2053360790014267, 0.2879723012447357, -0.3035108745098114, 0.19582170248031616, -0.29232338070869446, -0.15716363489627838, -0.28668212890625, 0.26030170917510986, 0.2527886629104614, 0.019002504646778107, -0.20479166507720947, 0.24754971265792847, -0.1835206001996994, -0.30078259110450745, 0.10867108404636383, -0.06953941285610199, 0.16804523766040802, 0.15728971362113953, 0.3060738146305084, 0.5086445808410645, -0.12639281153678894, -0.24611762166023254, 0.2235284000635147, 0.5379694104194641, -0.139058917760849, 0.04690062254667282, -0.22401730716228485, 0.056261707097291946, 0.34316977858543396, 0.12553392350673676, 0.49190056324005127, -0.17949791252613068, -0.4391130805015564, 0.5194437503814697, 0.11382949352264404, -0.06278479844331741, -0.18756018579006195, 0.010321163572371006, -0.20737265050411224, -0.22746095061302185, 0.11333566159009933, 0.2939918339252472, 0.23187246918678284, -0.43017205595970154, -0.10731420665979385, 0.4482285976409912, 0.2221774309873581, -0.03201223164796829, 0.39895185828208923, 0.20362064242362976, -0.07288006693124771, 0.3351428806781769, 0.30686306953430176, 0.2198582887649536, 0.5268699526786804, -0.05817817524075508, 0.49225980043411255, 0.16629141569137573, 0.211673766374588, -0.22725407779216766, -0.5121083855628967, -0.211565762758255, 0.4970754384994507, 0.24008136987686157, -0.12194684892892838, -0.29912930727005005, 0.2617678940296173, 0.2839817404747009, -0.16225934028625488, -0.013266646303236485, 0.1090710237622261, -0.2722471356391907, -0.1288963258266449, -0.16766804456710815, -0.14214608073234558, 0.002421121345832944, 0.23541277647018433, -0.29570576548576355, -0.36202630400657654, -0.10987408459186554, -0.01708964630961418, -0.13449257612228394, -0.47297486662864685, 0.32922330498695374, 0.1380205899477005, -0.038465771824121475, -0.23978504538536072, 0.34103941917419434, -0.25830715894699097, 0.06377330422401428, 0.008056056685745716, 0.15921662747859955, 0.38005414605140686, 0.40693679451942444, -0.044940218329429626, -0.03948061540722847, -0.2551724314689636, 0.12697967886924744, -0.15809036791324615, 0.4713905155658722, 0.1255234032869339, 0.2445812225341797, 0.20401686429977417, -0.07577497512102127, -0.0273608285933733, 0.022505754604935646, 0.15251626074314117, -0.39257872104644775, -0.13442495465278625, -0.02899765782058239, 0.12522825598716736, -0.3083197772502899, -0.18178454041481018, 0.12923648953437805, -0.26392096281051636, 0.026808680966496468, 0.9157546758651733, -0.3334182798862457, 0.0808730199933052, -0.16991113126277924, 0.025763124227523804, -0.271990567445755, 0.4641679525375366, 0.45303207635879517, 0.09592919796705246, -0.49369099736213684, -0.10087075084447861, -0.42395099997520447, 0.23931698501110077, -0.4164297580718994, 0.2648034691810608, -0.032267723232507706, 0.09655003994703293, -0.03685159236192703, 0.08344219624996185, -0.3513624370098114, 0.4076346755027771, -0.3663592040538788, 0.029120733961462975, -0.12372276932001114, 0.11585698276758194, -0.14106066524982452, 0.15945442020893097, -0.11524529755115509, -0.4063187837600708, 0.3437710106372833, -0.21577531099319458, -0.16884468495845795, -0.13410744071006775, 0.2802429795265198, 0.1360769122838974, -0.15173646807670593, 0.4600013792514801, 0.14068864285945892, 0.23416878283023834, 0.14251840114593506, 0.29701462388038635, -0.03265312314033508, 0.15054143965244293, -0.3552689850330353, 0.18383555114269257, 0.02794891968369484, -0.00226009008474648, -0.13716743886470795, 0.2312852293252945, -0.04707883670926094, 0.0380471907556057, -0.03720930218696594, -0.08088748902082443, -0.1327134668827057, -0.07464035600423813, -0.11984320729970932, 0.15993349254131317, 0.04166341945528984, 0.3343160152435303, -0.03879157081246376, -0.03744745999574661, -0.33851534128189087, -0.2272849977016449, 0.2538478970527649, -0.41441017389297485, -0.2750644385814667, -0.14068135619163513, 0.0405467227101326, 0.6282321214675903, -0.23903167247772217, -0.5446504950523376, 0.08365869522094727, 0.5542649626731873, 0.09899675101041794, -0.2914944589138031, 0.2658553123474121, -0.1875569224357605, 0.061115119606256485, -0.12373577058315277, 0.48273858428001404, -0.13630418479442596, -0.28577283024787903, 0.07829327136278152, -0.17736981809139252 ]
https://github.com/huggingface/datasets/issues/1825
Datasets library not suitable for huge text datasets.
For information: it's now available in `datasets` 1.3.0. The 2.0 is reserved for even cooler features ;)
Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions??
17
Datasets library not suitable for huge text datasets. Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions?? For information: it's now available in `datasets` 1.3.0. The 2.0 is reserved for even cooler features ;)
[ -0.4345223009586334, 0.13323627412319183, 0.01177140325307846, 0.26482415199279785, 0.26773467659950256, 0.02027609385550022, 0.07534999400377274, 0.3607455790042877, -0.317991703748703, -0.062206316739320755, 0.03596770018339157, 0.05125785246491432, -0.25497281551361084, 0.18891140818595886, 0.0521261990070343, 0.0839582160115242, 0.18551866710186005, 0.1725190281867981, 0.11441197991371155, 0.15796072781085968, 0.022779356688261032, -0.14855410158634186, -0.253675639629364, 0.0014497501542791724, -0.5004292726516724, -0.2469414472579956, 0.0015423670411109924, -0.2171640545129776, -0.44919583201408386, -0.3404020667076111, -0.1768149882555008, 0.19938558340072632, 0.5116478204727173, 0.4627270996570587, -0.00012381775013636798, -0.28132912516593933, 0.2467758059501648, 0.0012895489344373345, -0.27234333753585815, 0.044751476496458054, 0.3876779079437256, -0.3245373070240021, -0.20082320272922516, -0.17496080696582794, 0.16089841723442078, -0.2847055196762085, 0.014890341088175774, -0.06997843086719513, 0.09651975333690643, 0.04942203685641289, 0.07792697846889496, 0.0929802879691124, 0.018718296661973, 0.13760800659656525, 0.12420674413442612, 0.03466136008501053, -0.08224689960479736, 0.05376875028014183, 0.4505402445793152, 0.049753159284591675, -0.1552136242389679, 0.17508137226104736, -0.11661247164011002, 0.009522170759737492, 0.33914485573768616, -0.11260959506034851, -0.14051149785518646, -0.18841151893138885, 0.22548775374889374, 0.29838576912879944, 0.5142066478729248, -0.42721423506736755, -0.2893548905849457, -0.5464203953742981, -0.2044091373682022, -0.3196333944797516, -0.06693093478679657, 0.17825481295585632, -0.013110814616084099, 0.20420576632022858, -0.4558197259902954, -0.4421234130859375, -0.11685577780008316, 0.3653901517391205, -0.23501381278038025, 0.1488141119480133, -0.1368505358695984, 0.11417003720998764, 0.1659151315689087, -0.21794509887695312, 0.11262670159339905, -0.3288343548774719, 0.02190982736647129, 0.19511187076568604, -0.37740758061408997, -0.15292680263519287, -0.20385923981666565, -0.035936493426561356, 0.4822555184364319, -0.016551699489355087, -0.4332744777202606, 0.15300977230072021, -0.13893063366413116, 0.029494743794202805, 0.34599387645721436, 0.204981729388237, -0.1033094972372055, 0.2640487849712372, 0.19828687608242035, -0.17529647052288055, -0.04341268911957741, -0.07846372574567795, -0.5217930674552917, -0.05833681300282478, 0.11537063121795654, -0.46767184138298035, -0.279462993144989, -0.17098048329353333, -0.07688234001398087, 0.08939953148365021, -0.16610564291477203, 0.3055477738380432, 0.17283935844898224, 0.15236100554466248, -0.103977732360363, 0.08599142730236053, -0.21915455162525177, 0.1837840974330902, -0.0974595919251442, -0.1802392601966858, 0.0022476129233837128, -0.1083153709769249, -0.23472736775875092, 0.17558322846889496, 0.1531195193529129, -0.043590251356363297, 0.1302114576101303, -0.05764675885438919, 0.05760010704398155, 0.012179792858660221, 0.16979429125785828, -0.34265363216400146, -0.07270174473524094, 0.11544302105903625, -0.023888971656560898, 0.36638814210891724, -0.2478741854429245, 0.05429650470614433, -0.20580622553825378, 0.3545791506767273, -0.23993517458438873, -0.3611774444580078, -0.045757777988910675, 0.07190511375665665, -0.34077998995780945, 0.020672105252742767, -0.5490440726280212, 0.3761829733848572, 0.42634788155555725, 0.09058411419391632, 0.011853836476802826, -0.11866851150989532, -0.24796175956726074, -0.016100849956274033, 0.17220471799373627, 0.1334877759218216, -0.5778146386146545, 0.036607399582862854, -0.06813884526491165, 0.11240926384925842, 0.30343684554100037, 0.7545217275619507, -0.15124855935573578, 0.33041560649871826, -0.09166625887155533, 0.4423213005065918, 0.1452026218175888, 0.15989546477794647, -0.5134211778640747, 0.42237162590026855, 0.03712109103798866, -0.16403065621852875, -0.012878511101007462, 0.10754252225160599, 0.3807854652404785, -0.13962043821811676, 0.18724603950977325, 0.33402255177497864, -0.06456410139799118, 0.08486198633909225, -0.27750149369239807, -0.3438345491886139, 0.13026273250579834, 0.28808706998825073, 0.1969877928495407, -0.28107529878616333, -0.009794122539460659, 0.3730158507823944, 0.13292349874973297, -0.1553366482257843, 0.36482205986976624, 0.1345093846321106, 0.19093620777130127, 0.17305997014045715, -0.034884318709373474, -0.23715005815029144, 0.14837956428527832, 0.07402992993593216, 0.10630082339048386, -0.1766887605190277, -0.009157375432550907, -0.30779027938842773, 0.1440494954586029, -0.02438381314277649, 0.03118710219860077, 0.11032748967409134, -0.1044522076845169, -0.2197159379720688, -0.08544982969760895, 0.13519954681396484, -0.10436368733644485, -0.11915756016969681, -0.3198545575141907, 0.13553977012634277, -0.08921565860509872, -0.000572086893953383, 0.0629654973745346, -0.13610775768756866, 0.04119125008583069, 0.22461089491844177, -0.1476469337940216, -0.13135913014411926, 0.021907778456807137, 0.18725983798503876, 0.018331877887248993, -0.23570498824119568, -0.2702253758907318, 0.5758529901504517, 0.2275518923997879, 0.048004765063524246, 0.20993418991565704, -0.030942538753151894, 0.035299234092235565, -0.09204394370317459, 0.04704282805323601, 0.2821460962295532, 0.10142013430595398, 0.11708995699882507, 0.03496090695261955, -0.2804766297340393, 0.10362067073583603, -0.02234596200287342, 0.19375211000442505, 0.00649109436199069, 0.25919249653816223, 0.07921954244375229, 0.3156825006008148, 0.31799718737602234, -0.18069052696228027, -0.1745757907629013, 0.35814228653907776, -0.32104164361953735, 0.2150857299566269, 0.42507311701774597, -0.4366924464702606, -0.33829614520072937, 0.0725768432021141, -0.2350008189678192, 0.10562307387590408, 0.1427418291568756, 0.07311348617076874, -0.042808789759874344, 0.36314770579338074, -0.05253145098686218, 0.1752881556749344, 0.1317138373851776, 0.1352786272764206, 0.20914465188980103, 0.12576237320899963, 0.129895880818367, -0.1594124287366867, -0.06409859657287598, 0.19195574522018433, 0.3366985619068146, -0.10904062539339066, 0.05083703622221947, -0.20874208211898804, -0.3060898184776306, 0.00045074819354340434, 0.211679607629776, -0.16400328278541565, 0.04269353672862053, 0.12512464821338654, 0.043728917837142944, 0.130649134516716, 0.0544453039765358, 0.12639214098453522, 0.3693220019340515, 0.05038611590862274, -0.30981624126434326, 0.15007591247558594, -0.05457911640405655, -0.46725016832351685, -0.037083499133586884, 0.3112080991268158, -0.3574156165122986, 0.28157567977905273, 0.20221048593521118, 0.0586501844227314, -0.31880876421928406, -0.44765594601631165, 0.021461183205246925, 0.1317872256040573, 0.20777229964733124, -0.14104589819908142, 0.04673423618078232, -0.1914009302854538, 0.16354738175868988, -0.10141381621360779, -0.10611134767532349, -0.07872840762138367, 0.06497303396463394, -0.1645178496837616, -0.19779683649539948, 0.12057232111692429, -0.002496464177966118, -0.2704383432865143, -0.19324776530265808, 0.22426381707191467, -0.15646937489509583, 0.07225629687309265, 0.02761702425777912, 0.06438308954238892, -0.025846490636467934, -0.057087816298007965, -0.1401272565126419, 0.05124293267726898, -0.3130626976490021, 0.42596226930618286, 0.20224487781524658, -0.19765299558639526, -0.07767067104578018, 0.11611881107091904, -0.0912993997335434, 0.35886332392692566, -0.526943027973175, 0.31146806478500366, -0.1990624964237213, 0.19106952846050262, -0.08568783849477768, 0.017710821703076363, 0.009399051778018475, -0.178258016705513, 0.104414202272892, 0.1252230703830719, -0.218625009059906, -0.2550843358039856, -0.15666566789150238, 0.3327914774417877, -0.03448295593261719, 0.31541207432746887, 0.46139901876449585, 0.534497082233429, -0.07024266570806503, -0.15452615916728973, 0.313111811876297, 0.17344315350055695, 0.22417639195919037, -0.33252620697021484, -0.08601208031177521, 0.26620882749557495, -0.06262534856796265, -0.11468512564897537, 0.4754682183265686, 0.14118041098117828, -0.11461568623781204, 0.2510144114494324, -0.3503870368003845, -0.024832317605614662, -0.06109977886080742, 0.17440097033977509, -0.3004295229911804, 0.23431523144245148, -0.02342064492404461, -0.17322523891925812, -0.027519986033439636, -0.38127920031547546, -0.058009326457977295, 0.1766909956932068, -0.02982182987034321, 0.2385105937719345, -0.47912347316741943, 0.25343358516693115, -0.34642401337623596, 0.1705213338136673, -0.10046222060918808, 0.3617979884147644, 0.13577893376350403, 0.18635399639606476, 0.2199888378381729, 0.02147526852786541, 0.5436991453170776, 0.12410321086645126, -0.1632367968559265, -0.17019905149936676, -0.12547063827514648, -0.20087139308452606, 0.05124915763735771, -0.106447234749794, 0.29165783524513245, 0.456651896238327, 0.47875314950942993, -0.36344921588897705, -0.13947972655296326, -0.2989521920681, 0.5648910999298096, -0.011686231009662151, -0.29516637325286865, -0.011686351150274277, -0.1437796950340271, -0.5237730145454407, 0.1901271641254425, 0.15330204367637634, 0.37185195088386536, 0.1237611472606659, -0.09318891167640686, -0.18312712013721466, -0.0919843316078186, 0.3282524347305298, -0.03005732037127018, 0.09135571122169495, -0.14281952381134033, 0.23360449075698853, -0.20974330604076385, 0.14488485455513, 0.5053815245628357, -0.03852946311235428, 0.14477790892124176, -0.2899256646633148, 0.005515772849321365, 0.06989896297454834, 0.38708505034446716, -0.031458530575037, -0.1435099095106125, 0.3864060640335083, -0.25101715326309204, 0.2598472237586975, -0.19368229806423187, 0.5484663248062134, 0.1282881647348404, 0.055166974663734436, -0.8614718317985535, -0.33652210235595703, 0.2391016036272049, 0.22780543565750122, -0.018453842028975487, 0.22788137197494507, -0.1837545484304428, -0.2924683094024658, 0.2764531373977661, 0.10327225178480148, 0.8179160356521606, -0.45558106899261475, 0.3244090676307678, -0.4055628180503845, 0.34116441011428833, 0.5398203730583191, -0.5751256942749023, -0.03653514012694359, -0.39814236760139465, 0.13558650016784668, 0.12986676394939423, 0.006697133649140596, 0.04027467221021652, 0.415039986371994, 0.07179629802703857, 0.2767035663127899, 0.1156625747680664, 0.13288936018943787, 0.008333689533174038, 0.6496944427490234, -0.07788606733083725, -0.31029537320137024, -0.13483616709709167, 0.03700493276119232, -0.19221605360507965, -0.050561852753162384, -0.22435437142848969, 0.10704103112220764, 0.1151740625500679, 0.06079964339733124, -0.30091530084609985, -0.1705036759376526, -0.1133761778473854, 0.12184277921915054, -0.03183385357260704, -0.10877355188131332, 0.5061584711074829, -0.08415361493825912, 0.24614201486110687, 0.5565768480300903, -0.17381836473941803, 0.1275271624326706, -0.3588395416736603, -0.1274367868900299, 0.1747501939535141, -0.24997299909591675, 0.026444226503372192, -0.016945483162999153, 0.09738576412200928, -0.26361650228500366, 0.153522327542305, -0.07091593742370605, -0.16016575694084167, -0.08659857511520386, 0.5369498133659363, -0.20563577115535736, -0.18716131150722504, -0.21344828605651855, 0.012140396982431412, -0.0626671090722084, 0.01025815587490797, 0.19152559340000153, -0.05729363113641739, 0.299155592918396, -0.013397306203842163, -0.24190177023410797, -0.14464455842971802, 0.14303338527679443, 0.06400184333324432, -0.04268990457057953, 0.42079925537109375, 0.18296420574188232, -0.1477908045053482, -0.12789660692214966, 0.39986085891723633, 0.20367756485939026, -0.1033184602856636, 0.18465200066566467, 0.20323579013347626, 0.029057638719677925, -0.060144100338220596, 0.04956688731908798, 0.13748693466186523, -0.49854645133018494, -0.05267629027366638, -0.21401940286159515, -0.3960345983505249, 0.06683508306741714, -0.06651531159877777, 0.14781911671161652, 0.11989802122116089, 0.15610481798648834, -0.14839009940624237, 0.07023279368877411, -0.13346244394779205, 0.30909401178359985, 0.07082901895046234, 0.2612695097923279, -0.2005293071269989, 0.0824509710073471, -0.2894152104854584, -0.059584978967905045, -0.14077867567539215, 0.17343148589134216, 0.09071245789527893, -0.15062817931175232, -0.15724095702171326, 0.20405657589435577, 0.30150479078292847, -0.28974977135658264, 0.19620466232299805, -0.27989062666893005, -0.17210505902767181, -0.3013715445995331, 0.25625964999198914, 0.25458675622940063, 0.024784671142697334, -0.20373784005641937, 0.21781328320503235, -0.18802426755428314, -0.3108053505420685, 0.11956225335597992, -0.0631849393248558, 0.14131569862365723, 0.14139370620250702, 0.32351115345954895, 0.5331249237060547, -0.11390070617198944, -0.25036269426345825, 0.21664154529571533, 0.5411875247955322, -0.16252447664737701, 0.04645388573408127, -0.19850367307662964, 0.05624823272228241, 0.3416440486907959, 0.12089903652667999, 0.4793933928012848, -0.16099408268928528, -0.4485672116279602, 0.5291870832443237, 0.10181184858083725, -0.05792229622602463, -0.18641111254692078, -0.02048446238040924, -0.18862327933311462, -0.2163291722536087, 0.10320430248975754, 0.2899164855480194, 0.25100433826446533, -0.43758976459503174, -0.12486474961042404, 0.4320603609085083, 0.23991428315639496, -0.024066584184765816, 0.4210999608039856, 0.23112688958644867, -0.09215414524078369, 0.33657196164131165, 0.3232383728027344, 0.24094727635383606, 0.5528309345245361, -0.047768037766218185, 0.5267723202705383, 0.1754159778356552, 0.19595415890216827, -0.19602809846401215, -0.5036002993583679, -0.22269847989082336, 0.4708330035209656, 0.22832940518856049, -0.1109246090054512, -0.31451040506362915, 0.2295251339673996, 0.2637506127357483, -0.14775177836418152, -0.01911761797964573, 0.11551692336797714, -0.27041035890579224, -0.18470819294452667, -0.14435024559497833, -0.1364808976650238, 0.02663872018456459, 0.26353758573532104, -0.28166210651397705, -0.35918503999710083, -0.10414130985736847, -0.033550187945365906, -0.0890955701470375, -0.4542902708053589, 0.37713372707366943, 0.15308499336242676, -0.03054925799369812, -0.2375962734222412, 0.3415534794330597, -0.25116413831710815, 0.06855824589729309, 0.013933207839727402, 0.16420716047286987, 0.37052321434020996, 0.3742660880088806, -0.04299622401595116, -0.043473001569509506, -0.2629964053630829, 0.12463118135929108, -0.1643611490726471, 0.4631352722644806, 0.11345728486776352, 0.24559561908245087, 0.21112538874149323, -0.07804761081933975, -0.015469232574105263, 0.01479506678879261, 0.1294238269329071, -0.40318578481674194, -0.16285409033298492, -0.013906708918511868, 0.12176018953323364, -0.28514564037323, -0.1575852930545807, 0.17192745208740234, -0.2431897222995758, 0.006564299110323191, 0.9193081259727478, -0.32520970702171326, 0.08081907033920288, -0.1628732979297638, 0.024912068620324135, -0.2839210629463196, 0.4645775258541107, 0.45191729068756104, 0.08232534676790237, -0.4455365240573883, -0.09147700667381287, -0.40346649289131165, 0.2238803505897522, -0.4040195941925049, 0.2532670497894287, -0.04495248571038246, 0.1031087338924408, -0.05480441078543663, 0.08098099380731583, -0.365802139043808, 0.4317953288555145, -0.3566429615020752, 0.020106663927435875, -0.07324758917093277, 0.09479247778654099, -0.1340712606906891, 0.1532263159751892, -0.11740770936012268, -0.41358786821365356, 0.3353917896747589, -0.23761244118213654, -0.16863945126533508, -0.1295074224472046, 0.2847551107406616, 0.15210793912410736, -0.17142148315906525, 0.4486648440361023, 0.1417049765586853, 0.21210156381130219, 0.14363248646259308, 0.2874588668346405, -0.023392509669065475, 0.17063508927822113, -0.34893330931663513, 0.1779574751853943, 0.005574395414441824, -0.016649827361106873, -0.14312312006950378, 0.24266210198402405, -0.018613450229167938, 0.046974945813417435, -0.06034804508090019, -0.09169329702854156, -0.12637098133563995, -0.07897105067968369, -0.1517820656299591, 0.15401972830295563, 0.05766533315181732, 0.34082674980163574, -0.048265907913446426, -0.06254737079143524, -0.31056490540504456, -0.23422296345233917, 0.22982259094715118, -0.4213119149208069, -0.2648097276687622, -0.1801576316356659, 0.015433216467499733, 0.6642012000083923, -0.22019599378108978, -0.5252717137336731, 0.10114360600709915, 0.5639667510986328, 0.09118078649044037, -0.309164822101593, 0.2561302185058594, -0.1819329410791397, 0.06292599439620972, -0.13536015152931213, 0.48065847158432007, -0.14935500919818878, -0.2951602637767792, 0.05394262820482254, -0.16822955012321472 ]
https://github.com/huggingface/datasets/issues/1825
Datasets library not suitable for huge text datasets.
Hi @alexvaca0 , 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.
Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions??
35
Datasets library not suitable for huge text datasets. Hi, I'm trying to use datasets library to load a 187GB dataset of pure text, with the intention of building a Language Model. The problem is that from the 187GB it goes to some TB when processed by Datasets. First of all, I think the pre-tokenizing step (with tokenizer.map()) is not really thought for datasets this big, but for fine-tuning datasets, as this process alone takes so much time, usually in expensive machines (due to the need of tpus - gpus) which is not being used for training. It would possibly be more efficient in such cases to tokenize each batch at training time (receive batch - tokenize batch - train with batch), so that the whole time the machine is up it's being used for training. Moreover, the pyarrow objects created from a 187 GB datasets are huge, I mean, we always receive OOM, or No Space left on device errors when only 10-12% of the dataset has been processed, and only that part occupies 2.1TB in disk, which is so many times the disk usage of the pure text (and this doesn't make sense, as tokenized texts should be lighter than pure texts). Any suggestions?? Hi @alexvaca0 , 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.4028155207633972, 0.07713928818702698, 0.008600142784416676, 0.31931576132774353, 0.30357691645622253, 0.02334943227469921, 0.030155381187796593, 0.355930894613266, -0.24996773898601532, -0.02419040910899639, 0.0388902872800827, 0.10702250897884369, -0.26298072934150696, 0.11885169893503189, 0.03471580892801285, 0.10915078967809677, 0.21070395410060883, 0.17219920456409454, 0.10670336335897446, 0.1461048424243927, 0.0033637345768511295, -0.07689905166625977, -0.23595570027828217, -0.044224053621292114, -0.4917673170566559, -0.24679645895957947, -0.0052547636441886425, -0.22569018602371216, -0.4161318242549896, -0.3108103275299072, -0.1463020294904709, 0.20579223334789276, 0.4900789260864258, 0.49806490540504456, -0.0001231332862516865, -0.26994624733924866, 0.23637241125106812, 0.018643906340003014, -0.3187195360660553, 0.05088971555233002, 0.4693203270435333, -0.35776808857917786, -0.20286047458648682, -0.20813436806201935, 0.16594181954860687, -0.21710366010665894, -0.0014257595175877213, -0.11831548064947128, 0.10756529122591019, 0.05412103980779648, 0.09700214117765427, 0.13032522797584534, 0.010550695471465588, 0.15905077755451202, 0.1015550047159195, 0.09348229318857193, -0.09404965490102768, 0.05962684750556946, 0.46318182349205017, 0.08984383940696716, -0.16768382489681244, 0.22011670470237732, -0.1535097360610962, 0.02760010026395321, 0.36304545402526855, -0.08729967474937439, -0.09161488711833954, -0.1663152277469635, 0.2746695280075073, 0.25929495692253113, 0.5688684582710266, -0.4413156807422638, -0.2612142860889435, -0.5455189347267151, -0.22192686796188354, -0.2722451388835907, 0.004418212920427322, 0.16777022182941437, -0.037592049688100815, 0.19156502187252045, -0.4412494897842407, -0.47121092677116394, -0.08853097259998322, 0.34929221868515015, -0.21838729083538055, 0.07992983609437943, -0.16633424162864685, 0.10266666114330292, 0.23827166855335236, -0.2418373078107834, 0.10281163454055786, -0.3338503837585449, 0.0022662796545773745, 0.16445820033550262, -0.3736112117767334, -0.14782516658306122, -0.21424950659275055, -0.05769401788711548, 0.42524564266204834, 0.002920598490163684, -0.41507261991500854, 0.14445236325263977, -0.12379760295152664, 0.03630940616130829, 0.35160720348358154, 0.25789356231689453, -0.09909681230783463, 0.25036853551864624, 0.19797752797603607, -0.17370446026325226, -0.01600121706724167, -0.11054862290620804, -0.5208447575569153, -0.06630036234855652, 0.13767290115356445, -0.5249603986740112, -0.2645239233970642, -0.17633330821990967, -0.08627137541770935, 0.07800403982400894, -0.0980498418211937, 0.24598269164562225, 0.18343041837215424, 0.1818474680185318, -0.07344275712966919, 0.12008364498615265, -0.1878758817911148, 0.16947107017040253, -0.1226172223687172, -0.167669877409935, 0.00435682013630867, -0.10667001456022263, -0.22870595753192902, 0.11159460991621017, 0.17005778849124908, -0.01298066321760416, 0.11933028697967529, -0.060493744909763336, 0.03899679332971573, 0.009636825881898403, 0.1425364911556244, -0.3770754039287567, -0.07478033006191254, 0.12505875527858734, -0.01624702289700508, 0.3819410502910614, -0.2452009618282318, 0.04385795444250107, -0.23105968534946442, 0.3684513568878174, -0.2714814841747284, -0.3721614480018616, -0.11704173684120178, 0.0728529766201973, -0.3259706199169159, -0.005312253721058369, -0.6098570823669434, 0.3593024015426636, 0.4154556691646576, 0.08783803135156631, -0.0540289469063282, -0.10275369137525558, -0.24953782558441162, -0.05129558593034744, 0.1633385419845581, 0.1536828577518463, -0.5558536052703857, 0.042404770851135254, -0.10500495135784149, 0.13812537491321564, 0.3448687195777893, 0.7818450927734375, -0.15406866371631622, 0.3443184494972229, -0.08373121172189713, 0.3829893171787262, 0.13972586393356323, 0.08650267124176025, -0.5390256643295288, 0.4260481595993042, 0.08055616915225983, -0.1469305008649826, 0.01657869853079319, 0.10894746333360672, 0.35082384943962097, -0.14016258716583252, 0.154942125082016, 0.31973642110824585, -0.01682225614786148, 0.09553845226764679, -0.34928032755851746, -0.3166874051094055, 0.12138748914003372, 0.3060806691646576, 0.1666433960199356, -0.3364422619342804, -0.0267377570271492, 0.37385475635528564, 0.15008357167243958, -0.12572890520095825, 0.3451296389102936, 0.1695321798324585, 0.2498047649860382, 0.17972372472286224, -0.003174923360347748, -0.21268732845783234, 0.12864923477172852, 0.09079820662736893, 0.16976238787174225, -0.19139987230300903, -0.027545874938368797, -0.2772669792175293, 0.14925870299339294, -0.016702743247151375, 0.019644595682621002, 0.10863065719604492, -0.08331727981567383, -0.21049602329730988, -0.05781831592321396, 0.1369723081588745, -0.0665685310959816, -0.1515650600194931, -0.31480059027671814, 0.14000725746154785, -0.06456641852855682, 0.023590341210365295, 0.052429333329200745, -0.11672355979681015, 0.01833454519510269, 0.20916533470153809, -0.16726802289485931, -0.1363953799009323, 0.01212276890873909, 0.19489829242229462, 0.015177024528384209, -0.21381168067455292, -0.19990019500255585, 0.5545609593391418, 0.2331966906785965, 0.059115830808877945, 0.2807883024215698, -0.0021754310000687838, 0.05380622297525406, -0.09840903431177139, 0.0032174817752093077, 0.21292629837989807, 0.08226225525140762, 0.1509799361228943, -0.012265028432011604, -0.2621985971927643, 0.12468302249908447, 0.018197352066636086, 0.23002655804157257, 0.017934858798980713, 0.2678823173046112, 0.06905918568372726, 0.3252792954444885, 0.31911060214042664, -0.14394888281822205, -0.15288421511650085, 0.3700925409793854, -0.31329596042633057, 0.21279016137123108, 0.4723604917526245, -0.4098823666572571, -0.3531782925128937, 0.07248244434595108, -0.17159467935562134, 0.1418943852186203, 0.1543637365102768, 0.0579909011721611, -0.0924886092543602, 0.38677775859832764, -0.04526617377996445, 0.20552097260951996, 0.13963492214679718, 0.11169116199016571, 0.17768117785453796, 0.13021081686019897, 0.11578669399023056, -0.16113130748271942, -0.06543881446123123, 0.17197448015213013, 0.3680228292942047, -0.11275447905063629, 0.03966652601957321, -0.20157118141651154, -0.2762773633003235, 0.011957524344325066, 0.22388744354248047, -0.15219713747501373, 0.012702148407697678, 0.09252218157052994, 0.04160264879465103, 0.14379358291625977, 0.07407406717538834, 0.2089538872241974, 0.3292376399040222, 0.008560041896998882, -0.30770617723464966, 0.11536002159118652, -0.03285854682326317, -0.4963887631893158, -0.028308916836977005, 0.3630427122116089, -0.34149372577667236, 0.2948135435581207, 0.15391430258750916, 0.07663283497095108, -0.32043957710266113, -0.403329998254776, -0.013396814465522766, 0.10266409814357758, 0.22246204316616058, -0.1516820788383484, 0.07971484214067459, -0.2505570352077484, 0.18064406514167786, -0.06579822301864624, -0.13778719305992126, -0.05744527652859688, 0.06796135008335114, -0.15129783749580383, -0.2519565224647522, 0.09811606258153915, -0.01801057532429695, -0.3014732301235199, -0.17827467620372772, 0.23983898758888245, -0.1504431813955307, 0.1131782978773117, 0.014203774742782116, 0.07040736824274063, -0.01608259789645672, -0.05724948272109032, -0.13295887410640717, 0.03183531016111374, -0.3583620488643646, 0.41020599007606506, 0.25234508514404297, -0.17545540630817413, -0.0017281464533880353, 0.1510429084300995, -0.08669440448284149, 0.2985323965549469, -0.5361637473106384, 0.24823230504989624, -0.22713224589824677, 0.17070136964321136, -0.09893709421157837, 0.0939539447426796, 0.008523358963429928, -0.14089946448802948, 0.11263751238584518, 0.13575208187103271, -0.23776350915431976, -0.24940410256385803, -0.12992723286151886, 0.3253556191921234, -0.039263103157281876, 0.3188124895095825, 0.5074320435523987, 0.4777017831802368, -0.07447517663240433, -0.11316289752721786, 0.3097052574157715, 0.1841122806072235, 0.2432100772857666, -0.3235909938812256, -0.11376475542783737, 0.25416460633277893, -0.07053762674331665, -0.13443459570407867, 0.45632249116897583, 0.1818724423646927, -0.1035488024353981, 0.259485125541687, -0.35493701696395874, -0.041493576020002365, -0.05831560119986534, 0.20229172706604004, -0.24576199054718018, 0.20871086418628693, -0.0166274756193161, -0.1609218865633011, -0.03181210532784462, -0.3627411425113678, -0.05476435646414757, 0.16779401898384094, -0.0110041294246912, 0.221793070435524, -0.4764868915081024, 0.2393997311592102, -0.399272620677948, 0.19842714071273804, -0.17302684485912323, 0.30660784244537354, 0.1419069617986679, 0.21146975457668304, 0.2595529854297638, 0.01739993318915367, 0.5492849349975586, 0.15288783609867096, -0.1475336104631424, -0.16989775002002716, -0.1421874463558197, -0.2579244077205658, 0.05508601292967796, -0.15058661997318268, 0.27999430894851685, 0.4357605278491974, 0.5038673877716064, -0.3647417724132538, -0.2012864500284195, -0.33973607420921326, 0.5800445675849915, -0.04805683717131615, -0.29071617126464844, -0.02679779753088951, -0.2180371880531311, -0.5310134291648865, 0.1750025600194931, 0.18727396428585052, 0.3673221468925476, 0.1741117238998413, -0.058279022574424744, -0.16146574914455414, -0.07038828730583191, 0.3420434594154358, -0.04643988981842995, 0.1844160407781601, -0.19685126841068268, 0.2335069626569748, -0.21284621953964233, 0.11891008913516998, 0.5117976665496826, -0.04240678623318672, 0.07314933836460114, -0.2060352861881256, -0.003742460859939456, 0.05004354938864708, 0.3726009130477905, -0.03304862603545189, -0.14935633540153503, 0.31448841094970703, -0.2959533929824829, 0.27986863255500793, -0.21720966696739197, 0.4888463318347931, 0.1572156846523285, 0.09786803275346756, -0.7616371512413025, -0.3631925582885742, 0.23610113561153412, 0.24650421738624573, -0.022233452647924423, 0.19518880546092987, -0.1537143588066101, -0.2862217128276825, 0.3004184663295746, 0.11055593937635422, 0.8260050415992737, -0.46864646673202515, 0.2963404059410095, -0.3631168007850647, 0.31059202551841736, 0.501031756401062, -0.6091915965080261, -0.03217862546443939, -0.3963601291179657, 0.13955463469028473, 0.15462075173854828, 0.008651536889374256, 0.045843686908483505, 0.40683284401893616, 0.039876848459243774, 0.30783823132514954, 0.10454550385475159, 0.09896781295537949, -0.013291912153363228, 0.6598170399665833, -0.10081637650728226, -0.31766897439956665, -0.15282225608825684, 0.06033335626125336, -0.22921474277973175, -0.04829277843236923, -0.1904267966747284, 0.09848175942897797, 0.11047707498073578, 0.04459366947412491, -0.30242419242858887, -0.21831174194812775, -0.1078222468495369, 0.14032229781150818, -0.030980300158262253, -0.09606603533029556, 0.4986231327056885, -0.002137546194717288, 0.20628204941749573, 0.5608212351799011, -0.16030198335647583, 0.15735581517219543, -0.3864058256149292, -0.0873466208577156, 0.18494629859924316, -0.19999833405017853, -0.04105274751782417, -0.05678880214691162, 0.0958373099565506, -0.307746559381485, 0.11384408175945282, -0.06882564723491669, -0.15528947114944458, -0.08213970065116882, 0.4945066273212433, -0.17613686621189117, -0.2396707832813263, -0.24251611530780792, -0.023990092799067497, -0.059067968279123306, 0.026395292952656746, 0.2346213310956955, -0.07679581642150879, 0.3747401833534241, -0.030219990760087967, -0.22053511440753937, -0.12492263317108154, 0.13245965540409088, 0.0872415155172348, -0.03430013358592987, 0.4078717529773712, 0.14042648673057556, -0.1649450808763504, -0.15308399498462677, 0.4082043170928955, 0.1247069388628006, -0.12890036404132843, 0.21056734025478363, 0.23442493379116058, 0.008898775093257427, -0.0501609742641449, 0.003025680547580123, 0.175215482711792, -0.5009043216705322, -0.09188397973775864, -0.18051667511463165, -0.39876946806907654, 0.0736566036939621, -0.045993372797966, 0.1356542706489563, 0.12003839761018753, 0.061237987130880356, -0.13960298895835876, 0.06080281734466553, -0.15730953216552734, 0.34859615564346313, 0.07973422855138779, 0.2396012544631958, -0.22430413961410522, 0.03984444588422775, -0.2172420173883438, -0.09722687304019928, -0.12677064538002014, 0.1385207325220108, 0.09393978118896484, -0.16506750881671906, -0.1413882076740265, 0.18792341649532318, 0.2528235614299774, -0.26733431220054626, 0.18794700503349304, -0.286152184009552, -0.15805338323116302, -0.34908705949783325, 0.21930287778377533, 0.2547701299190521, 0.02225383371114731, -0.1858411282300949, 0.21628285944461823, -0.20886225998401642, -0.28591230511665344, 0.11250410228967667, -0.06780510395765305, 0.1309930384159088, 0.14808112382888794, 0.31666693091392517, 0.5489241480827332, -0.1366276741027832, -0.2980538308620453, 0.19850149750709534, 0.5358872413635254, -0.1197689026594162, 0.034727420657873154, -0.20658928155899048, 0.05749804526567459, 0.3748183846473694, 0.10818792879581451, 0.4812157452106476, -0.16833320260047913, -0.4468157887458801, 0.49477073550224304, 0.12897466123104095, -0.05712699145078659, -0.24768921732902527, 0.002982240868732333, -0.18063564598560333, -0.25332966446876526, 0.0809934213757515, 0.3137272596359253, 0.20142140984535217, -0.4066844582557678, -0.10126421600580215, 0.5237569808959961, 0.1653323471546173, 0.0029215491376817226, 0.4272448420524597, 0.22437073290348053, -0.11267399042844772, 0.31663376092910767, 0.2939409017562866, 0.23376837372779846, 0.5904650092124939, -0.07540108263492584, 0.5070327520370483, 0.21955808997154236, 0.19995518028736115, -0.25414344668388367, -0.4688100814819336, -0.21258816123008728, 0.4607968330383301, 0.20106440782546997, -0.10692369192838669, -0.3281902074813843, 0.23881033062934875, 0.22325372695922852, -0.16921058297157288, -0.05010676011443138, 0.07953380048274994, -0.2972470223903656, -0.19670246541500092, -0.04977438971400261, -0.09385346621274948, 0.03154933080077171, 0.23995430767536163, -0.29300010204315186, -0.39100271463394165, -0.143805593252182, -0.009444511495530605, -0.10312777012586594, -0.3992465138435364, 0.34581199288368225, 0.1379222720861435, -0.03306092321872711, -0.22056631743907928, 0.3262319564819336, -0.24200482666492462, 0.07786674052476883, -0.030384723097085953, 0.14177578687667847, 0.39251846075057983, 0.3610641658306122, -0.04226966202259064, -0.04854530468583107, -0.27114492654800415, 0.14921991527080536, -0.1828678548336029, 0.4642487168312073, 0.06104438751935959, 0.2757780849933624, 0.18165938556194305, -0.055962976068258286, -0.03373570367693901, -0.026884591206908226, 0.12356963008642197, -0.33648058772087097, -0.1484847515821457, -0.021715596318244934, 0.08024147897958755, -0.29114052653312683, -0.14841870963573456, 0.14952905476093292, -0.24760887026786804, -0.03564867749810219, 0.8947805166244507, -0.2939738631248474, 0.07426216453313828, -0.1504417508840561, 0.03623678907752037, -0.2652696371078491, 0.431939959526062, 0.4181501269340515, 0.004570731893181801, -0.47419124841690063, -0.09209861606359482, -0.46547847986221313, 0.1554793119430542, -0.3860725164413452, 0.2582816183567047, -0.0038844547234475613, 0.10885865241289139, -0.04330585151910782, 0.041787631809711456, -0.3536682426929474, 0.4079417884349823, -0.33832696080207825, -0.012624368071556091, -0.11600962281227112, 0.13264375925064087, -0.1304858922958374, 0.14579224586486816, -0.06970810145139694, -0.42477163672447205, 0.3027372360229492, -0.22064590454101562, -0.16164454817771912, -0.13892243802547455, 0.32901206612586975, 0.13594728708267212, -0.08470787853002548, 0.4330040514469147, 0.14649058878421783, 0.1933506578207016, 0.1440923660993576, 0.23000194132328033, -0.010186288505792618, 0.16640794277191162, -0.3035311996936798, 0.16409680247306824, 0.013509313575923443, 0.03175141289830208, -0.18384931981563568, 0.25697609782218933, -0.03700019419193268, 0.06747885793447495, -0.06181798130273819, -0.07447883486747742, -0.11719724535942078, -0.0723751038312912, -0.10054795444011688, 0.15523479878902435, 0.06508880108594894, 0.32757651805877686, -0.03248228877782822, -0.05943664535880089, -0.38261061906814575, -0.22084224224090576, 0.22810234129428864, -0.36162978410720825, -0.291425883769989, -0.15027448534965515, 0.042075686156749725, 0.6636845469474792, -0.1947212964296341, -0.5574437975883484, 0.09418988972902298, 0.5367163419723511, 0.09903441369533539, -0.31794023513793945, 0.2728795111179352, -0.17798392474651337, 0.057639189064502716, -0.08851677924394608, 0.5082885026931763, -0.1583695262670517, -0.30042943358421326, 0.06396406143903732, -0.15440723299980164 ]
https://github.com/huggingface/datasets/issues/1821
Provide better exception message when one of many files results in an exception
Hi! Thank you for reporting this issue. I agree that the information about the exception should be more clear and explicit. I could take on this issue. On the meantime, as you can see from the exception stack trace, HF Datasets uses pandas to read the CSV files. You can pass arguments to `pandas.read_csv` by passing additional keyword arguments to `load_dataset`. For example, you may find useful this argument: - `error_bad_lines` : bool, default True Lines with too many fields (e.g. a csv line with too many commas) will by default cause an exception to be raised, and no DataFrame will be returned. If False, then these “bad lines” will be dropped from the DataFrame that is returned. You could try: ```python datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files), error_bad_lines=False) ```
I find when I process many files, i.e. ``` train_files = glob.glob('rain*.csv') validation_files = glob.glob(validation*.csv') datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files)) ``` I sometimes encounter an error due to one of the files being misformed (i.e. no data, or a comma in a field that isn't quoted, etc). For example, this is the tail of an exception which I suspect is due to a stray comma. > File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read > File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory > File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows > File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows > File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error > pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields in line 559, saw 3 It would be nice if the exception trace contained the name of the file being processed (I have 250 separate files!)
129
Provide better exception message when one of many files results in an exception I find when I process many files, i.e. ``` train_files = glob.glob('rain*.csv') validation_files = glob.glob(validation*.csv') datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files)) ``` I sometimes encounter an error due to one of the files being misformed (i.e. no data, or a comma in a field that isn't quoted, etc). For example, this is the tail of an exception which I suspect is due to a stray comma. > File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read > File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory > File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows > File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows > File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error > pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields in line 559, saw 3 It would be nice if the exception trace contained the name of the file being processed (I have 250 separate files!) Hi! Thank you for reporting this issue. I agree that the information about the exception should be more clear and explicit. I could take on this issue. On the meantime, as you can see from the exception stack trace, HF Datasets uses pandas to read the CSV files. You can pass arguments to `pandas.read_csv` by passing additional keyword arguments to `load_dataset`. For example, you may find useful this argument: - `error_bad_lines` : bool, default True Lines with too many fields (e.g. a csv line with too many commas) will by default cause an exception to be raised, and no DataFrame will be returned. If False, then these “bad lines” will be dropped from the DataFrame that is returned. You could try: ```python datasets = load_dataset("csv", data_files=dict(train=train_files, validation=validation_files), error_bad_lines=False) ```
[ -0.10873328149318695, -0.419031023979187, 0.007515457924455404, 0.2815207540988922, 0.18453562259674072, 0.163563072681427, 0.14092233777046204, 0.39342910051345825, 0.22628828883171082, 0.2882850468158722, 0.2727551758289337, -0.21747459471225739, -0.05892138183116913, -0.27146777510643005, -0.24078507721424103, -0.16196875274181366, 0.08607470989227295, 0.12357861548662186, 0.2567388117313385, -0.040772695094347, -0.04355746880173683, 0.1729317605495453, 0.11452477425336838, 0.2511814832687378, -0.4897434413433075, -0.27691590785980225, -0.31725287437438965, 0.38175567984580994, 0.21667110919952393, -0.5677111744880676, 0.00015110569074749947, 0.031057970598340034, 0.10030394792556763, 0.5251941084861755, -0.00011578619887586683, -0.15041707456111908, 0.15018674731254578, 0.0271880105137825, -0.3778838813304901, -0.11167468875646591, -0.18566587567329407, -0.687727689743042, -0.02415601909160614, -0.28133001923561096, 0.3580896854400635, -0.036670636385679245, 0.24455209076404572, -0.15909546613693237, 0.3761567175388336, 0.35480019450187683, 0.09479524195194244, -0.16531191766262054, 0.258282870054245, -0.0023035763297230005, 0.3424381911754608, 0.1431555449962616, 0.06695305556058884, 0.26457807421684265, 0.31794968247413635, -0.4284517765045166, -0.22579677402973175, 0.06724671274423599, -0.21006035804748535, 0.060488443821668625, 0.07222629338502884, 0.05477682873606682, 0.3765803277492523, -0.17145618796348572, -0.22164015471935272, 0.40124449133872986, 0.2046247124671936, -0.14465098083019257, -0.5563560724258423, -0.6639544367790222, 0.18680216372013092, -0.2990677058696747, -0.0956105887889862, 0.3052101731300354, -0.22465607523918152, 0.11646799743175507, 0.34119877219200134, -0.1564716249704361, -0.36960211396217346, -0.06565026938915253, -0.0943436548113823, -0.1774507462978363, 0.11633333563804626, -0.06657236069440842, 0.07953941076993942, -0.030101684853434563, -0.22959180176258087, -0.02440064027905464, -0.14052464067935944, -0.06595627218484879, -0.5154404044151306, -0.06112440302968025, 0.13987267017364502, -0.5946632027626038, 0.2344190627336502, -0.3872511684894562, 0.34230807423591614, 0.12680864334106445, -0.08760839700698853, 0.3240610361099243, 0.36730366945266724, -0.18026447296142578, 0.04465172439813614, -0.07358916103839874, 0.45881837606430054, 0.09755595028400421, -0.12863877415657043, -0.17862555384635925, 0.05804770439863205, -0.2865336835384369, 0.01318372692912817, 0.49159061908721924, 0.09726989269256592, -0.24222633242607117, -0.5625758171081543, 0.1740463674068451, -0.2998233735561371, -0.12950004637241364, -0.10190730541944504, 0.38631147146224976, -0.14914074540138245, 0.2941465377807617, -0.07184139639139175, 0.0743073970079422, 0.10585808008909225, -0.3490159809589386, 0.01900262013077736, 0.09550702571868896, -0.13098865747451782, 0.1971980780363083, -0.1066795364022255, 0.04265285283327103, -0.10532733052968979, 0.21252800524234772, 0.1612877994775772, -0.19581374526023865, -0.02666637673974037, -0.42236605286598206, -0.01230598147958517, 0.1347547471523285, 0.036087196320295334, 0.2787168323993683, 0.11800728738307953, -0.19979171454906464, -0.015529386699199677, 0.03909209370613098, -0.5052169561386108, -0.4055269956588745, -0.15163658559322357, -0.019064126536250114, 0.22585992515087128, 0.2026078999042511, -0.11846037954092026, 0.254349023103714, -0.06530100852251053, -0.11490349471569061, -0.09611864387989044, -0.11684928089380264, 0.2591298222541809, -0.31468498706817627, 0.074473075568676, 0.5779365301132202, -0.3668697476387024, 0.28352582454681396, -0.15324947237968445, 0.00716741755604744, 0.30141037702560425, 0.5016705989837646, -0.2213495820760727, 0.39205750823020935, -0.3043752610683441, 0.22149139642715454, 0.021441595628857613, -0.24104000627994537, 0.06961286813020706, 0.5922529101371765, -0.0995073914527893, 0.33846527338027954, 0.4496507942676544, -0.054826363921165466, 0.02993214875459671, -0.13199806213378906, 0.23141413927078247, 0.10583370178937912, -0.2101556807756424, 0.11931034922599792, -0.13838641345500946, -0.01648804359138012, 0.058639902621507645, -0.08800414949655533, -0.04579305648803711, -0.16987209022045135, 0.32144588232040405, -0.17177973687648773, 0.6836058497428894, -0.20084284245967865, -0.19860348105430603, 0.32708072662353516, 0.3706178665161133, 0.1801685243844986, -0.3365703225135803, 0.10813890397548676, -0.14339251816272736, -0.05629437789320946, -0.0956457182765007, -0.040631070733070374, -0.30023884773254395, -0.38443079590797424, 0.04820806160569191, -0.18805544078350067, 0.11391553282737732, 0.042136747390031815, 0.09093832969665527, 0.11649584025144577, -0.2879977822303772, -0.11917203664779663, 0.12674418091773987, 0.42157289385795593, -0.3311348855495453, 0.2209107130765915, 0.2074861228466034, 0.040895793586969376, -0.12848155200481415, -0.09508077800273895, 0.1966288983821869, 0.01051797904074192, 0.3892310857772827, -0.23856674134731293, -0.04539110139012337, 0.43327033519744873, 0.08576817065477371, -0.06951290369033813, -0.005844071041792631, 0.008136401884257793, 0.16192395985126495, 0.15542595088481903, -0.20694276690483093, -0.10828866809606552, -0.20729760825634003, 0.015207553282380104, -0.16005030274391174, 0.15278267860412598, 0.18033863604068756, 0.18122170865535736, 0.13556058704853058, 0.0601343959569931, 0.19992145895957947, 0.08419620990753174, 0.2385481595993042, -0.018099915236234665, 0.04095567390322685, -0.188099667429924, -0.1225956529378891, -0.0814206525683403, -0.5105943083763123, -0.06674265116453171, 0.39190489053726196, -0.0359763465821743, 0.10422899574041367, 0.36445069313049316, 0.26093795895576477, 0.0450894869863987, 0.4243873357772827, 0.20095916092395782, 0.30291748046875, 0.27374911308288574, -0.16683439910411835, -0.12214674800634384, -0.24034614861011505, -0.053033024072647095, 0.15583334863185883, 0.2600552439689636, -0.07535166293382645, 0.28113943338394165, -0.09132401645183563, 0.17306017875671387, -0.001069113495759666, -0.5670698881149292, -0.0049572112038731575, 0.19335076212882996, -0.413592666387558, 0.11676137894392014, -0.32867249846458435, -0.45252376794815063, -0.36855265498161316, 0.01419944129884243, -0.10776105523109436, -0.28839144110679626, -0.008144533261656761, 0.1077219694852829, -0.17181727290153503, -0.08190185576677322, 0.0299165491014719, 0.1688547432422638, 0.03493155911564827, 0.2562253177165985, -0.07613293826580048, 0.10026295483112335, -0.11777212470769882, -0.13308404386043549, 0.36974087357521057, -0.13960318267345428, 0.0051859659142792225, -0.00982905924320221, -0.23862606287002563, -0.36819881200790405, 0.08678481727838516, 0.019446417689323425, -0.026783863082528114, -0.11940721422433853, 0.24499920010566711, 0.39231568574905396, -0.12224200367927551, -0.5848972201347351, 0.12954454123973846, 0.011956417001783848, 0.018837744370102882, 0.016407685354351997, 0.1567733734846115, 0.043900903314352036, -0.03458458557724953, -0.12335421144962311, -0.18966908752918243, -0.4294608533382416, 0.13023163378238678, -0.4879537522792816, 0.3233163356781006, 0.2519037127494812, 0.22060778737068176, 0.11078858375549316, -0.05915534868836403, 0.3506517708301544, 0.29630333185195923, -0.2689560353755951, 0.10747836530208588, -0.1403616964817047, -0.1288824826478958, 0.012332825921475887, 0.05996984243392944, -0.1671210527420044, 0.15417148172855377, -0.48592087626457214, -0.27442142367362976, -0.07205966860055923, -0.08106879889965057, -0.17908108234405518, 0.04217644780874252, -0.0532374233007431, 0.042530544102191925, -0.13845376670360565, 0.15401305258274078, -0.05461435765028, -0.08606256544589996, 0.0819198414683342, 0.551102340221405, -0.1832883358001709, 0.3804512619972229, 0.2542593777179718, 0.4371028244495392, 0.07995818555355072, 0.23485341668128967, 0.34830576181411743, 0.1514682173728943, 0.22430703043937683, 0.41641655564308167, -0.08178823441267014, 0.06724738329648972, -0.41606074571609497, -0.14379413425922394, 0.06334815919399261, -0.0692756250500679, 0.03549327701330185, 0.08474867790937424, -0.15078496932983398, -0.32049980759620667, -0.44654223322868347, 0.2643261253833771, -0.33874309062957764, 0.0958346575498581, -0.19782701134681702, -0.22514589130878448, 0.15198925137519836, 0.1821349710226059, 0.19942812621593475, 0.3629800081253052, 0.45808228850364685, -0.03209318593144417, 0.404933899641037, -0.47843003273010254, -0.2203935831785202, 0.2758816182613373, 0.12890423834323883, 0.4157724678516388, -0.22989360988140106, 0.2235715091228485, -0.13019880652427673, 0.018821803852915764, 0.8039564490318298, -0.26204484701156616, -0.3299182653427124, -0.015431000851094723, 0.06815452128648758, 0.13365033268928528, -0.15782852470874786, -0.17999519407749176, 0.4455316662788391, 0.26539847254753113, 0.31161656975746155, -0.4177493751049042, -0.25243237614631653, -0.05843280628323555, 0.4364772140979767, -0.01852557063102722, 0.04299088194966316, -0.09980369359254837, 0.010228876955807209, -0.2890797555446625, 0.23860670626163483, 0.2925148606300354, -0.013691030442714691, -0.016936173662543297, -0.207802876830101, -0.007667715661227703, -0.047965921461582184, 0.43197938799858093, 0.10462174564599991, 0.12748335301876068, -0.3237052261829376, -0.08900503814220428, -0.05136454850435257, 0.42598453164100647, 0.8350529670715332, 0.2568817138671875, -0.4463803470134735, -0.40043339133262634, -0.026701107621192932, -0.11829216778278351, 0.6949509382247925, 0.5460357069969177, 0.0011484281858429313, 0.3498137891292572, -0.20617137849330902, 0.16298064589500427, -0.0017570062773302197, 0.24050138890743256, 0.4419853687286377, 0.24513892829418182, -0.5271655917167664, -0.2777048349380493, -0.014318959787487984, 0.2728556990623474, -0.15277723968029022, 0.2488194853067398, 0.2822415232658386, -0.3482762575149536, 0.44818219542503357, -0.21800455451011658, 0.9202814102172852, -0.1081000566482544, 0.17698322236537933, -0.2334660142660141, -0.23552827537059784, 0.4540659487247467, -0.412684828042984, 0.24603748321533203, -0.3492022454738617, -0.47421345114707947, -0.11003261804580688, 0.03650541231036186, 0.36725306510925293, 0.3979191780090332, -0.09535645693540573, 0.4710980951786041, -0.0768578052520752, -0.059471458196640015, -0.13573001325130463, 0.4952113926410675, -0.08080800622701645, -0.20989148318767548, -0.46400338411331177, -0.034216441214084625, 0.05775538831949234, -0.1429518312215805, -0.0774758830666542, -0.26875850558280945, 0.15365025401115417, -0.3202185332775116, -0.5534132719039917, -0.27389588952064514, -0.12386678159236908, 0.05200651288032532, -0.10654746741056442, -0.2890204191207886, 0.24391408264636993, 0.06017734482884407, 0.017091890797019005, 0.2996911108493805, 0.07487839460372925, 0.025002440437674522, -0.15568937361240387, 0.008694018237292767, -0.2661747634410858, -0.253412663936615, 0.4243941605091095, 0.2638281285762787, -0.14765729010105133, 0.3652549684047699, -0.19351443648338318, -0.3234775960445404, 0.17945559322834015, 0.04007161408662796, 0.000788352801464498, 0.11525284498929977, -0.03819599375128746, -0.2317102551460266, -0.23588250577449799, -0.242025226354599, 0.08617542684078217, 0.20917059481143951, -0.18112370371818542, 0.3741355836391449, -0.08255700021982193, -0.2004748284816742, -0.0525820218026638, -0.0787113830447197, -0.42789074778556824, -0.09174098074436188, 0.24468503892421722, -0.059280991554260254, -0.1956135779619217, -0.12461994588375092, 0.09444641321897507, 0.1489356905221939, -0.045698825269937515, 0.1569080948829651, -0.03892747685313225, 0.07424253225326538, 0.01402515172958374, -0.13127484917640686, 0.46645715832710266, 0.13074153661727905, -0.23548683524131775, -0.3894791901111603, -0.30471694469451904, -0.0004176766087766737, 0.03125208243727684, 0.3860534131526947, 0.07688011229038239, 0.16960221529006958, -0.022142622619867325, 0.21605877578258514, -0.20958374440670013, -0.1860387921333313, -0.1528153270483017, -0.0540541335940361, -0.1907157301902771, 0.29868587851524353, 0.05571858212351799, -0.046552419662475586, 0.07030797749757767, 0.2521034777164459, 0.36892107129096985, -0.04730342701077461, -0.0336495004594326, 0.15817730128765106, -0.029781896620988846, 0.19150139391422272, 0.20680560171604156, -0.2573685944080353, 0.25549599528312683, -0.25445234775543213, -0.00626501115038991, 0.22627592086791992, 0.0535787008702755, 0.11881892383098602, 0.08794913440942764, 0.023584870621562004, -0.18652746081352234, 0.008752338588237762, -0.11537932604551315, 0.29382145404815674, 0.3038094937801361, 0.18858005106449127, -0.19784560799598694, -0.07137985527515411, 0.160459503531456, 0.20744875073432922, -0.12342950701713562, -0.07355031371116638, 0.11112852394580841, 0.12114880234003067, -0.48665669560432434, 0.35095250606536865, 0.26371175050735474, 0.1089421808719635, -0.06536983698606491, 0.09641319513320923, 0.35620421171188354, 0.085420161485672, -0.035314224660396576, -0.14071375131607056, 0.048770781606435776, -0.3552120625972748, -0.0006587628740817308, 0.26934874057769775, 0.2658033072948456, -0.1856258660554886, -0.14219217002391815, -0.09039387851953506, 0.3831523358821869, 0.16088484227657318, 0.011351645924150944, 0.33259233832359314, 0.04840995371341705, 0.015184176154434681, 0.1616116613149643, -0.08125533163547516, 0.42153018712997437, 0.39436769485473633, -0.10595367103815079, -0.13367269933223724, 0.04228109121322632, -0.25661271810531616, -0.2990856170654297, -0.3335375189781189, 0.33337321877479553, 0.12330024689435959, -0.20083390176296234, -0.20570848882198334, 0.15581992268562317, 0.5819082856178284, -0.32555216550827026, -0.16984593868255615, 0.09324304014444351, 0.015197722241282463, -0.12968729436397552, 0.1355934888124466, 0.25393378734588623, 0.11881381273269653, -0.11877461522817612, -0.3039390444755554, 0.16714812815189362, -0.14795324206352234, 0.12355820089578629, -0.011366257444024086, 0.27262169122695923, -0.042907096445560455, -0.1298946887254715, 0.13857455551624298, 0.5868183374404907, -0.24821850657463074, -0.11099543422460556, 0.25991305708885193, -0.12284078449010849, 0.0991806760430336, -0.19525489211082458, 0.6805847883224487, 0.39618733525276184, 0.20241445302963257, -0.21393083035945892, -0.21393351256847382, 0.14381453394889832, 0.0880250483751297, -0.2117612212896347, -0.22782282531261444, -0.17335699498653412, 0.29313236474990845, 0.059640198945999146, -0.06008309870958328, 0.17216236889362335, 0.2266809642314911, 0.04937656223773956, -0.10900624841451645, -0.07340200990438461, 0.05932775139808655, -0.2405635118484497, -0.13252519071102142, -0.1790391206741333, -0.27290698885917664, -0.21470575034618378, 0.4603159725666046, -0.28891873359680176, 0.18286114931106567, 0.19954665005207062, 0.06629980355501175, 0.1559033989906311, 0.059111982583999634, 0.4475530982017517, 0.2244103103876114, -0.41791462898254395, 0.087903693318367, -0.8058603405952454, -0.19655436277389526, -0.13321281969547272, 0.035321079194545746, 0.10432475805282593, 0.07072730362415314, -0.11796010285615921, -0.1067902147769928, 0.34421953558921814, 0.03144156560301781, 0.17978505790233612, 0.2814745306968689, -0.44111454486846924, -0.18659232556819916, -0.2060503363609314, -0.04184284806251526, -0.07269050180912018, -0.0307981725782156, 0.2907051146030426, 0.31992533802986145, 0.012296261265873909, -0.1926458179950714, 0.0879676565527916, -0.015739869326353073, 0.12236715853214264, 0.17414098978042603, 0.015471233986318111, 0.4901064336299896, -0.2843928039073944, -0.2433398813009262, 0.17567473649978638, 0.052633192390203476, -0.24112874269485474, 0.22133219242095947, 0.09033167362213135, 0.2468906193971634, -0.09079643338918686, -0.31451502442359924, -0.29641836881637573, 0.35457345843315125, 0.16742290556430817, -0.15754751861095428, -0.264547199010849, 0.4259009063243866, 0.007690367754548788, -0.03806719928979874, -0.011122455820441246, -0.01759541966021061, 0.0060376692563295364, 0.15183377265930176, -0.2819746434688568, -0.33542269468307495, 0.36314746737480164, 0.1472555249929428, -0.02156161703169346, -0.27794408798217773, 0.501821756362915, -0.126455619931221, 0.4052022397518158, -0.3974803388118744, -0.34267458319664, 0.30265122652053833, 0.2451993227005005, -0.5436036586761475, -0.13637840747833252, 0.04926019534468651, 0.07480741292238235, -0.016050808131694794, 0.1413266658782959, 0.15784277021884918, -0.2588271200656891, 0.25866442918777466, -0.1373971402645111 ]
https://github.com/huggingface/datasets/issues/1818
Loading local dataset raise requests.exceptions.ConnectTimeout
Hi ! Thanks for reporting. This was indeed a bug introduced when we moved the `json` dataset loader inside the `datasets` package (before that, the `json` loader was fetched online, as all the other dataset scripts). This should be fixed on master now. Feel free to install `datasets` from source to try it out. The fix will be available in the next release of `datasets` in a few days
Load local dataset: ``` dataset = load_dataset('json', data_files=["../../data/json.json"]) train = dataset["train"] print(train.features) train1 = train.map(lambda x: {"labels": 1}) print(train1[:2]) ``` but it raised requests.exceptions.ConnectTimeout: ``` /Users/littlely/myvirtual/tf2/bin/python3.7 /Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py Traceback (most recent call last): File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 167, in _new_conn % (self.host, self.timeout), urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, 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/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py", line 12, in <module> dataset = load_dataset('json', data_files=["../../data/json.json"]) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 591, in load_dataset path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 263, in prepare_module head_hf_s3(path, filename=name, dataset=dataset, max_retries=download_config.max_retries) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 232, in head_hf_s3 max_retries=max_retries, File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 523, in http_head max_retries=max_retries, File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 458, in _request_with_retry raise err File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 454, in _request_with_retry response = requests.request(verb.upper(), url, **params) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 504, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)')) Process finished with exit code 1 ``` Why it want to connect a remote url when I load local datasets, and how can I fix it?
69
Loading local dataset raise requests.exceptions.ConnectTimeout Load local dataset: ``` dataset = load_dataset('json', data_files=["../../data/json.json"]) train = dataset["train"] print(train.features) train1 = train.map(lambda x: {"labels": 1}) print(train1[:2]) ``` but it raised requests.exceptions.ConnectTimeout: ``` /Users/littlely/myvirtual/tf2/bin/python3.7 /Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py Traceback (most recent call last): File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connection.py", line 167, in _new_conn % (self.host, self.timeout), urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, 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/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/littlely/projects/python_projects/pytorch_learning/nlp/dataset/transformers_datasets.py", line 12, in <module> dataset = load_dataset('json', data_files=["../../data/json.json"]) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 591, in load_dataset path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/load.py", line 263, in prepare_module head_hf_s3(path, filename=name, dataset=dataset, max_retries=download_config.max_retries) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 232, in head_hf_s3 max_retries=max_retries, File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 523, in http_head max_retries=max_retries, File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 458, in _request_with_retry raise err File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 454, in _request_with_retry response = requests.request(verb.upper(), url, **params) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/Users/littlely/myvirtual/tf2/lib/python3.7/site-packages/requests/adapters.py", line 504, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/json/json.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1181e9940>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)')) Process finished with exit code 1 ``` Why it want to connect a remote url when I load local datasets, and how can I fix it? Hi ! Thanks for reporting. This was indeed a bug introduced when we moved the `json` dataset loader inside the `datasets` package (before that, the `json` loader was fetched online, as all the other dataset scripts). This should be fixed on master now. Feel free to install `datasets` from source to try it out. The fix will be available in the next release of `datasets` in a few days
[ -0.08766587823629379, -0.3096548616886139, -0.07478293776512146, 0.2496919184923172, 0.31517961621284485, 0.08913826942443848, 0.3149230480194092, 0.28854435682296753, -0.14675427973270416, 0.05681509152054787, -0.04697635769844055, 0.35534051060676575, 0.06246594339609146, -0.07246018946170807, -0.007479859050363302, -0.35710394382476807, -0.1442813128232956, 0.08389359712600708, -0.047547467052936554, -0.1543692946434021, -0.25298798084259033, 0.02572576142847538, -0.18746866285800934, 0.23308415710926056, -0.25299134850502014, -0.20668894052505493, -0.08689705282449722, 0.11692889779806137, 0.025728600099682808, -0.48412033915519714, 0.1179938018321991, -0.3125516176223755, 0.055553071200847626, 0.5283824801445007, -0.00011544357403181493, 0.12221108376979828, 0.09451156854629517, 0.021575642749667168, -0.13214056193828583, -0.049859363585710526, -0.06749580055475235, -0.2368898242712021, 0.2450842261314392, -0.37106946110725403, -0.10751669853925705, -0.39125511050224304, 0.007589476648718119, -0.20665745437145233, 0.570297122001648, 0.5039230585098267, 0.14577560126781464, 0.5681710243225098, 0.05152326822280884, 0.07855906337499619, 0.2667636573314667, 0.17733657360076904, -0.2064674198627472, 0.2898193895816803, 0.2549912929534912, -0.4005645513534546, 0.04001151770353317, -0.08254528045654297, -0.0017514989012852311, 0.07805243879556656, 0.09075287729501724, 0.1272231787443161, -0.13591374456882477, -0.3480360507965088, -0.1655740737915039, 0.35392311215400696, 0.3100984990596771, 0.07070412486791611, -0.2927089035511017, -0.2270745187997818, -0.20156230032444, -0.0293275136500597, 0.134727343916893, 0.16665387153625488, -0.3210844099521637, 0.17754410207271576, -0.3006027042865753, 0.05512106046080589, -0.4535181224346161, 0.5489295125007629, 0.08651363849639893, 0.5155933499336243, 0.08303812146186829, 0.30913087725639343, -0.04582309350371361, 0.013398242183029652, -0.008977903984487057, -0.08434421569108963, 0.017114581540226936, 0.18444910645484924, -0.19636671245098114, -0.154439315199852, 0.11466274410486221, -0.4060584306716919, 0.16019019484519958, 0.0676574632525444, 0.15464313328266144, -0.08788271248340607, -0.16994377970695496, 0.3116518557071686, -0.0025950123090296984, 0.12817738950252533, -0.05781957507133484, 0.33188024163246155, 0.3709957003593445, 0.09120568633079529, -0.18298745155334473, 0.15579596161842346, 0.10856504738330841, -0.14456593990325928, 0.04197567328810692, -0.05999702960252762, 0.492986261844635, 0.05111019313335419, 0.08754901587963104, -0.015991492196917534, -0.5868577361106873, -0.03328005224466324, 0.19561032950878143, 0.3493119776248932, -0.3422452211380005, 0.08275329321622849, 0.012364462949335575, -0.0544697605073452, -0.31630709767341614, 0.06910573691129684, -0.24259638786315918, 0.24825787544250488, 0.08045166730880737, -0.059126608073711395, 0.16601483523845673, 0.0636298805475235, 0.47911107540130615, -0.1673450917005539, -0.03491091728210449, -0.04158863425254822, 0.5842092037200928, -0.32330965995788574, 0.14140363037586212, 0.23451250791549683, -0.271801233291626, 0.0687609538435936, 0.2806975543498993, 0.10376207530498505, -0.10808025300502777, 0.020145906135439873, -0.24520324170589447, -0.46281906962394714, -0.04149559512734413, 0.22536690533161163, 0.044351428747177124, -0.10873901098966599, 0.00949203222990036, -0.16324235498905182, 0.4137919843196869, -0.3300023674964905, 0.052398618310689926, -0.21230153739452362, -0.21794593334197998, -0.16497813165187836, 0.22939471900463104, 0.34681281447410583, -0.2586822211742401, 0.07982534170150757, 0.2683033347129822, -0.001303278375416994, 0.226700097322464, 0.4093838334083557, -0.51214200258255, 0.4743843972682953, -0.3170548975467682, 0.1415548175573349, 0.5460805892944336, -0.4671500325202942, -0.2384575605392456, 0.5044524669647217, -0.2510952353477478, -0.07115484774112701, 0.043565183877944946, 0.2766912579536438, 0.1196679174900055, 0.0741804987192154, 0.4246079623699188, 0.3509933054447174, -0.29298198223114014, 0.11347426474094391, -0.2766144275665283, -0.20692338049411774, 0.00727406470105052, 0.07853104919195175, 0.06227411702275276, 0.011424955911934376, 0.16178052127361298, 0.033803828060626984, 0.2731344401836395, -0.061928246170282364, 0.10705393552780151, 0.33531004190444946, 0.07649371773004532, -0.09136410057544708, 0.030291413888335228, -0.021598760038614273, -0.20533302426338196, 0.2261989861726761, -0.0307404063642025, 0.24253958463668823, -0.26736700534820557, -0.02021951787173748, -0.38614025712013245, 0.06388591974973679, -0.3079509437084198, 0.08516471087932587, 0.06180354952812195, 0.27120664715766907, 0.17252464592456818, 0.15658776462078094, 0.042503729462623596, -0.027529478073120117, -0.2579174041748047, 0.10618143528699875, -0.3778773546218872, 0.26170510053634644, -0.059983305633068085, -0.037935223430395126, -0.09198135137557983, -0.12873061001300812, 0.14280489087104797, -0.2689328193664551, -0.2771681249141693, 0.19434422254562378, 0.01904047280550003, 0.16451320052146912, 0.018344836309552193, 0.038594309240579605, 0.06247047334909439, -0.16642393171787262, 0.02123151905834675, 0.09464266896247864, 0.11480787396430969, -0.1870042085647583, -0.17327764630317688, 0.29989105463027954, 0.21567752957344055, 0.32944461703300476, 0.11822689324617386, -0.12584006786346436, 0.2493581622838974, 0.07178154587745667, -0.01896623894572258, -0.010247153230011463, 0.0795542374253273, 0.04120884835720062, 0.1136675775051117, -0.0922212228178978, -0.2574564218521118, 0.06025998294353485, 0.4460497796535492, -0.170176163315773, 0.04501575604081154, 0.06969207525253296, 0.3061298727989197, -0.1095028668642044, 0.17633652687072754, 0.1549539417028427, 0.6341344714164734, 0.20858052372932434, 0.16215620934963226, 0.1511491984128952, -0.13489751517772675, -0.22925910353660583, 0.06441265344619751, -0.026680490002036095, 0.2473059445619583, 0.31758809089660645, 0.30572575330734253, 0.02431788668036461, -0.42636463046073914, -0.2775948941707611, 0.11619973927736282, 0.3775264620780945, -0.2742387354373932, 0.23515711724758148, -0.1033199355006218, -0.15647901594638824, -0.04775143414735794, 0.03942128270864487, -0.2301461547613144, -0.42150041460990906, 0.05833597853779793, 0.21585337817668915, -0.07317063212394714, 0.27568522095680237, -0.009306229650974274, 0.02014521136879921, 0.3500894606113434, -0.43837711215019226, -0.1064935252070427, -0.17611853778362274, -0.36415421962738037, 0.025293570011854172, 0.15249988436698914, -0.09636326134204865, 0.4177513122558594, -0.04992441460490227, -0.4756886959075928, -0.18726380169391632, -0.29432159662246704, 0.011948426254093647, -0.06520505994558334, 0.2479962855577469, 0.1509266495704651, 0.35157138109207153, -0.01744549721479416, -0.19181913137435913, 0.4221319854259491, -0.08986774832010269, -0.12389770895242691, -0.026794711127877235, 0.024070056155323982, 0.14929287135601044, -0.030746616423130035, -0.637909471988678, -0.40483948588371277, -0.406676322221756, 0.2181970626115799, 0.04661959782242775, 0.2775192856788635, 0.08495454490184784, 0.03581513091921806, 0.35972094535827637, 0.11121678352355957, 0.12764087319374084, -0.05386129021644592, -0.32713836431503296, 0.25746071338653564, -0.2653144299983978, -0.2633669674396515, -0.014294835738837719, -0.11728834360837936, 0.08856680244207382, 0.05009935796260834, -0.5194661617279053, -0.4453580379486084, -0.2787284851074219, 0.2407427430152893, -0.2776935398578644, -0.1170528456568718, 0.29609957337379456, -0.170332670211792, -0.10821832716464996, -0.006474216002970934, -0.0444754995405674, 0.34153592586517334, 0.26590636372566223, 0.17378579080104828, 0.06144927442073822, 0.7596718072891235, -0.0332472026348114, 0.5413725972175598, 0.029681188985705376, 0.03527737036347389, 0.48922768235206604, -0.28296956419944763, -0.01747940294444561, -0.07797743380069733, -0.2684924006462097, 0.08018240332603455, 0.14092665910720825, -0.20751753449440002, -0.09336643666028976, 0.1615554690361023, -0.12253033369779587, -0.24050939083099365, -0.23043391108512878, -0.2888832092285156, -0.23357301950454712, 0.009726494550704956, -0.14655014872550964, 0.2895328402519226, -0.022246845066547394, 0.06599196046590805, -0.14311674237251282, -0.05162294954061508, -0.14666807651519775, 0.06930810958147049, -0.016800018027424812, -0.16243913769721985, -0.6813381910324097, -0.17491115629673004, -0.5136027336120605, 0.27063506841659546, 0.15675534307956696, 0.5439180135726929, -0.2641361653804779, -0.06843699514865875, 0.2611939013004303, -0.14156010746955872, 0.8109992742538452, -0.24084298312664032, 0.10524124652147293, 0.025069154798984528, 0.13557763397693634, -0.3428843021392822, 0.005818054545670748, -0.0008364796522073448, 0.26888009905815125, 0.2481946498155594, 0.5743735432624817, -0.12800508737564087, -0.2865648865699768, 0.20697210729122162, 0.2740258574485779, -0.23582302033901215, -0.07624070346355438, -0.2177339494228363, -0.6896695494651794, -0.19684627652168274, 0.0832703560590744, -0.05471637472510338, 0.20280136168003082, 0.09243144094944, -0.4169507324695587, 0.09523060917854309, 0.16640610992908478, -0.05235949531197548, 0.07994867861270905, -0.1108463779091835, 0.015888050198554993, 0.11482343822717667, -0.24719256162643433, 0.28452959656715393, 0.24503934383392334, 0.35222288966178894, -0.14906850457191467, -0.26303499937057495, 0.14364741742610931, 0.12382039427757263, 0.33185523748397827, 0.29476094245910645, -0.021247290074825287, 0.1408848613500595, 0.15999843180179596, 0.34019505977630615, -0.08283501863479614, 0.38738012313842773, 0.5323918461799622, -0.12233593314886093, -0.20315797626972198, -0.5039525032043457, 0.13323868811130524, -0.047188401222229004, -0.06368608772754669, 0.21920202672481537, -0.2862215042114258, -0.2772030830383301, 0.37920820713043213, 0.13955454528331757, 0.992133378982544, -0.011305934749543667, 0.2558067739009857, 0.6406002640724182, -0.06649739295244217, 0.664960503578186, -0.2646172046661377, 0.2580276131629944, -0.3804022967815399, 0.04297640919685364, -0.10547634959220886, -0.23588037490844727, 0.028510218486189842, 0.09443648159503937, -0.1649489849805832, 0.1491963416337967, -0.11728323996067047, 0.1959846019744873, -0.1463431715965271, 0.5414198637008667, 0.07562816888093948, -0.059848133474588394, -0.5874491930007935, 0.10640931874513626, -0.026103978976607323, 0.09858491271734238, -0.02683575451374054, -0.10816825181245804, 0.020031454041600227, -0.3731746971607208, 0.15743380784988403, 0.09438242763280869, -0.28122028708457947, 0.5121898055076599, -0.18593010306358337, -0.07586921006441116, -0.015601682476699352, 0.30762720108032227, 0.03486640378832817, -0.000024540035155951045, -0.10644414275884628, 0.036281101405620575, -0.11306840181350708, 0.13086925446987152, -0.10063309967517853, -0.009530267678201199, 0.15473689138889313, -0.11632136255502701, -0.4218953549861908, 0.4718746542930603, -0.34946441650390625, -0.37576210498809814, -0.07090076059103012, 0.12230083346366882, -0.059523068368434906, -0.440989226102829, -0.10296248644590378, -0.14436568319797516, -0.2691311538219452, -0.20036767423152924, 0.08581776916980743, 0.019528232514858246, -0.31881946325302124, 0.320402592420578, 0.017751533538103104, -0.3153616786003113, -0.021574631333351135, 0.4522778391838074, 0.11651447415351868, 0.22168496251106262, 0.7525088787078857, 0.16997355222702026, 0.024958647787570953, -0.32926154136657715, 0.4612758457660675, -0.018031373620033264, -0.28927934169769287, 0.1046876460313797, 0.24820499122142792, 0.2518330216407776, 0.06370828300714493, 0.27727773785591125, 0.22925065457820892, 0.1389225870370865, 0.0036965268664062023, -0.39163878560066223, -0.4703884720802307, 0.16922499239444733, 0.07654368132352829, 0.21416185796260834, 0.23961612582206726, 0.2498917281627655, -0.189387708902359, 0.20432429015636444, -0.2954697012901306, 0.05616207420825958, -0.5371059775352478, 0.18564777076244354, -0.037543490529060364, -0.11557091027498245, 0.378370076417923, 0.0621667206287384, 0.1401451677083969, -0.021300388500094414, -0.3744765818119049, -0.16643720865249634, -0.050524547696113586, 0.16633693873882294, 0.07185022532939911, -0.18647336959838867, -0.43863797187805176, -0.5062549114227295, -0.018147939816117287, 0.09656662493944168, 0.053541671484708786, 0.018847346305847168, -0.08118017762899399, 0.01758260279893875, 0.014158071018755436, 0.12208782881498337, 0.08415890485048294, 0.047267574816942215, -0.15381169319152832, -0.01574336737394333, 0.23016810417175293, 0.07726185768842697, 0.19839702546596527, -0.188578262925148, -0.06746187061071396, 0.01976526901125908, 0.03562682867050171, -0.17739619314670563, 0.29266971349716187, -0.28478652238845825, -0.2742285430431366, -0.0748816654086113, 0.2242603898048401, 0.39459028840065, -0.19613265991210938, 0.02837984822690487, 0.1952049434185028, 0.20808641612529755, -0.183320552110672, -0.2920612692832947, 0.4560909867286682, -0.20194581151008606, 0.13789676129817963, 0.11032172292470932, -0.212742418050766, 0.08947126567363739, -0.22453178465366364, 0.20336732268333435, 0.23412255942821503, 0.022325119003653526, 0.03718751668930054, 0.300551176071167, -0.2989979386329651, -0.08281144499778748, 0.1474568247795105, 0.12709487974643707, 0.32129549980163574, 0.004776713903993368, -0.0055460440926253796, 0.04332808777689934, -0.3767870366573334, 0.35426291823387146, -0.08602499216794968, -0.48479682207107544, 0.05125243589282036, -0.16885942220687866, -0.2988905608654022, -0.13003061711788177, -0.0237515177577734, 0.48198381066322327, -0.23674006760120392, -0.1881794035434723, -0.19951483607292175, 0.3600156307220459, -0.10282424837350845, -0.19554224610328674, -0.22951674461364746, -0.28582000732421875, 0.1354685127735138, -0.19784985482692719, 0.16091401875019073, 0.01904626376926899, -0.06508799642324448, 0.08947381377220154, 0.038386642932891846, -0.2019243985414505, -0.020145492628216743, 0.06120464205741882, 0.06400666385889053, -0.3245765268802643, 0.1949736624956131, 0.24837076663970947, -0.06070373207330704, -0.41715407371520996, 0.010686804540455341, 0.345956951379776, 0.4239962100982666, -0.021845029667019844, 0.3125002384185791, -0.09471060335636139, -0.15839707851409912, -0.005540330428630114, 0.11348271369934082, 0.23380915820598602, -0.03643856197595596, 0.35148683190345764, 0.09335305541753769, -0.14810213446617126, 0.2936784327030182, -0.02371940016746521, 0.15342891216278076, -0.2211727350950241, 0.5093347430229187, 0.012240765616297722, -0.29287660121917725, 0.000425079429987818, 0.021105634048581123, -0.41690781712532043, 0.1007513552904129, 0.429729700088501, -0.13441817462444305, 0.32207807898521423, -0.09887498617172241, 0.05006033182144165, -0.3950727880001068, 0.6884115934371948, 0.2332834154367447, 0.10674799978733063, -0.34255504608154297, 0.0008532118517905474, -0.3407241106033325, 0.028350628912448883, -0.47885861992836, -0.024036148563027382, 0.07403440773487091, 0.10039985924959183, 0.07500912249088287, -0.04606032744050026, -0.1270328015089035, 0.0030350687447935343, 0.02185704931616783, 0.11331196129322052, -0.28766152262687683, -0.2759702801704407, -0.0043587638065218925, 0.23545323312282562, -0.018737567588686943, -0.4727274775505066, 0.216354638338089, -0.26003068685531616, -0.030725250020623207, -0.2679134011268616, -0.04846242070198059, 0.20219314098358154, -0.057915203273296356, 0.434366911649704, 0.3496292233467102, 0.4295278489589691, 0.07208824157714844, -0.060651469975709915, 0.043948449194431305, -0.4789809286594391, 0.045921772718429565, -0.004793509840965271, 0.15769322216510773, 0.5942360162734985, -0.18847408890724182, -0.018071157857775688, -0.33908456563949585, 0.17296253144741058, -0.1238202229142189, -0.3846418261528015, 0.3237599730491638, -0.05246199294924736, 0.02614712156355381, 0.0659150779247284, 0.10016483813524246, 0.13305504620075226, 0.08198698610067368, 0.029797228053212166, -0.25366100668907166, -0.21632130444049835, 0.7234705686569214, -0.3179040849208832, -0.1667281836271286, -0.04373535141348839, 0.18572135269641876, 0.09779782593250275, 0.004968427587300539, -0.15862932801246643, -0.08039823919534683, 0.6721753478050232, 0.08620896935462952, -0.3109281361103058, 0.490425705909729, 0.15787498652935028, 0.031035421416163445, 0.0725700855255127, -0.03354153037071228, -0.19044040143489838, -0.2747122347354889, -0.040227241814136505, -0.31007200479507446 ]
https://github.com/huggingface/datasets/issues/1817
pyarrow.lib.ArrowInvalid: Column 1 named input_ids expected length 599 but got length 1500
Hi ! The error you have is due to the `input_ids` column not having the same number of examples as the other columns. Indeed you're concatenating the `input_ids` at this line: https://github.com/LuCeHe/GenericTools/blob/431835d8e13ec24dceb5ee4dc4ae58f0e873b091/KerasTools/lm_preprocessing.py#L134 However the other columns are kept unchanged, and therefore you end up with an `input_ids` column with 599 elements while the others columns like `attention_mask` have 1500. To fix that you can instead concatenate them all using ```python concatenated_examples = {k: sum(examples[k], []) for k in examples.keys()} ``` Also you may need to drop the "text" column before applying `group_texts` since strings can't be concatenated with lists. You can drop it at the tokenization step: ```python dset = dset.map( tokenize_function, batched=True, remove_columns=["text"] ) ```
I am trying to preprocess any dataset in this package with GPT-2 tokenizer, so I need to structure the datasets as long sequences of text without padding. I've been following a couple of your tutorials and here you can find the script that is failing right at the end https://github.com/LuCeHe/GenericTools/blob/master/KerasTools/lm_preprocessing.py In the last iteration of the last dset.map, it gives the error that I copied in the title. Another issue that I have, if I leave the batch_size set as 1000 in the last .map, I'm afraid it's going to lose most text, so I'm considering setting both writer_batch_size and batch_size to 300 K, but I'm not sure it's the best way to go. Can you help me? Thanks!
116
pyarrow.lib.ArrowInvalid: Column 1 named input_ids expected length 599 but got length 1500 I am trying to preprocess any dataset in this package with GPT-2 tokenizer, so I need to structure the datasets as long sequences of text without padding. I've been following a couple of your tutorials and here you can find the script that is failing right at the end https://github.com/LuCeHe/GenericTools/blob/master/KerasTools/lm_preprocessing.py In the last iteration of the last dset.map, it gives the error that I copied in the title. Another issue that I have, if I leave the batch_size set as 1000 in the last .map, I'm afraid it's going to lose most text, so I'm considering setting both writer_batch_size and batch_size to 300 K, but I'm not sure it's the best way to go. Can you help me? Thanks! Hi ! The error you have is due to the `input_ids` column not having the same number of examples as the other columns. Indeed you're concatenating the `input_ids` at this line: https://github.com/LuCeHe/GenericTools/blob/431835d8e13ec24dceb5ee4dc4ae58f0e873b091/KerasTools/lm_preprocessing.py#L134 However the other columns are kept unchanged, and therefore you end up with an `input_ids` column with 599 elements while the others columns like `attention_mask` have 1500. To fix that you can instead concatenate them all using ```python concatenated_examples = {k: sum(examples[k], []) for k in examples.keys()} ``` Also you may need to drop the "text" column before applying `group_texts` since strings can't be concatenated with lists. You can drop it at the tokenization step: ```python dset = dset.map( tokenize_function, batched=True, remove_columns=["text"] ) ```
[ -0.15500272810459137, -0.07036467641592026, -0.008634611964225769, 0.17082959413528442, 0.2552524507045746, 0.03644745796918869, 0.5036025047302246, 0.5221666693687439, -0.5246608257293701, 0.010454325936734676, 0.38077640533447266, 0.23190656304359436, 0.07488153874874115, -0.17450746893882751, 0.1261395364999771, -0.28864797949790955, 0.01418302208185196, 0.24775846302509308, -0.013882013969123363, 0.19445423781871796, -0.06766805797815323, 0.3307289779186249, -0.32954150438308716, 0.2716697156429291, -0.38650622963905334, -0.09225159883499146, -0.14227294921875, -0.16988952457904816, -0.16919806599617004, -0.593181312084198, 0.08280961215496063, -0.22855758666992188, 0.04780517518520355, 0.27941080927848816, -0.00012362874986138195, -0.11682919412851334, 0.4077010154724121, -0.10667487978935242, 0.07015323638916016, -0.00447393162176013, 0.04227997362613678, -0.23613736033439636, 0.016513027250766754, -0.23402909934520721, 0.09126804023981094, -0.5475607514381409, -0.2920791506767273, 0.26073136925697327, 0.2835213840007782, 0.35895413160324097, 0.12578493356704712, -0.044894322752952576, 0.17904032766819, -0.04128555208444595, 0.5702498555183411, 0.05361074581742287, 0.005534423980861902, 0.11605050414800644, 0.14587712287902832, -0.20139288902282715, 0.05344143882393837, 0.21442961692810059, -0.2680259644985199, -0.10325203835964203, 0.05808558315038681, -0.003926643170416355, 0.05653191730380058, -0.20237265527248383, 0.21053451299667358, 0.15889035165309906, 0.3037463128566742, -0.37804678082466125, -0.04834943264722824, -0.2628525495529175, 0.17668744921684265, -0.39863649010658264, -0.08855122327804565, -0.06064672768115997, -0.19439151883125305, 0.1883014291524887, -0.10215386003255844, 0.17451414465904236, -0.25740569829940796, 0.09383905678987503, 0.09563105553388596, 0.2773391306400299, 0.15872631967067719, 0.28969189524650574, -0.07065530121326447, -0.17045600712299347, 0.03651047870516777, 0.13478559255599976, -0.22401589155197144, 0.210898295044899, -0.2329896241426468, -0.03535633161664009, -0.12983764708042145, -0.22154921293258667, 0.4244501292705536, -0.14328840374946594, 0.2827796936035156, -0.1606893390417099, 0.7112706899642944, -0.11864630877971649, -0.08554702252149582, 0.45989784598350525, 0.23725931346416473, 0.20678295195102692, -0.12706249952316284, -0.3863636255264282, 0.29139769077301025, 0.14709307253360748, -0.26021823287010193, -0.6117148995399475, 0.2757366895675659, 0.16794928908348083, 0.06177955120801926, 0.18029853701591492, -0.19718775153160095, 0.4800279140472412, -0.4964812099933624, -0.025122426450252533, -0.153076633810997, 0.055349428206682205, 0.07967409491539001, 0.06377207487821579, -0.0022888497915118933, 0.07375254482030869, 0.06430409848690033, -0.2553132176399231, -0.1027701124548912, 0.2139759510755539, -0.3910415470600128, 0.06014855206012726, 0.10804866999387741, 0.05606706067919731, 0.3017205595970154, 0.06235770136117935, 0.07460163533687592, 0.06350280344486237, -0.010166923515498638, -0.07176194339990616, 0.24437186121940613, 0.2771906554698944, -0.11861290782690048, 0.1828490048646927, 0.20385335385799408, -0.1445947140455246, -0.3017871379852295, 0.2960037291049957, -0.3270407021045685, -0.32790347933769226, -0.10855700075626373, 0.06317929923534393, 0.10623565316200256, 0.10535826534032822, -0.2185865044593811, 0.1509508490562439, 0.6920499205589294, -0.09886343777179718, 0.18233224749565125, -0.4258134365081787, 0.19802312552928925, -0.312360554933548, 0.1485888659954071, 0.16139282286167145, -0.5673105716705322, 0.12170465290546417, 0.3949629068374634, 0.3733765780925751, 0.3328763544559479, 0.3813623785972595, -0.08317909389734268, 0.5039747357368469, -0.09069930762052536, 0.7552230358123779, 0.3342815935611725, -0.08883880078792572, -0.21657581627368927, 0.3936944007873535, -0.06432978808879852, -0.2323005050420761, 0.02956201694905758, -0.23195858299732208, 0.21288356184959412, -0.00967707671225071, 0.15474776923656464, -0.10163971036672592, -0.10747222602367401, -0.0029563051648437977, -0.28879833221435547, -0.1346035599708557, 0.10846582055091858, -0.06870785355567932, -0.10767457634210587, -0.25636205077171326, -0.2608836889266968, -0.4103670120239258, 0.11535512655973434, -0.16352786123752594, 0.3597879111766815, 0.3475104868412018, 0.019629020243883133, 0.026715612038969994, 0.32917821407318115, 0.09509439021348953, -0.17817066609859467, -0.023590488359332085, 0.04429019242525101, -0.034959275275468826, -0.22016644477844238, -0.35234254598617554, -0.2672826051712036, 0.19900178909301758, 0.03817766532301903, 0.17765067517757416, 0.009346738457679749, -0.22651217877864838, 0.1835489422082901, -0.16336065530776978, -0.03364865109324455, -0.2718361020088196, 0.05084259808063507, 0.09642157703638077, -0.18220974504947662, -0.12170237302780151, -0.17315927147865295, -0.4061910808086395, 0.09974991530179977, -0.007510649040341377, 0.29522204399108887, -0.053783681243658066, 0.014354218728840351, 0.3127259910106659, 0.1311427652835846, -0.33476993441581726, -0.3954310417175293, 0.20271651446819305, -0.08284150809049606, -0.19415220618247986, -0.1910981833934784, -0.105926014482975, -0.03023219294846058, -0.08676481992006302, 0.11341724544763565, 0.31142404675483704, 0.08789750188589096, 0.30049875378608704, -0.20775680243968964, -0.03196614608168602, 0.06307566910982132, 0.06867709010839462, -0.23480066657066345, 0.01006995514035225, 0.07786343991756439, -0.047596435993909836, 0.13263675570487976, 0.0023551303893327713, -0.3153674304485321, 0.17286042869091034, 0.17700651288032532, 0.015508809126913548, -0.0637858584523201, 0.1986922174692154, -0.08011645078659058, -0.014726503752171993, 0.1154865100979805, -0.1970088928937912, 0.10119111090898514, 0.16590319573879242, -0.024777574464678764, -0.05473547801375389, -0.20633742213249207, -0.19612504541873932, 0.2262759804725647, 0.07360967248678207, 0.2035350203514099, 0.5516650080680847, 0.052656013518571854, 0.12736862897872925, 0.050168730318546295, -0.09347411245107651, 0.22983285784721375, 0.3550689220428467, -0.3621877431869507, 0.1933804601430893, -0.2526600658893585, 0.019631575793027878, -0.005976191721856594, -0.6113995909690857, 0.1719788908958435, -0.030618861317634583, 0.0457911491394043, -0.1291826367378235, -0.16222234070301056, 0.3853456377983093, 0.1819884181022644, 0.18498198688030243, 0.5495920181274414, -0.1675557643175125, -0.1204284131526947, -0.23683404922485352, -0.18436205387115479, -0.09546425193548203, 0.2132757604122162, -0.15062952041625977, -0.021239692345261574, 0.10779460519552231, -0.11745661497116089, -0.22424888610839844, -0.5022533535957336, 0.31190571188926697, -0.34669822454452515, -0.11216486990451813, 0.4024559259414673, 0.12236729264259338, -0.263366162776947, -0.22805489599704742, 0.05544297397136688, 0.22995512187480927, -0.2798076868057251, 0.3484920263290405, -0.08963654190301895, -0.274652898311615, -0.15062181651592255, -0.16973692178726196, 0.17459924519062042, -0.19145376980304718, 0.17723362147808075, -0.153463676571846, 0.14684103429317474, 0.0637495219707489, 0.46530720591545105, 0.036905091255903244, -0.006935889832675457, 0.042428866028785706, 0.057454630732536316, 0.21053114533424377, 0.4343688189983368, -0.2766295075416565, -0.25733843445777893, 0.08655904978513718, -0.1728404015302658, 0.32821905612945557, 0.2733295261859894, -0.364385187625885, 0.1617102026939392, -0.06859412044286728, 0.09364094585180283, -0.3578873872756958, 0.05903347209095955, 0.4605167508125305, 0.14665068686008453, 0.005105873104184866, -0.11419627815485, 0.034633610397577286, 0.3736734688282013, -0.2701488733291626, 0.055112726986408234, 0.055254001170396805, 0.6357026100158691, -0.025045622140169144, 0.7274152636528015, 0.28145748376846313, -0.11978219449520111, 0.10136143118143082, -0.24909019470214844, -0.1202099546790123, -0.23989719152450562, 0.16254261136054993, -0.23184853792190552, -0.09498415142297745, 0.03695402294397354, 0.3688109219074249, -0.29724857211112976, -0.33300191164016724, 0.22101518511772156, 0.19252203404903412, -0.21420666575431824, -0.07208184897899628, 0.3196909427642822, 0.036059536039829254, 0.3239012658596039, -0.041919857263565063, 0.07907849550247192, -0.19290301203727722, -0.03335510194301605, 0.04953513666987419, -0.37640729546546936, 0.032569631934165955, 0.06490614265203476, -0.23177357017993927, -0.41183367371559143, -0.6226698160171509, 0.36847949028015137, 0.30646464228630066, 0.4693976044654846, 0.1016402319073677, -0.31097784638404846, -0.0006424015737138689, -0.27705302834510803, 0.51762455701828, -0.14390908181667328, -0.3334731459617615, 0.364398330450058, 0.12546788156032562, -0.4200965464115143, -0.33677053451538086, -0.052721306681632996, 0.14556731283664703, 0.3767854571342468, 0.1362762153148651, -0.5397259593009949, -0.03186748921871185, 0.354974627494812, -0.02612057514488697, -0.012667546048760414, -0.1469438225030899, -0.2477862536907196, -0.35022684931755066, -0.20203404128551483, -0.016632238402962685, 0.6145423054695129, 0.39961376786231995, -0.012563825584948063, -0.0049710446037352085, -0.05476633086800575, -0.2995452284812927, 0.0977126955986023, 0.00955716148018837, 0.3902045786380768, 0.0011871090391650796, 0.22085772454738617, -0.22350092232227325, 0.37564921379089355, 0.3819257318973541, 0.11470915377140045, 0.15078681707382202, -0.23865951597690582, 0.24952742457389832, -0.27361705899238586, 0.48127907514572144, 0.27605384588241577, -0.22334307432174683, 0.28756800293922424, -0.44452157616615295, 0.2794286608695984, -0.07923988252878189, 0.14096778631210327, 0.39659231901168823, -0.17318685352802277, -0.3562676012516022, -0.13050231337547302, 0.2430715709924698, 0.021025026217103004, -0.02633748948574066, 0.4567221701145172, 0.06739437580108643, -0.3701602816581726, 0.31386852264404297, 0.2621948719024658, 1.1447813510894775, 0.3166947364807129, 0.24962052702903748, 0.3733634948730469, 0.08351296186447144, 0.006210494786500931, 0.0769706442952156, 0.10554125159978867, -0.5544155836105347, -0.005170923192054033, 0.009371084161102772, -0.16759231686592102, -0.013809147290885448, 0.20139774680137634, -0.3329414427280426, -0.12819719314575195, -0.31516948342323303, 0.17098349332809448, -0.1320953369140625, 0.14282287657260895, -0.005934074521064758, -0.08728049695491791, 0.2379438877105713, -0.02084701508283615, -0.01310267299413681, -0.3700391948223114, -0.16520924866199493, -0.0691821277141571, -0.3673359751701355, -0.3569474220275879, -0.41122934222221375, -0.07522570341825485, -0.22505930066108704, 0.039152417331933975, 0.11218877136707306, -0.2581791579723358, 0.17978931963443756, 0.026252154260873795, 0.2069534957408905, 0.16528266668319702, -0.19846178591251373, 0.008550619706511497, 0.04433062672615051, -0.29094403982162476, -0.15844173729419708, -0.1409946233034134, 0.122092604637146, -0.01719953864812851, 0.052575379610061646, 0.1850576549768448, 0.042505208402872086, 0.06949694454669952, -0.3031352460384369, -0.1627689152956009, 0.2704520523548126, -0.490782231092453, -0.0921756699681282, 0.030488094314932823, 0.002967554610222578, -0.1565634161233902, -0.00674440898001194, 0.04925326257944107, -0.22092188894748688, 0.2321995049715042, -0.15297067165374756, -0.25710368156433105, 0.0601380430161953, 0.07232604175806046, 0.0023349951952695847, -0.03118845261633396, 0.6073065996170044, 0.3159703016281128, -0.15894782543182373, -0.10699214041233063, 0.16370898485183716, 0.5035040974617004, -0.6606774926185608, 0.07491767406463623, -0.18850812315940857, 0.05945880338549614, 0.050985369831323624, 0.5169570446014404, 0.2717167139053345, 0.30593928694725037, 0.12162328511476517, -0.07537849992513657, -0.2998277246952057, 0.2028266191482544, 0.2588070034980774, 0.36121779680252075, -0.20544017851352692, 0.09837444126605988, -0.16208021342754364, 0.11595149338245392, -0.18939834833145142, -0.08787930756807327, -0.05775243043899536, 0.18769517540931702, -0.1030350774526596, -0.018280597403645515, -0.2642347514629364, 0.051464639604091644, -0.031539250165224075, 0.3885486125946045, -0.01024398859590292, -0.10277941823005676, -0.23010653257369995, 0.1527893990278244, 0.06817755103111267, -0.05340912193059921, 0.2742187976837158, -0.1448957622051239, -0.29853591322898865, -0.1450139284133911, 0.013672883622348309, -0.0535811185836792, -0.021079085767269135, -0.024210961535573006, 0.42981597781181335, 0.06469061970710754, -0.08738424628973007, 0.027693863958120346, 0.0022438904270529747, 0.1453467607498169, 0.11469164490699768, 0.22810803353786469, 0.09583783149719238, 0.026214078068733215, 0.13615259528160095, 0.33510079979896545, 0.05278467386960983, -0.3552299737930298, 0.13390131294727325, -0.43937838077545166, -0.1296578049659729, -0.057808518409729004, 0.2475414276123047, 0.3009120225906372, -0.36063331365585327, -0.1328805834054947, 0.4503159523010254, 0.1535474807024002, -0.28653469681739807, -0.11641786992549896, -0.1829865425825119, 0.06416616588830948, -0.13798512518405914, 0.20083849132061005, 0.10944809764623642, -0.06060599908232689, -0.22025570273399353, 0.17374348640441895, 0.3542881906032562, 0.12318693846464157, -0.3958589434623718, 0.31942105293273926, -0.18592074513435364, 0.12398727983236313, 0.3163273334503174, 0.20356866717338562, 0.2621981203556061, 0.02975672483444214, -0.11876820027828217, 0.24514757096767426, 0.26784026622772217, 0.09121380001306534, -0.2393346130847931, -0.20316560566425323, -0.07244370132684708, 0.2762998938560486, 0.08838106691837311, 0.0028184785041958094, 0.17907486855983734, 0.33536991477012634, 0.452499121427536, -0.22892427444458008, 0.02789008803665638, 0.359020859003067, -0.19493867456912994, -0.06601573526859283, -0.7122877836227417, 0.08242868632078171, -0.21800337731838226, -0.17494818568229675, -0.10234594345092773, 0.07373154908418655, 0.4343531131744385, 0.0964006707072258, -0.09047532081604004, -0.198737233877182, 0.07072770595550537, -0.006839278619736433, 0.09450671821832657, -0.3231534957885742, 0.41192930936813354, 0.10049603134393692, -0.28496357798576355, -0.11378255486488342, 0.3278913199901581, 0.6728410124778748, 0.407121479511261, -0.1261102855205536, -0.3004496693611145, -0.2880662977695465, 0.1028205156326294, 0.10326003283262253, 0.35406187176704407, 0.3359222114086151, 0.13139811158180237, 0.21583634614944458, -0.0917937234044075, -0.03497963026165962, -0.0927514061331749, 0.33171987533569336, -0.06846693158149719, 0.24882085621356964, -0.05473298206925392, -0.15731678903102875, -0.4111021161079407, -0.0005270189139991999, 0.2015114277601242, -0.5054787397384644, 0.22051021456718445, 0.5505579113960266, 0.18040874600410461, 0.1515897810459137, -0.09970337152481079, 0.032280225306749344, -0.07815099507570267, 0.44408881664276123, 0.38040274381637573, 0.10107188671827316, -0.391953706741333, -0.3986082077026367, -0.24106916785240173, 0.13712942600250244, -0.43732407689094543, -0.13119961321353912, 0.26528221368789673, 0.16910520195960999, 0.2406347543001175, 0.019579362124204636, 0.11670394241809845, 0.16670911014080048, -0.34548258781433105, 0.5820022821426392, -0.2765938341617584, 0.21085774898529053, 0.1482132077217102, 0.08657991886138916, 0.027279455214738846, -0.1982695609331131, 0.4266267418861389, -0.015100665390491486, -0.010772776789963245, -0.36559438705444336, 0.026914436370134354, 0.1797391176223755, 0.216481551527977, 0.25084856152534485, 0.07890122383832932, 0.2836630046367645, -0.011375831440091133, 0.10577675700187683, -0.300265908241272, -0.15188506245613098, -0.17744050920009613, 0.30010414123535156, 0.09607412666082382, 0.03666108846664429, -0.18523384630680084, -0.21170422434806824, 0.034273795783519745, -0.1169179230928421, -0.07807750999927521, -0.0607341043651104, -0.34190312027931213, 0.13006795942783356, -0.20002533495426178, 0.18688853085041046, -0.03549496829509735, 0.11377903074026108, 0.1058962494134903, 0.2066834568977356, -0.32722947001457214, -0.6539344787597656, 0.7069844007492065, -0.48533108830451965, -0.49713993072509766, -0.023251017555594444, -0.006309176795184612, 0.3170474171638489, 0.11487788707017899, -0.13928773999214172, -0.17478971183300018, 0.27450114488601685, 0.11197040230035782, -0.5378235578536987, 0.30330565571784973, -0.07730352133512497, 0.04500565305352211, -0.17533758282661438, 0.23361094295978546, 0.08318203687667847, -0.22448399662971497, -0.47057533264160156, -0.6530276536941528 ]
https://github.com/huggingface/datasets/issues/1811
Unable to add Multi-label Datasets
Thanks for adding this dataset! As far as I know `supervised_keys` is mostly a holdover from TFDS, but isn't really used, so feel free to drop it (@lhoestq or @thomwolf correct me if I'm wrong). It definitely shouldn't be blocking :)
I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as `supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error : ```python Traceback (most recent call last): File "test_script.py", line 2, in <module> d = load_dataset('./datasets/cifar100') File "~/datasets/src/datasets/load.py", line 668, in load_dataset **config_kwargs, File "~/datasets/src/datasets/builder.py", line 896, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "~/datasets/src/datasets/builder.py", line 247, in __init__ info.update(self._info()) File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info citation=_CITATION, File "<string>", line 19, in __init__ File "~/datasets/src/datasets/info.py", line 136, in __post_init__ self.supervised_keys = SupervisedKeysData(*self.supervised_keys) TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given ``` Is there a way I can fix this? Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset? Thanks, Gunjan
41
Unable to add Multi-label Datasets I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as `supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error : ```python Traceback (most recent call last): File "test_script.py", line 2, in <module> d = load_dataset('./datasets/cifar100') File "~/datasets/src/datasets/load.py", line 668, in load_dataset **config_kwargs, File "~/datasets/src/datasets/builder.py", line 896, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "~/datasets/src/datasets/builder.py", line 247, in __init__ info.update(self._info()) File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info citation=_CITATION, File "<string>", line 19, in __init__ File "~/datasets/src/datasets/info.py", line 136, in __post_init__ self.supervised_keys = SupervisedKeysData(*self.supervised_keys) TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given ``` Is there a way I can fix this? Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset? Thanks, Gunjan Thanks for adding this dataset! As far as I know `supervised_keys` is mostly a holdover from TFDS, but isn't really used, so feel free to drop it (@lhoestq or @thomwolf correct me if I'm wrong). It definitely shouldn't be blocking :)
[ 0.021658901125192642, -0.2712227702140808, 0.018145699054002762, 0.1329580694437027, 0.3712173402309418, 0.3166494071483612, 0.6164789795875549, -0.4762451946735382, 0.19942520558834076, 0.2660486698150635, -0.21772700548171997, 0.1535530686378479, -0.27598774433135986, 0.3479330539703369, 0.10803268104791641, -0.12047648429870605, 0.1780964434146881, -0.2174011766910553, 0.02560088410973549, -0.03326762467622757, -0.22154071927070618, 0.007430052850395441, -0.2346252202987671, -0.28403589129447937, -0.6864251494407654, -0.2522571384906769, -0.3487633764743805, -0.16003721952438354, -0.26118528842926025, -0.6842927932739258, 0.17423462867736816, 0.32761746644973755, -0.1799798607826233, 0.48681703209877014, -0.00011896973592229187, 0.053939469158649445, 0.006014913786202669, -0.0270137470215559, -0.13157525658607483, -0.08840881288051605, 0.03389580175280571, -0.09976562112569809, -0.023081401363015175, -0.1876847892999649, -0.020591437816619873, -0.3216598629951477, -0.047854501754045486, -0.2678292989730835, 0.2622794210910797, 0.17089836299419403, 0.1447005271911621, -0.12118208408355713, 0.3119577169418335, -0.17778435349464417, -0.03400411456823349, 0.20135188102722168, -0.12939728796482086, 0.15727494657039642, 0.13255557417869568, -0.16186027228832245, 0.4810110926628113, 0.25270867347717285, -0.004530114121735096, -0.1883498728275299, 0.4128495454788208, -0.04078090935945511, -0.1479683667421341, -0.5755077004432678, 0.15249301493167877, 0.3097069561481476, 0.6528828740119934, -0.03769712150096893, -0.6485273241996765, -0.1441008299589157, 0.39860936999320984, -0.16047444939613342, -0.14034275710582733, 0.010432546958327293, -0.0038599236868321896, -0.23750083148479462, -0.36924439668655396, -0.049882009625434875, -0.2118254452943802, 0.2764356732368469, 0.33317145705223083, 0.35761478543281555, 0.0522681288421154, 0.3509880602359772, 0.27029767632484436, -0.05738404020667076, -0.02526295930147171, -0.10565540939569473, 0.04515485838055611, 0.22215092182159424, -0.28982454538345337, 0.1726468950510025, -0.04759848862886429, 0.13915209472179413, 0.14510343968868256, -0.10272183269262314, 0.052556995302438736, -0.32326740026474, -0.2117181271314621, 0.11969383805990219, 0.10273193567991257, -0.019669730216264725, -0.0022723593283444643, 0.4025922417640686, -0.03666387125849724, -0.02745825983583927, 0.11020921915769577, -0.2352026253938675, -0.0683445930480957, -0.12961117923259735, 0.3619588613510132, 0.1870023012161255, -0.14242127537727356, 0.11664672195911407, 0.046224430203437805, -0.15703248977661133, -0.061152633279561996, -0.03227598965167999, 0.3567191958427429, 0.309689998626709, 0.23467734456062317, 0.013893958181142807, 0.10588449984788895, 0.4291902780532837, 0.10788159817457199, 0.05489731952548027, -0.1495380997657776, 0.3543502390384674, -0.14015652239322662, 0.021800626069307327, 0.2909836769104004, 0.0014114807127043605, 0.12716716527938843, 0.32069820165634155, 0.2556930184364319, -0.1487245112657547, 0.04745427519083023, -0.22020092606544495, 0.19376112520694733, 0.3569912314414978, -0.02558566816151142, 0.2145911604166031, -0.04567849636077881, -0.3797813355922699, -0.1100405752658844, 0.04526669904589653, -0.33118340373039246, -0.025780266150832176, -0.05222659185528755, 0.06997707486152649, 0.19530853629112244, -0.09171915054321289, -0.47711727023124695, 0.20146770775318146, 0.12351628392934799, 0.03392089158296585, -0.07022546976804733, -0.20455576479434967, -0.2669662833213806, -0.25251176953315735, 0.2751835882663727, 0.40117257833480835, -0.2575540840625763, -0.20916634798049927, -0.11507037281990051, 0.16938990354537964, -0.2034933716058731, 0.21283718943595886, -0.2620733082294464, 0.4487384855747223, -0.09403090924024582, 0.06289318203926086, 0.04267563298344612, -0.8922803997993469, -0.06668280810117722, -0.014757664874196053, 0.08666063845157623, -0.12850399315357208, 0.161407008767128, 0.3256177306175232, 0.10879892110824585, 0.028979361057281494, 0.14260193705558777, 0.11376069486141205, -0.19244951009750366, -0.048209577798843384, 0.17883752286434174, 0.1565857082605362, -0.1048269122838974, 0.30700212717056274, 0.21028394997119904, -0.21032503247261047, 0.15642236173152924, -0.15666648745536804, -0.016030792146921158, -0.16356875002384186, 0.12073849141597748, 0.3795168697834015, 0.2092379331588745, -0.049986839294433594, 0.031323451548814774, 0.03800344467163086, -0.4350186288356781, 0.4339154362678528, 0.2955782115459442, 0.30499541759490967, -0.1049283891916275, -0.17570489645004272, -0.011610230430960655, 0.06134887784719467, -0.485291063785553, -0.11461786925792694, 0.06567423045635223, 0.2741549015045166, -0.09148062765598297, -0.05996081605553627, 0.020596059039235115, 0.13930043578147888, 0.43971627950668335, 0.1631939560174942, 0.08983618766069412, 0.03511005640029907, -0.12541407346725464, 0.03179694339632988, -0.09822825342416763, 0.017950650304555893, 0.40892210602760315, -0.0632743388414383, 0.034885160624980927, 0.45611312985420227, 0.1855805218219757, -0.3028659224510193, -0.15818534791469574, 0.06319347769021988, 0.4092928171157837, -0.2760547995567322, -0.2940945327281952, -0.20074020326137543, 0.23204298317432404, -0.34117257595062256, -0.15501369535923004, 0.07752617448568344, -0.3345652222633362, 0.2867102324962616, -0.006310620345175266, 0.19574704766273499, 0.1347322016954422, 0.10282281041145325, -0.11359091848134995, -0.20674921572208405, 0.037919316440820694, -0.18223269283771515, -0.02283547818660736, -0.2354646623134613, 0.04138779267668724, 0.06556985527276993, 0.02581634745001793, 0.040097638964653015, -0.06107058748602867, -0.0535845011472702, 0.028656097128987312, 0.24310661852359772, 0.1560310423374176, 0.5032745003700256, 0.28921589255332947, 0.2665797173976898, -0.16509249806404114, -0.2013627290725708, -0.2896958589553833, 0.057894136756658554, 0.10029526799917221, -0.08127167820930481, 0.18571846187114716, 0.1985815018415451, 0.18826797604560852, 0.03348086401820183, -0.22378304600715637, -0.48005416989326477, 0.36849474906921387, 0.1311243176460266, -0.2911783456802368, 0.01369959581643343, -0.30546075105667114, -0.20973046123981476, -0.047819141298532486, -0.2719695270061493, -0.032938506454229355, -0.27319222688674927, 0.10028385370969772, 0.2303827852010727, 0.11108927428722382, 0.21874088048934937, 0.0505736880004406, 0.22456173598766327, -0.25333911180496216, 0.07365318387746811, -0.029004205018281937, -0.10451198369264603, -0.0029993022326380014, -0.02655755914747715, 0.36380520462989807, -0.3310740888118744, 0.502433180809021, 0.08928524702787399, -0.1429114192724228, -0.2049168199300766, -0.43616926670074463, 0.027746733278036118, -0.17077064514160156, 0.25607338547706604, 0.07926903665065765, -0.04537845775485039, -0.12055349349975586, -0.2528288960456848, 0.3231552541255951, 0.14333024621009827, -0.06718292832374573, -0.02226000837981701, -0.20926573872566223, -0.3181770443916321, -0.32918184995651245, -0.0019015588331967592, -0.24159224331378937, -0.031334906816482544, 0.1783389449119568, 0.003909036982804537, -0.06209799274802208, 0.6229844689369202, 0.1421978920698166, -0.32693609595298767, 0.11143828183412552, 0.10879261046648026, -0.02046329528093338, -0.37913694977760315, 0.23079290986061096, -0.3280837833881378, -0.24581611156463623, 0.11127522587776184, -0.20785416662693024, 0.4561774432659149, -0.02363061159849167, -0.07424095273017883, -0.05166958272457123, 0.060044076293706894, 0.025043876841664314, -0.024221470579504967, 0.22140473127365112, 0.12332714349031448, 0.12238211929798126, 0.0012239975621923804, -0.239706352353096, -0.4332711100578308, 0.36128103733062744, -0.23037871718406677, 0.23025234043598175, -0.34530413150787354, 0.24058274924755096, 0.07447735965251923, 0.24530331790447235, 0.008091104216873646, 0.04155096411705017, 0.4380146563053131, -0.21884524822235107, 0.38248735666275024, -0.1967354118824005, -0.5095453262329102, 0.26635655760765076, 0.006804970558732748, 0.07467525452375412, -0.05643066391348839, 0.0025116968899965286, -0.15345613658428192, -0.13697420060634613, 0.45965951681137085, -0.29824891686439514, -0.07141485810279846, -0.13954439759254456, -0.06140005961060524, 0.1793225258588791, -0.12868033349514008, -0.23860138654708862, -0.42521169781684875, -0.09792553633451462, -0.3168427348136902, 0.08370629698038101, 0.03005603887140751, -0.08361276984214783, -0.5794287919998169, -0.279966801404953, -0.2095402181148529, 0.09627433121204376, 0.20156043767929077, 0.19982118904590607, -0.250143438577652, 0.3073740005493164, 0.0423252135515213, 0.07501120120286942, 0.6299784183502197, -0.507837176322937, -0.20720909535884857, 0.4064022898674011, 0.08233493566513062, -0.4420141577720642, -0.3596888482570648, -0.0637623518705368, 0.2939622700214386, 0.0598808228969574, 0.3375253975391388, -0.3172762393951416, 0.17529691755771637, 0.1442776769399643, 0.029073039069771767, -0.11574724316596985, -0.26025038957595825, -0.16507063806056976, -0.3463689088821411, -0.25429391860961914, 0.03875819966197014, 0.26105552911758423, 0.22202573716640472, 0.07561056315898895, 0.05578712001442909, 0.045199062675237656, 0.04718731343746185, 0.10670916736125946, -0.007339309900999069, 0.08916009217500687, 0.5999573469161987, 0.3521905243396759, 0.0442497693002224, -0.22389453649520874, 0.5654518604278564, 0.49971699714660645, -0.3498898446559906, -0.27769219875335693, -0.0696084201335907, -0.24923567473888397, 0.24174915254116058, -0.07404286414384842, 0.2450893372297287, 0.207423597574234, 0.25660791993141174, 0.032664623111486435, 0.016942929476499557, 0.19014640152454376, 0.5320227742195129, -0.03386380150914192, -0.587645947933197, -0.3630558252334595, 0.18822430074214935, 0.08403762429952621, -0.09250731021165848, 0.39056771993637085, 0.03558937832713127, -0.310059130191803, 0.20690281689167023, 0.15201637148857117, 0.7129693627357483, -0.5040863156318665, 0.200638085603714, -0.12810607254505157, -0.051407694816589355, 0.6691427826881409, 0.02591482177376747, 0.10605426877737045, -0.16509230434894562, -0.24148578941822052, 0.10752086341381073, 0.06314416229724884, 0.053046923130750656, 0.3399392366409302, -0.1476929783821106, 0.10400791466236115, -0.19961652159690857, 0.14421406388282776, -0.2286394238471985, 0.09427918493747711, 0.24139119684696198, -0.35661157965660095, 0.31552764773368835, 0.1148122027516365, -0.0379263237118721, -0.22128216922283173, 0.014740697108209133, -0.013145691715180874, -0.048553381115198135, -0.27626436948776245, -0.4560346007347107, -0.10824920982122421, -0.3264353573322296, 0.351483553647995, -0.05456650257110596, -0.08294720202684402, 0.09229142218828201, 0.3642343282699585, 0.6377294659614563, -0.08701739460229874, -0.012159891426563263, 0.19312560558319092, -0.007270635571330786, -0.18534120917320251, -0.4156351387500763, -0.25839388370513916, 0.15830497443675995, -0.09677450358867645, -0.34915539622306824, 0.06303282082080841, 0.04832138121128082, -0.292451947927475, -0.17371708154678345, 0.11124134808778763, -0.1338449865579605, 0.08430750668048859, 0.019452020525932312, 0.26588761806488037, 0.2253149449825287, -0.3193776309490204, 0.03043554536998272, 0.05226806551218033, -0.09751743078231812, 0.3346419334411621, -0.15794417262077332, 0.029242930933833122, -0.002738434122875333, 0.33276209235191345, 0.02855156548321247, 0.2265632450580597, 0.41726332902908325, -0.019538836553692818, 0.044150110334157944, -0.07076340168714523, -0.07859725505113602, 0.2807220220565796, -0.35690465569496155, -0.02159222401678562, 0.45095205307006836, 0.06820942461490631, -0.008282747119665146, 0.40703830122947693, 0.006086248438805342, 0.10329802334308624, 0.0879301130771637, -0.12278865277767181, -0.41403234004974365, 0.057179175317287445, -0.4007032513618469, 0.27875685691833496, -0.04079242795705795, 0.4472048282623291, 0.1755102276802063, 0.41073545813560486, -0.20101788640022278, -0.0609036423265934, -0.29435622692108154, -0.00411955313757062, 0.47798818349838257, 0.05595490708947182, -0.13621306419372559, 0.08659374713897705, 0.10840269178152084, -0.1853461116552353, 0.17125342786312103, -0.031115081161260605, -0.17494499683380127, 0.12467294186353683, 0.25140684843063354, 0.1749783456325531, 0.013920302502810955, -0.43095067143440247, -0.1583896279335022, -0.11431985348463058, 0.2133871167898178, 0.2629472017288208, -0.09498674422502518, 0.312213659286499, -0.4964759945869446, 0.0038018077611923218, 0.023873278871178627, 0.14402839541435242, 0.042084451764822006, -0.06076032295823097, 0.3293670415878296, 0.07902523130178452, 0.12721122801303864, -0.14993351697921753, -0.3488270342350006, 0.048253465443849564, -0.4432685077190399, -0.1288999766111374, 0.08417980372905731, -0.36321884393692017, 0.44646286964416504, 0.25671154260635376, 0.23998920619487762, -0.12176252156496048, -0.25934094190597534, 0.42965948581695557, 0.08480142802000046, 0.07337208092212677, -0.21977831423282623, -0.4196282625198364, -0.008430475369095802, 0.02388455905020237, 0.1413664072751999, 0.2538604736328125, 0.21975426375865936, -0.08435644209384918, 0.01703653857111931, -0.1205669492483139, 0.059212736785411835, 0.07183379679918289, 0.11950431764125824, 0.12819722294807434, -0.07267607003450394, 0.08376425504684448, 0.2819843590259552, 0.2315361350774765, 0.06006672605872154, 0.19486673176288605, -0.07223857194185257, 0.30282774567604065, -0.1764681488275528, -0.07571445405483246, 0.24055075645446777, -0.35588935017585754, 0.49762198328971863, -0.18132218718528748, -0.006576656363904476, -0.04458790272474289, -0.0960167944431305, 0.20089243352413177, -0.21102078258991241, -0.38870465755462646, -0.2711663842201233, 0.3218345046043396, -0.13058613240718842, -0.106661356985569, -0.1825629025697708, -0.10564488172531128, -0.05631408467888832, -0.058448873460292816, 0.06906437128782272, -0.19143538177013397, 0.31670552492141724, -0.10986261814832687, -0.1567382514476776, -0.12623536586761475, -0.4305454194545746, 0.4618845582008362, 0.2834601402282715, -0.2831432819366455, 0.20363788306713104, 0.3541105389595032, -0.4410459101200104, 0.1897418051958084, 0.3322361409664154, 0.6006940603256226, 0.2195320874452591, 0.2928982079029083, 0.08387704193592072, -0.17606385052204132, -0.1078898012638092, 0.17421342432498932, 0.049643468111753464, 0.4417835474014282, -0.06862782686948776, 0.13694509863853455, 0.006778273731470108, -0.0832347720861435, 0.29801517724990845, 0.1812421679496765, 0.33938488364219666, -0.016795143485069275, -0.3750320374965668, -0.03410753607749939, -0.17806139588356018, -0.07630064338445663, 0.35836490988731384, -0.32155686616897583, -0.0696079432964325, 0.2845405638217926, -0.0804058164358139, 0.01434177253395319, -0.3408438563346863, 0.018478764221072197, 0.17676830291748047, 0.49238595366477966, 0.18729497492313385, 0.16532890498638153, -0.23729509115219116, -0.12396162748336792, -0.5642417669296265, -0.20429754257202148, -0.31967899203300476, -0.23375099897384644, -0.05779343098402023, -0.09947444498538971, 0.3641066551208496, -0.20351967215538025, 0.6210820078849792, -0.2856462299823761, 0.38483190536499023, 0.3869750201702118, -0.253806471824646, 0.06577056646347046, 0.20190013945102692, 0.07720472663640976, 0.03969880938529968, -0.15819795429706573, -0.08727119117975235, 0.03688425570726395, 0.0007558977813459933, -0.10404261946678162, 0.16268618404865265, -0.20129083096981049, -0.22074533998966217, 0.19883283972740173, 0.0763101726770401, 0.8045893311500549, -0.05586077645421028, 0.06465697288513184, -0.1496192067861557, -0.056061387062072754, -0.10255517065525055, 0.06812046468257904, 0.428215891122818, 0.5867266654968262, -0.2910677492618561, -0.06611748784780502, -0.06739900261163712, -0.016199156641960144, -0.09806115925312042, -0.04759280011057854, -0.28806039690971375, 0.3186069428920746, -0.019151825457811356, 0.00559860048815608, 0.2622627913951874, 0.2214759737253189, -0.05654250457882881, 0.04059890657663345, -0.026139453053474426, -0.3694877326488495, 0.5187731981277466, -0.19146965444087982, -0.13480885326862335, -0.17388880252838135, 0.013972879387438297, 0.050774477422237396, 0.10487372428178787, -0.3421270549297333, 0.12844297289848328, 0.25542891025543213, 0.07507585734128952, -0.7180348038673401, 0.4141150712966919, -0.2150636613368988, -0.05440381169319153, 0.08227552473545074, 0.006115051917731762, -0.11764318495988846, 0.02044750191271305, -0.13533341884613037, -0.10601946711540222 ]
https://github.com/huggingface/datasets/issues/1811
Unable to add Multi-label Datasets
Thanks @yjernite @lhoestq The template for new dataset makes it slightly confusing. I suppose the comment suggesting its update can be removed.
I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as `supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error : ```python Traceback (most recent call last): File "test_script.py", line 2, in <module> d = load_dataset('./datasets/cifar100') File "~/datasets/src/datasets/load.py", line 668, in load_dataset **config_kwargs, File "~/datasets/src/datasets/builder.py", line 896, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "~/datasets/src/datasets/builder.py", line 247, in __init__ info.update(self._info()) File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info citation=_CITATION, File "<string>", line 19, in __init__ File "~/datasets/src/datasets/info.py", line 136, in __post_init__ self.supervised_keys = SupervisedKeysData(*self.supervised_keys) TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given ``` Is there a way I can fix this? Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset? Thanks, Gunjan
22
Unable to add Multi-label Datasets I am trying to add [CIFAR-100](https://www.cs.toronto.edu/~kriz/cifar.html) dataset. The dataset contains two labels per image - `fine label` and `coarse label`. Using just one label in supervised keys as `supervised_keys=("img", "fine_label")` raises no issue. But trying `supervised_keys=("img", "fine_label","coarse_label")` leads to this error : ```python Traceback (most recent call last): File "test_script.py", line 2, in <module> d = load_dataset('./datasets/cifar100') File "~/datasets/src/datasets/load.py", line 668, in load_dataset **config_kwargs, File "~/datasets/src/datasets/builder.py", line 896, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "~/datasets/src/datasets/builder.py", line 247, in __init__ info.update(self._info()) File "~/.cache/huggingface/modules/datasets_modules/datasets/cifar100/61d2489b2d4a4abc34201432541b7380984ec714e290817d9a1ee318e4b74e0f/cifar100.py", line 79, in _info citation=_CITATION, File "<string>", line 19, in __init__ File "~/datasets/src/datasets/info.py", line 136, in __post_init__ self.supervised_keys = SupervisedKeysData(*self.supervised_keys) TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given ``` Is there a way I can fix this? Also, what does adding `supervised_keys` do? Is it necessary? How would I specify `supervised_keys` for a multi-input, multi-label dataset? Thanks, Gunjan Thanks @yjernite @lhoestq The template for new dataset makes it slightly confusing. I suppose the comment suggesting its update can be removed.
[ 0.021658901125192642, -0.2712227702140808, 0.018145699054002762, 0.1329580694437027, 0.3712173402309418, 0.3166494071483612, 0.6164789795875549, -0.4762451946735382, 0.19942520558834076, 0.2660486698150635, -0.21772700548171997, 0.1535530686378479, -0.27598774433135986, 0.3479330539703369, 0.10803268104791641, -0.12047648429870605, 0.1780964434146881, -0.2174011766910553, 0.02560088410973549, -0.03326762467622757, -0.22154071927070618, 0.007430052850395441, -0.2346252202987671, -0.28403589129447937, -0.6864251494407654, -0.2522571384906769, -0.3487633764743805, -0.16003721952438354, -0.26118528842926025, -0.6842927932739258, 0.17423462867736816, 0.32761746644973755, -0.1799798607826233, 0.48681703209877014, -0.00011896973592229187, 0.053939469158649445, 0.006014913786202669, -0.0270137470215559, -0.13157525658607483, -0.08840881288051605, 0.03389580175280571, -0.09976562112569809, -0.023081401363015175, -0.1876847892999649, -0.020591437816619873, -0.3216598629951477, -0.047854501754045486, -0.2678292989730835, 0.2622794210910797, 0.17089836299419403, 0.1447005271911621, -0.12118208408355713, 0.3119577169418335, -0.17778435349464417, -0.03400411456823349, 0.20135188102722168, -0.12939728796482086, 0.15727494657039642, 0.13255557417869568, -0.16186027228832245, 0.4810110926628113, 0.25270867347717285, -0.004530114121735096, -0.1883498728275299, 0.4128495454788208, -0.04078090935945511, -0.1479683667421341, -0.5755077004432678, 0.15249301493167877, 0.3097069561481476, 0.6528828740119934, -0.03769712150096893, -0.6485273241996765, -0.1441008299589157, 0.39860936999320984, -0.16047444939613342, -0.14034275710582733, 0.010432546958327293, -0.0038599236868321896, -0.23750083148479462, -0.36924439668655396, -0.049882009625434875, -0.2118254452943802, 0.2764356732368469, 0.33317145705223083, 0.35761478543281555, 0.0522681288421154, 0.3509880602359772, 0.27029767632484436, -0.05738404020667076, -0.02526295930147171, -0.10565540939569473, 0.04515485838055611, 0.22215092182159424, -0.28982454538345337, 0.1726468950510025, -0.04759848862886429, 0.13915209472179413, 0.14510343968868256, -0.10272183269262314, 0.052556995302438736, -0.32326740026474, -0.2117181271314621, 0.11969383805990219, 0.10273193567991257, -0.019669730216264725, -0.0022723593283444643, 0.4025922417640686, -0.03666387125849724, -0.02745825983583927, 0.11020921915769577, -0.2352026253938675, -0.0683445930480957, -0.12961117923259735, 0.3619588613510132, 0.1870023012161255, -0.14242127537727356, 0.11664672195911407, 0.046224430203437805, -0.15703248977661133, -0.061152633279561996, -0.03227598965167999, 0.3567191958427429, 0.309689998626709, 0.23467734456062317, 0.013893958181142807, 0.10588449984788895, 0.4291902780532837, 0.10788159817457199, 0.05489731952548027, -0.1495380997657776, 0.3543502390384674, -0.14015652239322662, 0.021800626069307327, 0.2909836769104004, 0.0014114807127043605, 0.12716716527938843, 0.32069820165634155, 0.2556930184364319, -0.1487245112657547, 0.04745427519083023, -0.22020092606544495, 0.19376112520694733, 0.3569912314414978, -0.02558566816151142, 0.2145911604166031, -0.04567849636077881, -0.3797813355922699, -0.1100405752658844, 0.04526669904589653, -0.33118340373039246, -0.025780266150832176, -0.05222659185528755, 0.06997707486152649, 0.19530853629112244, -0.09171915054321289, -0.47711727023124695, 0.20146770775318146, 0.12351628392934799, 0.03392089158296585, -0.07022546976804733, -0.20455576479434967, -0.2669662833213806, -0.25251176953315735, 0.2751835882663727, 0.40117257833480835, -0.2575540840625763, -0.20916634798049927, -0.11507037281990051, 0.16938990354537964, -0.2034933716058731, 0.21283718943595886, -0.2620733082294464, 0.4487384855747223, -0.09403090924024582, 0.06289318203926086, 0.04267563298344612, -0.8922803997993469, -0.06668280810117722, -0.014757664874196053, 0.08666063845157623, -0.12850399315357208, 0.161407008767128, 0.3256177306175232, 0.10879892110824585, 0.028979361057281494, 0.14260193705558777, 0.11376069486141205, -0.19244951009750366, -0.048209577798843384, 0.17883752286434174, 0.1565857082605362, -0.1048269122838974, 0.30700212717056274, 0.21028394997119904, -0.21032503247261047, 0.15642236173152924, -0.15666648745536804, -0.016030792146921158, -0.16356875002384186, 0.12073849141597748, 0.3795168697834015, 0.2092379331588745, -0.049986839294433594, 0.031323451548814774, 0.03800344467163086, -0.4350186288356781, 0.4339154362678528, 0.2955782115459442, 0.30499541759490967, -0.1049283891916275, -0.17570489645004272, -0.011610230430960655, 0.06134887784719467, -0.485291063785553, -0.11461786925792694, 0.06567423045635223, 0.2741549015045166, -0.09148062765598297, -0.05996081605553627, 0.020596059039235115, 0.13930043578147888, 0.43971627950668335, 0.1631939560174942, 0.08983618766069412, 0.03511005640029907, -0.12541407346725464, 0.03179694339632988, -0.09822825342416763, 0.017950650304555893, 0.40892210602760315, -0.0632743388414383, 0.034885160624980927, 0.45611312985420227, 0.1855805218219757, -0.3028659224510193, -0.15818534791469574, 0.06319347769021988, 0.4092928171157837, -0.2760547995567322, -0.2940945327281952, -0.20074020326137543, 0.23204298317432404, -0.34117257595062256, -0.15501369535923004, 0.07752617448568344, -0.3345652222633362, 0.2867102324962616, -0.006310620345175266, 0.19574704766273499, 0.1347322016954422, 0.10282281041145325, -0.11359091848134995, -0.20674921572208405, 0.037919316440820694, -0.18223269283771515, -0.02283547818660736, -0.2354646623134613, 0.04138779267668724, 0.06556985527276993, 0.02581634745001793, 0.040097638964653015, -0.06107058748602867, -0.0535845011472702, 0.028656097128987312, 0.24310661852359772, 0.1560310423374176, 0.5032745003700256, 0.28921589255332947, 0.2665797173976898, -0.16509249806404114, -0.2013627290725708, -0.2896958589553833, 0.057894136756658554, 0.10029526799917221, -0.08127167820930481, 0.18571846187114716, 0.1985815018415451, 0.18826797604560852, 0.03348086401820183, -0.22378304600715637, -0.48005416989326477, 0.36849474906921387, 0.1311243176460266, -0.2911783456802368, 0.01369959581643343, -0.30546075105667114, -0.20973046123981476, -0.047819141298532486, -0.2719695270061493, -0.032938506454229355, -0.27319222688674927, 0.10028385370969772, 0.2303827852010727, 0.11108927428722382, 0.21874088048934937, 0.0505736880004406, 0.22456173598766327, -0.25333911180496216, 0.07365318387746811, -0.029004205018281937, -0.10451198369264603, -0.0029993022326380014, -0.02655755914747715, 0.36380520462989807, -0.3310740888118744, 0.502433180809021, 0.08928524702787399, -0.1429114192724228, -0.2049168199300766, -0.43616926670074463, 0.027746733278036118, -0.17077064514160156, 0.25607338547706604, 0.07926903665065765, -0.04537845775485039, -0.12055349349975586, -0.2528288960456848, 0.3231552541255951, 0.14333024621009827, -0.06718292832374573, -0.02226000837981701, -0.20926573872566223, -0.3181770443916321, -0.32918184995651245, -0.0019015588331967592, -0.24159224331378937, -0.031334906816482544, 0.1783389449119568, 0.003909036982804537, -0.06209799274802208, 0.6229844689369202, 0.1421978920698166, -0.32693609595298767, 0.11143828183412552, 0.10879261046648026, -0.02046329528093338, -0.37913694977760315, 0.23079290986061096, -0.3280837833881378, -0.24581611156463623, 0.11127522587776184, -0.20785416662693024, 0.4561774432659149, -0.02363061159849167, -0.07424095273017883, -0.05166958272457123, 0.060044076293706894, 0.025043876841664314, -0.024221470579504967, 0.22140473127365112, 0.12332714349031448, 0.12238211929798126, 0.0012239975621923804, -0.239706352353096, -0.4332711100578308, 0.36128103733062744, -0.23037871718406677, 0.23025234043598175, -0.34530413150787354, 0.24058274924755096, 0.07447735965251923, 0.24530331790447235, 0.008091104216873646, 0.04155096411705017, 0.4380146563053131, -0.21884524822235107, 0.38248735666275024, -0.1967354118824005, -0.5095453262329102, 0.26635655760765076, 0.006804970558732748, 0.07467525452375412, -0.05643066391348839, 0.0025116968899965286, -0.15345613658428192, -0.13697420060634613, 0.45965951681137085, -0.29824891686439514, -0.07141485810279846, -0.13954439759254456, -0.06140005961060524, 0.1793225258588791, -0.12868033349514008, -0.23860138654708862, -0.42521169781684875, -0.09792553633451462, -0.3168427348136902, 0.08370629698038101, 0.03005603887140751, -0.08361276984214783, -0.5794287919998169, -0.279966801404953, -0.2095402181148529, 0.09627433121204376, 0.20156043767929077, 0.19982118904590607, -0.250143438577652, 0.3073740005493164, 0.0423252135515213, 0.07501120120286942, 0.6299784183502197, -0.507837176322937, -0.20720909535884857, 0.4064022898674011, 0.08233493566513062, -0.4420141577720642, -0.3596888482570648, -0.0637623518705368, 0.2939622700214386, 0.0598808228969574, 0.3375253975391388, -0.3172762393951416, 0.17529691755771637, 0.1442776769399643, 0.029073039069771767, -0.11574724316596985, -0.26025038957595825, -0.16507063806056976, -0.3463689088821411, -0.25429391860961914, 0.03875819966197014, 0.26105552911758423, 0.22202573716640472, 0.07561056315898895, 0.05578712001442909, 0.045199062675237656, 0.04718731343746185, 0.10670916736125946, -0.007339309900999069, 0.08916009217500687, 0.5999573469161987, 0.3521905243396759, 0.0442497693002224, -0.22389453649520874, 0.5654518604278564, 0.49971699714660645, -0.3498898446559906, -0.27769219875335693, -0.0696084201335907, -0.24923567473888397, 0.24174915254116058, -0.07404286414384842, 0.2450893372297287, 0.207423597574234, 0.25660791993141174, 0.032664623111486435, 0.016942929476499557, 0.19014640152454376, 0.5320227742195129, -0.03386380150914192, -0.587645947933197, -0.3630558252334595, 0.18822430074214935, 0.08403762429952621, -0.09250731021165848, 0.39056771993637085, 0.03558937832713127, -0.310059130191803, 0.20690281689167023, 0.15201637148857117, 0.7129693627357483, -0.5040863156318665, 0.200638085603714, -0.12810607254505157, -0.051407694816589355, 0.6691427826881409, 0.02591482177376747, 0.10605426877737045, -0.16509230434894562, -0.24148578941822052, 0.10752086341381073, 0.06314416229724884, 0.053046923130750656, 0.3399392366409302, -0.1476929783821106, 0.10400791466236115, -0.19961652159690857, 0.14421406388282776, -0.2286394238471985, 0.09427918493747711, 0.24139119684696198, -0.35661157965660095, 0.31552764773368835, 0.1148122027516365, -0.0379263237118721, -0.22128216922283173, 0.014740697108209133, -0.013145691715180874, -0.048553381115198135, -0.27626436948776245, -0.4560346007347107, -0.10824920982122421, -0.3264353573322296, 0.351483553647995, -0.05456650257110596, -0.08294720202684402, 0.09229142218828201, 0.3642343282699585, 0.6377294659614563, -0.08701739460229874, -0.012159891426563263, 0.19312560558319092, -0.007270635571330786, -0.18534120917320251, -0.4156351387500763, -0.25839388370513916, 0.15830497443675995, -0.09677450358867645, -0.34915539622306824, 0.06303282082080841, 0.04832138121128082, -0.292451947927475, -0.17371708154678345, 0.11124134808778763, -0.1338449865579605, 0.08430750668048859, 0.019452020525932312, 0.26588761806488037, 0.2253149449825287, -0.3193776309490204, 0.03043554536998272, 0.05226806551218033, -0.09751743078231812, 0.3346419334411621, -0.15794417262077332, 0.029242930933833122, -0.002738434122875333, 0.33276209235191345, 0.02855156548321247, 0.2265632450580597, 0.41726332902908325, -0.019538836553692818, 0.044150110334157944, -0.07076340168714523, -0.07859725505113602, 0.2807220220565796, -0.35690465569496155, -0.02159222401678562, 0.45095205307006836, 0.06820942461490631, -0.008282747119665146, 0.40703830122947693, 0.006086248438805342, 0.10329802334308624, 0.0879301130771637, -0.12278865277767181, -0.41403234004974365, 0.057179175317287445, -0.4007032513618469, 0.27875685691833496, -0.04079242795705795, 0.4472048282623291, 0.1755102276802063, 0.41073545813560486, -0.20101788640022278, -0.0609036423265934, -0.29435622692108154, -0.00411955313757062, 0.47798818349838257, 0.05595490708947182, -0.13621306419372559, 0.08659374713897705, 0.10840269178152084, -0.1853461116552353, 0.17125342786312103, -0.031115081161260605, -0.17494499683380127, 0.12467294186353683, 0.25140684843063354, 0.1749783456325531, 0.013920302502810955, -0.43095067143440247, -0.1583896279335022, -0.11431985348463058, 0.2133871167898178, 0.2629472017288208, -0.09498674422502518, 0.312213659286499, -0.4964759945869446, 0.0038018077611923218, 0.023873278871178627, 0.14402839541435242, 0.042084451764822006, -0.06076032295823097, 0.3293670415878296, 0.07902523130178452, 0.12721122801303864, -0.14993351697921753, -0.3488270342350006, 0.048253465443849564, -0.4432685077190399, -0.1288999766111374, 0.08417980372905731, -0.36321884393692017, 0.44646286964416504, 0.25671154260635376, 0.23998920619487762, -0.12176252156496048, -0.25934094190597534, 0.42965948581695557, 0.08480142802000046, 0.07337208092212677, -0.21977831423282623, -0.4196282625198364, -0.008430475369095802, 0.02388455905020237, 0.1413664072751999, 0.2538604736328125, 0.21975426375865936, -0.08435644209384918, 0.01703653857111931, -0.1205669492483139, 0.059212736785411835, 0.07183379679918289, 0.11950431764125824, 0.12819722294807434, -0.07267607003450394, 0.08376425504684448, 0.2819843590259552, 0.2315361350774765, 0.06006672605872154, 0.19486673176288605, -0.07223857194185257, 0.30282774567604065, -0.1764681488275528, -0.07571445405483246, 0.24055075645446777, -0.35588935017585754, 0.49762198328971863, -0.18132218718528748, -0.006576656363904476, -0.04458790272474289, -0.0960167944431305, 0.20089243352413177, -0.21102078258991241, -0.38870465755462646, -0.2711663842201233, 0.3218345046043396, -0.13058613240718842, -0.106661356985569, -0.1825629025697708, -0.10564488172531128, -0.05631408467888832, -0.058448873460292816, 0.06906437128782272, -0.19143538177013397, 0.31670552492141724, -0.10986261814832687, -0.1567382514476776, -0.12623536586761475, -0.4305454194545746, 0.4618845582008362, 0.2834601402282715, -0.2831432819366455, 0.20363788306713104, 0.3541105389595032, -0.4410459101200104, 0.1897418051958084, 0.3322361409664154, 0.6006940603256226, 0.2195320874452591, 0.2928982079029083, 0.08387704193592072, -0.17606385052204132, -0.1078898012638092, 0.17421342432498932, 0.049643468111753464, 0.4417835474014282, -0.06862782686948776, 0.13694509863853455, 0.006778273731470108, -0.0832347720861435, 0.29801517724990845, 0.1812421679496765, 0.33938488364219666, -0.016795143485069275, -0.3750320374965668, -0.03410753607749939, -0.17806139588356018, -0.07630064338445663, 0.35836490988731384, -0.32155686616897583, -0.0696079432964325, 0.2845405638217926, -0.0804058164358139, 0.01434177253395319, -0.3408438563346863, 0.018478764221072197, 0.17676830291748047, 0.49238595366477966, 0.18729497492313385, 0.16532890498638153, -0.23729509115219116, -0.12396162748336792, -0.5642417669296265, -0.20429754257202148, -0.31967899203300476, -0.23375099897384644, -0.05779343098402023, -0.09947444498538971, 0.3641066551208496, -0.20351967215538025, 0.6210820078849792, -0.2856462299823761, 0.38483190536499023, 0.3869750201702118, -0.253806471824646, 0.06577056646347046, 0.20190013945102692, 0.07720472663640976, 0.03969880938529968, -0.15819795429706573, -0.08727119117975235, 0.03688425570726395, 0.0007558977813459933, -0.10404261946678162, 0.16268618404865265, -0.20129083096981049, -0.22074533998966217, 0.19883283972740173, 0.0763101726770401, 0.8045893311500549, -0.05586077645421028, 0.06465697288513184, -0.1496192067861557, -0.056061387062072754, -0.10255517065525055, 0.06812046468257904, 0.428215891122818, 0.5867266654968262, -0.2910677492618561, -0.06611748784780502, -0.06739900261163712, -0.016199156641960144, -0.09806115925312042, -0.04759280011057854, -0.28806039690971375, 0.3186069428920746, -0.019151825457811356, 0.00559860048815608, 0.2622627913951874, 0.2214759737253189, -0.05654250457882881, 0.04059890657663345, -0.026139453053474426, -0.3694877326488495, 0.5187731981277466, -0.19146965444087982, -0.13480885326862335, -0.17388880252838135, 0.013972879387438297, 0.050774477422237396, 0.10487372428178787, -0.3421270549297333, 0.12844297289848328, 0.25542891025543213, 0.07507585734128952, -0.7180348038673401, 0.4141150712966919, -0.2150636613368988, -0.05440381169319153, 0.08227552473545074, 0.006115051917731762, -0.11764318495988846, 0.02044750191271305, -0.13533341884613037, -0.10601946711540222 ]
https://github.com/huggingface/datasets/issues/1810
Add Hateful Memes Dataset
Hi @gchhablani since Array2D doesn't support images of different sizes, I would suggest to store in the dataset the paths to the image file instead of the image data. This has the advantage of not decompressing the data (images are often compressed using jpeg, png etc.). Users can still apply `.map` to load the images if they want to. Though it would en up being Sequences features. In the future we'll add support for ragged tensors for this case and update the relevant dataset with this feature.
## Add Hateful Memes Dataset - **Name:** Hateful Memes - **Description:** [https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set]( https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set) - **Paper:** [https://arxiv.org/pdf/2005.04790.pdf](https://arxiv.org/pdf/2005.04790.pdf) - **Data:** [This link](https://drivendata-competition-fb-hateful-memes-data.s3.amazonaws.com/XjiOc5ycDBRRNwbhRlgH.zip?AWSAccessKeyId=AKIARVBOBDCY4MWEDJKS&Signature=DaUuGgZWUgDHzEPPbyJ2PhSJ56Q%3D&Expires=1612816874) - **Motivation:** Including multi-modal datasets to 🤗 datasets. I will be adding this dataset. It requires the user to sign an agreement on DrivenData. So, it will be used with a manual download. The issue with this dataset is that the images are of different sizes. The image datasets added so far (CIFAR-10 and MNIST) have a uniform shape throughout. So something like ```python datasets.Array2D(shape=(28, 28), dtype="uint8") ``` won't work for the images. How would I add image features then? I checked `datasets/features.py` but couldn't figure out the appropriate class for this. I'm assuming I would want to avoid re-sizing at all since we want the user to be able to access the original images. Also, in case I want to load only a subset of the data, since the actual data is around 8.8GB, how would that be possible? Thanks, Gunjan
87
Add Hateful Memes Dataset ## Add Hateful Memes Dataset - **Name:** Hateful Memes - **Description:** [https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set]( https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set) - **Paper:** [https://arxiv.org/pdf/2005.04790.pdf](https://arxiv.org/pdf/2005.04790.pdf) - **Data:** [This link](https://drivendata-competition-fb-hateful-memes-data.s3.amazonaws.com/XjiOc5ycDBRRNwbhRlgH.zip?AWSAccessKeyId=AKIARVBOBDCY4MWEDJKS&Signature=DaUuGgZWUgDHzEPPbyJ2PhSJ56Q%3D&Expires=1612816874) - **Motivation:** Including multi-modal datasets to 🤗 datasets. I will be adding this dataset. It requires the user to sign an agreement on DrivenData. So, it will be used with a manual download. The issue with this dataset is that the images are of different sizes. The image datasets added so far (CIFAR-10 and MNIST) have a uniform shape throughout. So something like ```python datasets.Array2D(shape=(28, 28), dtype="uint8") ``` won't work for the images. How would I add image features then? I checked `datasets/features.py` but couldn't figure out the appropriate class for this. I'm assuming I would want to avoid re-sizing at all since we want the user to be able to access the original images. Also, in case I want to load only a subset of the data, since the actual data is around 8.8GB, how would that be possible? Thanks, Gunjan Hi @gchhablani since Array2D doesn't support images of different sizes, I would suggest to store in the dataset the paths to the image file instead of the image data. This has the advantage of not decompressing the data (images are often compressed using jpeg, png etc.). Users can still apply `.map` to load the images if they want to. Though it would en up being Sequences features. In the future we'll add support for ragged tensors for this case and update the relevant dataset with this feature.
[ -0.2504219114780426, 0.15920674800872803, -0.14461420476436615, 0.04864080995321274, 0.10480515658855438, 0.2664598822593689, 0.44498857855796814, -0.07321282476186752, -0.08323463797569275, -0.22534556686878204, -0.023050617426633835, -0.2821846306324005, -0.5021377801895142, 0.24750104546546936, 0.015647903084754944, -0.12452059239149094, 0.0323907732963562, 0.03152339532971382, -0.18466125428676605, -0.05561379715800285, -0.03909805044531822, -0.17182277143001556, 0.18335719406604767, -0.2621168792247772, -0.5729026198387146, -0.07941312342882156, -0.29227134585380554, 0.2743026912212372, -0.17467090487480164, -0.475730299949646, 0.03421228379011154, 0.36687248945236206, 0.142536923289299, 0.5114073753356934, -0.00011803744564531371, 0.061329107731580734, -0.08145613968372345, -0.1974325329065323, 0.04601433500647545, 0.09798076748847961, 0.07889611274003983, -0.5317844152450562, -0.12052460759878159, -0.2593849003314972, 0.14250241219997406, -0.49977371096611023, 0.20766673982143402, -0.050546783953905106, 0.672163724899292, -0.0005179994041100144, 0.14034074544906616, -0.16781389713287354, 0.22367790341377258, -0.029541539028286934, 0.030244292691349983, 0.7310444116592407, -0.05351124703884125, -0.24489310383796692, 0.0850687325000763, 0.10538990795612335, 0.24147586524486542, 0.26610657572746277, -0.18244598805904388, 0.09815942496061325, 0.46866747736930847, -0.1495056003332138, -0.08503028750419617, -0.36514028906822205, 0.06925477087497711, 0.3533005118370056, 0.31580910086631775, -0.11577384173870087, -0.28308939933776855, -0.47895222902297974, -0.05198714882135391, 0.04707556217908859, -0.09738141298294067, 0.2933708429336548, -0.002427788684144616, -0.00836212933063507, -0.4078707993030548, -0.11137926578521729, -0.3908494710922241, 0.4031020700931549, -0.012804211117327213, -0.11137427389621735, 0.04416065290570259, 0.331326961517334, -0.047041818499565125, -0.31768083572387695, -0.050353389233350754, -0.03211943060159683, 0.3344103693962097, 0.29427120089530945, 0.24712347984313965, 0.035724006593227386, -0.23383499681949615, -0.2644749879837036, 0.49435463547706604, -0.27468448877334595, -0.03651869669556618, -0.061168864369392395, -0.5127965211868286, -0.10919605940580368, 0.17286692559719086, -0.21865566074848175, -0.41338658332824707, 0.28842267394065857, 0.14234523475170135, 0.02390756644308567, -0.06801849603652954, -0.00006609522824874148, -0.17210079729557037, 0.08525951951742172, -0.020611928775906563, -0.04136794060468674, 0.2201981097459793, 0.006569497287273407, -0.22257180511951447, -0.22367054224014282, 0.10903873294591904, 0.06131169572472572, -0.0797579362988472, 0.1821882128715515, 0.09283702820539474, -0.04679323360323906, -0.06916456669569016, 0.23129276931285858, 0.06429275125265121, -0.11133304983377457, -0.12132416665554047, -0.046507347375154495, -0.0835089161992073, 0.21894077956676483, 0.31733715534210205, 0.4066413938999176, 0.3729766011238098, -0.05023551732301712, 0.03614366427063942, 0.1877480298280716, 0.17032961547374725, -0.153628408908844, 0.23974058032035828, 0.10256315022706985, 0.12395907193422318, -0.04430413991212845, -0.025907866656780243, 0.13735102117061615, -0.17836116254329681, 0.1234840378165245, -0.29652708768844604, -0.034952014684677124, -0.07875049859285355, 0.06077041104435921, -0.307310551404953, 0.1393750011920929, -0.09527560323476791, 0.3325932025909424, 0.04459919035434723, -0.09985706210136414, 0.07982237637042999, -0.06911606341600418, -0.29161375761032104, -0.4136887788772583, 0.07314607501029968, 0.5717688202857971, -0.41980019211769104, -0.03886780887842178, -0.2598002254962921, 0.0048764487728476524, -0.3514770567417145, 0.1411682665348053, -0.07384621351957321, 0.08048307150602341, -0.14229564368724823, -0.039553843438625336, 0.19716770946979523, -0.16465400159358978, -0.29174041748046875, 0.14480286836624146, 0.050373390316963196, 0.26913556456565857, 0.19973719120025635, 0.410245805978775, 0.16798804700374603, -0.0923599824309349, -0.003996121697127819, 0.6235694289207458, -0.22701674699783325, -0.023236451670527458, 0.2167758345603943, -0.45493102073669434, 0.09008951485157013, 0.3774317800998688, 0.3031716048717499, -0.2699357867240906, 0.3662011921405792, -0.05291421338915825, 0.1597314178943634, -0.2786392867565155, 0.18431246280670166, 0.07291804999113083, 0.3280523121356964, 0.004463911056518555, 0.0812784805893898, -0.19096989929676056, -0.5832837820053101, 0.29148775339126587, -0.13016317784786224, -0.24256198108196259, -0.18905335664749146, -0.07453648746013641, -0.2226569950580597, -0.16954530775547028, -0.5431607365608215, -0.14398786425590515, 0.08096519112586975, 0.06736752390861511, 0.11733397841453552, -0.08551198989152908, -0.10755705833435059, 0.3108450174331665, 0.03776368498802185, 0.03766275942325592, 0.07594022899866104, 0.35627415776252747, 0.25269296765327454, -0.25909024477005005, -0.1550348550081253, 0.19333042204380035, -0.07706595957279205, -0.2776981294155121, 0.03105812706053257, 0.4657759964466095, 0.25330913066864014, 0.1999029666185379, -0.060283511877059937, 0.592109203338623, 0.386493980884552, -0.4306574761867523, 0.4246516525745392, 0.29811912775039673, 0.16764715313911438, -0.19624842703342438, -0.14481483399868011, 0.41619330644607544, -0.10860487073659897, 0.09449680149555206, -0.09016038477420807, -0.1568724364042282, 0.12085215747356415, 0.1988421529531479, -0.06973517686128616, -0.48602625727653503, -0.13755859434604645, 0.31243467330932617, -0.03528325632214546, -0.03331952169537544, 0.08166094124317169, -0.031101662665605545, 0.1444079726934433, 0.15842097997665405, 0.19508807361125946, 0.11747810244560242, -0.20450931787490845, 0.21766845881938934, 0.11602480709552765, -0.08205876499414444, 0.5058946013450623, 0.24380244314670563, -0.2884393632411957, 0.18931995332241058, 0.044155217707157135, 0.07033462822437286, -0.059177249670028687, 0.07188072055578232, 0.1592862904071808, 0.18146474659442902, 0.2923961579799652, -0.09721153229475021, -0.2935049831867218, -0.3649146258831024, -0.04641018807888031, -0.13917067646980286, 0.02850908227264881, -0.21593089401721954, -0.17600345611572266, -0.07524320483207703, -0.17717334628105164, 0.06190049275755882, -0.2731117606163025, 0.31030091643333435, 0.24326783418655396, -0.08444727957248688, -0.007645872887223959, 0.09867087006568909, -0.1790376454591751, 0.4522785544395447, 0.1903005987405777, -0.11243879050016403, 0.20188935101032257, 0.27380868792533875, -0.17222480475902557, 0.023475170135498047, 0.3414863348007202, 0.018095239996910095, 0.31039509177207947, -0.20857496559619904, 0.2875603437423706, -0.3016800284385681, -0.5269964933395386, -0.017756234854459763, -0.12786245346069336, 0.4184366762638092, 0.15831860899925232, 0.05698150023818016, 0.14661435782909393, -0.04908912628889084, 0.2545941174030304, 0.08397029340267181, -0.1261514276266098, -0.3579850494861603, -0.31245604157447815, -0.11762857437133789, 0.08763369172811508, 0.18753831088542938, -0.2937677204608917, -0.24343548715114594, 0.46452847123146057, 0.5125318765640259, 0.1423606276512146, 0.2152913212776184, 0.5227332711219788, -0.15631897747516632, 0.16883693635463715, 0.21147990226745605, -0.06237325072288513, -0.08160501718521118, 0.4824645221233368, -0.2617926001548767, -0.2787494659423828, -0.0011837694328278303, -0.20051659643650055, -0.21265101432800293, 0.3634594678878784, -0.4871136248111725, -0.17809481918811798, -0.12022523581981659, 0.18780425190925598, 0.03205398470163345, -0.026077985763549805, 0.08247121423482895, -0.02816898003220558, 0.11324067413806915, -0.06632236391305923, -0.09983155876398087, 0.07641280442476273, 0.3912820518016815, 0.22112609446048737, 0.08915509283542633, -0.036057692021131516, 0.2834278643131256, 0.49735313653945923, 0.05044301971793175, -0.07786983251571655, 0.447595477104187, 0.059290479868650436, 0.26283690333366394, -0.0026232032105326653, -0.35715559124946594, 0.3998308777809143, 0.19781848788261414, -0.18149034678936005, 0.14136798679828644, 0.12341222912073135, 0.014039945788681507, 0.04654700681567192, 0.3846573233604431, -0.19507402181625366, -0.1501944363117218, 0.2425002008676529, 0.035656169056892395, 0.20805977284908295, -0.22315412759780884, -0.2774925231933594, -0.7103004455566406, -0.21365176141262054, 0.06083650141954422, 0.2419246882200241, -0.2063901126384735, 0.266142874956131, -0.6109216213226318, -0.04515978693962097, 0.16075171530246735, 0.3234848380088806, 0.16102172434329987, 0.06865807622671127, -0.12070045620203018, -0.07368837296962738, -0.04315823316574097, 0.029051290825009346, 0.7224554419517517, 0.018490279093384743, -0.3272469639778137, -0.02010195329785347, 0.23693622648715973, -0.38155829906463623, -0.2712821364402771, 0.10928450524806976, -0.08269653469324112, -0.14916600286960602, 0.6568527817726135, -0.25731441378593445, 0.05127107352018356, 0.24504752457141876, 0.32196441292762756, -0.14876435697078705, -0.22229647636413574, -0.093742735683918, -0.3714408576488495, -0.47414010763168335, -0.13255061209201813, 0.17940042912960052, 0.056334782391786575, 0.17608606815338135, -0.4480552673339844, -0.09188470244407654, -0.19439680874347687, 0.1649768203496933, 0.10580147802829742, 0.09518849849700928, 0.2612830698490143, -0.03457199037075043, 0.1756412535905838, -0.15843349695205688, 0.2575206458568573, 0.37416085600852966, 0.04391379654407501, -0.1428470015525818, 0.09494664520025253, -0.16858437657356262, 0.1172884926199913, 0.459748238325119, 0.23443052172660828, -0.20630525052547455, 0.026583276689052582, -0.0773552730679512, -0.18097209930419922, 0.4501098096370697, 0.1412697285413742, -0.26580291986465454, -0.02445530705153942, -0.5977187156677246, 0.19395679235458374, 0.1625722199678421, 0.03873351588845253, 0.08333419263362885, -0.1662767380475998, -0.2910219728946686, 0.3688752353191376, 0.41488969326019287, 0.8890541791915894, -0.10047618299722672, 0.3690142035484314, -0.17448218166828156, 0.1872290074825287, 0.02918574959039688, -0.21270917356014252, -0.21515212953090668, 0.10230688005685806, 0.016673719510436058, -0.12871812283992767, -0.0617997907102108, 0.30941522121429443, 0.21820443868637085, 0.1082584485411644, 0.037007562816143036, 0.13059267401695251, 0.14515767991542816, -0.08333686739206314, 0.19100049138069153, -0.29103055596351624, -0.37544700503349304, -0.022443052381277084, 0.07180937379598618, 0.002581430599093437, -0.09750533103942871, -0.10283661633729935, -0.17508815228939056, -0.12858392298221588, -0.062465060502290726, -0.3139394521713257, -0.41700586676597595, -0.6177833080291748, 0.31160178780555725, 0.09591500461101532, -0.15834251046180725, -0.0477428212761879, 0.4364587068557739, 0.23877428472042084, -0.02166917733848095, -0.09991760551929474, 0.18134821951389313, 0.13933368027210236, 0.015907080844044685, -0.3843265771865845, -0.47229260206222534, 0.38908982276916504, -0.009745778515934944, -0.0883992537856102, 0.04081857204437256, 0.18522252142429352, -0.06226155161857605, -0.6213219165802002, -0.10099465399980545, 0.35109400749206543, -0.23717282712459564, -0.3729327619075775, -0.046039849519729614, 0.08459354192018509, -0.03515056148171425, 0.048211850225925446, 0.1355670690536499, 0.05132942274212837, 0.25932878255844116, 0.2925772964954376, -0.13465997576713562, 0.014494341798126698, 0.05376124754548073, 0.14155344665050507, -0.24856975674629211, 0.39792105555534363, 0.019112007692456245, 0.20508770644664764, -0.10097228735685349, 0.40040379762649536, 0.24642175436019897, -0.22755518555641174, 0.030111780390143394, 0.05588793009519577, -0.09230761975049973, -0.30109143257141113, 0.18678240478038788, 0.3047507703304291, 0.11234526336193085, 0.17866761982440948, -0.42060068249702454, -0.33856379985809326, 0.3300171494483948, -0.04487292096018791, 0.35951608419418335, -0.09591709077358246, 0.2453266978263855, -0.1896500438451767, 0.207549050450325, -0.243589386343956, 0.2797911465167999, 0.034216467291116714, 0.016573956236243248, 0.01336112804710865, -0.08646716922521591, -0.3129189610481262, 0.18691419064998627, 0.054829854518175125, -0.008456263691186905, -0.4545392096042633, -0.0819849744439125, -0.1728125959634781, 0.2163761705160141, 0.15082485973834991, -0.11864776909351349, 0.046159014105796814, -0.3085326552391052, -0.07927851378917694, -0.07713190466165543, 0.1993967443704605, -0.12106648832559586, -0.30169057846069336, -0.021211007609963417, -0.2817974388599396, -0.021044475957751274, -0.005086395889520645, 0.19182996451854706, 0.005568109452724457, 0.09474586695432663, 0.46471360325813293, 0.4612271785736084, -0.08992045372724533, -0.07057599723339081, 0.11594334989786148, 0.2631652057170868, 0.1321071982383728, 0.013042616657912731, 0.2711670398712158, -0.21147964894771576, 0.15373173356056213, 0.1622486412525177, 0.021614519879221916, 0.300753653049469, -0.3699859082698822, 0.10904868692159653, 0.2009076029062271, 0.1213936060667038, -0.2129843384027481, 0.10979043692350388, 0.4337889552116394, -0.08722628653049469, 0.10159386694431305, 0.3715542256832123, 0.39166584610939026, 0.26339927315711975, -0.29220813512802124, 0.10288523137569427, 0.25518161058425903, 0.002237398875877261, 0.04831479489803314, 0.18768657743930817, -0.3026913106441498, 0.06904151290655136, 0.17461895942687988, 0.4449326694011688, 0.23872123658657074, 0.5049598217010498, -0.3436608910560608, 0.41339245438575745, 0.1104389876127243, -0.16530752182006836, 0.29264211654663086, -0.5142855048179626, 0.23347993195056915, 0.3220681846141815, 0.10034428536891937, 0.4405689537525177, -0.1411523073911667, 0.14298787713050842, -0.0843476727604866, -0.3823218047618866, -0.1536349058151245, 0.18175025284290314, 0.23891481757164001, -0.12872643768787384, -0.3973882496356964, -0.32956165075302124, -0.5255416035652161, -0.05138789489865303, -0.0321120023727417, -0.5779085159301758, 0.1415550857782364, -0.12354633212089539, -0.11330288648605347, -0.3197176456451416, 0.05319950357079506, 0.2641003727912903, 0.021433016285300255, -0.31220000982284546, 0.23554712533950806, 0.44016033411026, -0.09621068835258484, 0.24488389492034912, -0.0619920939207077, 0.27259600162506104, 0.1712181270122528, -0.24646739661693573, 0.23772428929805756, -0.10224854201078415, -0.272409051656723, -0.15460005402565002, 0.10530932992696762, 0.05457387864589691, 0.3160344362258911, 0.10644236207008362, 0.06424522399902344, -0.10340501368045807, -0.2114141881465912, -0.1423083394765854, -0.08979199826717377, -0.4951942265033722, -0.14465123414993286, -0.19385960698127747, -0.19583040475845337, -0.06474018096923828, 0.05668504536151886, -0.4392281174659729, -0.6049882769584656, 0.49069657921791077, -0.5163570642471313, 0.2248384803533554, -0.02969013713300228, 0.009239342994987965, -0.4217175841331482, 0.052084751427173615, 0.3018864393234253, -0.01431064773350954, 0.03455546498298645, -0.04473971948027611, -0.3840903341770172, 0.16745610535144806, -0.27836892008781433, -0.2578509449958801, -0.05396788939833641, 0.2680948078632355, 0.2295297384262085, 0.02085704915225506, 0.3160780072212219, -0.1001029685139656, 0.0873318612575531, 0.26177674531936646, -0.24855506420135498, 0.07133505493402481, 0.14627932012081146, 0.5599987506866455, 0.034690551459789276, -0.09364484250545502, 0.04084087908267975, 0.00308586866594851, -0.022030098363757133, -0.11762002110481262, -0.17512743175029755, 0.055097147822380066, -0.3370954394340515, 0.35059836506843567, 0.04024489223957062, 0.18812711536884308, -0.04771513119339943, -0.056837812066078186, -0.3671635091304779, 0.14204947650432587, -0.020248815417289734, -0.01003944966942072, 0.15439392626285553, 0.7235087156295776, -0.3094787299633026, 0.2260931432247162, -0.04209557920694351, 0.31571805477142334, 0.0397881455719471, -0.34854963421821594, -0.08143897354602814, 0.31769296526908875, -0.29029566049575806, 0.04746724292635918, 0.1136438176035881, 0.23301923274993896, -0.03862787038087845, -0.13953760266304016, 0.3328937590122223, -0.3573355972766876, 0.4361349642276764, -0.13755838572978973, -0.43075206875801086, 0.013634070754051208, -0.07080885022878647, 0.09605774283409119, 0.42685994505882263, -0.2791133224964142, 0.21985909342765808, 0.3455353379249573, 0.07001516968011856, -0.05147984251379967, 0.3274358808994293, -0.009830629453063011, -0.45154717564582825, -0.0036135506816208363, 0.13038279116153717, -0.3480066657066345, -0.21299850940704346, -0.016292596235871315, -0.3059490919113159 ]
https://github.com/huggingface/datasets/issues/1808
writing Datasets in a human readable format
AFAIK, there is currently no built-in method on the `Dataset` object to do this. However, a workaround is to directly use the Arrow table backing the dataset, **but it implies loading the whole dataset in memory** (correct me if I'm mistaken @lhoestq). You can convert the Arrow table to a pandas dataframe to save the data as csv as follows: ```python arrow_table = dataset.data dataframe = arrow_table.to_pandas() dataframe.to_csv("/path/to/file.csv") ``` Similarly, you can convert the dataset to a Python dict and save it as JSON: ```python import json arrow_table = dataset.data py_dict = arrow_table.to_pydict() with open("/path/to/file.json", "w+") as f: json.dump(py_dict, f) ```
Hi I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq
101
writing Datasets in a human readable format Hi I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq AFAIK, there is currently no built-in method on the `Dataset` object to do this. However, a workaround is to directly use the Arrow table backing the dataset, **but it implies loading the whole dataset in memory** (correct me if I'm mistaken @lhoestq). You can convert the Arrow table to a pandas dataframe to save the data as csv as follows: ```python arrow_table = dataset.data dataframe = arrow_table.to_pandas() dataframe.to_csv("/path/to/file.csv") ``` Similarly, you can convert the dataset to a Python dict and save it as JSON: ```python import json arrow_table = dataset.data py_dict = arrow_table.to_pydict() with open("/path/to/file.json", "w+") as f: json.dump(py_dict, f) ```
[ -0.10645177960395813, 0.25759872794151306, -0.07314245402812958, 0.12428160756826401, 0.49063169956207275, 0.29742005467414856, -0.16252340376377106, 0.3496722877025604, 0.04431108012795448, 0.025897124782204628, -0.1533566117286682, 0.33091381192207336, -0.414704293012619, 0.27073347568511963, 0.2647763192653656, -0.1661134511232376, 0.07186862826347351, -0.004649082664400339, 0.011517690494656563, 0.14982759952545166, -0.1541503667831421, -0.05089355260133743, 0.2294987589120865, -0.02567310817539692, -0.03894733265042305, -0.3820803463459015, -0.23500335216522217, -0.13195818662643433, -0.2951255142688751, -0.21151134371757507, -0.08702213317155838, 0.058286141604185104, 0.14218974113464355, 0.061991408467292786, -0.00011743597133317962, -0.09034600108861923, 0.0592740960419178, -0.18830019235610962, -0.4185783267021179, -0.11924377828836441, -0.25726544857025146, -0.4672524333000183, 0.2826541066169739, -0.3885619044303894, 0.05723278224468231, -0.5000996589660645, 0.16721388697624207, -0.3590875566005707, 0.483862042427063, 0.2706124782562256, 0.21179383993148804, -0.14392143487930298, 0.30980145931243896, 0.297279953956604, 0.052450645714998245, 0.6159297823905945, -0.3162018656730652, 0.15443113446235657, -0.07570035755634308, 0.07326123863458633, 0.35592642426490784, -0.17447081208229065, -0.15455234050750732, -0.31596407294273376, 0.3756178021430969, 0.07825949788093567, -0.215406134724617, -0.02937774918973446, -0.03793250769376755, 0.2223852276802063, 0.7566877603530884, -0.7057830691337585, -0.5702952146530151, -0.014892068691551685, 0.03621915727853775, -0.07665649056434631, -0.14431825280189514, 0.513093113899231, 0.02625344879925251, 0.2297067940235138, -0.16999277472496033, -0.5853193402290344, -0.3661932349205017, 0.07046414166688919, 0.38599592447280884, -0.11312532424926758, -0.18403345346450806, -0.04029808193445206, 0.05155795067548752, 0.016425544396042824, 0.31370848417282104, -0.1765543669462204, -0.09601526707410812, 0.12274791300296783, -0.150961235165596, -0.2741805911064148, -0.5675683617591858, -0.20525531470775604, 0.010116534307599068, 0.08443061262369156, 0.46114611625671387, -0.04758191481232643, -0.08112571388483047, 0.09407643973827362, 0.37668803334236145, 0.08812356740236282, 0.18818961083889008, 0.07472638040781021, 0.18091697990894318, -0.24707885086536407, 0.09403721988201141, -0.27207639813423157, 0.018891381099820137, 0.1625404953956604, 0.4624992609024048, -0.08689770847558975, 0.04546733200550079, -0.22658853232860565, -0.049480170011520386, 0.018305977806448936, -0.1780693382024765, 0.12943270802497864, -0.3326534926891327, 0.15975888073444366, 0.02462819032371044, 0.12520679831504822, 0.10710083693265915, 0.2388102412223816, 0.1295621693134308, -0.015088262036442757, 0.18516497313976288, 0.18894104659557343, 0.04211725294589996, 0.16805601119995117, -0.09943784773349762, 0.0223755594342947, 0.04880071058869362, -0.07980767637491226, 0.07429260015487671, -0.43120861053466797, 0.3465845286846161, -0.16670028865337372, 0.23003672063350677, 0.2840809226036072, 0.15658310055732727, 0.08800922334194183, -0.0418887622654438, -0.5203967094421387, -0.28930214047431946, 0.26482006907463074, 0.009671683423221111, -0.11031541973352432, -0.3392953872680664, 0.05165685713291168, -0.1047595739364624, -0.127415731549263, -0.7118960022926331, 0.05073950067162514, 0.04601418226957321, 0.026446450501680374, 0.14817990362644196, -0.04010616987943649, -0.10918650031089783, -0.5510827898979187, 0.10952318459749222, 0.028596969321370125, -0.5763201713562012, 0.17012964189052582, 0.07070329785346985, -0.02698206529021263, 0.07936202734708786, 0.2944977879524231, 0.15842002630233765, 0.3940736949443817, 0.05672207847237587, 0.1613830327987671, 0.3168124258518219, -0.11426927894353867, -0.03393851965665817, 0.3281465172767639, 0.15363319218158722, 0.05279117822647095, -0.26352429389953613, 0.49001312255859375, 0.4048585891723633, 0.011045749299228191, -0.11256285756826401, 0.053357481956481934, 0.1434195190668106, 0.016762077808380127, -0.13628463447093964, -0.3738785982131958, 0.15738487243652344, 0.0359615758061409, -0.38107621669769287, -0.09024445712566376, 0.3390375077724457, -0.002624692628160119, 0.3020040690898895, -0.2979595363140106, 0.2616698443889618, 0.5488734841346741, 0.3298593759536743, 0.08924988657236099, -0.1869286298751831, -0.21761858463287354, -0.23039527237415314, -0.14838550984859467, 0.4737415313720703, -0.16877415776252747, -0.1578415036201477, -0.34113946557044983, 0.14174431562423706, 0.0717257559299469, -0.1318066269159317, 0.2105414718389511, 0.06463652849197388, -0.247212216258049, -0.17376452684402466, 0.1570233553647995, -0.22539667785167694, 0.3347904086112976, -0.03151581808924675, 0.1102835014462471, -0.21231253445148468, 0.1414785385131836, -0.00430664187297225, -0.29859545826911926, 0.12394630908966064, 0.009375865571200848, 0.007699890527874231, 0.007159576751291752, -0.03974512964487076, 0.3718755543231964, 0.17178936302661896, 0.05482449382543564, 0.06784725934267044, 0.5374651551246643, 0.06926630437374115, -0.21767234802246094, 0.13819004595279694, 0.2048180252313614, 0.21824811398983002, -0.03289713338017464, -0.6860598921775818, 0.5157964825630188, 0.012228152714669704, 0.009676536545157433, -0.02344399318099022, 0.2769927978515625, 0.15215398371219635, 0.19615651667118073, -0.1398267149925232, 0.05764557421207428, 0.009158230386674404, 0.06272958219051361, -0.1090608537197113, -0.22863173484802246, -0.46773380041122437, 0.04911310598254204, 0.5178413391113281, -0.3079945743083954, 0.5596225261688232, 0.02452027052640915, -0.06745178252458572, -0.11978607624769211, 0.1391741931438446, 0.16943320631980896, 0.09880885481834412, 0.013120917603373528, 0.008405584841966629, -0.015211391262710094, -0.1322939544916153, 0.07931998372077942, 0.16362378001213074, -0.17590638995170593, 0.21895432472229004, -0.19260920584201813, -0.08800460398197174, -0.1375405490398407, -0.28385692834854126, 0.2554505467414856, -0.17440927028656006, 0.028630951419472694, -0.2344360500574112, 0.0963493138551712, -0.14804501831531525, 0.06909069418907166, -0.08030141144990921, 0.08357913792133331, -0.10471580177545547, -0.2666870355606079, -0.360738605260849, 0.13667511940002441, 0.10168328881263733, -0.18605603277683258, -0.0687284916639328, 0.21813267469406128, -0.12240703403949738, -0.02922244928777218, -0.24006618559360504, -0.07898491621017456, 0.05282968282699585, 0.003224379615858197, 0.1677335798740387, 0.23583458364009857, 0.45951321721076965, -0.18646158277988434, 0.31399792432785034, -0.32453668117523193, 0.04257049411535263, -0.2352772206068039, -0.0733070969581604, 0.2968514561653137, -0.03850225731730461, 0.367504358291626, -0.40578243136405945, 0.05541183426976204, -0.057817716151475906, 0.06804993003606796, -0.1202373132109642, 0.06705841422080994, 0.13108958303928375, -0.14533422887325287, 0.0033635117579251528, 0.13583587110042572, -0.3315483629703522, -0.09188072383403778, 0.5880922079086304, -0.021284621208906174, 0.08518429100513458, -0.2015015333890915, 0.18227292597293854, 0.03901989385485649, -0.05944904685020447, -0.11347106844186783, 0.10225928574800491, -0.47992032766342163, 0.38758498430252075, -0.24509592354297638, -0.3918481171131134, 0.21735230088233948, 0.38047048449516296, -0.11913780122995377, -0.06055036187171936, -0.1390838474035263, 0.01083570159971714, -0.14336517453193665, -0.1700049638748169, -0.05383817479014397, 0.1813923418521881, 0.016866285353899002, 0.20601405203342438, 0.16378358006477356, 0.0642000287771225, -0.2167951613664627, 0.12245243042707443, 0.31778883934020996, 0.09290946274995804, -0.05203261971473694, 0.3663932979106903, 0.08037324994802475, -0.01821013353765011, 0.35917285084724426, 0.24719354510307312, 0.22780469059944153, -0.048697810620069504, 0.43810591101646423, -0.12486773729324341, 0.029269227758049965, 0.040879204869270325, -0.31641486287117004, -0.18999069929122925, -0.1023092195391655, 0.16913093626499176, 0.03626912832260132, 0.21311762928962708, -0.008911882527172565, -0.2511669397354126, -0.25230175256729126, 0.23453037440776825, -0.24229459464550018, 0.02656358852982521, -0.11783208698034286, 0.1100161224603653, -0.017566176131367683, -0.17180493474006653, 0.08063377439975739, 0.3837941586971283, 0.2663041651248932, 0.03226863220334053, -0.5151152014732361, -0.2940569519996643, -0.5803810358047485, 0.09987442195415497, -0.02959662303328514, 0.36184653639793396, 0.10228127986192703, 0.181207075715065, 0.21470466256141663, -0.11195051670074463, 0.3909142017364502, -0.13434207439422607, -0.29806676506996155, 0.05613336339592934, 0.16215670108795166, -0.3671409487724304, 0.23486098647117615, -0.04735056310892105, 0.27415987849235535, -0.27871304750442505, 0.31915926933288574, -0.17461524903774261, -0.12061095982789993, -0.22882135212421417, 0.36689165234565735, -0.44817623496055603, -0.12007701396942139, 0.08216851204633713, -0.42181065678596497, -0.18237321078777313, -0.3053169846534729, 0.1513221710920334, -0.19544917345046997, 0.0067473119124770164, -0.12215040624141693, -0.33441609144210815, 0.07021103799343109, 0.18667030334472656, -0.2903488278388977, 0.22430814802646637, -0.011988316662609577, -0.14126963913440704, 0.3285459876060486, 0.3046225905418396, 0.1024223044514656, 0.3054977059364319, -0.07957600057125092, -0.32876014709472656, -0.27329298853874207, -0.16700999438762665, 0.3981630802154541, -0.09808903187513351, 0.09665139019489288, -0.03204521909356117, 0.25336769223213196, -0.24237941205501556, -0.38612163066864014, -0.1294434666633606, 0.06608160585165024, 0.14740656316280365, -0.5840482115745544, -0.6087489128112793, 0.39700576663017273, 0.11336664855480194, 0.054941292852163315, 0.01389934029430151, 0.1954512894153595, -0.17186976969242096, 0.4643934667110443, 0.3657192885875702, 0.9020742177963257, -0.6044503450393677, 0.5735940337181091, -0.03853209689259529, -0.6457201242446899, 0.2766193747520447, -0.4204293489456177, -0.02732478827238083, -0.37129783630371094, 0.11743955314159393, -0.1189441829919815, -0.009325982071459293, 0.3070981204509735, 0.23280882835388184, -0.22210435569286346, 0.1798439621925354, -0.1137194037437439, -0.1695738583803177, 0.08383075892925262, 0.2791970372200012, -0.12142534554004669, -0.10393790155649185, -0.16014564037322998, 0.15066227316856384, -0.17813920974731445, -0.3596469759941101, 0.08953381329774857, -0.37300851941108704, -0.06106644123792648, 0.24023112654685974, -0.29004985094070435, -0.0070622507482767105, -0.1904815286397934, 0.10237295925617218, -0.34043899178504944, -0.285146027803421, 0.16273531317710876, 0.2513299882411957, 0.2861887216567993, 0.2359691709280014, -0.034743309020996094, -0.07711802423000336, -0.22712557017803192, 0.029757685959339142, 0.046687912195920944, -0.06158540025353432, 0.12570373713970184, 0.21279187500476837, -0.03251296281814575, 0.23097854852676392, -0.04464588686823845, -0.3499722480773926, 0.11076715588569641, -0.02693195454776287, -0.04270468279719353, -0.2084439992904663, -0.23698584735393524, -0.11784205585718155, -0.16806139051914215, -0.14513908326625824, 0.09682861715555191, 0.4093707203865051, 0.314499169588089, 0.4892159104347229, -0.047016531229019165, -0.06960141658782959, 0.0739859789609909, 0.0777781531214714, 0.015166821889579296, 0.06508515030145645, 0.21721962094306946, -0.03876415267586708, -0.24382509291172028, -0.2203442007303238, 0.6501061916351318, 0.17381133139133453, 0.0053949784487485886, 0.20618993043899536, -0.2736005485057831, 0.14689494669437408, -0.22252562642097473, 0.014907902106642723, 0.09251684695482254, -0.25871971249580383, -0.2671198546886444, -0.418940007686615, -0.36769893765449524, 0.1884373128414154, 0.37387722730636597, 0.2795005440711975, 0.1300152987241745, -0.298611581325531, -0.2512318789958954, -0.10851924866437912, -0.19672220945358276, 0.08701518177986145, -0.05389140173792839, -0.056273654103279114, 0.07873726636171341, 0.2680090069770813, 0.21682049334049225, -0.30741092562675476, 0.03504187613725662, -0.051960721611976624, 0.18760383129119873, -0.0996493324637413, -0.19009515643119812, 0.13055925071239471, 0.08667387068271637, -0.12534475326538086, -0.16877910494804382, -0.4526861011981964, -0.03053632751107216, -0.15218520164489746, -0.3153112232685089, 0.3631749153137207, -0.09663887321949005, 0.30086538195610046, 0.012591410428285599, 0.13850286602973938, -0.011398671194911003, -0.03357337787747383, 0.061437685042619705, 0.32634615898132324, -0.16980935633182526, 0.05865084007382393, 0.2863144874572754, -0.04197391867637634, -0.1188763752579689, 0.12448608875274658, 0.13706451654434204, -0.12318249046802521, 0.32916292548179626, -0.12666676938533783, -0.010935584083199501, -0.07543893158435822, 0.38136789202690125, 0.3408971130847931, -0.17690329253673553, 0.2275376319885254, 0.20486776530742645, 0.07869142293930054, 0.17299889028072357, -0.1341189295053482, 0.258711576461792, -0.0603930689394474, -0.11561498790979385, 0.11736472696065903, -0.13379687070846558, 0.09443763643503189, -0.38147613406181335, -0.31695786118507385, 0.058198004961013794, -0.1218341812491417, -0.13126222789287567, 0.25193384289741516, 0.16931739449501038, -0.11544691771268845, 0.0012946068309247494, 0.25675177574157715, 0.25310859084129333, 0.6264756917953491, 0.14460928738117218, 0.11175548285245895, 0.5608854293823242, 0.16771678626537323, 0.06371591240167618, 0.05639598146080971, 0.06642894446849823, -0.1512657254934311, 0.087957002222538, 0.362552285194397, 0.4243086576461792, 0.01042984426021576, -0.00200997875072062, -0.2219342291355133, 0.08303732424974442, 0.1312357634305954, -0.04749032482504845, -0.07559321820735931, -0.029651779681444168, -0.050990305840969086, 0.19685617089271545, -0.10944359749555588, -0.29539892077445984, -0.4354912042617798, 0.03875894472002983, 0.194802388548851, 0.48051655292510986, 0.07810789346694946, 0.37567099928855896, 0.10520460456609726, 0.18894612789154053, -0.24505144357681274, -0.2562157213687897, -0.0034820768050849438, 0.028407560661435127, -0.3446309268474579, 0.1636253148317337, 0.2867848873138428, 0.013455401174724102, -0.11088566482067108, 0.4924837648868561, -0.10116270184516907, -0.18189775943756104, 0.10607115179300308, 0.034139908850193024, 0.16403613984584808, -0.13929681479930878, 0.39321398735046387, 0.12269207090139389, 0.10942717641592026, 0.21093980967998505, 0.02131938748061657, -0.01447192020714283, -0.09887749701738358, 0.09224563091993332, -0.01885458454489708, -0.5013272762298584, -0.12793274223804474, -0.1039540097117424, -0.12719501554965973, -0.21566352248191833, 0.5050703883171082, -0.03525170683860779, 0.11248736083507538, -0.02896795980632305, 0.04823305830359459, 0.04740455374121666, 0.3016922175884247, 0.45442959666252136, 0.08971148729324341, -0.06951891630887985, 0.030857926234602928, -0.1595071256160736, -0.15044522285461426, -0.08182220906019211, -0.06074552610516548, -0.027947040274739265, 0.09460598975419998, 0.3062101900577545, 0.32464399933815, -0.01545752864331007, 0.3501589298248291, -0.09662261605262756, 0.4746274948120117, -0.15297344326972961, -0.10951757431030273, 0.3460097014904022, 0.3962841331958771, 0.02409488894045353, -0.4002620577812195, 0.40558427572250366, 0.24992208182811737, 0.02693745493888855, -0.34915125370025635, 0.38356250524520874, -0.3014111816883087, -0.061345428228378296, 0.3309568762779236, 0.06962790340185165, -0.06063171848654747, -0.021439827978610992, -0.275246798992157, 0.26338231563568115, 0.35218605399131775, 0.09580771625041962, 0.31773650646209717, -0.07240454107522964, 0.34168189764022827, -0.27752846479415894, 0.16189733147621155, -0.08806662261486053, -0.24325993657112122, -0.5080466866493225, -0.042624581605196, -0.27447348833084106, 0.10404493659734726, -0.11052508652210236, -0.02344665490090847, 0.16295179724693298, 0.23956747353076935, -0.22787554562091827, 0.2146221399307251, -0.129856675863266, 0.3445456922054291, -0.06002529338002205, -0.0869833379983902, -0.24439236521720886, 0.3853401839733124, -0.12683916091918945, -0.04401037469506264, -0.025177815929055214, -0.44081929326057434, -0.015444651246070862, 0.33028262853622437, -0.2197272628545761, 0.010536938905715942, 0.24050909280776978, -0.00741355586796999, 0.2687171995639801, -0.003945153206586838, 0.6607909202575684, -0.008085064589977264, -0.00020965879957657307, -0.28927338123321533, -0.3808015286922455 ]
https://github.com/huggingface/datasets/issues/1808
writing Datasets in a human readable format
Indeed this works as long as you have enough memory. It would be amazing to have export options like csv, json etc. ! It should be doable to implement something that iterates through the dataset batch by batch to write to csv for example. There is already an `export` method but currently the only export type that is supported is `tfrecords`.
Hi I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq
61
writing Datasets in a human readable format Hi I see there is a save_to_disk function to save data, but this is not human readable format, is there a way I could save a Dataset object in a human readable format to a file like json? thanks @lhoestq Indeed this works as long as you have enough memory. It would be amazing to have export options like csv, json etc. ! It should be doable to implement something that iterates through the dataset batch by batch to write to csv for example. There is already an `export` method but currently the only export type that is supported is `tfrecords`.
[ -0.20983879268169403, 0.04926872253417969, -0.10766680538654327, 0.0664270743727684, 0.5001386404037476, 0.2327691614627838, -0.1172594502568245, 0.3574725389480591, 0.0007522201049141586, 0.14927446842193604, -0.16769830882549286, 0.052724722772836685, -0.37114185094833374, 0.4290177524089813, 0.3048393726348877, -0.11577898263931274, 0.07499132305383682, -0.1399860829114914, 0.009227446280419827, 0.10330847650766373, -0.17319375276565552, 0.003102166811004281, 0.18568016588687897, -0.10446949303150177, -0.0075997523963451385, -0.42327675223350525, -0.21671701967716217, -0.21662195026874542, -0.19343483448028564, -0.1114804819226265, -0.1856013536453247, 0.0026595033705234528, 0.33075782656669617, 0.0372149758040905, -0.00011813021410489455, -0.18588992953300476, -0.02309487573802471, -0.16155055165290833, -0.37875476479530334, -0.08890373259782791, -0.26902535557746887, -0.29775503277778625, 0.06279917806386948, -0.40238314867019653, 0.09588179737329483, -0.24719001352787018, 0.40783506631851196, -0.39255067706108093, 0.26365265250205994, 0.24290820956230164, 0.18756072223186493, -0.1289433240890503, 0.208909273147583, 0.2194780707359314, 0.09189850836992264, 0.6853557229042053, -0.36735525727272034, 0.027613040059804916, 0.09163511544466019, 0.18726088106632233, 0.437895268201828, -0.28740575909614563, -0.13160468637943268, -0.3443315923213959, 0.3439815640449524, 0.05616676062345505, -0.08948559314012527, -0.08555643260478973, -0.011304051615297794, 0.22844737768173218, 0.8819462656974792, -0.585065484046936, -0.4965885281562805, 0.05623457953333855, -0.036757178604602814, -0.08458063751459122, -0.132741317152977, 0.4962075352668762, 0.003153629135340452, 0.25503799319267273, -0.30794772505760193, -0.6020660400390625, -0.43526580929756165, 0.015818944200873375, 0.44329896569252014, -0.07230421155691147, -0.18967069685459137, -0.048662398010492325, 0.0651547983288765, 0.14754609763622284, 0.3959629535675049, -0.1175905242562294, -0.15204760432243347, 0.13049834966659546, -0.11745879799127579, -0.35535168647766113, -0.6162093877792358, -0.07904258370399475, 0.0551159605383873, 0.009113630279898643, 0.35315558314323425, -0.0813901275396347, 0.07632265239953995, 0.09859205037355423, 0.40057405829429626, 0.02267502434551716, 0.3162562847137451, -0.047976382076740265, 0.18185974657535553, -0.4053880572319031, 0.11731928586959839, -0.24355459213256836, 0.009250200353562832, 0.17488543689250946, 0.45740753412246704, -0.004727194085717201, -0.07689759135246277, -0.26489877700805664, 0.042527247220277786, -0.09640294313430786, -0.07804906368255615, -0.02681594528257847, -0.4872845411300659, 0.08152221888303757, 0.01944376528263092, -0.1135365217924118, 0.0742608830332756, 0.07666195929050446, -0.013612976297736168, -0.14999328553676605, 0.2075236290693283, 0.13936306536197662, 0.030904535204172134, 0.17725105583667755, -0.18247836828231812, -0.046699609607458115, -0.0887521356344223, -0.07200639694929123, 0.13165991008281708, -0.3586093783378601, 0.3845711648464203, -0.24935364723205566, 0.23367930948734283, 0.05826639384031296, 0.13742147386074066, 0.13787446916103363, -0.13520562648773193, -0.5077307820320129, -0.32943737506866455, 0.20138193666934967, -0.12248311191797256, -0.1518188714981079, -0.3533753752708435, 0.04415925219655037, -0.061738546937704086, -0.23417389392852783, -0.6611494421958923, 0.12384828180074692, 0.1232447475194931, -0.03813605755567551, 0.09824402630329132, -0.0732540637254715, -0.15007643401622772, -0.4955063462257385, 0.027269462123513222, -0.036204442381858826, -0.6494598984718323, 0.18830506503582, 0.16023509204387665, -0.09220688790082932, 0.13514107465744019, 0.3854275643825531, 0.2524670958518982, 0.5349969267845154, -0.0050944131799042225, 0.19084958732128143, 0.2792837619781494, 0.005564355757087469, 0.15691207349300385, 0.39731526374816895, 0.12339549511671066, -0.1115938127040863, -0.2646249234676361, 0.4624735713005066, 0.5034450888633728, -0.18585385382175446, -0.17421741783618927, 0.04870247468352318, 0.11546577513217926, -0.014758910052478313, -0.17993271350860596, -0.3490655720233917, 0.01578735001385212, -0.06640731543302536, -0.23193569481372833, -0.043922536075115204, 0.5080922842025757, 0.09981393814086914, 0.247615247964859, -0.34354984760284424, 0.35962793231010437, 0.5124645829200745, 0.3237619996070862, 0.1429351568222046, -0.2747883200645447, -0.29208576679229736, -0.2649778723716736, -0.23043565452098846, 0.3505915403366089, -0.2540544867515564, 0.2577136158943176, -0.3342507779598236, 0.2862885296344757, 0.018947601318359375, 0.052388690412044525, 0.295223593711853, 0.019920069724321365, -0.053500697016716, -0.1708800494670868, 0.15007680654525757, -0.3343757390975952, 0.23043331503868103, -0.04698244854807854, -0.07085829973220825, -0.180643692612648, 0.12904341518878937, 0.006797616835683584, -0.2635652720928192, 0.07304858416318893, -0.11152099817991257, -0.007495848927646875, -0.16513730585575104, 0.02536206878721714, 0.305508553981781, 0.07561934739351273, 0.07463572174310684, 0.15507666766643524, 0.6029981374740601, 0.029100824147462845, -0.09243004024028778, 0.06181235611438751, 0.0457078218460083, 0.08420418202877045, -0.039724741131067276, -0.7325775027275085, 0.470871239900589, -0.029904382303357124, -0.02315681427717209, -0.0380999930202961, 0.16625379025936127, 0.039131008088588715, 0.08945897221565247, 0.031825169920921326, 0.0888795331120491, 0.1403704583644867, 0.040223415940999985, -0.26415395736694336, -0.2821541726589203, -0.42009055614471436, 0.09446559846401215, 0.6116846203804016, -0.30299124121665955, 0.4891399145126343, -0.03241084888577461, 0.1629304587841034, -0.07354916632175446, 0.15906013548374176, 0.05995330959558487, 0.1638483852148056, 0.006338986102491617, 0.15231753885746002, -0.02003255859017372, -0.10028491169214249, 0.04145247861742973, 0.18090654909610748, -0.3330416679382324, 0.1086978018283844, -0.13668492436408997, -0.27326083183288574, -0.026307974010705948, -0.24125529825687408, 0.2050081342458725, -0.1510557234287262, 0.0028075131122022867, -0.2534693479537964, -0.0020910799503326416, -0.14399448037147522, 0.06820818036794662, -0.08929340541362762, 0.29244914650917053, -0.07376163452863693, -0.2302340716123581, -0.28215187788009644, 0.2217075228691101, 0.011071978136897087, -0.2715144753456116, 0.019067848101258278, 0.3949035704135895, -0.20870482921600342, 0.1366717666387558, -0.2805604338645935, -0.010476681403815746, 0.07722172886133194, 0.0013887375826016068, 0.15016664564609528, 0.21212992072105408, 0.5001714825630188, -0.24710099399089813, 0.23440870642662048, -0.36754491925239563, -0.00737500935792923, -0.16004759073257446, -0.006372370291501284, 0.35195958614349365, -0.10124417394399643, 0.33953091502189636, -0.4360652565956116, 0.06279631704092026, -0.15895426273345947, 0.03493025526404381, -0.06507542729377747, -0.07430537045001984, 0.13259650766849518, -0.20864064991474152, -0.08404497057199478, 0.1942925602197647, -0.36297154426574707, -0.1273268610239029, 0.5436400771141052, -0.07024630904197693, 0.10532526671886444, -0.21414773166179657, 0.07463748008012772, -0.06603766232728958, -0.14183372259140015, -0.1646406352519989, 0.07448247075080872, -0.636077344417572, 0.2971096634864807, -0.36025670170783997, -0.4670173227787018, 0.2232368141412735, 0.538354218006134, -0.17803974449634552, 0.07474353164434433, -0.21418076753616333, 0.10512349754571915, 0.010401000268757343, -0.23555749654769897, -0.031384583562612534, 0.22078937292099, 0.031031541526317596, 0.08491619676351547, 0.17215798795223236, 0.06226023659110069, -0.18020707368850708, 0.03177761659026146, 0.3285796046257019, 0.2549750804901123, -0.03337028622627258, 0.2822733223438263, 0.22578100860118866, 0.0145832234993577, 0.25884532928466797, 0.22266314923763275, 0.14274805784225464, 0.022168274968862534, 0.4139007329940796, -0.032783400267362595, 0.0022065159864723682, 0.3475821316242218, -0.3031907379627228, -0.29852455854415894, -0.019620414823293686, 0.07200229167938232, 0.08487709611654282, 0.18243753910064697, 0.0174711924046278, -0.09043164551258087, -0.23483453691005707, 0.32696717977523804, 0.003027916420251131, 0.1502872109413147, -0.1556912511587143, 0.11540447175502777, -0.1132468432188034, -0.1336514800786972, 0.07677607238292694, 0.3554428517818451, 0.3367661237716675, 0.1070491224527359, -0.6552954912185669, -0.23153218626976013, -0.48529911041259766, 0.19070713222026825, 0.05015834793448448, 0.21191786229610443, -0.1267177313566208, 0.1747841089963913, 0.1891009509563446, -0.02031037211418152, 0.409701943397522, -0.24297215044498444, -0.2298620194196701, 0.039861489087343216, 0.10589282214641571, -0.18997815251350403, 0.19492533802986145, -0.030749447643756866, 0.2844810485839844, -0.07846608012914658, 0.3948434889316559, -0.12247905880212784, -0.10468124598264694, -0.18357083201408386, 0.26176729798316956, -0.45138242840766907, -0.22741283476352692, 0.21444499492645264, -0.2858090102672577, -0.07936041802167892, -0.24143637716770172, 0.14105741679668427, -0.2363554984331131, -0.06839735805988312, -0.1851714700460434, -0.2665020823478699, 0.13508610427379608, 0.19191966950893402, -0.3439520299434662, -0.010149504989385605, 0.029064619913697243, -0.22330841422080994, 0.2827480435371399, 0.3313416838645935, 0.09688278287649155, 0.07089708745479584, -0.14670276641845703, -0.2290763556957245, -0.07411854714155197, -0.32463622093200684, 0.5238560438156128, -0.11080088466405869, 0.18606945872306824, -0.07084783166646957, 0.33066609501838684, -0.17153683304786682, -0.37155166268348694, -0.20418964326381683, 0.05135916545987129, 0.15175886452198029, -0.7371718287467957, -0.47865012288093567, 0.1942816525697708, 0.016983650624752045, 0.06779063493013382, -0.03196333721280098, 0.10354528576135635, -0.19543293118476868, 0.27186906337738037, 0.5431915521621704, 0.9837466478347778, -0.607829213142395, 0.41282814741134644, -0.16372819244861603, -0.500586986541748, 0.32841989398002625, -0.43073371052742004, 0.06277480721473694, -0.3551389276981354, -0.02764754556119442, -0.10781962424516678, 0.00882123876363039, 0.2886623442173004, 0.24762573838233948, -0.2568736970424652, 0.11144604533910751, 0.04296436160802841, -0.027601908892393112, 0.006524648517370224, 0.2042033076286316, -0.08991838991641998, -0.061659783124923706, -0.0040143439546227455, 0.1460142433643341, -0.1574336588382721, -0.3205994665622711, -0.020173324272036552, -0.33278200030326843, 0.13953498005867004, 0.4025574326515198, -0.2020188271999359, -0.0209281537681818, -0.1463066041469574, 0.01504518836736679, -0.3082634210586548, -0.25173839926719666, 0.16474439203739166, 0.2179533988237381, 0.5345999002456665, 0.26768285036087036, -0.008249291218817234, -0.2146231234073639, -0.2167547643184662, 0.06558883935213089, -0.022092830389738083, -0.035423941910266876, 0.09397199749946594, 0.16276487708091736, -0.07310272753238678, 0.3064503073692322, 0.02880808338522911, -0.3392602801322937, 0.022816985845565796, -0.07989737391471863, -0.08475717902183533, -0.2946384847164154, -0.11909563094377518, -0.07143618911504745, -0.09038497507572174, -0.08383780717849731, 0.08259906619787216, 0.4026632606983185, 0.38686707615852356, 0.6266883015632629, -0.11384367197751999, -0.024349398910999298, -0.026497483253479004, 0.07358043640851974, 0.08624404668807983, -0.10069567710161209, 0.06233649700880051, -0.005806297063827515, -0.27792689204216003, -0.24183322489261627, 0.6459100246429443, 0.02212849073112011, -0.07292644679546356, 0.24389679729938507, -0.3161085546016693, 0.19310516119003296, -0.18959848582744598, 0.10277612507343292, 0.0620107501745224, -0.30435100197792053, -0.34318435192108154, -0.29340362548828125, -0.1822027564048767, 0.10608745366334915, 0.3513621687889099, 0.27424871921539307, 0.1964380294084549, -0.20885439217090607, -0.19808194041252136, -0.071591317653656, -0.1946105659008026, -0.01481565460562706, -0.08516155183315277, 0.020235475152730942, 0.16422757506370544, 0.26597321033477783, 0.06908582895994186, -0.27130359411239624, -0.03214593604207039, -0.013692159205675125, 0.15241508185863495, -0.07297518849372864, -0.22038070857524872, 0.14436820149421692, 0.06520389020442963, 0.06450486928224564, -0.06267378479242325, -0.38626953959465027, 0.002805442316457629, -0.19175082445144653, -0.3020145893096924, 0.41818368434906006, -0.11121279746294022, 0.3120136559009552, 0.08233519643545151, 0.15628308057785034, -0.001833285205066204, -0.0398661345243454, 0.27093133330345154, 0.4351324737071991, -0.2582457959651947, 0.10652188211679459, 0.25744062662124634, -0.03516175225377083, -0.12068594992160797, 0.141933411359787, 0.35855796933174133, -0.005472020246088505, 0.2918895184993744, -0.13200822472572327, 0.02101544849574566, 0.08174610882997513, 0.19229167699813843, 0.22302661836147308, -0.15138357877731323, 0.20953065156936646, 0.20219776034355164, 0.08948181569576263, 0.3666158616542816, -0.09804542362689972, 0.2809937596321106, -0.02198507823050022, -0.18465660512447357, 0.17474563419818878, -0.08884704113006592, 0.01541905477643013, -0.04158405587077141, -0.3821220397949219, 0.06783603876829147, -0.20531941950321198, -0.16555073857307434, 0.20341716706752777, 0.1272660791873932, -0.06631553918123245, -0.029896162450313568, 0.1465526521205902, 0.23359999060630798, 0.49297142028808594, 0.20623557269573212, 0.07325685024261475, 0.49208152294158936, 0.2002185434103012, 0.0824684351682663, -0.09820719808340073, 0.163205087184906, -0.14841289818286896, 0.11884371936321259, 0.47016406059265137, 0.47802525758743286, -0.2022804170846939, -0.13757431507110596, -0.20500944554805756, 0.06068134680390358, 0.07125584781169891, -0.07335349917411804, 0.040707509964704514, -0.16872115433216095, -0.01870548166334629, 0.25554728507995605, 0.018092269077897072, -0.30801382660865784, -0.3289760947227478, 0.033421169966459274, 0.23333507776260376, 0.5413269400596619, 0.14092136919498444, 0.3043995201587677, -0.00776178203523159, 0.15016160905361176, -0.2206455022096634, -0.16229508817195892, -0.15432263910770416, 0.014948436059057713, -0.31749916076660156, 0.3099464774131775, 0.17035050690174103, 0.05884629860520363, 0.07530837506055832, 0.4118939936161041, -0.16234084963798523, -0.08314133435487747, 0.09348605573177338, 0.15005414187908173, 0.071775421500206, -0.052424389868974686, 0.4647696018218994, 0.09880083054304123, 0.16525347530841827, 0.32950475811958313, 0.005909130908548832, -0.12365235388278961, -0.1341719776391983, -0.028353488072752953, 0.12664839625358582, -0.46385884284973145, -0.1727956384420395, -0.13951332867145538, -0.10489830374717712, -0.10192340612411499, 0.4397474527359009, -0.13836908340454102, 0.1056913286447525, 0.06893451511859894, 0.04510633274912834, 0.08107277005910873, 0.3107044994831085, 0.5162874460220337, 0.03133058547973633, -0.06847231090068817, 0.06546184420585632, -0.006576880346983671, 0.025295019149780273, 0.01634936034679413, 0.09625090658664703, -0.12077178806066513, 0.13536623120307922, 0.32482609152793884, 0.34862345457077026, 0.038246702402830124, 0.1583917886018753, -0.07539165765047073, 0.5430316925048828, -0.11997001618146896, -0.16421197354793549, 0.33029603958129883, 0.3895043730735779, 0.007204481400549412, -0.3909877836704254, 0.5046797394752502, 0.28372639417648315, -0.01300741545855999, -0.42211440205574036, 0.41011616587638855, -0.2834385335445404, -0.22104889154434204, 0.341521680355072, 0.0683491975069046, -0.10183484107255936, -0.01873086392879486, -0.21336740255355835, 0.23067706823349, 0.39253973960876465, 0.12206357717514038, 0.2381235510110855, 0.0703168734908104, 0.2418002188205719, -0.3717215061187744, 0.09081481397151947, -0.14179886877536774, -0.13966016471385956, -0.4831587076187134, 0.17793907225131989, -0.1455751359462738, -0.01116998866200447, -0.14427077770233154, -0.16531714797019958, 0.3295237421989441, 0.1953495740890503, -0.20574913918972015, 0.20568668842315674, -0.1991419494152069, 0.5085467100143433, -0.16226370632648468, -0.09353520721197128, -0.2657583951950073, 0.24928687512874603, -0.16324862837791443, -0.0005459060193970799, -0.04380229488015175, -0.3620733916759491, -0.08300647139549255, 0.3840693533420563, -0.21081121265888214, 0.10241099447011948, 0.2996646463871002, -0.00994677934795618, 0.2332301139831543, 0.05986611545085907, 0.5324202179908752, 0.10187965631484985, -0.05184292048215866, -0.23511150479316711, -0.3200596570968628 ]
https://github.com/huggingface/datasets/issues/1805
can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index
Hi ! Indeed we used to require mapping functions to be picklable with `pickle` or `dill` in order to cache the resulting datasets. And FAISS indexes are not picklable unfortunately. But since #1703 this is no longer required (the caching will simply be disabled). This change will be available in the next release of `datasets`, or you can also install `datasets` from source.
So, I have the following instances in my dataset ``` {'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of this increase in rotation?', 'answer': 'C', 'example_id': 'ARCCH_Mercury_7175875', 'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'}, (...)]} ``` The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`. I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index ``` dpr_dataset = load_dataset( "text", data_files=ARC_CORPUS_TEXT, cache_dir=CACHE_DIR, split="train[:100%]", ) dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}") torch.set_grad_enabled(False) ``` Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_ ``` def generate_context(example): question_text = example['question'] for option in example['options']: question_with_option = question_text + " " + option['option_text'] tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device) question_embed = ( question_encoder(**tokenize_text) )[0][0].cpu().numpy() _, retrieved_examples = dpr_dataset.get_nearest_examples( "embeddings", question_embed, k=10 ) # option["option_context"] = retrieved_examples["text"] # option["option_context"] = " ".join(option["option_context"]).strip() #result_dict = { # 'example_id': example['example_id'], # 'answer': example['answer'], # 'question': question_text, #options': example['options'] # } return example ``` I intentionally commented on this portion of the code. But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)` It calls the following error: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-55-75a458ce205c> in <module> ----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1257 fn_kwargs=fn_kwargs, 1258 new_fingerprint=new_fingerprint, -> 1259 update_data=update_data, 1260 ) 1261 else: ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 155 } 156 # apply actual function --> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 159 # re-apply format to the output ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name 157 kwargs[fingerprint_name] = update_fingerprint( --> 158 self._fingerprint, transform, kwargs_for_fingerprint 159 ) 160 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args) 103 for key in sorted(transform_args): 104 hasher.update(key) --> 105 hasher.update(transform_args[key]) 106 return hasher.hexdigest() 107 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value) 55 def update(self, value): 56 self.m.update(f"=={type(value)}==".encode("utf8")) ---> 57 self.m.update(self.hash(value).encode("utf-8")) 58 59 def hexdigest(self): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value) 51 return cls.dispatch[type(value)](cls, value) 52 else: ---> 53 return cls.hash_default(value) 54 55 def update(self, value): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value) 44 @classmethod 45 def hash_default(cls, value): ---> 46 return cls.hash_bytes(dumps(value)) 47 48 @classmethod ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj) 387 file = StringIO() 388 with _no_cache_fields(obj): --> 389 dump(obj, file) 390 return file.getvalue() 391 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file) 359 def dump(obj, file): 360 """pickle an object to a file""" --> 361 Pickler(file, recurse=True).dump(obj) 362 return 363 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj) 452 raise PicklingError(msg) 453 else: --> 454 StockPickler.dump(self, obj) 455 stack.clear() # clear record of 'recursion-sensitive' pickled objects 456 return /usr/lib/python3.7/pickle.py in dump(self, obj) 435 if self.proto >= 4: 436 self.framer.start_framing() --> 437 self.save(obj) 438 self.write(STOP) 439 self.framer.end_framing() /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj) 554 dill._dill._create_function, 555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults), --> 556 obj=obj, 557 ) 558 else: /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 636 else: 637 save(func) --> 638 save(args) 639 write(REDUCE) 640 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 /usr/lib/python3.7/pickle.py in save_tuple(self, obj) 784 write(MARK) 785 for element in obj: --> 786 save(element) 787 788 if id(obj) in memo: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 522 reduce = getattr(obj, "__reduce_ex__", None) 523 if reduce is not None: --> 524 rv = reduce(self.proto) 525 else: 526 reduce = getattr(obj, "__reduce__", None) TypeError: can't pickle SwigPyObject objects ``` Which I have no idea how to solve/deal with it
63
can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index So, I have the following instances in my dataset ``` {'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of this increase in rotation?', 'answer': 'C', 'example_id': 'ARCCH_Mercury_7175875', 'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'}, (...)]} ``` The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`. I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index ``` dpr_dataset = load_dataset( "text", data_files=ARC_CORPUS_TEXT, cache_dir=CACHE_DIR, split="train[:100%]", ) dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}") torch.set_grad_enabled(False) ``` Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_ ``` def generate_context(example): question_text = example['question'] for option in example['options']: question_with_option = question_text + " " + option['option_text'] tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device) question_embed = ( question_encoder(**tokenize_text) )[0][0].cpu().numpy() _, retrieved_examples = dpr_dataset.get_nearest_examples( "embeddings", question_embed, k=10 ) # option["option_context"] = retrieved_examples["text"] # option["option_context"] = " ".join(option["option_context"]).strip() #result_dict = { # 'example_id': example['example_id'], # 'answer': example['answer'], # 'question': question_text, #options': example['options'] # } return example ``` I intentionally commented on this portion of the code. But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)` It calls the following error: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-55-75a458ce205c> in <module> ----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1257 fn_kwargs=fn_kwargs, 1258 new_fingerprint=new_fingerprint, -> 1259 update_data=update_data, 1260 ) 1261 else: ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 155 } 156 # apply actual function --> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 159 # re-apply format to the output ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name 157 kwargs[fingerprint_name] = update_fingerprint( --> 158 self._fingerprint, transform, kwargs_for_fingerprint 159 ) 160 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args) 103 for key in sorted(transform_args): 104 hasher.update(key) --> 105 hasher.update(transform_args[key]) 106 return hasher.hexdigest() 107 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value) 55 def update(self, value): 56 self.m.update(f"=={type(value)}==".encode("utf8")) ---> 57 self.m.update(self.hash(value).encode("utf-8")) 58 59 def hexdigest(self): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value) 51 return cls.dispatch[type(value)](cls, value) 52 else: ---> 53 return cls.hash_default(value) 54 55 def update(self, value): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value) 44 @classmethod 45 def hash_default(cls, value): ---> 46 return cls.hash_bytes(dumps(value)) 47 48 @classmethod ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj) 387 file = StringIO() 388 with _no_cache_fields(obj): --> 389 dump(obj, file) 390 return file.getvalue() 391 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file) 359 def dump(obj, file): 360 """pickle an object to a file""" --> 361 Pickler(file, recurse=True).dump(obj) 362 return 363 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj) 452 raise PicklingError(msg) 453 else: --> 454 StockPickler.dump(self, obj) 455 stack.clear() # clear record of 'recursion-sensitive' pickled objects 456 return /usr/lib/python3.7/pickle.py in dump(self, obj) 435 if self.proto >= 4: 436 self.framer.start_framing() --> 437 self.save(obj) 438 self.write(STOP) 439 self.framer.end_framing() /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj) 554 dill._dill._create_function, 555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults), --> 556 obj=obj, 557 ) 558 else: /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 636 else: 637 save(func) --> 638 save(args) 639 write(REDUCE) 640 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 /usr/lib/python3.7/pickle.py in save_tuple(self, obj) 784 write(MARK) 785 for element in obj: --> 786 save(element) 787 788 if id(obj) in memo: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 522 reduce = getattr(obj, "__reduce_ex__", None) 523 if reduce is not None: --> 524 rv = reduce(self.proto) 525 else: 526 reduce = getattr(obj, "__reduce__", None) TypeError: can't pickle SwigPyObject objects ``` Which I have no idea how to solve/deal with it Hi ! Indeed we used to require mapping functions to be picklable with `pickle` or `dill` in order to cache the resulting datasets. And FAISS indexes are not picklable unfortunately. But since #1703 this is no longer required (the caching will simply be disabled). This change will be available in the next release of `datasets`, or you can also install `datasets` from source.
[ 0.0690416544675827, -0.3887845277786255, -0.0696360319852829, 0.24682627618312836, 0.16422533988952637, 0.02776423655450344, 0.17842751741409302, 0.05411210283637047, 0.4089658856391907, 0.5476053357124329, -0.05009975656867027, 0.4959981441497803, 0.11579342186450958, -0.12733423709869385, -0.26762643456459045, 0.05151048302650452, 0.08499471098184586, 0.013422203250229359, 0.021621186286211014, -0.24258486926555634, -0.5357052683830261, -0.04840216785669327, -0.19842609763145447, 0.049339380115270615, -0.03984175994992256, 0.01803356036543846, -0.03328324854373932, 0.09544756263494492, -0.05844572186470032, -0.4539257884025574, 0.40457576513290405, 0.2576845586299896, 0.2116619348526001, -0.01342297624796629, -0.00012667452392634004, 0.06790226697921753, 0.20534729957580566, -0.021252067759633064, -0.164621964097023, 0.08674998581409454, -0.0015750887105241418, 0.30584120750427246, 0.2944117486476898, -0.3542502820491791, -0.21792462468147278, -0.2550705671310425, -0.05045655369758606, -0.13455621898174286, 0.06806491315364838, 0.19159580767154694, 0.06709270179271698, 0.1456798017024994, -0.11307282745838165, -0.1586889773607254, 0.22158516943454742, -0.010912882164120674, -0.062061458826065063, 0.16215088963508606, 0.2719886600971222, 0.30666154623031616, 0.25445738434791565, 0.27488571405410767, -0.24607126414775848, 0.03687286004424095, -0.07260012626647949, 0.09264019131660461, 0.33780473470687866, 0.09200750291347504, 0.15567255020141602, 0.09694641083478928, 0.24981294572353363, -0.2737821638584137, -0.47020700573921204, -0.4137711822986603, -0.06139599159359932, -0.1567489504814148, -0.26279500126838684, -0.5509204268455505, -0.0172366164624691, 0.24829252064228058, 0.12546344101428986, 0.1021852120757103, -0.06395697593688965, 0.5212545394897461, 0.4118616282939911, 0.03595670685172081, 0.014423856511712074, 0.21093373000621796, 0.10664113610982895, -0.057648152112960815, 0.13660407066345215, -0.13325312733650208, -0.028369121253490448, -0.13212011754512787, -0.2131492793560028, -0.12421438843011856, 0.48463714122772217, -0.2354138046503067, 0.24505795538425446, 0.08462581038475037, -0.12905952334403992, 0.40145301818847656, 0.06914247572422028, 0.10754986852407455, 0.1615166813135147, -0.11862710863351822, -0.0983867272734642, 0.039572574198246, -0.11711687594652176, 0.08703568577766418, -0.16784967482089996, 0.11425749957561493, 0.02689971774816513, -0.05530659481883049, -0.6315279603004456, -0.012941357679665089, 0.32059532403945923, -0.14490224421024323, -0.10143198817968369, 0.25060635805130005, -0.6014733910560608, 0.3429078459739685, 0.1318703293800354, 0.5309945940971375, 0.014597310684621334, 0.11663586646318436, 0.1949889063835144, 0.2470780909061432, -0.29601508378982544, 0.42175084352493286, -0.226698637008667, -0.04202675074338913, 0.03467004746198654, -0.05882048234343529, -0.12180690467357635, 0.4785674214363098, 0.2849900722503662, -0.2606019973754883, 0.09783105552196503, -0.07848558574914932, 0.02272619865834713, -0.11066296696662903, 0.3640687167644501, 0.19701285660266876, -0.053364358842372894, 0.07728292047977448, 0.1710084080696106, -0.09544029086828232, -0.17448939383029938, 0.11748067289590836, 0.13840001821517944, -0.10213892161846161, 0.19039176404476166, 0.07096385210752487, -0.13898591697216034, -0.13179858028888702, -0.21304525434970856, 0.12119535356760025, -0.08783568441867828, 0.23695804178714752, 0.18705697357654572, -0.18788206577301025, -0.08760373294353485, -0.1486044079065323, 0.2090405821800232, 0.516130805015564, -0.23504462838172913, -0.07585521042346954, 0.024494463577866554, 0.19517812132835388, 0.35019588470458984, 0.20101402699947357, -0.32679858803749084, 0.2561735510826111, 0.03712492436170578, 0.23221638798713684, 0.3163660764694214, -0.44901859760284424, -0.6639247536659241, -0.09019973874092102, -0.0756988674402237, 0.03977303206920624, 0.33173897862434387, 0.09759025275707245, 0.3703523576259613, 0.293063223361969, -0.14594794809818268, 0.5172797441482544, 0.1696167141199112, 0.043467894196510315, -0.2609553933143616, -0.3448401391506195, 0.023142216727137566, 0.12701468169689178, -0.07336784899234772, 0.16323880851268768, -0.04404875263571739, -0.26762571930885315, 0.36140185594558716, -0.15033721923828125, -0.10212824493646622, 0.26906561851501465, 0.521695613861084, 0.21598754823207855, 0.21308963000774384, -0.2032639980316162, -0.08442595601081848, 0.1282852590084076, -0.15222348272800446, 0.022889573127031326, -0.07821725308895111, -0.20904767513275146, -0.01356798317283392, 0.19774885475635529, -0.31354784965515137, -0.17404907941818237, -0.07465202361345291, 0.1529776006937027, 0.28819945454597473, -0.13186202943325043, -0.09894552081823349, 0.04934300109744072, -0.33996671438217163, 0.2049800008535385, -0.5214461088180542, 0.42709970474243164, -0.0935489758849144, -0.31373703479766846, -0.18720224499702454, 0.25834858417510986, 0.013484981842339039, -0.15099593997001648, -0.15897677838802338, 0.10670274496078491, 0.47489625215530396, -0.4063607454299927, 0.1756877452135086, -0.3079214096069336, -0.019566278904676437, -0.10988972336053848, 0.11341477185487747, 0.00908244214951992, 0.14439736306667328, 0.2156587392091751, -0.009514634497463703, 0.6227202415466309, 0.37243229150772095, 0.15079781413078308, -0.07652810215950012, 0.1891469806432724, 0.14738112688064575, -0.1591728776693344, -0.05282853543758392, -0.5078772902488708, -0.18280839920043945, 0.3740833103656769, 0.11359700560569763, 0.028329793363809586, -0.44087767601013184, 0.4054209291934967, 0.24011757969856262, 0.06032455712556839, -0.11842723190784454, 0.1541835218667984, -0.05681478977203369, -0.036747194826602936, 0.02928864024579525, -0.21392661333084106, 0.10529609024524689, 0.3675737977027893, -0.27792027592658997, -0.3208725154399872, 0.008762474171817303, -0.04218859598040581, 0.06506244838237762, 0.37360939383506775, -0.04236515238881111, -0.2475411593914032, 0.0935092642903328, -0.005428020376712084, -0.3840720057487488, -0.30605030059814453, -0.03811902925372124, 0.070165254175663, -0.11144271492958069, 0.174390971660614, -0.37495157122612, -0.14921361207962036, 0.08720782399177551, -0.45783910155296326, 0.19163145124912262, -0.0981224775314331, 0.17391915619373322, 0.2258584052324295, -0.2370428591966629, 0.44666630029678345, 0.11919833719730377, 0.15984484553337097, 0.052977461367845535, -0.19985873997211456, -0.12007653713226318, -0.17553363740444183, -0.4576171040534973, -0.09228981286287308, -0.22862549126148224, 0.4021477997303009, 0.17739485204219818, 0.21580420434474945, -0.09752186387777328, -0.29271048307418823, 0.02110203169286251, 0.028738420456647873, 0.14060825109481812, 0.20209285616874695, 0.18796974420547485, 0.04679945111274719, -0.23935078084468842, -0.1135711669921875, 0.07079411298036575, 0.16612976789474487, -0.20331282913684845, -0.17623819410800934, -0.04304250702261925, -0.081464022397995, 0.10186342149972916, -0.21136267483234406, -0.2890203595161438, -0.22593727707862854, 0.15159456431865692, 0.09191535413265228, 0.10955408960580826, 0.021820589900016785, 0.3725820779800415, 0.055136434733867645, -0.20809927582740784, -0.1080138310790062, -0.27291110157966614, 0.009454824961721897, -0.07352659106254578, -0.04149949923157692, -0.2861773371696472, -0.5065011382102966, -0.33980247378349304, -0.23709435760974884, 0.1956360638141632, -0.23539920151233673, -0.3361145555973053, -0.34408339858055115, 0.1592901051044464, 0.15567070245742798, 0.14096125960350037, 0.3760392665863037, 0.22478249669075012, -0.08757426589727402, -0.16665880382061005, -0.30555260181427, 0.44457411766052246, 0.1400023102760315, 0.08830026537179947, 0.10773412883281708, 0.40671825408935547, -0.18408216536045074, 0.5277167558670044, 0.12478594481945038, -0.520957887172699, 0.3717179596424103, -0.014029781334102154, 0.015872091054916382, -0.06754041463136673, -0.2851014733314514, 0.16566403210163116, 0.19252713024616241, -0.18165434896945953, 0.1626507043838501, -0.1984025090932846, 0.05916886031627655, 0.33942487835884094, 0.3197857737541199, -0.38191989064216614, -0.27683520317077637, -0.05373390391469002, -0.15951941907405853, -0.31609755754470825, 0.02526717260479927, 0.3339828848838806, -0.5367686152458191, 0.2368260622024536, 0.08284617215394974, 0.1489071398973465, 0.18797676265239716, -0.05669783800840378, -0.0769125446677208, -0.10680835694074631, -0.3594059646129608, 0.4149489402770996, 0.014454139396548271, 0.24012383818626404, 0.08461510390043259, -0.034011974930763245, 0.3434596359729767, 0.06843201816082001, 0.957190752029419, -0.0614786297082901, -0.023952342569828033, 0.3976440727710724, -0.22147272527217865, -0.3634815216064453, 0.02566412463784218, -0.17715513706207275, 0.07975807040929794, 0.10193030536174774, 0.22994349896907806, -0.16012802720069885, -0.3377135097980499, 0.026532398536801338, 0.016739433631300926, -0.12575632333755493, 0.03941499441862106, -0.07083597034215927, -0.4167461395263672, -0.4663294851779938, 0.11469566076993942, -0.02021375112235546, 0.14230020344257355, 0.09586647152900696, -0.21130254864692688, -0.5041612386703491, -0.11018233746290207, -0.13649457693099976, 0.15174584090709686, 0.3936244547367096, 0.1454341560602188, 0.13112349808216095, 0.1425924450159073, 0.3486037850379944, 0.6238426566123962, 0.22571691870689392, -0.0752173587679863, -0.21511931717395782, -0.0062147146090865135, 0.16428476572036743, 0.09455659240484238, 0.4280666708946228, -0.06382405012845993, 0.43631044030189514, -0.04150761663913727, 0.12463462352752686, 0.006139575503766537, 0.22276616096496582, 0.2262485772371292, 0.21135662496089935, 0.05645104497671127, -0.43798908591270447, 0.5630468726158142, 0.021087542176246643, -0.17949101328849792, 0.31359896063804626, 0.1618501991033554, -0.25788816809654236, 1.0739572048187256, 0.22333064675331116, 1.0657092332839966, -0.08354932069778442, 0.22637826204299927, 0.1986534744501114, 0.06445517390966415, 0.43289756774902344, 0.12280596047639847, 0.15999150276184082, -0.3314414322376251, 0.2574235498905182, 0.007882929407060146, -0.310005784034729, 0.14132024347782135, 0.2411952167749405, -0.08309315145015717, -0.09476273506879807, -0.21930065751075745, -0.26755470037460327, -0.06948573887348175, 0.03920772671699524, 0.3647851049900055, -0.3496556580066681, -0.3084579110145569, -0.031542595475912094, 0.28542110323905945, 0.2928277552127838, 0.24883200228214264, -0.1491137593984604, -0.4724767506122589, -0.1838759481906891, -0.21596010029315948, 0.005299626849591732, -0.277557373046875, 0.27017539739608765, 0.17104129493236542, -0.30572566390037537, -0.16933828592300415, 0.2380608767271042, 0.18919967114925385, -0.1477191001176834, -0.1746549904346466, 0.1169828251004219, 0.15543529391288757, -0.09744992107152939, -0.008984936401247978, -0.27513912320137024, 0.3802003264427185, 0.155644491314888, -0.39325621724128723, 0.01533166877925396, 0.15893681347370148, -0.43875688314437866, -0.0904444083571434, -0.08017124980688095, -0.2309846580028534, -0.2791675329208374, -0.35150158405303955, -0.06574267894029617, -0.13900725543498993, -0.42861926555633545, -0.02188313938677311, 0.013056565076112747, -0.2057519257068634, 0.4152247905731201, -0.12011464685201645, -0.33868691325187683, -0.17250479757785797, 0.5766263604164124, 0.20496271550655365, 0.09537576884031296, 0.4988759756088257, 0.20451720058918, -0.14762620627880096, -0.18616238236427307, -0.4698057174682617, 0.4244067370891571, 0.07368453592061996, 0.3030468225479126, -0.07642859220504761, -0.31451985239982605, -0.10987832397222519, -0.01093220617622137, 0.03224877268075943, -0.13382354378700256, -0.541547417640686, -0.22277231514453888, -0.5453015565872192, 0.19932708144187927, 0.0189191997051239, 0.47274312376976013, -0.20540232956409454, 0.51674884557724, -0.5072893500328064, -0.2756144106388092, -0.16703450679779053, -0.022106986492872238, -0.46642547845840454, 0.023471781983971596, -0.33027219772338867, -0.1691894382238388, 0.07720714062452316, 0.05150343105196953, 0.03244854882359505, -0.051121994853019714, -0.06588917970657349, -0.10555427521467209, -0.15735960006713867, 0.18042689561843872, 0.09316839277744293, -0.1917533576488495, -0.12359721213579178, -0.041865237057209015, -0.14710678160190582, -0.17900067567825317, 0.1822984516620636, 0.2753230035305023, -0.06500321626663208, 0.17344684898853302, 0.04644010588526726, 0.09533505886793137, 0.2519478499889374, 0.09385231882333755, -0.029662271961569786, 0.30964839458465576, 0.09706484526395798, 0.11753427982330322, -0.1214076355099678, -0.031148405745625496, -0.06393007934093475, 0.023354891687631607, -0.001578976633027196, -0.0470108725130558, -0.08501826226711273, -0.03448367863893509, -0.35944417119026184, 0.3289598822593689, 0.27954426407814026, 0.5147291421890259, 0.08545307070016861, -0.23992294073104858, 0.2423899620771408, 0.046331893652677536, -0.21199309825897217, -0.2285028100013733, 0.35356706380844116, -0.2673211693763733, 0.23388199508190155, 0.21015824377536774, -0.09037096053361893, 0.19813011586666107, -0.3148200213909149, -0.05228165537118912, 0.20384842157363892, 0.35052013397216797, 0.14751894772052765, 0.20917542278766632, 0.13171036541461945, 0.051564253866672516, 0.1366334855556488, 0.4851369857788086, 0.7115125060081482, 0.5667840242385864, -0.010981930419802666, 0.6284356117248535, -0.2339814305305481, 0.03877270221710205, 0.03301261365413666, -0.5802494287490845, 0.5933232307434082, 0.08162195235490799, -0.01607135310769081, 0.055232927203178406, 0.06653356552124023, 0.16970835626125336, 0.12200543284416199, -0.24251630902290344, -0.07678107917308807, 0.2856164872646332, -0.22198614478111267, -0.5239720344543457, -0.1637643277645111, 0.013442722149193287, 0.05491058528423309, -0.10308419913053513, -0.004145148675888777, -0.2838749289512634, 0.1822262555360794, -0.1851770132780075, -0.24036307632923126, -0.28125008940696716, -0.2857099771499634, -0.06400829553604126, 0.13658994436264038, -0.07531294971704483, -0.10241100937128067, -0.1006358191370964, -0.1416369080543518, -0.1163172498345375, 0.05885474011301994, 0.09470421820878983, 0.14169110357761383, -0.5192409157752991, -0.037828732281923294, -0.057373225688934326, -0.17661401629447937, -0.20650936663150787, 0.023322641849517822, -0.16379781067371368, -0.021265288814902306, 0.19774051010608673, -0.006110486574470997, -0.07587399333715439, -0.34456610679626465, 0.2321973294019699, 0.3549720048904419, 0.03815597668290138, 0.09397199749946594, 0.06182662025094032, 0.07818374037742615, 0.08916853368282318, -0.0918707475066185, -0.2969633936882019, -0.0976448580622673, 0.3326539695262909, -0.040677446871995926, 0.19271856546401978, 0.16474993526935577, 0.0005437723593786359, -0.24791684746742249, 0.3903939723968506, 0.3924206495285034, 0.32475215196609497, -0.21644790470600128, 0.3476310074329376, -0.036235250532627106, 0.2104083001613617, -0.04794299229979515, -0.31859996914863586, 0.377913236618042, 0.18474653363227844, 0.04281465709209442, -0.06572215259075165, 0.014569575898349285, 0.3072000741958618, 0.3281792402267456, 0.6772937774658203, -0.2702369689941406, -0.187533438205719, -0.3799321949481964, 0.04308738186955452, 0.28654026985168457, -0.3073631227016449, -0.07781064510345459, 0.04722612723708153, -0.12656068801879883, -0.3398217558860779, -0.00709502911195159, 0.10334618389606476, -0.16982786357402802, 0.2588120698928833, 0.316236674785614, 0.14657354354858398, -0.07439807802438736, -0.12184876203536987, -0.12943978607654572, -0.251859188079834, -0.22229838371276855, -0.2623872756958008, -0.17957501113414764, 0.1798297017812729, -0.09648377448320389, -0.0973353460431099, -0.16712673008441925, 0.017644574865698814, 0.39912039041519165, -0.20932912826538086, -0.16689229011535645, 0.31774279475212097, -0.2315434217453003, 0.059721753001213074, 0.04466294124722481, 0.2218233346939087, -0.005772148258984089, 0.49407050013542175, -0.2855702340602875, -0.0785241350531578, 0.78602135181427, -0.39185062050819397, -0.02284560725092888, -0.2092852145433426, 0.24637705087661743, -0.08429063856601715, -0.1669444888830185, -0.23458272218704224, 0.008382133208215237, 0.20627112686634064, 0.001895389286801219, -0.3033877909183502, 0.06010018289089203, 0.46671435236930847, -0.07100710272789001, -0.14606007933616638, 0.39399757981300354, 0.1948145031929016, 0.17317263782024384, 0.11242499947547913, -0.20699845254421234 ]
https://github.com/huggingface/datasets/issues/1805
can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index
I totally forgot to answer this issue, I'm so sorry. I was able to get it working by installing `datasets` from source. Huge thanks!
So, I have the following instances in my dataset ``` {'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of this increase in rotation?', 'answer': 'C', 'example_id': 'ARCCH_Mercury_7175875', 'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'}, (...)]} ``` The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`. I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index ``` dpr_dataset = load_dataset( "text", data_files=ARC_CORPUS_TEXT, cache_dir=CACHE_DIR, split="train[:100%]", ) dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}") torch.set_grad_enabled(False) ``` Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_ ``` def generate_context(example): question_text = example['question'] for option in example['options']: question_with_option = question_text + " " + option['option_text'] tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device) question_embed = ( question_encoder(**tokenize_text) )[0][0].cpu().numpy() _, retrieved_examples = dpr_dataset.get_nearest_examples( "embeddings", question_embed, k=10 ) # option["option_context"] = retrieved_examples["text"] # option["option_context"] = " ".join(option["option_context"]).strip() #result_dict = { # 'example_id': example['example_id'], # 'answer': example['answer'], # 'question': question_text, #options': example['options'] # } return example ``` I intentionally commented on this portion of the code. But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)` It calls the following error: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-55-75a458ce205c> in <module> ----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1257 fn_kwargs=fn_kwargs, 1258 new_fingerprint=new_fingerprint, -> 1259 update_data=update_data, 1260 ) 1261 else: ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 155 } 156 # apply actual function --> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 159 # re-apply format to the output ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name 157 kwargs[fingerprint_name] = update_fingerprint( --> 158 self._fingerprint, transform, kwargs_for_fingerprint 159 ) 160 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args) 103 for key in sorted(transform_args): 104 hasher.update(key) --> 105 hasher.update(transform_args[key]) 106 return hasher.hexdigest() 107 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value) 55 def update(self, value): 56 self.m.update(f"=={type(value)}==".encode("utf8")) ---> 57 self.m.update(self.hash(value).encode("utf-8")) 58 59 def hexdigest(self): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value) 51 return cls.dispatch[type(value)](cls, value) 52 else: ---> 53 return cls.hash_default(value) 54 55 def update(self, value): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value) 44 @classmethod 45 def hash_default(cls, value): ---> 46 return cls.hash_bytes(dumps(value)) 47 48 @classmethod ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj) 387 file = StringIO() 388 with _no_cache_fields(obj): --> 389 dump(obj, file) 390 return file.getvalue() 391 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file) 359 def dump(obj, file): 360 """pickle an object to a file""" --> 361 Pickler(file, recurse=True).dump(obj) 362 return 363 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj) 452 raise PicklingError(msg) 453 else: --> 454 StockPickler.dump(self, obj) 455 stack.clear() # clear record of 'recursion-sensitive' pickled objects 456 return /usr/lib/python3.7/pickle.py in dump(self, obj) 435 if self.proto >= 4: 436 self.framer.start_framing() --> 437 self.save(obj) 438 self.write(STOP) 439 self.framer.end_framing() /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj) 554 dill._dill._create_function, 555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults), --> 556 obj=obj, 557 ) 558 else: /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 636 else: 637 save(func) --> 638 save(args) 639 write(REDUCE) 640 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 /usr/lib/python3.7/pickle.py in save_tuple(self, obj) 784 write(MARK) 785 for element in obj: --> 786 save(element) 787 788 if id(obj) in memo: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 522 reduce = getattr(obj, "__reduce_ex__", None) 523 if reduce is not None: --> 524 rv = reduce(self.proto) 525 else: 526 reduce = getattr(obj, "__reduce__", None) TypeError: can't pickle SwigPyObject objects ``` Which I have no idea how to solve/deal with it
24
can't pickle SwigPyObject objects when calling dataset.get_nearest_examples from FAISS index So, I have the following instances in my dataset ``` {'question': 'An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of this increase in rotation?', 'answer': 'C', 'example_id': 'ARCCH_Mercury_7175875', 'options':[{'option_context': 'One effect of increased amperage in the planetary world (..)', 'option_id': 'A', 'option_text': 'Planetary density will decrease.'}, (...)]} ``` The `options` value is always an list with 4 options, each one is a dict with `option_context`; `option_id` and `option_text`. I would like to overwrite the `option_context` of each instance of my dataset for a dpr result that I am developing. Then, I trained a model already and save it in a FAISS index ``` dpr_dataset = load_dataset( "text", data_files=ARC_CORPUS_TEXT, cache_dir=CACHE_DIR, split="train[:100%]", ) dpr_dataset.load_faiss_index("embeddings", f"{ARC_CORPUS_FAISS}") torch.set_grad_enabled(False) ``` Then, as a processor of my dataset, I created a map function that calls the `dpr_dataset` for each _option_ ``` def generate_context(example): question_text = example['question'] for option in example['options']: question_with_option = question_text + " " + option['option_text'] tokenize_text = question_tokenizer(question_with_option, return_tensors="pt").to(device) question_embed = ( question_encoder(**tokenize_text) )[0][0].cpu().numpy() _, retrieved_examples = dpr_dataset.get_nearest_examples( "embeddings", question_embed, k=10 ) # option["option_context"] = retrieved_examples["text"] # option["option_context"] = " ".join(option["option_context"]).strip() #result_dict = { # 'example_id': example['example_id'], # 'answer': example['answer'], # 'question': question_text, #options': example['options'] # } return example ``` I intentionally commented on this portion of the code. But when I call the `map` method, `ds_with_context = dataset.map(generate_context,load_from_cache_file=False)` It calls the following error: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-55-75a458ce205c> in <module> ----> 1 ds_with_context = dataset.map(generate_context,load_from_cache_file=False) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0) 301 num_proc=num_proc, 302 ) --> 303 for k, dataset in self.items() 304 } 305 ) ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1257 fn_kwargs=fn_kwargs, 1258 new_fingerprint=new_fingerprint, -> 1259 update_data=update_data, 1260 ) 1261 else: ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 155 } 156 # apply actual function --> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 159 # re-apply format to the output ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name 157 kwargs[fingerprint_name] = update_fingerprint( --> 158 self._fingerprint, transform, kwargs_for_fingerprint 159 ) 160 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args) 103 for key in sorted(transform_args): 104 hasher.update(key) --> 105 hasher.update(transform_args[key]) 106 return hasher.hexdigest() 107 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in update(self, value) 55 def update(self, value): 56 self.m.update(f"=={type(value)}==".encode("utf8")) ---> 57 self.m.update(self.hash(value).encode("utf-8")) 58 59 def hexdigest(self): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash(cls, value) 51 return cls.dispatch[type(value)](cls, value) 52 else: ---> 53 return cls.hash_default(value) 54 55 def update(self, value): ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in hash_default(cls, value) 44 @classmethod 45 def hash_default(cls, value): ---> 46 return cls.hash_bytes(dumps(value)) 47 48 @classmethod ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dumps(obj) 387 file = StringIO() 388 with _no_cache_fields(obj): --> 389 dump(obj, file) 390 return file.getvalue() 391 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in dump(obj, file) 359 def dump(obj, file): 360 """pickle an object to a file""" --> 361 Pickler(file, recurse=True).dump(obj) 362 return 363 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in dump(self, obj) 452 raise PicklingError(msg) 453 else: --> 454 StockPickler.dump(self, obj) 455 stack.clear() # clear record of 'recursion-sensitive' pickled objects 456 return /usr/lib/python3.7/pickle.py in dump(self, obj) 435 if self.proto >= 4: 436 self.framer.start_framing() --> 437 self.save(obj) 438 self.write(STOP) 439 self.framer.end_framing() /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py in save_function(pickler, obj) 554 dill._dill._create_function, 555 (obj.__code__, globs, obj.__name__, obj.__defaults__, obj.__closure__, obj.__dict__, fkwdefaults), --> 556 obj=obj, 557 ) 558 else: /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 636 else: 637 save(func) --> 638 save(args) 639 write(REDUCE) 640 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 /usr/lib/python3.7/pickle.py in save_tuple(self, obj) 784 write(MARK) 785 for element in obj: --> 786 save(element) 787 788 if id(obj) in memo: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 880 for k, v in tmp: 881 save(k) --> 882 save(v) 883 write(SETITEMS) 884 elif n: /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 547 548 # Save the reduce() output and finally memoize the object --> 549 self.save_reduce(obj=obj, *rv) 550 551 def persistent_id(self, obj): /usr/lib/python3.7/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj) 660 661 if state is not None: --> 662 save(state) 663 write(BUILD) 664 /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 502 f = self.dispatch.get(t) 503 if f is not None: --> 504 f(self, obj) # Call unbound method with explicit self 505 return 506 ~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/dill/_dill.py in save_module_dict(pickler, obj) 939 # we only care about session the first pass thru 940 pickler._session = False --> 941 StockPickler.save_dict(pickler, obj) 942 log.info("# D2") 943 return /usr/lib/python3.7/pickle.py in save_dict(self, obj) 854 855 self.memoize(obj) --> 856 self._batch_setitems(obj.items()) 857 858 dispatch[dict] = save_dict /usr/lib/python3.7/pickle.py in _batch_setitems(self, items) 885 k, v = tmp[0] 886 save(k) --> 887 save(v) 888 write(SETITEM) 889 # else tmp is empty, and we're done /usr/lib/python3.7/pickle.py in save(self, obj, save_persistent_id) 522 reduce = getattr(obj, "__reduce_ex__", None) 523 if reduce is not None: --> 524 rv = reduce(self.proto) 525 else: 526 reduce = getattr(obj, "__reduce__", None) TypeError: can't pickle SwigPyObject objects ``` Which I have no idea how to solve/deal with it I totally forgot to answer this issue, I'm so sorry. I was able to get it working by installing `datasets` from source. Huge thanks!
[ 0.0690416544675827, -0.3887845277786255, -0.0696360319852829, 0.24682627618312836, 0.16422533988952637, 0.02776423655450344, 0.17842751741409302, 0.05411210283637047, 0.4089658856391907, 0.5476053357124329, -0.05009975656867027, 0.4959981441497803, 0.11579342186450958, -0.12733423709869385, -0.26762643456459045, 0.05151048302650452, 0.08499471098184586, 0.013422203250229359, 0.021621186286211014, -0.24258486926555634, -0.5357052683830261, -0.04840216785669327, -0.19842609763145447, 0.049339380115270615, -0.03984175994992256, 0.01803356036543846, -0.03328324854373932, 0.09544756263494492, -0.05844572186470032, -0.4539257884025574, 0.40457576513290405, 0.2576845586299896, 0.2116619348526001, -0.01342297624796629, -0.00012667452392634004, 0.06790226697921753, 0.20534729957580566, -0.021252067759633064, -0.164621964097023, 0.08674998581409454, -0.0015750887105241418, 0.30584120750427246, 0.2944117486476898, -0.3542502820491791, -0.21792462468147278, -0.2550705671310425, -0.05045655369758606, -0.13455621898174286, 0.06806491315364838, 0.19159580767154694, 0.06709270179271698, 0.1456798017024994, -0.11307282745838165, -0.1586889773607254, 0.22158516943454742, -0.010912882164120674, -0.062061458826065063, 0.16215088963508606, 0.2719886600971222, 0.30666154623031616, 0.25445738434791565, 0.27488571405410767, -0.24607126414775848, 0.03687286004424095, -0.07260012626647949, 0.09264019131660461, 0.33780473470687866, 0.09200750291347504, 0.15567255020141602, 0.09694641083478928, 0.24981294572353363, -0.2737821638584137, -0.47020700573921204, -0.4137711822986603, -0.06139599159359932, -0.1567489504814148, -0.26279500126838684, -0.5509204268455505, -0.0172366164624691, 0.24829252064228058, 0.12546344101428986, 0.1021852120757103, -0.06395697593688965, 0.5212545394897461, 0.4118616282939911, 0.03595670685172081, 0.014423856511712074, 0.21093373000621796, 0.10664113610982895, -0.057648152112960815, 0.13660407066345215, -0.13325312733650208, -0.028369121253490448, -0.13212011754512787, -0.2131492793560028, -0.12421438843011856, 0.48463714122772217, -0.2354138046503067, 0.24505795538425446, 0.08462581038475037, -0.12905952334403992, 0.40145301818847656, 0.06914247572422028, 0.10754986852407455, 0.1615166813135147, -0.11862710863351822, -0.0983867272734642, 0.039572574198246, -0.11711687594652176, 0.08703568577766418, -0.16784967482089996, 0.11425749957561493, 0.02689971774816513, -0.05530659481883049, -0.6315279603004456, -0.012941357679665089, 0.32059532403945923, -0.14490224421024323, -0.10143198817968369, 0.25060635805130005, -0.6014733910560608, 0.3429078459739685, 0.1318703293800354, 0.5309945940971375, 0.014597310684621334, 0.11663586646318436, 0.1949889063835144, 0.2470780909061432, -0.29601508378982544, 0.42175084352493286, -0.226698637008667, -0.04202675074338913, 0.03467004746198654, -0.05882048234343529, -0.12180690467357635, 0.4785674214363098, 0.2849900722503662, -0.2606019973754883, 0.09783105552196503, -0.07848558574914932, 0.02272619865834713, -0.11066296696662903, 0.3640687167644501, 0.19701285660266876, -0.053364358842372894, 0.07728292047977448, 0.1710084080696106, -0.09544029086828232, -0.17448939383029938, 0.11748067289590836, 0.13840001821517944, -0.10213892161846161, 0.19039176404476166, 0.07096385210752487, -0.13898591697216034, -0.13179858028888702, -0.21304525434970856, 0.12119535356760025, -0.08783568441867828, 0.23695804178714752, 0.18705697357654572, -0.18788206577301025, -0.08760373294353485, -0.1486044079065323, 0.2090405821800232, 0.516130805015564, -0.23504462838172913, -0.07585521042346954, 0.024494463577866554, 0.19517812132835388, 0.35019588470458984, 0.20101402699947357, -0.32679858803749084, 0.2561735510826111, 0.03712492436170578, 0.23221638798713684, 0.3163660764694214, -0.44901859760284424, -0.6639247536659241, -0.09019973874092102, -0.0756988674402237, 0.03977303206920624, 0.33173897862434387, 0.09759025275707245, 0.3703523576259613, 0.293063223361969, -0.14594794809818268, 0.5172797441482544, 0.1696167141199112, 0.043467894196510315, -0.2609553933143616, -0.3448401391506195, 0.023142216727137566, 0.12701468169689178, -0.07336784899234772, 0.16323880851268768, -0.04404875263571739, -0.26762571930885315, 0.36140185594558716, -0.15033721923828125, -0.10212824493646622, 0.26906561851501465, 0.521695613861084, 0.21598754823207855, 0.21308963000774384, -0.2032639980316162, -0.08442595601081848, 0.1282852590084076, -0.15222348272800446, 0.022889573127031326, -0.07821725308895111, -0.20904767513275146, -0.01356798317283392, 0.19774885475635529, -0.31354784965515137, -0.17404907941818237, -0.07465202361345291, 0.1529776006937027, 0.28819945454597473, -0.13186202943325043, -0.09894552081823349, 0.04934300109744072, -0.33996671438217163, 0.2049800008535385, -0.5214461088180542, 0.42709970474243164, -0.0935489758849144, -0.31373703479766846, -0.18720224499702454, 0.25834858417510986, 0.013484981842339039, -0.15099593997001648, -0.15897677838802338, 0.10670274496078491, 0.47489625215530396, -0.4063607454299927, 0.1756877452135086, -0.3079214096069336, -0.019566278904676437, -0.10988972336053848, 0.11341477185487747, 0.00908244214951992, 0.14439736306667328, 0.2156587392091751, -0.009514634497463703, 0.6227202415466309, 0.37243229150772095, 0.15079781413078308, -0.07652810215950012, 0.1891469806432724, 0.14738112688064575, -0.1591728776693344, -0.05282853543758392, -0.5078772902488708, -0.18280839920043945, 0.3740833103656769, 0.11359700560569763, 0.028329793363809586, -0.44087767601013184, 0.4054209291934967, 0.24011757969856262, 0.06032455712556839, -0.11842723190784454, 0.1541835218667984, -0.05681478977203369, -0.036747194826602936, 0.02928864024579525, -0.21392661333084106, 0.10529609024524689, 0.3675737977027893, -0.27792027592658997, -0.3208725154399872, 0.008762474171817303, -0.04218859598040581, 0.06506244838237762, 0.37360939383506775, -0.04236515238881111, -0.2475411593914032, 0.0935092642903328, -0.005428020376712084, -0.3840720057487488, -0.30605030059814453, -0.03811902925372124, 0.070165254175663, -0.11144271492958069, 0.174390971660614, -0.37495157122612, -0.14921361207962036, 0.08720782399177551, -0.45783910155296326, 0.19163145124912262, -0.0981224775314331, 0.17391915619373322, 0.2258584052324295, -0.2370428591966629, 0.44666630029678345, 0.11919833719730377, 0.15984484553337097, 0.052977461367845535, -0.19985873997211456, -0.12007653713226318, -0.17553363740444183, -0.4576171040534973, -0.09228981286287308, -0.22862549126148224, 0.4021477997303009, 0.17739485204219818, 0.21580420434474945, -0.09752186387777328, -0.29271048307418823, 0.02110203169286251, 0.028738420456647873, 0.14060825109481812, 0.20209285616874695, 0.18796974420547485, 0.04679945111274719, -0.23935078084468842, -0.1135711669921875, 0.07079411298036575, 0.16612976789474487, -0.20331282913684845, -0.17623819410800934, -0.04304250702261925, -0.081464022397995, 0.10186342149972916, -0.21136267483234406, -0.2890203595161438, -0.22593727707862854, 0.15159456431865692, 0.09191535413265228, 0.10955408960580826, 0.021820589900016785, 0.3725820779800415, 0.055136434733867645, -0.20809927582740784, -0.1080138310790062, -0.27291110157966614, 0.009454824961721897, -0.07352659106254578, -0.04149949923157692, -0.2861773371696472, -0.5065011382102966, -0.33980247378349304, -0.23709435760974884, 0.1956360638141632, -0.23539920151233673, -0.3361145555973053, -0.34408339858055115, 0.1592901051044464, 0.15567070245742798, 0.14096125960350037, 0.3760392665863037, 0.22478249669075012, -0.08757426589727402, -0.16665880382061005, -0.30555260181427, 0.44457411766052246, 0.1400023102760315, 0.08830026537179947, 0.10773412883281708, 0.40671825408935547, -0.18408216536045074, 0.5277167558670044, 0.12478594481945038, -0.520957887172699, 0.3717179596424103, -0.014029781334102154, 0.015872091054916382, -0.06754041463136673, -0.2851014733314514, 0.16566403210163116, 0.19252713024616241, -0.18165434896945953, 0.1626507043838501, -0.1984025090932846, 0.05916886031627655, 0.33942487835884094, 0.3197857737541199, -0.38191989064216614, -0.27683520317077637, -0.05373390391469002, -0.15951941907405853, -0.31609755754470825, 0.02526717260479927, 0.3339828848838806, -0.5367686152458191, 0.2368260622024536, 0.08284617215394974, 0.1489071398973465, 0.18797676265239716, -0.05669783800840378, -0.0769125446677208, -0.10680835694074631, -0.3594059646129608, 0.4149489402770996, 0.014454139396548271, 0.24012383818626404, 0.08461510390043259, -0.034011974930763245, 0.3434596359729767, 0.06843201816082001, 0.957190752029419, -0.0614786297082901, -0.023952342569828033, 0.3976440727710724, -0.22147272527217865, -0.3634815216064453, 0.02566412463784218, -0.17715513706207275, 0.07975807040929794, 0.10193030536174774, 0.22994349896907806, -0.16012802720069885, -0.3377135097980499, 0.026532398536801338, 0.016739433631300926, -0.12575632333755493, 0.03941499441862106, -0.07083597034215927, -0.4167461395263672, -0.4663294851779938, 0.11469566076993942, -0.02021375112235546, 0.14230020344257355, 0.09586647152900696, -0.21130254864692688, -0.5041612386703491, -0.11018233746290207, -0.13649457693099976, 0.15174584090709686, 0.3936244547367096, 0.1454341560602188, 0.13112349808216095, 0.1425924450159073, 0.3486037850379944, 0.6238426566123962, 0.22571691870689392, -0.0752173587679863, -0.21511931717395782, -0.0062147146090865135, 0.16428476572036743, 0.09455659240484238, 0.4280666708946228, -0.06382405012845993, 0.43631044030189514, -0.04150761663913727, 0.12463462352752686, 0.006139575503766537, 0.22276616096496582, 0.2262485772371292, 0.21135662496089935, 0.05645104497671127, -0.43798908591270447, 0.5630468726158142, 0.021087542176246643, -0.17949101328849792, 0.31359896063804626, 0.1618501991033554, -0.25788816809654236, 1.0739572048187256, 0.22333064675331116, 1.0657092332839966, -0.08354932069778442, 0.22637826204299927, 0.1986534744501114, 0.06445517390966415, 0.43289756774902344, 0.12280596047639847, 0.15999150276184082, -0.3314414322376251, 0.2574235498905182, 0.007882929407060146, -0.310005784034729, 0.14132024347782135, 0.2411952167749405, -0.08309315145015717, -0.09476273506879807, -0.21930065751075745, -0.26755470037460327, -0.06948573887348175, 0.03920772671699524, 0.3647851049900055, -0.3496556580066681, -0.3084579110145569, -0.031542595475912094, 0.28542110323905945, 0.2928277552127838, 0.24883200228214264, -0.1491137593984604, -0.4724767506122589, -0.1838759481906891, -0.21596010029315948, 0.005299626849591732, -0.277557373046875, 0.27017539739608765, 0.17104129493236542, -0.30572566390037537, -0.16933828592300415, 0.2380608767271042, 0.18919967114925385, -0.1477191001176834, -0.1746549904346466, 0.1169828251004219, 0.15543529391288757, -0.09744992107152939, -0.008984936401247978, -0.27513912320137024, 0.3802003264427185, 0.155644491314888, -0.39325621724128723, 0.01533166877925396, 0.15893681347370148, -0.43875688314437866, -0.0904444083571434, -0.08017124980688095, -0.2309846580028534, -0.2791675329208374, -0.35150158405303955, -0.06574267894029617, -0.13900725543498993, -0.42861926555633545, -0.02188313938677311, 0.013056565076112747, -0.2057519257068634, 0.4152247905731201, -0.12011464685201645, -0.33868691325187683, -0.17250479757785797, 0.5766263604164124, 0.20496271550655365, 0.09537576884031296, 0.4988759756088257, 0.20451720058918, -0.14762620627880096, -0.18616238236427307, -0.4698057174682617, 0.4244067370891571, 0.07368453592061996, 0.3030468225479126, -0.07642859220504761, -0.31451985239982605, -0.10987832397222519, -0.01093220617622137, 0.03224877268075943, -0.13382354378700256, -0.541547417640686, -0.22277231514453888, -0.5453015565872192, 0.19932708144187927, 0.0189191997051239, 0.47274312376976013, -0.20540232956409454, 0.51674884557724, -0.5072893500328064, -0.2756144106388092, -0.16703450679779053, -0.022106986492872238, -0.46642547845840454, 0.023471781983971596, -0.33027219772338867, -0.1691894382238388, 0.07720714062452316, 0.05150343105196953, 0.03244854882359505, -0.051121994853019714, -0.06588917970657349, -0.10555427521467209, -0.15735960006713867, 0.18042689561843872, 0.09316839277744293, -0.1917533576488495, -0.12359721213579178, -0.041865237057209015, -0.14710678160190582, -0.17900067567825317, 0.1822984516620636, 0.2753230035305023, -0.06500321626663208, 0.17344684898853302, 0.04644010588526726, 0.09533505886793137, 0.2519478499889374, 0.09385231882333755, -0.029662271961569786, 0.30964839458465576, 0.09706484526395798, 0.11753427982330322, -0.1214076355099678, -0.031148405745625496, -0.06393007934093475, 0.023354891687631607, -0.001578976633027196, -0.0470108725130558, -0.08501826226711273, -0.03448367863893509, -0.35944417119026184, 0.3289598822593689, 0.27954426407814026, 0.5147291421890259, 0.08545307070016861, -0.23992294073104858, 0.2423899620771408, 0.046331893652677536, -0.21199309825897217, -0.2285028100013733, 0.35356706380844116, -0.2673211693763733, 0.23388199508190155, 0.21015824377536774, -0.09037096053361893, 0.19813011586666107, -0.3148200213909149, -0.05228165537118912, 0.20384842157363892, 0.35052013397216797, 0.14751894772052765, 0.20917542278766632, 0.13171036541461945, 0.051564253866672516, 0.1366334855556488, 0.4851369857788086, 0.7115125060081482, 0.5667840242385864, -0.010981930419802666, 0.6284356117248535, -0.2339814305305481, 0.03877270221710205, 0.03301261365413666, -0.5802494287490845, 0.5933232307434082, 0.08162195235490799, -0.01607135310769081, 0.055232927203178406, 0.06653356552124023, 0.16970835626125336, 0.12200543284416199, -0.24251630902290344, -0.07678107917308807, 0.2856164872646332, -0.22198614478111267, -0.5239720344543457, -0.1637643277645111, 0.013442722149193287, 0.05491058528423309, -0.10308419913053513, -0.004145148675888777, -0.2838749289512634, 0.1822262555360794, -0.1851770132780075, -0.24036307632923126, -0.28125008940696716, -0.2857099771499634, -0.06400829553604126, 0.13658994436264038, -0.07531294971704483, -0.10241100937128067, -0.1006358191370964, -0.1416369080543518, -0.1163172498345375, 0.05885474011301994, 0.09470421820878983, 0.14169110357761383, -0.5192409157752991, -0.037828732281923294, -0.057373225688934326, -0.17661401629447937, -0.20650936663150787, 0.023322641849517822, -0.16379781067371368, -0.021265288814902306, 0.19774051010608673, -0.006110486574470997, -0.07587399333715439, -0.34456610679626465, 0.2321973294019699, 0.3549720048904419, 0.03815597668290138, 0.09397199749946594, 0.06182662025094032, 0.07818374037742615, 0.08916853368282318, -0.0918707475066185, -0.2969633936882019, -0.0976448580622673, 0.3326539695262909, -0.040677446871995926, 0.19271856546401978, 0.16474993526935577, 0.0005437723593786359, -0.24791684746742249, 0.3903939723968506, 0.3924206495285034, 0.32475215196609497, -0.21644790470600128, 0.3476310074329376, -0.036235250532627106, 0.2104083001613617, -0.04794299229979515, -0.31859996914863586, 0.377913236618042, 0.18474653363227844, 0.04281465709209442, -0.06572215259075165, 0.014569575898349285, 0.3072000741958618, 0.3281792402267456, 0.6772937774658203, -0.2702369689941406, -0.187533438205719, -0.3799321949481964, 0.04308738186955452, 0.28654026985168457, -0.3073631227016449, -0.07781064510345459, 0.04722612723708153, -0.12656068801879883, -0.3398217558860779, -0.00709502911195159, 0.10334618389606476, -0.16982786357402802, 0.2588120698928833, 0.316236674785614, 0.14657354354858398, -0.07439807802438736, -0.12184876203536987, -0.12943978607654572, -0.251859188079834, -0.22229838371276855, -0.2623872756958008, -0.17957501113414764, 0.1798297017812729, -0.09648377448320389, -0.0973353460431099, -0.16712673008441925, 0.017644574865698814, 0.39912039041519165, -0.20932912826538086, -0.16689229011535645, 0.31774279475212097, -0.2315434217453003, 0.059721753001213074, 0.04466294124722481, 0.2218233346939087, -0.005772148258984089, 0.49407050013542175, -0.2855702340602875, -0.0785241350531578, 0.78602135181427, -0.39185062050819397, -0.02284560725092888, -0.2092852145433426, 0.24637705087661743, -0.08429063856601715, -0.1669444888830185, -0.23458272218704224, 0.008382133208215237, 0.20627112686634064, 0.001895389286801219, -0.3033877909183502, 0.06010018289089203, 0.46671435236930847, -0.07100710272789001, -0.14606007933616638, 0.39399757981300354, 0.1948145031929016, 0.17317263782024384, 0.11242499947547913, -0.20699845254421234 ]
https://github.com/huggingface/datasets/issues/1803
Querying examples from big datasets is slower than small datasets
Hello, @lhoestq / @gaceladri : We have been seeing similar behavior with bigger datasets, where querying time increases. Are you folks aware of any solution that fixes this problem yet?
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed.
30
Querying examples from big datasets is slower than small datasets After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed. Hello, @lhoestq / @gaceladri : We have been seeing similar behavior with bigger datasets, where querying time increases. Are you folks aware of any solution that fixes this problem yet?
[ -0.4054942727088928, 0.05864378437399864, -0.0799715518951416, 0.13153308629989624, -0.0796947106719017, -0.1776912361383438, 0.24417482316493988, 0.4918097257614136, -0.2313980609178543, 0.1801939457654953, 0.08149327337741852, 0.055089350789785385, 0.1250860095024109, -0.10075677931308746, 0.13072526454925537, -0.2734065651893616, 0.08074167370796204, 0.12484577298164368, -0.07513296604156494, -0.034529052674770355, 0.02403038553893566, -0.19028687477111816, -0.3486265540122986, 0.01847008988261223, -0.06632749736309052, -0.2240716814994812, -0.23070643842220306, 0.10720640420913696, -0.1658506989479065, -0.4173954129219055, -0.059535980224609375, -0.1528189778327942, 0.22993043065071106, 0.42703118920326233, -0.0001130733362515457, 0.016405265778303146, 0.22793056070804596, 0.08941767364740372, -0.19974665343761444, 0.1829340159893036, 0.17480677366256714, -0.28385478258132935, 0.08687470108270645, -0.40976712107658386, -0.04715430736541748, -0.29719898104667664, 0.09342747181653976, 0.018900498747825623, -0.0412534736096859, 0.3089764714241028, 0.14036434888839722, 0.5131545662879944, -0.19170530140399933, -0.13366322219371796, 0.6230682134628296, 0.20515242218971252, -0.35063040256500244, 0.5299628376960754, 0.5806369781494141, -0.04879843071103096, -0.30531570315361023, 0.13614042103290558, -0.08144467324018478, 0.2701414227485657, 0.03702276572585106, 0.1979731172323227, -0.11280546337366104, 0.17959170043468475, 0.12381085753440857, 0.4088881313800812, 0.30839046835899353, -0.08939094841480255, -0.3148857057094574, -0.2920178472995758, -0.05692872032523155, -0.2332932949066162, 0.020308123901486397, 0.3264200985431671, -0.2583792209625244, 0.2713417708873749, -0.31377583742141724, 0.15477776527404785, -0.10565107315778732, 0.1795514076948166, -0.15115849673748016, -0.06861541420221329, 0.11505071818828583, 0.19851066172122955, 0.0937962606549263, 0.013313007541000843, 0.15119309723377228, -0.16962184011936188, 0.02840566076338291, -0.05211048200726509, -0.2883045971393585, -0.08815452456474304, 0.15566284954547882, 0.17557816207408905, 0.2685050666332245, 0.15931034088134766, 0.4223199486732483, 0.11828381568193436, 0.26519328355789185, 0.0943622887134552, 0.045134931802749634, -0.009021676145493984, -0.26956507563591003, -0.0009781792759895325, 0.34788021445274353, 0.2753002941608429, -0.29451656341552734, 0.020877687260508537, -0.23832088708877563, -0.184454545378685, 0.18156316876411438, -0.1973290592432022, -0.02745402418076992, -0.13371673226356506, 0.004323744215071201, -0.08730420470237732, -0.3421138823032379, -0.12782323360443115, -0.02655758336186409, 0.47846871614456177, -0.1834658682346344, -0.026572175323963165, -0.21266649663448334, 0.1222231388092041, -0.33534297347068787, -0.2540249824523926, -0.12431267648935318, -0.1883355975151062, -0.16008004546165466, 0.23030751943588257, 0.10979518294334412, 0.056096822023391724, 0.30207359790802, 0.05854012444615364, -0.19851525127887726, 0.24196186661720276, 0.3923712372779846, -0.18086625635623932, 0.10445664823055267, 0.01975584402680397, 0.011255129240453243, 0.06353233754634857, -0.16373945772647858, 0.24476492404937744, -0.39108985662460327, 0.19727075099945068, -0.1953565925359726, -0.3384780287742615, 0.030638962984085083, 0.0919928252696991, -0.10569485276937485, -0.09975976496934891, -0.22708196938037872, 0.24624505639076233, -0.06942253559827805, -0.19974622130393982, -0.07743778079748154, -0.09419345110654831, 0.04028930142521858, -0.15313255786895752, 0.1413009762763977, 0.07762691378593445, -0.2506588101387024, 0.20185065269470215, -0.04518560320138931, 0.39703428745269775, 0.25439050793647766, 0.5308364033699036, -0.5031026601791382, 0.16236107051372528, -0.1327785700559616, 0.29661571979522705, 0.23202413320541382, -0.02813166193664074, -0.6667606830596924, 0.49735313653945923, -0.004257832188159227, 0.024188971146941185, 0.2724846601486206, 0.16171233355998993, 0.35167762637138367, 0.10784818977117538, -0.04906284064054489, 0.38371172547340393, 0.18394838273525238, 0.22793157398700714, -0.34009993076324463, -0.23031051456928253, -0.048727523535490036, 0.34797483682632446, -0.32447266578674316, -0.15712113678455353, 0.31125161051750183, -0.3645979166030884, 0.49066033959388733, -0.20656386017799377, -0.18362614512443542, 0.2509787976741791, 0.08702335506677628, -0.2777459919452667, 0.11834874004125595, 0.09648671746253967, 0.08594413846731186, 0.2421768307685852, -0.1894872784614563, -0.018465213477611542, 0.04509013518691063, -0.18880829215049744, -0.07221604138612747, 0.06196274235844612, -0.05526028200984001, -0.04738488793373108, -0.04489734396338463, -0.09182941168546677, 0.33068767189979553, -0.003530854592099786, 0.16473397612571716, -0.16320514678955078, -0.26933756470680237, -0.009445730596780777, -0.2626189589500427, 0.07929304242134094, 0.09506817162036896, -0.12131035327911377, 0.009306208230555058, -0.24925372004508972, -0.08842337876558304, -0.0017332854913547635, -0.15193812549114227, 0.3275272250175476, 0.15022902190685272, 0.1502477079629898, 0.22353079915046692, 0.15224812924861908, 0.1419573575258255, -0.0849314033985138, 0.38797375559806824, 0.2968660891056061, 0.07531574368476868, 0.036525871604681015, -0.405347615480423, 0.5263327360153198, 0.39331212639808655, 0.3160548508167267, 0.290402889251709, -0.3733910024166107, 0.1644449234008789, 0.048380132764577866, 0.11050285398960114, 0.4106387495994568, 0.29379841685295105, 0.24215678870677948, 0.5489556193351746, 0.16632571816444397, -0.31619691848754883, 0.11558142304420471, 0.45061421394348145, -0.24960146844387054, 0.018041525036096573, 0.18730460107326508, -0.42171332240104675, -0.18561697006225586, 0.3702153265476227, -0.15096870064735413, 0.32658088207244873, 0.33125290274620056, 0.16064445674419403, -0.12395523488521576, 0.027443697676062584, -0.2904405891895294, 0.2625504434108734, 0.09679485112428665, 0.14140857756137848, -0.22010771930217743, 0.43684327602386475, -0.0920058935880661, -0.24601086974143982, -0.38159775733947754, -0.039207637310028076, 0.19213202595710754, -0.12640082836151123, 0.30729958415031433, -0.09829865396022797, 0.053619012236595154, -0.03245216980576515, 0.13080063462257385, 0.07907264679670334, -0.08653497695922852, 0.045037925243377686, 0.19354145228862762, -0.18121027946472168, -0.15833832323551178, -0.05519140884280205, 0.22789518535137177, 0.26178839802742004, -0.2087608426809311, -0.0017743848729878664, -0.07168693840503693, -0.39838707447052, 0.08031274378299713, 0.2775999903678894, 0.14939245581626892, 0.145045667886734, -0.04691789671778679, -0.18544800579547882, -0.2801744341850281, -0.3152380585670471, -0.006573209073394537, 0.07990758866071701, 0.2866181433200836, -0.07090092450380325, 0.07639522105455399, -0.3244517743587494, -0.1447666883468628, 0.06370999664068222, -0.23290982842445374, -0.1513255089521408, 0.2760070562362671, -0.1807476431131363, 0.0008982555009424686, 0.08878341317176819, -0.3163764178752899, -0.16730767488479614, -0.30017736554145813, 0.37843063473701477, 0.1727609634399414, 0.20834605395793915, 0.10755512118339539, 0.3943430781364441, 0.12237091362476349, 0.009659716859459877, 0.1228194460272789, 0.0379166305065155, -0.41495174169540405, 0.5190879106521606, -0.1802637130022049, -0.4500642716884613, -0.48882150650024414, -0.24293015897274017, -0.16414962708950043, 0.45249906182289124, -0.5341609120368958, -0.031146083027124405, -0.5311317443847656, 0.4127752184867859, 0.12353946268558502, 0.10216737538576126, 0.04960310086607933, -0.2131577730178833, -0.20895537734031677, 0.12922994792461395, 0.08261851966381073, -0.006419765297323465, -0.08785071223974228, 0.20213820040225983, -0.06152070313692093, 0.03371107578277588, -0.009868512861430645, 0.7692416310310364, 0.0689445436000824, -0.012904303148388863, 0.2635362446308136, -0.09490275382995605, 0.05190661549568176, -0.1647459715604782, 0.1458873599767685, 0.09050365537405014, -0.2608799934387207, -0.26992738246917725, 0.41838985681533813, 0.1641470044851303, -0.3080240488052368, 0.059133902192115784, -0.1851305067539215, -0.09765846282243729, -0.2781842052936554, 0.2541961967945099, 0.15882420539855957, 0.17439840734004974, 0.06986048817634583, 0.3926577866077423, -0.30189964175224304, -0.13592687249183655, 0.07070915400981903, -0.2578137516975403, 0.020171968266367912, -0.1169833391904831, -0.3373419940471649, -0.059715691953897476, -0.6845937371253967, 0.20213910937309265, -0.06980404257774353, 0.03913949057459831, 0.254045695066452, -0.30217528343200684, 0.23480527102947235, -0.06626420468091965, 0.5487117767333984, 0.19057191908359528, -0.19964352250099182, -0.1152183786034584, -0.232499897480011, -0.42478978633880615, -0.15542401373386383, -0.49562543630599976, 0.11365163326263428, -0.0005390424630604684, 0.3345819413661957, -0.3185553550720215, 0.11183576285839081, 0.00006044635665602982, 0.3112281262874603, 0.19164974987506866, -0.04427896440029144, -0.1676555871963501, -0.28234028816223145, -0.1325233280658722, 0.1623777598142624, -0.19951505959033966, 0.05044980347156525, -0.26943477988243103, -0.16961011290550232, -0.14726132154464722, 0.1772935688495636, 0.11681944876909256, 0.48194199800491333, 0.28469282388687134, -0.4382561147212982, 0.36333420872688293, 0.027224833145737648, 0.15180577337741852, 0.382819265127182, 0.4000197947025299, 0.32248809933662415, -0.12357711046934128, 0.19988958537578583, 0.10222864151000977, 0.07479624450206757, 0.5333117842674255, -0.0012652785517275333, 0.19727297127246857, 0.061107952147722244, 0.27630287408828735, -0.0564492829144001, 0.08236760646104813, 0.327420175075531, -0.08233924210071564, -0.06249745562672615, -0.31682947278022766, 0.7024033665657043, 0.09989827871322632, 0.008582587353885174, 0.23552879691123962, -0.19018793106079102, 0.1304427832365036, 0.3013949394226074, -0.10220657289028168, 0.9143374562263489, -0.12508785724639893, 0.25259727239608765, 0.3494721055030823, 0.06673014909029007, 0.007590492255985737, -0.09591763466596603, 0.15101587772369385, -0.3135039806365967, -0.23164987564086914, 0.17610538005828857, -0.2805033326148987, 0.08492156863212585, 0.21285878121852875, -0.13127417862415314, 0.08628793060779572, -0.05373116210103035, 0.1990431845188141, -0.22586041688919067, 0.2392519861459732, -0.2529606819152832, -0.05109219253063202, -0.43534156680107117, 0.028821194544434547, 0.0972888246178627, -0.06465135514736176, 0.08860541880130768, -0.1453685611486435, -0.5541803240776062, 0.010253417305648327, -0.09387750923633575, 0.03891472518444061, -0.235580176115036, 0.1632988154888153, 0.059376057237386703, -0.47716090083122253, -0.08425337821245193, 0.1212545707821846, -0.49536874890327454, 0.07895484566688538, -0.2458118200302124, 0.4174095392227173, 0.043545011430978775, 0.23015931248664856, 0.5308089256286621, -0.3330543041229248, -0.008719680830836296, -0.029218630865216255, -0.21656817197799683, 0.24954074621200562, -0.15398980677127838, -0.25201040506362915, 0.025286074727773666, 0.14373163878917694, 0.36118224263191223, -0.1675015687942505, -0.2776471972465515, -0.12400473654270172, -0.4408736824989319, -0.24312672019004822, 0.08413774520158768, -0.042737286537885666, 0.08555808663368225, 0.23147697746753693, 0.31746912002563477, -0.3549938499927521, -0.22428730130195618, 0.371000200510025, 0.09431314468383789, 0.2603202760219574, 0.31308713555336, 0.08809632807970047, -0.21637564897537231, -0.12743714451789856, 0.2965537905693054, 0.4111420512199402, -0.4757101833820343, 0.06908143311738968, 0.013951287604868412, 0.12462680041790009, 0.24618034064769745, 0.018209418281912804, 0.07419758290052414, -0.2569899559020996, -0.33867910504341125, -0.06908717751502991, 0.009944177232682705, 0.3278670310974121, 0.12076111137866974, 0.1357964128255844, 0.05769190937280655, -0.014597201719880104, -0.3653219938278198, 0.0142490454018116, -0.27016857266426086, 0.13908979296684265, -0.024323057383298874, 0.1828630566596985, -0.4315897226333618, 0.01740969344973564, 0.008138226345181465, 0.14316518604755402, 0.1091618463397026, 0.1063818484544754, -0.12343867868185043, -0.2166474163532257, 0.029185473918914795, 0.12907245755195618, -0.13618825376033783, -0.27971988916397095, 0.2394425868988037, -0.20630769431591034, -0.0508660189807415, -0.3758655786514282, 0.14212407171726227, -0.13642063736915588, -0.03166060149669647, -0.4254383146762848, 0.2596435844898224, -0.1692042201757431, -0.30194076895713806, 0.31808575987815857, -0.4044686257839203, 0.1779976487159729, 0.060763489454984665, 0.1787564605474472, 0.004005656577646732, -0.1559254676103592, 0.07209115475416183, 0.20296700298786163, 0.164820596575737, 0.13967862725257874, 0.37973010540008545, -0.026211854070425034, -0.09722759574651718, -0.10738956183195114, 0.3312666118144989, 0.34939050674438477, 0.03802979364991188, -0.1387912780046463, 0.17579033970832825, 0.225635826587677, -0.32513684034347534, -0.28282174468040466, -0.1296367049217224, -0.25700584053993225, 0.24188895523548126, 0.00957879051566124, 0.20937618613243103, 0.16702260076999664, -0.07895610481500626, -0.20689719915390015, 0.0986437201499939, 0.5504122376441956, -0.14517514407634735, 0.6776700019836426, 0.32725200057029724, -0.19930431246757507, 0.27027979493141174, 0.002086108084768057, 0.34591424465179443, 0.3618886470794678, -0.11960265785455704, 0.5368244647979736, 0.23207542300224304, 0.24495378136634827, -0.13396789133548737, -0.3090498447418213, 0.13521084189414978, -0.0015169084072113037, -0.013643916696310043, 0.13919177651405334, 0.062129195779561996, 0.4490422010421753, 0.005227495450526476, 0.07710130512714386, -0.3266303539276123, -0.12674939632415771, 0.029044155031442642, -0.08261676132678986, -0.04338586702942848, -0.11773934215307236, -0.0748516321182251, 0.10686897486448288, -0.37246665358543396, -0.13124319911003113, 0.3648231327533722, 0.033845700323581696, 0.18120820820331573, -0.44460734724998474, 0.20354105532169342, -0.15691769123077393, 0.2180986851453781, -0.23983383178710938, 0.17476113140583038, 0.05008554831147194, -0.0667937621474266, 0.07139258831739426, 0.10168354958295822, 0.3679463267326355, 0.18524284660816193, -0.1066005676984787, -0.17309297621250153, -0.05663982778787613, -0.03850551322102547, -0.01390670333057642, -0.08697017282247543, 0.04141508415341377, -0.09860067814588547, 0.30176231265068054, 0.030814168974757195, -0.1557210236787796, -0.13875801861286163, -0.022855548188090324, -0.2242787778377533, -0.32634520530700684, -0.3453311324119568, -0.200698122382164, -0.3282327353954315, -0.12952499091625214, -0.1895684003829956, -0.253643274307251, 0.18352055549621582, 0.22793461382389069, -0.31333205103874207, -0.06755823642015457, 0.0006712687318213284, 0.08450046181678772, -0.5105263590812683, 0.6805172562599182, 0.4650321304798126, 0.5556741952896118, -0.32090651988983154, -0.116045281291008, -0.43565449118614197, 0.06292033940553665, -0.6595258116722107, -0.04978686198592186, 0.2942713797092438, 0.3931097984313965, 0.1516687422990799, 0.2153773158788681, 0.16460831463336945, 0.13592572510242462, -0.19167473912239075, 0.32111242413520813, -0.5305006504058838, -0.08095061779022217, -0.027506787329912186, 0.016977135092020035, -0.2176160216331482, -0.6412060856819153, 0.41454172134399414, -0.43625104427337646, 0.019619185477495193, -0.17953982949256897, -0.18055510520935059, 0.39918577671051025, 0.2217814028263092, 0.5155701637268066, 0.002280480694025755, 0.14304068684577942, 0.024066856130957603, -0.18110522627830505, -0.1920023411512375, -0.03763217106461525, 0.0861416608095169, 0.17627261579036713, -0.09164876490831375, 0.08704957365989685, 0.12938345968723297, -0.18072769045829773, 0.09440788626670837, 0.6064496636390686, -0.10337447375059128, 0.008501104079186916, 0.11393451690673828, -0.14100906252861023, -0.2004249393939972, 0.11038780957460403, -0.18586474657058716, -0.03389843925833702, -0.0985817164182663, -0.23733045160770416, -0.15887269377708435, -0.19998449087142944, 0.42357519268989563, -0.45981574058532715, 0.057306043803691864, -0.17736105620861053, 0.27229395508766174, 0.24975691735744476, 0.35054489970207214, -0.19628754258155823, 0.029731156304478645, 0.31973546743392944, 0.09321139007806778, -0.043147340416908264, 0.23114600777626038, 0.15142735838890076, 0.11452315747737885, -0.07493747025728226, 0.39183899760246277, -0.30365949869155884, -0.306639164686203, -0.22938846051692963, -0.35945501923561096 ]
https://github.com/huggingface/datasets/issues/1803
Querying examples from big datasets is slower than small datasets
Hi ! I'm pretty sure that it can be fixed by using the Arrow IPC file format instead of the raw streaming format but I haven't tested yet. I'll take a look at it soon and let you know
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed.
39
Querying examples from big datasets is slower than small datasets After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed. Hi ! I'm pretty sure that it can be fixed by using the Arrow IPC file format instead of the raw streaming format but I haven't tested yet. I'll take a look at it soon and let you know
[ -0.4054942727088928, 0.05864378437399864, -0.0799715518951416, 0.13153308629989624, -0.0796947106719017, -0.1776912361383438, 0.24417482316493988, 0.4918097257614136, -0.2313980609178543, 0.1801939457654953, 0.08149327337741852, 0.055089350789785385, 0.1250860095024109, -0.10075677931308746, 0.13072526454925537, -0.2734065651893616, 0.08074167370796204, 0.12484577298164368, -0.07513296604156494, -0.034529052674770355, 0.02403038553893566, -0.19028687477111816, -0.3486265540122986, 0.01847008988261223, -0.06632749736309052, -0.2240716814994812, -0.23070643842220306, 0.10720640420913696, -0.1658506989479065, -0.4173954129219055, -0.059535980224609375, -0.1528189778327942, 0.22993043065071106, 0.42703118920326233, -0.0001130733362515457, 0.016405265778303146, 0.22793056070804596, 0.08941767364740372, -0.19974665343761444, 0.1829340159893036, 0.17480677366256714, -0.28385478258132935, 0.08687470108270645, -0.40976712107658386, -0.04715430736541748, -0.29719898104667664, 0.09342747181653976, 0.018900498747825623, -0.0412534736096859, 0.3089764714241028, 0.14036434888839722, 0.5131545662879944, -0.19170530140399933, -0.13366322219371796, 0.6230682134628296, 0.20515242218971252, -0.35063040256500244, 0.5299628376960754, 0.5806369781494141, -0.04879843071103096, -0.30531570315361023, 0.13614042103290558, -0.08144467324018478, 0.2701414227485657, 0.03702276572585106, 0.1979731172323227, -0.11280546337366104, 0.17959170043468475, 0.12381085753440857, 0.4088881313800812, 0.30839046835899353, -0.08939094841480255, -0.3148857057094574, -0.2920178472995758, -0.05692872032523155, -0.2332932949066162, 0.020308123901486397, 0.3264200985431671, -0.2583792209625244, 0.2713417708873749, -0.31377583742141724, 0.15477776527404785, -0.10565107315778732, 0.1795514076948166, -0.15115849673748016, -0.06861541420221329, 0.11505071818828583, 0.19851066172122955, 0.0937962606549263, 0.013313007541000843, 0.15119309723377228, -0.16962184011936188, 0.02840566076338291, -0.05211048200726509, -0.2883045971393585, -0.08815452456474304, 0.15566284954547882, 0.17557816207408905, 0.2685050666332245, 0.15931034088134766, 0.4223199486732483, 0.11828381568193436, 0.26519328355789185, 0.0943622887134552, 0.045134931802749634, -0.009021676145493984, -0.26956507563591003, -0.0009781792759895325, 0.34788021445274353, 0.2753002941608429, -0.29451656341552734, 0.020877687260508537, -0.23832088708877563, -0.184454545378685, 0.18156316876411438, -0.1973290592432022, -0.02745402418076992, -0.13371673226356506, 0.004323744215071201, -0.08730420470237732, -0.3421138823032379, -0.12782323360443115, -0.02655758336186409, 0.47846871614456177, -0.1834658682346344, -0.026572175323963165, -0.21266649663448334, 0.1222231388092041, -0.33534297347068787, -0.2540249824523926, -0.12431267648935318, -0.1883355975151062, -0.16008004546165466, 0.23030751943588257, 0.10979518294334412, 0.056096822023391724, 0.30207359790802, 0.05854012444615364, -0.19851525127887726, 0.24196186661720276, 0.3923712372779846, -0.18086625635623932, 0.10445664823055267, 0.01975584402680397, 0.011255129240453243, 0.06353233754634857, -0.16373945772647858, 0.24476492404937744, -0.39108985662460327, 0.19727075099945068, -0.1953565925359726, -0.3384780287742615, 0.030638962984085083, 0.0919928252696991, -0.10569485276937485, -0.09975976496934891, -0.22708196938037872, 0.24624505639076233, -0.06942253559827805, -0.19974622130393982, -0.07743778079748154, -0.09419345110654831, 0.04028930142521858, -0.15313255786895752, 0.1413009762763977, 0.07762691378593445, -0.2506588101387024, 0.20185065269470215, -0.04518560320138931, 0.39703428745269775, 0.25439050793647766, 0.5308364033699036, -0.5031026601791382, 0.16236107051372528, -0.1327785700559616, 0.29661571979522705, 0.23202413320541382, -0.02813166193664074, -0.6667606830596924, 0.49735313653945923, -0.004257832188159227, 0.024188971146941185, 0.2724846601486206, 0.16171233355998993, 0.35167762637138367, 0.10784818977117538, -0.04906284064054489, 0.38371172547340393, 0.18394838273525238, 0.22793157398700714, -0.34009993076324463, -0.23031051456928253, -0.048727523535490036, 0.34797483682632446, -0.32447266578674316, -0.15712113678455353, 0.31125161051750183, -0.3645979166030884, 0.49066033959388733, -0.20656386017799377, -0.18362614512443542, 0.2509787976741791, 0.08702335506677628, -0.2777459919452667, 0.11834874004125595, 0.09648671746253967, 0.08594413846731186, 0.2421768307685852, -0.1894872784614563, -0.018465213477611542, 0.04509013518691063, -0.18880829215049744, -0.07221604138612747, 0.06196274235844612, -0.05526028200984001, -0.04738488793373108, -0.04489734396338463, -0.09182941168546677, 0.33068767189979553, -0.003530854592099786, 0.16473397612571716, -0.16320514678955078, -0.26933756470680237, -0.009445730596780777, -0.2626189589500427, 0.07929304242134094, 0.09506817162036896, -0.12131035327911377, 0.009306208230555058, -0.24925372004508972, -0.08842337876558304, -0.0017332854913547635, -0.15193812549114227, 0.3275272250175476, 0.15022902190685272, 0.1502477079629898, 0.22353079915046692, 0.15224812924861908, 0.1419573575258255, -0.0849314033985138, 0.38797375559806824, 0.2968660891056061, 0.07531574368476868, 0.036525871604681015, -0.405347615480423, 0.5263327360153198, 0.39331212639808655, 0.3160548508167267, 0.290402889251709, -0.3733910024166107, 0.1644449234008789, 0.048380132764577866, 0.11050285398960114, 0.4106387495994568, 0.29379841685295105, 0.24215678870677948, 0.5489556193351746, 0.16632571816444397, -0.31619691848754883, 0.11558142304420471, 0.45061421394348145, -0.24960146844387054, 0.018041525036096573, 0.18730460107326508, -0.42171332240104675, -0.18561697006225586, 0.3702153265476227, -0.15096870064735413, 0.32658088207244873, 0.33125290274620056, 0.16064445674419403, -0.12395523488521576, 0.027443697676062584, -0.2904405891895294, 0.2625504434108734, 0.09679485112428665, 0.14140857756137848, -0.22010771930217743, 0.43684327602386475, -0.0920058935880661, -0.24601086974143982, -0.38159775733947754, -0.039207637310028076, 0.19213202595710754, -0.12640082836151123, 0.30729958415031433, -0.09829865396022797, 0.053619012236595154, -0.03245216980576515, 0.13080063462257385, 0.07907264679670334, -0.08653497695922852, 0.045037925243377686, 0.19354145228862762, -0.18121027946472168, -0.15833832323551178, -0.05519140884280205, 0.22789518535137177, 0.26178839802742004, -0.2087608426809311, -0.0017743848729878664, -0.07168693840503693, -0.39838707447052, 0.08031274378299713, 0.2775999903678894, 0.14939245581626892, 0.145045667886734, -0.04691789671778679, -0.18544800579547882, -0.2801744341850281, -0.3152380585670471, -0.006573209073394537, 0.07990758866071701, 0.2866181433200836, -0.07090092450380325, 0.07639522105455399, -0.3244517743587494, -0.1447666883468628, 0.06370999664068222, -0.23290982842445374, -0.1513255089521408, 0.2760070562362671, -0.1807476431131363, 0.0008982555009424686, 0.08878341317176819, -0.3163764178752899, -0.16730767488479614, -0.30017736554145813, 0.37843063473701477, 0.1727609634399414, 0.20834605395793915, 0.10755512118339539, 0.3943430781364441, 0.12237091362476349, 0.009659716859459877, 0.1228194460272789, 0.0379166305065155, -0.41495174169540405, 0.5190879106521606, -0.1802637130022049, -0.4500642716884613, -0.48882150650024414, -0.24293015897274017, -0.16414962708950043, 0.45249906182289124, -0.5341609120368958, -0.031146083027124405, -0.5311317443847656, 0.4127752184867859, 0.12353946268558502, 0.10216737538576126, 0.04960310086607933, -0.2131577730178833, -0.20895537734031677, 0.12922994792461395, 0.08261851966381073, -0.006419765297323465, -0.08785071223974228, 0.20213820040225983, -0.06152070313692093, 0.03371107578277588, -0.009868512861430645, 0.7692416310310364, 0.0689445436000824, -0.012904303148388863, 0.2635362446308136, -0.09490275382995605, 0.05190661549568176, -0.1647459715604782, 0.1458873599767685, 0.09050365537405014, -0.2608799934387207, -0.26992738246917725, 0.41838985681533813, 0.1641470044851303, -0.3080240488052368, 0.059133902192115784, -0.1851305067539215, -0.09765846282243729, -0.2781842052936554, 0.2541961967945099, 0.15882420539855957, 0.17439840734004974, 0.06986048817634583, 0.3926577866077423, -0.30189964175224304, -0.13592687249183655, 0.07070915400981903, -0.2578137516975403, 0.020171968266367912, -0.1169833391904831, -0.3373419940471649, -0.059715691953897476, -0.6845937371253967, 0.20213910937309265, -0.06980404257774353, 0.03913949057459831, 0.254045695066452, -0.30217528343200684, 0.23480527102947235, -0.06626420468091965, 0.5487117767333984, 0.19057191908359528, -0.19964352250099182, -0.1152183786034584, -0.232499897480011, -0.42478978633880615, -0.15542401373386383, -0.49562543630599976, 0.11365163326263428, -0.0005390424630604684, 0.3345819413661957, -0.3185553550720215, 0.11183576285839081, 0.00006044635665602982, 0.3112281262874603, 0.19164974987506866, -0.04427896440029144, -0.1676555871963501, -0.28234028816223145, -0.1325233280658722, 0.1623777598142624, -0.19951505959033966, 0.05044980347156525, -0.26943477988243103, -0.16961011290550232, -0.14726132154464722, 0.1772935688495636, 0.11681944876909256, 0.48194199800491333, 0.28469282388687134, -0.4382561147212982, 0.36333420872688293, 0.027224833145737648, 0.15180577337741852, 0.382819265127182, 0.4000197947025299, 0.32248809933662415, -0.12357711046934128, 0.19988958537578583, 0.10222864151000977, 0.07479624450206757, 0.5333117842674255, -0.0012652785517275333, 0.19727297127246857, 0.061107952147722244, 0.27630287408828735, -0.0564492829144001, 0.08236760646104813, 0.327420175075531, -0.08233924210071564, -0.06249745562672615, -0.31682947278022766, 0.7024033665657043, 0.09989827871322632, 0.008582587353885174, 0.23552879691123962, -0.19018793106079102, 0.1304427832365036, 0.3013949394226074, -0.10220657289028168, 0.9143374562263489, -0.12508785724639893, 0.25259727239608765, 0.3494721055030823, 0.06673014909029007, 0.007590492255985737, -0.09591763466596603, 0.15101587772369385, -0.3135039806365967, -0.23164987564086914, 0.17610538005828857, -0.2805033326148987, 0.08492156863212585, 0.21285878121852875, -0.13127417862415314, 0.08628793060779572, -0.05373116210103035, 0.1990431845188141, -0.22586041688919067, 0.2392519861459732, -0.2529606819152832, -0.05109219253063202, -0.43534156680107117, 0.028821194544434547, 0.0972888246178627, -0.06465135514736176, 0.08860541880130768, -0.1453685611486435, -0.5541803240776062, 0.010253417305648327, -0.09387750923633575, 0.03891472518444061, -0.235580176115036, 0.1632988154888153, 0.059376057237386703, -0.47716090083122253, -0.08425337821245193, 0.1212545707821846, -0.49536874890327454, 0.07895484566688538, -0.2458118200302124, 0.4174095392227173, 0.043545011430978775, 0.23015931248664856, 0.5308089256286621, -0.3330543041229248, -0.008719680830836296, -0.029218630865216255, -0.21656817197799683, 0.24954074621200562, -0.15398980677127838, -0.25201040506362915, 0.025286074727773666, 0.14373163878917694, 0.36118224263191223, -0.1675015687942505, -0.2776471972465515, -0.12400473654270172, -0.4408736824989319, -0.24312672019004822, 0.08413774520158768, -0.042737286537885666, 0.08555808663368225, 0.23147697746753693, 0.31746912002563477, -0.3549938499927521, -0.22428730130195618, 0.371000200510025, 0.09431314468383789, 0.2603202760219574, 0.31308713555336, 0.08809632807970047, -0.21637564897537231, -0.12743714451789856, 0.2965537905693054, 0.4111420512199402, -0.4757101833820343, 0.06908143311738968, 0.013951287604868412, 0.12462680041790009, 0.24618034064769745, 0.018209418281912804, 0.07419758290052414, -0.2569899559020996, -0.33867910504341125, -0.06908717751502991, 0.009944177232682705, 0.3278670310974121, 0.12076111137866974, 0.1357964128255844, 0.05769190937280655, -0.014597201719880104, -0.3653219938278198, 0.0142490454018116, -0.27016857266426086, 0.13908979296684265, -0.024323057383298874, 0.1828630566596985, -0.4315897226333618, 0.01740969344973564, 0.008138226345181465, 0.14316518604755402, 0.1091618463397026, 0.1063818484544754, -0.12343867868185043, -0.2166474163532257, 0.029185473918914795, 0.12907245755195618, -0.13618825376033783, -0.27971988916397095, 0.2394425868988037, -0.20630769431591034, -0.0508660189807415, -0.3758655786514282, 0.14212407171726227, -0.13642063736915588, -0.03166060149669647, -0.4254383146762848, 0.2596435844898224, -0.1692042201757431, -0.30194076895713806, 0.31808575987815857, -0.4044686257839203, 0.1779976487159729, 0.060763489454984665, 0.1787564605474472, 0.004005656577646732, -0.1559254676103592, 0.07209115475416183, 0.20296700298786163, 0.164820596575737, 0.13967862725257874, 0.37973010540008545, -0.026211854070425034, -0.09722759574651718, -0.10738956183195114, 0.3312666118144989, 0.34939050674438477, 0.03802979364991188, -0.1387912780046463, 0.17579033970832825, 0.225635826587677, -0.32513684034347534, -0.28282174468040466, -0.1296367049217224, -0.25700584053993225, 0.24188895523548126, 0.00957879051566124, 0.20937618613243103, 0.16702260076999664, -0.07895610481500626, -0.20689719915390015, 0.0986437201499939, 0.5504122376441956, -0.14517514407634735, 0.6776700019836426, 0.32725200057029724, -0.19930431246757507, 0.27027979493141174, 0.002086108084768057, 0.34591424465179443, 0.3618886470794678, -0.11960265785455704, 0.5368244647979736, 0.23207542300224304, 0.24495378136634827, -0.13396789133548737, -0.3090498447418213, 0.13521084189414978, -0.0015169084072113037, -0.013643916696310043, 0.13919177651405334, 0.062129195779561996, 0.4490422010421753, 0.005227495450526476, 0.07710130512714386, -0.3266303539276123, -0.12674939632415771, 0.029044155031442642, -0.08261676132678986, -0.04338586702942848, -0.11773934215307236, -0.0748516321182251, 0.10686897486448288, -0.37246665358543396, -0.13124319911003113, 0.3648231327533722, 0.033845700323581696, 0.18120820820331573, -0.44460734724998474, 0.20354105532169342, -0.15691769123077393, 0.2180986851453781, -0.23983383178710938, 0.17476113140583038, 0.05008554831147194, -0.0667937621474266, 0.07139258831739426, 0.10168354958295822, 0.3679463267326355, 0.18524284660816193, -0.1066005676984787, -0.17309297621250153, -0.05663982778787613, -0.03850551322102547, -0.01390670333057642, -0.08697017282247543, 0.04141508415341377, -0.09860067814588547, 0.30176231265068054, 0.030814168974757195, -0.1557210236787796, -0.13875801861286163, -0.022855548188090324, -0.2242787778377533, -0.32634520530700684, -0.3453311324119568, -0.200698122382164, -0.3282327353954315, -0.12952499091625214, -0.1895684003829956, -0.253643274307251, 0.18352055549621582, 0.22793461382389069, -0.31333205103874207, -0.06755823642015457, 0.0006712687318213284, 0.08450046181678772, -0.5105263590812683, 0.6805172562599182, 0.4650321304798126, 0.5556741952896118, -0.32090651988983154, -0.116045281291008, -0.43565449118614197, 0.06292033940553665, -0.6595258116722107, -0.04978686198592186, 0.2942713797092438, 0.3931097984313965, 0.1516687422990799, 0.2153773158788681, 0.16460831463336945, 0.13592572510242462, -0.19167473912239075, 0.32111242413520813, -0.5305006504058838, -0.08095061779022217, -0.027506787329912186, 0.016977135092020035, -0.2176160216331482, -0.6412060856819153, 0.41454172134399414, -0.43625104427337646, 0.019619185477495193, -0.17953982949256897, -0.18055510520935059, 0.39918577671051025, 0.2217814028263092, 0.5155701637268066, 0.002280480694025755, 0.14304068684577942, 0.024066856130957603, -0.18110522627830505, -0.1920023411512375, -0.03763217106461525, 0.0861416608095169, 0.17627261579036713, -0.09164876490831375, 0.08704957365989685, 0.12938345968723297, -0.18072769045829773, 0.09440788626670837, 0.6064496636390686, -0.10337447375059128, 0.008501104079186916, 0.11393451690673828, -0.14100906252861023, -0.2004249393939972, 0.11038780957460403, -0.18586474657058716, -0.03389843925833702, -0.0985817164182663, -0.23733045160770416, -0.15887269377708435, -0.19998449087142944, 0.42357519268989563, -0.45981574058532715, 0.057306043803691864, -0.17736105620861053, 0.27229395508766174, 0.24975691735744476, 0.35054489970207214, -0.19628754258155823, 0.029731156304478645, 0.31973546743392944, 0.09321139007806778, -0.043147340416908264, 0.23114600777626038, 0.15142735838890076, 0.11452315747737885, -0.07493747025728226, 0.39183899760246277, -0.30365949869155884, -0.306639164686203, -0.22938846051692963, -0.35945501923561096 ]
https://github.com/huggingface/datasets/issues/1803
Querying examples from big datasets is slower than small datasets
My workaround is to shard the dataset into splits in my ssd disk and feed the data in different training sessions. But it is a bit of a pain when we need to reload the last training session with the rest of the split with the Trainer in transformers. I mean, when I split the training and then reloads the model and optimizer, it not gets the correct global_status of the optimizer, so I need to hardcode some things. I'm planning to open an issue in transformers and think about it. ``` from datasets import load_dataset book_corpus = load_dataset("bookcorpus", split="train[:25%]") wikicorpus = load_dataset("wikicorpus", split="train[:25%]") openwebtext = load_dataset("openwebtext", split="train[:25%]") big_dataset = datasets.concatenate_datasets([wikicorpus, openwebtext, book_corpus]) big_dataset.shuffle(seed=42) big_dataset = big_dataset.map(encode, batched=True, num_proc=20, load_from_cache_file=True, writer_batch_size=5000) big_dataset.set_format(type='torch', columns=["text", "input_ids", "attention_mask", "token_type_ids"]) training_args = TrainingArguments( output_dir="./linear_bert", overwrite_output_dir=True, per_device_train_batch_size=71, save_steps=500, save_total_limit=10, logging_first_step=True, logging_steps=100, gradient_accumulation_steps=9, fp16=True, dataloader_num_workers=20, warmup_steps=24000, learning_rate=0.000545205002870214, adam_epsilon=1e-6, adam_beta2=0.98, weight_decay=0.01, max_steps=138974, # the total number of steps after concatenating 100% datasets max_grad_norm=1.0, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=big_dataset, tokenizer=tokenizer)) ``` I do one training pass with the total steps of this shard and I use len(bbig)/batchsize to stop the training (hardcoded in the trainer.py) when I pass over all the examples in this split. Now Im working, I will edit the comment with a more elaborated answer when I left the work.
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed.
218
Querying examples from big datasets is slower than small datasets After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed. My workaround is to shard the dataset into splits in my ssd disk and feed the data in different training sessions. But it is a bit of a pain when we need to reload the last training session with the rest of the split with the Trainer in transformers. I mean, when I split the training and then reloads the model and optimizer, it not gets the correct global_status of the optimizer, so I need to hardcode some things. I'm planning to open an issue in transformers and think about it. ``` from datasets import load_dataset book_corpus = load_dataset("bookcorpus", split="train[:25%]") wikicorpus = load_dataset("wikicorpus", split="train[:25%]") openwebtext = load_dataset("openwebtext", split="train[:25%]") big_dataset = datasets.concatenate_datasets([wikicorpus, openwebtext, book_corpus]) big_dataset.shuffle(seed=42) big_dataset = big_dataset.map(encode, batched=True, num_proc=20, load_from_cache_file=True, writer_batch_size=5000) big_dataset.set_format(type='torch', columns=["text", "input_ids", "attention_mask", "token_type_ids"]) training_args = TrainingArguments( output_dir="./linear_bert", overwrite_output_dir=True, per_device_train_batch_size=71, save_steps=500, save_total_limit=10, logging_first_step=True, logging_steps=100, gradient_accumulation_steps=9, fp16=True, dataloader_num_workers=20, warmup_steps=24000, learning_rate=0.000545205002870214, adam_epsilon=1e-6, adam_beta2=0.98, weight_decay=0.01, max_steps=138974, # the total number of steps after concatenating 100% datasets max_grad_norm=1.0, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=big_dataset, tokenizer=tokenizer)) ``` I do one training pass with the total steps of this shard and I use len(bbig)/batchsize to stop the training (hardcoded in the trainer.py) when I pass over all the examples in this split. Now Im working, I will edit the comment with a more elaborated answer when I left the work.
[ -0.4054942727088928, 0.05864378437399864, -0.0799715518951416, 0.13153308629989624, -0.0796947106719017, -0.1776912361383438, 0.24417482316493988, 0.4918097257614136, -0.2313980609178543, 0.1801939457654953, 0.08149327337741852, 0.055089350789785385, 0.1250860095024109, -0.10075677931308746, 0.13072526454925537, -0.2734065651893616, 0.08074167370796204, 0.12484577298164368, -0.07513296604156494, -0.034529052674770355, 0.02403038553893566, -0.19028687477111816, -0.3486265540122986, 0.01847008988261223, -0.06632749736309052, -0.2240716814994812, -0.23070643842220306, 0.10720640420913696, -0.1658506989479065, -0.4173954129219055, -0.059535980224609375, -0.1528189778327942, 0.22993043065071106, 0.42703118920326233, -0.0001130733362515457, 0.016405265778303146, 0.22793056070804596, 0.08941767364740372, -0.19974665343761444, 0.1829340159893036, 0.17480677366256714, -0.28385478258132935, 0.08687470108270645, -0.40976712107658386, -0.04715430736541748, -0.29719898104667664, 0.09342747181653976, 0.018900498747825623, -0.0412534736096859, 0.3089764714241028, 0.14036434888839722, 0.5131545662879944, -0.19170530140399933, -0.13366322219371796, 0.6230682134628296, 0.20515242218971252, -0.35063040256500244, 0.5299628376960754, 0.5806369781494141, -0.04879843071103096, -0.30531570315361023, 0.13614042103290558, -0.08144467324018478, 0.2701414227485657, 0.03702276572585106, 0.1979731172323227, -0.11280546337366104, 0.17959170043468475, 0.12381085753440857, 0.4088881313800812, 0.30839046835899353, -0.08939094841480255, -0.3148857057094574, -0.2920178472995758, -0.05692872032523155, -0.2332932949066162, 0.020308123901486397, 0.3264200985431671, -0.2583792209625244, 0.2713417708873749, -0.31377583742141724, 0.15477776527404785, -0.10565107315778732, 0.1795514076948166, -0.15115849673748016, -0.06861541420221329, 0.11505071818828583, 0.19851066172122955, 0.0937962606549263, 0.013313007541000843, 0.15119309723377228, -0.16962184011936188, 0.02840566076338291, -0.05211048200726509, -0.2883045971393585, -0.08815452456474304, 0.15566284954547882, 0.17557816207408905, 0.2685050666332245, 0.15931034088134766, 0.4223199486732483, 0.11828381568193436, 0.26519328355789185, 0.0943622887134552, 0.045134931802749634, -0.009021676145493984, -0.26956507563591003, -0.0009781792759895325, 0.34788021445274353, 0.2753002941608429, -0.29451656341552734, 0.020877687260508537, -0.23832088708877563, -0.184454545378685, 0.18156316876411438, -0.1973290592432022, -0.02745402418076992, -0.13371673226356506, 0.004323744215071201, -0.08730420470237732, -0.3421138823032379, -0.12782323360443115, -0.02655758336186409, 0.47846871614456177, -0.1834658682346344, -0.026572175323963165, -0.21266649663448334, 0.1222231388092041, -0.33534297347068787, -0.2540249824523926, -0.12431267648935318, -0.1883355975151062, -0.16008004546165466, 0.23030751943588257, 0.10979518294334412, 0.056096822023391724, 0.30207359790802, 0.05854012444615364, -0.19851525127887726, 0.24196186661720276, 0.3923712372779846, -0.18086625635623932, 0.10445664823055267, 0.01975584402680397, 0.011255129240453243, 0.06353233754634857, -0.16373945772647858, 0.24476492404937744, -0.39108985662460327, 0.19727075099945068, -0.1953565925359726, -0.3384780287742615, 0.030638962984085083, 0.0919928252696991, -0.10569485276937485, -0.09975976496934891, -0.22708196938037872, 0.24624505639076233, -0.06942253559827805, -0.19974622130393982, -0.07743778079748154, -0.09419345110654831, 0.04028930142521858, -0.15313255786895752, 0.1413009762763977, 0.07762691378593445, -0.2506588101387024, 0.20185065269470215, -0.04518560320138931, 0.39703428745269775, 0.25439050793647766, 0.5308364033699036, -0.5031026601791382, 0.16236107051372528, -0.1327785700559616, 0.29661571979522705, 0.23202413320541382, -0.02813166193664074, -0.6667606830596924, 0.49735313653945923, -0.004257832188159227, 0.024188971146941185, 0.2724846601486206, 0.16171233355998993, 0.35167762637138367, 0.10784818977117538, -0.04906284064054489, 0.38371172547340393, 0.18394838273525238, 0.22793157398700714, -0.34009993076324463, -0.23031051456928253, -0.048727523535490036, 0.34797483682632446, -0.32447266578674316, -0.15712113678455353, 0.31125161051750183, -0.3645979166030884, 0.49066033959388733, -0.20656386017799377, -0.18362614512443542, 0.2509787976741791, 0.08702335506677628, -0.2777459919452667, 0.11834874004125595, 0.09648671746253967, 0.08594413846731186, 0.2421768307685852, -0.1894872784614563, -0.018465213477611542, 0.04509013518691063, -0.18880829215049744, -0.07221604138612747, 0.06196274235844612, -0.05526028200984001, -0.04738488793373108, -0.04489734396338463, -0.09182941168546677, 0.33068767189979553, -0.003530854592099786, 0.16473397612571716, -0.16320514678955078, -0.26933756470680237, -0.009445730596780777, -0.2626189589500427, 0.07929304242134094, 0.09506817162036896, -0.12131035327911377, 0.009306208230555058, -0.24925372004508972, -0.08842337876558304, -0.0017332854913547635, -0.15193812549114227, 0.3275272250175476, 0.15022902190685272, 0.1502477079629898, 0.22353079915046692, 0.15224812924861908, 0.1419573575258255, -0.0849314033985138, 0.38797375559806824, 0.2968660891056061, 0.07531574368476868, 0.036525871604681015, -0.405347615480423, 0.5263327360153198, 0.39331212639808655, 0.3160548508167267, 0.290402889251709, -0.3733910024166107, 0.1644449234008789, 0.048380132764577866, 0.11050285398960114, 0.4106387495994568, 0.29379841685295105, 0.24215678870677948, 0.5489556193351746, 0.16632571816444397, -0.31619691848754883, 0.11558142304420471, 0.45061421394348145, -0.24960146844387054, 0.018041525036096573, 0.18730460107326508, -0.42171332240104675, -0.18561697006225586, 0.3702153265476227, -0.15096870064735413, 0.32658088207244873, 0.33125290274620056, 0.16064445674419403, -0.12395523488521576, 0.027443697676062584, -0.2904405891895294, 0.2625504434108734, 0.09679485112428665, 0.14140857756137848, -0.22010771930217743, 0.43684327602386475, -0.0920058935880661, -0.24601086974143982, -0.38159775733947754, -0.039207637310028076, 0.19213202595710754, -0.12640082836151123, 0.30729958415031433, -0.09829865396022797, 0.053619012236595154, -0.03245216980576515, 0.13080063462257385, 0.07907264679670334, -0.08653497695922852, 0.045037925243377686, 0.19354145228862762, -0.18121027946472168, -0.15833832323551178, -0.05519140884280205, 0.22789518535137177, 0.26178839802742004, -0.2087608426809311, -0.0017743848729878664, -0.07168693840503693, -0.39838707447052, 0.08031274378299713, 0.2775999903678894, 0.14939245581626892, 0.145045667886734, -0.04691789671778679, -0.18544800579547882, -0.2801744341850281, -0.3152380585670471, -0.006573209073394537, 0.07990758866071701, 0.2866181433200836, -0.07090092450380325, 0.07639522105455399, -0.3244517743587494, -0.1447666883468628, 0.06370999664068222, -0.23290982842445374, -0.1513255089521408, 0.2760070562362671, -0.1807476431131363, 0.0008982555009424686, 0.08878341317176819, -0.3163764178752899, -0.16730767488479614, -0.30017736554145813, 0.37843063473701477, 0.1727609634399414, 0.20834605395793915, 0.10755512118339539, 0.3943430781364441, 0.12237091362476349, 0.009659716859459877, 0.1228194460272789, 0.0379166305065155, -0.41495174169540405, 0.5190879106521606, -0.1802637130022049, -0.4500642716884613, -0.48882150650024414, -0.24293015897274017, -0.16414962708950043, 0.45249906182289124, -0.5341609120368958, -0.031146083027124405, -0.5311317443847656, 0.4127752184867859, 0.12353946268558502, 0.10216737538576126, 0.04960310086607933, -0.2131577730178833, -0.20895537734031677, 0.12922994792461395, 0.08261851966381073, -0.006419765297323465, -0.08785071223974228, 0.20213820040225983, -0.06152070313692093, 0.03371107578277588, -0.009868512861430645, 0.7692416310310364, 0.0689445436000824, -0.012904303148388863, 0.2635362446308136, -0.09490275382995605, 0.05190661549568176, -0.1647459715604782, 0.1458873599767685, 0.09050365537405014, -0.2608799934387207, -0.26992738246917725, 0.41838985681533813, 0.1641470044851303, -0.3080240488052368, 0.059133902192115784, -0.1851305067539215, -0.09765846282243729, -0.2781842052936554, 0.2541961967945099, 0.15882420539855957, 0.17439840734004974, 0.06986048817634583, 0.3926577866077423, -0.30189964175224304, -0.13592687249183655, 0.07070915400981903, -0.2578137516975403, 0.020171968266367912, -0.1169833391904831, -0.3373419940471649, -0.059715691953897476, -0.6845937371253967, 0.20213910937309265, -0.06980404257774353, 0.03913949057459831, 0.254045695066452, -0.30217528343200684, 0.23480527102947235, -0.06626420468091965, 0.5487117767333984, 0.19057191908359528, -0.19964352250099182, -0.1152183786034584, -0.232499897480011, -0.42478978633880615, -0.15542401373386383, -0.49562543630599976, 0.11365163326263428, -0.0005390424630604684, 0.3345819413661957, -0.3185553550720215, 0.11183576285839081, 0.00006044635665602982, 0.3112281262874603, 0.19164974987506866, -0.04427896440029144, -0.1676555871963501, -0.28234028816223145, -0.1325233280658722, 0.1623777598142624, -0.19951505959033966, 0.05044980347156525, -0.26943477988243103, -0.16961011290550232, -0.14726132154464722, 0.1772935688495636, 0.11681944876909256, 0.48194199800491333, 0.28469282388687134, -0.4382561147212982, 0.36333420872688293, 0.027224833145737648, 0.15180577337741852, 0.382819265127182, 0.4000197947025299, 0.32248809933662415, -0.12357711046934128, 0.19988958537578583, 0.10222864151000977, 0.07479624450206757, 0.5333117842674255, -0.0012652785517275333, 0.19727297127246857, 0.061107952147722244, 0.27630287408828735, -0.0564492829144001, 0.08236760646104813, 0.327420175075531, -0.08233924210071564, -0.06249745562672615, -0.31682947278022766, 0.7024033665657043, 0.09989827871322632, 0.008582587353885174, 0.23552879691123962, -0.19018793106079102, 0.1304427832365036, 0.3013949394226074, -0.10220657289028168, 0.9143374562263489, -0.12508785724639893, 0.25259727239608765, 0.3494721055030823, 0.06673014909029007, 0.007590492255985737, -0.09591763466596603, 0.15101587772369385, -0.3135039806365967, -0.23164987564086914, 0.17610538005828857, -0.2805033326148987, 0.08492156863212585, 0.21285878121852875, -0.13127417862415314, 0.08628793060779572, -0.05373116210103035, 0.1990431845188141, -0.22586041688919067, 0.2392519861459732, -0.2529606819152832, -0.05109219253063202, -0.43534156680107117, 0.028821194544434547, 0.0972888246178627, -0.06465135514736176, 0.08860541880130768, -0.1453685611486435, -0.5541803240776062, 0.010253417305648327, -0.09387750923633575, 0.03891472518444061, -0.235580176115036, 0.1632988154888153, 0.059376057237386703, -0.47716090083122253, -0.08425337821245193, 0.1212545707821846, -0.49536874890327454, 0.07895484566688538, -0.2458118200302124, 0.4174095392227173, 0.043545011430978775, 0.23015931248664856, 0.5308089256286621, -0.3330543041229248, -0.008719680830836296, -0.029218630865216255, -0.21656817197799683, 0.24954074621200562, -0.15398980677127838, -0.25201040506362915, 0.025286074727773666, 0.14373163878917694, 0.36118224263191223, -0.1675015687942505, -0.2776471972465515, -0.12400473654270172, -0.4408736824989319, -0.24312672019004822, 0.08413774520158768, -0.042737286537885666, 0.08555808663368225, 0.23147697746753693, 0.31746912002563477, -0.3549938499927521, -0.22428730130195618, 0.371000200510025, 0.09431314468383789, 0.2603202760219574, 0.31308713555336, 0.08809632807970047, -0.21637564897537231, -0.12743714451789856, 0.2965537905693054, 0.4111420512199402, -0.4757101833820343, 0.06908143311738968, 0.013951287604868412, 0.12462680041790009, 0.24618034064769745, 0.018209418281912804, 0.07419758290052414, -0.2569899559020996, -0.33867910504341125, -0.06908717751502991, 0.009944177232682705, 0.3278670310974121, 0.12076111137866974, 0.1357964128255844, 0.05769190937280655, -0.014597201719880104, -0.3653219938278198, 0.0142490454018116, -0.27016857266426086, 0.13908979296684265, -0.024323057383298874, 0.1828630566596985, -0.4315897226333618, 0.01740969344973564, 0.008138226345181465, 0.14316518604755402, 0.1091618463397026, 0.1063818484544754, -0.12343867868185043, -0.2166474163532257, 0.029185473918914795, 0.12907245755195618, -0.13618825376033783, -0.27971988916397095, 0.2394425868988037, -0.20630769431591034, -0.0508660189807415, -0.3758655786514282, 0.14212407171726227, -0.13642063736915588, -0.03166060149669647, -0.4254383146762848, 0.2596435844898224, -0.1692042201757431, -0.30194076895713806, 0.31808575987815857, -0.4044686257839203, 0.1779976487159729, 0.060763489454984665, 0.1787564605474472, 0.004005656577646732, -0.1559254676103592, 0.07209115475416183, 0.20296700298786163, 0.164820596575737, 0.13967862725257874, 0.37973010540008545, -0.026211854070425034, -0.09722759574651718, -0.10738956183195114, 0.3312666118144989, 0.34939050674438477, 0.03802979364991188, -0.1387912780046463, 0.17579033970832825, 0.225635826587677, -0.32513684034347534, -0.28282174468040466, -0.1296367049217224, -0.25700584053993225, 0.24188895523548126, 0.00957879051566124, 0.20937618613243103, 0.16702260076999664, -0.07895610481500626, -0.20689719915390015, 0.0986437201499939, 0.5504122376441956, -0.14517514407634735, 0.6776700019836426, 0.32725200057029724, -0.19930431246757507, 0.27027979493141174, 0.002086108084768057, 0.34591424465179443, 0.3618886470794678, -0.11960265785455704, 0.5368244647979736, 0.23207542300224304, 0.24495378136634827, -0.13396789133548737, -0.3090498447418213, 0.13521084189414978, -0.0015169084072113037, -0.013643916696310043, 0.13919177651405334, 0.062129195779561996, 0.4490422010421753, 0.005227495450526476, 0.07710130512714386, -0.3266303539276123, -0.12674939632415771, 0.029044155031442642, -0.08261676132678986, -0.04338586702942848, -0.11773934215307236, -0.0748516321182251, 0.10686897486448288, -0.37246665358543396, -0.13124319911003113, 0.3648231327533722, 0.033845700323581696, 0.18120820820331573, -0.44460734724998474, 0.20354105532169342, -0.15691769123077393, 0.2180986851453781, -0.23983383178710938, 0.17476113140583038, 0.05008554831147194, -0.0667937621474266, 0.07139258831739426, 0.10168354958295822, 0.3679463267326355, 0.18524284660816193, -0.1066005676984787, -0.17309297621250153, -0.05663982778787613, -0.03850551322102547, -0.01390670333057642, -0.08697017282247543, 0.04141508415341377, -0.09860067814588547, 0.30176231265068054, 0.030814168974757195, -0.1557210236787796, -0.13875801861286163, -0.022855548188090324, -0.2242787778377533, -0.32634520530700684, -0.3453311324119568, -0.200698122382164, -0.3282327353954315, -0.12952499091625214, -0.1895684003829956, -0.253643274307251, 0.18352055549621582, 0.22793461382389069, -0.31333205103874207, -0.06755823642015457, 0.0006712687318213284, 0.08450046181678772, -0.5105263590812683, 0.6805172562599182, 0.4650321304798126, 0.5556741952896118, -0.32090651988983154, -0.116045281291008, -0.43565449118614197, 0.06292033940553665, -0.6595258116722107, -0.04978686198592186, 0.2942713797092438, 0.3931097984313965, 0.1516687422990799, 0.2153773158788681, 0.16460831463336945, 0.13592572510242462, -0.19167473912239075, 0.32111242413520813, -0.5305006504058838, -0.08095061779022217, -0.027506787329912186, 0.016977135092020035, -0.2176160216331482, -0.6412060856819153, 0.41454172134399414, -0.43625104427337646, 0.019619185477495193, -0.17953982949256897, -0.18055510520935059, 0.39918577671051025, 0.2217814028263092, 0.5155701637268066, 0.002280480694025755, 0.14304068684577942, 0.024066856130957603, -0.18110522627830505, -0.1920023411512375, -0.03763217106461525, 0.0861416608095169, 0.17627261579036713, -0.09164876490831375, 0.08704957365989685, 0.12938345968723297, -0.18072769045829773, 0.09440788626670837, 0.6064496636390686, -0.10337447375059128, 0.008501104079186916, 0.11393451690673828, -0.14100906252861023, -0.2004249393939972, 0.11038780957460403, -0.18586474657058716, -0.03389843925833702, -0.0985817164182663, -0.23733045160770416, -0.15887269377708435, -0.19998449087142944, 0.42357519268989563, -0.45981574058532715, 0.057306043803691864, -0.17736105620861053, 0.27229395508766174, 0.24975691735744476, 0.35054489970207214, -0.19628754258155823, 0.029731156304478645, 0.31973546743392944, 0.09321139007806778, -0.043147340416908264, 0.23114600777626038, 0.15142735838890076, 0.11452315747737885, -0.07493747025728226, 0.39183899760246277, -0.30365949869155884, -0.306639164686203, -0.22938846051692963, -0.35945501923561096 ]
https://github.com/huggingface/datasets/issues/1803
Querying examples from big datasets is slower than small datasets
I just tested and using the Arrow File format doesn't improve the speed... This will need further investigation. My guess is that it has to iterate over the record batches or chunks of a ChunkedArray in order to retrieve elements. However if we know in advance in which chunk the element is, and at what index it is, then we can access it instantaneously. But this requires dealing with the chunked arrays instead of the pyarrow Table directly which is not practical.
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed.
82
Querying examples from big datasets is slower than small datasets After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed. I just tested and using the Arrow File format doesn't improve the speed... This will need further investigation. My guess is that it has to iterate over the record batches or chunks of a ChunkedArray in order to retrieve elements. However if we know in advance in which chunk the element is, and at what index it is, then we can access it instantaneously. But this requires dealing with the chunked arrays instead of the pyarrow Table directly which is not practical.
[ -0.4054942727088928, 0.05864378437399864, -0.0799715518951416, 0.13153308629989624, -0.0796947106719017, -0.1776912361383438, 0.24417482316493988, 0.4918097257614136, -0.2313980609178543, 0.1801939457654953, 0.08149327337741852, 0.055089350789785385, 0.1250860095024109, -0.10075677931308746, 0.13072526454925537, -0.2734065651893616, 0.08074167370796204, 0.12484577298164368, -0.07513296604156494, -0.034529052674770355, 0.02403038553893566, -0.19028687477111816, -0.3486265540122986, 0.01847008988261223, -0.06632749736309052, -0.2240716814994812, -0.23070643842220306, 0.10720640420913696, -0.1658506989479065, -0.4173954129219055, -0.059535980224609375, -0.1528189778327942, 0.22993043065071106, 0.42703118920326233, -0.0001130733362515457, 0.016405265778303146, 0.22793056070804596, 0.08941767364740372, -0.19974665343761444, 0.1829340159893036, 0.17480677366256714, -0.28385478258132935, 0.08687470108270645, -0.40976712107658386, -0.04715430736541748, -0.29719898104667664, 0.09342747181653976, 0.018900498747825623, -0.0412534736096859, 0.3089764714241028, 0.14036434888839722, 0.5131545662879944, -0.19170530140399933, -0.13366322219371796, 0.6230682134628296, 0.20515242218971252, -0.35063040256500244, 0.5299628376960754, 0.5806369781494141, -0.04879843071103096, -0.30531570315361023, 0.13614042103290558, -0.08144467324018478, 0.2701414227485657, 0.03702276572585106, 0.1979731172323227, -0.11280546337366104, 0.17959170043468475, 0.12381085753440857, 0.4088881313800812, 0.30839046835899353, -0.08939094841480255, -0.3148857057094574, -0.2920178472995758, -0.05692872032523155, -0.2332932949066162, 0.020308123901486397, 0.3264200985431671, -0.2583792209625244, 0.2713417708873749, -0.31377583742141724, 0.15477776527404785, -0.10565107315778732, 0.1795514076948166, -0.15115849673748016, -0.06861541420221329, 0.11505071818828583, 0.19851066172122955, 0.0937962606549263, 0.013313007541000843, 0.15119309723377228, -0.16962184011936188, 0.02840566076338291, -0.05211048200726509, -0.2883045971393585, -0.08815452456474304, 0.15566284954547882, 0.17557816207408905, 0.2685050666332245, 0.15931034088134766, 0.4223199486732483, 0.11828381568193436, 0.26519328355789185, 0.0943622887134552, 0.045134931802749634, -0.009021676145493984, -0.26956507563591003, -0.0009781792759895325, 0.34788021445274353, 0.2753002941608429, -0.29451656341552734, 0.020877687260508537, -0.23832088708877563, -0.184454545378685, 0.18156316876411438, -0.1973290592432022, -0.02745402418076992, -0.13371673226356506, 0.004323744215071201, -0.08730420470237732, -0.3421138823032379, -0.12782323360443115, -0.02655758336186409, 0.47846871614456177, -0.1834658682346344, -0.026572175323963165, -0.21266649663448334, 0.1222231388092041, -0.33534297347068787, -0.2540249824523926, -0.12431267648935318, -0.1883355975151062, -0.16008004546165466, 0.23030751943588257, 0.10979518294334412, 0.056096822023391724, 0.30207359790802, 0.05854012444615364, -0.19851525127887726, 0.24196186661720276, 0.3923712372779846, -0.18086625635623932, 0.10445664823055267, 0.01975584402680397, 0.011255129240453243, 0.06353233754634857, -0.16373945772647858, 0.24476492404937744, -0.39108985662460327, 0.19727075099945068, -0.1953565925359726, -0.3384780287742615, 0.030638962984085083, 0.0919928252696991, -0.10569485276937485, -0.09975976496934891, -0.22708196938037872, 0.24624505639076233, -0.06942253559827805, -0.19974622130393982, -0.07743778079748154, -0.09419345110654831, 0.04028930142521858, -0.15313255786895752, 0.1413009762763977, 0.07762691378593445, -0.2506588101387024, 0.20185065269470215, -0.04518560320138931, 0.39703428745269775, 0.25439050793647766, 0.5308364033699036, -0.5031026601791382, 0.16236107051372528, -0.1327785700559616, 0.29661571979522705, 0.23202413320541382, -0.02813166193664074, -0.6667606830596924, 0.49735313653945923, -0.004257832188159227, 0.024188971146941185, 0.2724846601486206, 0.16171233355998993, 0.35167762637138367, 0.10784818977117538, -0.04906284064054489, 0.38371172547340393, 0.18394838273525238, 0.22793157398700714, -0.34009993076324463, -0.23031051456928253, -0.048727523535490036, 0.34797483682632446, -0.32447266578674316, -0.15712113678455353, 0.31125161051750183, -0.3645979166030884, 0.49066033959388733, -0.20656386017799377, -0.18362614512443542, 0.2509787976741791, 0.08702335506677628, -0.2777459919452667, 0.11834874004125595, 0.09648671746253967, 0.08594413846731186, 0.2421768307685852, -0.1894872784614563, -0.018465213477611542, 0.04509013518691063, -0.18880829215049744, -0.07221604138612747, 0.06196274235844612, -0.05526028200984001, -0.04738488793373108, -0.04489734396338463, -0.09182941168546677, 0.33068767189979553, -0.003530854592099786, 0.16473397612571716, -0.16320514678955078, -0.26933756470680237, -0.009445730596780777, -0.2626189589500427, 0.07929304242134094, 0.09506817162036896, -0.12131035327911377, 0.009306208230555058, -0.24925372004508972, -0.08842337876558304, -0.0017332854913547635, -0.15193812549114227, 0.3275272250175476, 0.15022902190685272, 0.1502477079629898, 0.22353079915046692, 0.15224812924861908, 0.1419573575258255, -0.0849314033985138, 0.38797375559806824, 0.2968660891056061, 0.07531574368476868, 0.036525871604681015, -0.405347615480423, 0.5263327360153198, 0.39331212639808655, 0.3160548508167267, 0.290402889251709, -0.3733910024166107, 0.1644449234008789, 0.048380132764577866, 0.11050285398960114, 0.4106387495994568, 0.29379841685295105, 0.24215678870677948, 0.5489556193351746, 0.16632571816444397, -0.31619691848754883, 0.11558142304420471, 0.45061421394348145, -0.24960146844387054, 0.018041525036096573, 0.18730460107326508, -0.42171332240104675, -0.18561697006225586, 0.3702153265476227, -0.15096870064735413, 0.32658088207244873, 0.33125290274620056, 0.16064445674419403, -0.12395523488521576, 0.027443697676062584, -0.2904405891895294, 0.2625504434108734, 0.09679485112428665, 0.14140857756137848, -0.22010771930217743, 0.43684327602386475, -0.0920058935880661, -0.24601086974143982, -0.38159775733947754, -0.039207637310028076, 0.19213202595710754, -0.12640082836151123, 0.30729958415031433, -0.09829865396022797, 0.053619012236595154, -0.03245216980576515, 0.13080063462257385, 0.07907264679670334, -0.08653497695922852, 0.045037925243377686, 0.19354145228862762, -0.18121027946472168, -0.15833832323551178, -0.05519140884280205, 0.22789518535137177, 0.26178839802742004, -0.2087608426809311, -0.0017743848729878664, -0.07168693840503693, -0.39838707447052, 0.08031274378299713, 0.2775999903678894, 0.14939245581626892, 0.145045667886734, -0.04691789671778679, -0.18544800579547882, -0.2801744341850281, -0.3152380585670471, -0.006573209073394537, 0.07990758866071701, 0.2866181433200836, -0.07090092450380325, 0.07639522105455399, -0.3244517743587494, -0.1447666883468628, 0.06370999664068222, -0.23290982842445374, -0.1513255089521408, 0.2760070562362671, -0.1807476431131363, 0.0008982555009424686, 0.08878341317176819, -0.3163764178752899, -0.16730767488479614, -0.30017736554145813, 0.37843063473701477, 0.1727609634399414, 0.20834605395793915, 0.10755512118339539, 0.3943430781364441, 0.12237091362476349, 0.009659716859459877, 0.1228194460272789, 0.0379166305065155, -0.41495174169540405, 0.5190879106521606, -0.1802637130022049, -0.4500642716884613, -0.48882150650024414, -0.24293015897274017, -0.16414962708950043, 0.45249906182289124, -0.5341609120368958, -0.031146083027124405, -0.5311317443847656, 0.4127752184867859, 0.12353946268558502, 0.10216737538576126, 0.04960310086607933, -0.2131577730178833, -0.20895537734031677, 0.12922994792461395, 0.08261851966381073, -0.006419765297323465, -0.08785071223974228, 0.20213820040225983, -0.06152070313692093, 0.03371107578277588, -0.009868512861430645, 0.7692416310310364, 0.0689445436000824, -0.012904303148388863, 0.2635362446308136, -0.09490275382995605, 0.05190661549568176, -0.1647459715604782, 0.1458873599767685, 0.09050365537405014, -0.2608799934387207, -0.26992738246917725, 0.41838985681533813, 0.1641470044851303, -0.3080240488052368, 0.059133902192115784, -0.1851305067539215, -0.09765846282243729, -0.2781842052936554, 0.2541961967945099, 0.15882420539855957, 0.17439840734004974, 0.06986048817634583, 0.3926577866077423, -0.30189964175224304, -0.13592687249183655, 0.07070915400981903, -0.2578137516975403, 0.020171968266367912, -0.1169833391904831, -0.3373419940471649, -0.059715691953897476, -0.6845937371253967, 0.20213910937309265, -0.06980404257774353, 0.03913949057459831, 0.254045695066452, -0.30217528343200684, 0.23480527102947235, -0.06626420468091965, 0.5487117767333984, 0.19057191908359528, -0.19964352250099182, -0.1152183786034584, -0.232499897480011, -0.42478978633880615, -0.15542401373386383, -0.49562543630599976, 0.11365163326263428, -0.0005390424630604684, 0.3345819413661957, -0.3185553550720215, 0.11183576285839081, 0.00006044635665602982, 0.3112281262874603, 0.19164974987506866, -0.04427896440029144, -0.1676555871963501, -0.28234028816223145, -0.1325233280658722, 0.1623777598142624, -0.19951505959033966, 0.05044980347156525, -0.26943477988243103, -0.16961011290550232, -0.14726132154464722, 0.1772935688495636, 0.11681944876909256, 0.48194199800491333, 0.28469282388687134, -0.4382561147212982, 0.36333420872688293, 0.027224833145737648, 0.15180577337741852, 0.382819265127182, 0.4000197947025299, 0.32248809933662415, -0.12357711046934128, 0.19988958537578583, 0.10222864151000977, 0.07479624450206757, 0.5333117842674255, -0.0012652785517275333, 0.19727297127246857, 0.061107952147722244, 0.27630287408828735, -0.0564492829144001, 0.08236760646104813, 0.327420175075531, -0.08233924210071564, -0.06249745562672615, -0.31682947278022766, 0.7024033665657043, 0.09989827871322632, 0.008582587353885174, 0.23552879691123962, -0.19018793106079102, 0.1304427832365036, 0.3013949394226074, -0.10220657289028168, 0.9143374562263489, -0.12508785724639893, 0.25259727239608765, 0.3494721055030823, 0.06673014909029007, 0.007590492255985737, -0.09591763466596603, 0.15101587772369385, -0.3135039806365967, -0.23164987564086914, 0.17610538005828857, -0.2805033326148987, 0.08492156863212585, 0.21285878121852875, -0.13127417862415314, 0.08628793060779572, -0.05373116210103035, 0.1990431845188141, -0.22586041688919067, 0.2392519861459732, -0.2529606819152832, -0.05109219253063202, -0.43534156680107117, 0.028821194544434547, 0.0972888246178627, -0.06465135514736176, 0.08860541880130768, -0.1453685611486435, -0.5541803240776062, 0.010253417305648327, -0.09387750923633575, 0.03891472518444061, -0.235580176115036, 0.1632988154888153, 0.059376057237386703, -0.47716090083122253, -0.08425337821245193, 0.1212545707821846, -0.49536874890327454, 0.07895484566688538, -0.2458118200302124, 0.4174095392227173, 0.043545011430978775, 0.23015931248664856, 0.5308089256286621, -0.3330543041229248, -0.008719680830836296, -0.029218630865216255, -0.21656817197799683, 0.24954074621200562, -0.15398980677127838, -0.25201040506362915, 0.025286074727773666, 0.14373163878917694, 0.36118224263191223, -0.1675015687942505, -0.2776471972465515, -0.12400473654270172, -0.4408736824989319, -0.24312672019004822, 0.08413774520158768, -0.042737286537885666, 0.08555808663368225, 0.23147697746753693, 0.31746912002563477, -0.3549938499927521, -0.22428730130195618, 0.371000200510025, 0.09431314468383789, 0.2603202760219574, 0.31308713555336, 0.08809632807970047, -0.21637564897537231, -0.12743714451789856, 0.2965537905693054, 0.4111420512199402, -0.4757101833820343, 0.06908143311738968, 0.013951287604868412, 0.12462680041790009, 0.24618034064769745, 0.018209418281912804, 0.07419758290052414, -0.2569899559020996, -0.33867910504341125, -0.06908717751502991, 0.009944177232682705, 0.3278670310974121, 0.12076111137866974, 0.1357964128255844, 0.05769190937280655, -0.014597201719880104, -0.3653219938278198, 0.0142490454018116, -0.27016857266426086, 0.13908979296684265, -0.024323057383298874, 0.1828630566596985, -0.4315897226333618, 0.01740969344973564, 0.008138226345181465, 0.14316518604755402, 0.1091618463397026, 0.1063818484544754, -0.12343867868185043, -0.2166474163532257, 0.029185473918914795, 0.12907245755195618, -0.13618825376033783, -0.27971988916397095, 0.2394425868988037, -0.20630769431591034, -0.0508660189807415, -0.3758655786514282, 0.14212407171726227, -0.13642063736915588, -0.03166060149669647, -0.4254383146762848, 0.2596435844898224, -0.1692042201757431, -0.30194076895713806, 0.31808575987815857, -0.4044686257839203, 0.1779976487159729, 0.060763489454984665, 0.1787564605474472, 0.004005656577646732, -0.1559254676103592, 0.07209115475416183, 0.20296700298786163, 0.164820596575737, 0.13967862725257874, 0.37973010540008545, -0.026211854070425034, -0.09722759574651718, -0.10738956183195114, 0.3312666118144989, 0.34939050674438477, 0.03802979364991188, -0.1387912780046463, 0.17579033970832825, 0.225635826587677, -0.32513684034347534, -0.28282174468040466, -0.1296367049217224, -0.25700584053993225, 0.24188895523548126, 0.00957879051566124, 0.20937618613243103, 0.16702260076999664, -0.07895610481500626, -0.20689719915390015, 0.0986437201499939, 0.5504122376441956, -0.14517514407634735, 0.6776700019836426, 0.32725200057029724, -0.19930431246757507, 0.27027979493141174, 0.002086108084768057, 0.34591424465179443, 0.3618886470794678, -0.11960265785455704, 0.5368244647979736, 0.23207542300224304, 0.24495378136634827, -0.13396789133548737, -0.3090498447418213, 0.13521084189414978, -0.0015169084072113037, -0.013643916696310043, 0.13919177651405334, 0.062129195779561996, 0.4490422010421753, 0.005227495450526476, 0.07710130512714386, -0.3266303539276123, -0.12674939632415771, 0.029044155031442642, -0.08261676132678986, -0.04338586702942848, -0.11773934215307236, -0.0748516321182251, 0.10686897486448288, -0.37246665358543396, -0.13124319911003113, 0.3648231327533722, 0.033845700323581696, 0.18120820820331573, -0.44460734724998474, 0.20354105532169342, -0.15691769123077393, 0.2180986851453781, -0.23983383178710938, 0.17476113140583038, 0.05008554831147194, -0.0667937621474266, 0.07139258831739426, 0.10168354958295822, 0.3679463267326355, 0.18524284660816193, -0.1066005676984787, -0.17309297621250153, -0.05663982778787613, -0.03850551322102547, -0.01390670333057642, -0.08697017282247543, 0.04141508415341377, -0.09860067814588547, 0.30176231265068054, 0.030814168974757195, -0.1557210236787796, -0.13875801861286163, -0.022855548188090324, -0.2242787778377533, -0.32634520530700684, -0.3453311324119568, -0.200698122382164, -0.3282327353954315, -0.12952499091625214, -0.1895684003829956, -0.253643274307251, 0.18352055549621582, 0.22793461382389069, -0.31333205103874207, -0.06755823642015457, 0.0006712687318213284, 0.08450046181678772, -0.5105263590812683, 0.6805172562599182, 0.4650321304798126, 0.5556741952896118, -0.32090651988983154, -0.116045281291008, -0.43565449118614197, 0.06292033940553665, -0.6595258116722107, -0.04978686198592186, 0.2942713797092438, 0.3931097984313965, 0.1516687422990799, 0.2153773158788681, 0.16460831463336945, 0.13592572510242462, -0.19167473912239075, 0.32111242413520813, -0.5305006504058838, -0.08095061779022217, -0.027506787329912186, 0.016977135092020035, -0.2176160216331482, -0.6412060856819153, 0.41454172134399414, -0.43625104427337646, 0.019619185477495193, -0.17953982949256897, -0.18055510520935059, 0.39918577671051025, 0.2217814028263092, 0.5155701637268066, 0.002280480694025755, 0.14304068684577942, 0.024066856130957603, -0.18110522627830505, -0.1920023411512375, -0.03763217106461525, 0.0861416608095169, 0.17627261579036713, -0.09164876490831375, 0.08704957365989685, 0.12938345968723297, -0.18072769045829773, 0.09440788626670837, 0.6064496636390686, -0.10337447375059128, 0.008501104079186916, 0.11393451690673828, -0.14100906252861023, -0.2004249393939972, 0.11038780957460403, -0.18586474657058716, -0.03389843925833702, -0.0985817164182663, -0.23733045160770416, -0.15887269377708435, -0.19998449087142944, 0.42357519268989563, -0.45981574058532715, 0.057306043803691864, -0.17736105620861053, 0.27229395508766174, 0.24975691735744476, 0.35054489970207214, -0.19628754258155823, 0.029731156304478645, 0.31973546743392944, 0.09321139007806778, -0.043147340416908264, 0.23114600777626038, 0.15142735838890076, 0.11452315747737885, -0.07493747025728226, 0.39183899760246277, -0.30365949869155884, -0.306639164686203, -0.22938846051692963, -0.35945501923561096 ]
https://github.com/huggingface/datasets/issues/1803
Querying examples from big datasets is slower than small datasets
I have a dataset with about 2.7 million rows (which I'm loading via `load_from_disk`), and I need to fetch around 300k (particular) rows of it, by index. Currently this is taking a really long time (~8 hours). I tried sharding the large dataset but overall it doesn't change how long it takes to fetch the desired rows. I actually have enough RAM that I could fit the large dataset in memory. Would having the large dataset in memory speed up querying? To find out, I tried to load (a column of) the large dataset into memory like this: ``` column_data = large_ds['column_name'] ``` but in itself this takes a really long time. I'm pretty stuck - do you have any ideas what I should do?
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed.
125
Querying examples from big datasets is slower than small datasets After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed. I have a dataset with about 2.7 million rows (which I'm loading via `load_from_disk`), and I need to fetch around 300k (particular) rows of it, by index. Currently this is taking a really long time (~8 hours). I tried sharding the large dataset but overall it doesn't change how long it takes to fetch the desired rows. I actually have enough RAM that I could fit the large dataset in memory. Would having the large dataset in memory speed up querying? To find out, I tried to load (a column of) the large dataset into memory like this: ``` column_data = large_ds['column_name'] ``` but in itself this takes a really long time. I'm pretty stuck - do you have any ideas what I should do?
[ -0.4054942727088928, 0.05864378437399864, -0.0799715518951416, 0.13153308629989624, -0.0796947106719017, -0.1776912361383438, 0.24417482316493988, 0.4918097257614136, -0.2313980609178543, 0.1801939457654953, 0.08149327337741852, 0.055089350789785385, 0.1250860095024109, -0.10075677931308746, 0.13072526454925537, -0.2734065651893616, 0.08074167370796204, 0.12484577298164368, -0.07513296604156494, -0.034529052674770355, 0.02403038553893566, -0.19028687477111816, -0.3486265540122986, 0.01847008988261223, -0.06632749736309052, -0.2240716814994812, -0.23070643842220306, 0.10720640420913696, -0.1658506989479065, -0.4173954129219055, -0.059535980224609375, -0.1528189778327942, 0.22993043065071106, 0.42703118920326233, -0.0001130733362515457, 0.016405265778303146, 0.22793056070804596, 0.08941767364740372, -0.19974665343761444, 0.1829340159893036, 0.17480677366256714, -0.28385478258132935, 0.08687470108270645, -0.40976712107658386, -0.04715430736541748, -0.29719898104667664, 0.09342747181653976, 0.018900498747825623, -0.0412534736096859, 0.3089764714241028, 0.14036434888839722, 0.5131545662879944, -0.19170530140399933, -0.13366322219371796, 0.6230682134628296, 0.20515242218971252, -0.35063040256500244, 0.5299628376960754, 0.5806369781494141, -0.04879843071103096, -0.30531570315361023, 0.13614042103290558, -0.08144467324018478, 0.2701414227485657, 0.03702276572585106, 0.1979731172323227, -0.11280546337366104, 0.17959170043468475, 0.12381085753440857, 0.4088881313800812, 0.30839046835899353, -0.08939094841480255, -0.3148857057094574, -0.2920178472995758, -0.05692872032523155, -0.2332932949066162, 0.020308123901486397, 0.3264200985431671, -0.2583792209625244, 0.2713417708873749, -0.31377583742141724, 0.15477776527404785, -0.10565107315778732, 0.1795514076948166, -0.15115849673748016, -0.06861541420221329, 0.11505071818828583, 0.19851066172122955, 0.0937962606549263, 0.013313007541000843, 0.15119309723377228, -0.16962184011936188, 0.02840566076338291, -0.05211048200726509, -0.2883045971393585, -0.08815452456474304, 0.15566284954547882, 0.17557816207408905, 0.2685050666332245, 0.15931034088134766, 0.4223199486732483, 0.11828381568193436, 0.26519328355789185, 0.0943622887134552, 0.045134931802749634, -0.009021676145493984, -0.26956507563591003, -0.0009781792759895325, 0.34788021445274353, 0.2753002941608429, -0.29451656341552734, 0.020877687260508537, -0.23832088708877563, -0.184454545378685, 0.18156316876411438, -0.1973290592432022, -0.02745402418076992, -0.13371673226356506, 0.004323744215071201, -0.08730420470237732, -0.3421138823032379, -0.12782323360443115, -0.02655758336186409, 0.47846871614456177, -0.1834658682346344, -0.026572175323963165, -0.21266649663448334, 0.1222231388092041, -0.33534297347068787, -0.2540249824523926, -0.12431267648935318, -0.1883355975151062, -0.16008004546165466, 0.23030751943588257, 0.10979518294334412, 0.056096822023391724, 0.30207359790802, 0.05854012444615364, -0.19851525127887726, 0.24196186661720276, 0.3923712372779846, -0.18086625635623932, 0.10445664823055267, 0.01975584402680397, 0.011255129240453243, 0.06353233754634857, -0.16373945772647858, 0.24476492404937744, -0.39108985662460327, 0.19727075099945068, -0.1953565925359726, -0.3384780287742615, 0.030638962984085083, 0.0919928252696991, -0.10569485276937485, -0.09975976496934891, -0.22708196938037872, 0.24624505639076233, -0.06942253559827805, -0.19974622130393982, -0.07743778079748154, -0.09419345110654831, 0.04028930142521858, -0.15313255786895752, 0.1413009762763977, 0.07762691378593445, -0.2506588101387024, 0.20185065269470215, -0.04518560320138931, 0.39703428745269775, 0.25439050793647766, 0.5308364033699036, -0.5031026601791382, 0.16236107051372528, -0.1327785700559616, 0.29661571979522705, 0.23202413320541382, -0.02813166193664074, -0.6667606830596924, 0.49735313653945923, -0.004257832188159227, 0.024188971146941185, 0.2724846601486206, 0.16171233355998993, 0.35167762637138367, 0.10784818977117538, -0.04906284064054489, 0.38371172547340393, 0.18394838273525238, 0.22793157398700714, -0.34009993076324463, -0.23031051456928253, -0.048727523535490036, 0.34797483682632446, -0.32447266578674316, -0.15712113678455353, 0.31125161051750183, -0.3645979166030884, 0.49066033959388733, -0.20656386017799377, -0.18362614512443542, 0.2509787976741791, 0.08702335506677628, -0.2777459919452667, 0.11834874004125595, 0.09648671746253967, 0.08594413846731186, 0.2421768307685852, -0.1894872784614563, -0.018465213477611542, 0.04509013518691063, -0.18880829215049744, -0.07221604138612747, 0.06196274235844612, -0.05526028200984001, -0.04738488793373108, -0.04489734396338463, -0.09182941168546677, 0.33068767189979553, -0.003530854592099786, 0.16473397612571716, -0.16320514678955078, -0.26933756470680237, -0.009445730596780777, -0.2626189589500427, 0.07929304242134094, 0.09506817162036896, -0.12131035327911377, 0.009306208230555058, -0.24925372004508972, -0.08842337876558304, -0.0017332854913547635, -0.15193812549114227, 0.3275272250175476, 0.15022902190685272, 0.1502477079629898, 0.22353079915046692, 0.15224812924861908, 0.1419573575258255, -0.0849314033985138, 0.38797375559806824, 0.2968660891056061, 0.07531574368476868, 0.036525871604681015, -0.405347615480423, 0.5263327360153198, 0.39331212639808655, 0.3160548508167267, 0.290402889251709, -0.3733910024166107, 0.1644449234008789, 0.048380132764577866, 0.11050285398960114, 0.4106387495994568, 0.29379841685295105, 0.24215678870677948, 0.5489556193351746, 0.16632571816444397, -0.31619691848754883, 0.11558142304420471, 0.45061421394348145, -0.24960146844387054, 0.018041525036096573, 0.18730460107326508, -0.42171332240104675, -0.18561697006225586, 0.3702153265476227, -0.15096870064735413, 0.32658088207244873, 0.33125290274620056, 0.16064445674419403, -0.12395523488521576, 0.027443697676062584, -0.2904405891895294, 0.2625504434108734, 0.09679485112428665, 0.14140857756137848, -0.22010771930217743, 0.43684327602386475, -0.0920058935880661, -0.24601086974143982, -0.38159775733947754, -0.039207637310028076, 0.19213202595710754, -0.12640082836151123, 0.30729958415031433, -0.09829865396022797, 0.053619012236595154, -0.03245216980576515, 0.13080063462257385, 0.07907264679670334, -0.08653497695922852, 0.045037925243377686, 0.19354145228862762, -0.18121027946472168, -0.15833832323551178, -0.05519140884280205, 0.22789518535137177, 0.26178839802742004, -0.2087608426809311, -0.0017743848729878664, -0.07168693840503693, -0.39838707447052, 0.08031274378299713, 0.2775999903678894, 0.14939245581626892, 0.145045667886734, -0.04691789671778679, -0.18544800579547882, -0.2801744341850281, -0.3152380585670471, -0.006573209073394537, 0.07990758866071701, 0.2866181433200836, -0.07090092450380325, 0.07639522105455399, -0.3244517743587494, -0.1447666883468628, 0.06370999664068222, -0.23290982842445374, -0.1513255089521408, 0.2760070562362671, -0.1807476431131363, 0.0008982555009424686, 0.08878341317176819, -0.3163764178752899, -0.16730767488479614, -0.30017736554145813, 0.37843063473701477, 0.1727609634399414, 0.20834605395793915, 0.10755512118339539, 0.3943430781364441, 0.12237091362476349, 0.009659716859459877, 0.1228194460272789, 0.0379166305065155, -0.41495174169540405, 0.5190879106521606, -0.1802637130022049, -0.4500642716884613, -0.48882150650024414, -0.24293015897274017, -0.16414962708950043, 0.45249906182289124, -0.5341609120368958, -0.031146083027124405, -0.5311317443847656, 0.4127752184867859, 0.12353946268558502, 0.10216737538576126, 0.04960310086607933, -0.2131577730178833, -0.20895537734031677, 0.12922994792461395, 0.08261851966381073, -0.006419765297323465, -0.08785071223974228, 0.20213820040225983, -0.06152070313692093, 0.03371107578277588, -0.009868512861430645, 0.7692416310310364, 0.0689445436000824, -0.012904303148388863, 0.2635362446308136, -0.09490275382995605, 0.05190661549568176, -0.1647459715604782, 0.1458873599767685, 0.09050365537405014, -0.2608799934387207, -0.26992738246917725, 0.41838985681533813, 0.1641470044851303, -0.3080240488052368, 0.059133902192115784, -0.1851305067539215, -0.09765846282243729, -0.2781842052936554, 0.2541961967945099, 0.15882420539855957, 0.17439840734004974, 0.06986048817634583, 0.3926577866077423, -0.30189964175224304, -0.13592687249183655, 0.07070915400981903, -0.2578137516975403, 0.020171968266367912, -0.1169833391904831, -0.3373419940471649, -0.059715691953897476, -0.6845937371253967, 0.20213910937309265, -0.06980404257774353, 0.03913949057459831, 0.254045695066452, -0.30217528343200684, 0.23480527102947235, -0.06626420468091965, 0.5487117767333984, 0.19057191908359528, -0.19964352250099182, -0.1152183786034584, -0.232499897480011, -0.42478978633880615, -0.15542401373386383, -0.49562543630599976, 0.11365163326263428, -0.0005390424630604684, 0.3345819413661957, -0.3185553550720215, 0.11183576285839081, 0.00006044635665602982, 0.3112281262874603, 0.19164974987506866, -0.04427896440029144, -0.1676555871963501, -0.28234028816223145, -0.1325233280658722, 0.1623777598142624, -0.19951505959033966, 0.05044980347156525, -0.26943477988243103, -0.16961011290550232, -0.14726132154464722, 0.1772935688495636, 0.11681944876909256, 0.48194199800491333, 0.28469282388687134, -0.4382561147212982, 0.36333420872688293, 0.027224833145737648, 0.15180577337741852, 0.382819265127182, 0.4000197947025299, 0.32248809933662415, -0.12357711046934128, 0.19988958537578583, 0.10222864151000977, 0.07479624450206757, 0.5333117842674255, -0.0012652785517275333, 0.19727297127246857, 0.061107952147722244, 0.27630287408828735, -0.0564492829144001, 0.08236760646104813, 0.327420175075531, -0.08233924210071564, -0.06249745562672615, -0.31682947278022766, 0.7024033665657043, 0.09989827871322632, 0.008582587353885174, 0.23552879691123962, -0.19018793106079102, 0.1304427832365036, 0.3013949394226074, -0.10220657289028168, 0.9143374562263489, -0.12508785724639893, 0.25259727239608765, 0.3494721055030823, 0.06673014909029007, 0.007590492255985737, -0.09591763466596603, 0.15101587772369385, -0.3135039806365967, -0.23164987564086914, 0.17610538005828857, -0.2805033326148987, 0.08492156863212585, 0.21285878121852875, -0.13127417862415314, 0.08628793060779572, -0.05373116210103035, 0.1990431845188141, -0.22586041688919067, 0.2392519861459732, -0.2529606819152832, -0.05109219253063202, -0.43534156680107117, 0.028821194544434547, 0.0972888246178627, -0.06465135514736176, 0.08860541880130768, -0.1453685611486435, -0.5541803240776062, 0.010253417305648327, -0.09387750923633575, 0.03891472518444061, -0.235580176115036, 0.1632988154888153, 0.059376057237386703, -0.47716090083122253, -0.08425337821245193, 0.1212545707821846, -0.49536874890327454, 0.07895484566688538, -0.2458118200302124, 0.4174095392227173, 0.043545011430978775, 0.23015931248664856, 0.5308089256286621, -0.3330543041229248, -0.008719680830836296, -0.029218630865216255, -0.21656817197799683, 0.24954074621200562, -0.15398980677127838, -0.25201040506362915, 0.025286074727773666, 0.14373163878917694, 0.36118224263191223, -0.1675015687942505, -0.2776471972465515, -0.12400473654270172, -0.4408736824989319, -0.24312672019004822, 0.08413774520158768, -0.042737286537885666, 0.08555808663368225, 0.23147697746753693, 0.31746912002563477, -0.3549938499927521, -0.22428730130195618, 0.371000200510025, 0.09431314468383789, 0.2603202760219574, 0.31308713555336, 0.08809632807970047, -0.21637564897537231, -0.12743714451789856, 0.2965537905693054, 0.4111420512199402, -0.4757101833820343, 0.06908143311738968, 0.013951287604868412, 0.12462680041790009, 0.24618034064769745, 0.018209418281912804, 0.07419758290052414, -0.2569899559020996, -0.33867910504341125, -0.06908717751502991, 0.009944177232682705, 0.3278670310974121, 0.12076111137866974, 0.1357964128255844, 0.05769190937280655, -0.014597201719880104, -0.3653219938278198, 0.0142490454018116, -0.27016857266426086, 0.13908979296684265, -0.024323057383298874, 0.1828630566596985, -0.4315897226333618, 0.01740969344973564, 0.008138226345181465, 0.14316518604755402, 0.1091618463397026, 0.1063818484544754, -0.12343867868185043, -0.2166474163532257, 0.029185473918914795, 0.12907245755195618, -0.13618825376033783, -0.27971988916397095, 0.2394425868988037, -0.20630769431591034, -0.0508660189807415, -0.3758655786514282, 0.14212407171726227, -0.13642063736915588, -0.03166060149669647, -0.4254383146762848, 0.2596435844898224, -0.1692042201757431, -0.30194076895713806, 0.31808575987815857, -0.4044686257839203, 0.1779976487159729, 0.060763489454984665, 0.1787564605474472, 0.004005656577646732, -0.1559254676103592, 0.07209115475416183, 0.20296700298786163, 0.164820596575737, 0.13967862725257874, 0.37973010540008545, -0.026211854070425034, -0.09722759574651718, -0.10738956183195114, 0.3312666118144989, 0.34939050674438477, 0.03802979364991188, -0.1387912780046463, 0.17579033970832825, 0.225635826587677, -0.32513684034347534, -0.28282174468040466, -0.1296367049217224, -0.25700584053993225, 0.24188895523548126, 0.00957879051566124, 0.20937618613243103, 0.16702260076999664, -0.07895610481500626, -0.20689719915390015, 0.0986437201499939, 0.5504122376441956, -0.14517514407634735, 0.6776700019836426, 0.32725200057029724, -0.19930431246757507, 0.27027979493141174, 0.002086108084768057, 0.34591424465179443, 0.3618886470794678, -0.11960265785455704, 0.5368244647979736, 0.23207542300224304, 0.24495378136634827, -0.13396789133548737, -0.3090498447418213, 0.13521084189414978, -0.0015169084072113037, -0.013643916696310043, 0.13919177651405334, 0.062129195779561996, 0.4490422010421753, 0.005227495450526476, 0.07710130512714386, -0.3266303539276123, -0.12674939632415771, 0.029044155031442642, -0.08261676132678986, -0.04338586702942848, -0.11773934215307236, -0.0748516321182251, 0.10686897486448288, -0.37246665358543396, -0.13124319911003113, 0.3648231327533722, 0.033845700323581696, 0.18120820820331573, -0.44460734724998474, 0.20354105532169342, -0.15691769123077393, 0.2180986851453781, -0.23983383178710938, 0.17476113140583038, 0.05008554831147194, -0.0667937621474266, 0.07139258831739426, 0.10168354958295822, 0.3679463267326355, 0.18524284660816193, -0.1066005676984787, -0.17309297621250153, -0.05663982778787613, -0.03850551322102547, -0.01390670333057642, -0.08697017282247543, 0.04141508415341377, -0.09860067814588547, 0.30176231265068054, 0.030814168974757195, -0.1557210236787796, -0.13875801861286163, -0.022855548188090324, -0.2242787778377533, -0.32634520530700684, -0.3453311324119568, -0.200698122382164, -0.3282327353954315, -0.12952499091625214, -0.1895684003829956, -0.253643274307251, 0.18352055549621582, 0.22793461382389069, -0.31333205103874207, -0.06755823642015457, 0.0006712687318213284, 0.08450046181678772, -0.5105263590812683, 0.6805172562599182, 0.4650321304798126, 0.5556741952896118, -0.32090651988983154, -0.116045281291008, -0.43565449118614197, 0.06292033940553665, -0.6595258116722107, -0.04978686198592186, 0.2942713797092438, 0.3931097984313965, 0.1516687422990799, 0.2153773158788681, 0.16460831463336945, 0.13592572510242462, -0.19167473912239075, 0.32111242413520813, -0.5305006504058838, -0.08095061779022217, -0.027506787329912186, 0.016977135092020035, -0.2176160216331482, -0.6412060856819153, 0.41454172134399414, -0.43625104427337646, 0.019619185477495193, -0.17953982949256897, -0.18055510520935059, 0.39918577671051025, 0.2217814028263092, 0.5155701637268066, 0.002280480694025755, 0.14304068684577942, 0.024066856130957603, -0.18110522627830505, -0.1920023411512375, -0.03763217106461525, 0.0861416608095169, 0.17627261579036713, -0.09164876490831375, 0.08704957365989685, 0.12938345968723297, -0.18072769045829773, 0.09440788626670837, 0.6064496636390686, -0.10337447375059128, 0.008501104079186916, 0.11393451690673828, -0.14100906252861023, -0.2004249393939972, 0.11038780957460403, -0.18586474657058716, -0.03389843925833702, -0.0985817164182663, -0.23733045160770416, -0.15887269377708435, -0.19998449087142944, 0.42357519268989563, -0.45981574058532715, 0.057306043803691864, -0.17736105620861053, 0.27229395508766174, 0.24975691735744476, 0.35054489970207214, -0.19628754258155823, 0.029731156304478645, 0.31973546743392944, 0.09321139007806778, -0.043147340416908264, 0.23114600777626038, 0.15142735838890076, 0.11452315747737885, -0.07493747025728226, 0.39183899760246277, -0.30365949869155884, -0.306639164686203, -0.22938846051692963, -0.35945501923561096 ]
https://github.com/huggingface/datasets/issues/1803
Querying examples from big datasets is slower than small datasets
Hi ! Feel free to post a message on the [forum](https://discuss.huggingface.co/c/datasets/10). I'd be happy to help you with this. In your post on the forum, feel free to add more details about your setup: What are column names and types of your dataset ? How was the dataset constructed ? Is the dataset shuffled ? Is the dataset tokenized ? Are you on a SSD or an HDD ? I'm sure we can figure something out. For example on my laptop I can access the 6 millions articles from wikipedia in less than a minute.
After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed.
95
Querying examples from big datasets is slower than small datasets After some experiments with bookcorpus I noticed that querying examples from big datasets is slower than small datasets. For example ```python from datasets import load_dataset b1 = load_dataset("bookcorpus", split="train[:1%]") b50 = load_dataset("bookcorpus", split="train[:50%]") b100 = load_dataset("bookcorpus", split="train[:100%]") %timeit _ = b1[-1] # 12.2 µs ± 70.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit _ = b50[-1] # 92.5 µs ± 1.24 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit _ = b100[-1] # 177 µs ± 3.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` It looks like the time to fetch the example increases with the size of the dataset. This is maybe due to the use of the Arrow streaming format to store the data on disk. I guess pyarrow needs to iterate through the file as a stream to find the queried sample. Maybe switching to the Arrow IPC file format could help fixing this issue. Indeed according to the [documentation](https://arrow.apache.org/docs/format/Columnar.html?highlight=arrow1#ipc-file-format), it's identical to the streaming format except that it contains the memory offsets of each sample, which could fix the issue: > We define a “file format” supporting random access that is build with the stream format. The file starts and ends with a magic string ARROW1 (plus padding). What follows in the file is identical to the stream format. At the end of the file, we write a footer containing a redundant copy of the schema (which is a part of the streaming format) plus memory offsets and sizes for each of the data blocks in the file. This enables random access any record batch in the file. See File.fbs for the precise details of the file footer. cc @gaceladri since it can help speed up your training when this one is fixed. Hi ! Feel free to post a message on the [forum](https://discuss.huggingface.co/c/datasets/10). I'd be happy to help you with this. In your post on the forum, feel free to add more details about your setup: What are column names and types of your dataset ? How was the dataset constructed ? Is the dataset shuffled ? Is the dataset tokenized ? Are you on a SSD or an HDD ? I'm sure we can figure something out. For example on my laptop I can access the 6 millions articles from wikipedia in less than a minute.
[ -0.4054942727088928, 0.05864378437399864, -0.0799715518951416, 0.13153308629989624, -0.0796947106719017, -0.1776912361383438, 0.24417482316493988, 0.4918097257614136, -0.2313980609178543, 0.1801939457654953, 0.08149327337741852, 0.055089350789785385, 0.1250860095024109, -0.10075677931308746, 0.13072526454925537, -0.2734065651893616, 0.08074167370796204, 0.12484577298164368, -0.07513296604156494, -0.034529052674770355, 0.02403038553893566, -0.19028687477111816, -0.3486265540122986, 0.01847008988261223, -0.06632749736309052, -0.2240716814994812, -0.23070643842220306, 0.10720640420913696, -0.1658506989479065, -0.4173954129219055, -0.059535980224609375, -0.1528189778327942, 0.22993043065071106, 0.42703118920326233, -0.0001130733362515457, 0.016405265778303146, 0.22793056070804596, 0.08941767364740372, -0.19974665343761444, 0.1829340159893036, 0.17480677366256714, -0.28385478258132935, 0.08687470108270645, -0.40976712107658386, -0.04715430736541748, -0.29719898104667664, 0.09342747181653976, 0.018900498747825623, -0.0412534736096859, 0.3089764714241028, 0.14036434888839722, 0.5131545662879944, -0.19170530140399933, -0.13366322219371796, 0.6230682134628296, 0.20515242218971252, -0.35063040256500244, 0.5299628376960754, 0.5806369781494141, -0.04879843071103096, -0.30531570315361023, 0.13614042103290558, -0.08144467324018478, 0.2701414227485657, 0.03702276572585106, 0.1979731172323227, -0.11280546337366104, 0.17959170043468475, 0.12381085753440857, 0.4088881313800812, 0.30839046835899353, -0.08939094841480255, -0.3148857057094574, -0.2920178472995758, -0.05692872032523155, -0.2332932949066162, 0.020308123901486397, 0.3264200985431671, -0.2583792209625244, 0.2713417708873749, -0.31377583742141724, 0.15477776527404785, -0.10565107315778732, 0.1795514076948166, -0.15115849673748016, -0.06861541420221329, 0.11505071818828583, 0.19851066172122955, 0.0937962606549263, 0.013313007541000843, 0.15119309723377228, -0.16962184011936188, 0.02840566076338291, -0.05211048200726509, -0.2883045971393585, -0.08815452456474304, 0.15566284954547882, 0.17557816207408905, 0.2685050666332245, 0.15931034088134766, 0.4223199486732483, 0.11828381568193436, 0.26519328355789185, 0.0943622887134552, 0.045134931802749634, -0.009021676145493984, -0.26956507563591003, -0.0009781792759895325, 0.34788021445274353, 0.2753002941608429, -0.29451656341552734, 0.020877687260508537, -0.23832088708877563, -0.184454545378685, 0.18156316876411438, -0.1973290592432022, -0.02745402418076992, -0.13371673226356506, 0.004323744215071201, -0.08730420470237732, -0.3421138823032379, -0.12782323360443115, -0.02655758336186409, 0.47846871614456177, -0.1834658682346344, -0.026572175323963165, -0.21266649663448334, 0.1222231388092041, -0.33534297347068787, -0.2540249824523926, -0.12431267648935318, -0.1883355975151062, -0.16008004546165466, 0.23030751943588257, 0.10979518294334412, 0.056096822023391724, 0.30207359790802, 0.05854012444615364, -0.19851525127887726, 0.24196186661720276, 0.3923712372779846, -0.18086625635623932, 0.10445664823055267, 0.01975584402680397, 0.011255129240453243, 0.06353233754634857, -0.16373945772647858, 0.24476492404937744, -0.39108985662460327, 0.19727075099945068, -0.1953565925359726, -0.3384780287742615, 0.030638962984085083, 0.0919928252696991, -0.10569485276937485, -0.09975976496934891, -0.22708196938037872, 0.24624505639076233, -0.06942253559827805, -0.19974622130393982, -0.07743778079748154, -0.09419345110654831, 0.04028930142521858, -0.15313255786895752, 0.1413009762763977, 0.07762691378593445, -0.2506588101387024, 0.20185065269470215, -0.04518560320138931, 0.39703428745269775, 0.25439050793647766, 0.5308364033699036, -0.5031026601791382, 0.16236107051372528, -0.1327785700559616, 0.29661571979522705, 0.23202413320541382, -0.02813166193664074, -0.6667606830596924, 0.49735313653945923, -0.004257832188159227, 0.024188971146941185, 0.2724846601486206, 0.16171233355998993, 0.35167762637138367, 0.10784818977117538, -0.04906284064054489, 0.38371172547340393, 0.18394838273525238, 0.22793157398700714, -0.34009993076324463, -0.23031051456928253, -0.048727523535490036, 0.34797483682632446, -0.32447266578674316, -0.15712113678455353, 0.31125161051750183, -0.3645979166030884, 0.49066033959388733, -0.20656386017799377, -0.18362614512443542, 0.2509787976741791, 0.08702335506677628, -0.2777459919452667, 0.11834874004125595, 0.09648671746253967, 0.08594413846731186, 0.2421768307685852, -0.1894872784614563, -0.018465213477611542, 0.04509013518691063, -0.18880829215049744, -0.07221604138612747, 0.06196274235844612, -0.05526028200984001, -0.04738488793373108, -0.04489734396338463, -0.09182941168546677, 0.33068767189979553, -0.003530854592099786, 0.16473397612571716, -0.16320514678955078, -0.26933756470680237, -0.009445730596780777, -0.2626189589500427, 0.07929304242134094, 0.09506817162036896, -0.12131035327911377, 0.009306208230555058, -0.24925372004508972, -0.08842337876558304, -0.0017332854913547635, -0.15193812549114227, 0.3275272250175476, 0.15022902190685272, 0.1502477079629898, 0.22353079915046692, 0.15224812924861908, 0.1419573575258255, -0.0849314033985138, 0.38797375559806824, 0.2968660891056061, 0.07531574368476868, 0.036525871604681015, -0.405347615480423, 0.5263327360153198, 0.39331212639808655, 0.3160548508167267, 0.290402889251709, -0.3733910024166107, 0.1644449234008789, 0.048380132764577866, 0.11050285398960114, 0.4106387495994568, 0.29379841685295105, 0.24215678870677948, 0.5489556193351746, 0.16632571816444397, -0.31619691848754883, 0.11558142304420471, 0.45061421394348145, -0.24960146844387054, 0.018041525036096573, 0.18730460107326508, -0.42171332240104675, -0.18561697006225586, 0.3702153265476227, -0.15096870064735413, 0.32658088207244873, 0.33125290274620056, 0.16064445674419403, -0.12395523488521576, 0.027443697676062584, -0.2904405891895294, 0.2625504434108734, 0.09679485112428665, 0.14140857756137848, -0.22010771930217743, 0.43684327602386475, -0.0920058935880661, -0.24601086974143982, -0.38159775733947754, -0.039207637310028076, 0.19213202595710754, -0.12640082836151123, 0.30729958415031433, -0.09829865396022797, 0.053619012236595154, -0.03245216980576515, 0.13080063462257385, 0.07907264679670334, -0.08653497695922852, 0.045037925243377686, 0.19354145228862762, -0.18121027946472168, -0.15833832323551178, -0.05519140884280205, 0.22789518535137177, 0.26178839802742004, -0.2087608426809311, -0.0017743848729878664, -0.07168693840503693, -0.39838707447052, 0.08031274378299713, 0.2775999903678894, 0.14939245581626892, 0.145045667886734, -0.04691789671778679, -0.18544800579547882, -0.2801744341850281, -0.3152380585670471, -0.006573209073394537, 0.07990758866071701, 0.2866181433200836, -0.07090092450380325, 0.07639522105455399, -0.3244517743587494, -0.1447666883468628, 0.06370999664068222, -0.23290982842445374, -0.1513255089521408, 0.2760070562362671, -0.1807476431131363, 0.0008982555009424686, 0.08878341317176819, -0.3163764178752899, -0.16730767488479614, -0.30017736554145813, 0.37843063473701477, 0.1727609634399414, 0.20834605395793915, 0.10755512118339539, 0.3943430781364441, 0.12237091362476349, 0.009659716859459877, 0.1228194460272789, 0.0379166305065155, -0.41495174169540405, 0.5190879106521606, -0.1802637130022049, -0.4500642716884613, -0.48882150650024414, -0.24293015897274017, -0.16414962708950043, 0.45249906182289124, -0.5341609120368958, -0.031146083027124405, -0.5311317443847656, 0.4127752184867859, 0.12353946268558502, 0.10216737538576126, 0.04960310086607933, -0.2131577730178833, -0.20895537734031677, 0.12922994792461395, 0.08261851966381073, -0.006419765297323465, -0.08785071223974228, 0.20213820040225983, -0.06152070313692093, 0.03371107578277588, -0.009868512861430645, 0.7692416310310364, 0.0689445436000824, -0.012904303148388863, 0.2635362446308136, -0.09490275382995605, 0.05190661549568176, -0.1647459715604782, 0.1458873599767685, 0.09050365537405014, -0.2608799934387207, -0.26992738246917725, 0.41838985681533813, 0.1641470044851303, -0.3080240488052368, 0.059133902192115784, -0.1851305067539215, -0.09765846282243729, -0.2781842052936554, 0.2541961967945099, 0.15882420539855957, 0.17439840734004974, 0.06986048817634583, 0.3926577866077423, -0.30189964175224304, -0.13592687249183655, 0.07070915400981903, -0.2578137516975403, 0.020171968266367912, -0.1169833391904831, -0.3373419940471649, -0.059715691953897476, -0.6845937371253967, 0.20213910937309265, -0.06980404257774353, 0.03913949057459831, 0.254045695066452, -0.30217528343200684, 0.23480527102947235, -0.06626420468091965, 0.5487117767333984, 0.19057191908359528, -0.19964352250099182, -0.1152183786034584, -0.232499897480011, -0.42478978633880615, -0.15542401373386383, -0.49562543630599976, 0.11365163326263428, -0.0005390424630604684, 0.3345819413661957, -0.3185553550720215, 0.11183576285839081, 0.00006044635665602982, 0.3112281262874603, 0.19164974987506866, -0.04427896440029144, -0.1676555871963501, -0.28234028816223145, -0.1325233280658722, 0.1623777598142624, -0.19951505959033966, 0.05044980347156525, -0.26943477988243103, -0.16961011290550232, -0.14726132154464722, 0.1772935688495636, 0.11681944876909256, 0.48194199800491333, 0.28469282388687134, -0.4382561147212982, 0.36333420872688293, 0.027224833145737648, 0.15180577337741852, 0.382819265127182, 0.4000197947025299, 0.32248809933662415, -0.12357711046934128, 0.19988958537578583, 0.10222864151000977, 0.07479624450206757, 0.5333117842674255, -0.0012652785517275333, 0.19727297127246857, 0.061107952147722244, 0.27630287408828735, -0.0564492829144001, 0.08236760646104813, 0.327420175075531, -0.08233924210071564, -0.06249745562672615, -0.31682947278022766, 0.7024033665657043, 0.09989827871322632, 0.008582587353885174, 0.23552879691123962, -0.19018793106079102, 0.1304427832365036, 0.3013949394226074, -0.10220657289028168, 0.9143374562263489, -0.12508785724639893, 0.25259727239608765, 0.3494721055030823, 0.06673014909029007, 0.007590492255985737, -0.09591763466596603, 0.15101587772369385, -0.3135039806365967, -0.23164987564086914, 0.17610538005828857, -0.2805033326148987, 0.08492156863212585, 0.21285878121852875, -0.13127417862415314, 0.08628793060779572, -0.05373116210103035, 0.1990431845188141, -0.22586041688919067, 0.2392519861459732, -0.2529606819152832, -0.05109219253063202, -0.43534156680107117, 0.028821194544434547, 0.0972888246178627, -0.06465135514736176, 0.08860541880130768, -0.1453685611486435, -0.5541803240776062, 0.010253417305648327, -0.09387750923633575, 0.03891472518444061, -0.235580176115036, 0.1632988154888153, 0.059376057237386703, -0.47716090083122253, -0.08425337821245193, 0.1212545707821846, -0.49536874890327454, 0.07895484566688538, -0.2458118200302124, 0.4174095392227173, 0.043545011430978775, 0.23015931248664856, 0.5308089256286621, -0.3330543041229248, -0.008719680830836296, -0.029218630865216255, -0.21656817197799683, 0.24954074621200562, -0.15398980677127838, -0.25201040506362915, 0.025286074727773666, 0.14373163878917694, 0.36118224263191223, -0.1675015687942505, -0.2776471972465515, -0.12400473654270172, -0.4408736824989319, -0.24312672019004822, 0.08413774520158768, -0.042737286537885666, 0.08555808663368225, 0.23147697746753693, 0.31746912002563477, -0.3549938499927521, -0.22428730130195618, 0.371000200510025, 0.09431314468383789, 0.2603202760219574, 0.31308713555336, 0.08809632807970047, -0.21637564897537231, -0.12743714451789856, 0.2965537905693054, 0.4111420512199402, -0.4757101833820343, 0.06908143311738968, 0.013951287604868412, 0.12462680041790009, 0.24618034064769745, 0.018209418281912804, 0.07419758290052414, -0.2569899559020996, -0.33867910504341125, -0.06908717751502991, 0.009944177232682705, 0.3278670310974121, 0.12076111137866974, 0.1357964128255844, 0.05769190937280655, -0.014597201719880104, -0.3653219938278198, 0.0142490454018116, -0.27016857266426086, 0.13908979296684265, -0.024323057383298874, 0.1828630566596985, -0.4315897226333618, 0.01740969344973564, 0.008138226345181465, 0.14316518604755402, 0.1091618463397026, 0.1063818484544754, -0.12343867868185043, -0.2166474163532257, 0.029185473918914795, 0.12907245755195618, -0.13618825376033783, -0.27971988916397095, 0.2394425868988037, -0.20630769431591034, -0.0508660189807415, -0.3758655786514282, 0.14212407171726227, -0.13642063736915588, -0.03166060149669647, -0.4254383146762848, 0.2596435844898224, -0.1692042201757431, -0.30194076895713806, 0.31808575987815857, -0.4044686257839203, 0.1779976487159729, 0.060763489454984665, 0.1787564605474472, 0.004005656577646732, -0.1559254676103592, 0.07209115475416183, 0.20296700298786163, 0.164820596575737, 0.13967862725257874, 0.37973010540008545, -0.026211854070425034, -0.09722759574651718, -0.10738956183195114, 0.3312666118144989, 0.34939050674438477, 0.03802979364991188, -0.1387912780046463, 0.17579033970832825, 0.225635826587677, -0.32513684034347534, -0.28282174468040466, -0.1296367049217224, -0.25700584053993225, 0.24188895523548126, 0.00957879051566124, 0.20937618613243103, 0.16702260076999664, -0.07895610481500626, -0.20689719915390015, 0.0986437201499939, 0.5504122376441956, -0.14517514407634735, 0.6776700019836426, 0.32725200057029724, -0.19930431246757507, 0.27027979493141174, 0.002086108084768057, 0.34591424465179443, 0.3618886470794678, -0.11960265785455704, 0.5368244647979736, 0.23207542300224304, 0.24495378136634827, -0.13396789133548737, -0.3090498447418213, 0.13521084189414978, -0.0015169084072113037, -0.013643916696310043, 0.13919177651405334, 0.062129195779561996, 0.4490422010421753, 0.005227495450526476, 0.07710130512714386, -0.3266303539276123, -0.12674939632415771, 0.029044155031442642, -0.08261676132678986, -0.04338586702942848, -0.11773934215307236, -0.0748516321182251, 0.10686897486448288, -0.37246665358543396, -0.13124319911003113, 0.3648231327533722, 0.033845700323581696, 0.18120820820331573, -0.44460734724998474, 0.20354105532169342, -0.15691769123077393, 0.2180986851453781, -0.23983383178710938, 0.17476113140583038, 0.05008554831147194, -0.0667937621474266, 0.07139258831739426, 0.10168354958295822, 0.3679463267326355, 0.18524284660816193, -0.1066005676984787, -0.17309297621250153, -0.05663982778787613, -0.03850551322102547, -0.01390670333057642, -0.08697017282247543, 0.04141508415341377, -0.09860067814588547, 0.30176231265068054, 0.030814168974757195, -0.1557210236787796, -0.13875801861286163, -0.022855548188090324, -0.2242787778377533, -0.32634520530700684, -0.3453311324119568, -0.200698122382164, -0.3282327353954315, -0.12952499091625214, -0.1895684003829956, -0.253643274307251, 0.18352055549621582, 0.22793461382389069, -0.31333205103874207, -0.06755823642015457, 0.0006712687318213284, 0.08450046181678772, -0.5105263590812683, 0.6805172562599182, 0.4650321304798126, 0.5556741952896118, -0.32090651988983154, -0.116045281291008, -0.43565449118614197, 0.06292033940553665, -0.6595258116722107, -0.04978686198592186, 0.2942713797092438, 0.3931097984313965, 0.1516687422990799, 0.2153773158788681, 0.16460831463336945, 0.13592572510242462, -0.19167473912239075, 0.32111242413520813, -0.5305006504058838, -0.08095061779022217, -0.027506787329912186, 0.016977135092020035, -0.2176160216331482, -0.6412060856819153, 0.41454172134399414, -0.43625104427337646, 0.019619185477495193, -0.17953982949256897, -0.18055510520935059, 0.39918577671051025, 0.2217814028263092, 0.5155701637268066, 0.002280480694025755, 0.14304068684577942, 0.024066856130957603, -0.18110522627830505, -0.1920023411512375, -0.03763217106461525, 0.0861416608095169, 0.17627261579036713, -0.09164876490831375, 0.08704957365989685, 0.12938345968723297, -0.18072769045829773, 0.09440788626670837, 0.6064496636390686, -0.10337447375059128, 0.008501104079186916, 0.11393451690673828, -0.14100906252861023, -0.2004249393939972, 0.11038780957460403, -0.18586474657058716, -0.03389843925833702, -0.0985817164182663, -0.23733045160770416, -0.15887269377708435, -0.19998449087142944, 0.42357519268989563, -0.45981574058532715, 0.057306043803691864, -0.17736105620861053, 0.27229395508766174, 0.24975691735744476, 0.35054489970207214, -0.19628754258155823, 0.029731156304478645, 0.31973546743392944, 0.09321139007806778, -0.043147340416908264, 0.23114600777626038, 0.15142735838890076, 0.11452315747737885, -0.07493747025728226, 0.39183899760246277, -0.30365949869155884, -0.306639164686203, -0.22938846051692963, -0.35945501923561096 ]
https://github.com/huggingface/datasets/issues/1797
Connection error
Hi ! For future references let me add a link to our discussion here : https://github.com/huggingface/datasets/issues/759#issuecomment-770684693 Let me know if you manage to fix your proxy issue or if we can do something on our end to help you :)
Hi I am hitting to the error, help me and thanks. `train_data = datasets.load_dataset("xsum", split="train")` `ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/xsum/xsum.py`
40
Connection error Hi I am hitting to the error, help me and thanks. `train_data = datasets.load_dataset("xsum", split="train")` `ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/xsum/xsum.py` Hi ! For future references let me add a link to our discussion here : https://github.com/huggingface/datasets/issues/759#issuecomment-770684693 Let me know if you manage to fix your proxy issue or if we can do something on our end to help you :)
[ -0.26246872544288635, -0.47331228852272034, -0.10554558783769608, 0.17871515452861786, 0.5621633529663086, -0.10308846831321716, -0.017072392627596855, 0.22683145105838776, 0.16458819806575775, 0.22738099098205566, -0.3096108138561249, -0.00459864130243659, 0.20449601113796234, 0.4432287812232971, 0.20473919808864594, -0.2917327284812927, -0.044043540954589844, -0.08420487493276596, -0.455896258354187, 0.06750128418207169, 0.08230363577604294, 0.097551628947258, -0.10734379291534424, 0.031204471364617348, -0.3415585458278656, -0.07554494589567184, -0.12736602127552032, 0.22074651718139648, -0.26866069436073303, -0.10706012696027756, 0.4869902729988098, 0.13938744366168976, 0.02321057766675949, 0.5769346952438354, -0.00010756489064078778, 0.11494757980108261, 0.31648433208465576, 0.024244772270321846, -0.22399936616420746, -0.33114051818847656, -0.11807019263505936, -0.029636619612574577, 0.28681379556655884, -0.07439617067575455, -0.32458049058914185, 0.055189963430166245, 0.1663985252380371, -0.22520416975021362, 0.5972607731819153, 0.17803563177585602, 0.29329147934913635, 0.44544437527656555, 0.34174644947052, -0.17413674294948578, -0.008784391917288303, -0.23596101999282837, -0.0033455812372267246, 0.49215444922447205, 0.18152643740177155, 0.04718858748674393, 0.21328361332416534, 0.23372314870357513, 0.09236118942499161, -0.11591585725545883, 0.2341243326663971, -0.1357220709323883, 0.08226203918457031, -0.345951110124588, 0.034813810139894485, 0.3595280349254608, 0.5571645498275757, -0.19732555747032166, -0.2897785007953644, 0.046379514038562775, -0.04739499092102051, -0.15393869578838348, 0.22773313522338867, 0.07082375138998032, -0.07822472602128983, 0.17512470483779907, -0.22498486936092377, -0.2149580717086792, -0.27985984086990356, 0.2543141543865204, -0.06235920637845993, 0.023431770503520966, -0.2333236038684845, 0.12854528427124023, 0.06623898446559906, -0.1325378715991974, -0.12613022327423096, 0.15758533775806427, 0.027180396020412445, 0.17377763986587524, -0.4677264094352722, -0.026317669078707695, -0.1510642170906067, 0.23004065454006195, 0.21476112306118011, 0.14801713824272156, -0.10892851650714874, 0.17679962515830994, -0.16455616056919098, 0.2396334558725357, 0.23426948487758636, 0.09919030219316483, -0.09249137341976166, -0.080631785094738, 0.25832730531692505, 0.25955671072006226, -0.10940320789813995, -0.10852651298046112, -0.07847804576158524, -0.20594145357608795, -0.313749760389328, -0.0620306059718132, 0.23558908700942993, -0.26444321870803833, -0.20934273302555084, 0.07773890346288681, 0.150822713971138, -0.05324513837695122, 0.16761678457260132, 0.49416449666023254, -0.24397259950637817, 0.18430577218532562, 0.039841048419475555, 0.1510656327009201, -0.26802971959114075, -0.03731074929237366, -0.31293779611587524, 0.18063023686408997, -0.1964213252067566, -0.06155937537550926, -0.04424178972840309, -0.17723838984966278, 0.21607767045497894, -0.07855094224214554, 0.34342053532600403, -0.1640201359987259, 0.05471237003803253, -0.10449394583702087, -0.308564156293869, 0.26291126012802124, 0.16356445848941803, -0.028210658580064774, 0.2825823426246643, -0.06075141206383705, -0.034877095371484756, -0.2365303337574005, -0.3340732753276825, -0.37413495779037476, -0.05521384999155998, 0.2754742503166199, -0.056611768901348114, -0.00853322260081768, -0.33723145723342896, 0.01828535832464695, -0.03964754194021225, 0.12646059691905975, -0.18660195171833038, -0.06320726126432419, -0.11090206354856491, -0.12567353248596191, 0.410050630569458, 0.22694329917430878, -0.06826063990592957, -0.271158903837204, 0.335517019033432, -0.3717990219593048, 0.18908099830150604, 0.18692216277122498, -0.1268949806690216, -0.019446030259132385, -0.10619212687015533, 0.11001899838447571, 0.16555888950824738, -0.34521356225013733, -0.3684442937374115, 0.1967097669839859, -0.2838746905326843, -0.07346108555793762, 0.042903803288936615, 0.006850165314972401, 0.09077957272529602, 0.14557765424251556, 0.2033006101846695, 0.2076733410358429, -0.03184104338288307, -0.043677013367414474, -0.13373786211013794, -0.2656516432762146, 0.04276976361870766, 0.2702590823173523, 0.02277415804564953, 0.022779341787099838, 0.1320151686668396, -0.051548488438129425, 0.2843169569969177, 0.050296470522880554, 0.0927804708480835, 0.2592826187610626, 0.20459382236003876, 0.2270035743713379, 0.005305110011249781, -0.356169193983078, 0.02822987735271454, 0.09118567407131195, 0.04718390852212906, 0.2919326424598694, -0.0791226327419281, -0.11056272685527802, -0.3629342317581177, -0.15208208560943604, -0.18350441753864288, -0.06594337522983551, 0.15368977189064026, -0.21986952424049377, 0.1973177194595337, 0.23859521746635437, -0.1191699206829071, 0.2829243540763855, -0.17955808341503143, 0.24050003290176392, -0.46979302167892456, 0.4009588956832886, -0.19375072419643402, 0.0068570994772017, 0.08778931200504303, 0.0934884324669838, 0.11604497581720352, -0.2712268531322479, -0.12820447981357574, 0.4408641457557678, -0.2160942703485489, 0.31927061080932617, 0.38975217938423157, 0.04054705798625946, 0.25625717639923096, -0.4583203196525574, -0.04767193645238876, -0.09609971195459366, 0.06595942378044128, 0.05263281613588333, 0.21869787573814392, 0.20485657453536987, 0.05532136186957359, 0.1382388323545456, 0.13538727164268494, 0.1918753981590271, 0.32270070910453796, 0.06069670617580414, -0.08914517611265182, 0.0702667310833931, 0.2163231074810028, -0.1981063336133957, 0.03557424247264862, -0.19625338912010193, -0.22098903357982635, -0.0054450794123113155, 0.007768088951706886, -0.01907585747539997, -0.0522499717772007, 0.072091244161129, -0.10225759446620941, -0.0005344503442756832, 0.07293996214866638, 0.06906770169734955, 0.26635512709617615, 0.23992420732975006, -0.03783600777387619, 0.2792978584766388, 0.05800104886293411, -0.10217469930648804, 0.18550267815589905, 0.06843072175979614, 0.0449506901204586, -0.038211263716220856, -0.12117065489292145, -0.1182548925280571, -0.2871049642562866, -0.0011871017049998045, -0.22105668485164642, 0.17952130734920502, -0.24707479774951935, -0.02147941291332245, -0.09277623146772385, -0.31237757205963135, 0.06588884443044662, -0.1617259979248047, -0.27315738797187805, -0.3480953872203827, -0.05344446003437042, 0.1365807056427002, 0.03313402459025383, 0.19881276786327362, -0.34944581985473633, 0.10073655098676682, 0.15582484006881714, 0.016812609508633614, -0.11588608473539352, -0.1174209862947464, -0.12868571281433105, 0.15657810866832733, 0.009375113062560558, 0.06263300776481628, 0.397693932056427, -0.2893916666507721, -0.14186853170394897, -0.10585422068834305, -0.2319445163011551, 0.06298355758190155, -0.10839284956455231, 0.3044184446334839, 0.27781614661216736, 0.45648834109306335, -0.08641897886991501, -0.05203597992658615, 0.6056532859802246, -0.18026797473430634, -0.02755444124341011, -0.034137364476919174, 0.02279745414853096, -0.13315409421920776, 0.11097855865955353, -0.2991701066493988, -0.5104172825813293, -0.21315354108810425, 0.14051875472068787, -0.06936830282211304, 0.10471919178962708, 0.11607047915458679, 0.006844696588814259, 0.11729786545038223, -0.18098247051239014, 0.13722491264343262, -0.3094078600406647, -0.8145682215690613, 0.11365891247987747, -0.09336718916893005, -0.46475258469581604, 0.1229594349861145, 0.19538265466690063, 0.2569904625415802, 0.11918428540229797, -0.3289041519165039, -0.3935398459434509, -0.033408962190151215, 0.09856913983821869, 0.1863354593515396, 0.14093846082687378, 0.16608984768390656, -0.2663910686969757, -0.1748816817998886, -0.01195085234940052, 0.026690209284424782, -0.03687657415866852, -0.21505790948867798, 0.440650999546051, -0.008477719500660896, 0.4517732858657837, -0.016899367794394493, 0.4030780494213104, 0.20120610296726227, 0.046652860939502716, 0.4095165729522705, -0.30878451466560364, 0.22121286392211914, -0.035628773272037506, -0.603844165802002, 0.20429910719394684, -0.18979500234127045, 0.06183113902807236, 0.009604883380234241, 0.1967371106147766, 0.28064867854118347, -0.4943082630634308, -0.2354857623577118, -0.21834780275821686, -0.27155187726020813, -0.23543290793895721, -0.0054228962399065495, 0.16089437901973724, 0.040554165840148926, -0.14333318173885345, -0.024907652288675308, -0.06678368896245956, -0.01646125316619873, 0.5720891952514648, -0.06939831376075745, 0.11142153292894363, -0.6191429495811462, 0.04223361611366272, -0.6355404853820801, 0.3562629222869873, -0.14486278593540192, 0.1651327759027481, -0.2958744466304779, 0.0792202427983284, 0.09382274001836777, -0.015076509676873684, 0.7718524932861328, 0.0018991794204339385, -0.017930660396814346, -0.11051641404628754, -0.19070228934288025, -0.27595651149749756, 0.10915122926235199, -0.008984738029539585, 0.4083503782749176, 0.4919065833091736, 0.24737131595611572, -0.34707391262054443, -0.1145484447479248, 0.08728770166635513, -0.021056246012449265, -0.2440118044614792, -0.20949269831180573, -0.3656124174594879, -0.27867162227630615, -0.1774252951145172, 0.05640134960412979, -0.04372825101017952, 0.38155272603034973, 0.08103955537080765, -0.26562759280204773, 0.009109399281442165, -0.05428989231586456, 0.28260746598243713, 0.03852576017379761, 0.1447792649269104, 0.009442551992833614, 0.16918368637561798, 0.3119984269142151, 0.4208047389984131, 0.13194715976715088, 0.4850688576698303, -0.2108372151851654, -0.2717645764350891, -0.09845142811536789, 0.10138695687055588, 0.1231103390455246, 0.2183830291032791, -0.19412605464458466, 0.20236846804618835, 0.25474515557289124, 0.4601498246192932, -0.17067642509937286, 0.25226056575775146, 0.2773422300815582, 0.2792244851589203, -0.36411356925964355, -0.48653897643089294, 0.15550702810287476, -0.09173882752656937, 0.09430591762065887, 0.26316720247268677, 0.2964451014995575, -0.035594742745161057, -0.16623198986053467, -0.28429120779037476, 1.0478122234344482, -0.09567277878522873, 0.006707639433443546, 0.19443576037883759, 0.13708454370498657, 0.45075899362564087, -0.09219495952129364, 0.14174963533878326, -0.21442292630672455, -0.2949663996696472, -0.05417991057038307, -0.17437568306922913, 0.16805779933929443, -0.23622454702854156, -0.05374331399798393, 0.3484441339969635, -0.020350895822048187, 0.029256070032715797, -0.13200362026691437, 0.2688501477241516, -0.29671305418014526, 0.012033263221383095, -0.3091316819190979, 0.25536176562309265, -0.13430151343345642, 0.4604228138923645, -0.03021847829222679, -0.15188318490982056, -0.10354267060756683, -0.33614271879196167, -0.06361233443021774, 0.1191885769367218, -0.2714736759662628, 0.10958990454673767, 0.10174330323934555, -0.22246959805488586, 0.001753756427206099, 0.1140819564461708, 0.0938338115811348, 0.07617707550525665, -0.27168190479278564, 0.20655593276023865, -0.5015829205513, -0.1528688222169876, 0.12703850865364075, 0.11774783581495285, 0.14615800976753235, -0.20068347454071045, -0.49354276061058044, 0.11873529851436615, 0.12498293817043304, -0.19051140546798706, -0.051073264330625534, -0.13718503713607788, 0.0943697839975357, -0.4705699384212494, -0.19561365246772766, -0.31454288959503174, 0.03588855639100075, -0.1969577670097351, 0.20312947034835815, 0.1291755884885788, -0.2606887221336365, 0.09356789290904999, 0.20060104131698608, -0.11756855249404907, -0.06309360265731812, 0.5965721011161804, -0.09246218949556351, 0.005406813230365515, 0.4578074812889099, 0.16776348650455475, -0.1380162239074707, -0.18074965476989746, -0.07790890336036682, 0.22527265548706055, -0.26016199588775635, -0.04465216398239136, 0.044248972088098526, 0.13005870580673218, -0.20830778777599335, 0.03845715895295143, 0.22608177363872528, 0.009783059358596802, 0.27548643946647644, -0.5902450084686279, -0.42073071002960205, 0.16007813811302185, 0.06967975199222565, 0.17433735728263855, 0.2952533960342407, 0.35553422570228577, 0.1188814640045166, 0.08426327258348465, -0.3726804852485657, 0.014194461517035961, -0.2579604685306549, -0.03389231115579605, 0.3824019134044647, -0.3016338348388672, 0.35035431385040283, -0.10163546353578568, 0.22284607589244843, -0.06418803334236145, -0.32827919721603394, -0.2289402186870575, -0.09840884804725647, 0.0898084044456482, -0.018326211720705032, -0.3839886784553528, -0.0003590815467759967, -0.11927599459886551, -0.06859026849269867, 0.005819736979901791, 0.123921237885952, 0.1958063393831253, 0.02297544665634632, -0.1963888257741928, 0.07384613156318665, -0.03654109314084053, -0.0993712991476059, 0.1559780240058899, 0.10552171617746353, 0.25846627354621887, 0.03657412528991699, -0.08118247985839844, -0.10452263057231903, -0.24329914152622223, -0.2736446261405945, -0.06247358396649361, 0.25130361318588257, -0.12784604728221893, 0.2676117420196533, -0.16883037984371185, -0.07256481051445007, 0.14479586482048035, 0.5498501658439636, 0.30725887417793274, -0.27523893117904663, 0.3285317122936249, 0.15257416665554047, 0.28100359439849854, -0.24953192472457886, -0.008856864646077156, 0.2969360053539276, -0.04273433983325958, -0.08192667365074158, -0.1622232049703598, 0.07229430973529816, 0.19964498281478882, 0.024022866040468216, 0.044637951999902725, 0.5042858719825745, -0.023815855383872986, 0.17889104783535004, -0.035074010491371155, -0.05620376393198967, 0.005012414883822203, 0.15214817225933075, 0.232099249958992, -0.058586496859788895, 0.3224658668041229, -0.30493849515914917, 0.3366067111492157, -0.29978713393211365, 0.25083738565444946, -0.1354232281446457, -0.30395522713661194, -0.1447145938873291, 0.13806170225143433, -0.26596102118492126, -0.10883799940347672, -0.25591737031936646, 0.7806463837623596, -0.33340170979499817, -0.013906282372772694, -0.2232394963502884, 0.35348212718963623, -0.0758548155426979, -0.3060187101364136, -0.04913976788520813, -0.21128450334072113, -0.0329260379076004, -0.19813382625579834, 0.13099609315395355, -0.2458427995443344, 0.011170794256031513, 0.034395914524793625, -0.08026932924985886, -0.581334114074707, -0.17025841772556305, 0.19768904149532318, 0.14569692313671112, -0.038790423423051834, 0.23392583429813385, 0.2654067575931549, 0.12019509077072144, 0.07109849900007248, 0.33459439873695374, 0.46034738421440125, 0.22856581211090088, 0.12125837802886963, 0.10230322927236557, 0.14401757717132568, -0.043880630284547806, 0.016588950529694557, 0.05831826105713844, 0.15137992799282074, 0.026811841875314713, 0.27945902943611145, 0.26096588373184204, -0.20581069588661194, 0.025284960865974426, -0.09166102111339569, 0.36474841833114624, -0.2482299655675888, 0.3037292957305908, -0.16168871521949768, 0.0187712162733078, -0.4195708632469177, 0.03843989223241806, -0.7279613018035889, 0.3941762447357178, 0.1401260793209076, -0.08906708657741547, 0.16463585197925568, -0.3102862238883972, 0.10917332023382187, -0.1697922646999359, 0.5486783981323242, 0.2740626335144043, 0.26216989755630493, -0.23711338639259338, -0.18582463264465332, -0.5177454948425293, 0.1752023845911026, -0.04752383753657341, -0.2880714535713196, -0.09666662663221359, 0.046646930277347565, -0.11427626758813858, 0.0965363010764122, 0.12369858473539352, 0.015023677609860897, 0.18972176313400269, -0.05595579370856285, -0.18486587703227997, 0.05355303734540939, -0.31348761916160583, 0.18692182004451752, 0.12494690716266632, -0.1335354447364807, 0.23889215290546417, 0.14444600045681, 0.06276950985193253, -0.03733226656913757, 0.21292300522327423, -0.26743897795677185, -0.2997756004333496, 0.24676428735256195, 0.1838712990283966, 0.5290332436561584, -0.026621492579579353, 0.06923964619636536, -0.10849346965551376, -0.4502311944961548, -0.2254645973443985, 0.09921392798423767, 0.14850647747516632, 0.13362401723861694, -0.010290203616023064, -0.2486860305070877, -0.2791527509689331, 0.43039625883102417, -0.05197018012404442, -0.3362526595592499, -0.039417609572410583, -0.06305248290300369, 0.1515263170003891, -0.007633174769580364, 0.15659670531749725, 0.315359890460968, -0.022659115493297577, 0.08604668080806732, -0.09898173809051514, -0.27005743980407715, 0.6556451916694641, -0.23791775107383728, -0.013021695427596569, -0.2519053518772125, 0.21086756885051727, 0.3994062840938568, -0.12138934433460236, -0.44447189569473267, 0.2536522448062897, 0.23809322714805603, 0.08833767473697662, -0.09615141153335571, 0.4788859784603119, -0.03215080499649048, 0.18700122833251953, 0.024374812841415405, 0.07402431219816208, 0.014395114965736866, -0.126823291182518, 0.19348715245723724, -0.07435160130262375 ]
https://github.com/huggingface/datasets/issues/1796
Filter on dataset too much slowww
When I use the filter on the arrow table directly, it works like butter. But I can't find a way to update the table in `Dataset` object. ``` ds_table = dataset.data.filter(mask=dataset['flag']) ```
I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ```
32
Filter on dataset too much slowww I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ``` When I use the filter on the arrow table directly, it works like butter. But I can't find a way to update the table in `Dataset` object. ``` ds_table = dataset.data.filter(mask=dataset['flag']) ```
[ -0.27120956778526306, -0.059731487184762955, -0.11476338654756546, -0.27794766426086426, -0.17065098881721497, -0.2504287660121918, 0.17076200246810913, 0.2090243548154831, 0.2598767578601837, -0.1163967177271843, -0.08618394285440445, 0.2958264648914337, -0.05571434274315834, 0.4060817360877991, -0.18042616546154022, 0.24535806477069855, 0.1307910531759262, 0.29705721139907837, 0.19601234793663025, 0.03335672989487648, -0.022402998059988022, -0.18826787173748016, -0.2929411828517914, -0.07038755714893341, -0.009626353159546852, -0.2621651589870453, 0.18598641455173492, -0.30865171551704407, -0.2785182595252991, -0.21260297298431396, -0.017391249537467957, 0.5965905785560608, -0.018277129158377647, 0.5038166046142578, -0.00013071837020106614, -0.2338385283946991, 0.24395355582237244, 0.07246013730764389, 0.08311928808689117, 0.14980773627758026, -0.21130119264125824, -0.12860320508480072, -0.014037924818694592, -0.0004987192223779857, -0.1250074952840805, 0.0027304079849272966, -0.33180010318756104, -0.22165177762508392, 0.34997063875198364, 0.09446918964385986, -0.027774903923273087, -0.14122416079044342, -0.25493425130844116, 0.3521137833595276, 0.2052823007106781, 0.3541741967201233, 0.1411340832710266, -0.15136916935443878, 0.5533314943313599, -0.3358131945133209, 0.05394623428583145, 0.6059802770614624, -0.41793233156204224, -0.13132895529270172, 0.2100646197795868, -0.28986021876335144, 0.05838354676961899, -0.15155750513076782, 0.2810194194316864, 0.08483459800481796, 0.13357007503509521, -0.16201600432395935, -0.29869115352630615, -0.23227345943450928, -0.08496474474668503, -0.4459288418292999, -0.014386873692274094, -0.09340403974056244, -0.25794509053230286, 0.03457961603999138, -0.5128163695335388, -0.34843695163726807, 0.08615133911371231, 0.1266559213399887, -0.326144278049469, 0.36001598834991455, -0.0063065108843147755, 0.20965738594532013, 0.13119739294052124, -0.2452675849199295, 0.06995003670454025, -0.21223951876163483, 0.19134141504764557, 0.3051823377609253, -0.6571983695030212, -0.10162471979856491, -0.09628740698099136, 0.16054286062717438, -0.020917655900120735, 0.06033235788345337, -0.18478484451770782, 0.503932535648346, 0.21575938165187836, -0.007275463547557592, 0.00034259542007930577, 0.25037670135498047, 0.12270490825176239, 0.4484066665172577, 0.2802668511867523, -0.1453336626291275, -0.2991344630718231, 0.1851133555173874, -0.0733838602900505, 0.048797786235809326, 0.08767130225896835, -0.05717804282903671, -0.3887728154659271, -0.12758302688598633, -0.31372731924057007, -0.053389616310596466, -0.29738563299179077, -0.059796757996082306, 0.64446622133255, 0.5041772127151489, -0.11330616474151611, -0.06504374742507935, -0.07329653948545456, -0.2993188500404358, -0.12936298549175262, 0.01707853563129902, 0.03234119713306427, -0.1580839455127716, -0.10481151193380356, 0.2392273247241974, 0.03781329467892647, -0.23455169796943665, -0.19114689528942108, -0.03247730806469917, -0.16869521141052246, 0.1806270182132721, 0.07120855897665024, -0.3621065318584442, 0.2372616082429886, 0.413911908864975, -0.26856961846351624, 0.300767719745636, 0.08421175181865692, 0.05566881224513054, -0.1265522986650467, 0.17752742767333984, -0.3156163990497589, -0.33340999484062195, 0.22141031920909882, -0.01671822927892208, -0.0847424864768982, 0.13686951994895935, -0.18058164417743683, 0.4090786576271057, 0.2862339913845062, -0.2051091194152832, -0.1643703430891037, -0.17687253654003143, -0.5952669978141785, -0.16068464517593384, 0.26338449120521545, 0.22237755358219147, -0.5520026683807373, 0.052366070449352264, -0.32662898302078247, 0.26146557927131653, 0.4948311448097229, 0.3584706783294678, -0.06717204302549362, 0.21712686121463776, 0.1002381443977356, -0.07036121189594269, 0.2984164357185364, -0.07853972166776657, -0.4758490324020386, 0.5441423654556274, -0.06141577288508415, 0.012075962498784065, 0.1328442543745041, 0.155941903591156, 0.5201335549354553, -0.24423521757125854, 0.39756977558135986, 0.3375466465950012, -0.19979140162467957, 0.07351871579885483, 0.0002534553350415081, -0.009158587083220482, 0.22592143714427948, 0.14885924756526947, -0.34310686588287354, -0.022170260548591614, -0.03213164210319519, -0.42664849758148193, 0.15245933830738068, 0.13803762197494507, -0.013880501501262188, 0.20821358263492584, 0.2469467669725418, 0.14686565101146698, 0.011497735045850277, -0.11738333106040955, -0.0029027657583355904, -0.08567939698696136, 0.08954654633998871, -0.20416201651096344, -0.2678198218345642, -0.2276492416858673, -0.26812368631362915, 0.12292525917291641, 0.07631702721118927, 0.2027757614850998, -0.14173389971256256, -0.17328062653541565, 0.19183553755283356, -0.2997705042362213, -0.02454226091504097, 0.4423806071281433, -0.11993903666734695, -0.07667169719934464, 0.18767593801021576, 0.004159267526119947, 0.37736815214157104, -0.14786559343338013, 0.15586291253566742, -0.06381663680076599, 0.2566298544406891, 0.05979111045598984, -0.05122177675366402, 0.22286774218082428, 0.48537594079971313, -0.29093503952026367, -0.3249584436416626, 0.19117166101932526, 0.09072630107402802, 0.3223307132720947, 0.15946951508522034, -0.029994172975420952, 0.21721291542053223, -0.066963329911232, -0.1975257247686386, 0.5968003869056702, -0.08427248150110245, 0.4515281915664673, 0.09617096930742264, -0.05346515029668808, 0.355180561542511, 0.25798264145851135, -0.1379958987236023, -0.22400407493114471, 0.2483917772769928, -0.01685873419046402, 0.1414320021867752, 0.19167999923229218, -0.10414528101682663, 0.3914256691932678, -0.0069525414146482944, -0.16840729117393494, -0.05787448585033417, 0.2389456331729889, 0.1703026443719864, 0.030758073553442955, 0.18902698159217834, 0.005110337398946285, 0.11467722803354263, 0.18449707329273224, -0.1427408754825592, -0.09829258173704147, 0.08159404247999191, -0.05475807562470436, 0.2547179162502289, 0.15610183775424957, 0.3075133264064789, -0.25429749488830566, 0.3530651032924652, -0.11373282968997955, -0.1732020229101181, -0.17764943838119507, 0.20347222685813904, 0.333827406167984, -0.216735377907753, 0.06997537612915039, -0.3757011294364929, -0.5355600714683533, 0.2271120399236679, -0.11214946210384369, 0.22655904293060303, 0.08801303803920746, 0.22307777404785156, 0.07832901924848557, 0.1746557056903839, 0.285586953163147, 0.1995004415512085, 0.159371480345726, 0.16612689197063446, -0.4469206631183624, -0.1344800591468811, -0.15969312191009521, -0.07135327905416489, -0.1074967235326767, 0.2684340178966522, 0.39475691318511963, 0.37359619140625, 0.2810971438884735, 0.04898623749613762, -0.18613532185554504, -0.5580238103866577, -0.21566489338874817, -0.015102100558578968, 0.07447345554828644, 0.21748927235603333, 0.13042011857032776, -0.39051103591918945, -0.05019419640302658, 0.036112185567617416, -0.13265779614448547, -0.18093550205230713, 0.09681254625320435, -0.2643185257911682, 0.07124198973178864, 0.13258080184459686, 0.11713754385709763, -0.23426532745361328, -0.05337972939014435, -0.14802983403205872, -0.09017080813646317, 0.2890074849128723, -0.23788438737392426, 0.03847109153866768, -0.309599369764328, -0.29004842042922974, -0.07459554821252823, 0.06270197778940201, -0.1542523205280304, 0.2361343502998352, 0.2845223546028137, -0.010331633500754833, -0.1767279952764511, -0.054551661014556885, -0.29221558570861816, 0.5495012998580933, -0.2610016167163849, 0.1806713044643402, -0.4031963646411896, -0.28622227907180786, 0.192729189991951, 0.01846904121339321, 0.3718923032283783, -0.11541640758514404, 0.13654276728630066, -0.0016424907371401787, -0.4650841951370239, -0.16355359554290771, -0.17619523406028748, 0.09633548557758331, 0.21246932446956635, 0.882746696472168, 0.09401553869247437, 0.3070508539676666, 0.06283452361822128, -0.0016839097952470183, 0.07015278935432434, 0.24280929565429688, -0.11538069695234299, -0.2179843783378601, -0.33677196502685547, -0.2030334174633026, 0.1458660215139389, 0.06425279378890991, 0.0387093760073185, 0.13615067303180695, -0.14358623325824738, -0.033963892608881, -0.2271164208650589, -0.06579675525426865, -0.13549423217773438, 0.0942659005522728, -0.22036513686180115, 0.2903561592102051, 0.3504478633403778, -0.0555744469165802, -0.542881429195404, -0.3475465774536133, -0.25447922945022583, 0.026342075318098068, 0.13115431368350983, -0.18415467441082, -0.6282453536987305, -0.3186340630054474, -0.3433014154434204, 0.43915989995002747, 0.18656806647777557, 0.44123202562332153, 0.17403626441955566, 0.07234496623277664, 0.19968661665916443, -0.09930110722780228, 0.7873361110687256, -0.17953616380691528, -0.00008804020035313442, 0.053254060447216034, -0.538845419883728, -0.41954219341278076, 0.0940789207816124, -0.010187279433012009, 0.24814662337303162, 0.2991238236427307, 0.3818724751472473, -0.2770795524120331, -0.3589828312397003, -0.0407961905002594, 0.12422226369380951, -0.10107170045375824, -0.19607047736644745, -0.23694562911987305, -0.21990090608596802, -0.3587265610694885, 0.2803173363208771, -0.04940639063715935, 0.21888650953769684, 0.3615349531173706, -0.31123119592666626, -0.0476938933134079, -0.1954777091741562, 0.18968315422534943, 0.049327097833156586, 0.05512162670493126, 0.31213265657424927, 0.3041159510612488, -0.07975737750530243, 0.19501984119415283, 0.05656452849507332, -0.1036907285451889, -0.11272865533828735, 0.02707393653690815, -0.00918594654649496, 0.19560785591602325, 0.3815273344516754, 0.526314377784729, -0.12463696300983429, 0.5532619953155518, 0.06299231201410294, 0.4241705536842346, 0.06780704855918884, 0.21347537636756897, -0.18093723058700562, 0.17483654618263245, -0.5886355638504028, -0.7435210943222046, 0.1466279923915863, 0.400486558675766, -0.3319711983203888, 0.5015214681625366, 0.15101344883441925, -0.06407473981380463, 0.46432697772979736, 0.07594922184944153, 0.8864943385124207, -0.3235602378845215, -0.1276150792837143, -0.052823346108198166, 0.06507736444473267, 0.35992854833602905, -0.16485697031021118, 0.11933158338069916, 0.026744350790977478, -0.3669937551021576, 0.06097903102636337, -0.0934692993760109, 0.07105755060911179, 0.08029662817716599, 0.06695251166820526, 0.3530910909175873, -0.12661123275756836, 0.060288041830062866, 0.060692623257637024, 0.25522178411483765, 0.21888886392116547, -0.3514135479927063, -0.24491934478282928, -0.07715220004320145, 0.17353332042694092, -0.14335496723651886, 0.04479392617940903, 0.04454873874783516, 0.23991598188877106, -0.30186668038368225, -0.21136118471622467, -0.5126228332519531, -0.40525302290916443, -0.008172052912414074, -0.18057751655578613, -0.17667850852012634, 0.10861794650554657, -0.2058483362197876, -0.24099858105182648, 0.4316937029361725, 0.15694130957126617, 0.224977046251297, 0.2834925949573517, 0.31691938638687134, -0.034967854619026184, -0.36785128712654114, 0.2215467095375061, -0.13244035840034485, -0.18027588725090027, 0.013107129372656345, -0.031169289723038673, -0.5412841439247131, 0.04195187985897064, 0.17445918917655945, 0.4846724569797516, 0.08538734912872314, -0.17893165349960327, 0.04059821739792824, 0.0019725020974874496, -0.23040786385536194, -0.0539916455745697, 0.06558403372764587, 0.09184297919273376, 0.6818695664405823, 0.010931151919066906, -0.34666603803634644, -0.08234122395515442, 0.22443194687366486, 0.24883225560188293, -0.10499066859483719, 0.3481360673904419, 0.17150074243545532, -0.3952926993370056, -0.11700469255447388, 0.03365813568234444, 0.25063323974609375, 0.16488568484783173, 0.14141857624053955, -0.13451261818408966, -0.23058371245861053, 0.44249099493026733, 0.017960937693715096, -0.15587201714515686, 0.016346214339137077, -0.11487715691328049, -0.602813184261322, -0.1591874212026596, 0.08877882361412048, -0.03394550085067749, -0.28368985652923584, 0.07925014197826385, 0.1788771152496338, -0.2286401242017746, 0.4104113280773163, -0.14298854768276215, -0.10344543308019638, 0.014917418360710144, 0.19524624943733215, -0.2978607714176178, 0.3553292155265808, -0.10923955589532852, -0.025491157546639442, -0.05843549966812134, 0.08182840794324875, 0.015834545716643333, -0.10956893861293793, 0.15820062160491943, 0.19926686584949493, -0.18213817477226257, -0.14827750623226166, 0.11935745179653168, -0.3192935287952423, -0.2785269320011139, -0.16671127080917358, 0.08639784902334213, -0.0945427194237709, 0.01353880949318409, -0.6226948499679565, 0.07964585721492767, -0.30687934160232544, -0.03085590898990631, 0.1479797065258026, -0.06898391991853714, -0.2993617653846741, 0.03934687376022339, 0.18080928921699524, 0.2547488212585449, -0.07014914602041245, 0.03057018294930458, -0.042586784809827805, 0.008794751949608326, -0.13733497262001038, 0.16092228889465332, -0.01313988957554102, -0.03617347776889801, 0.1334581971168518, 0.13396485149860382, 0.3425036370754242, 0.15428321063518524, -0.21892784535884857, 0.46089476346969604, -0.08926838636398315, -0.3246292769908905, -0.16297121345996857, 0.18688079714775085, 0.1323438584804535, 0.1914498209953308, 0.15895335376262665, -0.14329411089420319, 0.40145957469940186, -0.1859280914068222, 0.18975786864757538, 0.24085570871829987, 0.033524371683597565, -0.18403372168540955, 0.3610523045063019, 0.39693424105644226, -0.11602796614170074, 0.4024523198604584, 0.39455726742744446, -0.22622744739055634, 0.614264965057373, 0.22249329090118408, 0.4195980429649353, 0.46346166729927063, 0.44516441226005554, -0.30345243215560913, -0.33808213472366333, -0.20565541088581085, 0.6224386692047119, -0.1491275578737259, -0.24016427993774414, 0.10600002855062485, -0.20504656434059143, 0.40297481417655945, -0.44085612893104553, 0.10212195664644241, 0.34917503595352173, 0.24461717903614044, -0.12347465008497238, -0.40454843640327454, 0.016820063814520836, 0.17254813015460968, -0.036531101912260056, -0.012871047481894493, -0.0016640924150124192, 0.2551489770412445, 0.01115097850561142, 0.26199352741241455, -0.37601757049560547, -0.23304998874664307, -0.11588967591524124, 0.2028699666261673, 0.023004986345767975, 0.1552753746509552, -0.25271934270858765, 0.329151451587677, 0.3357098400592804, -0.3138517439365387, 0.17284786701202393, 0.42401114106178284, -0.02686844766139984, 0.15708470344543457, -0.30432575941085815, -0.19738756120204926, -0.015256145969033241, 0.3792418837547302, 0.1525566428899765, 0.1451670080423355, -0.06930767744779587, -0.10828816145658493, -0.0344025157392025, -0.025301970541477203, 0.2767593562602997, 0.19549404084682465, 0.08478669077157974, 0.33111676573753357, 0.20295588672161102, 0.014270623214542866, -0.0384325310587883, 0.05764313042163849, -0.11508398503065109, 0.2869716286659241, 0.2904748022556305, -0.3353184461593628, 0.16866110265254974, 0.12979820370674133, -0.005709905177354813, -0.2572619318962097, 0.1182309165596962, -0.07139582186937332, 0.3901488482952118, -0.20781083405017853, -0.33513036370277405, -0.4416579604148865, -0.3361501097679138, -0.34149229526519775, -0.06131987273693085, 0.1446581780910492, 0.08709803223609924, 0.25984182953834534, 0.041154466569423676, 0.14913615584373474, 0.03925882279872894, -0.24253438413143158, 0.06313153356313705, -0.18080554902553558, 0.3376832604408264, -0.16518241167068481, 0.3906687796115875, -0.07435429096221924, -0.3516145944595337, 0.3682202994823456, -0.21278272569179535, -0.05784865468740463, -0.04179218038916588, 0.08142551779747009, 0.20412439107894897, 0.14511922001838684, 0.04326445609331131, -0.014580678194761276, 0.3600331246852875, 0.15218624472618103, 0.5289035439491272, -0.04601525515317917, 0.07234219461679459, -0.32643207907676697, 0.2590901553630829, 0.2396053820848465, 0.11812865734100342, -0.03280338644981384, 0.04608211666345596, 0.16154631972312927, 0.09815865755081177, -0.13290680944919586, -0.1898033171892166, -0.07656750082969666, 0.15682047605514526, 0.19637897610664368, 0.30227696895599365, -0.3197208642959595, 0.10804631561040878, 0.05589006096124649, 0.046992335468530655, -0.3058779537677765, -0.06626399606466293, 0.5844325423240662, -0.5551494359970093, -0.2744624614715576, -0.33114489912986755, 0.22667072713375092, 0.4001954197883606, 0.076300248503685, 0.05329383164644241, -0.10948256403207779, 0.10795609652996063, -0.11847684532403946, -0.31289684772491455, 0.30406078696250916, 0.019384553655982018, 0.07728292047977448, -0.21032677590847015, -0.13495907187461853, 0.01833624392747879, -0.17126604914665222, -0.44926339387893677, -0.18770389258861542 ]
https://github.com/huggingface/datasets/issues/1796
Filter on dataset too much slowww
Hi ! Currently the filter method reads the dataset batch by batch to write a new, filtered, arrow file on disk. Therefore all the reading + writing can take some time. Using a mask directly on the arrow table doesn't do any read or write operation therefore it's way quicker. Replacing the old table by the new one should do the job: ```python dataset._data = dataset._data.filter(...) ``` Note: this is a **workaround** and in general users shouldn't have to do that. In particular if you did some `shuffle` or `select` before that then it would not work correctly since the indices mapping (index from `__getitem__` -> index in the table) would not be valid anymore. But if you haven't done any `shuffle`, `select`, `shard`, `train_test_split` etc. then it should work. Ideally it would be awesome to update the filter function to allow masking this way ! If you would like to give it a shot I will be happy to help :)
I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ```
162
Filter on dataset too much slowww I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ``` Hi ! Currently the filter method reads the dataset batch by batch to write a new, filtered, arrow file on disk. Therefore all the reading + writing can take some time. Using a mask directly on the arrow table doesn't do any read or write operation therefore it's way quicker. Replacing the old table by the new one should do the job: ```python dataset._data = dataset._data.filter(...) ``` Note: this is a **workaround** and in general users shouldn't have to do that. In particular if you did some `shuffle` or `select` before that then it would not work correctly since the indices mapping (index from `__getitem__` -> index in the table) would not be valid anymore. But if you haven't done any `shuffle`, `select`, `shard`, `train_test_split` etc. then it should work. Ideally it would be awesome to update the filter function to allow masking this way ! If you would like to give it a shot I will be happy to help :)
[ -0.25801554322242737, -0.1224425658583641, -0.08642493188381195, -0.2601464092731476, -0.1652664989233017, -0.24569988250732422, 0.2593751847743988, 0.26136839389801025, 0.3136882781982422, -0.15321603417396545, 0.006636256817728281, 0.22178927063941956, -0.11383531987667084, 0.3481481671333313, -0.2551465928554535, 0.20768967270851135, 0.07264889031648636, 0.22438189387321472, 0.38680338859558105, 0.048585109412670135, -0.08172381669282913, -0.14383599162101746, -0.27555084228515625, -0.057453762739896774, -0.019712550565600395, -0.3511653244495392, 0.273827463388443, -0.18856628239154816, -0.28876447677612305, -0.23911157250404358, -0.023093197494745255, 0.45420414209365845, -0.011225405149161816, 0.4893326759338379, -0.00012605979281943291, -0.3033391237258911, 0.2190796285867691, 0.0967453271150589, 0.09690837562084198, 0.13117028772830963, -0.15553736686706543, -0.03420978784561157, -0.0015720439841970801, -0.07323572039604187, -0.13809849321842194, -0.027773668989539146, -0.29388394951820374, -0.3395695686340332, 0.4358009397983551, 0.07627157121896744, -0.021218035370111465, -0.16409051418304443, -0.34362223744392395, 0.39065319299697876, 0.1486470252275467, 0.3552730083465576, 0.1600954830646515, -0.13553166389465332, 0.664303183555603, -0.3910462260246277, -0.05942273885011673, 0.5160922408103943, -0.5235151052474976, -0.09357412904500961, 0.24680140614509583, -0.28978660702705383, 0.14732424914836884, -0.2044602632522583, 0.22513173520565033, 0.14347387850284576, 0.04143473133444786, -0.13050393760204315, -0.23873287439346313, -0.31142657995224, -0.0841020792722702, -0.4326249361038208, 0.058440618216991425, 0.0501069612801075, -0.3467145562171936, 0.0126457205042243, -0.509016215801239, -0.24384616315364838, 0.09583821892738342, 0.12114976346492767, -0.34761831164360046, 0.32074204087257385, 0.0449046716094017, 0.14879634976387024, 0.24621747434139252, -0.1956786960363388, 0.08925972878932953, -0.28593453764915466, 0.2442043274641037, 0.33717820048332214, -0.5745360255241394, -0.14183172583580017, -0.138106569647789, 0.15763039886951447, -0.030054830014705658, 0.08240483701229095, -0.25319498777389526, 0.45432373881340027, 0.23016685247421265, -0.033231403678655624, -0.017899367958307266, 0.20665542781352997, 0.0794801190495491, 0.5078431367874146, 0.25144603848457336, -0.19509334862232208, -0.19720228016376495, 0.2502978444099426, -0.030429482460021973, 0.06417892873287201, 0.10519370436668396, -0.08083252608776093, -0.46262383460998535, -0.13824285566806793, -0.24188341200351715, -0.09404030442237854, -0.3737146854400635, -0.09426498413085938, 0.634634256362915, 0.44186723232269287, -0.07835846394300461, -0.1341276317834854, -0.050900038331747055, -0.2795560956001282, -0.1667901575565338, 0.08388707041740417, 0.04138869792222977, -0.11992483586072922, -0.06500870734453201, 0.21818412840366364, 0.09966709464788437, -0.29189741611480713, -0.2306293398141861, 0.04940057173371315, -0.18718479573726654, 0.19880570471286774, 0.22592034935951233, -0.3643771708011627, 0.22834673523902893, 0.34304994344711304, -0.30888035893440247, 0.3217526972293854, 0.14757898449897766, 0.021217506378889084, -0.14084266126155853, 0.187208354473114, -0.34728482365608215, -0.30650031566619873, 0.22150200605392456, 0.0037911972030997276, -0.15342582762241364, 0.16525422036647797, -0.10675334930419922, 0.31958410143852234, 0.2384781390428543, -0.1845523864030838, -0.20997031033039093, -0.22961761057376862, -0.5389140844345093, -0.19349195063114166, 0.23261620104312897, 0.13221494853496552, -0.5897618532180786, 0.017147021368145943, -0.3143182694911957, 0.2596703767776489, 0.5231374502182007, 0.4517055153846741, -0.0743229016661644, 0.2232610583305359, -0.014317598193883896, 0.012673906981945038, 0.2559312880039215, -0.08512695133686066, -0.4165559709072113, 0.6068707704544067, -0.05480825528502464, 0.09065470099449158, 0.17876999080181122, 0.15751464664936066, 0.5775735974311829, -0.2714681625366211, 0.48160815238952637, 0.3299991488456726, -0.21298189461231232, 0.08794642239809036, -0.03001212142407894, -0.1323315054178238, 0.1419951170682907, 0.18502120673656464, -0.3507847487926483, -0.12070657312870026, -0.04373810067772865, -0.45079872012138367, 0.2112186849117279, 0.0466439425945282, 0.0334000401198864, 0.137299045920372, 0.26284247636795044, 0.06773734092712402, 0.002427083905786276, -0.13197849690914154, 0.04370439797639847, -0.007964191026985645, 0.02622489258646965, -0.1991901844739914, -0.2843851149082184, -0.21727454662322998, -0.20583385229110718, -0.010290713980793953, 0.050218790769577026, 0.2281266152858734, -0.1286114901304245, -0.20745611190795898, 0.1340395212173462, -0.23196382820606232, -0.018115369603037834, 0.437313973903656, -0.11529508978128433, -0.04127935692667961, 0.14159107208251953, -0.06060737743973732, 0.39791303873062134, -0.0976245179772377, 0.1006912887096405, -0.031405914574861526, 0.30018460750579834, 0.040054801851511, 0.04546983540058136, 0.16110272705554962, 0.4899820387363434, -0.2906465530395508, -0.2897319793701172, 0.17464864253997803, 0.11208648979663849, 0.3210209012031555, 0.15853385627269745, 0.03429695963859558, 0.18428032100200653, -0.09228832274675369, -0.2971898913383484, 0.5812559127807617, -0.10305939614772797, 0.47832435369491577, 0.10448166728019714, -0.039496928453445435, 0.31940752267837524, 0.20930175483226776, -0.12256332486867905, -0.199567973613739, 0.4308715760707855, -0.03143499791622162, 0.10057566314935684, 0.2806026041507721, -0.027756989002227783, 0.3283548653125763, -0.012749271467328072, -0.261440247297287, -0.054648227989673615, 0.24507424235343933, 0.1661774069070816, 0.09886149317026138, 0.17660440504550934, 0.08613564819097519, 0.05341203138232231, 0.22622999548912048, -0.16107182204723358, -0.16259486973285675, 0.004000826273113489, -0.06238482892513275, 0.28744345903396606, 0.12244191765785217, 0.25217536091804504, -0.2539427578449249, 0.2011266052722931, -0.1105843037366867, -0.116607166826725, -0.29186931252479553, 0.19453006982803345, 0.3008255064487457, -0.23019090294837952, 0.08147382736206055, -0.3432754576206207, -0.5400550365447998, 0.21443921327590942, -0.0921161025762558, 0.2033657282590866, 0.008994621224701405, 0.17775796353816986, 0.06313571333885193, 0.18228857219219208, 0.14558519423007965, 0.08921908587217331, 0.22768564522266388, 0.2094937115907669, -0.5467379093170166, -0.14838483929634094, -0.21287505328655243, -0.061617329716682434, -0.06493856757879257, 0.3395974338054657, 0.35244786739349365, 0.3918854892253876, 0.3119640052318573, -0.10203821957111359, -0.15463417768478394, -0.4452131986618042, -0.15850791335105896, -0.028688983991742134, 0.11046284437179565, 0.1032709926366806, 0.1338425725698471, -0.38729315996170044, -0.15450815856456757, -0.014791921712458134, -0.025487374514341354, -0.17846368253231049, 0.12895497679710388, -0.1389281451702118, 0.11057943850755692, 0.09654192626476288, 0.15773479640483856, -0.2108280062675476, -0.06578676402568817, -0.1922357678413391, -0.08032975345849991, 0.30346545577049255, -0.18913714587688446, -0.09176088869571686, -0.2278674840927124, -0.30645298957824707, -0.09877747297286987, 0.09396626055240631, -0.1424902230501175, 0.27684760093688965, 0.30387595295906067, -0.03706858679652214, -0.09382801502943039, -0.1172880008816719, -0.3516663610935211, 0.6226109266281128, -0.28738927841186523, 0.17801353335380554, -0.41161397099494934, -0.22540931403636932, 0.15426424145698547, 0.032484062016010284, 0.2691560983657837, -0.07421551644802094, 0.13767127692699432, 0.027318768203258514, -0.29384922981262207, -0.18134647607803345, -0.19161799550056458, 0.21256324648857117, 0.2483045905828476, 0.7651828527450562, 0.12782911956310272, 0.3413035273551941, 0.19745668768882751, 0.15694114565849304, -0.019516490399837494, 0.292441725730896, -0.1555922031402588, -0.18012379109859467, -0.34593918919563293, -0.15391956269741058, 0.1461716741323471, 0.07256552577018738, 0.03395469859242439, 0.15576672554016113, -0.16218821704387665, -0.03852716460824013, -0.140812948346138, -0.047446198761463165, -0.22001659870147705, 0.15658777952194214, -0.21201887726783752, 0.29280805587768555, 0.25508132576942444, -0.001003003679215908, -0.5004394054412842, -0.3563653528690338, -0.23404750227928162, 0.024573657661676407, 0.1940556913614273, -0.18265610933303833, -0.4920963943004608, -0.1426585614681244, -0.4179574251174927, 0.34048929810523987, 0.19945460557937622, 0.28224197030067444, 0.08681603521108627, 0.036566365510225296, 0.11486425250768661, 0.0004400709876790643, 0.8182598948478699, -0.14719834923744202, 0.015400219708681107, 0.1322246640920639, -0.4685985743999481, -0.46027788519859314, 0.13289791345596313, -0.07987292110919952, 0.16533593833446503, 0.29584458470344543, 0.39029452204704285, -0.28473982214927673, -0.3065444827079773, -0.06258191913366318, 0.1826973706483841, -0.0667349249124527, -0.2874944806098938, -0.19037026166915894, -0.21014504134655, -0.3705483675003052, 0.2802372872829437, -0.01759173534810543, 0.28088614344596863, 0.37621986865997314, -0.34332308173179626, 0.008050578646361828, -0.26118603348731995, 0.31368809938430786, 0.013887966051697731, 0.006903963163495064, 0.20610058307647705, 0.3031756579875946, 0.01934618502855301, 0.17669612169265747, 0.011615230701863766, -0.12484642118215561, -0.02958795428276062, 0.02428440749645233, 0.013629207387566566, 0.08006491512060165, 0.36168763041496277, 0.5575118660926819, -0.1202879399061203, 0.5586554408073425, 0.05338041111826897, 0.4472566246986389, -0.0033794448245316744, 0.17963974177837372, -0.1985718160867691, 0.15450948476791382, -0.6475355625152588, -0.6661439538002014, 0.08213818073272705, 0.3528616428375244, -0.3209252655506134, 0.4958517551422119, 0.12060091644525528, -0.06898423284292221, 0.47953295707702637, 0.06894494593143463, 0.9122274518013, -0.422333687543869, -0.1293211728334427, -0.0037968081887811422, 0.18871308863162994, 0.4288337826728821, -0.08921284973621368, 0.12839631736278534, 0.0789814218878746, -0.30485105514526367, 0.044227372854948044, -0.17795057594776154, 0.05113963782787323, 0.07521462440490723, 0.08464662730693817, 0.3383800685405731, -0.10615845024585724, 0.00737338699400425, 0.02754553221166134, 0.3325161933898926, 0.18984824419021606, -0.37979671359062195, -0.14620152115821838, -0.05566558614373207, 0.10842747986316681, -0.17344294488430023, 0.06300435960292816, 0.035947054624557495, 0.19659371674060822, -0.2196017950773239, -0.1999835968017578, -0.4815898835659027, -0.35524728894233704, 0.019245440140366554, -0.23226724565029144, -0.1909113973379135, 0.18244069814682007, -0.2131924331188202, -0.24398912489414215, 0.4488256275653839, 0.09178681671619415, 0.1708306223154068, 0.2580389976501465, 0.29941678047180176, -0.015880245715379715, -0.4601494371891022, 0.1972990334033966, -0.12183539569377899, -0.14652279019355774, 0.054979823529720306, -0.05405823886394501, -0.5098171830177307, 0.048308707773685455, 0.2030022144317627, 0.4885258972644806, 0.009925339370965958, -0.2172056883573532, -0.02510945126414299, -0.0074493600986897945, -0.1663379818201065, -0.03554895892739296, 0.15359780192375183, 0.09610898792743683, 0.6945765018463135, -0.05255821347236633, -0.3168734014034271, -0.0998818576335907, 0.10706956684589386, 0.19908945262432098, -0.2146315723657608, 0.2994440197944641, 0.18407535552978516, -0.44048434495925903, -0.10974474251270294, 0.07220245152711868, 0.24741588532924652, 0.29982179403305054, 0.15411849319934845, -0.0664496049284935, -0.21581526100635529, 0.4328506588935852, 0.02847197838127613, -0.0817723348736763, 0.03129607066512108, -0.09280119091272354, -0.569346010684967, -0.20185846090316772, 0.11442576348781586, -0.04396830126643181, -0.21175287663936615, 0.061469897627830505, 0.18067426979541779, -0.27056458592414856, 0.36134690046310425, -0.16491292417049408, -0.07915599644184113, -0.012852256186306477, 0.21248693764209747, -0.2546986937522888, 0.22383832931518555, -0.07818389683961868, -0.007228402886539698, -0.016349880024790764, 0.07881076633930206, -0.002759255701676011, -0.13119475543498993, 0.11032786220312119, 0.18625345826148987, -0.18031960725784302, -0.29648357629776, 0.23643653094768524, -0.3541325330734253, -0.2470613569021225, -0.2154267430305481, 0.0686764046549797, 0.004094626754522324, 0.010502941906452179, -0.6836892366409302, 0.09632238745689392, -0.4543241560459137, -0.10398455709218979, 0.14559678733348846, -0.16692568361759186, -0.29372283816337585, 0.012014644220471382, 0.21495361626148224, 0.18631333112716675, -0.014235909096896648, 0.09829273074865341, -0.03209253400564194, 0.03504210337996483, -0.0960121601819992, 0.265591561794281, 0.027855778113007545, -0.04433880373835564, 0.1940903514623642, 0.16068723797798157, 0.310234397649765, 0.0813852995634079, -0.16667750477790833, 0.4834393858909607, -0.05918050557374954, -0.2837429642677307, -0.20478594303131104, 0.19893480837345123, 0.17913204431533813, 0.18366162478923798, 0.1498315930366516, -0.2726888954639435, 0.3341103196144104, -0.20756816864013672, 0.10903602093458176, 0.3740890622138977, -0.07033824175596237, -0.2158277928829193, 0.39364829659461975, 0.4317413568496704, -0.21413172781467438, 0.43732282519340515, 0.344804972410202, -0.1633821427822113, 0.6247997283935547, 0.1625700145959854, 0.3235568106174469, 0.42543020844459534, 0.5249892473220825, -0.35000404715538025, -0.42696818709373474, -0.08666122704744339, 0.6189135909080505, -0.2344914823770523, -0.18344570696353912, 0.09283088147640228, -0.24423758685588837, 0.2608455419540405, -0.348854660987854, 0.13442601263523102, 0.3292423486709595, 0.18288324773311615, -0.02589438483119011, -0.3440888524055481, -0.004480365663766861, 0.2810172736644745, 0.00809797178953886, -0.04440018907189369, -0.01672043465077877, 0.15775969624519348, 0.14250192046165466, 0.29871416091918945, -0.2946131229400635, -0.19251693785190582, -0.13648003339767456, 0.22682155668735504, -0.07647596299648285, 0.05302991718053818, -0.27206018567085266, 0.29153576493263245, 0.2898273169994354, -0.3670109808444977, 0.20988944172859192, 0.40309473872184753, -0.03815533220767975, 0.1471683830022812, -0.36069178581237793, -0.1813364177942276, -0.01500787865370512, 0.4001677930355072, 0.16768580675125122, 0.15756985545158386, -0.022081604227423668, -0.06040557846426964, -0.05220351740717888, -0.13893991708755493, 0.21763871610164642, 0.07400966435670853, 0.10714476555585861, 0.30260127782821655, 0.2705261707305908, 0.007111047860234976, -0.061518795788288116, 0.05230536684393883, -0.12243107706308365, 0.34015047550201416, 0.28959542512893677, -0.26517781615257263, 0.2117103487253189, 0.23695217072963715, 0.019252898171544075, -0.22576916217803955, 0.04524776712059975, -0.045571573078632355, 0.39959990978240967, -0.25828927755355835, -0.2478117048740387, -0.42156505584716797, -0.4059765040874481, -0.40422511100769043, -0.036569491028785706, 0.14555025100708008, 0.06294721364974976, 0.2698777914047241, 0.09552560746669769, 0.0435497984290123, 0.12980781495571136, -0.20223481953144073, 0.02654072269797325, -0.13727432489395142, 0.32207006216049194, 0.059436071664094925, 0.31538963317871094, -0.1090598776936531, -0.3862203061580658, 0.472835898399353, -0.22999390959739685, -0.03084780089557171, 0.11621357500553131, 0.042574577033519745, 0.2271544337272644, 0.08036915957927704, -0.05522669851779938, 0.06782301515340805, 0.3736479580402374, 0.19153080880641937, 0.5193098783493042, 0.0005678950110450387, 0.19787022471427917, -0.25468015670776367, 0.20546936988830566, 0.2659473717212677, 0.17926321923732758, -0.10639739781618118, -0.0012777185766026378, 0.04301712289452553, 0.21058742702007294, -0.16736072301864624, -0.19143691658973694, -0.1458095759153366, 0.11354140937328339, 0.13743504881858826, 0.3232657015323639, -0.3512882590293884, 0.12733399868011475, -0.05304909497499466, 0.06735796481370926, -0.27105432748794556, -0.07727596163749695, 0.5529329776763916, -0.6079829931259155, -0.27925366163253784, -0.27292686700820923, 0.2432749718427658, 0.34184005856513977, 0.18270689249038696, 0.12420933693647385, -0.09955345094203949, 0.13599440455436707, -0.1705012321472168, -0.329172283411026, 0.22025899589061737, -0.0508960522711277, 0.03315642848610878, -0.2044651061296463, -0.17274676263332367, 0.059047479182481766, -0.18523909151554108, -0.35257261991500854, -0.1822320520877838 ]
https://github.com/huggingface/datasets/issues/1796
Filter on dataset too much slowww
Hi @lhoestq @ayubSubhaniya, If there's no progress on this one, can I try working on it? Thanks, Gunjan
I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ```
18
Filter on dataset too much slowww I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ``` Hi @lhoestq @ayubSubhaniya, If there's no progress on this one, can I try working on it? Thanks, Gunjan
[ -0.22525526583194733, -0.25954940915107727, -0.10918081551790237, -0.21481512486934662, -0.1230374351143837, -0.26924124360084534, 0.22156088054180145, 0.2114836722612381, 0.26342979073524475, -0.12331433594226837, 0.02796168625354767, 0.09088088572025299, -0.11606794595718384, 0.408236563205719, -0.22788994014263153, 0.15165206789970398, 0.10112838447093964, 0.21311011910438538, 0.4031708538532257, 0.0390009805560112, -0.057757098227739334, -0.08079168200492859, -0.3609129786491394, -0.029826059937477112, -0.08470706641674042, -0.27621278166770935, 0.2782399654388428, -0.2476794719696045, -0.27996447682380676, -0.19020894169807434, -0.11765587329864502, 0.43286246061325073, 0.041684024035930634, 0.5227163434028625, -0.00012857599358540028, -0.38422876596450806, 0.2686329185962677, 0.10168944299221039, 0.22517774999141693, 0.10349678248167038, -0.16966427862644196, -0.008082853630185127, -0.03672032058238983, -0.058665383607149124, -0.21726961433887482, 0.06693406403064728, -0.28964686393737793, -0.23677541315555573, 0.4300413727760315, 0.1496514230966568, -0.026994917541742325, -0.21864312887191772, -0.33588311076164246, 0.3563365042209625, 0.15257582068443298, 0.3359151780605316, 0.18690115213394165, -0.22612622380256653, 0.7080855369567871, -0.3562723696231842, 0.06964420527219772, 0.4721471965312958, -0.4560544192790985, -0.16154329478740692, 0.14877179265022278, -0.345347136259079, 0.109685018658638, -0.3132961690425873, 0.24094553291797638, 0.17692093551158905, 0.06566091626882553, -0.0571088083088398, -0.20080962777137756, -0.2538334131240845, -0.045439135283231735, -0.4103207588195801, 0.02026323601603508, 0.04560219123959541, -0.3242422044277191, -0.004245124291628599, -0.5788222551345825, -0.21891240775585175, 0.08762741833925247, 0.1583898812532425, -0.3853445053100586, 0.3735470771789551, 0.03218859061598778, 0.11352416127920151, 0.1993606835603714, -0.21552938222885132, 0.007501308340579271, -0.25454431772232056, 0.28324252367019653, 0.35545414686203003, -0.6740976572036743, -0.15083357691764832, -0.15819187462329865, 0.2203149050474167, 0.011063163168728352, 0.025714360177516937, -0.37365150451660156, 0.46273502707481384, 0.2508276104927063, -0.040210675448179245, -0.05831504240632057, 0.246198832988739, 0.06419707089662552, 0.48180079460144043, 0.2978997528553009, -0.21986067295074463, -0.298745334148407, 0.25472670793533325, -0.0507870689034462, 0.06790459156036377, 0.08237553387880325, -0.05401534587144852, -0.5015360116958618, -0.17027881741523743, -0.2727934420108795, -0.1028561070561409, -0.41680267453193665, -0.1203475221991539, 0.6683406233787537, 0.4683462977409363, -0.10075340420007706, -0.12196435034275055, -0.12643195688724518, -0.24157309532165527, -0.16461341083049774, 0.029838645830750465, 0.027909480035305023, -0.044540245085954666, -0.06811219453811646, 0.1991347372531891, 0.08994351327419281, -0.29297494888305664, -0.17926500737667084, 0.04730150103569031, -0.18295499682426453, 0.12613482773303986, 0.23691721260547638, -0.38317933678627014, 0.13238118588924408, 0.29230427742004395, -0.28546634316444397, 0.3071507513523102, 0.08230283856391907, 0.10247735679149628, -0.11823825538158417, 0.11863184720277786, -0.37776172161102295, -0.3367713391780853, 0.24112358689308167, 0.011438743211328983, -0.11205154657363892, 0.18166601657867432, -0.07396843284368515, 0.34425315260887146, 0.306984543800354, -0.08808545023202896, -0.2214001566171646, -0.19156868755817413, -0.5816190242767334, -0.15875250101089478, 0.20083241164684296, 0.09218929708003998, -0.4657701253890991, 0.018684882670640945, -0.2798198461532593, 0.2105327546596527, 0.5880846977233887, 0.43874332308769226, -0.03693981468677521, 0.22498773038387299, -0.04309042915701866, 0.048352111130952835, 0.21814987063407898, -0.11225999891757965, -0.34538713097572327, 0.6233466863632202, -0.039500460028648376, 0.007731558755040169, 0.18850524723529816, 0.07854850590229034, 0.5663002133369446, -0.2632846534252167, 0.5140771865844727, 0.3756271302700043, -0.21532823145389557, 0.11783711612224579, -0.021842436864972115, -0.10364874452352524, 0.1589716523885727, 0.2371778041124344, -0.2816351354122162, -0.07334926724433899, -0.07037357240915298, -0.37584802508354187, 0.1747686117887497, 0.026058046147227287, 0.030902350321412086, 0.1709761917591095, 0.23619182407855988, 0.06273416429758072, 0.011159896850585938, -0.1820671111345291, 0.1184118241071701, -0.06082165241241455, -0.05043172836303711, -0.16521292924880981, -0.17544680833816528, -0.18152566254138947, -0.2594469487667084, -0.009087564423680305, 0.06414161622524261, 0.2332102358341217, -0.11634887754917145, -0.17108270525932312, 0.11995741724967957, -0.2128806710243225, 0.03899891674518585, 0.487057626247406, -0.06616091728210449, -0.0465143620967865, 0.1828295737504959, -0.048104237765073776, 0.3280159831047058, -0.11434844881296158, 0.1694708913564682, 0.025842754170298576, 0.3714921772480011, 0.014230730012059212, 0.05710597336292267, 0.13866367936134338, 0.5027497410774231, -0.29915285110473633, -0.3137466013431549, 0.1767037957906723, 0.1542360931634903, 0.33893725275993347, 0.10944763571023941, 0.01643664948642254, 0.13025911152362823, -0.11432355642318726, -0.14936277270317078, 0.5312944650650024, -0.04048274829983711, 0.42389845848083496, 0.087741918861866, -0.09935863316059113, 0.31387168169021606, 0.17381343245506287, -0.0924367681145668, -0.2166416049003601, 0.5034920573234558, 0.01382173877209425, 0.1286030262708664, 0.24495406448841095, -0.10351657122373581, 0.3022034764289856, -0.04749974235892296, -0.3135296106338501, -0.059205301105976105, 0.2680284380912781, 0.1906663179397583, 0.08497268706560135, 0.1419331133365631, -0.01745738461613655, 0.03900599107146263, 0.19786128401756287, -0.18833523988723755, -0.15478137135505676, 0.08239244669675827, -0.06213453412055969, 0.25871390104293823, 0.10349675267934799, 0.2353142648935318, -0.21823367476463318, 0.2533361315727234, -0.12868008017539978, -0.0980209931731224, -0.2866779863834381, 0.2284127026796341, 0.3222562074661255, -0.22808688879013062, 0.014942827634513378, -0.3553004860877991, -0.5684853792190552, 0.2344612032175064, -0.10108769685029984, 0.20247012376785278, 0.045873165130615234, 0.15923066437244415, 0.04981249198317528, 0.28446152806282043, 0.11751406639814377, 0.11964334547519684, 0.20554228127002716, 0.22143171727657318, -0.4647485017776489, -0.10817825049161911, -0.13237179815769196, -0.041707299649715424, -0.05712024122476578, 0.25840526819229126, 0.31421273946762085, 0.3845164179801941, 0.30649101734161377, -0.09748498350381851, -0.1131293922662735, -0.5374431014060974, -0.14814864099025726, 0.010501728393137455, 0.13241857290267944, 0.12267015874385834, 0.14524555206298828, -0.3143945038318634, -0.10357111692428589, -0.025187261402606964, 0.019689517095685005, -0.16293248534202576, 0.06624167412519455, -0.1998535394668579, 0.07678428292274475, 0.10990028828382492, 0.15672363340854645, -0.2886817157268524, -0.032366201281547546, -0.22017726302146912, -0.07116281986236572, 0.27591463923454285, -0.3124832510948181, -0.11722487956285477, -0.2404731661081314, -0.28433647751808167, -0.06305725872516632, 0.020315121859312057, -0.19988788664340973, 0.2910323143005371, 0.2740524411201477, -0.017506467178463936, -0.12823857367038727, -0.08297605812549591, -0.3217393159866333, 0.5405502915382385, -0.241350457072258, 0.14246758818626404, -0.4174327254295349, -0.2339666336774826, 0.19346417486667633, -0.043374817818403244, 0.2607777416706085, -0.15838536620140076, 0.15180496871471405, 0.04610258713364601, -0.31720373034477234, -0.1860857903957367, -0.1872587502002716, 0.27647101879119873, 0.27397844195365906, 0.7350676655769348, 0.04790912941098213, 0.31343820691108704, 0.1614055037498474, 0.09781161695718765, 0.023464368656277657, 0.27426713705062866, -0.29511624574661255, -0.175423726439476, -0.3233998417854309, -0.037484876811504364, 0.24710120260715485, 0.05076636001467705, 0.07710127532482147, 0.17355340719223022, -0.15512622892856598, -0.052191413938999176, -0.2132929116487503, -0.08722521364688873, -0.14212000370025635, 0.10171150416135788, -0.16483594477176666, 0.30681246519088745, 0.23450076580047607, -0.03915311396121979, -0.4587763845920563, -0.36367499828338623, -0.30147749185562134, 0.061355434358119965, 0.1693888008594513, -0.18278612196445465, -0.5065776109695435, -0.20592635869979858, -0.3918890655040741, 0.35946914553642273, 0.2159305214881897, 0.27983370423316956, 0.04623187333345413, 0.13006341457366943, 0.1529967188835144, -0.00076454714871943, 0.858745276927948, -0.19640305638313293, 0.02368413284420967, 0.07734324783086777, -0.5784469246864319, -0.27504369616508484, 0.10980723053216934, -0.04007275402545929, 0.06500562280416489, 0.41975346207618713, 0.3936811685562134, -0.30512872338294983, -0.34872058033943176, -0.05230880528688431, 0.1268804520368576, 0.007771334610879421, -0.37496501207351685, -0.15592648088932037, -0.16419412195682526, -0.3765988349914551, 0.3039288818836212, -0.02350887469947338, 0.30301788449287415, 0.3059742748737335, -0.4037971496582031, 0.027820322662591934, -0.233978271484375, 0.32172802090644836, -0.0272873155772686, -0.045022204518318176, 0.14393392205238342, 0.2509562075138092, -0.055761370807886124, 0.14929714798927307, -0.0016952604055404663, -0.2590824365615845, -0.03020377829670906, 0.044048793613910675, 0.09726695716381073, 0.044482339173555374, 0.397053986787796, 0.4827740490436554, -0.16124792397022247, 0.5882353782653809, 0.050507500767707825, 0.488603800535202, 0.01163045410066843, 0.21734566986560822, -0.09170489758253098, 0.20796418190002441, -0.6904316544532776, -0.6199184656143188, 0.05852116644382477, 0.39057278633117676, -0.3461596369743347, 0.34997186064720154, 0.020044898614287376, -0.084665946662426, 0.44715219736099243, 0.06630156934261322, 0.9581959843635559, -0.4153417944908142, -0.21083123981952667, -0.08122184872627258, 0.2532019317150116, 0.4408658444881439, -0.15888644754886627, 0.11695406585931778, 0.06425531953573227, -0.3563610911369324, 0.033515457063913345, -0.16274727880954742, 0.03190538287162781, 0.1154623031616211, 0.05921650305390358, 0.35855966806411743, -0.099434994161129, 0.046468336135149, 0.022079631686210632, 0.33210673928260803, 0.30331993103027344, -0.35774993896484375, -0.19866026937961578, -0.054840464144945145, 0.10664922744035721, -0.04458607733249664, 0.015125363133847713, 0.03256555646657944, 0.25586479902267456, -0.20824341475963593, -0.19698414206504822, -0.45525550842285156, -0.3432824909687042, -0.04081625118851662, -0.18394336104393005, -0.17076648771762848, 0.21553157269954681, -0.14538489282131195, -0.14894317090511322, 0.4777185022830963, 0.039553217589855194, 0.20647136867046356, 0.23177675902843475, 0.2153293341398239, -0.05684884637594223, -0.4187886714935303, 0.18551133573055267, -0.17867696285247803, -0.1958911418914795, 0.0447830930352211, -0.01295528281480074, -0.43294909596443176, -0.06321623921394348, 0.1401575356721878, 0.4846394956111908, -0.002096418756991625, -0.24113737046718597, 0.0008224717457778752, -0.0012023168383166194, -0.17081694304943085, -0.03206527978181839, 0.14751283824443817, 0.061431799083948135, 0.7015868425369263, -0.035698819905519485, -0.2789463698863983, -0.1368633359670639, 0.12212780863046646, 0.2942490577697754, -0.27976736426353455, 0.3097620904445648, 0.2331230640411377, -0.4130250811576843, -0.10830117017030716, 0.017219172790646553, 0.16577433049678802, 0.34654781222343445, 0.07902226597070694, 0.008341548033058643, -0.27648454904556274, 0.46652305126190186, 0.040259189903736115, -0.15021784603595734, -0.00652976194396615, 0.021022124215960503, -0.6080697178840637, -0.22224010527133942, 0.013387933373451233, -0.11929795891046524, -0.23514527082443237, 0.09381675720214844, 0.24667663872241974, -0.22699718177318573, 0.4047366976737976, -0.15529900789260864, -0.11915671080350876, -0.08961398899555206, 0.2054949849843979, -0.17515185475349426, 0.1732695996761322, -0.10485731810331345, 0.08447878807783127, -0.009260454215109348, 0.09759597480297089, 0.023488938808441162, -0.11873500794172287, 0.12993252277374268, 0.19042673707008362, -0.15915735065937042, -0.23459136486053467, 0.2908118665218353, -0.2887120544910431, -0.2566342055797577, -0.15979230403900146, 0.09840241074562073, -0.017929350957274437, 0.057717371731996536, -0.654778242111206, 0.06948342174291611, -0.4861409068107605, -0.13204890489578247, 0.11350864917039871, -0.12496915459632874, -0.30165544152259827, 0.06511353701353073, 0.19551192224025726, 0.1558886021375656, -0.039699140936136246, 0.008310738950967789, -0.05945016071200371, 0.13632036745548248, -0.0981680154800415, 0.24463769793510437, 0.03858497738838196, -0.05466753989458084, 0.23823770880699158, 0.12019546329975128, 0.18422122299671173, 0.04891218617558479, -0.14128154516220093, 0.4671066701412201, -0.07224186509847641, -0.27416855096817017, -0.1641029268503189, 0.197715625166893, 0.18682433664798737, 0.1511610746383667, 0.17902082204818726, -0.24106115102767944, 0.36293238401412964, -0.18333850800991058, 0.09980696439743042, 0.4350857734680176, -0.05547837167978287, -0.22173775732517242, 0.3130102753639221, 0.43322131037712097, -0.20514015853405, 0.4461451470851898, 0.3638693392276764, -0.21313856542110443, 0.5768551230430603, 0.18655483424663544, 0.33188700675964355, 0.34951508045196533, 0.5341728329658508, -0.2553030550479889, -0.3887849450111389, -0.11096358299255371, 0.7703384160995483, -0.24494116008281708, -0.2136726826429367, 0.03339395299553871, -0.20797280967235565, 0.3349090814590454, -0.3433471620082855, 0.11322217434644699, 0.4351334273815155, 0.14817899465560913, -0.040824007242918015, -0.3570055067539215, 0.020402489230036736, 0.24827337265014648, -0.03699811175465584, 0.003689549397677183, 0.01855415664613247, 0.16131186485290527, 0.17943428456783295, 0.2775247395038605, -0.2858618199825287, -0.22906643152236938, -0.15206967294216156, 0.18043309450149536, -0.05910787358880043, 0.15228591859340668, -0.28977927565574646, 0.2591443955898285, 0.3215391933917999, -0.3563668727874756, 0.20936180651187897, 0.41544032096862793, -0.015353662893176079, 0.1073974221944809, -0.3542914092540741, -0.15568366646766663, 0.02863018587231636, 0.43941664695739746, 0.2068331092596054, 0.21890097856521606, -0.03738388419151306, -0.06809724122285843, -0.07276427000761032, -0.07776610553264618, 0.23255674540996552, 0.06563941389322281, 0.15787629783153534, 0.26858875155448914, 0.267796128988266, 0.05264674872159958, -0.13243456184864044, 0.06583711504936218, -0.17723339796066284, 0.39906349778175354, 0.18764713406562805, -0.25251123309135437, 0.24204997718334198, 0.23788690567016602, 0.008193600922822952, -0.24586695432662964, 0.012394371442496777, -0.08788522332906723, 0.435520201921463, -0.2969922423362732, -0.30034273862838745, -0.34891417622566223, -0.3365271985530853, -0.34315019845962524, -0.025145120918750763, 0.09699171781539917, 0.0010712284129112959, 0.21462899446487427, 0.020398473367094994, 0.00803393218666315, 0.11676791310310364, -0.24034877121448517, 0.044458888471126556, -0.13693246245384216, 0.3749766945838928, -0.025413967669010162, 0.35932713747024536, -0.08077679574489594, -0.30886536836624146, 0.48204681277275085, -0.2655589282512665, -0.04221515730023384, 0.05570073425769806, 0.08756355196237564, 0.14831872284412384, 0.040541376918554306, -0.10824305564165115, 0.036923330277204514, 0.42107853293418884, 0.12042486667633057, 0.5725926756858826, 0.050547316670417786, 0.14965878427028656, -0.2269868403673172, 0.1850087195634842, 0.3237875699996948, 0.1223638579249382, -0.03242398053407669, 0.07480862736701965, 0.08036911487579346, 0.22492952644824982, -0.1496293842792511, -0.27735742926597595, -0.09690219163894653, 0.07714781165122986, 0.15351857244968414, 0.2936279773712158, -0.24478226900100708, 0.13705365359783173, -0.0368245504796505, 0.020468464121222496, -0.24104569852352142, -0.12270822376012802, 0.5522244572639465, -0.5193548202514648, -0.2587072253227234, -0.3608846962451935, 0.25573623180389404, 0.28298553824424744, 0.20683352649211884, 0.1441441923379898, -0.04229277744889259, 0.14793181419372559, -0.12213960289955139, -0.29391539096832275, 0.3119499087333679, 0.00899585708975792, 0.009171067737042904, -0.2084151953458786, -0.26740762591362, 0.09573668986558914, -0.13765841722488403, -0.32518473267555237, -0.14481976628303528 ]
https://github.com/huggingface/datasets/issues/1796
Filter on dataset too much slowww
Sure @gchhablani feel free to start working on it, this would be very appreciated :) This feature is would be really awesome, especially since arrow allows to mask really quickly and without having to rewrite the dataset on disk
I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ```
39
Filter on dataset too much slowww I have a dataset with 50M rows. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 12mins. I used `map()` with batch size 1024 and multi-process with 96 processes. When I applied the `filter()` function it is taking too much time. I need to filter sequences based on a boolean column. Below are the variants I tried. 1. filter() with batch size 1024, single process (takes roughly 3 hr) 2. filter() with batch size 1024, 96 processes (takes 5-6 hrs ¯\\\_(ツ)\_/¯) 3. filter() with loading all data in memory, only a single boolean column (never ends). Can someone please help? Below is a sample code for small dataset. ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') dataset = dataset.map(lambda x: {'flag': random.randint(0,1)==1}) def _amplify(data): return data dataset = dataset.filter(_amplify, batch_size=1024, keep_in_memory=False, input_columns=['flag']) ``` Sure @gchhablani feel free to start working on it, this would be very appreciated :) This feature is would be really awesome, especially since arrow allows to mask really quickly and without having to rewrite the dataset on disk
[ -0.2547408640384674, -0.23511892557144165, -0.10145225375890732, -0.2257341593503952, -0.14286504685878754, -0.2871687710285187, 0.27946463227272034, 0.23597770929336548, 0.31276705861091614, -0.11907649785280228, 0.062109023332595825, 0.13041625916957855, -0.12634696066379547, 0.4224112331867218, -0.24737781286239624, 0.1691470444202423, 0.09486047923564911, 0.2099199891090393, 0.3651641309261322, 0.04463442042469978, -0.04944741725921631, -0.11382710188627243, -0.33271798491477966, -0.04424272105097771, -0.04049895331263542, -0.2961440086364746, 0.2930475175380707, -0.2661841809749603, -0.2599875330924988, -0.17891915142536163, -0.08933872729539871, 0.4252873361110687, 0.043773353099823, 0.472421258687973, -0.0001284531899727881, -0.3640071749687195, 0.2625664472579956, 0.113187775015831, 0.1909710019826889, 0.11359594762325287, -0.18486157059669495, -0.01635647565126419, -0.021852372214198112, -0.05935068055987358, -0.213873952627182, 0.05300997197628021, -0.2731751799583435, -0.30239489674568176, 0.42871907353401184, 0.10061690956354141, -0.028960565105080605, -0.18324755132198334, -0.3738378584384918, 0.37237387895584106, 0.14585545659065247, 0.3561844825744629, 0.1437242031097412, -0.2502305805683136, 0.657731294631958, -0.3737878203392029, 0.046121761202812195, 0.535294771194458, -0.47054192423820496, -0.1681780070066452, 0.1968514323234558, -0.31847429275512695, 0.11250749230384827, -0.2822369337081909, 0.2291528582572937, 0.16906727850437164, 0.01499247271567583, -0.07770930975675583, -0.21435269713401794, -0.29156315326690674, -0.06155968829989433, -0.4139203131198883, 0.025285959243774414, 0.028612306341528893, -0.31541913747787476, 0.01642264425754547, -0.5580663681030273, -0.20373640954494476, 0.09655103087425232, 0.14037425816059113, -0.3547901511192322, 0.361106812953949, 0.03461245074868202, 0.1313701719045639, 0.21422484517097473, -0.2130948007106781, 0.02269415184855461, -0.28705325722694397, 0.26484522223472595, 0.36231330037117004, -0.6492139101028442, -0.14234524965286255, -0.1743786782026291, 0.17504623532295227, 0.006919398438185453, 0.07863306254148483, -0.35297226905822754, 0.4686020016670227, 0.22201955318450928, -0.025951050221920013, -0.06266535073518753, 0.23973499238491058, 0.07409781217575073, 0.4572775065898895, 0.28736230731010437, -0.21477992832660675, -0.23668000102043152, 0.25442346930503845, -0.06849487870931625, 0.07989951223134995, 0.08005914092063904, -0.031913213431835175, -0.49395352602005005, -0.13883742690086365, -0.26480627059936523, -0.11023062467575073, -0.3951859474182129, -0.11923816800117493, 0.6373211741447449, 0.425801545381546, -0.07958633452653885, -0.13445429503917694, -0.1196870282292366, -0.2380565106868744, -0.16519415378570557, 0.02851850911974907, 0.0324384942650795, -0.09632192552089691, -0.069513238966465, 0.17841647565364838, 0.07810273766517639, -0.2720378637313843, -0.1977611631155014, 0.03262300044298172, -0.17777171730995178, 0.1730155348777771, 0.25519508123397827, -0.34739893674850464, 0.15577556192874908, 0.3013792634010315, -0.320300817489624, 0.31832680106163025, 0.13550570607185364, 0.09040335565805435, -0.1295005977153778, 0.1477261483669281, -0.3459286093711853, -0.31415998935699463, 0.21307533979415894, -0.0019208014709874988, -0.12040188908576965, 0.1689208298921585, -0.12101767212152481, 0.3417932689189911, 0.2751416563987732, -0.10069356113672256, -0.20164507627487183, -0.19150136411190033, -0.5472361445426941, -0.16208091378211975, 0.2093990296125412, 0.11714405566453934, -0.4860519468784332, -0.011903684586286545, -0.2796170115470886, 0.22333122789859772, 0.6011438369750977, 0.4344092905521393, -0.04605305939912796, 0.14723999798297882, -0.02990736998617649, 0.056431181728839874, 0.23583528399467468, -0.12276635318994522, -0.3312908113002777, 0.623835563659668, -0.06387525051832199, 0.04009106010198593, 0.21264934539794922, 0.10533928871154785, 0.5331231355667114, -0.25568369030952454, 0.4627799391746521, 0.3944651186466217, -0.18781417608261108, 0.10910443961620331, 0.0033410179894417524, -0.13125957548618317, 0.19495175778865814, 0.21790648996829987, -0.33209532499313354, -0.07579415291547775, -0.06967151910066605, -0.44811052083969116, 0.1965845227241516, 0.023221753537654877, 0.0347885824739933, 0.11894828081130981, 0.24030888080596924, 0.0163253303617239, 0.02064978890120983, -0.13577747344970703, 0.08843369036912918, -0.05111902207136154, -0.014073116704821587, -0.16710293292999268, -0.24949118494987488, -0.19590359926223755, -0.20261073112487793, -0.022412508726119995, 0.06332798302173615, 0.20253345370292664, -0.12866072356700897, -0.1770581752061844, 0.08982811123132706, -0.22923025488853455, 0.008876120671629906, 0.4807586073875427, -0.04092730954289436, -0.02778499200940132, 0.17052151262760162, -0.07462805509567261, 0.37059104442596436, -0.07825087010860443, 0.1451505422592163, 0.016998983919620514, 0.3502379357814789, 0.01866127736866474, 0.04101013019680977, 0.14074726402759552, 0.4962444305419922, -0.28919148445129395, -0.29197874665260315, 0.17777547240257263, 0.14519700407981873, 0.33556559681892395, 0.12326134741306305, 0.04533861577510834, 0.11895352602005005, -0.101849265396595, -0.22428935766220093, 0.5475727915763855, -0.049496717751026154, 0.46383076906204224, 0.07080866396427155, -0.07536407560110092, 0.3280293643474579, 0.1719779074192047, -0.11581990122795105, -0.23792287707328796, 0.46021124720573425, -0.014343748800456524, 0.13402926921844482, 0.24299447238445282, -0.08891738951206207, 0.3365095853805542, -0.07566965371370316, -0.27299290895462036, -0.06270916759967804, 0.23759989440441132, 0.1726813167333603, 0.10395484417676926, 0.1899484395980835, 0.01094966009259224, 0.0056817904114723206, 0.217087060213089, -0.1980082392692566, -0.1666432023048401, 0.05119555443525314, -0.04375534504652023, 0.2654492259025574, 0.08149496465921402, 0.2596527934074402, -0.24709714949131012, 0.25726816058158875, -0.13743148744106293, -0.11713142693042755, -0.34220144152641296, 0.20117971301078796, 0.27270710468292236, -0.20903533697128296, 0.031248878687620163, -0.3480927050113678, -0.5751764178276062, 0.2541057765483856, -0.08790747076272964, 0.22269375622272491, 0.0729404166340828, 0.16101719439029694, 0.04714507982134819, 0.2452380508184433, 0.14086301624774933, 0.08553285896778107, 0.22163406014442444, 0.23450595140457153, -0.5197228193283081, -0.1105317771434784, -0.15123727917671204, -0.03947271406650543, -0.05712415650486946, 0.24790620803833008, 0.3156702220439911, 0.3780965805053711, 0.3416632115840912, -0.06671075522899628, -0.1172676607966423, -0.5213432908058167, -0.1506473273038864, -0.012480590492486954, 0.11785448342561722, 0.10231458395719528, 0.14622029662132263, -0.33545756340026855, -0.12293614447116852, -0.02982567995786667, 0.049152422696352005, -0.17726722359657288, 0.07266532629728317, -0.1669171303510666, 0.0829734206199646, 0.08006500452756882, 0.1700880080461502, -0.23576873540878296, -0.03818003833293915, -0.20738087594509125, -0.056562431156635284, 0.27029281854629517, -0.26566097140312195, -0.07305798679590225, -0.27811408042907715, -0.27124080061912537, -0.10318689793348312, 0.03647002577781677, -0.2044035643339157, 0.2926088273525238, 0.28269895911216736, 0.01965269073843956, -0.15174561738967896, -0.09834779053926468, -0.3492055833339691, 0.5780205130577087, -0.2696864902973175, 0.15842904150485992, -0.4038269519805908, -0.23135830461978912, 0.20193907618522644, -0.03344423696398735, 0.28658753633499146, -0.10350053012371063, 0.14019176363945007, 0.027501938864588737, -0.3251655697822571, -0.19499571621418, -0.20941224694252014, 0.26776114106178284, 0.2775140404701233, 0.7451369166374207, 0.07416635751724243, 0.3454887866973877, 0.18027180433273315, 0.10703375190496445, 0.016801409423351288, 0.28163018822669983, -0.2569601833820343, -0.16913653910160065, -0.3194509744644165, -0.062209758907556534, 0.23519742488861084, 0.08581631630659103, 0.025759529322385788, 0.15538690984249115, -0.17712551355361938, -0.03890035301446915, -0.21135300397872925, -0.06669513881206512, -0.15916946530342102, 0.1071515679359436, -0.20322200655937195, 0.2908298373222351, 0.23693618178367615, -0.008953667245805264, -0.4920884370803833, -0.35263508558273315, -0.24617555737495422, 0.033833473920822144, 0.2247820496559143, -0.17753629386425018, -0.5154922008514404, -0.1536717414855957, -0.396879643201828, 0.3571225106716156, 0.21056416630744934, 0.24969051778316498, 0.07332988828420639, 0.0918416827917099, 0.13792896270751953, 0.0048194206319749355, 0.8831470608711243, -0.19259056448936462, 0.04782412573695183, 0.0855073556303978, -0.5386546850204468, -0.32991528511047363, 0.12130283564329147, -0.026626858860254288, 0.06275349855422974, 0.36902278661727905, 0.40054529905319214, -0.3076557517051697, -0.33612558245658875, -0.059670090675354004, 0.13100861012935638, -0.007217349950224161, -0.3539111018180847, -0.15043529868125916, -0.1287594437599182, -0.3918301463127136, 0.3001634478569031, -0.002001403598114848, 0.2927745282649994, 0.32703226804733276, -0.39386987686157227, 0.0023754264693707228, -0.25372716784477234, 0.31026697158813477, -0.0174856036901474, -0.0331125408411026, 0.157923623919487, 0.25853559374809265, 0.009450902231037617, 0.1730179637670517, -0.03650357946753502, -0.20735611021518707, -0.02234375849366188, -0.0015387205639854074, 0.05652063339948654, 0.04826679825782776, 0.39987868070602417, 0.49510684609413147, -0.14652159810066223, 0.5836420655250549, 0.06940272450447083, 0.4908272922039032, -0.011302660219371319, 0.22725149989128113, -0.11869800090789795, 0.18468835949897766, -0.6643239259719849, -0.6317512392997742, 0.08982846885919571, 0.36168372631073, -0.35922953486442566, 0.4149474501609802, 0.053904931992292404, -0.09255515784025192, 0.48463675379753113, 0.07965035736560822, 0.9722083806991577, -0.41014763712882996, -0.15644435584545135, -0.10247597843408585, 0.2348388284444809, 0.44915202260017395, -0.14523068070411682, 0.11850135773420334, 0.05268750712275505, -0.312782347202301, 0.018768681213259697, -0.17898450791835785, 0.013136533088982105, 0.10356877744197845, 0.1015666127204895, 0.35286206007003784, -0.13547849655151367, 0.05329156666994095, 0.01738930679857731, 0.30330294370651245, 0.2745910882949829, -0.39071065187454224, -0.1281692087650299, -0.0674055740237236, 0.14843495190143585, -0.05449530854821205, 0.04174100235104561, 0.023109566420316696, 0.2586691379547119, -0.2181496024131775, -0.17862844467163086, -0.4309234023094177, -0.33461958169937134, -0.02903071604669094, -0.1861097514629364, -0.21806937456130981, 0.18560855090618134, -0.1499713957309723, -0.15465094149112701, 0.4800977408885956, 0.05503170192241669, 0.1872081309556961, 0.25620028376579285, 0.2629363536834717, -0.0710098147392273, -0.43948760628700256, 0.19413113594055176, -0.14785195887088776, -0.1893991231918335, 0.03992689028382301, -0.020283639430999756, -0.467524915933609, -0.02859383635222912, 0.1664799600839615, 0.4765838384628296, 0.016074273735284805, -0.22115175426006317, -0.009073484688997269, 0.013356108218431473, -0.18004974722862244, -0.03900723531842232, 0.16013555228710175, 0.08720999211072922, 0.6803523898124695, -0.011806444264948368, -0.27124831080436707, -0.11714637279510498, 0.1355695277452469, 0.27161383628845215, -0.25443726778030396, 0.30723729729652405, 0.20269443094730377, -0.4166204333305359, -0.11174877732992172, 0.00549359293654561, 0.22099356353282928, 0.3390146791934967, 0.11248234659433365, -0.01736217364668846, -0.2973785400390625, 0.43114006519317627, 0.039932530373334885, -0.14299382269382477, 0.022602075710892677, -0.0035552815534174442, -0.6040538549423218, -0.19784726202487946, 0.0445590540766716, -0.16242146492004395, -0.22623515129089355, 0.09222464263439178, 0.23474450409412384, -0.2562170922756195, 0.3702443540096283, -0.1560824066400528, -0.11458024382591248, -0.04225500673055649, 0.22498197853565216, -0.18699944019317627, 0.23972749710083008, -0.06964016705751419, 0.07817380130290985, -0.02156180702149868, 0.08467718213796616, 0.005500970408320427, -0.12498806416988373, 0.09385660290718079, 0.19143077731132507, -0.16927267611026764, -0.2661699056625366, 0.2854488790035248, -0.30408504605293274, -0.2480560839176178, -0.20041309297084808, 0.11811575293540955, -0.03291207179427147, 0.058170169591903687, -0.6831439733505249, 0.0294051393866539, -0.4843921959400177, -0.14652884006500244, 0.08450327068567276, -0.12794789671897888, -0.3025527000427246, 0.04460849612951279, 0.17621801793575287, 0.14222551882266998, -0.027261899784207344, 0.0484139658510685, -0.06535196304321289, 0.11468851566314697, -0.06263522803783417, 0.24728940427303314, 0.04314327985048294, -0.08274592459201813, 0.2133440375328064, 0.12622618675231934, 0.1769418567419052, 0.05632578209042549, -0.15676836669445038, 0.4866529405117035, -0.06685558706521988, -0.28685787320137024, -0.1953936666250229, 0.1671295166015625, 0.2077479213476181, 0.1736731380224228, 0.16192549467086792, -0.2451893389225006, 0.3579375445842743, -0.185393825173378, 0.08896925300359726, 0.4020836055278778, -0.0821809247136116, -0.23520903289318085, 0.3388040065765381, 0.40775054693222046, -0.22499696910381317, 0.48056450486183167, 0.3468930721282959, -0.19380076229572296, 0.6008082032203674, 0.1963532567024231, 0.3269653618335724, 0.4239940941333771, 0.5279603004455566, -0.3396152853965759, -0.3884885609149933, -0.11077951639890671, 0.717206597328186, -0.20318390429019928, -0.1873832643032074, 0.07080590724945068, -0.2135523557662964, 0.34359726309776306, -0.3242049515247345, 0.1368945986032486, 0.39979320764541626, 0.1689613163471222, -0.06898707151412964, -0.36742809414863586, 0.015546771697700024, 0.2693640887737274, -0.025864707306027412, 0.001557142473757267, 0.003991302102804184, 0.20683421194553375, 0.15592554211616516, 0.31891489028930664, -0.27650976181030273, -0.24059905111789703, -0.12860620021820068, 0.21349796652793884, -0.051053255796432495, 0.12598657608032227, -0.26635193824768066, 0.279430091381073, 0.3113359212875366, -0.3693411946296692, 0.2065238505601883, 0.36977535486221313, -0.04008065164089203, 0.09776083379983902, -0.3742181658744812, -0.15691988170146942, 0.0034287364687770605, 0.43610790371894836, 0.21185968816280365, 0.1915193647146225, -0.03410216048359871, -0.07337972521781921, -0.05476680025458336, -0.06291665881872177, 0.2353905737400055, 0.049787089228630066, 0.1619335412979126, 0.25952547788619995, 0.28004923462867737, 0.03487145155668259, -0.1228136345744133, 0.026911571621894836, -0.1231812983751297, 0.39831966161727905, 0.235451340675354, -0.2709561288356781, 0.2363278716802597, 0.2429216206073761, 0.007573754992336035, -0.23892857134342194, -0.013387787155807018, -0.08553565293550491, 0.41854050755500793, -0.2886801064014435, -0.2669927775859833, -0.3452304005622864, -0.34254002571105957, -0.3784065246582031, -0.041096579283475876, 0.09316328912973404, 0.0125884423032403, 0.2585778534412384, 0.04499024525284767, 0.029672879725694656, 0.10202322900295258, -0.190907284617424, 0.028304770588874817, -0.1394941359758377, 0.3953855335712433, 0.009559723548591137, 0.3836017847061157, -0.0542449988424778, -0.34508806467056274, 0.48032763600349426, -0.2367377132177353, -0.04240524768829346, 0.0815746858716011, 0.08671540021896362, 0.1680947244167328, 0.02828003652393818, -0.056432101875543594, 0.035667818039655685, 0.38963356614112854, 0.14239175617694855, 0.5392444729804993, 0.025578463450074196, 0.16642746329307556, -0.23962315917015076, 0.17450816929340363, 0.3232298791408539, 0.16232402622699738, -0.05639375373721123, 0.06580333411693573, 0.06531992554664612, 0.23568248748779297, -0.142014279961586, -0.251216858625412, -0.10083042085170746, 0.12022726982831955, 0.1188267394900322, 0.2824157774448395, -0.3085882365703583, 0.133614182472229, -0.035230398178100586, 0.0329052209854126, -0.2267473340034485, -0.14354947209358215, 0.5653967261314392, -0.5540580153465271, -0.30620837211608887, -0.3145039677619934, 0.2423725575208664, 0.33473703265190125, 0.19905585050582886, 0.11138566583395004, -0.05861525982618332, 0.11647092550992966, -0.13940560817718506, -0.3094709515571594, 0.2706587016582489, 0.026835838332772255, 0.02009039930999279, -0.20973153412342072, -0.22815969586372375, 0.08922500163316727, -0.131450355052948, -0.34546563029289246, -0.17426875233650208 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
Hi ! Apache Beam is a framework used to define data transformation pipelines. These pipeline can then be run in many runtimes: DataFlow, Spark, Flink, etc. There also exist a local runner called the DirectRunner. Wikipedia is a dataset that requires some parsing, so to allow the processing to be run on this kind of runtime we're using Apache Beam. At Hugging Face we've already processed certain versions of wikipedia (the `20200501.en` one for example) so that users can directly download the processed version instead of using Apache Beam to process it. However for the japanese language we haven't processed it so you'll have to run the processing on your side. So you do need Apache Beam to process `20200501.ja`. You can install Apache Beam with ``` pip install apache-beam ``` I think we can probably improve the error message to let users know of this subtlety. What #498 implied is that Apache Beam is not needed when you process a dataset that doesn't use Apache Beam.
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
167
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? Hi ! Apache Beam is a framework used to define data transformation pipelines. These pipeline can then be run in many runtimes: DataFlow, Spark, Flink, etc. There also exist a local runner called the DirectRunner. Wikipedia is a dataset that requires some parsing, so to allow the processing to be run on this kind of runtime we're using Apache Beam. At Hugging Face we've already processed certain versions of wikipedia (the `20200501.en` one for example) so that users can directly download the processed version instead of using Apache Beam to process it. However for the japanese language we haven't processed it so you'll have to run the processing on your side. So you do need Apache Beam to process `20200501.ja`. You can install Apache Beam with ``` pip install apache-beam ``` I think we can probably improve the error message to let users know of this subtlety. What #498 implied is that Apache Beam is not needed when you process a dataset that doesn't use Apache Beam.
[ 0.1911671906709671, 0.0017937656957656145, -0.004188804887235165, 0.1869838684797287, 0.27138063311576843, 0.1396201252937317, 0.42134737968444824, 0.3950362205505371, 0.22948075830936432, 0.1781059354543686, 0.10769854485988617, -0.09141694754362106, 0.053350139409303665, -0.1092444509267807, 0.10173656791448593, -0.4603549540042877, 0.31238991022109985, 0.07550110667943954, -0.10318266600370407, -0.18625837564468384, -0.3473690450191498, 0.08449634164571762, -0.3394604027271271, 0.2037171572446823, -0.2264513075351715, 0.17298096418380737, -0.12238079309463501, 0.07952553778886795, 0.07966963946819305, -0.31025993824005127, 0.06957782059907913, -0.25269338488578796, -0.0015342682600021362, 0.37892526388168335, -0.00011232010001549497, 0.17259390652179718, 0.4942120909690857, -0.18687503039836884, -0.35284659266471863, -0.2001895308494568, -0.04407356679439545, -0.5268989205360413, 0.027045348659157753, -0.49956628680229187, -0.11857369542121887, -0.3200570046901703, 0.12484130263328552, -0.3306964337825775, 0.6608906984329224, 0.20979978144168854, 0.18214550614356995, 0.35442984104156494, 0.04792070388793945, -0.08674567192792892, 0.42749419808387756, 0.09361328184604645, -0.1490345448255539, -0.041963834315538406, -0.0831078514456749, 0.011952679604291916, -0.09416775405406952, 0.5700828433036804, -0.32362955808639526, -0.039385732263326645, 0.22923903167247772, -0.22271551191806793, 0.05665808171033859, -0.6094751358032227, 0.17761676013469696, 0.32248207926750183, 0.7865331172943115, -0.13517683744430542, -0.22218167781829834, -0.15308117866516113, -0.10984369367361069, 0.23514273762702942, 0.15950354933738708, 0.10914979130029678, -0.2148614525794983, 0.04631737619638443, 0.43810760974884033, -0.2706969678401947, -0.14768122136592865, 0.07335198670625687, 0.1302400529384613, 0.43159767985343933, 0.07065282762050629, 0.31762850284576416, -0.054533615708351135, -0.0860564261674881, -0.11913973093032837, -0.3226901590824127, 0.25256630778312683, 0.3874098062515259, -0.11371106654405594, 0.08482226729393005, 0.10179311782121658, 0.1508978009223938, -0.0367012619972229, -0.28104880452156067, -0.19214200973510742, 0.11588113754987717, 0.10534079372882843, 0.10820657014846802, 0.12434323877096176, 0.1274578869342804, 0.38803017139434814, -0.025763578712940216, 0.3348403573036194, -0.21627037227153778, 0.10981452465057373, 0.044270265847444534, 0.029977772384881973, -0.28030654788017273, -0.3338729739189148, 0.22260147333145142, 0.356532484292984, -0.09053734689950943, -0.05768343433737755, 0.048255059868097305, -0.45678478479385376, -0.3259350061416626, -0.22219052910804749, 0.33788955211639404, 0.13258591294288635, 0.415270060300827, 0.1352868676185608, 0.23456481099128723, -0.25755855441093445, -0.4546523094177246, -0.032301776111125946, 0.3424358367919922, -0.40764668583869934, 0.19766393303871155, -0.04613300412893295, 0.014477086253464222, 0.2195381224155426, -0.15526428818702698, 0.13262847065925598, 0.1820780634880066, -0.09000512212514877, -0.08568333834409714, -0.04574541375041008, 0.4503152668476105, 0.06573357433080673, 0.4466487467288971, 0.29754766821861267, -0.1272507607936859, -0.21597982943058014, 0.2281535416841507, -0.27198800444602966, -0.27659934759140015, 0.18184295296669006, 0.05944204702973366, -0.35650795698165894, 0.20808570086956024, -0.010424969717860222, -0.07406697422266006, 0.04809161275625229, -0.08542238175868988, 0.2088579535484314, 0.05144793167710304, -0.027734754607081413, -0.28988686203956604, -0.0214100182056427, 0.7498971819877625, -0.22692488133907318, -0.06385671347379684, -0.00972212664783001, -0.14365875720977783, -0.13100861012935638, -0.0040008919313549995, -0.1556624472141266, 0.2832138240337372, -0.2314029484987259, -0.021537309512495995, 0.5308305621147156, -0.5257616639137268, 0.05843645706772804, 0.19441677629947662, -0.09820356965065002, 0.21029286086559296, 0.2612050473690033, 0.002673075068742037, -0.41929516196250916, -0.21953698992729187, -0.2881312668323517, 0.050639476627111435, 0.10255074501037598, -0.02467172220349312, -0.25682008266448975, -0.008170952089130878, 0.11579719185829163, 0.1537022888660431, 0.19382606446743011, 0.07872652262449265, 0.13286536931991577, 0.4823877811431885, 0.24451635777950287, -0.1990588754415512, 0.2263820320367813, 0.456543505191803, -0.005168129224330187, 0.1091257780790329, 0.22361336648464203, 0.064449243247509, -0.06298361718654633, 0.27759966254234314, -0.08557934314012527, 0.4019976258277893, -0.09050676226615906, -0.100332111120224, -0.14799270033836365, -0.08852382749319077, -0.28332042694091797, -0.30085545778274536, 0.07806883752346039, 0.03529919311404228, -0.07239379733800888, 0.33164116740226746, -0.28483226895332336, 0.4456300139427185, -0.12197195738554001, 0.05012888088822365, -0.5256509184837341, -0.027859510853886604, -0.23876582086086273, 0.14583760499954224, -0.03390120342373848, 0.07095400989055634, 0.22331751883029938, -0.1908295750617981, -0.045572664588689804, 0.14840912818908691, 0.10555746406316757, 0.11092385649681091, -0.07446375489234924, -0.06246909871697426, 0.14498350024223328, -0.3980557322502136, 0.3778225779533386, 0.13553547859191895, 0.12641103565692902, -0.034706953912973404, 0.11387743055820465, 0.2636614739894867, 0.15056100487709045, 0.5216032862663269, 0.023150617256760597, -0.0100326556712389, 0.049537744373083115, 0.03561154752969742, -0.34389621019363403, -0.19510367512702942, 0.2003539800643921, 0.23688313364982605, 0.2999700903892517, 0.047300636768341064, 0.11744479089975357, -0.36275720596313477, 0.506927490234375, -0.05430047586560249, 0.17574669420719147, -0.02427021972835064, -0.32469117641448975, 0.14750412106513977, 0.17114850878715515, -0.2194792479276657, 0.24103406071662903, 0.1912715882062912, -0.1260133683681488, 0.08838009089231491, 0.20260800421237946, -0.12479657679796219, 0.07009632885456085, 0.22439494729042053, 0.4852198362350464, -0.03546932712197304, -0.2386365681886673, 0.04840085282921791, -0.17712347209453583, -0.0702499970793724, -0.22585485875606537, -0.032905351370573044, -0.24750743806362152, 0.16039635241031647, -0.195603609085083, -0.6308540105819702, -0.3146687150001526, 0.04940636828541756, -0.5606018900871277, -0.2840155065059662, -0.05638597905635834, -0.20353108644485474, -0.2767913043498993, 0.22808848321437836, 0.11788439005613327, -0.04940330982208252, 0.030396653339266777, -0.430520623922348, -0.32630833983421326, -0.3265707492828369, -0.30222272872924805, 0.011531403288245201, 0.2494441568851471, 0.0808151438832283, 0.18638348579406738, -0.4000440239906311, 0.01878662221133709, -0.20995377004146576, -0.2723647654056549, 0.20215164124965668, -0.1723349690437317, -0.001046911347657442, -0.015286686830222607, 0.5179569721221924, -0.05641845986247063, -0.04760153591632843, 0.42228907346725464, -0.13991719484329224, -0.19399580359458923, 0.12102901190519333, 0.1419619470834732, 0.0817621648311615, 0.047134194523096085, -0.5049283504486084, -0.11541836708784103, -0.41232815384864807, -0.08730821311473846, 0.08327367156744003, 0.12980149686336517, 0.24180598556995392, 0.1741640269756317, 0.22126692533493042, 0.04403768479824066, 0.019462885335087776, 0.002939057070761919, -0.0079025998711586, 0.2857331931591034, -0.13340283930301666, -0.35046499967575073, 0.30518993735313416, -0.15460261702537537, 0.11446305364370346, 0.11895229667425156, -0.20393256843090057, -0.14644548296928406, 0.24334903061389923, 0.07755133509635925, -0.05395003780722618, 0.3316071927547455, 0.4205647110939026, -0.1318390816450119, 0.00018218693730887026, -0.1190086379647255, -0.05432233586907387, -0.13995012640953064, -0.17691561579704285, 0.3257744312286377, 0.2829326391220093, 0.3171047270298004, -0.018584003672003746, 0.853545606136322, -0.027524378150701523, 0.46959248185157776, 0.4642813205718994, 0.14702020585536957, 0.371467262506485, -0.41120579838752747, -0.11726992577314377, -0.09161031246185303, 0.0645119845867157, -0.1340082585811615, 0.16204144060611725, -0.07902108132839203, 0.05743739381432533, -0.609033465385437, -0.3949514925479889, -0.340440034866333, -0.22196726500988007, 0.157528355717659, -0.17006193101406097, 0.23052160441875458, 0.026509903371334076, 0.04172065109014511, 0.12402433902025223, 0.10183241963386536, 0.2508087158203125, 0.38754987716674805, 0.17453129589557648, 0.08806823194026947, -0.0849723070859909, -0.08758381009101868, -0.2883148491382599, 0.3871927559375763, -0.008419071324169636, 0.11234791576862335, -0.06527885794639587, -0.31050780415534973, 0.0889987200498581, 0.07300666719675064, 0.47447702288627625, -0.23698118329048157, -0.21405620872974396, 0.24448220431804657, -0.003357993671670556, -0.6545327305793762, -0.051858462393283844, 0.05347628518939018, 0.03396444767713547, -0.09032715857028961, 0.14652226865291595, -0.21055817604064941, -0.3132275640964508, 0.199184387922287, 0.4235740005970001, -0.11904726922512054, -0.20928074419498444, -0.5875600576400757, -0.07095716893672943, -0.478714257478714, -0.09497911483049393, -0.07519493252038956, -0.0542525090277195, 0.0713016465306282, 0.3650442063808441, 0.12600664794445038, -0.055611368268728256, 0.04076245799660683, -0.02850925736129284, 0.07015838474035263, -0.1987772434949875, -0.38432613015174866, 0.16298459470272064, 0.2838365435600281, -0.12936225533485413, 0.3129346966743469, -0.054582756012678146, -0.41716477274894714, -0.20309562981128693, -0.0646219253540039, 0.12951700389385223, 0.4219570457935333, 0.007473504636436701, -0.10248398780822754, 0.00937657430768013, -0.22136260569095612, 0.07714669406414032, -0.04078199341893196, 0.13671478629112244, -0.025544138625264168, -0.4656979441642761, -0.42600494623184204, 0.7275449633598328, 0.05730084702372551, -0.11025247722864151, 0.21951453387737274, 0.38650670647621155, -0.09612014144659042, 0.4131183922290802, 0.12050537019968033, 1.0968152284622192, -0.04036571457982063, 0.20549921691417694, 0.1531871259212494, 0.11459441483020782, 0.7433242797851562, -0.6203217506408691, 0.1198611631989479, -0.18332721292972565, 0.1576319932937622, -0.132231205701828, -0.010388019494712353, 0.6084548830986023, 0.07410396635532379, 0.039093296974897385, 0.5708757042884827, 0.16390110552310944, 0.2875722646713257, -0.0295884869992733, 0.16569678485393524, -0.26345136761665344, -0.06261112540960312, -0.4114673137664795, 0.03604332357645035, -0.10833292454481125, 0.7435296177864075, -0.13651348650455475, -0.17558808624744415, -0.3005129098892212, -0.48977747559547424, -0.09957720339298248, -0.011537129990756512, -0.23933933675289154, 0.11999721825122833, -0.2641690969467163, -0.32012346386909485, -0.0009493694524280727, 0.30398014187812805, 0.38449710607528687, -0.056782420724630356, -0.2318541705608368, 0.12346737086772919, -0.10619746893644333, -0.08800502121448517, -0.2654603123664856, -0.04032550007104874, 0.44115081429481506, -0.14804446697235107, -0.1679432988166809, 0.17145216464996338, -0.42443928122520447, -0.08795695751905441, -0.10845134407281876, 0.1357581466436386, 0.5168761014938354, 0.2983565330505371, -0.1830003410577774, 0.2779882550239563, 0.02780378796160221, 0.07895012199878693, 0.12270230054855347, -0.192829430103302, -0.0697578713297844, -0.15839993953704834, -0.2607499957084656, -0.12998457252979279, -0.07657715678215027, 0.238957941532135, 0.2075752168893814, -0.1365610808134079, 0.2965821325778961, 0.004832312930375338, -0.21537832915782928, -0.19358547031879425, 0.26200583577156067, 0.19688105583190918, -0.14081327617168427, -0.2442781627178192, 0.11700896173715591, 0.008075705729424953, -0.2089567631483078, 0.0671192854642868, 0.06791594624519348, -0.10685043036937714, -0.03821248933672905, -0.2769322693347931, -0.23906177282333374, 0.321349173784256, 0.010833396576344967, -0.20850200951099396, 0.037313349545001984, 0.1167580634355545, 0.5416672825813293, -0.08543329685926437, -0.2512434422969818, -0.23627100884914398, 0.13386404514312744, 0.2141522318124771, 0.587795078754425, 0.322928786277771, 0.06159712001681328, 0.020741457119584084, 0.035340528935194016, -0.007323447614908218, -0.3004600703716278, -0.1186438500881195, 0.04049202799797058, 0.20433084666728973, 0.17128990590572357, 0.03793083503842354, 0.21535660326480865, -0.2638361155986786, 0.2779994308948517, -0.1914842128753662, 0.04859134927392006, 0.29781994223594666, -0.1865316480398178, 0.24970853328704834, 0.12989240884780884, 0.37483736872673035, -0.3129650950431824, 0.18268460035324097, -0.24934859573841095, 0.19148598611354828, 0.2297150194644928, -0.031040914356708527, 0.3727419078350067, 0.11469092220067978, -0.13605928421020508, -0.13348208367824554, -0.18406984210014343, -0.0747605711221695, -0.0018254452152177691, -0.1629541963338852, 0.05076354369521141, -0.04496469721198082, 0.12636572122573853, 0.17983341217041016, -0.245646134018898, -0.05948500335216522, 0.25690340995788574, 0.13561522960662842, -0.38401755690574646, 0.11471793800592422, 0.44624412059783936, -0.23065437376499176, -0.14445964992046356, 0.3152911365032196, 0.25573575496673584, 0.06965260952711105, 0.28648751974105835, 0.07936355471611023, 0.10909254103899002, -0.08336558192968369, 0.36048439145088196, 0.3540111482143402, 0.13398054242134094, 0.16992859542369843, 0.11931055039167404, -0.03942178562283516, 0.12356080114841461, 0.6183950901031494, -0.35979709029197693, 0.5293434858322144, 0.13832931220531464, 0.22348695993423462, -0.2095670849084854, -0.17198731005191803, 0.4043191373348236, 0.3491848409175873, 0.030741063877940178, -0.06372345983982086, -0.00981203094124794, -0.015164989046752453, -0.03834490478038788, -0.04398338869214058, -0.15588487684726715, 0.1526431143283844, -0.023810504004359245, 0.1840653270483017, 0.060698654502630234, -0.2756789028644562, -0.08986257761716843, -0.004263995215296745, 0.05837082862854004, -0.3857104182243347, 0.20083777606487274, 0.1657794713973999, -0.08248324692249298, -0.03357801213860512, 0.28675577044487, -0.061028361320495605, 0.1891622543334961, -0.08924363553524017, -0.15627187490463257, 0.061296314001083374, -0.22889788448810577, 0.07492566108703613, 0.07885923981666565, 0.24769753217697144, 0.26213377714157104, -0.12030129879713058, -0.021571127697825432, -0.01373253483325243, -0.03871699422597885, 0.13281743228435516, 0.1091323271393776, -0.09452212601900101, 0.23170970380306244, 0.22262915968894958, 0.06452908366918564, -0.17214925587177277, -0.04326089099049568, 0.13900937139987946, 0.003363650292158127, -0.418885201215744, 0.044282592833042145, -0.42331239581108093, -0.14237479865550995, -0.45994463562965393, 0.1326020359992981, -0.48963654041290283, 0.06486332416534424, 0.14200668036937714, 0.21484631299972534, -0.13762123882770538, -0.3698987066745758, 0.036853957921266556, -0.15935370326042175, 0.25689372420310974, 0.3579009771347046, 0.11445171386003494, -0.29539674520492554, -0.18135416507720947, -0.6622404456138611, 0.08937182277441025, -0.32087433338165283, 0.18054279685020447, -0.16690251231193542, -0.10492546856403351, 0.24385306239128113, 0.3968713879585266, -0.013599511235952377, 0.07209452986717224, -0.08048320561647415, 0.03214959055185318, -0.3542993366718292, -0.11914964765310287, -0.09470562636852264, 0.12538570165634155, -0.13264639675617218, -0.24550440907478333, 0.08598106354475021, 0.022790104150772095, -0.007010574918240309, -0.10176319628953934, -0.3187878727912903, 0.4922678470611572, -0.05745870620012283, 0.5561667680740356, 0.031735993921756744, 0.33171889185905457, 0.08109605312347412, -0.15967094898223877, 0.04839346185326576, 0.04617704823613167, -0.21012181043624878, 0.27674391865730286, 0.04032540321350098, 0.24431952834129333, -0.20232148468494415, -0.13895003497600555, -0.31060341000556946, 0.5070671439170837, -0.0894300565123558, 0.08411790430545807, -0.253494530916214, -0.08174104243516922, -0.025749536231160164, 0.16670991480350494, -0.11382868885993958, 0.03136872500181198, -0.029689094051718712, -0.15304113924503326, -0.5479578375816345, -0.054361287504434586, 0.40104299783706665, -0.640513002872467, -0.35189288854599, 0.042491912841796875, 0.2713647484779358, -0.00686826603487134, -0.07196630537509918, -0.4508552849292755, 0.05614175274968147, 0.2868233621120453, 0.20988088846206665, 0.09258528053760529, -0.056256137788295746, -0.23991456627845764, -0.13446128368377686, -0.039882857352495193, -0.43496233224868774, -0.12768276035785675, -0.08723186701536179, -0.07558021694421768, -0.3943345248699188 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
Thanks for your reply! I understood. I tried again with installing apache-beam, add ` beam_runner="DirectRunner"` and an anther `mwparserfromhell` is also required so I installed it. but, it also failed. It exited 1 without error message. ```py import datasets # BTW, 20200501.ja doesn't exist at wikipedia, so I specified date argument wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner") print(wiki) ``` and its log is below ``` Using custom data configuration 20210120.ja Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Killed ``` I also tried on another machine because it may caused by insufficient resources. ``` $ python main.py Using custom data configuration 20210120.ja Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "main.py", line 3, in <module> wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner") File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/load.py", line 609, in load_dataset builder_instance.download_and_prepare( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 526, in download_and_prepare self._download_and_prepare( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 1069, in _download_and_prepare pipeline_results = pipeline.run() File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/pipeline.py", line 561, in run return self.runner.run_pipeline(self, self._options) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/direct/direct_runner.py", line 126, in run_pipeline return runner.run_pipeline(pipeline, options) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 182, in run_pipeline self._latest_run_result = self.run_via_runner_api( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 193, in run_via_runner_api return self.run_stages(stage_context, stages) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 358, in run_stages stage_results = self._run_stage( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 549, in _run_stage last_result, deferred_inputs, fired_timers = self._run_bundle( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 595, in _run_bundle result, splits = bundle_manager.process_bundle( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 888, in process_bundle self._send_input_to_worker(process_bundle_id, transform_id, elements) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 765, in _send_input_to_worker data_out.write(byte_stream) File "apache_beam/coders/stream.pyx", line 42, in apache_beam.coders.stream.OutputStream.write File "apache_beam/coders/stream.pyx", line 47, in apache_beam.coders.stream.OutputStream.write File "apache_beam/coders/stream.pyx", line 109, in apache_beam.coders.stream.OutputStream.extend AssertionError: OutputStream realloc failed. ```
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
279
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? Thanks for your reply! I understood. I tried again with installing apache-beam, add ` beam_runner="DirectRunner"` and an anther `mwparserfromhell` is also required so I installed it. but, it also failed. It exited 1 without error message. ```py import datasets # BTW, 20200501.ja doesn't exist at wikipedia, so I specified date argument wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner") print(wiki) ``` and its log is below ``` Using custom data configuration 20210120.ja Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Killed ``` I also tried on another machine because it may caused by insufficient resources. ``` $ python main.py Using custom data configuration 20210120.ja Downloading and preparing dataset wikipedia/20210120.ja-date=20210120,language=ja (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to ./datasets/wikipedia/20210120.ja-date=20210120,language=ja/0.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "main.py", line 3, in <module> wiki = datasets.load_dataset("wikipedia", language="ja", date="20210120", cache_dir="./datasets", beam_runner="DirectRunner") File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/load.py", line 609, in load_dataset builder_instance.download_and_prepare( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 526, in download_and_prepare self._download_and_prepare( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/datasets/builder.py", line 1069, in _download_and_prepare pipeline_results = pipeline.run() File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/pipeline.py", line 561, in run return self.runner.run_pipeline(self, self._options) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/direct/direct_runner.py", line 126, in run_pipeline return runner.run_pipeline(pipeline, options) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 182, in run_pipeline self._latest_run_result = self.run_via_runner_api( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 193, in run_via_runner_api return self.run_stages(stage_context, stages) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 358, in run_stages stage_results = self._run_stage( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 549, in _run_stage last_result, deferred_inputs, fired_timers = self._run_bundle( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 595, in _run_bundle result, splits = bundle_manager.process_bundle( File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 888, in process_bundle self._send_input_to_worker(process_bundle_id, transform_id, elements) File "/home/miyamonz/.cache/pypoetry/virtualenvs/try-datasets-4t4JWXxu-py3.8/lib/python3.8/site-packages/apache_beam/runners/portability/fn_api_runner/fn_runner.py", line 765, in _send_input_to_worker data_out.write(byte_stream) File "apache_beam/coders/stream.pyx", line 42, in apache_beam.coders.stream.OutputStream.write File "apache_beam/coders/stream.pyx", line 47, in apache_beam.coders.stream.OutputStream.write File "apache_beam/coders/stream.pyx", line 109, in apache_beam.coders.stream.OutputStream.extend AssertionError: OutputStream realloc failed. ```
[ 0.09179402887821198, 0.07459907233715057, 0.01958603411912918, 0.25184643268585205, 0.25708264112472534, 0.04090539366006851, 0.3200165629386902, 0.34807121753692627, 0.16672638058662415, 0.19595204293727875, 0.21741501986980438, 0.048891402781009674, -0.09746187925338745, -0.2695726156234741, 0.09727134555578232, -0.3023028075695038, 0.24641339480876923, 0.040872178971767426, -0.16444170475006104, -0.23304031789302826, -0.3931181728839874, 0.13409312069416046, -0.37059882283210754, 0.03509094566106796, -0.12962299585342407, 0.3397008776664734, -0.07808153331279755, 0.06381501257419586, 0.017325354740023613, -0.27001023292541504, 0.045358020812273026, -0.3246159851551056, 0.12151242047548294, 0.37393227219581604, -0.00011732041457435116, 0.13438139855861664, 0.49237698316574097, -0.2628592848777771, -0.38367193937301636, -0.2569674849510193, -0.14033541083335876, -0.4439758360385895, 0.04482891038060188, -0.44759395718574524, -0.18676108121871948, -0.26974910497665405, 0.05320053920149803, -0.3586481511592865, 0.3953631818294525, 0.2671945095062256, 0.1607774794101715, 0.26479098200798035, 0.18990276753902435, -0.04180021956562996, 0.41822317242622375, 0.05589231476187706, -0.2807169556617737, 0.0011084268335253, -0.077878437936306, 0.10426237434148788, 0.03288436308503151, 0.3811948299407959, -0.26524943113327026, 0.035182710736989975, 0.2196081131696701, -0.29890692234039307, 0.02757755108177662, -0.5322271585464478, 0.18910914659500122, 0.16665278375148773, 0.7942332625389099, -0.3169867694377899, -0.13599468767642975, 0.013491244986653328, -0.03996707871556282, 0.08342231065034866, 0.2887856662273407, 0.11492177098989487, -0.1483086794614792, -0.039582446217536926, 0.44545769691467285, -0.27584367990493774, -0.12137968093156815, 0.31046074628829956, 0.09709139168262482, 0.48009347915649414, 0.028074152767658234, 0.28524067997932434, -0.22206731140613556, -0.160982146859169, -0.01938273385167122, -0.3305306136608124, 0.2255713939666748, 0.38685375452041626, -0.27116167545318604, 0.00911126658320427, 0.030391113832592964, 0.17015279829502106, 0.0020981035195291042, -0.20760706067085266, -0.2619358003139496, 0.10038143396377563, 0.1692400723695755, -0.012388239614665508, 0.08905220031738281, 0.15290001034736633, 0.3734171390533447, 0.11216698586940765, 0.2206747978925705, -0.17101086676120758, 0.00562760466709733, 0.03401239216327667, -0.05216715857386589, -0.34925252199172974, -0.32364538311958313, 0.18789464235305786, 0.3179502487182617, -0.16212905943393707, -0.08920999616384506, 0.06426486372947693, -0.6158859133720398, -0.28765684366226196, -0.22659319639205933, 0.35018378496170044, 0.09443333745002747, 0.3287694454193115, 0.15277166664600372, 0.29025131464004517, -0.20452547073364258, -0.39571213722229004, -0.05425841733813286, 0.4753563404083252, -0.36454877257347107, 0.24096325039863586, 0.08739404380321503, 0.1367834061384201, 0.15063460171222687, -0.1451440304517746, -0.04528256878256798, 0.03755144029855728, -0.03712739795446396, 0.0036603359039872885, -0.12303218990564346, 0.3735716938972473, 0.13527554273605347, 0.5192129015922546, 0.22129002213478088, -0.0427360013127327, -0.09363323450088501, 0.14303253591060638, -0.18217359483242035, -0.25476425886154175, 0.04098803177475929, 0.0198264978826046, -0.3785461485385895, 0.16907374560832977, 0.041862815618515015, -0.15292148292064667, -0.0193211417645216, -0.013738315552473068, 0.17957144975662231, 0.06592212617397308, -0.07752790302038193, -0.24829356372356415, 0.19282281398773193, 0.7632591128349304, -0.18378397822380066, -0.007170031312853098, -0.03868796303868294, -0.09451809525489807, -0.13374745845794678, -0.185173898935318, -0.010763755068182945, 0.3875415027141571, -0.2644920349121094, -0.06522288918495178, 0.6910920739173889, -0.5287433862686157, -0.004834928549826145, 0.19563046097755432, -0.011185778304934502, 0.03389905393123627, 0.24928198754787445, -0.10676314681768417, -0.29233595728874207, -0.1760912984609604, -0.25963541865348816, 0.0050268759950995445, 0.13042068481445312, -0.03455403074622154, -0.3318171799182892, -0.07145915180444717, 0.08761551231145859, 0.2745756506919861, 0.37232404947280884, 0.029109036549925804, 0.28891971707344055, 0.6823456287384033, 0.12769734859466553, -0.06684186309576035, 0.20654122531414032, 0.5193424224853516, -0.08715297281742096, -0.02277231588959694, 0.1958390176296234, -0.00880492478609085, -0.23560172319412231, 0.2555718421936035, -0.18815070390701294, 0.25311392545700073, 0.00755273224785924, 0.08164404332637787, -0.1720116287469864, -0.1806827336549759, -0.3440960645675659, -0.21444793045520782, 0.0655369684100151, 0.016830356791615486, 0.08827147632837296, 0.3130510449409485, -0.3127641975879669, 0.439604252576828, -0.19769257307052612, 0.013463810086250305, -0.4467652142047882, 0.08120207488536835, -0.13442474603652954, -0.04010230675339699, -0.0064325230196118355, 0.09865671396255493, 0.37005624175071716, -0.225478857755661, -0.12511146068572998, 0.136841282248497, 0.09447145462036133, -0.011342388577759266, -0.050103191286325455, -0.11074019968509674, 0.12070118635892868, -0.3321649432182312, 0.4237886965274811, 0.13219164311885834, 0.1378665268421173, -0.10639481991529465, 0.15186353027820587, 0.08761811256408691, 0.30216023325920105, 0.43137019872665405, 0.0128357307985425, -0.03549803048372269, -0.08449729532003403, -0.00232686847448349, -0.2098851501941681, -0.2393539547920227, 0.28605082631111145, 0.3622850775718689, 0.21265530586242676, -0.015860214829444885, 0.16495147347450256, -0.35412243008613586, 0.43650925159454346, 0.04144255816936493, 0.23511408269405365, -0.0608065202832222, -0.45020484924316406, 0.27834829688072205, 0.0984184518456459, -0.1064569279551506, 0.36708933115005493, 0.13847385346889496, -0.23723819851875305, 0.1293947398662567, 0.22790153324604034, -0.05757930874824524, 0.09220706671476364, 0.15654392540454865, 0.45232999324798584, 0.1082720011472702, -0.2713349163532257, 0.043404046446084976, -0.038235943764448166, -0.12308218330144882, -0.0780402198433876, 0.11596298962831497, -0.28225454688072205, -0.05891171470284462, -0.3727225661277771, -0.4914530813694, -0.3270529508590698, 0.07182320952415466, -0.4088899791240692, -0.2334049940109253, -0.16883496940135956, -0.12228206545114517, -0.13460597395896912, 0.39309579133987427, 0.2123803049325943, -0.2270432561635971, -0.06811995059251785, -0.39594826102256775, -0.20923316478729248, -0.20326773822307587, -0.26831263303756714, -0.039097972214221954, 0.2976371943950653, 0.18953654170036316, 0.19257000088691711, -0.26759475469589233, -0.095904141664505, -0.20994479954242706, -0.10030200332403183, 0.1910177767276764, 0.008341963402926922, -0.0994827151298523, -0.051217980682849884, 0.45691171288490295, -0.0361207090318203, 0.04972695931792259, 0.3699606657028198, -0.00848383642733097, -0.14526525139808655, 0.1777399331331253, 0.005220097489655018, 0.15326820313930511, -0.027591226622462273, -0.521142840385437, -0.24537323415279388, -0.3921807110309601, -0.28986606001853943, 0.22465217113494873, 0.05221781134605408, 0.013409160077571869, 0.15669243037700653, 0.15274184942245483, -0.04225983843207359, 0.06684460490942001, 0.08918503671884537, 0.09168437868356705, 0.4246000051498413, -0.14916440844535828, -0.27965688705444336, 0.34238746762275696, -0.19028617441654205, 0.02898619882762432, 0.09700680524110794, -0.1730145364999771, -0.019344571977853775, 0.313902884721756, -0.11638447642326355, -0.06523283571004868, 0.2874514162540436, 0.5190107226371765, -0.1943497508764267, 0.09282533824443817, -0.06901869922876358, 0.00834532268345356, -0.14440055191516876, -0.24414923787117004, 0.42452186346054077, 0.29740920662879944, 0.3056081533432007, -0.04353155568242073, 0.7822397947311401, 0.010860159993171692, 0.2556968033313751, 0.4260963201522827, 0.07629931718111038, 0.2692801356315613, -0.348682165145874, -0.04999466612935066, 0.01049130316823721, 0.254406213760376, -0.03231603279709816, 0.11126498132944107, -0.059825558215379715, 0.07622644305229187, -0.6192241907119751, -0.36980846524238586, -0.29949983954429626, -0.21590645611286163, 0.10909843444824219, -0.27414005994796753, 0.19104287028312683, -0.0487075112760067, 0.09501031041145325, 0.12376654148101807, 0.020704640075564384, 0.21883262693881989, 0.46475282311439514, 0.0035702313762158155, 0.06393546611070633, -0.02340349368751049, -0.09221844375133514, -0.2643963098526001, 0.3273770809173584, -0.04211869835853577, 0.13581769168376923, -0.09478774666786194, -0.23619124293327332, 0.08948098123073578, 0.06319849193096161, 0.30928412079811096, -0.4035584628582001, -0.16062234342098236, 0.3869542181491852, 0.07807523012161255, -0.653565526008606, -0.17584973573684692, 0.060487862676382065, -0.01539490558207035, -0.017503200098872185, 0.010282301343977451, -0.1933237463235855, -0.24469977617263794, 0.29499971866607666, 0.42851749062538147, -0.1423184871673584, -0.3749655783176422, -0.4727920591831207, 0.028186991810798645, -0.4894368648529053, -0.18839296698570251, -0.13796061277389526, 0.07885391265153885, 0.24215182662010193, 0.21841658651828766, 0.06510455906391144, -0.09244216233491898, 0.02369431033730507, -0.11270301043987274, 0.11266445368528366, -0.1607258915901184, -0.16105417907238007, -0.025506682693958282, 0.326090544462204, -0.1186315193772316, 0.06313831359148026, 0.10467220097780228, -0.2547031044960022, -0.049939513206481934, -0.01698390580713749, 0.07064275443553925, 0.22647549211978912, -0.015143589116632938, -0.0195692777633667, -0.1449168622493744, -0.1970619410276413, 0.10597892105579376, -0.12173566967248917, 0.07832562178373337, -0.24915556609630585, -0.39101383090019226, -0.34800440073013306, 0.7426955699920654, 0.027140218764543533, -0.015964386984705925, 0.34290334582328796, 0.20170100033283234, -0.15146687626838684, 0.3397684693336487, 0.04742925614118576, 0.9796894788742065, 0.01418363582342863, 0.0063996524550020695, 0.022395312786102295, 0.10224763303995132, 0.8341014981269836, -0.6507039070129395, 0.06670338660478592, -0.20457723736763, 0.22863224148750305, -0.05457727983593941, -0.0850023627281189, 0.5718109011650085, 0.11323385685682297, 0.007886677049100399, 0.6712855696678162, 0.14033690094947815, 0.4805460572242737, -0.08163941651582718, 0.2062828242778778, -0.16361507773399353, -0.03533909097313881, -0.3509258031845093, 0.01820559613406658, -0.172103613615036, 0.8090731501579285, -0.16342955827713013, -0.09579627215862274, -0.2525312304496765, -0.3281346261501312, -0.2581402659416199, 0.1180366650223732, -0.25288769602775574, 0.13647808134555817, -0.3172071576118469, -0.3505346179008484, 0.07233759015798569, 0.35978570580482483, 0.4233638644218445, 0.016625719144940376, -0.16735735535621643, 0.1833547204732895, -0.07747052609920502, -0.15857067704200745, -0.21630805730819702, 0.10754220187664032, 0.22580315172672272, -0.13343390822410583, -0.18077127635478973, 0.16909795999526978, -0.34259212017059326, -0.11935646086931229, -0.011339114978909492, 0.022790297865867615, 0.6689757704734802, 0.2682598829269409, -0.2767092287540436, 0.35537558794021606, 0.12834250926971436, 0.06931080669164658, 0.11031614243984222, -0.21177799999713898, -0.026652107015252113, 0.02782491408288479, -0.3508475422859192, -0.03417084738612175, -0.12922212481498718, 0.3872738778591156, 0.23113322257995605, -0.1130409985780716, 0.33091092109680176, 0.12514333426952362, -0.12336722761392593, -0.23322038352489471, 0.2853115499019623, 0.17195317149162292, -0.2076357901096344, -0.2752786874771118, 0.2128847986459732, 0.17036765813827515, -0.09839654713869095, 0.03866490721702576, 0.03351941704750061, -0.0663079097867012, 0.039546359330415726, -0.268111914396286, -0.13349033892154694, 0.27054527401924133, -0.038837749511003494, -0.18977466225624084, -0.06892628222703934, 0.21415051817893982, 0.4571785628795624, -0.2815116047859192, -0.19373030960559845, -0.25390833616256714, 0.03399387747049332, 0.12561392784118652, 0.49588996171951294, 0.3753308355808258, -0.005188284441828728, 0.0660267248749733, 0.03358687087893486, -0.0018728644354268909, -0.1946713775396347, -0.10273953527212143, 0.01613817736506462, 0.21424144506454468, 0.2061050534248352, 0.16325227916240692, 0.1095704659819603, -0.44723445177078247, 0.21731919050216675, -0.1595725119113922, -0.022316092625260353, 0.2547008693218231, -0.1646428257226944, 0.28653010725975037, 0.1736476570367813, 0.3211047351360321, -0.5296338796615601, 0.214291512966156, -0.18174859881401062, 0.3453170955181122, 0.19472625851631165, 0.01709982380270958, 0.48532581329345703, 0.13844086229801178, -0.4599793553352356, -0.17733655869960785, -0.3498978614807129, -0.031279973685741425, 0.03236584737896919, -0.11729657649993896, 0.04189188778400421, -0.018613500520586967, 0.05211886763572693, 0.1834573894739151, -0.27588826417922974, -0.05913045257329941, 0.284820020198822, 0.10280976444482803, -0.29746392369270325, 0.17540684342384338, 0.4890998303890228, -0.09819339215755463, -0.1404958963394165, 0.23337547481060028, 0.14269417524337769, -0.09167098253965378, 0.3412097990512848, 0.1548689603805542, 0.16315187513828278, -0.17873211205005646, 0.20530898869037628, 0.18409626185894012, 0.29486706852912903, 0.15760011970996857, 0.04752872884273529, -0.05383835360407829, 0.08801508694887161, 0.653954267501831, -0.28586459159851074, 0.49249938130378723, 0.10118690133094788, 0.16773013770580292, -0.21161940693855286, -0.2416175752878189, 0.35958191752433777, 0.42145872116088867, 0.0517486035823822, -0.14439241588115692, -0.12379622459411621, -0.07737161964178085, -0.014710522256791592, -0.01969107799232006, -0.2302417755126953, 0.12901799380779266, 0.022481124848127365, 0.2884569764137268, -0.1276952028274536, -0.2530803382396698, -0.0551304966211319, 0.029763082042336464, 0.05550330504775047, -0.3724512457847595, 0.15340079367160797, 0.25482919812202454, -0.11216691136360168, -0.033940449357032776, 0.3947480022907257, 0.0025762547738850117, 0.05063014104962349, -0.10417649149894714, -0.026667721569538116, -0.0051417043432593346, -0.18535645306110382, -0.06031831353902817, 0.11110422760248184, 0.22661219537258148, 0.3590022325515747, -0.15472084283828735, -0.07795115560293198, 0.12682074308395386, -0.025548109784722328, 0.18806977570056915, 0.06043186038732529, -0.15554942190647125, 0.20814089477062225, 0.24350030720233917, 0.04897132143378258, -0.15248475968837738, -0.04124520719051361, 0.24149754643440247, 0.07034922391176224, -0.27233514189720154, 0.0677775964140892, -0.3573555052280426, 0.0387381874024868, -0.42631518840789795, 0.25833576917648315, -0.5642669200897217, 0.06937084347009659, 0.012265989556908607, 0.3249206244945526, -0.13828018307685852, -0.3196532428264618, 0.011013771407306194, -0.2432868480682373, 0.13480709493160248, 0.22486577928066254, 0.11859536170959473, -0.42630717158317566, -0.3554024398326874, -0.486743301153183, 0.04261964187026024, -0.3128660023212433, 0.13087263703346252, -0.2051987200975418, 0.0502479150891304, 0.014669547788798809, 0.3552873730659485, 0.04617945849895477, 0.22698628902435303, -0.11860813945531845, 0.243399515748024, -0.3425809442996979, -0.17019912600517273, -0.0914427861571312, 0.11009403318166733, -0.0911928042769432, -0.2694915533065796, -0.030606035143136978, -0.22600826621055603, -0.02429855428636074, -0.10804864019155502, -0.4202313721179962, 0.5537156462669373, -0.09474769979715347, 0.5825887322425842, -0.14593414962291718, 0.30086225271224976, 0.07137634605169296, -0.1396193653345108, -0.004672936629503965, -0.010665875859558582, -0.0691242590546608, 0.15443474054336548, -0.05374790355563164, 0.2252960056066513, -0.20206251740455627, -0.01790049485862255, -0.34856879711151123, 0.4514453113079071, -0.2499372810125351, 0.1921243667602539, -0.13749472796916962, 0.0063449000008404255, 0.0350947305560112, 0.27502015233039856, -0.03530585765838623, -0.07540125399827957, -0.16488876938819885, 0.006583173759281635, -0.5357226133346558, -0.018070025369524956, 0.2722669839859009, -0.49967533349990845, -0.21721899509429932, -0.03324407339096069, 0.34547778964042664, -0.14042896032333374, -0.026226716116070747, -0.41893061995506287, 0.14732159674167633, 0.37142378091812134, 0.15801478922367096, 0.13906867802143097, -0.01153597142547369, -0.1583789736032486, -0.07849015295505524, 0.03561082109808922, -0.5600672960281372, -0.16443976759910583, -0.02577546425163746, -0.0694187730550766, -0.2995333969593048 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
Hi @miyamonz, I tried replicating this issue using the same snippet used by you. I am able to download the dataset without any issues, although I stopped it in the middle because the dataset is huge. Based on a similar issue [here](https://github.com/google-research/fixmatch/issues/23), it could be related to your environment setup, although I am just guessing here. Can you share these details?
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
61
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? Hi @miyamonz, I tried replicating this issue using the same snippet used by you. I am able to download the dataset without any issues, although I stopped it in the middle because the dataset is huge. Based on a similar issue [here](https://github.com/google-research/fixmatch/issues/23), it could be related to your environment setup, although I am just guessing here. Can you share these details?
[ -0.0868910402059555, 0.1544126272201538, 0.03492140397429466, 0.25117895007133484, 0.3533321022987366, 0.1083712950348854, 0.32128459215164185, 0.4499053955078125, 0.37346169352531433, 0.008810359053313732, 0.10232489556074142, 0.006331444252282381, -0.009907284751534462, -0.022559499368071556, -0.020793205127120018, -0.25478309392929077, 0.17211312055587769, 0.0012148491805419326, -0.21304889023303986, -0.29890236258506775, -0.3872271776199341, 0.08667457103729248, -0.32759779691696167, 0.015958303585648537, -0.05216565728187561, 0.1556018739938736, -0.027971643954515457, 0.15741215646266937, 0.040107034146785736, -0.1749258041381836, 0.21038362383842468, -0.12499450147151947, -0.050544898957014084, 0.30433812737464905, -0.00010792796092573553, 0.07012303173542023, 0.4934642016887665, -0.21940375864505768, -0.3645657002925873, -0.4068613350391388, -0.08876680582761765, -0.34729859232902527, 0.021476121619343758, -0.41081371903419495, -0.16098462045192719, -0.16923774778842926, 0.02758478745818138, -0.4244210422039032, 0.2876332700252533, 0.2971319854259491, 0.25581473112106323, 0.3765884041786194, 0.18530204892158508, -0.09023868292570114, 0.4627019762992859, -0.25086742639541626, -0.1734851449728012, 0.152274027466774, 0.10261532664299011, -0.013380746357142925, 0.09269457310438156, 0.4647524952888489, -0.3321601152420044, 0.12292825430631638, 0.39789077639579773, -0.21040932834148407, -0.10996635258197784, -0.5223601460456848, 0.19116823375225067, 0.2853013277053833, 0.8053058385848999, -0.3187532126903534, -0.21362407505512238, -0.06393332034349442, -0.04662225395441055, 0.09355007112026215, 0.1669071465730667, 0.19600452482700348, -0.13857032358646393, 0.01322099193930626, 0.2564674913883209, -0.27760767936706543, -0.11295085400342941, 0.25479674339294434, 0.020699920132756233, 0.43454375863075256, 0.11305160075426102, 0.2906375825405121, -0.12133337557315826, -0.1309853196144104, 0.06010950729250908, -0.3038208484649658, 0.17902834713459015, 0.42273804545402527, -0.3936535120010376, 0.09836716949939728, 0.0753653272986412, 0.03148753568530083, 0.20474788546562195, -0.009700373746454716, -0.17314845323562622, 0.27011021971702576, 0.17812903225421906, 0.05584980919957161, 0.1880665123462677, 0.24253623187541962, 0.2048570215702057, 0.2180304080247879, 0.37918326258659363, -0.09181907773017883, -0.0715208500623703, 0.021390212699770927, 0.008791644126176834, -0.3030607998371124, -0.25515449047088623, 0.2065252959728241, 0.3416896462440491, -0.2393629401922226, -0.21134617924690247, 0.1680411398410797, -0.393300324678421, -0.19529080390930176, -0.18903562426567078, 0.4464723467826843, 0.09038233757019043, 0.33862733840942383, 0.12707649171352386, 0.3620224893093109, -0.2277979999780655, -0.4340919554233551, -0.1698252558708191, 0.28328394889831543, -0.2518636882305145, 0.10067329555749893, 0.1977664977312088, 0.11700852960348129, 0.142878457903862, -0.15129297971725464, 0.04985575005412102, 0.06723573803901672, 0.11983805894851685, 0.02821243554353714, -0.0978279709815979, 0.33946797251701355, 0.14406992495059967, 0.5026988983154297, 0.19716212153434753, -0.07732126861810684, -0.19796262681484222, 0.06902319937944412, -0.33564120531082153, -0.08760693669319153, 0.03002086840569973, 0.14548291265964508, -0.41066110134124756, 0.13924823701381683, 0.027698855847120285, -0.1609511375427246, -0.026057075709104538, -0.13074897229671478, 0.0702846348285675, -0.03363006189465523, -0.07188748568296432, -0.36416834592819214, 0.19075599312782288, 0.7568343877792358, -0.11717932671308517, -0.05078810453414917, 0.14922046661376953, -0.03269773721694946, -0.03467690572142601, 0.062121156603097916, -0.017994945868849754, 0.08975564688444138, -0.2658485770225525, 0.049391746520996094, 0.530124306678772, -0.4971590042114258, -0.37459099292755127, 0.14922302961349487, -0.13037383556365967, 0.06741373240947723, 0.19347026944160461, 0.09816594421863556, -0.22339235246181488, -0.04914376884698868, -0.07370731979608536, 0.32162100076675415, 0.12207049876451492, 0.11276936531066895, -0.38052940368652344, -0.08599109202623367, 0.20657740533351898, 0.15556813776493073, 0.2180371880531311, 0.03789183869957924, 0.2462633103132248, 0.17644618451595306, 0.10074713081121445, -0.2408953309059143, 0.23001728951931, 0.4026344120502472, 0.08224575221538544, -0.07687258720397949, 0.2185536026954651, -0.047287553548812866, -0.34275585412979126, 0.3855520486831665, -0.2262902408838272, 0.2532649040222168, -0.1266784816980362, 0.03232785314321518, -0.24582916498184204, -0.08158524334430695, -0.3950969874858856, -0.3153591752052307, 0.1326068490743637, -0.08610507845878601, 0.1729106307029724, 0.4195108711719513, -0.09047351777553558, 0.5479962229728699, -0.08068210631608963, 0.08697667717933655, -0.38022148609161377, 0.35317543148994446, -0.15686698257923126, -0.022321157157421112, 0.08999695628881454, 0.1627470999956131, 0.21668098866939545, -0.20490114390850067, -0.14718487858772278, 0.24538744986057281, 0.03161262348294258, 0.17538145184516907, 0.06561000645160675, -0.13634823262691498, 0.19812604784965515, -0.41742992401123047, 0.28111693263053894, 0.30596330761909485, 0.20191890001296997, 0.0005688901874236763, -0.024859493598341942, 0.3194137513637543, 0.2762657105922699, 0.344326376914978, 0.10012219101190567, 0.14198105037212372, 0.17406663298606873, -0.11565317958593369, -0.11842454224824905, -0.20509852468967438, 0.38283732533454895, 0.20414602756500244, 0.2647693455219269, -0.0008264219504781067, 0.05272597447037697, -0.19290299713611603, 0.4928576350212097, -0.03285262733697891, 0.3465655446052551, -0.04349310323596001, -0.4553966224193573, 0.14105558395385742, 0.07285623997449875, 0.034684181213378906, 0.3330879211425781, 0.13983336091041565, -0.16547109186649323, 0.1523960381746292, 0.1527923345565796, -0.08113303780555725, 0.07035783678293228, 0.04019775614142418, 0.2829316258430481, 0.1309213936328888, -0.03618805482983589, 0.05025850236415863, -0.1252748966217041, -0.006771482527256012, -0.2078784853219986, 0.1457994282245636, -0.2919568121433258, 0.06633403897285461, -0.3126637935638428, -0.3919145166873932, -0.18842314183712006, 0.25041064620018005, -0.47329217195510864, -0.3105261027812958, -0.1453038901090622, -0.02801343984901905, -0.19862239062786102, 0.24723848700523376, -0.0033546211197972298, -0.19253212213516235, 0.16338606178760529, -0.4583186209201813, -0.16511736810207367, -0.37624403834342957, -0.3328978717327118, 0.017306966707110405, 0.3358549177646637, 0.1337057501077652, 0.27845731377601624, -0.2997745871543884, 0.051595140248537064, -0.41773754358291626, -0.2721676230430603, 0.15817511081695557, -0.034639060497283936, 0.03609213978052139, 0.0005482651758939028, 0.44274893403053284, -0.004896917380392551, 0.03651077672839165, 0.3516403138637543, -0.23543991148471832, -0.1929250806570053, 0.3119667172431946, 0.02826615981757641, -0.013380136340856552, 0.04112302511930466, -0.6374548077583313, -0.30700603127479553, -0.4252646267414093, -0.13914936780929565, 0.048938121646642685, -0.010833164677023888, 0.05165083706378937, 0.14160752296447754, -0.0006676449556834996, 0.03202250599861145, -0.00825559999793768, -0.014078440144658089, 0.13274966180324554, 0.5062491297721863, -0.1456734836101532, -0.5656459331512451, 0.31941401958465576, -0.16033464670181274, 0.06243125721812248, 0.19569270312786102, -0.19556479156017303, -0.06202661991119385, 0.13756653666496277, -0.036584530025720596, 0.025997301563620567, 0.2926805317401886, 0.39390313625335693, -0.25718048214912415, 0.038218483328819275, -0.13654550909996033, 0.006215382367372513, -0.043744608759880066, -0.011489581316709518, 0.2950166165828705, 0.2645328640937805, 0.17767411470413208, -0.03647301718592644, 0.7936728000640869, 0.007354142609983683, 0.21002456545829773, 0.4813818633556366, 0.07731863856315613, 0.29366177320480347, -0.3421629071235657, -0.1942971646785736, 0.00832988042384386, -0.002757464535534382, 0.014970791526138783, 0.18731845915317535, -0.08184630423784256, -0.13556329905986786, -0.644277036190033, -0.358830064535141, -0.27664586901664734, -0.32262319326400757, 0.04532017931342125, -0.2160211205482483, 0.18436069786548615, 0.2023991495370865, 0.09386029094457626, 0.07389900833368301, -0.10654787719249725, 0.23401647806167603, 0.2605079412460327, -0.17595452070236206, 0.09295503050088882, -0.11183200031518936, -0.17694759368896484, -0.32822781801223755, 0.41581210494041443, 0.022623710334300995, 0.2022845596075058, 0.0030379609670490026, -0.23177658021450043, 0.08566934615373611, 0.018948469310998917, 0.46921613812446594, -0.31201037764549255, -0.043758369982242584, 0.12160340696573257, 0.2594102621078491, -0.5550552010536194, -0.18709610402584076, -0.032266367226839066, 0.03212938457727432, -0.043828558176755905, 0.18109260499477386, -0.2550387680530548, -0.08022152632474899, 0.06686965376138687, 0.45455095171928406, -0.08288384228944778, -0.12743161618709564, -0.4368002414703369, -0.050220489501953125, -0.5733698606491089, -0.08286360651254654, -0.09779023379087448, 0.14225821197032928, 0.09729327261447906, 0.1623547226190567, 0.09610147774219513, -0.014273165725171566, -0.03208053112030029, -0.008572536520659924, 0.3404173254966736, -0.20439991354942322, -0.035457201302051544, 0.08536747843027115, 0.17483092844486237, 0.04601161926984787, 0.4566999077796936, 0.10347188264131546, -0.44930124282836914, -0.052902448922395706, -0.22394776344299316, -0.04577910527586937, 0.18973784148693085, -0.07515063881874084, -0.20411604642868042, -0.1439584642648697, -0.08549732714891434, 0.05639131739735603, -0.030515139922499657, 0.0876147672533989, -0.023653605952858925, -0.4352931082248688, -0.37299028038978577, 0.527069628238678, -0.03303877264261246, -0.05701328441500664, 0.31100162863731384, 0.11276494711637497, -0.1070815920829773, 0.42227548360824585, 0.018741285428404808, 0.8645868301391602, -0.01887092925608158, 0.21019534766674042, 0.0582883395254612, -0.040082212537527084, 0.7248644232749939, -0.5399267673492432, 0.07716401666402817, -0.270184725522995, 0.0008098554098978639, -0.0879068374633789, -0.13712939620018005, 0.30189651250839233, 0.004612648859620094, -0.09128257632255554, 0.7011967301368713, 0.11363581568002701, 0.3072911202907562, -0.028412332758307457, 0.12683190405368805, -0.2231794148683548, 0.02475055307149887, -0.21592524647712708, 0.09361544251441956, -0.2517372965812683, 0.7930037975311279, -0.11468324810266495, -0.16855956614017487, -0.3997272253036499, -0.48476481437683105, -0.2735726833343506, 0.206797257065773, -0.32659173011779785, 0.10576518625020981, -0.1365809142589569, -0.27553242444992065, -0.016013847663998604, 0.16851173341274261, 0.33968663215637207, 0.08356121182441711, -0.35241103172302246, 0.19915713369846344, -0.04324910044670105, -0.06335446983575821, -0.04578381031751633, 0.0030713959131389856, 0.27173832058906555, -0.0967707559466362, -0.2318740040063858, 0.14853307604789734, -0.25450393557548523, -0.10193866491317749, -0.11573068052530289, 0.061087436974048615, 0.33174553513526917, 0.22472476959228516, -0.27922043204307556, 0.22462491691112518, 0.15336455404758453, -0.06302854418754578, 0.18002250790596008, -0.0494341179728508, -0.03033062443137169, -0.003298943629488349, -0.18098145723342896, -0.24746812880039215, -0.12285284698009491, 0.5205885767936707, 0.18397434055805206, -0.2424333691596985, 0.40665316581726074, 0.1723616123199463, -0.21041731536388397, -0.24109986424446106, 0.16213856637477875, 0.19057074189186096, -0.2650220990180969, -0.14605170488357544, -0.03186143562197685, 0.0957716554403305, -0.13868793845176697, 0.16773086786270142, -0.011347436346113682, -0.10962879657745361, 0.09533744305372238, -0.44425779581069946, -0.0326407253742218, 0.18523788452148438, -0.08543533831834793, -0.10106315463781357, 0.0033148478250950575, 0.005318263079971075, 0.4032233655452728, -0.297162264585495, -0.288894921541214, -0.1376590132713318, -0.10590845346450806, 0.022461246699094772, 0.5605161786079407, 0.2935127913951874, 0.002323351800441742, -0.05814499780535698, 0.09376467764377594, -0.12681813538074493, -0.19378016889095306, -0.2027929723262787, -0.014947813004255295, 0.13855312764644623, 0.04347987473011017, 0.16305024921894073, 0.07036548852920532, -0.48233020305633545, 0.20215971767902374, -0.15279239416122437, 0.0567924864590168, 0.2536280155181885, -0.1994744837284088, 0.17714081704616547, 0.10858981311321259, 0.1843007504940033, -0.3525307774543762, 0.26749926805496216, -0.36469316482543945, 0.17219331860542297, 0.1304793655872345, 0.06860968470573425, 0.38672465085983276, 0.15165361762046814, -0.1735507845878601, -0.17422999441623688, -0.3743772804737091, -0.04825826361775398, 0.21082136034965515, -0.14148955047130585, -0.006863348186016083, 0.13409815728664398, 0.10623389482498169, 0.2562635540962219, -0.35032716393470764, -0.10758532583713531, 0.18367286026477814, 0.1969269961118698, -0.4555116295814514, -0.0751979649066925, 0.40375828742980957, -0.1358790099620819, -0.02149677276611328, 0.18435165286064148, 0.26367825269699097, -0.2410949319601059, 0.30596986413002014, 0.1916552484035492, 0.39455926418304443, -0.1170295774936676, 0.30119484663009644, 0.3527540862560272, 0.177998885512352, 0.13961270451545715, -0.030412115156650543, 0.0474545881152153, 0.1353859007358551, 0.6484862565994263, -0.20916534960269928, 0.4114724099636078, 0.06740231066942215, 0.10300428420305252, -0.2624191641807556, -0.3011828660964966, 0.2992062568664551, 0.22040414810180664, -0.06951724737882614, 0.029288874939084053, -0.024016117677092552, -0.001998380059376359, 0.08604123443365097, -0.05657840892672539, -0.15855009853839874, 0.16666750609874725, 0.0012734951451420784, 0.2253454178571701, 0.01797071471810341, -0.35190123319625854, -0.07290791720151901, 0.1331721842288971, 0.03120359033346176, -0.23858794569969177, 0.22812741994857788, 0.16829441487789154, -0.1240408793091774, -0.12397166341543198, 0.3742436170578003, -0.11891970038414001, 0.01363180298358202, -0.13765570521354675, 0.025404106825590134, 0.046354029327631, -0.15982460975646973, 0.006920750718563795, 0.16357578337192535, 0.2606303095817566, 0.34880271553993225, -0.286647230386734, -0.023813767358660698, 0.17843391001224518, -0.06752554327249527, -0.015599009580910206, 0.09208385646343231, -0.06219743192195892, -0.05248754099011421, 0.28906014561653137, 0.11364803463220596, -0.17804642021656036, 0.09538290649652481, 0.04331306368112564, -0.03696930408477783, -0.2705102264881134, -0.05337463691830635, -0.379250168800354, 0.08717882633209229, -0.34022513031959534, 0.038981225341558456, -0.6098282337188721, -0.00609609205275774, 0.1512967199087143, 0.1895904690027237, -0.006375789642333984, -0.360564261674881, 0.060546476393938065, -0.10734062641859055, 0.30975669622421265, 0.4319078028202057, 0.12030883133411407, -0.3997262716293335, -0.2315182238817215, -0.7111358642578125, 0.2788405120372772, -0.41060441732406616, 0.14500120282173157, -0.1495790183544159, 0.07072991132736206, 0.09841325879096985, 0.23376022279262543, 0.17868852615356445, 0.32773667573928833, -0.23661606013774872, 0.1039687767624855, -0.3699018657207489, -0.3021472096443176, -0.24034400284290314, -0.001157366787083447, -0.10399788618087769, -0.3225294351577759, 0.156554713845253, -0.13395251333713531, 0.09491503238677979, -0.14083541929721832, -0.306947261095047, 0.3905305862426758, -0.02234952338039875, 0.5410962700843811, 0.015177184715867043, 0.43718013167381287, 0.08463077992200851, 0.012739039957523346, -0.0869746208190918, -0.08522413671016693, -0.11141962558031082, 0.16098235547542572, -0.07901833206415176, 0.05979134887456894, -0.13160043954849243, -0.1634124517440796, -0.2565714716911316, 0.43240001797676086, 0.12198100239038467, 0.16965430974960327, -0.1993858963251114, 0.06679150462150574, 0.029477179050445557, 0.16403883695602417, -0.13577347993850708, -0.04471752420067787, -0.20383301377296448, -0.03305424377322197, -0.3078816533088684, -0.2646479606628418, 0.28916069865226746, -0.4281410276889801, -0.3605460822582245, -0.0024645838420838118, 0.19139933586120605, -0.22266964614391327, 0.011238133534789085, -0.36480000615119934, 0.21677148342132568, 0.32550179958343506, 0.10104614496231079, -0.12341706454753876, -0.012208567000925541, -0.14546848833560944, -0.08819011598825455, 0.0029764333739876747, -0.3081105053424835, 0.08674146234989166, -0.12965649366378784, 0.008382776752114296, -0.2291344404220581 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
thanks for your reply and sorry for my late response. ## environment my local machine environment info - Ubuntu on WSL2 `lsb_release -a` ``` No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal ``` RTX 2070 super Inside WSL, there is no nvidia-msi command. I don't know why. But, `torch.cuda.is_available()` is true and when I start something ML training code GPU usage is growing up, so I think it works. From PowerShell, there is nvidia-smi.exe and result is below. ``` +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.05 Driver Version: 470.05 CUDA Version: 11.3 | |-------------------------------+----------------------+----------------------+ | GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... WDDM | 00000000:09:00.0 On | N/A | | 0% 30C P8 19W / 175W | 523MiB / 8192MiB | 3% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1728 C+G Insufficient Permissions N/A | | 0 N/A N/A 3672 C+G ...ekyb3d8bbwe\YourPhone.exe N/A | | 0 N/A N/A 6304 C+G ...2txyewy\TextInputHost.exe N/A | | 0 N/A N/A 8648 C+G C:\Windows\explorer.exe N/A | | 0 N/A N/A 9536 C+G ...y\ShellExperienceHost.exe N/A | | 0 N/A N/A 10668 C+G ...5n1h2txyewy\SearchApp.exe N/A | | 0 N/A N/A 10948 C+G ...artMenuExperienceHost.exe N/A | | 0 N/A N/A 11988 C+G ...8wekyb3d8bbwe\Cortana.exe N/A | | 0 N/A N/A 12464 C+G ...cw5n1h2txyewy\LockApp.exe N/A | | 0 N/A N/A 13280 C+G ...upport\CEF\Max Helper.exe N/A | | 0 N/A N/A 15948 C+G ...t\GoogleIMEJaRenderer.exe N/A | | 0 N/A N/A 16128 C+G ...ram Files\Slack\Slack.exe N/A | | 0 N/A N/A 19096 C+G ...8bbwe\WindowsTerminal.exe N/A | +-----------------------------------------------------------------------------+ ``` I don't know what should I show in such a case. If it's not enough, please tell me some commands. --- ## what I did I surveyed more and I found 2 issues. About the first one, I wrote it as a new issue. https://github.com/huggingface/datasets/issues/2031 The error I mentioned in the previous comment above, which occurred on my local machine, is no longer occurring. But, it still failed. In the previous comment, I wrote `AssertionError: OutputStream realloc failed.` happen on another machine. It also happens on my local machine. Here's what I've tried. the wikipedia.py downloads these xml.bz2 files based on dumpstatus.json In Japanese Wikipedia dataset that I specified, it will download these 6 files. `https://dumps.wikimedia.org/jawiki/20210120/dumpstatus.json` and filtered json based on wikipedia.py is below. ```json { "jobs": { "articlesmultistreamdump": { "files": { "jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2" }, "jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2" }, "jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2" }, "jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2" }, "jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2" }, "jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2" } } } } } ``` So, I tried running with fewer resources by modifying this line. https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L524 I changed it like this. just change filepaths list. ` | "Initialize" >> beam.Create(filepaths[:1])` and I added a print line inside for the loop of _extract_content. like this `if(i % 100000 == 0): print(i)` first, without modification, it always stops after all _extract_content is done. - `filepaths[:1]` then it succeeded. - `filepaths[:2]` then it failed. I don't try all patterns because each pattern takes a long time. ### my opinion It seems it's successful when the entire file size is small. so, at least it doesn't file-specific issue. I don't know it's true but I think when beam_writter writes into a file, it consumes memory depends on its entire file. but It's correct Apache Beam's behavior? I'm not familiar with this library.
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
606
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? thanks for your reply and sorry for my late response. ## environment my local machine environment info - Ubuntu on WSL2 `lsb_release -a` ``` No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal ``` RTX 2070 super Inside WSL, there is no nvidia-msi command. I don't know why. But, `torch.cuda.is_available()` is true and when I start something ML training code GPU usage is growing up, so I think it works. From PowerShell, there is nvidia-smi.exe and result is below. ``` +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.05 Driver Version: 470.05 CUDA Version: 11.3 | |-------------------------------+----------------------+----------------------+ | GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... WDDM | 00000000:09:00.0 On | N/A | | 0% 30C P8 19W / 175W | 523MiB / 8192MiB | 3% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1728 C+G Insufficient Permissions N/A | | 0 N/A N/A 3672 C+G ...ekyb3d8bbwe\YourPhone.exe N/A | | 0 N/A N/A 6304 C+G ...2txyewy\TextInputHost.exe N/A | | 0 N/A N/A 8648 C+G C:\Windows\explorer.exe N/A | | 0 N/A N/A 9536 C+G ...y\ShellExperienceHost.exe N/A | | 0 N/A N/A 10668 C+G ...5n1h2txyewy\SearchApp.exe N/A | | 0 N/A N/A 10948 C+G ...artMenuExperienceHost.exe N/A | | 0 N/A N/A 11988 C+G ...8wekyb3d8bbwe\Cortana.exe N/A | | 0 N/A N/A 12464 C+G ...cw5n1h2txyewy\LockApp.exe N/A | | 0 N/A N/A 13280 C+G ...upport\CEF\Max Helper.exe N/A | | 0 N/A N/A 15948 C+G ...t\GoogleIMEJaRenderer.exe N/A | | 0 N/A N/A 16128 C+G ...ram Files\Slack\Slack.exe N/A | | 0 N/A N/A 19096 C+G ...8bbwe\WindowsTerminal.exe N/A | +-----------------------------------------------------------------------------+ ``` I don't know what should I show in such a case. If it's not enough, please tell me some commands. --- ## what I did I surveyed more and I found 2 issues. About the first one, I wrote it as a new issue. https://github.com/huggingface/datasets/issues/2031 The error I mentioned in the previous comment above, which occurred on my local machine, is no longer occurring. But, it still failed. In the previous comment, I wrote `AssertionError: OutputStream realloc failed.` happen on another machine. It also happens on my local machine. Here's what I've tried. the wikipedia.py downloads these xml.bz2 files based on dumpstatus.json In Japanese Wikipedia dataset that I specified, it will download these 6 files. `https://dumps.wikimedia.org/jawiki/20210120/dumpstatus.json` and filtered json based on wikipedia.py is below. ```json { "jobs": { "articlesmultistreamdump": { "files": { "jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream1.xml-p1p114794.bz2" }, "jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream2.xml-p114795p390428.bz2" }, "jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream3.xml-p390429p902407.bz2" }, "jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream4.xml-p902408p1721646.bz2" }, "jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream5.xml-p1721647p2807947.bz2" }, "jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2": { "url": "/jawiki/20210120/jawiki-20210120-pages-articles-multistream6.xml-p2807948p4290013.bz2" } } } } } ``` So, I tried running with fewer resources by modifying this line. https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L524 I changed it like this. just change filepaths list. ` | "Initialize" >> beam.Create(filepaths[:1])` and I added a print line inside for the loop of _extract_content. like this `if(i % 100000 == 0): print(i)` first, without modification, it always stops after all _extract_content is done. - `filepaths[:1]` then it succeeded. - `filepaths[:2]` then it failed. I don't try all patterns because each pattern takes a long time. ### my opinion It seems it's successful when the entire file size is small. so, at least it doesn't file-specific issue. I don't know it's true but I think when beam_writter writes into a file, it consumes memory depends on its entire file. but It's correct Apache Beam's behavior? I'm not familiar with this library.
[ -0.01646271161735058, -0.12084326893091202, -0.04492613673210144, 0.12895335257053375, 0.36023637652397156, 0.011789968237280846, 0.46351638436317444, 0.3990744352340698, 0.2657029628753662, 0.22124435007572174, 0.3692159056663513, -0.09264856576919556, 0.07885533571243286, -0.050379592925310135, 0.3171316981315613, -0.34758561849594116, 0.3893394470214844, -0.10230760276317596, -0.044615183025598526, -0.2853875160217285, -0.3970678746700287, 0.09727434068918228, -0.3274345099925995, 0.20433367788791656, -0.2763917148113251, 0.3834488093852997, 0.08559450507164001, 0.0011818448547273874, 0.2684018909931183, -0.07426422089338303, 0.04830659553408623, -0.31121519207954407, 0.27958670258522034, 0.11835110187530518, -0.00011737959721358493, 0.15392975509166718, 0.27871114015579224, -0.3796845078468323, -0.25454020500183105, -0.3259485363960266, 0.11808210611343384, -0.5497899055480957, 0.05365770310163498, -0.410214900970459, -0.30816206336021423, -0.3167407810688019, -0.016724979504942894, -0.36415937542915344, 0.23516467213630676, 0.22832641005516052, 0.16963797807693481, 0.21523629128932953, -0.055304642766714096, 0.04635748639702797, 0.49332183599472046, 0.060215648263692856, -0.30580994486808777, -0.018119027838110924, 0.06975993514060974, 0.07448062300682068, 0.146584153175354, 0.6420864462852478, -0.23146110773086548, -0.015230399556457996, 0.06731341034173965, -0.01678571105003357, 0.16636496782302856, -0.32633888721466064, 0.1945960372686386, 0.0899544283747673, 0.482810378074646, -0.26629212498664856, -0.016271423548460007, 0.041009265929460526, -0.10902419686317444, -0.1496434211730957, 0.28068986535072327, 0.23350442945957184, -0.21531637012958527, 0.025500820949673653, 0.446775883436203, -0.0751214474439621, 0.019394319504499435, 0.15088240802288055, -0.04147801175713539, 0.6642969250679016, 0.06980714201927185, 0.31395888328552246, -0.1830180287361145, -0.03873720392584801, -0.20581018924713135, -0.17636223137378693, 0.20240405201911926, 0.18691816926002502, -0.41222190856933594, 0.05783158168196678, 0.17306119203567505, -0.15398074686527252, -0.1882951408624649, 0.029636936262249947, -0.2198074609041214, 0.022954551503062248, 0.5886106491088867, 0.04372892901301384, -0.14924415946006775, 0.16410645842552185, 0.26415717601776123, -0.11192189157009125, 0.289218544960022, -0.21164964139461517, -0.052947066724300385, -0.03757276013493538, -0.11767919361591339, -0.3208053410053253, -0.611405074596405, 0.21613219380378723, 0.3799574673175812, -0.11072046309709549, -0.3758540451526642, 0.0015662299701943994, -0.7844844460487366, -0.1767561137676239, -0.0009914832189679146, 0.5293403267860413, 0.2928484082221985, 0.4186640679836273, 0.28913766145706177, 0.20366166532039642, -0.2172860950231552, -0.3478885591030121, -0.07937212288379669, 0.2945081889629364, -0.3448708951473236, 0.2523285150527954, 0.11701899021863937, 0.18596932291984558, 0.21217478811740875, -0.2013961225748062, -0.09950472414493561, 0.03434436395764351, 0.017721932381391525, -0.05446643754839897, 0.16901487112045288, 0.4799579083919525, 0.04840176925063133, 0.4080628454685211, 0.2257787138223648, 0.01167264487594366, -0.11727652698755264, 0.24295134842395782, -0.1548590213060379, -0.39441171288490295, -0.14688317477703094, 0.05110609903931618, -0.01675555296242237, 0.19688735902309418, 0.3628734350204468, 0.04268210008740425, 0.1228855550289154, 0.012358290143311024, 0.25303107500076294, 0.017857689410448074, -0.10541711002588272, -0.21242566406726837, 0.25074276328086853, 0.545920193195343, -0.30390477180480957, -0.11065676808357239, 0.39615917205810547, -0.10538406670093536, -0.07860537618398666, 0.11522547155618668, -0.09785663336515427, 0.16368207335472107, -0.22835756838321686, -0.09721943736076355, 0.4880375862121582, -0.5070928335189819, -0.011067438870668411, 0.08041904866695404, -0.1672995388507843, -0.14546872675418854, 0.41601642966270447, -0.015809444710612297, -0.21558615565299988, -0.13846004009246826, -0.21775062382221222, 0.017940066754817963, 0.0955037772655487, -0.042616259306669235, -0.2979276478290558, -0.08484405279159546, 0.2965356707572937, 0.21431617438793182, 0.23680633306503296, -0.1862461417913437, 0.10660111904144287, 0.7018895745277405, 0.18042393028736115, -0.14689123630523682, 0.12321818619966507, 0.12063466012477875, 0.20179955661296844, -0.03149418905377388, 0.20573340356349945, 0.081673763692379, -0.3195109963417053, 0.17783312499523163, -0.16116434335708618, 0.24503971636295319, -0.03915693610906601, 0.009676724672317505, 0.12223847210407257, -0.029620954766869545, -0.189936563372612, -0.40911802649497986, 0.07648292183876038, 0.11828935891389847, 0.00331393931992352, 0.22170698642730713, -0.3516409695148468, 0.2491334080696106, -0.6650170683860779, 0.023083670064806938, -0.12288866192102432, 0.06531935185194016, -0.22485946118831635, -0.13932520151138306, -0.20835451781749725, 0.20416949689388275, 0.16317006945610046, -0.2657237648963928, -0.05501149222254753, -0.012420282699167728, 0.0863436609506607, -0.10194875299930573, -0.16889351606369019, 0.10010558366775513, 0.1083894744515419, -0.1080825924873352, 0.3500632643699646, 0.07593706995248795, 0.2190004587173462, 0.0002393778704572469, -0.04661690816283226, 0.19021885097026825, 0.3913535177707672, 0.40310803055763245, 0.044115133583545685, -0.08268898725509644, 0.16713589429855347, -0.0675748735666275, -0.23202303051948547, -0.21655863523483276, 0.18965791165828705, 0.3165910542011261, 0.028862621635198593, -0.03922194615006447, 0.03787706792354584, -0.10524790734052658, 0.5922947525978088, 0.12467016279697418, 0.2972474992275238, -0.07103730738162994, -0.3637953996658325, 0.17171348631381989, 0.2669874429702759, -0.13620083034038544, 0.37652087211608887, 0.11187078803777695, -0.2514685094356537, 0.07408841699361801, 0.18322589993476868, -0.1975177526473999, 0.1446850746870041, 0.09353817999362946, 0.16172625124454498, 0.1095689982175827, -0.15309157967567444, -0.004960331600159407, -0.17569826543331146, 0.011773400008678436, -0.001415837206877768, -0.11093330383300781, -0.2594313621520996, 0.10291924327611923, -0.3478598892688751, -0.48591509461402893, -0.2813386023044586, 0.04041365161538124, -0.27853846549987793, -0.07324768602848053, -0.11603842675685883, -0.0294304508715868, -0.21870552003383636, 0.43045517802238464, 0.2571215033531189, 0.021932272240519524, -0.04116465523838997, -0.33064180612564087, -0.10260583460330963, -0.20488101243972778, -0.24496015906333923, -0.003624459495767951, 0.31054985523223877, 0.17617948353290558, 0.25504910945892334, -0.3488142788410187, 0.08701785653829575, -0.10863522440195084, -0.3360551595687866, 0.14654529094696045, 0.04183713346719742, -0.23108315467834473, -0.10005516558885574, 0.18324047327041626, 0.06511693447828293, -0.023922057822346687, 0.42653194069862366, -0.12539562582969666, -0.14272408187389374, -0.0013670044718310237, -0.04990026354789734, -0.09586947411298752, -0.10203178972005844, -0.4964435398578644, -0.26457679271698, -0.47587132453918457, -0.42599186301231384, 0.24124744534492493, 0.08109773695468903, -0.12813322246074677, 0.1606530249118805, 0.29235246777534485, -0.17032091319561005, 0.03713681176304817, 0.03112049773335457, 0.2079799324274063, 0.23173139989376068, -0.009070225991308689, -0.3604702651500702, 0.43721631169319153, -0.0842033177614212, 0.03859974816441536, 0.11581654101610184, -0.26034411787986755, 0.013746295124292374, 0.29892274737358093, -0.03719780221581459, -0.0009429222554899752, 0.26324284076690674, 0.7203307747840881, -0.2250906527042389, 0.012708846479654312, -0.014162817038595676, -0.3290921747684479, 0.05105307325720787, 0.007377027999609709, 0.5199001431465149, 0.16977731883525848, 0.4387996196746826, 0.08485306799411774, 0.8618535399436951, -0.08453531563282013, -0.07008525729179382, 0.37414634227752686, 0.09399010986089706, 0.2071823626756668, -0.31627240777015686, -0.03148559853434563, 0.21954815089702606, 0.08645542711019516, -0.010962856002151966, 0.18712590634822845, -0.08836106956005096, 0.17060275375843048, -0.5178011059761047, -0.2898625433444977, -0.011130128987133503, -0.17907406389713287, 0.3663787841796875, -0.28543564677238464, 0.1987074762582779, 0.041036032140254974, 0.19379669427871704, 0.04690680652856827, 0.13927105069160461, 0.16392090916633606, 0.6295234560966492, -0.012657472863793373, 0.013924955390393734, -0.17792823910713196, -0.12026467174291611, -0.11998064070940018, 0.21956753730773926, 0.07252312451601028, 0.21894951164722443, -0.12903080880641937, -0.47451335191726685, 0.1856996864080429, 0.034947801381349564, 0.3213561773300171, -0.0358848012983799, -0.28713592886924744, 0.3316371738910675, -0.23215040564537048, -0.3496994972229004, -0.30624866485595703, -0.01896800845861435, -0.14873221516609192, -0.057085346430540085, 0.0013777792919427156, -0.03171747550368309, -0.4585873782634735, 0.37618348002433777, 0.2340410202741623, -0.25240594148635864, -0.2274867296218872, -0.42876338958740234, -0.04696817696094513, -0.5095897912979126, 0.008491291664540768, -0.13240116834640503, -0.12929698824882507, 0.026441125199198723, 0.1764390915632248, -0.06907233595848083, -0.20176976919174194, -0.056206367909908295, -0.06299319118261337, 0.08512550592422485, -0.0699710100889206, -0.263638436794281, -0.23264773190021515, 0.7186858654022217, -0.15075409412384033, -0.04024924337863922, 0.1925627738237381, -0.0018093747785314918, 0.11990859359502792, -0.10798461735248566, 0.21378883719444275, 0.4486483335494995, -0.1768035590648651, 0.15943178534507751, -0.2837944030761719, -0.12071137875318527, -0.10630108416080475, -0.1808037906885147, 0.3044556975364685, -0.0509127676486969, -0.04306076467037201, -0.3201402723789215, 0.6241834759712219, -0.10735563188791275, 0.0044306060299277306, 0.14718975126743317, 0.1318538784980774, -0.10441336780786514, 0.33199581503868103, 0.23365899920463562, 1.035811185836792, 0.1642736792564392, 0.1324453353881836, 0.1799945831298828, 0.10778506845235825, 0.8329403400421143, -0.5984455943107605, 0.21736246347427368, -0.08510801941156387, 0.13650992512702942, -0.1082867980003357, -0.08187421411275864, 0.5945868492126465, -0.006710147485136986, 0.07052852213382721, 0.37909945845603943, 0.2664601802825928, 0.603786289691925, 0.003762293141335249, -0.10991460829973221, 0.03554921969771385, -0.14972594380378723, -0.5489435195922852, -0.01689264178276062, -0.07442869991064072, 0.7894803285598755, -0.2071019411087036, -0.11288020759820938, -0.22802481055259705, -0.3641822338104248, -0.09889545291662216, 0.041176073253154755, -0.2909252941608429, 0.1858065277338028, -0.38281840085983276, -0.326805055141449, -0.040257517248392105, 0.14378809928894043, 0.3549686074256897, -0.08684086054563522, -0.12359417229890823, 0.04269387200474739, 0.00760731752961874, 0.000014453097719524521, -0.20816053450107574, 0.036793142557144165, 0.3847233057022095, -0.2481495440006256, -0.21969392895698547, 0.16346727311611176, -0.1109325960278511, -0.04944421723484993, 0.016013173386454582, 0.06965608894824982, 0.714179515838623, 0.29274094104766846, -0.2967762053012848, 0.3870967626571655, 0.09807218611240387, 0.005247332621365786, 0.09515833109617233, -0.2514197826385498, -0.15155409276485443, -0.07230134308338165, -0.2172103375196457, -0.10101272165775299, -0.22483688592910767, 0.32760584354400635, 0.19994157552719116, -0.09728136658668518, 0.2712370753288269, 0.17327021062374115, -0.17410649359226227, -0.2119038999080658, 0.16236168146133423, 0.03687938302755356, -0.4369901418685913, -0.28907066583633423, 0.3023836314678192, -0.17091724276542664, -0.15622271597385406, 0.17832018435001373, 0.0681598037481308, -0.1861294060945511, -0.08539576828479767, -0.22218936681747437, -0.23401162028312683, 0.20988453924655914, -0.12331096827983856, -0.21502047777175903, -0.06318044662475586, 0.2806892693042755, 0.41568851470947266, -0.15369921922683716, -0.22615525126457214, -0.2628728747367859, -0.12301085144281387, 0.19280871748924255, 0.44272327423095703, 0.2965605854988098, -0.012770417146384716, 0.18955013155937195, 0.007494945544749498, -0.03800158575177193, -0.21862386167049408, -0.13121174275875092, -0.015004875138401985, 0.17656978964805603, 0.2285003513097763, 0.19599241018295288, 0.18808768689632416, -0.26768922805786133, 0.0865136906504631, -0.07258772104978561, 0.0992608517408371, 0.18649668991565704, -0.08947929739952087, 0.35080209374427795, -0.030673693865537643, 0.3316592872142792, -0.447711706161499, 0.2372739017009735, -0.24995683133602142, 0.36880505084991455, 0.2676354646682739, -0.08039779216051102, 0.4092099070549011, 0.23894770443439484, -0.3746151328086853, -0.15237149596214294, -0.36454278230667114, 0.010473448783159256, -0.05462741479277611, -0.0719810351729393, -0.10211802273988724, -0.18597984313964844, -0.02452203258872032, 0.16070953011512756, -0.35451439023017883, -0.0365305170416832, 0.2327326089143753, 0.12669694423675537, -0.45439088344573975, 0.3731447756290436, 0.2427680790424347, -0.21544168889522552, -0.07727225124835968, 0.30604270100593567, 0.4231773316860199, -0.09236564487218857, 0.38809633255004883, 0.17819935083389282, 0.08419878780841827, -0.20301617681980133, 0.20668654143810272, 0.361815869808197, 0.2963564991950989, 0.35980239510536194, 0.020272599533200264, 0.11203663051128387, 0.19501061737537384, 0.5736830830574036, -0.12655068933963776, 0.5901020765304565, 0.1574232578277588, 0.349547803401947, -0.09694094955921173, -0.14905790984630585, 0.3120417892932892, 0.3322592079639435, -0.014696176163852215, -0.33035874366760254, -0.2264358103275299, -0.30427086353302, 0.04543427750468254, -0.1949990838766098, -0.26281383633613586, 0.18080973625183105, -0.1972094476222992, 0.07938885688781738, -0.11021565645933151, -0.12406644970178604, -0.0704071894288063, 0.01570126600563526, 0.051934171468019485, -0.19517803192138672, -0.09493669122457504, 0.12150528281927109, -0.1331944316625595, 0.053389135748147964, 0.1281682252883911, -0.0643562525510788, 0.030801642686128616, -0.08600577712059021, 0.08693264424800873, 0.14459310472011566, -0.13782911002635956, -0.06006075069308281, 0.08444536477327347, 0.2197670191526413, 0.462106853723526, -0.08286979794502258, -0.025800028815865517, 0.14494052529335022, 0.0030347988940775394, 0.05417650565505028, 0.1591961532831192, -0.06138039380311966, 0.276835560798645, 0.2779882550239563, 0.056582771241664886, -0.15914981067180634, 0.12183185666799545, 0.15829600393772125, -0.08830969780683517, -0.2958934009075165, 0.23886442184448242, -0.430789053440094, 0.051020290702581406, -0.5330097079277039, 0.2233331948518753, -0.34494683146476746, -0.07879233360290527, 0.015766091644763947, 0.10411660373210907, -0.01514464896172285, -0.28991296887397766, 0.01782904379069805, -0.2573358416557312, 0.23794497549533844, -0.06475354731082916, 0.038045551627874374, -0.25128114223480225, -0.2304193377494812, -0.31950265169143677, 0.1034679040312767, -0.2553514540195465, 0.29227298498153687, -0.27271708846092224, 0.1275990754365921, 0.17636221647262573, 0.23952291905879974, -0.041304051876068115, 0.19592274725437164, 0.07573036104440689, 0.04284944012761116, -0.30695685744285583, -0.21970272064208984, -0.34014350175857544, 0.11602040380239487, -0.10838302969932556, -0.25457605719566345, -0.04245784506201744, -0.23322053253650665, -0.012937468476593494, -0.3310776352882385, -0.2316148728132248, 0.47526809573173523, 0.08147414028644562, 0.5481075048446655, -0.02754996530711651, 0.26144272089004517, 0.10081037878990173, -0.0696956142783165, -0.04002932831645012, 0.03912059962749481, -0.20417693257331848, 0.19289396703243256, 0.04229794442653656, 0.0197446346282959, -0.09211207181215286, -0.10007347911596298, -0.24495530128479004, 0.39054667949676514, -0.015144302509725094, -0.007719928864389658, -0.10536860674619675, 0.09471186995506287, -0.08854833990335464, 0.06877844780683517, 0.22806619107723236, -0.09097281843423843, -0.1401730477809906, -0.19013673067092896, -0.44915127754211426, 0.06038907915353775, 0.2830466330051422, -0.33109521865844727, -0.1412518173456192, -0.09223324060440063, 0.36147668957710266, -0.2765083909034729, 0.09676747024059296, -0.32555145025253296, 0.0648277997970581, 0.20819230377674103, 0.09999734908342361, 0.043572209775447845, 0.1568872630596161, 0.007801895961165428, -0.23779699206352234, -0.0828837901353836, -0.7149186134338379, -0.10678660124540329, -0.0013865994988009334, -0.1434374302625656, -0.4423050582408905 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
I don't know if this is related, but there is this issue on the wikipedia processing that you reported at #2031 (open PR is at #2037 ) . Does the fix your proposed at #2037 helps in your case ? And for information, the DirectRunner of Apache Beam is not optimized for memory intensive tasks, so you must be right when you say that it uses the memory for the entire file.
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
72
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? I don't know if this is related, but there is this issue on the wikipedia processing that you reported at #2031 (open PR is at #2037 ) . Does the fix your proposed at #2037 helps in your case ? And for information, the DirectRunner of Apache Beam is not optimized for memory intensive tasks, so you must be right when you say that it uses the memory for the entire file.
[ 0.11173418164253235, -0.006440768949687481, 0.008771281689405441, 0.3851291835308075, 0.37669751048088074, 0.09046291559934616, 0.1866941750049591, 0.4343988597393036, 0.2380293756723404, 0.12736865878105164, 0.1705140769481659, 0.02249208278954029, -0.01213857438415289, -0.21757277846336365, 0.029376769438385963, -0.33523792028427124, 0.27490535378456116, -0.0193757526576519, -0.17039306461811066, -0.23357932269573212, -0.3629104793071747, 0.11334896087646484, -0.41487786173820496, -0.1094510406255722, -0.16017436981201172, 0.19287224113941193, -0.04803190007805824, 0.09546255320310593, 0.13949470221996307, -0.3413200378417969, -0.11715148389339447, -0.10673310607671738, -0.018048295751214027, 0.3060237765312195, -0.00010879553155973554, 0.09125684946775436, 0.5745630860328674, -0.18880535662174225, -0.284650593996048, 0.04063994809985161, -0.03717368096113205, -0.4954467713832855, -0.013975170440971851, -0.47322505712509155, -0.03511340543627739, -0.2119349241256714, 0.1526014506816864, -0.377780556678772, 0.3918657898902893, 0.142527773976326, 0.25095608830451965, 0.26514774560928345, 0.06630776822566986, -0.0078428341075778, 0.5856633186340332, -0.09681986272335052, -0.0510738380253315, -0.11220291256904602, -0.2888489067554474, -0.04989847168326378, -0.2235366553068161, 0.5995769500732422, -0.2624770700931549, 0.07027002424001694, 0.35990339517593384, -0.23007908463478088, -0.14920412003993988, -0.45211490988731384, 0.3267113268375397, 0.17152337729930878, 0.812254786491394, -0.2932114899158478, -0.17808645963668823, -0.11612480878829956, -0.18160569667816162, 0.05674909055233002, 0.21397152543067932, 0.3344724774360657, -0.18977995216846466, -0.06125036999583244, 0.4706631600856781, -0.2275061309337616, -0.04098304733633995, 0.06938489526510239, 0.02029474824666977, 0.30312269926071167, 0.09454875439405441, 0.19883158802986145, 0.10800812393426895, -0.05909137800335884, -0.08152289688587189, -0.25356951355934143, 0.05673067271709442, 0.28741708397865295, -0.32481008768081665, 0.11214900016784668, 0.1160266324877739, 0.06251738965511322, 0.12343629449605942, -0.263925701379776, -0.2927092909812927, 0.24176068603992462, 0.26710355281829834, 0.03555268794298172, 0.2241135686635971, 0.15025874972343445, 0.02869960106909275, 0.13771899044513702, 0.5333330035209656, -0.19619859755039215, -0.18964292109012604, -0.01557169109582901, 0.02572479285299778, -0.23971471190452576, -0.08355685323476791, -0.07011451572179794, 0.14213527739048004, -0.10686725378036499, -0.0019669923931360245, 0.18007059395313263, -0.2986363470554352, -0.16593210399150848, -0.22923797369003296, 0.5317001342773438, 0.05753368139266968, 0.5937865376472473, 0.20139344036579132, 0.1262190192937851, -0.3433276116847992, -0.2992616295814514, -0.14300379157066345, 0.3405372202396393, -0.34001216292381287, 0.20809003710746765, 0.05986233800649643, 0.2209746241569519, 0.26719802618026733, -0.1440659612417221, 0.02793596126139164, -0.09875329583883286, 0.1566367894411087, -0.1712193638086319, -0.032268423587083817, 0.4470679759979248, 0.08759745955467224, 0.44869720935821533, 0.1538458615541458, -0.009893212467432022, -0.07206248492002487, 0.26323917508125305, -0.24329860508441925, -0.34934595227241516, 0.2551330626010895, 0.11737644672393799, -0.28796184062957764, 0.2902916967868805, 0.002513415180146694, -0.028482750058174133, 0.16788460314273834, -0.007984945550560951, 0.04658397659659386, -0.018021337687969208, -0.22050310671329498, -0.383062481880188, 0.20322172343730927, 0.7963465452194214, -0.06928937882184982, 0.047790948301553726, 0.050692033022642136, -0.06628882139921188, 0.15844354033470154, 0.19491764903068542, -0.0704006627202034, 0.20869678258895874, -0.16765709221363068, -0.03169292211532593, 0.5124151110649109, -0.5858023762702942, -0.18748869001865387, 0.21887004375457764, 0.02237015776336193, 0.03302103653550148, 0.26648271083831787, 0.1075238287448883, -0.19009433686733246, -0.12605786323547363, -0.06537534296512604, 0.17626270651817322, 0.15192316472530365, 0.33025580644607544, -0.5582467317581177, 0.022957542911171913, 0.0813489481806755, 0.16523708403110504, 0.326190710067749, -0.09236877411603928, -0.01322205550968647, 0.5644574761390686, 0.23600539565086365, -0.27735328674316406, 0.27755898237228394, 0.44969144463539124, -0.14570964872837067, -0.021472081542015076, 0.33412429690361023, -0.017069965600967407, 0.031478043645620346, 0.2832881808280945, -0.25460320711135864, 0.23956561088562012, 0.017152711749076843, -0.14403219521045685, -0.09357517957687378, -0.009036180563271046, -0.21720446646213531, -0.3565833270549774, 0.1877317875623703, -0.03703847900032997, -0.025104722008109093, 0.2928381860256195, -0.09061066061258316, 0.30703115463256836, -0.19839008152484894, -0.04409850761294365, -0.3090105950832367, 0.05757458880543709, -0.21603013575077057, -0.00915184710174799, 0.07317229360342026, 0.09855029731988907, 0.15506288409233093, -0.03919743373990059, -0.13975010812282562, 0.20858584344387054, 0.2723042368888855, 0.0015523511683568358, 0.06436733901500702, -0.034476298838853836, 0.1558847874403, -0.2128020077943802, 0.36464473605155945, 0.2092394083738327, 0.2507326602935791, -0.13808855414390564, -0.011131695471704006, 0.12077026814222336, 0.24122244119644165, 0.3808264136314392, 0.13545936346054077, -0.06676758080720901, 0.06428070366382599, 0.06133870780467987, -0.08797265589237213, -0.22833316028118134, 0.1964167356491089, 0.3356744647026062, 0.09885642677545547, 0.062462788075208664, 0.04359178990125656, -0.2446843981742859, 0.5019388794898987, 0.09107072651386261, 0.19941309094429016, 0.03511859104037285, -0.5036810040473938, -0.029586542397737503, 0.12203113734722137, -0.12322160601615906, 0.20443761348724365, 0.18944062292575836, -0.008546564728021622, -0.004707008134573698, 0.3041697144508362, -0.09652573615312576, 0.21947838366031647, 0.1881994605064392, 0.3777446746826172, 0.021214893087744713, 0.0054695322178304195, -0.06656873971223831, -0.10159855335950851, 0.05963936820626259, -0.1179068386554718, 0.1842222958803177, -0.19342705607414246, -0.02594904415309429, -0.28648096323013306, -0.4760192632675171, -0.19963687658309937, 0.35638824105262756, -0.36193814873695374, -0.29718807339668274, -0.07338610291481018, -0.09439753741025925, -0.2513522505760193, 0.20481878519058228, 0.17305888235569, -0.0069654397666454315, 0.07833419740200043, -0.2935420870780945, -0.15004917979240417, -0.5236817598342896, -0.23008044064044952, 0.0003817903925664723, 0.3928471803665161, 0.05052616074681282, 0.28796303272247314, -0.08200468868017197, -0.08867800980806351, -0.1884269416332245, -0.05573331564664841, 0.09716863930225372, 0.0015290760202333331, -0.07846066355705261, -0.14323405921459198, 0.40032824873924255, 0.018409227952361107, 0.08454783260822296, 0.3466527462005615, -0.11441177129745483, -0.09975741803646088, 0.17980371415615082, 0.11478759348392487, 0.13617101311683655, 0.02012987807393074, -0.407571405172348, -0.1568482667207718, -0.524003803730011, -0.03644976392388344, 0.13532701134681702, 0.14698776602745056, -0.040976256132125854, 0.16971877217292786, 0.07809511572122574, 0.14288024604320526, 0.14144596457481384, -0.045112889260053635, 0.10105877369642258, 0.3315567076206207, -0.19583776593208313, -0.4916897714138031, 0.26152798533439636, -0.11016404628753662, 0.07725840061903, 0.20276056230068207, -0.3696199953556061, -0.1323048621416092, 0.04506593570113182, -0.04700028523802757, -0.021563494578003883, 0.3600563406944275, 0.40211641788482666, -0.11378463357686996, -0.09458989650011063, -0.05547492206096649, -0.054510243237018585, -0.18784020841121674, -0.3114813566207886, 0.12626858055591583, 0.17685897648334503, 0.2660348117351532, 0.12446339428424835, 0.8918668031692505, 0.06133535876870155, 0.5280165672302246, 0.40901979804039, 0.10653738677501678, 0.23704487085342407, -0.3116825520992279, -0.010067867115139961, 0.08712269365787506, -0.021292774006724358, -0.11222169548273087, 0.24116887152194977, 0.06935325264930725, -0.25531336665153503, -0.4276474416255951, -0.4160277545452118, -0.2520234286785126, -0.3027334213256836, 0.29969385266304016, -0.13158968091011047, 0.23879356682300568, 0.11501357704401016, 0.11274830996990204, -0.10542985051870346, -0.09233467280864716, 0.24371160566806793, 0.1362137496471405, 0.10168637335300446, -0.0783148780465126, 0.1050662025809288, -0.09679917246103287, -0.42245158553123474, 0.3081120252609253, -0.06701204180717468, 0.0607818067073822, 0.007972738705575466, -0.39417099952697754, 0.13605950772762299, -0.15139631927013397, 0.5284689664840698, -0.19710125029087067, -0.149837464094162, 0.2106807976961136, -0.05456778407096863, -0.6518241763114929, -0.08458737283945084, 0.026726191863417625, 0.009512160904705524, 0.06694815307855606, -0.05282524600625038, -0.31648117303848267, -0.19070421159267426, 0.1585879623889923, 0.44117650389671326, -0.19340594112873077, -0.18900272250175476, -0.5053490996360779, -0.020536275580525398, -0.5622545480728149, -0.05582830682396889, -0.10675077885389328, 0.05581612139940262, 0.15813829004764557, 0.23653623461723328, 0.12424598634243011, -0.04721003398299217, -0.04125471040606499, 0.0051668016240000725, 0.3255878984928131, -0.23548825085163116, -0.10835208743810654, -0.0681346133351326, 0.12136035412549973, -0.18793755769729614, 0.22944454848766327, 0.045789655297994614, -0.18277351558208466, -0.09380237013101578, -0.07964102923870087, 0.027724387124180794, 0.3150006830692291, -0.04049219563603401, -0.040810726583004, -0.17079640924930573, -0.11938528716564178, -0.12085016071796417, 0.013112754561007023, 0.10022450983524323, -0.13119502365589142, -0.29849672317504883, -0.48364320397377014, 0.617990255355835, 0.09604627639055252, -0.09492909163236618, 0.41278982162475586, 0.09304600208997726, -0.2057654708623886, 0.5778881907463074, 0.12689049541950226, 0.9856175780296326, -0.09800366312265396, 0.2745039761066437, 0.07980796694755554, 0.054457541555166245, 0.6281548142433167, -0.7983610033988953, 0.24773231148719788, -0.2950820028781891, 0.08909743279218674, 0.0915512964129448, -0.023363087326288223, 0.24113275110721588, -0.09344552457332611, 0.06975740939378738, 0.4806111752986908, 0.1804451048374176, 0.2832384705543518, -0.1868935525417328, 0.23301254212856293, -0.17425759136676788, -0.1990813910961151, -0.28565534949302673, 0.10444972664117813, -0.06556103378534317, 0.444070041179657, -0.15353542566299438, -0.0071032410487532616, -0.1861332654953003, -0.23928971588611603, -0.3046659529209137, -0.009920398704707623, -0.14776434004306793, 0.17591342329978943, -0.3943825960159302, -0.3973288834095001, -0.11621786653995514, 0.3625183701515198, 0.20089328289031982, 0.16399595141410828, -0.2189245969057083, 0.20823626220226288, -0.15923692286014557, -0.030606146901845932, -0.12270309776067734, 0.16687548160552979, 0.2763902544975281, -0.29809850454330444, -0.1943894326686859, 0.06289993226528168, -0.3802570402622223, -0.11661560088396072, -0.13802017271518707, 0.15418818593025208, 0.4423942267894745, 0.21777893602848053, -0.3047639727592468, 0.24238206446170807, -0.14723928272724152, -0.05086742714047432, 0.19763825833797455, -0.0842675119638443, -0.1481405347585678, 0.12618786096572876, -0.18831171095371246, -0.13097549974918365, -0.010977284051477909, 0.39764702320098877, 0.3433179259300232, -0.004150114953517914, 0.42329728603363037, 0.052104536443948746, -0.3017271161079407, -0.21604159474372864, 0.18238918483257294, -0.010429215617477894, -0.11838260293006897, 0.026546593755483627, 0.12449425458908081, -0.030153349041938782, -0.20321635901927948, -0.037112027406692505, -0.075590580701828, -0.14074301719665527, -0.08202335238456726, -0.2634492516517639, -0.20336250960826874, 0.22705061733722687, -0.10808280855417252, -0.10152334719896317, -0.027417603880167007, 0.04696706682443619, 0.2720535099506378, -0.05088764801621437, -0.30561667680740356, -0.17097260057926178, -0.09498100727796555, 0.20632927119731903, 0.34151071310043335, 0.2306930273771286, 0.048935696482658386, 0.10199521481990814, 0.0767374336719513, 0.11105906963348389, -0.20870272815227509, -0.228142648935318, 0.051665641367435455, 0.15997779369354248, 0.03093942441046238, 0.01778479292988777, 0.19888079166412354, -0.39152875542640686, 0.18255318701267242, -0.3639063239097595, 0.1421433985233307, 0.10928429663181305, -0.2722727060317993, 0.22042305767536163, 0.13617731630802155, 0.2705426514148712, -0.17162902653217316, 0.248849555850029, -0.22883383929729462, 0.3137669265270233, 0.25436002016067505, 0.03723961114883423, 0.44392451643943787, 0.009206116199493408, -0.36846959590911865, -0.12062694132328033, -0.2661688029766083, -0.06667119264602661, 0.11506134271621704, -0.1013006940484047, -0.188253253698349, 0.07670281082391739, 0.08094485849142075, 0.27711254358291626, -0.18835127353668213, 0.0011666514910757542, 0.2110157161951065, 0.21676427125930786, -0.29844003915786743, 0.037849318236112595, 0.37298890948295593, -0.30676189064979553, -0.07391265779733658, 0.17837192118167877, 0.2772955298423767, -0.11618288606405258, 0.19651632010936737, 0.20130036771297455, 0.19178317487239838, -0.3311792016029358, 0.1913968175649643, 0.033352188766002655, 0.26250019669532776, 0.009125133976340294, -0.042548250406980515, -0.026703031733632088, 0.20355761051177979, 0.685082197189331, -0.109449602663517, 0.5020679235458374, 0.20983579754829407, 0.11651373654603958, -0.33937567472457886, -0.3047338128089905, 0.3627031445503235, 0.3669026494026184, -0.02260410040616989, 0.036879684776067734, -0.08350502699613571, -0.07521319389343262, 0.22786976397037506, -0.10509096086025238, -0.18978989124298096, 0.24556857347488403, -0.08777984976768494, 0.006721303798258305, 0.049343738704919815, -0.24459834396839142, 0.08703462779521942, 0.20506837964057922, 0.10637050122022629, -0.26645752787590027, 0.19616445899009705, 0.25420141220092773, -0.13885243237018585, -0.05659700185060501, 0.44791534543037415, -0.0961100235581398, 0.2970235049724579, -0.27629417181015015, -0.16550344228744507, 0.06546653062105179, -0.07992783188819885, -0.022202864289283752, 0.08610901236534119, 0.32776036858558655, 0.3482876718044281, -0.3159302771091461, -0.07674018293619156, 0.029720095917582512, -0.026905309408903122, -0.09785556048154831, 0.14721031486988068, -0.0032554741483181715, 0.35763806104660034, 0.19617997109889984, 0.09482047706842422, -0.2257528454065323, -0.1506095975637436, 0.2103351503610611, -0.10469317436218262, -0.2842302620410919, -0.038917846977710724, -0.18626633286476135, -0.21258093416690826, -0.3217763602733612, 0.05656549334526062, -0.46178048849105835, 0.16192929446697235, 0.08852456510066986, 0.13175678253173828, -0.11589892953634262, -0.289835661649704, 0.08236446231603622, -0.15696297585964203, 0.32824376225471497, 0.11399033665657043, 0.12215583026409149, -0.3864792585372925, -0.23179908096790314, -0.5559619665145874, 0.14743643999099731, -0.45316001772880554, 0.1083792895078659, -0.1252705156803131, 0.28784337639808655, 0.005667026154696941, 0.19559895992279053, -0.01774688996374607, -0.03198022022843361, -0.06089980900287628, 0.20729520916938782, -0.4182608127593994, -0.10437148064374924, -0.2250998169183731, -0.016175584867596626, -0.06847667694091797, -0.3324567675590515, 0.08186498284339905, -0.1801077127456665, 0.08141115307807922, -0.09092750400304794, -0.3238878846168518, 0.487414687871933, 0.07691747695207596, 0.6690847277641296, 0.032461944967508316, 0.2532433867454529, 0.03848913311958313, -0.15363210439682007, -0.18569603562355042, -0.046921562403440475, -0.14518041908740997, -0.0742826759815216, 0.02756340615451336, 0.25063636898994446, -0.211562380194664, -0.20130182802677155, -0.2911405861377716, 0.5944092273712158, -0.17310453951358795, 0.2295299917459488, 0.04831603914499283, -0.05749167874455452, 0.16548435389995575, 0.20907814800739288, -0.10062845796346664, 0.0978657528758049, -0.14231547713279724, -0.1428384631872177, -0.5927700400352478, -0.2566547095775604, 0.318578839302063, -0.6523007154464722, -0.3354017734527588, 0.027040060609579086, 0.3586626946926117, -0.20102687180042267, -0.02477153204381466, -0.47749292850494385, 0.11348588764667511, 0.23761200904846191, 0.20942623913288116, -0.13713987171649933, -0.05000326409935951, -0.23368936777114868, -0.008301546797156334, -0.06358370184898376, -0.34901776909828186, -0.18454955518245697, -0.23707443475723267, -0.05940941721200943, -0.331034779548645 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
the #2037 doesn't solve my problem directly, but I found the point! https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/datasets/wikipedia/wikipedia.py#L523 this `beam.transforms.Reshuffle()` cause the memory error. it makes sense if I consider the shuffle means. Beam's reshuffle seems need put all data in memory. Previously I doubt that this line causes error, but at that time another bug showed in #2037 made error, so I can't found it. Anyway, I comment out this line, and run load_dataset, then it works! ```python wiki = datasets.load_dataset( "./wikipedia.py", cache_dir="./datasets", beam_runner="DirectRunner", language="ja", date="20210120", )["train"] ``` ![image](https://user-images.githubusercontent.com/6331508/112283369-6a9f3300-8ccb-11eb-82e5-827bf7fddfb9.png) Dataset has already shuffle function. https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/arrow_dataset.py#L2069 So, though I don't know it's difference correctly, but I think Beam's reshuffle isn't be needed. How do you think?
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
111
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? the #2037 doesn't solve my problem directly, but I found the point! https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/datasets/wikipedia/wikipedia.py#L523 this `beam.transforms.Reshuffle()` cause the memory error. it makes sense if I consider the shuffle means. Beam's reshuffle seems need put all data in memory. Previously I doubt that this line causes error, but at that time another bug showed in #2037 made error, so I can't found it. Anyway, I comment out this line, and run load_dataset, then it works! ```python wiki = datasets.load_dataset( "./wikipedia.py", cache_dir="./datasets", beam_runner="DirectRunner", language="ja", date="20210120", )["train"] ``` ![image](https://user-images.githubusercontent.com/6331508/112283369-6a9f3300-8ccb-11eb-82e5-827bf7fddfb9.png) Dataset has already shuffle function. https://github.com/huggingface/datasets/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/arrow_dataset.py#L2069 So, though I don't know it's difference correctly, but I think Beam's reshuffle isn't be needed. How do you think?
[ 0.11943484097719193, 0.11088597774505615, 0.009472807869315147, 0.4295078217983246, 0.5010854005813599, 0.05407405644655228, 0.18194685876369476, 0.4008021056652069, -0.054777588695287704, 0.31626150012016296, 0.11126801371574402, 0.02708815224468708, -0.1956249326467514, -0.3097149133682251, 0.08737707138061523, -0.3430970013141632, 0.26977503299713135, -0.09609483927488327, -0.24898715317249298, -0.232112854719162, -0.35764309763908386, 0.0421401746571064, -0.4852920472621918, -0.19316406548023224, -0.2590053677558899, 0.353410542011261, -0.1904878467321396, 0.24513061344623566, -0.011713671498000622, -0.1757078617811203, -0.08209185302257538, -0.10670365393161774, -0.11210770905017853, 0.31314006447792053, -0.00011333471775287762, 0.10474199056625366, 0.375817209482193, -0.27792593836784363, -0.3259067237377167, -0.19894187152385712, -0.05530817061662674, -0.3000107407569885, -0.16259506344795227, -0.39178112149238586, -0.0717184767127037, -0.26757749915122986, 0.11966375261545181, -0.35489654541015625, 0.4223281145095825, 0.20121453702449799, 0.20539630949497223, 0.2258870005607605, 0.02812977321445942, -0.016472412273287773, 0.6700220704078674, 0.08712649345397949, -0.11163752526044846, 0.06833723187446594, -0.1488501876592636, 0.0098408292979002, -0.16150057315826416, 0.549501359462738, -0.20709599554538727, 0.07432972639799118, 0.23976673185825348, -0.23718275129795074, -0.23221297562122345, -0.3541303873062134, 0.2216898649930954, 0.17822898924350739, 0.6323612332344055, -0.3489941358566284, -0.12434672564268112, -0.1607479304075241, -0.053947579115629196, 0.1443854570388794, 0.25405851006507874, 0.18642519414424896, -0.1200915202498436, -0.12211643159389496, 0.13192638754844666, -0.13530996441841125, 0.012792138382792473, 0.20989133417606354, 0.23062311112880707, 0.42403197288513184, 0.027673259377479553, 0.2996925115585327, 0.16307243704795837, -0.18362100422382355, 0.15717267990112305, -0.24611760675907135, 0.07661932706832886, 0.3572936952114105, -0.3937426209449768, 0.0347965732216835, 0.028132125735282898, 0.0014926085714250803, 0.10850346088409424, -0.12328995764255524, -0.17551521956920624, 0.17446991801261902, 0.31441476941108704, -0.00945934560149908, 0.11996788531541824, 0.4047936797142029, 0.09894336014986038, 0.2647184729576111, 0.1185765191912651, -0.1872922033071518, -0.06395632773637772, -0.043525733053684235, -0.0904998853802681, -0.43364962935447693, -0.26203426718711853, 0.21317793428897858, 0.13391846418380737, -0.030591323971748352, -0.15400952100753784, 0.05654586851596832, -0.4272991418838501, -0.16209393739700317, -0.06128565967082977, 0.48483866453170776, 0.14397266507148743, 0.500370442867279, 0.21227248013019562, 0.14866922795772552, -0.28588905930519104, -0.2623569667339325, -0.2568901479244232, 0.45224446058273315, -0.4812198579311371, 0.19766747951507568, 0.03834015876054764, 0.24817515909671783, 0.28009361028671265, -0.17244943976402283, 0.15919655561447144, 0.03342002257704735, 0.06136445701122284, -0.16648605465888977, 0.04875641688704491, 0.41039609909057617, 0.011913768015801907, 0.3502826988697052, 0.19280275702476501, 0.13934680819511414, -0.09286373853683472, 0.267937570810318, -0.35359877347946167, -0.36014309525489807, 0.22996509075164795, 0.07138293981552124, -0.31137123703956604, 0.1920529305934906, -0.12650033831596375, -0.06472744047641754, 0.14329667389392853, 0.04464380443096161, 0.21368446946144104, -0.021093202754855156, -0.15411879122257233, -0.36666005849838257, 0.185618594288826, 0.7775566577911377, -0.10790011286735535, -0.08556439727544785, 0.03305448219180107, -0.2180716097354889, 0.17708589136600494, 0.06840900331735611, -0.07541722059249878, 0.096639484167099, -0.27167144417762756, 0.015154206193983555, 0.5695838928222656, -0.45804116129875183, -0.166878804564476, -0.022146670147776604, -0.07899441570043564, 0.03652307391166687, 0.18951554596424103, 0.1257307380437851, -0.28946205973625183, -0.10471996665000916, 0.11730720102787018, 0.10430756211280823, 0.038380175828933716, 0.25669631361961365, -0.4343811273574829, -0.16767199337482452, 0.06160617247223854, 0.2503461539745331, 0.2828435003757477, -0.09250202775001526, 0.031143177300691605, 0.5866726040840149, 0.18896129727363586, -0.11026759445667267, 0.2881113886833191, 0.45247870683670044, -0.07264730334281921, 0.07783830910921097, 0.16384297609329224, -0.059828225523233414, -0.2577006220817566, 0.29026123881340027, -0.10854652523994446, 0.22229048609733582, 0.05075830593705177, -0.013521264307200909, -0.06831393390893936, -0.22907449305057526, -0.29777100682258606, -0.28296685218811035, 0.13363346457481384, 0.02857690304517746, 0.08801902830600739, 0.15432509779930115, -0.2626297175884247, 0.3814658224582672, -0.3416260778903961, 0.029517656192183495, -0.5024127960205078, 0.2508634626865387, -0.19546495378017426, -0.1462167352437973, 0.03085828758776188, 0.08732510358095169, 0.1917508989572525, -0.13716141879558563, -0.13816630840301514, 0.39138418436050415, 0.2522929608821869, -0.0563737154006958, -0.03764805197715759, -0.08958835899829865, 0.13251103460788727, -0.20329347252845764, 0.3407703638076782, 0.058476418256759644, 0.1820218414068222, -0.12985903024673462, 0.18488679826259613, 0.13257336616516113, 0.0625193864107132, 0.3970297873020172, 0.1156463474035263, -0.06933875381946564, -0.06774861365556717, 0.14941184222698212, -0.11360780894756317, -0.3245389759540558, 0.3509785532951355, 0.3328653872013092, 0.15747009217739105, 0.0885927677154541, 0.037729356437921524, -0.2971409261226654, 0.6881408095359802, 0.14267246425151825, 0.11367620527744293, -0.05749420449137688, -0.4095012843608856, 0.06939893215894699, 0.15139448642730713, 0.03449516370892525, 0.4079185128211975, 0.13653422892093658, -0.11493979394435883, 0.14097528159618378, 0.2153797149658203, -0.09875684231519699, 0.13170330226421356, 0.23774132132530212, 0.4221462309360504, 0.05272688344120979, -0.08965794742107391, -0.011225717142224312, -0.19303655624389648, -0.17283156514167786, 0.06675316393375397, 0.15900523960590363, -0.2549690008163452, -0.12092072516679764, -0.4197216331958771, -0.5174448490142822, -0.2753364145755768, 0.14927361905574799, -0.39778798818588257, -0.24530133605003357, -0.10704853385686874, -0.07266885042190552, -0.3224286437034607, 0.31948545575141907, 0.27901458740234375, -0.04906105250120163, 0.016863137483596802, -0.3235235810279846, -0.17189832031726837, -0.29004329442977905, -0.2571321129798889, 0.02161382883787155, 0.3672429025173187, 0.0608450286090374, 0.23790770769119263, -0.26658350229263306, -0.1685304045677185, -0.10879703611135483, -0.15080620348453522, 0.1511535495519638, 0.02630169503390789, -0.14425116777420044, -0.11143732815980911, 0.3510286509990692, -0.18202751874923706, -0.10188616067171097, 0.4775204658508301, -0.057126257568597794, -0.21669389307498932, 0.2488488405942917, 0.18314628303050995, 0.07904967665672302, -0.10020063072443008, -0.4466012716293335, -0.12967005372047424, -0.5109670758247375, -0.07408390194177628, 0.08986315131187439, 0.09745078533887863, 0.15836596488952637, 0.26316767930984497, 0.18196099996566772, -0.12761862576007843, -0.03017266094684601, -0.11609705537557602, -0.05214213579893112, 0.2722153067588806, -0.14650601148605347, -0.33682823181152344, 0.2014809250831604, -0.10447871685028076, -0.002172194654121995, 0.3633407652378082, -0.18139924108982086, -0.09729688614606857, 0.0007988385041244328, -0.28727394342422485, -0.0532519556581974, 0.3520980477333069, 0.5604920387268066, -0.15332478284835815, -0.031633008271455765, -0.03311220929026604, -0.08586150407791138, -0.1202540323138237, 0.0027140178717672825, 0.35347291827201843, 0.05900660902261734, 0.2731178402900696, 0.1735915243625641, 0.9325165748596191, -0.02689843438565731, 0.46212121844291687, 0.4056250751018524, 0.04992792755365372, 0.3116855025291443, -0.39582449197769165, -0.040550775825977325, 0.24758391082286835, 0.1420392245054245, -0.0782596543431282, 0.1939639300107956, -0.011283602565526962, -0.03589766472578049, -0.5152167081832886, -0.3167862594127655, -0.21988798677921295, -0.31446316838264465, 0.35423514246940613, -0.15140725672245026, 0.009882546029984951, -0.0006801110575906932, 0.047346554696559906, 0.02786816656589508, -0.06337592750787735, 0.03904333338141441, 0.2465280443429947, -0.03471319004893303, 0.04174882173538208, -0.2293187826871872, -0.18948113918304443, -0.3416491150856018, 0.294588565826416, 0.024819251149892807, 0.17045021057128906, -0.059017762541770935, -0.3400973975658417, 0.10110799968242645, 0.07092444598674774, 0.6148956418037415, -0.22570492327213287, -0.24672681093215942, 0.28605514764785767, 0.027074342593550682, -0.6423115730285645, -0.19499532878398895, -0.02425055019557476, -0.1003393679857254, -0.18188375234603882, 0.08190286159515381, -0.23440739512443542, -0.19791416823863983, 0.17020335793495178, 0.3472839891910553, -0.04628283903002739, -0.18867911398410797, -0.4585430324077606, -0.03598130866885185, -0.5773245096206665, -0.13744881749153137, -0.030547691509127617, 0.030288374051451683, 0.08994884788990021, 0.3163570761680603, 0.18987487256526947, -0.1917279064655304, -0.02151615358889103, -0.11194227635860443, 0.34136316180229187, -0.10463722050189972, -0.1710599958896637, 0.10902915149927139, 0.04247046634554863, 0.03034534677863121, 0.2900727391242981, 0.12597711384296417, -0.17078693211078644, 0.04341427981853485, 0.02946862205862999, 0.05087811499834061, 0.4066840410232544, -0.07217396050691605, -0.04115486517548561, -0.0437261126935482, -0.0693141520023346, -0.020819874480366707, 0.029880793765187263, 0.108525849878788, -0.2762962281703949, -0.20657901465892792, -0.6122486591339111, 0.6164754629135132, 0.0779392346739769, -0.007047436665743589, 0.4423118531703949, 0.19353081285953522, -0.2312549650669098, 0.5099318623542786, 0.14726687967777252, 1.117715835571289, -0.1503804475069046, 0.28150126338005066, 0.17894843220710754, 0.13420239090919495, 0.6970810890197754, -0.6101916432380676, 0.3381561040878296, -0.19023405015468597, 0.05938420444726944, 0.04982786625623703, -0.11474665999412537, 0.3421470522880554, 0.07422550767660141, 0.05207248777151108, 0.5547208786010742, 0.09440960735082626, 0.3872450292110443, -0.3301391303539276, -0.03823137655854225, -0.40874338150024414, -0.09955576062202454, -0.2862851619720459, 0.07730135321617126, -0.10735629498958588, 0.5356628894805908, -0.11050254851579666, 0.0492258220911026, -0.36786961555480957, -0.26974210143089294, -0.271293044090271, 0.0676352009177208, -0.2752245366573334, 0.2253476232290268, -0.4388573467731476, -0.1412001997232437, -0.18352822959423065, 0.2323136329650879, 0.26496097445487976, -0.0146421417593956, -0.07793528586626053, 0.234530970454216, 0.05452612414956093, 0.014442821964621544, -0.16124692559242249, 0.07046420127153397, 0.3199256658554077, -0.149327352643013, -0.2023094892501831, -0.007221029605716467, -0.25280097126960754, -0.19984082877635956, -0.2708629071712494, 0.1244182139635086, 0.5775043368339539, 0.2529718577861786, -0.32013800740242004, 0.33925390243530273, -0.043724872171878815, 0.08532005548477173, 0.1442815214395523, -0.16201116144657135, -0.06899825483560562, 0.09584493190050125, -0.3166086673736572, -0.03188953176140785, -0.04099983721971512, 0.41144680976867676, 0.3425067365169525, -0.04512597993016243, 0.3743169605731964, 0.026804229244589806, -0.16993293166160583, -0.1892457902431488, 0.18157070875167847, 0.2453116774559021, -0.20644240081310272, 0.04059784859418869, 0.05300471931695938, -0.06568663567304611, -0.11353209614753723, -0.008220931515097618, -0.031691089272499084, 0.02572960965335369, 0.086147241294384, -0.2623574435710907, -0.2688732147216797, 0.400969922542572, 0.028567880392074585, 0.09624442458152771, -0.1838032454252243, 0.1682521402835846, 0.25814005732536316, -0.28045299649238586, -0.26366126537323, -0.16644616425037384, -0.13792376220226288, 0.21317458152770996, 0.16112332046031952, 0.29406359791755676, 0.07114843279123306, 0.026066619902849197, 0.030883651226758957, 0.17001491785049438, -0.36570000648498535, -0.150689497590065, 0.026994245126843452, 0.16482585668563843, 0.1837407499551773, 0.014964012429118156, 0.16293157637119293, -0.4742911458015442, 0.13311022520065308, -0.31031090021133423, 0.14515115320682526, 0.32820799946784973, -0.17410941421985626, 0.3330099284648895, 0.31198084354400635, 0.15289068222045898, -0.12636783719062805, 0.28100112080574036, -0.20808914303779602, 0.18110911548137665, 0.2060033679008484, -0.020251696929335594, 0.37472009658813477, 0.1296892911195755, -0.40938490629196167, -0.1814800649881363, -0.3265284299850464, -0.02672240324318409, -0.05405151844024658, -0.06796278059482574, -0.09414607286453247, -0.07206572592258453, 0.13910731673240662, 0.3085325360298157, -0.2720411717891693, -0.1431085765361786, 0.2774806618690491, 0.1624220311641693, -0.21921740472316742, 0.07506079226732254, 0.369658499956131, -0.07326876372098923, -0.03153105452656746, 0.16244938969612122, 0.027478326112031937, -0.0455574169754982, 0.18034936487674713, 0.19162115454673767, 0.2042512595653534, -0.2743171751499176, 0.3263809382915497, 0.12305595725774765, 0.24870456755161285, -0.036845672875642776, 0.014305735938251019, -0.04071294516324997, 0.23213914036750793, 0.6695374250411987, -0.17908650636672974, 0.5875691771507263, 0.06214286386966705, 0.16204816102981567, -0.21893391013145447, -0.39870160818099976, 0.2998211979866028, 0.6812437176704407, -0.09851006418466568, 0.10046252608299255, -0.1580057591199875, -0.0540071539580822, 0.17638885974884033, -0.02042771317064762, -0.09605003893375397, 0.11243915557861328, -0.06075265631079674, 0.14336927235126495, 0.02140379138290882, -0.26905232667922974, -0.18282292783260345, 0.10306130349636078, 0.08822062611579895, -0.38282474875450134, 0.371480256319046, 0.19740161299705505, -0.18557803332805634, -0.08040899783372879, 0.34170353412628174, 0.1561102569103241, 0.07187116891145706, -0.24123361706733704, -0.10077497363090515, 0.12736715376377106, -0.15817128121852875, 0.17881983518600464, 0.11640607565641403, 0.26576852798461914, 0.41344836354255676, -0.06761655956506729, -0.08478250354528427, 0.1543549746274948, -0.018200838938355446, -0.018674274906516075, 0.17842639982700348, 0.054529819637537, 0.1362738162279129, 0.17429937422275543, 0.0870504230260849, -0.2107059508562088, -0.15943925082683563, 0.2782297730445862, 0.08922994881868362, -0.27677470445632935, -0.03335550054907799, -0.33874571323394775, 0.023156190291047096, -0.2729211747646332, 0.09585646539926529, -0.65175861120224, 0.0046348851174116135, -0.09739073365926743, 0.15093132853507996, 0.023120997473597527, -0.16432951390743256, 0.04316531494259834, -0.17165973782539368, 0.25879767537117004, 0.14339430630207062, -0.1367458701133728, -0.31922194361686707, -0.39525941014289856, -0.591094970703125, 0.011755218729376793, -0.31849783658981323, 0.3399737775325775, -0.14488069713115692, 0.2900012731552124, 0.027064625173807144, 0.18409055471420288, -0.09463343024253845, 0.06592407077550888, -0.07287243008613586, 0.16867773234844208, -0.40839797258377075, -0.1803991198539734, -0.18476171791553497, 0.08446220308542252, 0.08280057460069656, -0.3851659893989563, -0.030134236440062523, -0.09416866302490234, -0.03281836211681366, -0.09809958934783936, -0.26345130801200867, 0.42844560742378235, -0.11247917264699936, 0.5186234712600708, -0.10620755702257156, 0.23814818263053894, 0.08324555307626724, -0.14082305133342743, -0.2633807957172394, -0.15760087966918945, -0.07886186242103577, -0.0940663069486618, 0.03137724846601486, 0.4429907202720642, -0.2951679825782776, -0.06228973716497421, -0.3243887722492218, 0.4698706865310669, -0.2132890820503235, 0.23909775912761688, -0.17126664519309998, 0.15147189795970917, 0.14712771773338318, 0.35933393239974976, -0.16641117632389069, 0.00644677085801959, -0.0772223025560379, -0.06319262832403183, -0.5480517148971558, -0.2193661481142044, 0.5287935733795166, -0.4788557291030884, -0.28193315863609314, -0.060686226934194565, 0.2528173327445984, -0.17673300206661224, -0.06537595391273499, -0.5018316507339478, 0.19244161248207092, 0.24566440284252167, 0.19235271215438843, -0.0027940168511122465, 0.05487601086497307, -0.22971725463867188, -0.0328221395611763, -0.04101843759417534, -0.36414533853530884, -0.20551976561546326, -0.15347644686698914, 0.17434900999069214, -0.2991894781589508 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
The reshuffle is needed when you use parallelism. The objective is to redistribute the articles evenly on the workers, since the `_extract_content` step generated many articles per file. By using reshuffle, we can split the processing of the articles of one file into several workers. Without reshuffle, all the articles of one file would be processed on the same worker that read the file, making the whole process take a very long time.
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
73
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? The reshuffle is needed when you use parallelism. The objective is to redistribute the articles evenly on the workers, since the `_extract_content` step generated many articles per file. By using reshuffle, we can split the processing of the articles of one file into several workers. Without reshuffle, all the articles of one file would be processed on the same worker that read the file, making the whole process take a very long time.
[ 0.04016418755054474, 0.010121386498212814, -0.005872595123946667, 0.12934668362140656, -0.011951577849686146, 0.05967062711715698, 0.36614421010017395, 0.3480101525783539, 0.022975163534283638, 0.27976125478744507, 0.16045674681663513, 0.07360940426588058, 0.19807526469230652, -0.1953655332326889, -0.08456403017044067, -0.2648458480834961, 0.34238871932029724, -0.013063143007457256, -0.05664285272359848, -0.3558190166950226, -0.44790270924568176, 0.20008377730846405, -0.5033817887306213, -0.17801406979560852, -0.16961242258548737, 0.2718338072299957, -0.14334678649902344, 0.38924282789230347, 0.18607959151268005, -0.0491475984454155, -0.040071044117212296, -0.08704936504364014, -0.0869857519865036, 0.25627002120018005, -0.00011818209895864129, 0.09909769147634506, 0.2742287218570709, -0.22646082937717438, -0.23540398478507996, -0.13553789258003235, -0.00016700981359463185, -0.5018967390060425, -0.09320239722728729, -0.4231710731983185, 0.02329743281006813, -0.040047042071819305, 0.03913622349500656, -0.20834949612617493, 0.5846298933029175, 0.10018111765384674, 0.10304617881774902, 0.2666606605052948, 0.047695714980363846, -0.025113694369792938, 0.3200203478336334, -0.047489017248153687, -0.04051405191421509, 0.15229855477809906, -0.0020852875895798206, 0.21328596770763397, -0.10750076174736023, 0.4607253670692444, -0.25584372878074646, 0.13573257625102997, -0.0586366131901741, -0.19716067612171173, -0.11754534393548965, -0.48671966791152954, 0.30784013867378235, 0.2610000967979431, 0.4405622184276581, 0.01647076942026615, -0.17538349330425262, -0.2519308924674988, -0.133092999458313, 0.11449068039655685, 0.12259647995233536, 0.19379137456417084, 0.11230350285768509, 0.09987107664346695, 0.5713419318199158, -0.3144809603691101, 0.05632588639855385, 0.05516887828707695, 0.2326834499835968, 0.5872225165367126, 0.11059825122356415, 0.4362627863883972, 0.04448437690734863, 0.15456074476242065, 0.20640060305595398, -0.28615665435791016, 0.20104748010635376, 0.23654988408088684, -0.24309730529785156, -0.005230823997408152, -0.03738288953900337, -0.22371791303157806, -0.07317305356264114, -0.10040105134248734, -0.5007820725440979, 0.2464478760957718, 0.47614771127700806, 0.17040778696537018, 0.1579039841890335, 0.18186615407466888, 0.17939434945583344, 0.21940471231937408, 0.2643756866455078, -0.2684372663497925, -0.053807102143764496, -0.0212682094424963, 0.13327351212501526, -0.37632304430007935, -0.47319480776786804, 0.28967684507369995, 0.03310610353946686, -0.11727981269359589, -0.11248230934143066, -0.23946085572242737, -0.2518797218799591, -0.3447427749633789, -0.28709152340888977, 0.2796640396118164, 0.3040514886379242, 0.5849851965904236, 0.030954504385590553, 0.2881346344947815, -0.5063952803611755, -0.19197529554367065, -0.14293089509010315, 0.19936655461788177, -0.26771795749664307, 0.16402271389961243, -0.07521159946918488, 0.14584389328956604, 0.15519310534000397, -0.1586458832025528, 0.22103558480739594, 0.03299212083220482, 0.09269212931394577, -0.022987045347690582, 0.029404984787106514, 0.49561113119125366, 0.1296815276145935, 0.33436861634254456, 0.38185039162635803, 0.044121433049440384, -0.33613717555999756, 0.27257275581359863, -0.5118632912635803, -0.49851199984550476, 0.14367295801639557, 0.031097326427698135, -0.18916863203048706, 0.19585950672626495, -0.018779825419187546, -0.028652207925915718, 0.28618761897087097, -0.14592806994915009, 0.26132819056510925, -0.0038725342601537704, -0.0005574389360845089, -0.31660228967666626, -0.042888108640909195, 0.6379073262214661, -0.11724487692117691, 0.008237412199378014, -0.010736573487520218, -0.10415472835302353, 0.212779238820076, 0.19397054612636566, -0.11018941551446915, 0.07632671296596527, -0.20478500425815582, 0.021015696227550507, 0.5991597771644592, -0.5733519792556763, -0.12032759934663773, 0.08847855776548386, -0.24607084691524506, 0.1072981134057045, 0.4706139862537384, -0.009703719057142735, -0.07953610271215439, -0.22630715370178223, 0.029219234362244606, 0.1647595465183258, 0.09461196511983871, 0.10126888006925583, -0.4208424687385559, 0.028259867802262306, 0.15017032623291016, 0.16668839752674103, 0.19319945573806763, 0.17976275086402893, 0.06124109402298927, 0.11919446289539337, 0.2179640531539917, -0.03080216981470585, 0.2628245949745178, 0.2563932538032532, -0.19556006789207458, 0.24265088140964508, 0.39249294996261597, 0.2315068542957306, -0.07328251004219055, 0.2811628580093384, -0.13746987283229828, 0.34389644861221313, 0.06797970086336136, -0.1475522518157959, -0.02134319208562374, -0.4191908538341522, -0.36520153284072876, -0.5023624897003174, -0.0390961617231369, -0.0010690359631553292, 0.23209546506404877, 0.2806376516819, -0.41118597984313965, 0.3606007993221283, -0.37012219429016113, 0.05765976011753082, -0.5175857543945312, 0.24843628704547882, -0.195428729057312, -0.015076670795679092, -0.09020987153053284, 0.11603684723377228, -0.006201908923685551, -0.24106240272521973, -0.027880357578396797, 0.36862656474113464, 0.2898937165737152, 0.1484851837158203, 0.18622161448001862, -0.2278819978237152, 0.10582990944385529, -0.2935659885406494, 0.36051008105278015, 0.21678559482097626, 0.11436616629362106, -0.18367905914783478, 0.2624618411064148, 0.3334517478942871, 0.03312293067574501, 0.42860499024391174, 0.0929734855890274, -0.0501374788582325, 0.15839724242687225, -0.0014182418817654252, -0.17415952682495117, -0.1964767426252365, 0.2689022123813629, 0.2168014943599701, 0.04007282853126526, -0.08406442403793335, 0.016317009925842285, -0.12168209999799728, 0.6155576705932617, 0.04002741724252701, 0.12034198641777039, -0.0023307104129344225, -0.20982849597930908, -0.007105506490916014, 0.03580423444509506, 0.04775064066052437, 0.4985297620296478, 0.16648580133914948, 0.028451232239603996, 0.09103178977966309, 0.31292062997817993, -0.22144246101379395, -0.021174335852265358, 0.14035029709339142, 0.33213308453559875, 0.22385375201702118, -0.24556145071983337, 0.030316805467009544, -0.3016819655895233, -0.10415611416101456, -0.198761984705925, 0.0637180507183075, -0.0474320612847805, -0.021309347823262215, -0.022948797792196274, -0.36249563097953796, -0.44163721799850464, 0.05586254224181175, -0.3911733329296112, -0.337200790643692, 0.07886843383312225, -0.03772814944386482, -0.2612815201282501, 0.39614567160606384, 0.3479465842247009, -0.06494411081075668, -0.043428342789411545, -0.1267155259847641, -0.22744354605674744, -0.3022429049015045, -0.2869904637336731, -0.041445642709732056, 0.16138362884521484, 0.24411225318908691, 0.050085294991731644, -0.3857811987400055, -0.1624460071325302, -0.1729765683412552, -0.13533411920070648, 0.08652053028345108, -0.05827410891652107, -0.1021670252084732, -0.11368951201438904, 0.3374122679233551, -0.04351648688316345, -0.1603812277317047, 0.36283165216445923, -0.04973359405994415, -0.19898653030395508, 0.27591103315353394, 0.10074026882648468, 0.09265551716089249, 0.06121538579463959, -0.6890733242034912, -0.3914896845817566, -0.4526819586753845, 0.028304720297455788, 0.14885501563549042, -0.002344619482755661, -0.1121012344956398, 0.1457037329673767, -0.18621143698692322, 0.04373134300112724, -0.18426887691020966, -0.1412884145975113, -0.14822536706924438, 0.18394838273525238, -0.15875084698200226, -0.3171839118003845, 0.11668255925178528, -0.17493008077144623, -0.19349868595600128, 0.1352556049823761, -0.09558432549238205, -0.005591035354882479, 0.11830676347017288, -0.28163623809814453, -0.14812147617340088, 0.6191085577011108, 0.6890797019004822, -0.1661871373653412, 0.0601067915558815, -0.024042043834924698, 0.12239037454128265, -0.07017862796783447, 0.09907998889684677, 0.3527522683143616, -0.08788152039051056, 0.056944288313388824, 0.07998253405094147, 0.801792323589325, 0.13501857221126556, 0.621397078037262, 0.25834178924560547, 0.1399974226951599, 0.2320946902036667, -0.48853951692581177, -0.04333631321787834, 0.16620492935180664, 0.01754286326467991, -0.1670771837234497, 0.24522298574447632, 0.049352362751960754, 0.0112368855625391, -0.4611932933330536, -0.4745751619338989, -0.39808225631713867, -0.2800997197628021, 0.2716118395328522, -0.059054017066955566, 0.18067112565040588, 0.009842349216341972, -0.14355681836605072, 0.13084419071674347, 0.10814014822244644, 0.01836203597486019, 0.5039045214653015, 0.08182408660650253, 0.049827612936496735, -0.39066848158836365, -0.22060562670230865, -0.25474825501441956, 0.3904038965702057, 0.10388360917568207, 0.0071675535291433334, 0.21924233436584473, -0.43768054246902466, 0.17560076713562012, 0.03669803962111473, 0.7510887384414673, -0.2891364097595215, -0.2462833970785141, 0.12140481919050217, 0.07342565804719925, -0.4148043990135193, -0.2408631592988968, -0.013212285935878754, 0.0017454959452152252, -0.07531968504190445, 0.1231316402554512, -0.3026680648326874, -0.08315630257129669, 0.11617828905582428, 0.2808745205402374, -0.20459704101085663, -0.2897416353225708, -0.6348307728767395, -0.19603964686393738, -0.7667281031608582, -0.10091700404882431, -0.22457455098628998, -0.026901409029960632, -0.045741967856884, 0.24029861390590668, 0.26644665002822876, -0.16871605813503265, -0.1306384652853012, 0.04956744238734245, 0.04206918552517891, -0.276118665933609, -0.3636625111103058, 0.10345210880041122, -0.1921044886112213, 0.23614075779914856, 0.20599085092544556, -0.025182267650961876, -0.18174530565738678, -0.06619884073734283, -0.1538829803466797, 0.2551393210887909, 0.36043640971183777, -0.003167420392856002, 0.06693805009126663, -0.021135730668902397, -0.0070207323879003525, -0.043165143579244614, -0.41923192143440247, -0.004598681814968586, -0.07958249002695084, -0.27019229531288147, -0.5315513014793396, 0.47781118750572205, -0.10894250869750977, -0.009723233059048653, 0.22046905755996704, 0.16527917981147766, -0.074098140001297, 0.5455195307731628, -0.03704003244638443, 1.197977900505066, 0.0697285458445549, 0.2619313895702362, 0.020001016557216644, 0.06736721843481064, 0.8408923149108887, -0.715560257434845, 0.3852579593658447, -0.17880934476852417, 0.0753539651632309, -0.10271581262350082, -0.09643697738647461, 0.5330150127410889, 0.15236786007881165, -0.11155017465353012, 0.6340991258621216, 0.08979866653680801, 0.1107649952173233, -0.3829468786716461, 0.049149736762046814, -0.5872064828872681, -0.002017996273934841, -0.09553716331720352, -0.10176320374011993, 0.10789152979850769, 0.5783402919769287, -0.1541692167520523, 0.14053575694561005, -0.4126489758491516, -0.4174627363681793, -0.04357128590345383, -0.04020438715815544, 0.1563466638326645, 0.3821926414966583, -0.20154301822185516, -0.27723586559295654, -0.22755400836467743, 0.03411963954567909, 0.3032435178756714, -0.24503794312477112, 0.11956247687339783, 0.07197635620832443, 0.10278473794460297, -0.13349340856075287, -0.08511914312839508, 0.026655659079551697, 0.3381585478782654, -0.16178730130195618, -0.26839178800582886, -0.14185276627540588, -0.25890207290649414, -0.29961028695106506, -0.17872266471385956, 0.2115916609764099, 0.38931918144226074, 0.15883952379226685, -0.34687745571136475, 0.6813212633132935, -0.1538223773241043, -0.07830343395471573, 0.05175032466650009, -0.07183997333049774, -0.3309113681316376, 0.2146342247724533, -0.46960410475730896, -0.05162579193711281, -0.14457081258296967, 0.2845222055912018, 0.5598363280296326, -0.08527697622776031, 0.20965836942195892, 0.04812273755669594, -0.15594740211963654, -0.14064562320709229, 0.206129252910614, 0.0663556382060051, -0.11675465852022171, -0.008844052441418171, -0.00033645270741544664, -0.060278911143541336, -0.11833526194095612, 0.12238064408302307, 0.09609793871641159, 0.17564603686332703, -0.16875627636909485, -0.5080206990242004, 0.03600260987877846, 0.3683108687400818, 0.08854901790618896, -0.1269349604845047, -0.026703808456659317, 0.23836897313594818, 0.3466285169124603, -0.04479561001062393, -0.19756931066513062, -0.04431488364934921, -0.0991530492901802, 0.3087208569049835, 0.19738470017910004, 0.16574403643608093, 0.020200412720441818, 0.09836763888597488, -0.05061125382781029, 0.0820612907409668, -0.27949365973472595, -0.08967086672782898, 0.10345687717199326, 0.21294951438903809, 0.13012835383415222, 0.08393946290016174, 0.10401685535907745, -0.28927794098854065, 0.1351737529039383, -0.10968820005655289, 0.03430088981986046, 0.15330633521080017, -0.28241536021232605, 0.4188389778137207, 0.32412299513816833, 0.22746261954307556, -0.4157673418521881, 0.3026827871799469, -0.3377503454685211, 0.037383969873189926, 0.0953705683350563, 0.1226106509566307, 0.3036297857761383, 0.15799692273139954, -0.22147002816200256, -0.11254903674125671, -0.1013609766960144, 0.08598591387271881, 0.10198395699262619, -0.005394396837800741, 0.050943151116371155, -0.3437861204147339, 0.29986417293548584, 0.528512716293335, -0.0004929116694256663, -0.19016720354557037, 0.16034437716007233, 0.053631920367479324, -0.3772274851799011, -0.0003579434414859861, 0.6144305467605591, -0.11603989452123642, -0.026205696165561676, 0.2547365128993988, 0.29713794589042664, -0.16336004436016083, 0.1214408278465271, 0.17179670929908752, 0.30755382776260376, -0.302223801612854, 0.31141331791877747, 0.2198163866996765, 0.20224784314632416, 0.10237695276737213, 0.043801359832286835, -0.0593719519674778, 0.23157311975955963, 0.46318933367729187, 0.0525064542889595, 0.7212819457054138, 0.2852931022644043, 0.1726117879152298, -0.26434966921806335, -0.3424146771430969, 0.3993779420852661, 0.44653400778770447, 0.044676974415779114, -0.07830465584993362, 0.0100707421079278, -0.13941748440265656, 0.005877676419913769, 0.15160232782363892, 0.034340791404247284, 0.2824632525444031, -0.03212551027536392, 0.13385920226573944, 0.1411099135875702, -0.2624065577983856, 0.018720509484410286, -0.07413606345653534, 0.10884527862071991, -0.07341562956571579, 0.4331260025501251, 0.12274088710546494, -0.026701154187321663, 0.12844188511371613, 0.24472805857658386, -0.2824219763278961, 0.14479003846645355, -0.07601891458034515, -0.2901897132396698, 0.24403201043605804, 0.0011966123711317778, 0.16479699313640594, 0.22644484043121338, 0.2207716554403305, 0.14774593710899353, -0.18695813417434692, -0.011066668666899204, 0.11913567781448364, -0.07422341406345367, -0.040030624717473984, 0.21722380816936493, -0.08674667030572891, 0.1863633096218109, 0.044302333146333694, 0.06155148521065712, -0.13331155478954315, -0.04441067576408386, 0.1823519915342331, -0.15425817668437958, -0.1811789870262146, 0.011791988275945187, -0.1430225372314453, -0.15559518337249756, -0.19527684152126312, 0.2217179834842682, -0.4802033007144928, -0.03146934509277344, -0.03264934942126274, -0.11435957252979279, -0.17120181024074554, -0.1373385488986969, 0.002443482866510749, -0.1196259930729866, 0.227076917886734, 0.41512465476989746, 0.0142973018810153, -0.1361875832080841, -0.3554020822048187, -0.3997882008552551, 0.18106746673583984, -0.4627871513366699, 0.1659284234046936, -0.19516758620738983, 0.33867090940475464, 0.14673401415348053, 0.3504430055618286, -0.05125444754958153, 0.14343075454235077, -0.25810307264328003, 0.2402316927909851, -0.15194158256053925, -0.1650693118572235, -0.1928880363702774, -0.08249052613973618, -0.10497917234897614, -0.34929749369621277, -0.007159637752920389, 0.21734929084777832, -0.03680531308054924, 0.07352109998464584, -0.2756357491016388, 0.5410730242729187, -0.16765926778316498, 0.3580452799797058, 0.1330913007259369, 0.2596685290336609, 0.047048624604940414, -0.0877503752708435, 0.24617545306682587, -0.05568712204694748, -0.2559538781642914, 0.18279066681861877, -0.012111809104681015, 0.21329852938652039, -0.42192375659942627, -0.0811932384967804, -0.21494100987911224, 0.48991769552230835, -0.024941181764006615, 0.13348588347434998, -0.33246222138404846, 0.187661275267601, 0.14719299972057343, 0.13258317112922668, -0.052851881831884384, 0.32692524790763855, 0.04152828827500343, -0.10884267091751099, -0.47385716438293457, -0.0035292869433760643, 0.2111249417066574, -0.4024793207645416, -0.4467404782772064, -0.08654814213514328, 0.28536200523376465, -0.14696873724460602, 0.02716241218149662, -0.40596961975097656, 0.008741041645407677, 0.2635789215564728, 0.1890696883201599, 0.054797008633613586, 0.004381553735584021, -0.16458939015865326, -0.3674691319465637, 0.032762620598077774, -0.4655793011188507, -0.13913331925868988, -0.15702226758003235, 0.09463242441415787, -0.4148325026035309 ]
https://github.com/huggingface/datasets/issues/1790
ModuleNotFoundError: No module named 'apache_beam', when specific languages.
Maybe the reshuffle step can be added only if the runner is not a DirectRunner ?
```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct?
16
ModuleNotFoundError: No module named 'apache_beam', when specific languages. ```py import datasets wiki = datasets.load_dataset('wikipedia', '20200501.ja', cache_dir='./datasets') ``` then `ModuleNotFoundError: No module named 'apache_beam'` happend. The error doesn't appear when it's '20200501.en'. I don't know Apache Beam, but according to #498 it isn't necessary when it's saved to local. is it correct? Maybe the reshuffle step can be added only if the runner is not a DirectRunner ?
[ -0.03782912716269493, 0.051789842545986176, 0.045922499150037766, 0.16189543902873993, 0.22176755964756012, 0.04954986274242401, 0.2877710163593292, 0.3032410442829132, 0.025933649390935898, 0.17993322014808655, 0.29103437066078186, -0.019248973578214645, 0.10451535135507584, -0.023227469995617867, 0.1100316196680069, -0.3740750253200531, 0.3071027100086212, -0.037050168961286545, -0.09599161893129349, -0.281830370426178, -0.4426356852054596, 0.10544055700302124, -0.3799925446510315, -0.15793541073799133, -0.003189417300745845, 0.23314501345157623, -0.05683635175228119, 0.2654174268245697, 0.20037300884723663, -0.14373601973056793, -0.03453947976231575, -0.2057218998670578, -0.09999733418226242, 0.3504481911659241, -0.00012388898176141083, 0.2205035239458084, 0.31992313265800476, -0.29376471042633057, -0.24197624623775482, -0.15625937283039093, 0.023121338337659836, -0.32154685258865356, -0.13884641230106354, -0.36310407519340515, -0.1016654521226883, -0.02534511871635914, 0.06650365144014359, -0.3819902241230011, 0.6048763990402222, 0.19281497597694397, 0.1098596453666687, 0.4210018813610077, -0.020771773532032967, -0.014777887612581253, 0.3787577748298645, -0.08651841431856155, -0.1000082865357399, -0.07794526219367981, -0.2010752409696579, 0.22937312722206116, -0.17143113911151886, 0.3713359534740448, -0.2388283610343933, 0.008769918233156204, 0.0032128209713846445, -0.2786226272583008, -0.08512973040342331, -0.4114535450935364, 0.18973605334758759, 0.26879459619522095, 0.4893796741962433, -0.27171701192855835, -0.2248735874891281, -0.21711280941963196, 0.002334074815735221, -0.06651799380779266, 0.2809658348560333, 0.0015111484099179506, 0.06603947281837463, 0.008656770922243595, 0.5118036270141602, -0.3065740764141083, 0.10257116705179214, -0.017594600096344948, -0.10903462022542953, 0.666725218296051, 0.21839965879917145, 0.3571630120277405, -0.09042567759752274, 0.1953648179769516, 0.33299681544303894, -0.20055308938026428, 0.06528858095407486, 0.12462382763624191, -0.34686270356178284, -0.05458413064479828, 0.037344519048929214, 0.12321953475475311, -0.16774587333202362, -0.009198627434670925, -0.24723361432552338, 0.16283352673053741, 0.3050278425216675, 0.0636528730392456, 0.040543608367443085, 0.23899683356285095, 0.16418957710266113, 0.3014986217021942, 0.2608813941478729, -0.31876710057258606, 0.13403871655464172, 0.01626158133149147, 0.12025927752256393, -0.5691353678703308, -0.5156903266906738, 0.3740115761756897, 0.01902853325009346, -0.026121115311980247, -0.1588689386844635, -0.07682269811630249, -0.3505401909351349, -0.2740909457206726, -0.053321998566389084, 0.3207167387008667, 0.15931828320026398, 0.3862243890762329, 0.13747434318065643, 0.30437180399894714, -0.29985055327415466, -0.1806757152080536, -0.0933372750878334, 0.10232608020305634, -0.2912917137145996, 0.04539050534367561, -0.08077846467494965, 0.08105859160423279, 0.1793287843465805, -0.15455476939678192, 0.19758448004722595, 0.23244567215442657, -0.01618422381579876, 0.08080445230007172, -0.051310859620571136, 0.4848628342151642, 0.20389819145202637, 0.34240931272506714, 0.4302807152271271, 0.17340123653411865, -0.2173183262348175, 0.370519757270813, -0.45405253767967224, -0.31095024943351746, 0.19283954799175262, -0.01056587789207697, -0.1869196742773056, 0.06782922148704529, -0.04087815806269646, -0.044785235077142715, 0.19605201482772827, -0.1627368927001953, 0.26737353205680847, -0.12607377767562866, -0.13564765453338623, -0.2988693416118622, 0.04026027023792267, 0.6308400630950928, -0.1694738119840622, -0.07109913229942322, 0.057862646877765656, -0.09613247215747833, 0.14747542142868042, -0.07686085999011993, -0.03195338323712349, 0.20581486821174622, -0.29016929864883423, -0.03518157824873924, 0.9126724004745483, -0.5441174507141113, 0.04659636318683624, -0.09091691672801971, -0.30123981833457947, 0.039516936987638474, 0.5204702019691467, -0.08600448817014694, -0.2685619294643402, -0.2502496540546417, -0.06698036193847656, 0.28022056818008423, 0.0710948035120964, 0.10198504477739334, -0.28317683935165405, 0.11589591950178146, 0.19969376921653748, 0.2040518969297409, 0.34777170419692993, 0.1337684541940689, -0.026322519406676292, 0.30893003940582275, 0.1329001933336258, -0.043741632252931595, 0.21098996698856354, 0.381060928106308, -0.31029343605041504, 0.0953516736626625, 0.32888737320899963, 0.13898822665214539, -0.036351390182971954, 0.2736407220363617, -0.2340342104434967, 0.12618468701839447, 0.22008579969406128, -0.08633240312337875, -0.04913496598601341, -0.35384514927864075, -0.44718971848487854, -0.1766674816608429, -0.0177153330296278, 0.047913841903209686, 0.10067394375801086, 0.2592098116874695, -0.43862631916999817, 0.35041025280952454, -0.23825863003730774, 0.133107990026474, -0.33132824301719666, 0.3779868483543396, -0.12919111549854279, -0.009474514052271843, -0.03574714437127113, 0.15517260134220123, 0.1023944541811943, -0.2608758509159088, -0.01176717784255743, 0.38219693303108215, 0.18477821350097656, 0.000945737527217716, 0.06612090766429901, -0.2647802233695984, 0.11083865910768509, -0.008819036185741425, 0.31061673164367676, 0.22227725386619568, -0.042331647127866745, -0.19953781366348267, 0.15823248028755188, 0.3815392255783081, -0.026356132701039314, 0.5534003973007202, 0.07675300538539886, 0.03884901478886604, 0.09333894401788712, 0.032716456800699234, -0.1753460019826889, -0.09972169250249863, 0.3674663305282593, 0.2749306857585907, 0.1782633513212204, -0.17332914471626282, -0.038780126720666885, -0.11638500541448593, 0.6952415704727173, 0.18309450149536133, 0.13380660116672516, 0.0048364149406552315, -0.2690501809120178, 0.15149830281734467, -0.005978699307888746, 0.0746213048696518, 0.3360256552696228, 0.2021518051624298, 0.03812840208411217, 0.1766219139099121, 0.20830538868904114, -0.16544222831726074, 0.042726241052150726, 0.11874467134475708, 0.32860252261161804, 0.304761677980423, -0.20406706631183624, -0.09143627434968948, -0.3562949001789093, -0.07284177094697952, -0.02728334628045559, 0.07377760857343674, -0.19989967346191406, -0.011913303285837173, -0.2538818418979645, -0.4885878562927246, -0.46479108929634094, -0.022079065442085266, -0.52788245677948, -0.3266157805919647, 0.18994125723838806, 0.017820656299591064, -0.15341246128082275, 0.5467304587364197, 0.3333820700645447, -0.14335408806800842, -0.006054777652025223, -0.4190135598182678, -0.2095366269350052, -0.26168882846832275, -0.2897980213165283, 0.009899675846099854, 0.34420299530029297, -0.015084541402757168, 0.06477471441030502, -0.38195115327835083, -0.09016969054937363, -0.1610036939382553, -0.20000413060188293, 0.0520419217646122, -0.03571830689907074, -0.30445489287376404, -0.04902765527367592, 0.3831203281879425, -0.16673453152179718, 0.026965130120515823, 0.38867926597595215, 0.12564055621623993, -0.28553807735443115, 0.21236027777194977, 0.14142069220542908, 0.09060404449701309, 0.021754426881670952, -0.5343984365463257, -0.2619631588459015, -0.4425390660762787, -0.11274315416812897, 0.3377595543861389, -0.017936021089553833, -0.21488285064697266, 0.25429749488830566, -0.1770944893360138, 0.014104248024523258, -0.2195471078157425, -0.047656476497650146, -0.018810255452990532, 0.21716029942035675, -0.08232489973306656, -0.2377469539642334, 0.14541015028953552, -0.14839497208595276, -0.04913567379117012, 0.1627819985151291, -0.1970965713262558, -0.20413686335086823, 0.23596392571926117, -0.21190036833286285, -0.15541115403175354, 0.6291603446006775, 0.7919958233833313, -0.058462776243686676, 0.05166985094547272, -0.05225684866309166, -0.04507408291101456, -0.1296369731426239, -0.04571784287691116, 0.4874376952648163, -0.0442965142428875, 0.37778398394584656, -0.0016316627152264118, 0.8330237865447998, -0.0795275866985321, 0.5151053667068481, 0.24860559403896332, 0.03145080804824829, 0.35766246914863586, -0.5895618200302124, 0.07509687542915344, 0.14008106291294098, 0.18108080327510834, -0.08089978247880936, 0.18262457847595215, 0.08488419651985168, 0.22796696424484253, -0.4252330958843231, -0.28320711851119995, -0.15905018150806427, -0.30673670768737793, 0.24245396256446838, -0.20190954208374023, 0.04920094832777977, -0.020922724157571793, -0.00763748399913311, -0.04596822336316109, 0.0837600901722908, 0.13039959967136383, 0.45887213945388794, -0.0162473376840353, 0.11490832269191742, -0.37140679359436035, -0.19826452434062958, -0.2697688937187195, 0.40629908442497253, -0.037550587207078934, 0.008986216969788074, -0.01096991915255785, -0.34402695298194885, 0.05778925120830536, 0.00957562867552042, 0.7247849702835083, -0.22237235307693481, -0.21599961817264557, 0.13618510961532593, 0.0658368393778801, -0.396959513425827, -0.26715365052223206, 0.168589785695076, 0.11046086251735687, -0.11297600716352463, -0.06032554805278778, -0.19907566905021667, 0.002869467483833432, 0.20136328041553497, 0.35026103258132935, -0.1858440637588501, -0.25657159090042114, -0.6710655689239502, -0.12834414839744568, -0.6659100651741028, 0.03456924483180046, -0.02352941781282425, -0.03808165714144707, 0.15077197551727295, 0.19703251123428345, 0.13367636501789093, -0.4105204939842224, 0.006040727254003286, -0.03399017080664635, 0.10678590089082718, -0.19639427959918976, -0.393100768327713, 0.08387262374162674, 0.14986580610275269, 0.011926601640880108, 0.18186496198177338, 0.048921629786491394, -0.19279535114765167, -0.02246183343231678, -0.09399990737438202, 0.3057214617729187, 0.32547441124916077, -0.12109147012233734, 0.2026846557855606, -0.09880207479000092, -0.13698315620422363, 0.058112479746341705, -0.27720052003860474, 0.08250056952238083, 0.021235566586256027, -0.2918607294559479, -0.580440878868103, 0.5959305167198181, 0.023830747231841087, -0.06114005297422409, 0.49125799536705017, 0.2390516847372055, -0.21070067584514618, 0.5178577899932861, -0.11791727691888809, 1.1283650398254395, -0.04163253679871559, 0.2160148173570633, 0.13657841086387634, -0.030607743188738823, 0.6529224514961243, -0.7152805328369141, 0.3328056335449219, -0.2499723732471466, 0.19189465045928955, -0.10732106864452362, -0.13814504444599152, 0.455133855342865, 0.023078612983226776, -0.00008635124686406925, 0.6919452548027039, -0.06967117637395859, 0.22390446066856384, -0.2821071147918701, -0.11957574635744095, -0.2298951894044876, 0.014180256985127926, -0.2873302698135376, -0.10482911020517349, 0.04900171235203743, 0.575083315372467, -0.26095062494277954, 0.10151758790016174, -0.2526405453681946, -0.34399890899658203, -0.09647458046674728, -0.053898341953754425, -0.11339930444955826, 0.10038181394338608, -0.2506744861602783, -0.35625335574150085, -0.17331892251968384, 0.19025614857673645, 0.42157572507858276, -0.10462278872728348, 0.06312695890665054, 0.205887570977211, 0.056838508695364, 0.0017734006978571415, -0.11256302893161774, 0.10851839184761047, 0.21837639808654785, -0.1717539280653, -0.1444951444864273, -0.06250298023223877, -0.2645849287509918, -0.37300941348075867, -0.11241765320301056, 0.09270619601011276, 0.7888135313987732, 0.24367865920066833, -0.13666419684886932, 0.5964676141738892, 0.04477238655090332, -0.05973774939775467, 0.040212783962488174, -0.1973063051700592, -0.05209306254982948, 0.024472177028656006, -0.3202802538871765, -0.0879468098282814, -0.19042176008224487, 0.3382105231285095, 0.5054777264595032, -0.10900863260030746, 0.3684285581111908, 0.0020976432133466005, -0.06416118890047073, -0.1022731363773346, 0.1413147896528244, 0.09337317943572998, -0.1211450845003128, 0.032133862376213074, 0.1755935549736023, -0.14907632768154144, -0.18306928873062134, -0.06481550633907318, 0.035975705832242966, 0.11657709628343582, -0.10929879546165466, -0.3471042811870575, 0.009776378981769085, 0.18672484159469604, 0.0817999467253685, -0.0749901533126831, -0.11928298324346542, 0.414680153131485, 0.3110109865665436, -0.28389108180999756, -0.15709175169467926, -0.1663304716348648, 0.05613955110311508, 0.13897989690303802, 0.04680824279785156, 0.32873255014419556, -0.06591301411390305, 0.21540069580078125, 0.0019712597131729126, -0.08598136901855469, -0.20710276067256927, -0.0754702240228653, 0.05074514448642731, 0.2360820174217224, 0.11559206247329712, 0.12254112958908081, 0.23193256556987762, -0.2529885470867157, 0.1190033033490181, -0.1333073228597641, -0.047167565673589706, 0.2049926519393921, -0.17433151602745056, 0.24794337153434753, 0.47222790122032166, 0.15587104856967926, -0.45408615469932556, 0.11519941687583923, -0.2590799927711487, -0.07211973518133163, 0.017685582861304283, 0.2242807000875473, 0.25579822063446045, 0.16424721479415894, -0.3291211426258087, -0.06615497171878815, -0.0070631238631904125, 0.05236275494098663, 0.0173698328435421, -0.1378445327281952, 0.010822967626154423, -0.20077913999557495, 0.2597384750843048, 0.40375441312789917, -0.11654074490070343, -0.19188132882118225, 0.23567776381969452, 0.009752342477440834, -0.6148348450660706, 0.12831801176071167, 0.5827646255493164, -0.04362914338707924, 0.03423134610056877, 0.29168620705604553, 0.218449205160141, -0.24755176901817322, 0.3061927855014801, 0.19870339334011078, 0.12658269703388214, -0.3680983781814575, 0.3958074450492859, 0.28374290466308594, 0.1989346742630005, 0.17371420562267303, 0.3414807617664337, -0.18617764115333557, 0.16206444799900055, 0.6131900548934937, -0.07791094481945038, 0.5723168849945068, 0.2195225954055786, -0.052807021886110306, -0.3409300446510315, -0.3440138101577759, 0.3430027961730957, 0.475259929895401, 0.22660811245441437, -0.2065155804157257, 0.15441003441810608, -0.12987466156482697, -0.03062123991549015, -0.029771557077765465, -0.19272050261497498, 0.08748181164264679, -0.10079903155565262, 0.08343371748924255, 0.029230672866106033, -0.31538793444633484, 0.00022434137645177543, -0.03262714296579361, 0.10683999210596085, -0.07365488260984421, 0.2326972931623459, -0.01195448637008667, -0.0000049819450396171305, 0.03835447132587433, 0.2689739465713501, -0.2507514953613281, 0.04485103115439415, -0.07444783300161362, -0.10200164467096329, 0.2303340882062912, -0.09827873855829239, 0.24544037878513336, 0.13946352899074554, 0.09905792772769928, 0.03198971971869469, -0.0642368495464325, -0.1891167163848877, 0.09956397116184235, 0.06980331242084503, -0.09102146327495575, 0.08977905660867691, -0.17946431040763855, 0.16522520780563354, 0.1663859337568283, 0.05414263531565666, -0.16335637867450714, 0.13568145036697388, 0.05262111872434616, -0.12101119011640549, -0.16231949627399445, 0.2607008218765259, -0.14488878846168518, -0.08553717285394669, -0.2999677360057831, 0.13233238458633423, -0.4391357898712158, -0.03618008270859718, 0.06920170783996582, 0.10969045013189316, -0.20893898606300354, -0.22507427632808685, -0.0050087301060557365, 0.05773851275444031, 0.176588773727417, 0.3686087727546692, -0.15028870105743408, -0.19893643260002136, -0.28754565119743347, -0.4894712269306183, 0.15400052070617676, -0.4054329991340637, 0.21833811700344086, -0.20659133791923523, 0.21825860440731049, 0.14336596429347992, 0.2793422341346741, 0.16315770149230957, -0.0037907834630459547, -0.1784081757068634, 0.1113906279206276, -0.22460702061653137, -0.1581055223941803, -0.19966048002243042, 0.09844566136598587, -0.1441684067249298, -0.36819303035736084, -0.03057796321809292, 0.047600455582141876, -0.015963023528456688, 0.02309436723589897, -0.28372108936309814, 0.5991751551628113, -0.25033941864967346, 0.2883059084415436, 0.0000727142978576012, 0.21580205857753754, 0.12502440810203552, -0.0017141427379101515, 0.15068238973617554, -0.12119036167860031, -0.4373405873775482, 0.11468292772769928, -0.07576566189527512, 0.25901907682418823, -0.3916991055011749, -0.1559024602174759, -0.3126988112926483, 0.42464715242385864, 0.03341841325163841, 0.35347673296928406, -0.2941412031650543, 0.2738610804080963, 0.12482079863548279, 0.2421264797449112, -0.07829451560974121, 0.2404734492301941, 0.037211824208498, -0.04177146032452583, -0.5601404309272766, -0.09013532102108002, 0.20709875226020813, -0.4825281798839569, -0.3584977686405182, -0.04748468101024628, 0.17908382415771484, -0.06801968067884445, 0.09585586190223694, -0.4054115116596222, 0.1350022554397583, 0.3061628043651581, 0.09240230917930603, 0.14012402296066284, 0.03719760850071907, -0.43643704056739807, -0.1897837370634079, -0.0181787870824337, -0.6344156265258789, -0.15100441873073578, -0.1968298852443695, 0.10207679122686386, -0.35241615772247314 ]
https://github.com/huggingface/datasets/issues/1786
How to use split dataset
By default, all 3 splits will be loaded if you run the following: ```python from datasets import load_dataset dataset = load_dataset("lambada") print(dataset["train"]) print(dataset["valid"]) ``` If you wanted to do load this manually, you could do this: ```python from datasets import load_dataset data_files = { "train": "data/lambada/train.txt", "valid": "data/lambada/valid.txt", "test": "data/lambada/test.txt", } ds = load_dataset("text", data_files=data_files) ```
![Capture1](https://user-images.githubusercontent.com/78090287/106057436-cb6a1f00-6111-11eb-8c9c-3658065b1fdf.PNG) Hey, I want to split the lambada dataset into corpus, test, train and valid txt files (like penn treebank) but I am not able to achieve this. What I am doing is, executing the lambada.py file in my project but its not giving desired results. Any help will be appreciated!
56
How to use split dataset ![Capture1](https://user-images.githubusercontent.com/78090287/106057436-cb6a1f00-6111-11eb-8c9c-3658065b1fdf.PNG) Hey, I want to split the lambada dataset into corpus, test, train and valid txt files (like penn treebank) but I am not able to achieve this. What I am doing is, executing the lambada.py file in my project but its not giving desired results. Any help will be appreciated! By default, all 3 splits will be loaded if you run the following: ```python from datasets import load_dataset dataset = load_dataset("lambada") print(dataset["train"]) print(dataset["valid"]) ``` If you wanted to do load this manually, you could do this: ```python from datasets import load_dataset data_files = { "train": "data/lambada/train.txt", "valid": "data/lambada/valid.txt", "test": "data/lambada/test.txt", } ds = load_dataset("text", data_files=data_files) ```
[ -0.3074789047241211, -0.04643097147345543, -0.06252635270357132, 0.4651075601577759, 0.13056956231594086, 0.2037908434867859, 0.2765955328941345, 0.5807619690895081, -0.4295650124549866, 0.015045792795717716, -0.3925750255584717, 0.25409528613090515, 0.18384937942028046, 0.33403700590133667, -0.19449448585510254, -0.48501497507095337, 0.09063377231359482, 0.24471987783908844, 0.05136517807841301, -0.10601324588060379, -0.07859725505113602, 0.16368800401687622, -0.4311267137527466, -0.10090856999158859, -0.518113374710083, -0.18123115599155426, -0.2913365960121155, 0.11261297762393951, -0.316463440656662, 0.033435624092817307, 0.06434676051139832, 0.19152815639972687, 0.27707648277282715, 0.43183672428131104, -0.00012366005103103817, 0.026723390445113182, -0.05486968904733658, -0.25157630443573, -0.1459658294916153, -0.09038709104061127, 0.045802198350429535, 0.09037803113460541, 0.19703003764152527, -0.3328792154788971, -0.1814204305410385, -0.4163510203361511, -0.0681704506278038, 0.0015487598720937967, 0.6935944557189941, 0.4342885911464691, 0.008111050352454185, -0.4164189100265503, -0.005542838480323553, 0.16472120583057404, 0.3672727048397064, 0.34025946259498596, -0.0229084100574255, -0.06570922583341599, 0.1916341483592987, 0.08122441172599792, 0.08230516314506531, 0.08324460685253143, -0.01583791896700859, 0.3440508544445038, 0.003365937154740095, 0.1852828711271286, -0.2075948417186737, -0.4350947141647339, 0.02014189586043358, 0.19739548861980438, 0.6681486368179321, -0.3729459047317505, -0.16183841228485107, -0.2038077414035797, -0.13451245427131653, -0.4180253744125366, -0.07790020853281021, 0.4423215389251709, -0.12057137489318848, 0.13781483471393585, -0.23839887976646423, 0.12562596797943115, -0.24455654621124268, 0.3950929343700409, -0.06539648026227951, 0.24460095167160034, -0.08519116789102554, 0.15800750255584717, 0.14696131646633148, 0.22073136270046234, 0.17953930795192719, -0.23895001411437988, -0.19696587324142456, 0.06093446910381317, -0.3390175998210907, -0.1809932440519333, -0.419464111328125, -0.23347264528274536, 0.26939159631729126, 0.4270792603492737, -0.18692947924137115, -0.13055992126464844, -0.13680021464824677, -0.13552609086036682, 0.5117025375366211, 0.030141795054078102, 0.20423245429992676, 0.34334203600883484, 0.038957998156547546, -0.034734759479761124, -0.2185385376214981, -0.1680014580488205, -0.13788820803165436, -0.2395496666431427, -0.07266463339328766, 0.34659144282341003, 0.29151105880737305, -0.27634117007255554, -0.10295268893241882, -0.5062013268470764, -0.5687623620033264, -0.28313353657722473, 0.013206785544753075, 0.22617870569229126, 0.0955338105559349, -0.08740237355232239, -0.07268092781305313, 0.38774698972702026, -0.31626343727111816, -0.1819901466369629, 0.023104557767510414, 0.07185705751180649, -0.2617364227771759, -0.07027042657136917, 0.31426194310188293, -0.4424537122249603, 0.12382330745458603, -0.07492920011281967, 0.04522804915904999, -0.33284255862236023, 0.1651386320590973, -0.3937931954860687, 0.05457950010895729, 0.2088659554719925, 0.2188967615365982, -0.06642886996269226, 0.12714211642742157, 0.14473974704742432, -0.233404740691185, 0.1049003005027771, -0.18086695671081543, -0.08017636835575104, 0.15582647919654846, -0.019695786759257317, 0.061153560876846313, 0.13513515889644623, -0.48661741614341736, 0.2976645529270172, 0.08968061953783035, 0.1010291650891304, 0.036778777837753296, 0.15949302911758423, -0.14070704579353333, -0.08473315089941025, 0.2250474989414215, 0.13438954949378967, -0.2925601601600647, 0.08477538824081421, 0.02288649044930935, -0.28190484642982483, 0.2453179657459259, 0.1108599379658699, -0.12382311373949051, 0.5956167578697205, -0.03305159509181976, 0.08151781558990479, 0.4777339696884155, -0.7511569261550903, -0.1438727080821991, 0.37509265542030334, 0.2684721052646637, -0.2678816020488739, 0.07328663021326065, -0.13706126809120178, 0.5824888348579407, -0.0600702129304409, -0.19124840199947357, 0.5537322163581848, -0.2710944414138794, 0.01652236096560955, 0.06682770699262619, -0.2530248761177063, -0.08882959187030792, 0.26147156953811646, 0.019068840891122818, -0.07781253010034561, 0.22628982365131378, 0.14657804369926453, 0.3665565550327301, -0.10428079962730408, 0.30878567695617676, -0.04346882924437523, 0.24272963404655457, 0.0071515729650855064, 0.17868736386299133, -0.3716318607330322, -0.2358858734369278, 0.09320773184299469, 0.00622869236394763, -0.014148183166980743, 0.07565837353467941, -0.22748425602912903, -0.20977170765399933, -0.35260728001594543, -0.3782561421394348, -0.1538071632385254, 0.004806986078619957, -0.19629135727882385, 0.26213526725769043, 0.010924044996500015, -0.28936097025871277, 0.03397153690457344, 0.09757459163665771, 0.43230894207954407, 0.0469646155834198, 0.44790828227996826, 0.12554852664470673, -0.08861914277076721, 0.029921386390924454, 0.05208723992109299, 0.06348997354507446, -0.19690680503845215, -0.13044659793376923, 0.42000919580459595, 0.3873400390148163, -0.08587513118982315, -0.02763504348695278, -0.2635818123817444, 0.27166593074798584, -0.2346808910369873, 0.036376841366291046, -0.0131422970443964, 0.06686253845691681, -0.23640508949756622, -0.3931201100349426, 0.1513233631849289, -0.29540103673934937, 0.25075459480285645, -0.004537390545010567, 0.1367301642894745, 0.14031516015529633, -0.26624444127082825, 0.1603448987007141, 0.025353718549013138, -0.10902795195579529, -0.26272669434547424, 0.2647818326950073, -0.3021570146083832, 0.1317906230688095, -0.06272643804550171, 0.4427018463611603, -0.13448308408260345, -0.027101056650280952, 0.001947275479324162, -0.014633291400969028, 0.3422633707523346, 0.1277846395969391, 0.4383702576160431, 0.360081285238266, 0.14053699374198914, 0.1169460117816925, 0.11880670487880707, 0.2640937268733978, -0.03301739692687988, 0.17764845490455627, 0.14779673516750336, 0.21399793028831482, 0.1553722321987152, -0.2412400096654892, -0.19303245842456818, -0.030205361545085907, -0.03563675284385681, 0.29650574922561646, 0.3059883117675781, -0.0889386385679245, 0.12641680240631104, -0.23077182471752167, -0.49630188941955566, -0.33968570828437805, -0.32797884941101074, 0.12895841896533966, 0.02332840859889984, 0.033172138035297394, 0.047330718487501144, 0.2906073033809662, 0.12351148575544357, 0.1898518204689026, 0.03647853806614876, -0.07401175796985626, 0.06000080704689026, -0.06857863068580627, -0.15149380266666412, -0.13499918580055237, 0.06682662665843964, 0.37356463074684143, 0.7918121218681335, 0.2371259480714798, -0.3188599646091461, 0.010651958175003529, -0.25671622157096863, 0.07967691868543625, 0.22328929603099823, -0.30986371636390686, 0.04982932657003403, 0.16744652390480042, -0.01845695450901985, 0.009666884317994118, -0.09925676137208939, 0.1296457052230835, 0.0814133808016777, -0.19135218858718872, 0.007976064458489418, -0.04987438768148422, 0.07597807794809341, -0.09455331414937973, -0.57398921251297, -0.1470649540424347, -0.25876542925834656, 0.41221341490745544, 0.23811352252960205, 0.11858472973108292, -0.09718507528305054, 0.0823042169213295, 0.09102886915206909, 0.002055669203400612, 0.03155850991606712, 0.18993544578552246, -0.11195562779903412, 0.11324492841959, -0.23505863547325134, -0.24996349215507507, 0.36754706501960754, 0.17423567175865173, -0.057356156408786774, -0.07868175953626633, -0.21218523383140564, 0.23354409635066986, -0.039301853626966476, -0.02271166630089283, 0.07120039314031601, 0.11508835852146149, 0.24292047321796417, -0.23191259801387787, 0.16886404156684875, -0.09023135900497437, 0.06545823067426682, 0.14910055696964264, -0.21398448944091797, 0.26266583800315857, -0.1342066526412964, 0.39094915986061096, 0.020190110430121422, 0.6240459680557251, 0.4335106909275055, -0.012047415599226952, 0.03627404943108559, -0.19097517430782318, -0.364974707365036, -0.07887168973684311, -0.21820367872714996, 0.07005001604557037, -0.11861005425453186, 0.012259984388947487, 0.4296039044857025, 0.29381266236305237, -0.021072791889309883, -0.3732335865497589, -0.3243961036205292, -0.38825923204421997, -0.36267828941345215, 0.034423209726810455, -0.17257347702980042, -0.015538408420979977, -0.28304168581962585, 0.03338178992271423, 0.28266364336013794, -0.14968816936016083, -0.3008391559123993, 0.288289874792099, 0.0686449259519577, -0.026858031749725342, -0.4724099636077881, 0.0764349177479744, -0.25538545846939087, 0.37120527029037476, -0.0017331767594441772, -0.16475185751914978, -0.05018480122089386, 0.14390599727630615, 0.3047735393047333, 0.05622304230928421, 0.6318733096122742, 0.012018542736768723, -0.01755479723215103, 0.0538032129406929, -0.03951162099838257, 0.12833577394485474, 0.032172393053770065, -0.3007613718509674, 0.18020081520080566, 0.2179480493068695, 0.0696546733379364, -0.46038734912872314, -0.34809398651123047, 0.34742534160614014, 0.09050871431827545, -0.10738249868154526, -0.054222699254751205, -0.2201906442642212, -0.13840284943580627, -0.42699751257896423, -0.03723074868321419, 0.2381216436624527, 0.04705648124217987, -0.16647076606750488, -0.20256617665290833, -0.057692330330610275, -0.17894680798053741, 0.29000478982925415, 0.08320420980453491, 0.2673644721508026, -0.15050363540649414, 0.16344937682151794, 0.03198554739356041, -0.025631040334701538, 0.5261568427085876, 0.5509865283966064, -0.23886242508888245, -0.6641386151313782, -0.08237290382385254, -0.25442278385162354, 0.4143174886703491, 0.018876532092690468, -0.19845925271511078, -0.0576789528131485, -0.04748823493719101, -0.04923466220498085, -0.0493975467979908, 0.05031757801771164, 0.27525725960731506, -0.07992689311504364, -0.4217447340488434, -0.32955098152160645, 0.2977851927280426, -0.04904253035783768, 0.10137726366519928, 0.32223814725875854, -0.053508516401052475, -0.3448227643966675, 0.4046642780303955, 0.175513356924057, 0.8032975792884827, -0.3154441714286804, -0.0005892377812415361, -0.016341859474778175, 0.02204235829412937, 0.4005250632762909, -0.6602140069007874, 0.08865411579608917, -0.23856781423091888, -0.1123945415019989, -0.1394273340702057, -0.09394326061010361, 0.2245839536190033, 0.40197503566741943, -0.456656277179718, 0.16639266908168793, 0.16984009742736816, -0.09225243330001831, -0.2540281116962433, 0.15800225734710693, -0.16842584311962128, -0.177073135972023, -0.18916307389736176, -0.0005675777792930603, -0.17978382110595703, 0.12429849803447723, 0.08838357776403427, -0.03293108195066452, -0.18700115382671356, -0.019759085029363632, -0.0014661694876849651, 0.08085179328918457, -0.11257436871528625, -0.10865045338869095, -0.1998765617609024, -0.22847282886505127, 0.21893753111362457, 0.6059167385101318, 0.2206415981054306, -0.17429374158382416, -0.12183675915002823, 0.10383514314889908, -0.09084495902061462, -0.16312859952449799, -0.09841089695692062, -0.06590045243501663, 0.17421354353427887, -0.06483852118253708, -0.3266790211200714, 0.14321580529212952, 0.14728017151355743, -0.1852097511291504, 0.24267199635505676, 0.17043231427669525, 0.10301800817251205, -0.5554343461990356, -0.00989518128335476, 0.06675365567207336, -0.09161724150180817, -0.11788178235292435, 0.01226325798779726, 0.007449539843946695, -0.22269466519355774, 0.3630228042602539, -0.35716328024864197, -0.2547811269760132, -0.09812510013580322, -0.015484170988202095, 0.0817963033914566, -0.04315483197569847, 0.2503524720668793, 0.4610134959220886, 0.08029770851135254, -0.21306157112121582, 0.33131590485572815, -0.04689524695277214, -0.5658292770385742, 0.19250869750976562, -0.071536123752594, 0.21219545602798462, 0.2029457688331604, 0.6457028985023499, -0.12375328689813614, -0.07733014225959778, -0.10403195023536682, -0.39822137355804443, -0.1800469309091568, 0.18810759484767914, 0.09796846657991409, 0.2443719059228897, 0.10313434153795242, 0.45722439885139465, 0.1946156919002533, 0.16446863114833832, -0.09129460155963898, 0.420809268951416, 0.016015609726309776, 0.23444484174251556, -0.2441108375787735, 0.02023056335747242, 0.19394896924495697, 0.08314353972673416, -0.07264478504657745, 0.12580423057079315, -0.011014893651008606, -0.10457882285118103, -0.13267256319522858, 0.20935451984405518, 0.039248764514923096, -0.04292154312133789, -0.16821205615997314, -0.20465251803398132, -0.26913729310035706, -0.20621834695339203, 0.12931349873542786, -0.05367357283830643, 0.04046187177300453, 0.38891202211380005, 0.5246458649635315, 0.05889250338077545, -0.5523728728294373, -0.08314446359872818, -0.03149333596229553, 0.017872024327516556, 0.12629470229148865, 0.10040425509214401, -0.024442056193947792, 0.005021923221647739, -0.5351834297180176, -0.04380614683032036, 0.48805955052375793, -0.04854428768157959, 0.3229614198207855, 0.012444332242012024, 0.3669814169406891, -0.17748142778873444, 0.46262258291244507, 0.37827208638191223, -0.01794641651213169, 0.1993533968925476, 0.16979815065860748, 0.05395154282450676, 0.017697740346193314, 0.1849731206893921, 0.2205456644296646, -0.0006579601904377341, 0.016036296263337135, 0.49032241106033325, -0.2690650224685669, 0.1666288822889328, -0.3717585504055023, -0.04214921593666077, 0.32107794284820557, 0.1542687565088272, 0.3033190965652466, 0.9101147055625916, -0.05958826094865799, 0.08664838969707489, 0.12546060979366302, 0.005780544597655535, 0.08390229940414429, 0.4529547095298767, -0.06340156495571136, 0.36246198415756226, -0.28183799982070923, 0.10661773383617401, 0.20833168923854828, -0.1350647211074829, 0.11799901723861694, 0.14697158336639404, -0.16052012145519257, -0.24243831634521484, -0.06348226219415665, 0.6651056408882141, -0.06483781337738037, -0.17754511535167694, -0.26961660385131836, 0.36918291449546814, 0.2023308426141739, 0.08462581783533096, -0.3215966522693634, -0.08356326073408127, 0.251062273979187, -0.10736384242773056, -0.19845791161060333, -0.22295086085796356, 0.06666344404220581, 0.24173498153686523, 0.021623212844133377, -0.055987950414419174, 0.05584497004747391, -0.08046673238277435, 0.18269623816013336, -0.04394819214940071, 0.0037156592588871717, 0.14320872724056244, -0.07180420309305191, 0.36007702350616455, 0.1603085696697235, 0.09384182840585709, 0.0030687686521559954, -0.16674987971782684, 0.01949307695031166, -0.04232071712613106, -0.0701037049293518, 0.3184690475463867, 0.29827412962913513, 0.10525619238615036, 0.4170568585395813, 0.24473460018634796, 0.04213233292102814, -0.02367345616221428, -0.13603775203227997, -0.014391649514436722, -0.03992658481001854, -0.2733767628669739, 0.38645443320274353, 0.011979427188634872, -0.09348234534263611, -0.01820792816579342, -0.05598047748208046, -0.3887077271938324, -0.1473822444677353, 0.021848905831575394, -0.2804155945777893, 0.062652587890625, -0.0745944157242775, -0.041468795388936996, -0.06446846574544907, 0.24261300265789032, -0.056175604462623596, 0.2943323850631714, -0.3316037654876709, -0.14985883235931396, -0.19634659588336945, -0.1389787495136261, -0.4514506459236145, -0.5549042820930481, -0.0720989853143692, 0.06732704490423203, 0.021476726979017258, 0.232661172747612, 0.09269805997610092, -0.16000258922576904, 0.14979419112205505, 0.570059061050415, -0.16297970712184906, -0.25973284244537354, -0.2790684401988983, 0.34904712438583374, -0.19561105966567993, -0.38952121138572693, 0.08401407301425934, 0.3195909857749939, -0.2047346532344818, 0.14592620730400085, -0.15143953263759613, 0.45450472831726074, 0.0031890033278614283, -0.35989877581596375, 0.0629173070192337, 0.5531313419342041, 0.23462100327014923, 0.36083242297172546, 0.16408728063106537, 0.05731324851512909, -0.07045608013868332, 0.20119968056678772, 0.1174849197268486, 0.2913331091403961, -0.31491896510124207, 0.20035816729068756, -0.10853957384824753, 0.0894610658288002, -0.0003402709844522178, -0.014993425458669662, -0.3560347855091095, 0.06522991508245468, -0.07072652131319046, 0.19268913567066193, 0.5887854695320129, 0.5346590876579285, -0.27995172142982483, -0.19009912014007568, -0.2888101041316986, -0.1398526132106781, 0.1622963547706604, -0.5503783822059631, -0.19008024036884308, 0.19415165483951569, 0.04975757747888565, 0.3609679937362671, -0.05542902648448944, -0.5752094984054565, -0.002569454023614526, 0.28394412994384766, -0.15105697512626648, -0.16498194634914398, 0.2527163326740265, 0.36566758155822754, -0.13216805458068848, 0.059467144310474396, 0.05270249769091606, 0.1399402767419815, -0.2519495189189911, -0.014927285723388195, -0.23721200227737427 ]
https://github.com/huggingface/datasets/issues/1785
Not enough disk space (Needed: Unknown size) when caching on a cluster
Hi ! What do you mean by "disk_usage(".").free` can't compute on the cluster's shared disk" exactly ? Does it return 0 ?
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space?
22
Not enough disk space (Needed: Unknown size) when caching on a cluster I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space? Hi ! What do you mean by "disk_usage(".").free` can't compute on the cluster's shared disk" exactly ? Does it return 0 ?
[ -0.07774355262517929, -0.41871708631515503, -0.08462165296077728, 0.24316102266311646, -0.09700997918844223, 0.1506599634885788, 0.07053402066230774, 0.34012097120285034, 0.3962346911430359, 0.39331570267677307, 0.41839179396629333, -0.13893066346645355, -0.09124995023012161, 0.003892143489792943, -0.17395858466625214, 0.24173206090927124, -0.008229747414588928, -0.06064548343420029, 0.34556683897972107, 0.12748703360557556, -0.4057290256023407, 0.013044524937868118, 0.0944502055644989, -0.3736136555671692, -0.5426245927810669, -0.18809179961681366, -0.16628091037273407, 0.1566857099533081, 0.22696243226528168, -0.2247433215379715, 0.32210665941238403, -0.005494899116456509, -0.1011388972401619, 0.5720780491828918, -0.00011594399984460324, 0.036312442272901535, 0.1715252548456192, -0.18090511858463287, -0.43993720412254333, -0.03869606927037239, 0.2173045426607132, -0.4069227874279022, -0.22335878014564514, -0.3619658946990967, -0.010309710167348385, 0.1603565812110901, -0.051181256771087646, -0.44361254572868347, 0.1765250265598297, -0.06918402016162872, 0.16796933114528656, 0.3530062139034271, -0.2203013300895691, -0.09261339157819748, -0.2659408152103424, 0.17672328650951385, -0.04691275209188461, 0.5180596113204956, 0.29926225543022156, 0.07531580328941345, -0.2787300646305084, 0.22080934047698975, -0.1333255022764206, 0.16011576354503632, 0.41381457448005676, -0.13599750399589539, -0.07452750205993652, -0.18451349437236786, 0.19623790681362152, -0.026867302134633064, 0.4277339279651642, -0.19503270089626312, -0.5273438692092896, -0.5711020827293396, 0.050052959471940994, -0.15977151691913605, 0.43965908885002136, 0.03642707318067551, -0.40968725085258484, 0.12267141789197922, -0.3018589913845062, -0.33726152777671814, -0.20105212926864624, -0.2099776268005371, 0.053209736943244934, 0.16413018107414246, 0.0016832926776260138, 0.08308570086956024, 0.32703298330307007, 0.017501626163721085, -0.025625934824347496, 0.026435736566781998, 0.17296071350574493, 0.2536424398422241, -0.286546915769577, 0.0151765001937747, -0.09484129399061203, 0.2101234346628189, 0.10111868381500244, 0.21069800853729248, 0.06100549176335335, -0.11254086345434189, 0.07357330620288849, 0.2540670931339264, 0.01365754846483469, 0.24661199748516083, -0.2650669813156128, -0.0978880375623703, 0.20305736362934113, -0.00304642366245389, 0.17353849112987518, -0.11331994086503983, 0.048171304166316986, -0.35080766677856445, 0.11620325595140457, -0.018088236451148987, 0.2040131390094757, -0.07148486375808716, -0.38218486309051514, 0.12724776566028595, 0.20500512421131134, 0.3049912750720978, 0.21228265762329102, 0.2848547101020813, 0.08104965090751648, 0.23997703194618225, 0.2188417762517929, 0.1994524598121643, -0.0902346819639206, -0.09682606160640717, -0.11598119139671326, -0.014707268215715885, 0.08853074163198471, 0.16931657493114471, 0.34480443596839905, 0.03676934912800789, 0.21159802377223969, -0.017904536798596382, 0.4590659439563751, -0.10544630140066147, -0.0721760094165802, -0.2352621853351593, -0.11916335672140121, 0.4233516752719879, 0.11977647989988327, 0.01175716519355774, 0.2519826889038086, 0.15005086362361908, -0.15103836357593536, 0.26779067516326904, -0.3836434483528137, -0.4553597569465637, 0.044019363820552826, 0.07246251404285431, -0.35284146666526794, 0.2011193335056305, -0.4066101610660553, -0.03843995928764343, 0.3097245693206787, -0.18243958055973053, 0.10116457939147949, 0.0928385928273201, -0.38871070742607117, -0.24627114832401276, 0.13819481432437897, 0.34733134508132935, -0.11425016820430756, 0.0037156897597014904, -0.31071555614471436, 0.16215497255325317, 0.05258811637759209, 0.4145957827568054, 0.13116276264190674, 0.13864374160766602, -0.42772558331489563, 0.13801082968711853, 0.11270715296268463, -0.3308422565460205, -0.5418023467063904, 0.3061307668685913, -0.1718517690896988, 0.25160059332847595, 0.5377888679504395, 0.2614462077617645, -0.01633354090154171, -0.23369133472442627, 0.23278585076332092, 0.2714540958404541, -0.21969081461429596, 0.056345384567976, -0.35332760214805603, -0.26345694065093994, 0.02787192538380623, 0.06142951175570488, 0.3454006016254425, 0.108564093708992, 0.010948083363473415, -0.006002992857247591, 0.1818714737892151, 0.054979901760816574, 0.20100627839565277, 0.3193240761756897, 0.31905150413513184, -0.3444592356681824, -0.0738658681511879, 0.021723942831158638, -0.5194776058197021, 0.3491625189781189, 0.19307003915309906, -0.21001456677913666, -0.06465011835098267, -0.4432941973209381, -0.28096362948417664, 0.062207821756601334, 0.24829332530498505, 0.32742905616760254, 0.04864659905433655, -0.037388160824775696, 0.2494669258594513, -0.3069349527359009, -0.05964919924736023, 0.16683019697666168, -0.25724342465400696, -0.05789842829108238, 0.10287626087665558, -0.0371626652777195, -0.04239164665341377, -0.1400405317544937, 0.049448009580373764, 0.06461037695407867, 0.06502686440944672, 0.13496799767017365, -0.014335088431835175, 0.41349101066589355, -0.1063750833272934, 0.22477208077907562, -0.09035076200962067, 0.13459932804107666, 0.152313694357872, 0.3512609302997589, 0.0020515702199190855, 0.1752399355173111, 0.006947026122361422, -0.16976603865623474, -0.11104319989681244, 0.20959731936454773, -0.04557051509618759, 0.28535982966423035, -0.08265820890665054, 0.06405851989984512, 0.062438592314720154, 0.056038692593574524, 0.12377513945102692, -0.05928977578878403, 0.2901298701763153, -0.19665668904781342, 0.4879351258277893, 0.08131811767816544, 0.022846803069114685, -0.014421227388083935, 0.06943947821855545, 0.15922851860523224, 0.2913539409637451, 0.1565071940422058, 0.2970963418483734, -0.0345211997628212, -0.005879606585949659, 0.2817400097846985, 0.2664148509502411, 0.15600235760211945, 0.015309132635593414, -0.17531782388687134, 0.04518707096576691, -0.20555871725082397, 0.05282030627131462, -0.05030134692788124, 0.1580190360546112, 0.2922108769416809, 0.006730149034410715, -0.2964169681072235, 0.09604613482952118, -0.3090457022190094, 0.21551227569580078, 0.07729741930961609, -0.28746044635772705, -0.05790720507502556, 0.05577947944402695, 0.18281814455986023, 0.06159300357103348, 0.18895940482616425, -0.45891737937927246, -0.3148474395275116, 0.1746354103088379, 0.6444194912910461, -0.2373899221420288, -0.09524218738079071, -0.37296321988105774, 0.4732398986816406, 0.07805301994085312, -0.4257945418357849, -0.026562552899122238, -0.2685459554195404, -0.10555172711610794, 0.017070574685931206, 0.3254659175872803, -0.25782695412635803, 0.3435429036617279, 0.009413661435246468, 0.07134386152029037, -0.42507123947143555, 0.15812307596206665, -0.16978706419467926, 0.026745038107037544, 0.16048981249332428, -0.13076385855674744, 0.3355613350868225, -0.1221085637807846, -0.16110199689865112, 0.160053089261055, -0.03865158557891846, -0.04174802824854851, 0.009187067858874798, 0.15706124901771545, 0.17532750964164734, -0.3232635259628296, 0.03154055401682854, -0.1793822944164276, -0.5495166778564453, 0.17439018189907074, -0.18168392777442932, 0.27164706587791443, 0.1036406084895134, 0.17338666319847107, -0.10494721680879593, 0.7099809646606445, -0.17317622900009155, -0.2496192753314972, -0.6116573214530945, 0.23829098045825958, -0.08035791665315628, -0.029552029445767403, -0.047171179205179214, 0.029628748074173927, 0.21220313012599945, 0.4242187738418579, -0.47824162244796753, -0.4002625048160553, -0.16716615855693817, 0.2294674515724182, -0.2420356571674347, -0.032156802713871, 0.17910349369049072, -0.14865431189537048, -0.07347242534160614, -0.14096368849277496, -0.028164030984044075, 0.052829302847385406, 0.009464791975915432, 0.27621087431907654, 0.29279443621635437, 0.21926258504390717, 0.3207840621471405, 0.70623779296875, -0.15945687890052795, 0.25005605816841125, 0.27551913261413574, 0.18174295127391815, 0.6162168383598328, 0.09052635729312897, -0.05360409617424011, 0.040100183337926865, 0.008073875680565834, -0.6150437593460083, 0.018975257873535156, -0.033271029591560364, 0.13807788491249084, -0.02821037545800209, -0.39497625827789307, 0.07973655313253403, -0.26900389790534973, 0.3064282536506653, -0.4407602548599243, 0.2631151080131531, -0.26249629259109497, 0.003652869490906596, -0.3661702573299408, -0.08880191296339035, -0.02787790820002556, 0.09572505950927734, 0.5163893103599548, 0.19937098026275635, -0.2578809857368469, -0.26609158515930176, -0.5647945404052734, 0.325314998626709, -0.0060483543202281, 0.12446077167987823, -0.31000816822052, 0.07453018426895142, -0.08088092505931854, 0.010127007029950619, 0.7869895100593567, -0.0905357152223587, 0.21981684863567352, 0.08223900943994522, 0.025765618309378624, -0.5359354019165039, -0.010849211364984512, 0.13685616850852966, 0.3804578185081482, -0.07196908444166183, 0.4385935366153717, -0.17676976323127747, 0.12497179955244064, -0.43941783905029297, 0.36068981885910034, -0.3306920528411865, -0.24158897995948792, -0.38548097014427185, -0.3814750909805298, -0.48330163955688477, 0.4473908841609955, 0.4565166234970093, 0.2527865469455719, -0.048352811485528946, 0.3299100995063782, -0.1702629178762436, -0.014960779808461666, 0.17365103960037231, -0.007580822799354792, 0.4432084560394287, -0.1366671770811081, 0.041389308869838715, 0.10192027688026428, -0.05657856911420822, 0.4277550280094147, 0.41325855255126953, 0.10969631373882294, 0.15321145951747894, 0.27552974224090576, 0.015611840412020683, 0.33395275473594666, 0.33492881059646606, -0.07208368927240372, 0.02724229171872139, 0.11594650149345398, 0.2456980049610138, -0.4392107129096985, -0.06493598222732544, -0.39375269412994385, -0.05341041088104248, -0.09026288986206055, -0.02069692499935627, 0.3726743161678314, 0.3526022136211395, 0.017791638150811195, 0.0702153816819191, 0.3179869055747986, -0.31271594762802124, 0.2607080340385437, -0.026027297601103783, 0.8725858330726624, -0.08519517630338669, 0.019044073298573494, 0.06687206774950027, 0.30082693696022034, 0.34014415740966797, -0.4726657271385193, 0.3613073229789734, 0.044084347784519196, -0.2942008376121521, 0.03258169814944267, -0.012193696573376656, -0.021077260375022888, 0.29593396186828613, -0.1688457876443863, 0.4016995131969452, -0.5068140029907227, 0.012193710543215275, -0.09541556239128113, 0.13655336201190948, -0.6846157908439636, -0.3742961585521698, -0.23896817862987518, 0.12068909406661987, -0.13779579102993011, 0.2103009819984436, -0.24510450661182404, 0.10865628719329834, 0.0337146632373333, -0.3128849267959595, -0.36626678705215454, -0.17015372216701508, 0.026717960834503174, 0.3035692274570465, -0.17898549139499664, 0.02364383637905121, -0.08937282860279083, 0.13467787206172943, 0.21527810394763947, 0.30104172229766846, -0.14354607462882996, 0.10247977077960968, -0.15729199349880219, -0.05579761415719986, 0.06480555236339569, 0.07522313296794891, 0.11239784210920334, 0.0016253781504929066, -0.30968740582466125, 0.15746478736400604, -0.2591036558151245, -0.4899289906024933, 0.029062846675515175, -0.04381405934691429, -0.2942897379398346, -0.033873241394758224, -0.2902980446815491, -0.4566009044647217, -0.00546369468793273, -0.08768372982740402, 0.06650696694850922, 0.019174227491021156, -0.1189485415816307, 0.14763575792312622, 0.02352610044181347, -0.20440977811813354, 0.11642170697450638, 0.19072343409061432, 0.17154809832572937, -0.34629902243614197, 0.38599684834480286, -0.37319815158843994, -0.08736769109964371, -0.17369385063648224, -0.15040896832942963, -0.1342986524105072, 0.09508263319730759, 0.34302547574043274, -0.0794033408164978, -0.12857915461063385, -0.24275147914886475, -0.2310122698545456, 0.6502941846847534, 0.42623916268348694, -0.14408300817012787, -0.4783768653869629, -0.3731834590435028, 0.26766422390937805, 0.08030004799365997, 0.2381606101989746, -0.0641203373670578, -0.0984870120882988, 0.03060871548950672, 0.11294803768396378, -0.25599080324172974, -0.05578683689236641, -0.4407351016998291, 0.007171334698796272, 0.21178610622882843, 0.12637698650360107, 0.21430280804634094, -0.09470511227846146, -0.08272825926542282, 0.126594677567482, -0.0557573027908802, -0.11263595521450043, 0.044961117208004, 0.15062753856182098, 0.04691817983984947, 0.19517220556735992, 0.17354333400726318, -0.4588239789009094, 0.23763629794120789, -0.2655065655708313, 0.1753760427236557, 0.41826942563056946, -0.045481134206056595, -0.34155702590942383, 0.07465805858373642, 0.49747440218925476, -0.1709243804216385, 0.1422318071126938, 0.1285942941904068, 0.15464861690998077, -0.22968046367168427, 0.1842866688966751, 0.12514722347259521, 0.1417403221130371, 0.23668651282787323, -0.11207940429449081, 0.22014471888542175, 0.038522202521562576, -0.15457093715667725, 0.06847141683101654, -0.0448024645447731, 0.24782255291938782, 0.26529598236083984, -0.07904510200023651, -0.02939864993095398, 0.033805835992097855, 0.06988375633955002, 0.2173096388578415, -0.2394905984401703, -0.11724886298179626, 0.23962821066379547, -0.029939528554677963, 0.11975640058517456, 0.501384973526001, 0.38761410117149353, -0.37487325072288513, 0.07454191148281097, 0.09238025546073914, 0.5648558735847473, -0.2601763904094696, 0.04130912944674492, 0.13369488716125488, 0.050606969743967056, 0.0030422108247876167, 0.14901062846183777, -0.06330142915248871, 0.38915449380874634, 0.30703842639923096, -0.17135347425937653, 0.21597237884998322, 0.24081195890903473, -0.12086065113544464, -0.14976270496845245, -0.4051087498664856, 0.08635208010673523, 0.08172940462827682, 0.042582809925079346, 0.13044579327106476, -0.3192775249481201, -0.047599293291568756, -0.3641909956932068, -0.19654028117656708, -0.22491835057735443, -0.11323974281549454, -0.4139752984046936, -0.010650022886693478, -0.01811756007373333, -0.08793111890554428, -0.027366938069462776, -0.12374761700630188, 0.3569255471229553, -0.3851691484451294, 0.30719301104545593, 0.009147805161774158, 0.062274910509586334, 0.29900631308555603, -0.2994193136692047, 0.46847859025001526, 0.1641286462545395, -0.36845874786376953, 0.037796277552843094, 0.27328014373779297, -0.25389376282691956, 0.2997124493122101, 0.1712869554758072, 0.6783196926116943, 0.2227470725774765, -0.09189589321613312, 0.06751523166894913, 0.03421519324183464, 0.07634962350130081, -0.3394200801849365, -0.02301330305635929, 0.06691866368055344, -0.13326314091682434, 0.11456724256277084, 0.1374943107366562, -0.09449616074562073, 0.22364574670791626, 0.011742005124688148, 0.2606373727321625, -0.25720706582069397, -0.12003473937511444, -0.17192411422729492, -0.19955015182495117, -0.13376377522945404, 0.0917496532201767, -0.252779096364975, -0.21109330654144287, 0.3524632453918457, -0.05091605335474014, 0.18315275013446808, 0.19918875396251678, 0.06721258163452148, -0.09606646746397018, 0.2713789939880371, 0.33813050389289856, -0.5006520748138428, -0.3073895275592804, 0.08907061815261841, -0.530048131942749, 0.21790054440498352, -0.28797104954719543, -0.07918854057788849, -0.03162940591573715, 0.21626092493534088, -0.035325221717357635, -0.11000490188598633, 0.09238412231206894, -0.08695533871650696, -0.06845717877149582, -0.1544497162103653, -0.2633787989616394, -0.2788795232772827, -0.08781589567661285, -0.29795998334884644, 0.271591454744339, -0.5973240733146667, -0.04767070710659027, 0.10969807207584381, 0.06260503083467484, 0.08089567720890045, -0.0069343154318630695, 0.23120251297950745, 0.44211405515670776, 0.32367855310440063, -0.0014016597997397184, 0.45332175493240356, 0.06917787343263626, -0.1578178107738495, -0.35559892654418945, -0.051227275282144547, -0.15673144161701202, 0.05033513158559799, 0.1229814887046814, 0.23972497880458832, -0.6420227289199829, 0.08903664350509644, -0.2371962070465088, 0.24777017533779144, 0.06780702620744705, -0.07973441481590271, 0.0980478972196579, -0.02389376237988472, -0.34318822622299194, 0.19829446077346802, 0.23607496917247772, 0.23017746210098267, -0.06586292386054993, 0.3270435631275177, -0.19334714114665985, -0.156315416097641, 0.4829874634742737, -0.13969244062900543, -0.349569171667099, -0.22467704117298126, 0.47604724764823914, 0.05776970461010933, -0.04042244330048561, -0.1970510482788086, -0.08895654231309891, 0.18535400927066803, 0.07910532504320145, 0.06320027261972427, -0.17947553098201752, -0.26488998532295227, -0.24923637509346008, -0.013969308696687222, 0.2091808319091797, -0.3121143877506256, -0.31358790397644043, 0.03507314994931221, -0.20943892002105713 ]
https://github.com/huggingface/datasets/issues/1785
Not enough disk space (Needed: Unknown size) when caching on a cluster
Yes, that's right. It shows 0 free space even though there is. I suspect it might have to do with permissions on the shared disk. ```python >>> disk_usage(".") usage(total=999999, used=999999, free=0) ```
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space?
32
Not enough disk space (Needed: Unknown size) when caching on a cluster I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space? Yes, that's right. It shows 0 free space even though there is. I suspect it might have to do with permissions on the shared disk. ```python >>> disk_usage(".") usage(total=999999, used=999999, free=0) ```
[ -0.07774355262517929, -0.41871708631515503, -0.08462165296077728, 0.24316102266311646, -0.09700997918844223, 0.1506599634885788, 0.07053402066230774, 0.34012097120285034, 0.3962346911430359, 0.39331570267677307, 0.41839179396629333, -0.13893066346645355, -0.09124995023012161, 0.003892143489792943, -0.17395858466625214, 0.24173206090927124, -0.008229747414588928, -0.06064548343420029, 0.34556683897972107, 0.12748703360557556, -0.4057290256023407, 0.013044524937868118, 0.0944502055644989, -0.3736136555671692, -0.5426245927810669, -0.18809179961681366, -0.16628091037273407, 0.1566857099533081, 0.22696243226528168, -0.2247433215379715, 0.32210665941238403, -0.005494899116456509, -0.1011388972401619, 0.5720780491828918, -0.00011594399984460324, 0.036312442272901535, 0.1715252548456192, -0.18090511858463287, -0.43993720412254333, -0.03869606927037239, 0.2173045426607132, -0.4069227874279022, -0.22335878014564514, -0.3619658946990967, -0.010309710167348385, 0.1603565812110901, -0.051181256771087646, -0.44361254572868347, 0.1765250265598297, -0.06918402016162872, 0.16796933114528656, 0.3530062139034271, -0.2203013300895691, -0.09261339157819748, -0.2659408152103424, 0.17672328650951385, -0.04691275209188461, 0.5180596113204956, 0.29926225543022156, 0.07531580328941345, -0.2787300646305084, 0.22080934047698975, -0.1333255022764206, 0.16011576354503632, 0.41381457448005676, -0.13599750399589539, -0.07452750205993652, -0.18451349437236786, 0.19623790681362152, -0.026867302134633064, 0.4277339279651642, -0.19503270089626312, -0.5273438692092896, -0.5711020827293396, 0.050052959471940994, -0.15977151691913605, 0.43965908885002136, 0.03642707318067551, -0.40968725085258484, 0.12267141789197922, -0.3018589913845062, -0.33726152777671814, -0.20105212926864624, -0.2099776268005371, 0.053209736943244934, 0.16413018107414246, 0.0016832926776260138, 0.08308570086956024, 0.32703298330307007, 0.017501626163721085, -0.025625934824347496, 0.026435736566781998, 0.17296071350574493, 0.2536424398422241, -0.286546915769577, 0.0151765001937747, -0.09484129399061203, 0.2101234346628189, 0.10111868381500244, 0.21069800853729248, 0.06100549176335335, -0.11254086345434189, 0.07357330620288849, 0.2540670931339264, 0.01365754846483469, 0.24661199748516083, -0.2650669813156128, -0.0978880375623703, 0.20305736362934113, -0.00304642366245389, 0.17353849112987518, -0.11331994086503983, 0.048171304166316986, -0.35080766677856445, 0.11620325595140457, -0.018088236451148987, 0.2040131390094757, -0.07148486375808716, -0.38218486309051514, 0.12724776566028595, 0.20500512421131134, 0.3049912750720978, 0.21228265762329102, 0.2848547101020813, 0.08104965090751648, 0.23997703194618225, 0.2188417762517929, 0.1994524598121643, -0.0902346819639206, -0.09682606160640717, -0.11598119139671326, -0.014707268215715885, 0.08853074163198471, 0.16931657493114471, 0.34480443596839905, 0.03676934912800789, 0.21159802377223969, -0.017904536798596382, 0.4590659439563751, -0.10544630140066147, -0.0721760094165802, -0.2352621853351593, -0.11916335672140121, 0.4233516752719879, 0.11977647989988327, 0.01175716519355774, 0.2519826889038086, 0.15005086362361908, -0.15103836357593536, 0.26779067516326904, -0.3836434483528137, -0.4553597569465637, 0.044019363820552826, 0.07246251404285431, -0.35284146666526794, 0.2011193335056305, -0.4066101610660553, -0.03843995928764343, 0.3097245693206787, -0.18243958055973053, 0.10116457939147949, 0.0928385928273201, -0.38871070742607117, -0.24627114832401276, 0.13819481432437897, 0.34733134508132935, -0.11425016820430756, 0.0037156897597014904, -0.31071555614471436, 0.16215497255325317, 0.05258811637759209, 0.4145957827568054, 0.13116276264190674, 0.13864374160766602, -0.42772558331489563, 0.13801082968711853, 0.11270715296268463, -0.3308422565460205, -0.5418023467063904, 0.3061307668685913, -0.1718517690896988, 0.25160059332847595, 0.5377888679504395, 0.2614462077617645, -0.01633354090154171, -0.23369133472442627, 0.23278585076332092, 0.2714540958404541, -0.21969081461429596, 0.056345384567976, -0.35332760214805603, -0.26345694065093994, 0.02787192538380623, 0.06142951175570488, 0.3454006016254425, 0.108564093708992, 0.010948083363473415, -0.006002992857247591, 0.1818714737892151, 0.054979901760816574, 0.20100627839565277, 0.3193240761756897, 0.31905150413513184, -0.3444592356681824, -0.0738658681511879, 0.021723942831158638, -0.5194776058197021, 0.3491625189781189, 0.19307003915309906, -0.21001456677913666, -0.06465011835098267, -0.4432941973209381, -0.28096362948417664, 0.062207821756601334, 0.24829332530498505, 0.32742905616760254, 0.04864659905433655, -0.037388160824775696, 0.2494669258594513, -0.3069349527359009, -0.05964919924736023, 0.16683019697666168, -0.25724342465400696, -0.05789842829108238, 0.10287626087665558, -0.0371626652777195, -0.04239164665341377, -0.1400405317544937, 0.049448009580373764, 0.06461037695407867, 0.06502686440944672, 0.13496799767017365, -0.014335088431835175, 0.41349101066589355, -0.1063750833272934, 0.22477208077907562, -0.09035076200962067, 0.13459932804107666, 0.152313694357872, 0.3512609302997589, 0.0020515702199190855, 0.1752399355173111, 0.006947026122361422, -0.16976603865623474, -0.11104319989681244, 0.20959731936454773, -0.04557051509618759, 0.28535982966423035, -0.08265820890665054, 0.06405851989984512, 0.062438592314720154, 0.056038692593574524, 0.12377513945102692, -0.05928977578878403, 0.2901298701763153, -0.19665668904781342, 0.4879351258277893, 0.08131811767816544, 0.022846803069114685, -0.014421227388083935, 0.06943947821855545, 0.15922851860523224, 0.2913539409637451, 0.1565071940422058, 0.2970963418483734, -0.0345211997628212, -0.005879606585949659, 0.2817400097846985, 0.2664148509502411, 0.15600235760211945, 0.015309132635593414, -0.17531782388687134, 0.04518707096576691, -0.20555871725082397, 0.05282030627131462, -0.05030134692788124, 0.1580190360546112, 0.2922108769416809, 0.006730149034410715, -0.2964169681072235, 0.09604613482952118, -0.3090457022190094, 0.21551227569580078, 0.07729741930961609, -0.28746044635772705, -0.05790720507502556, 0.05577947944402695, 0.18281814455986023, 0.06159300357103348, 0.18895940482616425, -0.45891737937927246, -0.3148474395275116, 0.1746354103088379, 0.6444194912910461, -0.2373899221420288, -0.09524218738079071, -0.37296321988105774, 0.4732398986816406, 0.07805301994085312, -0.4257945418357849, -0.026562552899122238, -0.2685459554195404, -0.10555172711610794, 0.017070574685931206, 0.3254659175872803, -0.25782695412635803, 0.3435429036617279, 0.009413661435246468, 0.07134386152029037, -0.42507123947143555, 0.15812307596206665, -0.16978706419467926, 0.026745038107037544, 0.16048981249332428, -0.13076385855674744, 0.3355613350868225, -0.1221085637807846, -0.16110199689865112, 0.160053089261055, -0.03865158557891846, -0.04174802824854851, 0.009187067858874798, 0.15706124901771545, 0.17532750964164734, -0.3232635259628296, 0.03154055401682854, -0.1793822944164276, -0.5495166778564453, 0.17439018189907074, -0.18168392777442932, 0.27164706587791443, 0.1036406084895134, 0.17338666319847107, -0.10494721680879593, 0.7099809646606445, -0.17317622900009155, -0.2496192753314972, -0.6116573214530945, 0.23829098045825958, -0.08035791665315628, -0.029552029445767403, -0.047171179205179214, 0.029628748074173927, 0.21220313012599945, 0.4242187738418579, -0.47824162244796753, -0.4002625048160553, -0.16716615855693817, 0.2294674515724182, -0.2420356571674347, -0.032156802713871, 0.17910349369049072, -0.14865431189537048, -0.07347242534160614, -0.14096368849277496, -0.028164030984044075, 0.052829302847385406, 0.009464791975915432, 0.27621087431907654, 0.29279443621635437, 0.21926258504390717, 0.3207840621471405, 0.70623779296875, -0.15945687890052795, 0.25005605816841125, 0.27551913261413574, 0.18174295127391815, 0.6162168383598328, 0.09052635729312897, -0.05360409617424011, 0.040100183337926865, 0.008073875680565834, -0.6150437593460083, 0.018975257873535156, -0.033271029591560364, 0.13807788491249084, -0.02821037545800209, -0.39497625827789307, 0.07973655313253403, -0.26900389790534973, 0.3064282536506653, -0.4407602548599243, 0.2631151080131531, -0.26249629259109497, 0.003652869490906596, -0.3661702573299408, -0.08880191296339035, -0.02787790820002556, 0.09572505950927734, 0.5163893103599548, 0.19937098026275635, -0.2578809857368469, -0.26609158515930176, -0.5647945404052734, 0.325314998626709, -0.0060483543202281, 0.12446077167987823, -0.31000816822052, 0.07453018426895142, -0.08088092505931854, 0.010127007029950619, 0.7869895100593567, -0.0905357152223587, 0.21981684863567352, 0.08223900943994522, 0.025765618309378624, -0.5359354019165039, -0.010849211364984512, 0.13685616850852966, 0.3804578185081482, -0.07196908444166183, 0.4385935366153717, -0.17676976323127747, 0.12497179955244064, -0.43941783905029297, 0.36068981885910034, -0.3306920528411865, -0.24158897995948792, -0.38548097014427185, -0.3814750909805298, -0.48330163955688477, 0.4473908841609955, 0.4565166234970093, 0.2527865469455719, -0.048352811485528946, 0.3299100995063782, -0.1702629178762436, -0.014960779808461666, 0.17365103960037231, -0.007580822799354792, 0.4432084560394287, -0.1366671770811081, 0.041389308869838715, 0.10192027688026428, -0.05657856911420822, 0.4277550280094147, 0.41325855255126953, 0.10969631373882294, 0.15321145951747894, 0.27552974224090576, 0.015611840412020683, 0.33395275473594666, 0.33492881059646606, -0.07208368927240372, 0.02724229171872139, 0.11594650149345398, 0.2456980049610138, -0.4392107129096985, -0.06493598222732544, -0.39375269412994385, -0.05341041088104248, -0.09026288986206055, -0.02069692499935627, 0.3726743161678314, 0.3526022136211395, 0.017791638150811195, 0.0702153816819191, 0.3179869055747986, -0.31271594762802124, 0.2607080340385437, -0.026027297601103783, 0.8725858330726624, -0.08519517630338669, 0.019044073298573494, 0.06687206774950027, 0.30082693696022034, 0.34014415740966797, -0.4726657271385193, 0.3613073229789734, 0.044084347784519196, -0.2942008376121521, 0.03258169814944267, -0.012193696573376656, -0.021077260375022888, 0.29593396186828613, -0.1688457876443863, 0.4016995131969452, -0.5068140029907227, 0.012193710543215275, -0.09541556239128113, 0.13655336201190948, -0.6846157908439636, -0.3742961585521698, -0.23896817862987518, 0.12068909406661987, -0.13779579102993011, 0.2103009819984436, -0.24510450661182404, 0.10865628719329834, 0.0337146632373333, -0.3128849267959595, -0.36626678705215454, -0.17015372216701508, 0.026717960834503174, 0.3035692274570465, -0.17898549139499664, 0.02364383637905121, -0.08937282860279083, 0.13467787206172943, 0.21527810394763947, 0.30104172229766846, -0.14354607462882996, 0.10247977077960968, -0.15729199349880219, -0.05579761415719986, 0.06480555236339569, 0.07522313296794891, 0.11239784210920334, 0.0016253781504929066, -0.30968740582466125, 0.15746478736400604, -0.2591036558151245, -0.4899289906024933, 0.029062846675515175, -0.04381405934691429, -0.2942897379398346, -0.033873241394758224, -0.2902980446815491, -0.4566009044647217, -0.00546369468793273, -0.08768372982740402, 0.06650696694850922, 0.019174227491021156, -0.1189485415816307, 0.14763575792312622, 0.02352610044181347, -0.20440977811813354, 0.11642170697450638, 0.19072343409061432, 0.17154809832572937, -0.34629902243614197, 0.38599684834480286, -0.37319815158843994, -0.08736769109964371, -0.17369385063648224, -0.15040896832942963, -0.1342986524105072, 0.09508263319730759, 0.34302547574043274, -0.0794033408164978, -0.12857915461063385, -0.24275147914886475, -0.2310122698545456, 0.6502941846847534, 0.42623916268348694, -0.14408300817012787, -0.4783768653869629, -0.3731834590435028, 0.26766422390937805, 0.08030004799365997, 0.2381606101989746, -0.0641203373670578, -0.0984870120882988, 0.03060871548950672, 0.11294803768396378, -0.25599080324172974, -0.05578683689236641, -0.4407351016998291, 0.007171334698796272, 0.21178610622882843, 0.12637698650360107, 0.21430280804634094, -0.09470511227846146, -0.08272825926542282, 0.126594677567482, -0.0557573027908802, -0.11263595521450043, 0.044961117208004, 0.15062753856182098, 0.04691817983984947, 0.19517220556735992, 0.17354333400726318, -0.4588239789009094, 0.23763629794120789, -0.2655065655708313, 0.1753760427236557, 0.41826942563056946, -0.045481134206056595, -0.34155702590942383, 0.07465805858373642, 0.49747440218925476, -0.1709243804216385, 0.1422318071126938, 0.1285942941904068, 0.15464861690998077, -0.22968046367168427, 0.1842866688966751, 0.12514722347259521, 0.1417403221130371, 0.23668651282787323, -0.11207940429449081, 0.22014471888542175, 0.038522202521562576, -0.15457093715667725, 0.06847141683101654, -0.0448024645447731, 0.24782255291938782, 0.26529598236083984, -0.07904510200023651, -0.02939864993095398, 0.033805835992097855, 0.06988375633955002, 0.2173096388578415, -0.2394905984401703, -0.11724886298179626, 0.23962821066379547, -0.029939528554677963, 0.11975640058517456, 0.501384973526001, 0.38761410117149353, -0.37487325072288513, 0.07454191148281097, 0.09238025546073914, 0.5648558735847473, -0.2601763904094696, 0.04130912944674492, 0.13369488716125488, 0.050606969743967056, 0.0030422108247876167, 0.14901062846183777, -0.06330142915248871, 0.38915449380874634, 0.30703842639923096, -0.17135347425937653, 0.21597237884998322, 0.24081195890903473, -0.12086065113544464, -0.14976270496845245, -0.4051087498664856, 0.08635208010673523, 0.08172940462827682, 0.042582809925079346, 0.13044579327106476, -0.3192775249481201, -0.047599293291568756, -0.3641909956932068, -0.19654028117656708, -0.22491835057735443, -0.11323974281549454, -0.4139752984046936, -0.010650022886693478, -0.01811756007373333, -0.08793111890554428, -0.027366938069462776, -0.12374761700630188, 0.3569255471229553, -0.3851691484451294, 0.30719301104545593, 0.009147805161774158, 0.062274910509586334, 0.29900631308555603, -0.2994193136692047, 0.46847859025001526, 0.1641286462545395, -0.36845874786376953, 0.037796277552843094, 0.27328014373779297, -0.25389376282691956, 0.2997124493122101, 0.1712869554758072, 0.6783196926116943, 0.2227470725774765, -0.09189589321613312, 0.06751523166894913, 0.03421519324183464, 0.07634962350130081, -0.3394200801849365, -0.02301330305635929, 0.06691866368055344, -0.13326314091682434, 0.11456724256277084, 0.1374943107366562, -0.09449616074562073, 0.22364574670791626, 0.011742005124688148, 0.2606373727321625, -0.25720706582069397, -0.12003473937511444, -0.17192411422729492, -0.19955015182495117, -0.13376377522945404, 0.0917496532201767, -0.252779096364975, -0.21109330654144287, 0.3524632453918457, -0.05091605335474014, 0.18315275013446808, 0.19918875396251678, 0.06721258163452148, -0.09606646746397018, 0.2713789939880371, 0.33813050389289856, -0.5006520748138428, -0.3073895275592804, 0.08907061815261841, -0.530048131942749, 0.21790054440498352, -0.28797104954719543, -0.07918854057788849, -0.03162940591573715, 0.21626092493534088, -0.035325221717357635, -0.11000490188598633, 0.09238412231206894, -0.08695533871650696, -0.06845717877149582, -0.1544497162103653, -0.2633787989616394, -0.2788795232772827, -0.08781589567661285, -0.29795998334884644, 0.271591454744339, -0.5973240733146667, -0.04767070710659027, 0.10969807207584381, 0.06260503083467484, 0.08089567720890045, -0.0069343154318630695, 0.23120251297950745, 0.44211405515670776, 0.32367855310440063, -0.0014016597997397184, 0.45332175493240356, 0.06917787343263626, -0.1578178107738495, -0.35559892654418945, -0.051227275282144547, -0.15673144161701202, 0.05033513158559799, 0.1229814887046814, 0.23972497880458832, -0.6420227289199829, 0.08903664350509644, -0.2371962070465088, 0.24777017533779144, 0.06780702620744705, -0.07973441481590271, 0.0980478972196579, -0.02389376237988472, -0.34318822622299194, 0.19829446077346802, 0.23607496917247772, 0.23017746210098267, -0.06586292386054993, 0.3270435631275177, -0.19334714114665985, -0.156315416097641, 0.4829874634742737, -0.13969244062900543, -0.349569171667099, -0.22467704117298126, 0.47604724764823914, 0.05776970461010933, -0.04042244330048561, -0.1970510482788086, -0.08895654231309891, 0.18535400927066803, 0.07910532504320145, 0.06320027261972427, -0.17947553098201752, -0.26488998532295227, -0.24923637509346008, -0.013969308696687222, 0.2091808319091797, -0.3121143877506256, -0.31358790397644043, 0.03507314994931221, -0.20943892002105713 ]
https://github.com/huggingface/datasets/issues/1785
Not enough disk space (Needed: Unknown size) when caching on a cluster
That's an interesting behavior... Do you know any other way to get the free space that works in your case ? Also if it's a permission issue could you try fix the permissions and let mus know if that helped ?
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space?
41
Not enough disk space (Needed: Unknown size) when caching on a cluster I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space? That's an interesting behavior... Do you know any other way to get the free space that works in your case ? Also if it's a permission issue could you try fix the permissions and let mus know if that helped ?
[ -0.07774355262517929, -0.41871708631515503, -0.08462165296077728, 0.24316102266311646, -0.09700997918844223, 0.1506599634885788, 0.07053402066230774, 0.34012097120285034, 0.3962346911430359, 0.39331570267677307, 0.41839179396629333, -0.13893066346645355, -0.09124995023012161, 0.003892143489792943, -0.17395858466625214, 0.24173206090927124, -0.008229747414588928, -0.06064548343420029, 0.34556683897972107, 0.12748703360557556, -0.4057290256023407, 0.013044524937868118, 0.0944502055644989, -0.3736136555671692, -0.5426245927810669, -0.18809179961681366, -0.16628091037273407, 0.1566857099533081, 0.22696243226528168, -0.2247433215379715, 0.32210665941238403, -0.005494899116456509, -0.1011388972401619, 0.5720780491828918, -0.00011594399984460324, 0.036312442272901535, 0.1715252548456192, -0.18090511858463287, -0.43993720412254333, -0.03869606927037239, 0.2173045426607132, -0.4069227874279022, -0.22335878014564514, -0.3619658946990967, -0.010309710167348385, 0.1603565812110901, -0.051181256771087646, -0.44361254572868347, 0.1765250265598297, -0.06918402016162872, 0.16796933114528656, 0.3530062139034271, -0.2203013300895691, -0.09261339157819748, -0.2659408152103424, 0.17672328650951385, -0.04691275209188461, 0.5180596113204956, 0.29926225543022156, 0.07531580328941345, -0.2787300646305084, 0.22080934047698975, -0.1333255022764206, 0.16011576354503632, 0.41381457448005676, -0.13599750399589539, -0.07452750205993652, -0.18451349437236786, 0.19623790681362152, -0.026867302134633064, 0.4277339279651642, -0.19503270089626312, -0.5273438692092896, -0.5711020827293396, 0.050052959471940994, -0.15977151691913605, 0.43965908885002136, 0.03642707318067551, -0.40968725085258484, 0.12267141789197922, -0.3018589913845062, -0.33726152777671814, -0.20105212926864624, -0.2099776268005371, 0.053209736943244934, 0.16413018107414246, 0.0016832926776260138, 0.08308570086956024, 0.32703298330307007, 0.017501626163721085, -0.025625934824347496, 0.026435736566781998, 0.17296071350574493, 0.2536424398422241, -0.286546915769577, 0.0151765001937747, -0.09484129399061203, 0.2101234346628189, 0.10111868381500244, 0.21069800853729248, 0.06100549176335335, -0.11254086345434189, 0.07357330620288849, 0.2540670931339264, 0.01365754846483469, 0.24661199748516083, -0.2650669813156128, -0.0978880375623703, 0.20305736362934113, -0.00304642366245389, 0.17353849112987518, -0.11331994086503983, 0.048171304166316986, -0.35080766677856445, 0.11620325595140457, -0.018088236451148987, 0.2040131390094757, -0.07148486375808716, -0.38218486309051514, 0.12724776566028595, 0.20500512421131134, 0.3049912750720978, 0.21228265762329102, 0.2848547101020813, 0.08104965090751648, 0.23997703194618225, 0.2188417762517929, 0.1994524598121643, -0.0902346819639206, -0.09682606160640717, -0.11598119139671326, -0.014707268215715885, 0.08853074163198471, 0.16931657493114471, 0.34480443596839905, 0.03676934912800789, 0.21159802377223969, -0.017904536798596382, 0.4590659439563751, -0.10544630140066147, -0.0721760094165802, -0.2352621853351593, -0.11916335672140121, 0.4233516752719879, 0.11977647989988327, 0.01175716519355774, 0.2519826889038086, 0.15005086362361908, -0.15103836357593536, 0.26779067516326904, -0.3836434483528137, -0.4553597569465637, 0.044019363820552826, 0.07246251404285431, -0.35284146666526794, 0.2011193335056305, -0.4066101610660553, -0.03843995928764343, 0.3097245693206787, -0.18243958055973053, 0.10116457939147949, 0.0928385928273201, -0.38871070742607117, -0.24627114832401276, 0.13819481432437897, 0.34733134508132935, -0.11425016820430756, 0.0037156897597014904, -0.31071555614471436, 0.16215497255325317, 0.05258811637759209, 0.4145957827568054, 0.13116276264190674, 0.13864374160766602, -0.42772558331489563, 0.13801082968711853, 0.11270715296268463, -0.3308422565460205, -0.5418023467063904, 0.3061307668685913, -0.1718517690896988, 0.25160059332847595, 0.5377888679504395, 0.2614462077617645, -0.01633354090154171, -0.23369133472442627, 0.23278585076332092, 0.2714540958404541, -0.21969081461429596, 0.056345384567976, -0.35332760214805603, -0.26345694065093994, 0.02787192538380623, 0.06142951175570488, 0.3454006016254425, 0.108564093708992, 0.010948083363473415, -0.006002992857247591, 0.1818714737892151, 0.054979901760816574, 0.20100627839565277, 0.3193240761756897, 0.31905150413513184, -0.3444592356681824, -0.0738658681511879, 0.021723942831158638, -0.5194776058197021, 0.3491625189781189, 0.19307003915309906, -0.21001456677913666, -0.06465011835098267, -0.4432941973209381, -0.28096362948417664, 0.062207821756601334, 0.24829332530498505, 0.32742905616760254, 0.04864659905433655, -0.037388160824775696, 0.2494669258594513, -0.3069349527359009, -0.05964919924736023, 0.16683019697666168, -0.25724342465400696, -0.05789842829108238, 0.10287626087665558, -0.0371626652777195, -0.04239164665341377, -0.1400405317544937, 0.049448009580373764, 0.06461037695407867, 0.06502686440944672, 0.13496799767017365, -0.014335088431835175, 0.41349101066589355, -0.1063750833272934, 0.22477208077907562, -0.09035076200962067, 0.13459932804107666, 0.152313694357872, 0.3512609302997589, 0.0020515702199190855, 0.1752399355173111, 0.006947026122361422, -0.16976603865623474, -0.11104319989681244, 0.20959731936454773, -0.04557051509618759, 0.28535982966423035, -0.08265820890665054, 0.06405851989984512, 0.062438592314720154, 0.056038692593574524, 0.12377513945102692, -0.05928977578878403, 0.2901298701763153, -0.19665668904781342, 0.4879351258277893, 0.08131811767816544, 0.022846803069114685, -0.014421227388083935, 0.06943947821855545, 0.15922851860523224, 0.2913539409637451, 0.1565071940422058, 0.2970963418483734, -0.0345211997628212, -0.005879606585949659, 0.2817400097846985, 0.2664148509502411, 0.15600235760211945, 0.015309132635593414, -0.17531782388687134, 0.04518707096576691, -0.20555871725082397, 0.05282030627131462, -0.05030134692788124, 0.1580190360546112, 0.2922108769416809, 0.006730149034410715, -0.2964169681072235, 0.09604613482952118, -0.3090457022190094, 0.21551227569580078, 0.07729741930961609, -0.28746044635772705, -0.05790720507502556, 0.05577947944402695, 0.18281814455986023, 0.06159300357103348, 0.18895940482616425, -0.45891737937927246, -0.3148474395275116, 0.1746354103088379, 0.6444194912910461, -0.2373899221420288, -0.09524218738079071, -0.37296321988105774, 0.4732398986816406, 0.07805301994085312, -0.4257945418357849, -0.026562552899122238, -0.2685459554195404, -0.10555172711610794, 0.017070574685931206, 0.3254659175872803, -0.25782695412635803, 0.3435429036617279, 0.009413661435246468, 0.07134386152029037, -0.42507123947143555, 0.15812307596206665, -0.16978706419467926, 0.026745038107037544, 0.16048981249332428, -0.13076385855674744, 0.3355613350868225, -0.1221085637807846, -0.16110199689865112, 0.160053089261055, -0.03865158557891846, -0.04174802824854851, 0.009187067858874798, 0.15706124901771545, 0.17532750964164734, -0.3232635259628296, 0.03154055401682854, -0.1793822944164276, -0.5495166778564453, 0.17439018189907074, -0.18168392777442932, 0.27164706587791443, 0.1036406084895134, 0.17338666319847107, -0.10494721680879593, 0.7099809646606445, -0.17317622900009155, -0.2496192753314972, -0.6116573214530945, 0.23829098045825958, -0.08035791665315628, -0.029552029445767403, -0.047171179205179214, 0.029628748074173927, 0.21220313012599945, 0.4242187738418579, -0.47824162244796753, -0.4002625048160553, -0.16716615855693817, 0.2294674515724182, -0.2420356571674347, -0.032156802713871, 0.17910349369049072, -0.14865431189537048, -0.07347242534160614, -0.14096368849277496, -0.028164030984044075, 0.052829302847385406, 0.009464791975915432, 0.27621087431907654, 0.29279443621635437, 0.21926258504390717, 0.3207840621471405, 0.70623779296875, -0.15945687890052795, 0.25005605816841125, 0.27551913261413574, 0.18174295127391815, 0.6162168383598328, 0.09052635729312897, -0.05360409617424011, 0.040100183337926865, 0.008073875680565834, -0.6150437593460083, 0.018975257873535156, -0.033271029591560364, 0.13807788491249084, -0.02821037545800209, -0.39497625827789307, 0.07973655313253403, -0.26900389790534973, 0.3064282536506653, -0.4407602548599243, 0.2631151080131531, -0.26249629259109497, 0.003652869490906596, -0.3661702573299408, -0.08880191296339035, -0.02787790820002556, 0.09572505950927734, 0.5163893103599548, 0.19937098026275635, -0.2578809857368469, -0.26609158515930176, -0.5647945404052734, 0.325314998626709, -0.0060483543202281, 0.12446077167987823, -0.31000816822052, 0.07453018426895142, -0.08088092505931854, 0.010127007029950619, 0.7869895100593567, -0.0905357152223587, 0.21981684863567352, 0.08223900943994522, 0.025765618309378624, -0.5359354019165039, -0.010849211364984512, 0.13685616850852966, 0.3804578185081482, -0.07196908444166183, 0.4385935366153717, -0.17676976323127747, 0.12497179955244064, -0.43941783905029297, 0.36068981885910034, -0.3306920528411865, -0.24158897995948792, -0.38548097014427185, -0.3814750909805298, -0.48330163955688477, 0.4473908841609955, 0.4565166234970093, 0.2527865469455719, -0.048352811485528946, 0.3299100995063782, -0.1702629178762436, -0.014960779808461666, 0.17365103960037231, -0.007580822799354792, 0.4432084560394287, -0.1366671770811081, 0.041389308869838715, 0.10192027688026428, -0.05657856911420822, 0.4277550280094147, 0.41325855255126953, 0.10969631373882294, 0.15321145951747894, 0.27552974224090576, 0.015611840412020683, 0.33395275473594666, 0.33492881059646606, -0.07208368927240372, 0.02724229171872139, 0.11594650149345398, 0.2456980049610138, -0.4392107129096985, -0.06493598222732544, -0.39375269412994385, -0.05341041088104248, -0.09026288986206055, -0.02069692499935627, 0.3726743161678314, 0.3526022136211395, 0.017791638150811195, 0.0702153816819191, 0.3179869055747986, -0.31271594762802124, 0.2607080340385437, -0.026027297601103783, 0.8725858330726624, -0.08519517630338669, 0.019044073298573494, 0.06687206774950027, 0.30082693696022034, 0.34014415740966797, -0.4726657271385193, 0.3613073229789734, 0.044084347784519196, -0.2942008376121521, 0.03258169814944267, -0.012193696573376656, -0.021077260375022888, 0.29593396186828613, -0.1688457876443863, 0.4016995131969452, -0.5068140029907227, 0.012193710543215275, -0.09541556239128113, 0.13655336201190948, -0.6846157908439636, -0.3742961585521698, -0.23896817862987518, 0.12068909406661987, -0.13779579102993011, 0.2103009819984436, -0.24510450661182404, 0.10865628719329834, 0.0337146632373333, -0.3128849267959595, -0.36626678705215454, -0.17015372216701508, 0.026717960834503174, 0.3035692274570465, -0.17898549139499664, 0.02364383637905121, -0.08937282860279083, 0.13467787206172943, 0.21527810394763947, 0.30104172229766846, -0.14354607462882996, 0.10247977077960968, -0.15729199349880219, -0.05579761415719986, 0.06480555236339569, 0.07522313296794891, 0.11239784210920334, 0.0016253781504929066, -0.30968740582466125, 0.15746478736400604, -0.2591036558151245, -0.4899289906024933, 0.029062846675515175, -0.04381405934691429, -0.2942897379398346, -0.033873241394758224, -0.2902980446815491, -0.4566009044647217, -0.00546369468793273, -0.08768372982740402, 0.06650696694850922, 0.019174227491021156, -0.1189485415816307, 0.14763575792312622, 0.02352610044181347, -0.20440977811813354, 0.11642170697450638, 0.19072343409061432, 0.17154809832572937, -0.34629902243614197, 0.38599684834480286, -0.37319815158843994, -0.08736769109964371, -0.17369385063648224, -0.15040896832942963, -0.1342986524105072, 0.09508263319730759, 0.34302547574043274, -0.0794033408164978, -0.12857915461063385, -0.24275147914886475, -0.2310122698545456, 0.6502941846847534, 0.42623916268348694, -0.14408300817012787, -0.4783768653869629, -0.3731834590435028, 0.26766422390937805, 0.08030004799365997, 0.2381606101989746, -0.0641203373670578, -0.0984870120882988, 0.03060871548950672, 0.11294803768396378, -0.25599080324172974, -0.05578683689236641, -0.4407351016998291, 0.007171334698796272, 0.21178610622882843, 0.12637698650360107, 0.21430280804634094, -0.09470511227846146, -0.08272825926542282, 0.126594677567482, -0.0557573027908802, -0.11263595521450043, 0.044961117208004, 0.15062753856182098, 0.04691817983984947, 0.19517220556735992, 0.17354333400726318, -0.4588239789009094, 0.23763629794120789, -0.2655065655708313, 0.1753760427236557, 0.41826942563056946, -0.045481134206056595, -0.34155702590942383, 0.07465805858373642, 0.49747440218925476, -0.1709243804216385, 0.1422318071126938, 0.1285942941904068, 0.15464861690998077, -0.22968046367168427, 0.1842866688966751, 0.12514722347259521, 0.1417403221130371, 0.23668651282787323, -0.11207940429449081, 0.22014471888542175, 0.038522202521562576, -0.15457093715667725, 0.06847141683101654, -0.0448024645447731, 0.24782255291938782, 0.26529598236083984, -0.07904510200023651, -0.02939864993095398, 0.033805835992097855, 0.06988375633955002, 0.2173096388578415, -0.2394905984401703, -0.11724886298179626, 0.23962821066379547, -0.029939528554677963, 0.11975640058517456, 0.501384973526001, 0.38761410117149353, -0.37487325072288513, 0.07454191148281097, 0.09238025546073914, 0.5648558735847473, -0.2601763904094696, 0.04130912944674492, 0.13369488716125488, 0.050606969743967056, 0.0030422108247876167, 0.14901062846183777, -0.06330142915248871, 0.38915449380874634, 0.30703842639923096, -0.17135347425937653, 0.21597237884998322, 0.24081195890903473, -0.12086065113544464, -0.14976270496845245, -0.4051087498664856, 0.08635208010673523, 0.08172940462827682, 0.042582809925079346, 0.13044579327106476, -0.3192775249481201, -0.047599293291568756, -0.3641909956932068, -0.19654028117656708, -0.22491835057735443, -0.11323974281549454, -0.4139752984046936, -0.010650022886693478, -0.01811756007373333, -0.08793111890554428, -0.027366938069462776, -0.12374761700630188, 0.3569255471229553, -0.3851691484451294, 0.30719301104545593, 0.009147805161774158, 0.062274910509586334, 0.29900631308555603, -0.2994193136692047, 0.46847859025001526, 0.1641286462545395, -0.36845874786376953, 0.037796277552843094, 0.27328014373779297, -0.25389376282691956, 0.2997124493122101, 0.1712869554758072, 0.6783196926116943, 0.2227470725774765, -0.09189589321613312, 0.06751523166894913, 0.03421519324183464, 0.07634962350130081, -0.3394200801849365, -0.02301330305635929, 0.06691866368055344, -0.13326314091682434, 0.11456724256277084, 0.1374943107366562, -0.09449616074562073, 0.22364574670791626, 0.011742005124688148, 0.2606373727321625, -0.25720706582069397, -0.12003473937511444, -0.17192411422729492, -0.19955015182495117, -0.13376377522945404, 0.0917496532201767, -0.252779096364975, -0.21109330654144287, 0.3524632453918457, -0.05091605335474014, 0.18315275013446808, 0.19918875396251678, 0.06721258163452148, -0.09606646746397018, 0.2713789939880371, 0.33813050389289856, -0.5006520748138428, -0.3073895275592804, 0.08907061815261841, -0.530048131942749, 0.21790054440498352, -0.28797104954719543, -0.07918854057788849, -0.03162940591573715, 0.21626092493534088, -0.035325221717357635, -0.11000490188598633, 0.09238412231206894, -0.08695533871650696, -0.06845717877149582, -0.1544497162103653, -0.2633787989616394, -0.2788795232772827, -0.08781589567661285, -0.29795998334884644, 0.271591454744339, -0.5973240733146667, -0.04767070710659027, 0.10969807207584381, 0.06260503083467484, 0.08089567720890045, -0.0069343154318630695, 0.23120251297950745, 0.44211405515670776, 0.32367855310440063, -0.0014016597997397184, 0.45332175493240356, 0.06917787343263626, -0.1578178107738495, -0.35559892654418945, -0.051227275282144547, -0.15673144161701202, 0.05033513158559799, 0.1229814887046814, 0.23972497880458832, -0.6420227289199829, 0.08903664350509644, -0.2371962070465088, 0.24777017533779144, 0.06780702620744705, -0.07973441481590271, 0.0980478972196579, -0.02389376237988472, -0.34318822622299194, 0.19829446077346802, 0.23607496917247772, 0.23017746210098267, -0.06586292386054993, 0.3270435631275177, -0.19334714114665985, -0.156315416097641, 0.4829874634742737, -0.13969244062900543, -0.349569171667099, -0.22467704117298126, 0.47604724764823914, 0.05776970461010933, -0.04042244330048561, -0.1970510482788086, -0.08895654231309891, 0.18535400927066803, 0.07910532504320145, 0.06320027261972427, -0.17947553098201752, -0.26488998532295227, -0.24923637509346008, -0.013969308696687222, 0.2091808319091797, -0.3121143877506256, -0.31358790397644043, 0.03507314994931221, -0.20943892002105713 ]
https://github.com/huggingface/datasets/issues/1785
Not enough disk space (Needed: Unknown size) when caching on a cluster
I think its an issue on the clusters end (unclear exactly why -- maybe something with docker containers?), will close the issue
I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space?
22
Not enough disk space (Needed: Unknown size) when caching on a cluster I'm running some experiments where I'm caching datasets on a cluster and accessing it through multiple compute nodes. However, I get an error when loading the cached dataset from the shared disk. The exact error thrown: ```bash >>> load_dataset(dataset, cache_dir="/path/to/cluster/shared/path") OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size) ``` [`utils.has_sufficient_disk_space`](https://github.com/huggingface/datasets/blob/8a03ab7d123a76ee744304f21ce868c75f411214/src/datasets/utils/py_utils.py#L332) fails on each job because of how the cluster system is designed (`disk_usage(".").free` can't compute on the cluster's shared disk). This is exactly where the error gets thrown: https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L502 ```python if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {}, post-processed: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), utils.size_str(self.info.dataset_size or 0), utils.size_str(self.info.post_processing_size or 0), ) ) ``` What would be a good way to circumvent this? my current fix is to manually comment out that part, but that is not ideal. Would it be possible to pass a flag to skip this check on disk space? I think its an issue on the clusters end (unclear exactly why -- maybe something with docker containers?), will close the issue
[ -0.07774355262517929, -0.41871708631515503, -0.08462165296077728, 0.24316102266311646, -0.09700997918844223, 0.1506599634885788, 0.07053402066230774, 0.34012097120285034, 0.3962346911430359, 0.39331570267677307, 0.41839179396629333, -0.13893066346645355, -0.09124995023012161, 0.003892143489792943, -0.17395858466625214, 0.24173206090927124, -0.008229747414588928, -0.06064548343420029, 0.34556683897972107, 0.12748703360557556, -0.4057290256023407, 0.013044524937868118, 0.0944502055644989, -0.3736136555671692, -0.5426245927810669, -0.18809179961681366, -0.16628091037273407, 0.1566857099533081, 0.22696243226528168, -0.2247433215379715, 0.32210665941238403, -0.005494899116456509, -0.1011388972401619, 0.5720780491828918, -0.00011594399984460324, 0.036312442272901535, 0.1715252548456192, -0.18090511858463287, -0.43993720412254333, -0.03869606927037239, 0.2173045426607132, -0.4069227874279022, -0.22335878014564514, -0.3619658946990967, -0.010309710167348385, 0.1603565812110901, -0.051181256771087646, -0.44361254572868347, 0.1765250265598297, -0.06918402016162872, 0.16796933114528656, 0.3530062139034271, -0.2203013300895691, -0.09261339157819748, -0.2659408152103424, 0.17672328650951385, -0.04691275209188461, 0.5180596113204956, 0.29926225543022156, 0.07531580328941345, -0.2787300646305084, 0.22080934047698975, -0.1333255022764206, 0.16011576354503632, 0.41381457448005676, -0.13599750399589539, -0.07452750205993652, -0.18451349437236786, 0.19623790681362152, -0.026867302134633064, 0.4277339279651642, -0.19503270089626312, -0.5273438692092896, -0.5711020827293396, 0.050052959471940994, -0.15977151691913605, 0.43965908885002136, 0.03642707318067551, -0.40968725085258484, 0.12267141789197922, -0.3018589913845062, -0.33726152777671814, -0.20105212926864624, -0.2099776268005371, 0.053209736943244934, 0.16413018107414246, 0.0016832926776260138, 0.08308570086956024, 0.32703298330307007, 0.017501626163721085, -0.025625934824347496, 0.026435736566781998, 0.17296071350574493, 0.2536424398422241, -0.286546915769577, 0.0151765001937747, -0.09484129399061203, 0.2101234346628189, 0.10111868381500244, 0.21069800853729248, 0.06100549176335335, -0.11254086345434189, 0.07357330620288849, 0.2540670931339264, 0.01365754846483469, 0.24661199748516083, -0.2650669813156128, -0.0978880375623703, 0.20305736362934113, -0.00304642366245389, 0.17353849112987518, -0.11331994086503983, 0.048171304166316986, -0.35080766677856445, 0.11620325595140457, -0.018088236451148987, 0.2040131390094757, -0.07148486375808716, -0.38218486309051514, 0.12724776566028595, 0.20500512421131134, 0.3049912750720978, 0.21228265762329102, 0.2848547101020813, 0.08104965090751648, 0.23997703194618225, 0.2188417762517929, 0.1994524598121643, -0.0902346819639206, -0.09682606160640717, -0.11598119139671326, -0.014707268215715885, 0.08853074163198471, 0.16931657493114471, 0.34480443596839905, 0.03676934912800789, 0.21159802377223969, -0.017904536798596382, 0.4590659439563751, -0.10544630140066147, -0.0721760094165802, -0.2352621853351593, -0.11916335672140121, 0.4233516752719879, 0.11977647989988327, 0.01175716519355774, 0.2519826889038086, 0.15005086362361908, -0.15103836357593536, 0.26779067516326904, -0.3836434483528137, -0.4553597569465637, 0.044019363820552826, 0.07246251404285431, -0.35284146666526794, 0.2011193335056305, -0.4066101610660553, -0.03843995928764343, 0.3097245693206787, -0.18243958055973053, 0.10116457939147949, 0.0928385928273201, -0.38871070742607117, -0.24627114832401276, 0.13819481432437897, 0.34733134508132935, -0.11425016820430756, 0.0037156897597014904, -0.31071555614471436, 0.16215497255325317, 0.05258811637759209, 0.4145957827568054, 0.13116276264190674, 0.13864374160766602, -0.42772558331489563, 0.13801082968711853, 0.11270715296268463, -0.3308422565460205, -0.5418023467063904, 0.3061307668685913, -0.1718517690896988, 0.25160059332847595, 0.5377888679504395, 0.2614462077617645, -0.01633354090154171, -0.23369133472442627, 0.23278585076332092, 0.2714540958404541, -0.21969081461429596, 0.056345384567976, -0.35332760214805603, -0.26345694065093994, 0.02787192538380623, 0.06142951175570488, 0.3454006016254425, 0.108564093708992, 0.010948083363473415, -0.006002992857247591, 0.1818714737892151, 0.054979901760816574, 0.20100627839565277, 0.3193240761756897, 0.31905150413513184, -0.3444592356681824, -0.0738658681511879, 0.021723942831158638, -0.5194776058197021, 0.3491625189781189, 0.19307003915309906, -0.21001456677913666, -0.06465011835098267, -0.4432941973209381, -0.28096362948417664, 0.062207821756601334, 0.24829332530498505, 0.32742905616760254, 0.04864659905433655, -0.037388160824775696, 0.2494669258594513, -0.3069349527359009, -0.05964919924736023, 0.16683019697666168, -0.25724342465400696, -0.05789842829108238, 0.10287626087665558, -0.0371626652777195, -0.04239164665341377, -0.1400405317544937, 0.049448009580373764, 0.06461037695407867, 0.06502686440944672, 0.13496799767017365, -0.014335088431835175, 0.41349101066589355, -0.1063750833272934, 0.22477208077907562, -0.09035076200962067, 0.13459932804107666, 0.152313694357872, 0.3512609302997589, 0.0020515702199190855, 0.1752399355173111, 0.006947026122361422, -0.16976603865623474, -0.11104319989681244, 0.20959731936454773, -0.04557051509618759, 0.28535982966423035, -0.08265820890665054, 0.06405851989984512, 0.062438592314720154, 0.056038692593574524, 0.12377513945102692, -0.05928977578878403, 0.2901298701763153, -0.19665668904781342, 0.4879351258277893, 0.08131811767816544, 0.022846803069114685, -0.014421227388083935, 0.06943947821855545, 0.15922851860523224, 0.2913539409637451, 0.1565071940422058, 0.2970963418483734, -0.0345211997628212, -0.005879606585949659, 0.2817400097846985, 0.2664148509502411, 0.15600235760211945, 0.015309132635593414, -0.17531782388687134, 0.04518707096576691, -0.20555871725082397, 0.05282030627131462, -0.05030134692788124, 0.1580190360546112, 0.2922108769416809, 0.006730149034410715, -0.2964169681072235, 0.09604613482952118, -0.3090457022190094, 0.21551227569580078, 0.07729741930961609, -0.28746044635772705, -0.05790720507502556, 0.05577947944402695, 0.18281814455986023, 0.06159300357103348, 0.18895940482616425, -0.45891737937927246, -0.3148474395275116, 0.1746354103088379, 0.6444194912910461, -0.2373899221420288, -0.09524218738079071, -0.37296321988105774, 0.4732398986816406, 0.07805301994085312, -0.4257945418357849, -0.026562552899122238, -0.2685459554195404, -0.10555172711610794, 0.017070574685931206, 0.3254659175872803, -0.25782695412635803, 0.3435429036617279, 0.009413661435246468, 0.07134386152029037, -0.42507123947143555, 0.15812307596206665, -0.16978706419467926, 0.026745038107037544, 0.16048981249332428, -0.13076385855674744, 0.3355613350868225, -0.1221085637807846, -0.16110199689865112, 0.160053089261055, -0.03865158557891846, -0.04174802824854851, 0.009187067858874798, 0.15706124901771545, 0.17532750964164734, -0.3232635259628296, 0.03154055401682854, -0.1793822944164276, -0.5495166778564453, 0.17439018189907074, -0.18168392777442932, 0.27164706587791443, 0.1036406084895134, 0.17338666319847107, -0.10494721680879593, 0.7099809646606445, -0.17317622900009155, -0.2496192753314972, -0.6116573214530945, 0.23829098045825958, -0.08035791665315628, -0.029552029445767403, -0.047171179205179214, 0.029628748074173927, 0.21220313012599945, 0.4242187738418579, -0.47824162244796753, -0.4002625048160553, -0.16716615855693817, 0.2294674515724182, -0.2420356571674347, -0.032156802713871, 0.17910349369049072, -0.14865431189537048, -0.07347242534160614, -0.14096368849277496, -0.028164030984044075, 0.052829302847385406, 0.009464791975915432, 0.27621087431907654, 0.29279443621635437, 0.21926258504390717, 0.3207840621471405, 0.70623779296875, -0.15945687890052795, 0.25005605816841125, 0.27551913261413574, 0.18174295127391815, 0.6162168383598328, 0.09052635729312897, -0.05360409617424011, 0.040100183337926865, 0.008073875680565834, -0.6150437593460083, 0.018975257873535156, -0.033271029591560364, 0.13807788491249084, -0.02821037545800209, -0.39497625827789307, 0.07973655313253403, -0.26900389790534973, 0.3064282536506653, -0.4407602548599243, 0.2631151080131531, -0.26249629259109497, 0.003652869490906596, -0.3661702573299408, -0.08880191296339035, -0.02787790820002556, 0.09572505950927734, 0.5163893103599548, 0.19937098026275635, -0.2578809857368469, -0.26609158515930176, -0.5647945404052734, 0.325314998626709, -0.0060483543202281, 0.12446077167987823, -0.31000816822052, 0.07453018426895142, -0.08088092505931854, 0.010127007029950619, 0.7869895100593567, -0.0905357152223587, 0.21981684863567352, 0.08223900943994522, 0.025765618309378624, -0.5359354019165039, -0.010849211364984512, 0.13685616850852966, 0.3804578185081482, -0.07196908444166183, 0.4385935366153717, -0.17676976323127747, 0.12497179955244064, -0.43941783905029297, 0.36068981885910034, -0.3306920528411865, -0.24158897995948792, -0.38548097014427185, -0.3814750909805298, -0.48330163955688477, 0.4473908841609955, 0.4565166234970093, 0.2527865469455719, -0.048352811485528946, 0.3299100995063782, -0.1702629178762436, -0.014960779808461666, 0.17365103960037231, -0.007580822799354792, 0.4432084560394287, -0.1366671770811081, 0.041389308869838715, 0.10192027688026428, -0.05657856911420822, 0.4277550280094147, 0.41325855255126953, 0.10969631373882294, 0.15321145951747894, 0.27552974224090576, 0.015611840412020683, 0.33395275473594666, 0.33492881059646606, -0.07208368927240372, 0.02724229171872139, 0.11594650149345398, 0.2456980049610138, -0.4392107129096985, -0.06493598222732544, -0.39375269412994385, -0.05341041088104248, -0.09026288986206055, -0.02069692499935627, 0.3726743161678314, 0.3526022136211395, 0.017791638150811195, 0.0702153816819191, 0.3179869055747986, -0.31271594762802124, 0.2607080340385437, -0.026027297601103783, 0.8725858330726624, -0.08519517630338669, 0.019044073298573494, 0.06687206774950027, 0.30082693696022034, 0.34014415740966797, -0.4726657271385193, 0.3613073229789734, 0.044084347784519196, -0.2942008376121521, 0.03258169814944267, -0.012193696573376656, -0.021077260375022888, 0.29593396186828613, -0.1688457876443863, 0.4016995131969452, -0.5068140029907227, 0.012193710543215275, -0.09541556239128113, 0.13655336201190948, -0.6846157908439636, -0.3742961585521698, -0.23896817862987518, 0.12068909406661987, -0.13779579102993011, 0.2103009819984436, -0.24510450661182404, 0.10865628719329834, 0.0337146632373333, -0.3128849267959595, -0.36626678705215454, -0.17015372216701508, 0.026717960834503174, 0.3035692274570465, -0.17898549139499664, 0.02364383637905121, -0.08937282860279083, 0.13467787206172943, 0.21527810394763947, 0.30104172229766846, -0.14354607462882996, 0.10247977077960968, -0.15729199349880219, -0.05579761415719986, 0.06480555236339569, 0.07522313296794891, 0.11239784210920334, 0.0016253781504929066, -0.30968740582466125, 0.15746478736400604, -0.2591036558151245, -0.4899289906024933, 0.029062846675515175, -0.04381405934691429, -0.2942897379398346, -0.033873241394758224, -0.2902980446815491, -0.4566009044647217, -0.00546369468793273, -0.08768372982740402, 0.06650696694850922, 0.019174227491021156, -0.1189485415816307, 0.14763575792312622, 0.02352610044181347, -0.20440977811813354, 0.11642170697450638, 0.19072343409061432, 0.17154809832572937, -0.34629902243614197, 0.38599684834480286, -0.37319815158843994, -0.08736769109964371, -0.17369385063648224, -0.15040896832942963, -0.1342986524105072, 0.09508263319730759, 0.34302547574043274, -0.0794033408164978, -0.12857915461063385, -0.24275147914886475, -0.2310122698545456, 0.6502941846847534, 0.42623916268348694, -0.14408300817012787, -0.4783768653869629, -0.3731834590435028, 0.26766422390937805, 0.08030004799365997, 0.2381606101989746, -0.0641203373670578, -0.0984870120882988, 0.03060871548950672, 0.11294803768396378, -0.25599080324172974, -0.05578683689236641, -0.4407351016998291, 0.007171334698796272, 0.21178610622882843, 0.12637698650360107, 0.21430280804634094, -0.09470511227846146, -0.08272825926542282, 0.126594677567482, -0.0557573027908802, -0.11263595521450043, 0.044961117208004, 0.15062753856182098, 0.04691817983984947, 0.19517220556735992, 0.17354333400726318, -0.4588239789009094, 0.23763629794120789, -0.2655065655708313, 0.1753760427236557, 0.41826942563056946, -0.045481134206056595, -0.34155702590942383, 0.07465805858373642, 0.49747440218925476, -0.1709243804216385, 0.1422318071126938, 0.1285942941904068, 0.15464861690998077, -0.22968046367168427, 0.1842866688966751, 0.12514722347259521, 0.1417403221130371, 0.23668651282787323, -0.11207940429449081, 0.22014471888542175, 0.038522202521562576, -0.15457093715667725, 0.06847141683101654, -0.0448024645447731, 0.24782255291938782, 0.26529598236083984, -0.07904510200023651, -0.02939864993095398, 0.033805835992097855, 0.06988375633955002, 0.2173096388578415, -0.2394905984401703, -0.11724886298179626, 0.23962821066379547, -0.029939528554677963, 0.11975640058517456, 0.501384973526001, 0.38761410117149353, -0.37487325072288513, 0.07454191148281097, 0.09238025546073914, 0.5648558735847473, -0.2601763904094696, 0.04130912944674492, 0.13369488716125488, 0.050606969743967056, 0.0030422108247876167, 0.14901062846183777, -0.06330142915248871, 0.38915449380874634, 0.30703842639923096, -0.17135347425937653, 0.21597237884998322, 0.24081195890903473, -0.12086065113544464, -0.14976270496845245, -0.4051087498664856, 0.08635208010673523, 0.08172940462827682, 0.042582809925079346, 0.13044579327106476, -0.3192775249481201, -0.047599293291568756, -0.3641909956932068, -0.19654028117656708, -0.22491835057735443, -0.11323974281549454, -0.4139752984046936, -0.010650022886693478, -0.01811756007373333, -0.08793111890554428, -0.027366938069462776, -0.12374761700630188, 0.3569255471229553, -0.3851691484451294, 0.30719301104545593, 0.009147805161774158, 0.062274910509586334, 0.29900631308555603, -0.2994193136692047, 0.46847859025001526, 0.1641286462545395, -0.36845874786376953, 0.037796277552843094, 0.27328014373779297, -0.25389376282691956, 0.2997124493122101, 0.1712869554758072, 0.6783196926116943, 0.2227470725774765, -0.09189589321613312, 0.06751523166894913, 0.03421519324183464, 0.07634962350130081, -0.3394200801849365, -0.02301330305635929, 0.06691866368055344, -0.13326314091682434, 0.11456724256277084, 0.1374943107366562, -0.09449616074562073, 0.22364574670791626, 0.011742005124688148, 0.2606373727321625, -0.25720706582069397, -0.12003473937511444, -0.17192411422729492, -0.19955015182495117, -0.13376377522945404, 0.0917496532201767, -0.252779096364975, -0.21109330654144287, 0.3524632453918457, -0.05091605335474014, 0.18315275013446808, 0.19918875396251678, 0.06721258163452148, -0.09606646746397018, 0.2713789939880371, 0.33813050389289856, -0.5006520748138428, -0.3073895275592804, 0.08907061815261841, -0.530048131942749, 0.21790054440498352, -0.28797104954719543, -0.07918854057788849, -0.03162940591573715, 0.21626092493534088, -0.035325221717357635, -0.11000490188598633, 0.09238412231206894, -0.08695533871650696, -0.06845717877149582, -0.1544497162103653, -0.2633787989616394, -0.2788795232772827, -0.08781589567661285, -0.29795998334884644, 0.271591454744339, -0.5973240733146667, -0.04767070710659027, 0.10969807207584381, 0.06260503083467484, 0.08089567720890045, -0.0069343154318630695, 0.23120251297950745, 0.44211405515670776, 0.32367855310440063, -0.0014016597997397184, 0.45332175493240356, 0.06917787343263626, -0.1578178107738495, -0.35559892654418945, -0.051227275282144547, -0.15673144161701202, 0.05033513158559799, 0.1229814887046814, 0.23972497880458832, -0.6420227289199829, 0.08903664350509644, -0.2371962070465088, 0.24777017533779144, 0.06780702620744705, -0.07973441481590271, 0.0980478972196579, -0.02389376237988472, -0.34318822622299194, 0.19829446077346802, 0.23607496917247772, 0.23017746210098267, -0.06586292386054993, 0.3270435631275177, -0.19334714114665985, -0.156315416097641, 0.4829874634742737, -0.13969244062900543, -0.349569171667099, -0.22467704117298126, 0.47604724764823914, 0.05776970461010933, -0.04042244330048561, -0.1970510482788086, -0.08895654231309891, 0.18535400927066803, 0.07910532504320145, 0.06320027261972427, -0.17947553098201752, -0.26488998532295227, -0.24923637509346008, -0.013969308696687222, 0.2091808319091797, -0.3121143877506256, -0.31358790397644043, 0.03507314994931221, -0.20943892002105713 ]
https://github.com/huggingface/datasets/issues/1784
JSONDecodeError on JSON with multiple lines
Hi ! The `json` dataset script does support this format. For example loading a dataset with this format works on my side: ```json {"key1":11, "key2":12, "key3":13} {"key1":21, "key2":22, "key3":23} ``` Can you show the full stacktrace please ? Also which version of datasets and pyarrow are you using ?
Hello :), I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported: ```json {"key1":11, "key2":12, "key3":13} {"key1":21, "key2":22, "key3":23} ``` But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported. When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either. Please let me know :) Thanks, Gunjan
49
JSONDecodeError on JSON with multiple lines Hello :), I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported: ```json {"key1":11, "key2":12, "key3":13} {"key1":21, "key2":22, "key3":23} ``` But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported. When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either. Please let me know :) Thanks, Gunjan Hi ! The `json` dataset script does support this format. For example loading a dataset with this format works on my side: ```json {"key1":11, "key2":12, "key3":13} {"key1":21, "key2":22, "key3":23} ``` Can you show the full stacktrace please ? Also which version of datasets and pyarrow are you using ?
[ 0.07569849491119385, -0.0048347520641982555, -0.02928277663886547, 0.4874012768268585, 0.35478249192237854, 0.1495189666748047, 0.4615650773048401, 0.06345701217651367, 0.15875312685966492, 0.018790967762470245, 0.16414210200309753, 0.2806333005428314, -0.04647180810570717, 0.2131015807390213, 0.07734086364507675, -0.25791987776756287, 0.054529543966054916, 0.25397437810897827, 0.23046918213367462, 0.09392298758029938, -0.17535629868507385, 0.28218328952789307, -0.15588341653347015, -0.08597734570503235, -0.11649321019649506, 0.18214431405067444, -0.14781935513019562, 0.22306543588638306, 0.11521977186203003, -0.6116790175437927, 0.199168860912323, 0.10720210522413254, 0.10276095569133759, 0.4384292960166931, -0.00012228268315084279, 0.17845207452774048, 0.27980202436447144, -0.24062737822532654, -0.43775081634521484, -0.24159201979637146, -0.32004618644714355, -0.21467162668704987, 0.39414751529693604, -0.21646638214588165, -0.01710384339094162, -0.5522260665893555, -0.10715585201978683, -0.2231714278459549, 0.847354531288147, 0.3154251277446747, 0.07369747757911682, -0.037057455629110336, 0.15458348393440247, 0.0937768742442131, 0.13827896118164062, 0.39768028259277344, 0.10401961952447891, 0.3903302848339081, 0.15727311372756958, 0.3830779790878296, 0.08037209510803223, -0.1940743774175644, -0.07914096117019653, 0.11259079724550247, 0.28579896688461304, 0.10976573824882507, -0.07170578092336655, -0.08075407147407532, 0.01511006522923708, 0.4550836384296417, 0.6541771292686462, -0.10462959855794907, -0.4009036719799042, -0.4307023286819458, -0.1288360059261322, -0.13735228776931763, 0.261040598154068, 0.15445327758789062, -0.10682669281959534, 0.17553840577602386, -0.22872687876224518, -0.18900886178016663, -0.25319036841392517, 0.25838765501976013, -0.09283366799354553, -0.317346453666687, -0.21603839099407196, 0.21463297307491302, 0.19092731177806854, -0.16395200788974762, -0.1476036161184311, -0.21648401021957397, -0.31349873542785645, 0.16101700067520142, -0.015815623104572296, 0.024426518008112907, -0.16926449537277222, -0.2996099591255188, 0.3776486814022064, 0.06064596399664879, 0.2912244200706482, 0.009057771414518356, -0.3051202893257141, 0.13202115893363953, 0.4233733117580414, -0.04129771143198013, 0.46792536973953247, -0.20590418577194214, 0.02283019758760929, -0.05094997584819794, 0.23771785199642181, -0.23169738054275513, -0.1745305359363556, -0.02466161735355854, 0.06675883382558823, -0.23374347388744354, 0.13676702976226807, -0.19315677881240845, 0.040957871824502945, -0.11414533853530884, -0.3299008011817932, -0.23795650899410248, -0.07785706222057343, 0.2825758755207062, 0.341372013092041, 0.13055309653282166, 0.008519105613231659, 0.43883460760116577, 0.1512412428855896, -0.1779138445854187, 0.06126493588089943, 0.03361492231488228, 0.10911622643470764, 0.12032288312911987, 0.20025970041751862, -0.18473821878433228, 0.15467311441898346, 0.16733276844024658, -0.031203102320432663, -0.1802992969751358, -0.2248144894838333, 0.09545228630304337, 0.0053394390270113945, 0.20346517860889435, 0.15148787200450897, 0.03817244619131088, 0.04654590040445328, -0.3754884600639343, -0.12297910451889038, 0.26149314641952515, -0.3664228320121765, -0.10861127823591232, -0.2158966064453125, 0.004594174679368734, -0.21653759479522705, -0.042753953486680984, -0.7504183650016785, 0.2429640293121338, -0.058194782584905624, -0.3593727946281433, 0.027886711061000824, -0.1414279192686081, 0.1401701271533966, -0.289802223443985, 0.05394069477915764, 0.48435866832733154, -0.5632104277610779, -0.312664270401001, 0.2905031144618988, -0.19059713184833527, -0.10553505271673203, 0.3626507520675659, -0.41072532534599304, 0.21883417665958405, -0.20733095705509186, 0.30101752281188965, 0.3687211275100708, -0.3092300593852997, -0.23017974197864532, 0.5485833287239075, 0.10910800099372864, 0.33713585138320923, 0.2294214516878128, -0.16624699532985687, 0.25835612416267395, -0.008866789750754833, 0.23588933050632477, 0.11114584654569626, 0.13939683139324188, 0.04512407258152962, 0.10172981023788452, -0.02082364819943905, 0.3151666522026062, 0.269020676612854, -0.38382279872894287, 0.034215543419122696, 0.031979139894247055, 0.07702501118183136, 0.30400872230529785, -0.28658780455589294, -0.1244969293475151, 0.30021733045578003, -0.22689864039421082, 0.044549960643053055, 0.031766463071107864, 0.1740536242723465, -0.782789409160614, 0.03183475136756897, 0.15111923217773438, -0.18650031089782715, -0.31028011441230774, -0.05987180396914482, -0.009640198200941086, 0.018044454976916313, -0.45914342999458313, -0.05200484022498131, -0.04328960180282593, 0.05290582403540611, 0.18616878986358643, 0.06983141601085663, -0.15120929479599, 0.26028120517730713, 0.08439357578754425, 0.12722860276699066, -0.2944523096084595, 0.3275442123413086, 0.11300268024206161, -0.12744010984897614, 0.0821477398276329, -0.014780860394239426, 0.17439036071300507, -0.3622351586818695, -0.023797569796442986, 0.30175745487213135, 0.4365187883377075, -0.23803500831127167, -0.17483338713645935, 0.08556371182203293, 0.2663770616054535, 0.22004961967468262, -0.0744531974196434, 0.2505381107330322, 0.2237166315317154, -0.29067468643188477, -0.39217591285705566, 0.2784983813762665, -0.08864592015743256, 0.43639183044433594, 0.038842592388391495, -0.15010838210582733, 0.4239460527896881, 0.1045757532119751, -0.29509297013282776, -0.10241793841123581, 0.15727581083774567, 0.1999426782131195, 0.02509843371808529, 0.03716183081269264, -0.3032552897930145, -0.19381894171237946, 0.5734395980834961, -0.19821593165397644, 0.1366874724626541, 0.31013891100883484, -0.16438479721546173, -0.12241297960281372, 0.013278540223836899, -0.02332824282348156, 0.3320561945438385, 0.149882510304451, -0.31598997116088867, 0.03760235011577606, 0.27494677901268005, -0.21849368512630463, 0.12457278370857239, -0.10848259180784225, 0.23809310793876648, 0.0401967316865921, 0.178339421749115, -0.07973424345254898, -0.3305124044418335, -0.43859538435935974, 0.10775347054004669, 0.07040848582983017, -0.5264177918434143, 0.11375093460083008, -0.42918530106544495, -0.09219205379486084, -0.06609327346086502, -0.24175195395946503, -0.18059954047203064, -0.20908242464065552, -0.14594367146492004, 0.06892251968383789, 0.024319248273968697, -0.09220835566520691, 0.09433979541063309, 0.17065021395683289, 0.1414884477853775, -0.19986537098884583, -0.14685556292533875, -0.14687465131282806, -0.2379734218120575, -0.06916284561157227, 0.24377726018428802, -0.009923397563397884, 0.007075373083353043, -0.32629939913749695, -0.14777179062366486, -0.15860705077648163, -0.06615713983774185, 0.10921263694763184, -0.10673998296260834, 0.15868249535560608, 0.14632141590118408, 0.4827873110771179, -0.08614550530910492, -0.033381253480911255, 0.3210747539997101, 0.258628249168396, -0.2111029475927353, 0.24270327389240265, 0.12396235018968582, -0.030350621789693832, -0.06385213136672974, -0.07269886136054993, 0.048616837710142136, -0.16639699041843414, 0.6842473149299622, -0.04522091895341873, 0.1938871443271637, -0.05414460599422455, 0.129983589053154, 0.09720855206251144, -0.204508975148201, 0.09399121254682541, -0.1179477721452713, -0.2161601483821869, 0.2748560607433319, -0.157839834690094, -0.4564421772956848, 0.08667226135730743, 0.13760770857334137, -0.11018761992454529, -0.06610608845949173, -0.42925670742988586, -0.19517597556114197, -0.05048396810889244, 0.11369062215089798, -0.1206955760717392, -0.047442056238651276, 0.2318427860736847, -0.0019961127545684576, 0.08097083866596222, -0.05583225190639496, -0.30872055888175964, 0.12147167325019836, 0.018699243664741516, 0.08409906923770905, 0.25546741485595703, 0.7511208057403564, -0.16437490284442902, 0.10482364892959595, 0.4095942974090576, -0.0908319354057312, 0.3358147144317627, -0.23180247843265533, 0.2796756327152252, -0.2613416314125061, -0.055858314037323, -0.1485668569803238, -0.10086918622255325, 0.055397167801856995, 0.23003226518630981, -0.00446827057749033, 0.10114360600709915, -0.15489502251148224, 0.041443198919296265, -0.4394153356552124, -0.11429799348115921, 0.11587775498628616, -0.08370053768157959, -0.23464785516262054, -0.2505994141101837, 0.08272003382444382, 0.08235348016023636, 0.12979614734649658, -0.22380077838897705, 0.40124329924583435, 0.29090896248817444, 0.010879643261432648, -0.4823319911956787, -0.17827150225639343, -0.2993757426738739, 0.3115847706794739, 0.0724724605679512, 0.3987675607204437, -0.05255860090255737, 0.30567169189453125, 0.15134239196777344, -0.16403330862522125, 0.8771927356719971, -0.07201917469501495, -0.14862944185733795, 0.13511008024215698, 0.07907019555568695, -0.4990387558937073, 0.023158879950642586, -0.08321529626846313, 0.33651140332221985, 0.1128200814127922, 0.1889239400625229, -0.5262202620506287, -0.14117681980133057, -0.1502995640039444, 0.12195193767547607, -0.13064910471439362, -0.31310370564460754, -0.11053554713726044, -0.4094938635826111, -0.5487594604492188, -0.27880796790122986, 0.050390031188726425, 0.2496146261692047, 0.05474484711885452, -0.11734631657600403, 0.0764080360531807, -0.28303736448287964, 0.026487670838832855, 0.10062317550182343, 0.17232373356819153, 0.10501733422279358, -0.06772162020206451, 0.11604354530572891, 0.0810786634683609, 0.6050027012825012, 0.6168927550315857, 0.22004221379756927, -0.5725250840187073, -0.15155991911888123, -0.37791410088539124, 0.33869123458862305, 0.12363606691360474, 0.008989746682345867, 0.09587971121072769, -0.10696881264448166, -0.028135184198617935, 0.03811417520046234, -0.21263942122459412, 0.44858431816101074, -0.15234826505184174, -0.38946565985679626, -0.44451314210891724, 0.5677695274353027, 0.02230466902256012, -0.015119523741304874, 0.03112627938389778, 0.28638359904289246, -0.43274879455566406, 0.33317631483078003, -0.25728732347488403, 0.5948885679244995, -0.06705832481384277, 0.35980746150016785, 0.4278510510921478, -0.28027036786079407, 0.5248784422874451, -0.08578646928071976, -0.05314403027296066, -0.14457182586193085, 0.1677122414112091, -0.13337375223636627, -0.13183636963367462, 0.29905906319618225, 0.4635651409626007, -0.21110472083091736, 0.19945703446865082, -0.3796831965446472, -0.02578258141875267, 0.021922558546066284, 0.33636119961738586, -0.044759295880794525, -0.2403116524219513, -0.6766843795776367, 0.014287479221820831, -0.0731559470295906, -0.2198830246925354, -0.05547900125384331, -0.17628085613250732, 0.0918213501572609, -0.3764571249485016, -0.3643432855606079, -0.02364751510322094, 0.01808949001133442, -0.0852222666144371, 0.2905062139034271, -0.2800562083721161, 0.30401700735092163, 0.294694185256958, 0.003029058687388897, -0.1377629190683365, -0.17656615376472473, 0.0029852590523660183, -0.3240690231323242, -0.15003004670143127, -0.3393170237541199, -0.061390094459056854, 0.18986497819423676, -0.016322709619998932, -0.2327306866645813, 0.16678687930107117, -0.16385576128959656, -0.49184027314186096, -0.05937301367521286, 0.2506648302078247, -0.5110672116279602, -0.4745003581047058, -0.3947395384311676, -0.11684414744377136, 0.05195116624236107, -0.04425261169672012, -0.0072200302965939045, 0.2400052696466446, -0.04979700222611427, -0.104876309633255, 0.06299113482236862, -0.03844493255019188, -0.01958794705569744, 0.18532630801200867, 0.02240689843893051, -0.1815960854291916, 0.6452675461769104, 0.4009435176849365, 0.03330501914024353, -0.1279844343662262, 0.31297004222869873, 0.6787827014923096, -0.14608809351921082, 0.31074368953704834, 0.1308356076478958, 0.42958778142929077, -0.07041994482278824, 0.3472554087638855, -0.07500027865171432, 0.18015186488628387, 0.30637940764427185, -0.6065919995307922, -0.09713813662528992, 0.25983625650405884, 0.05455627664923668, 0.10404576361179352, 0.23661097884178162, -0.02838258258998394, 0.023626822978258133, -0.012238535098731518, -0.12460777163505554, 0.32668668031692505, 0.07753442227840424, 0.07314201444387436, 0.18941189348697662, 0.12071085721254349, 0.2873905599117279, -0.08576686680316925, -0.011272302828729153, 0.08615726232528687, 0.00556876789778471, -0.06719294935464859, -0.011652507819235325, 0.190857395529747, 0.24496234953403473, -0.10651486366987228, -0.20955471694469452, -0.1429029256105423, -0.03132469952106476, -0.17390607297420502, 0.32439810037612915, 0.06444322317838669, -0.128790020942688, 0.21009966731071472, 0.3157553970813751, 0.14974161982536316, -0.3055720925331116, 0.1047445684671402, -0.187240332365036, 0.5721400380134583, -0.021531062200665474, 0.058452267199754715, -0.11454132944345474, 0.07333194464445114, -0.24764950573444366, 0.3973828852176666, 0.12670017778873444, 0.0646819993853569, 0.2737928330898285, -0.47801926732063293, 0.24614621698856354, 0.05447007343173027, 0.17643122375011444, 0.5079074501991272, -0.46329155564308167, 0.27671974897384644, -0.08715212345123291, -0.03239479288458824, 0.07467923313379288, -0.1712883710861206, 0.36911505460739136, 0.13500536978244781, -0.12958979606628418, 0.18431052565574646, -0.05731888487935066, -0.13457439839839935, -0.02804197557270527, -0.10975415259599686, 0.29227951169013977, 0.15917305648326874, -0.037107203155756, 0.41464748978614807, -0.17249825596809387, -0.07843869924545288, 0.08979921042919159, 0.3331089913845062, 0.25350484251976013, 0.31896042823791504, -0.2833825647830963, -0.009992077946662903, 0.2608407735824585, 0.12588782608509064, -0.07239572703838348, -0.3877479135990143, -0.05508476868271828, 0.35198256373405457, 0.09169041365385056, 0.12110354751348495, 0.16130557656288147, 0.13350123167037964, 0.054761603474617004, 0.1395140141248703, -0.19049063324928284, 0.08334660530090332, 0.01028075348585844, -0.28408926725387573, -0.09987571090459824, -0.11323032528162003, -0.1254778653383255, 0.028886042535305023, -0.2928871512413025, -0.2805126905441284, 0.1353377401828766, 0.08194218575954437, 0.09510690718889236, -0.4350181818008423, 0.31319835782051086, -0.0405784547328949, -0.015383228659629822, -0.204844132065773, 0.2946714758872986, 0.3339364528656006, -0.1596258133649826, 0.5769925117492676, 0.009087109938263893, 0.5483869910240173, 0.21247003972530365, 0.11569572985172272, 0.013270984403789043, -0.4909021854400635, -0.09465769678354263, 0.2071467787027359, 0.3553975224494934, 0.05085257068276405, 0.004681544844061136, 0.20904771983623505, 0.05589387193322182, 0.08697602152824402, 0.3290424346923828, 0.032511837780475616, 0.15686781704425812, -0.3156077563762665, 0.030231857672333717, -0.3788301944732666, -0.08736345916986465, -0.12112907320261002, -0.10118015110492706, -0.1344498097896576, -0.43400388956069946, 0.13306976854801178, 0.17070186138153076, 0.07933372259140015, 0.07149136811494827, -0.0028354679234325886, -0.13108861446380615, 0.46659186482429504, 0.3894771635532379, 0.26558417081832886, 0.0237390398979187, -0.03359198197722435, -0.16562853753566742, -0.20368340611457825, -0.27859166264533997, -0.13707250356674194, 0.2476903647184372, 0.06283950060606003, 0.24036911129951477, 0.25771403312683105, -0.005891228560358286, 0.2844986915588379, -0.3355715274810791, 0.00015060199075378478, -0.2361425757408142, -0.20200607180595398, 0.35896843671798706, 0.2450486123561859, -0.1921960413455963, 0.0815470963716507, 0.39090755581855774, -0.08266706764698029, -0.08574753254652023, -0.21826660633087158, 0.39695417881011963, -0.2062808871269226, -0.17639686167240143, 0.23746412992477417, 0.23027390241622925, 0.5443319082260132, 0.16059979796409607, -0.08691702038049698, -0.04046757519245148, -0.16708113253116608, 0.013556582853198051, 0.6156160831451416, -0.037002693861722946, 0.4068608582019806, -0.29515913128852844, 0.05925057828426361, -0.12426462024450302, 0.02512531355023384, -0.41601231694221497, -0.012706439010798931, -0.3439684808254242, 0.2034488469362259, -0.001555537455715239, -0.1828739196062088, 0.05424882844090462, 0.08630134910345078, -0.15408815443515778, 0.08113393932580948, -0.014294636435806751, -0.10921245813369751, 0.23558300733566284, -0.3649294078350067, -0.18549999594688416, 0.13399967551231384, -0.0453585647046566, -0.14852674305438995, -0.08985302597284317, -0.5390951633453369, 0.17146119475364685, 0.43684059381484985, -0.026990247890353203, -0.5867704749107361, 0.10049685835838318, -0.053316470235586166, -0.17557832598686218, -0.15294784307479858, 0.3230689465999603, 0.07048903405666351, -0.20006419718265533, -0.19112631678581238, -0.30866655707359314 ]
https://github.com/huggingface/datasets/issues/1784
JSONDecodeError on JSON with multiple lines
Hi Quentin! I apologize for bothering you. There was some issue with my pyarrow version as far as I understand. I don't remember the exact version I was using as I didn't check it. I repeated it with `datasets 1.2.1` and `pyarrow 2.0.0` and it worked. Closing this issue. Again, sorry for the bother. Thanks, Gunjan
Hello :), I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported: ```json {"key1":11, "key2":12, "key3":13} {"key1":21, "key2":22, "key3":23} ``` But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported. When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either. Please let me know :) Thanks, Gunjan
56
JSONDecodeError on JSON with multiple lines Hello :), I have been trying to load data using a JSON file. Based on the [docs](https://huggingface.co/docs/datasets/loading_datasets.html#json-files), the following format is supported: ```json {"key1":11, "key2":12, "key3":13} {"key1":21, "key2":22, "key3":23} ``` But, when I try loading a dataset with the same format, I get a JSONDecodeError : `JSONDecodeError: Extra data: line 2 column 1 (char 7142)`. Now, this is expected when using `json` to load a JSON file. But I was wondering if there are any special arguments to pass when using `load_dataset` as the docs suggest that this format is supported. When I convert the JSON file to a list of dictionaries format, I get AttributeError: `AttributeError: 'list' object has no attribute 'keys'`. So, I can't convert them to list of dictionaries either. Please let me know :) Thanks, Gunjan Hi Quentin! I apologize for bothering you. There was some issue with my pyarrow version as far as I understand. I don't remember the exact version I was using as I didn't check it. I repeated it with `datasets 1.2.1` and `pyarrow 2.0.0` and it worked. Closing this issue. Again, sorry for the bother. Thanks, Gunjan
[ 0.11187892407178879, -0.06495403498411179, -0.012783635407686234, 0.5094961524009705, 0.36685067415237427, 0.1452070027589798, 0.4116666316986084, 0.06978626549243927, 0.11648816615343094, 0.07758262753486633, 0.12275181710720062, 0.3139999508857727, -0.013312553986907005, 0.17431622743606567, 0.1052526906132698, -0.33215707540512085, 0.05630562826991081, 0.24222075939178467, 0.28122439980506897, 0.044831108301877975, -0.18832597136497498, 0.3222273588180542, -0.12115170061588287, -0.021524759009480476, -0.10035904496908188, 0.20094671845436096, -0.1490640491247177, 0.20983901619911194, 0.0983382910490036, -0.5983396172523499, 0.18115951120853424, 0.07874870300292969, 0.08965260535478592, 0.40947896242141724, -0.0001244392042281106, 0.17136602103710175, 0.23355719447135925, -0.2385096251964569, -0.4192992150783539, -0.2048569917678833, -0.23441338539123535, -0.18376588821411133, 0.40744155645370483, -0.21535052359104156, -0.043450821191072464, -0.6132327318191528, -0.1171407476067543, -0.05721549689769745, 0.8382022380828857, 0.2899009585380554, 0.05570060387253761, 0.02217394858598709, 0.24379989504814148, 0.09813173860311508, 0.19294191896915436, 0.3184744715690613, 0.11450693756341934, 0.443099707365036, 0.2087319940328598, 0.3381684124469757, 0.06790929287672043, -0.1586397886276245, -0.07118753343820572, 0.08355674892663956, 0.28095704317092896, 0.1195686087012291, -0.021977661177515984, -0.11461625248193741, -0.010624270886182785, 0.4550389349460602, 0.618288516998291, -0.1244441419839859, -0.35400643944740295, -0.4397019147872925, -0.12985055148601532, -0.2184525430202484, 0.2876072824001312, 0.17721714079380035, -0.15192775428295135, 0.17794980108737946, -0.15952394902706146, -0.17546911537647247, -0.30752304196357727, 0.3047269284725189, -0.0470932237803936, -0.2925505042076111, -0.1445954144001007, 0.24236471951007843, 0.25147274136543274, -0.15743602812290192, -0.17315056920051575, -0.1707073450088501, -0.3005780875682831, 0.1942366063594818, -0.03745827451348305, 0.03326118737459183, -0.16221840679645538, -0.2602841258049011, 0.35938647389411926, 0.021998979151248932, 0.2777698338031769, -0.015607822686433792, -0.22100107371807098, 0.1750974804162979, 0.3867204785346985, -0.03107110969722271, 0.39831578731536865, -0.21183529496192932, 0.03573843464255333, -0.0887703150510788, 0.19910573959350586, -0.1957678347826004, -0.1575293391942978, -0.0030416285153478384, 0.06268378347158432, -0.25277626514434814, 0.1424383521080017, -0.20478172600269318, 0.09411799907684326, -0.1280958205461502, -0.38721898198127747, -0.25713953375816345, -0.10429895669221878, 0.31701362133026123, 0.33083292841911316, 0.03274455666542053, 0.02138424851000309, 0.43481582403182983, 0.11620538681745529, -0.2527846097946167, 0.0686018317937851, 0.02608773112297058, 0.10681594163179398, 0.12474355846643448, 0.17683203518390656, -0.21313485503196716, 0.1577489674091339, 0.1446983963251114, -0.020177442580461502, -0.1401224285364151, -0.23651237785816193, 0.10405087471008301, -0.03143294155597687, 0.2174634486436844, 0.09335330128669739, 0.005128662101924419, 0.0656849667429924, -0.38578739762306213, -0.137187659740448, 0.2650332748889923, -0.35715368390083313, -0.1853627860546112, -0.24780793488025665, -0.01302905473858118, -0.21017953753471375, -0.04849764704704285, -0.7054876685142517, 0.2720544934272766, -0.049714595079422, -0.39165443181991577, 0.042280782014131546, -0.11513224989175797, 0.20016752183437347, -0.2836831510066986, 0.03938264027237892, 0.4265236258506775, -0.5727172493934631, -0.32584184408187866, 0.3022899031639099, -0.20163150131702423, -0.06203598529100418, 0.3925492763519287, -0.4634452760219574, 0.26929205656051636, -0.17631132900714874, 0.3346172869205475, 0.3625287413597107, -0.30546194314956665, -0.28640905022621155, 0.47605183720588684, 0.06081215292215347, 0.33083537220954895, 0.2555827498435974, -0.15106900036334991, 0.2409435510635376, 0.03931024670600891, 0.25595423579216003, 0.09360828995704651, 0.15793409943580627, 0.0332769937813282, 0.020897315815091133, -0.040127478539943695, 0.3830368220806122, 0.26225751638412476, -0.34673210978507996, 0.03362502157688141, 0.029838956892490387, 0.021077999845147133, 0.31980666518211365, -0.3416237235069275, -0.14861325919628143, 0.3134540915489197, -0.17750751972198486, 0.07253390550613403, 0.04186759516596794, 0.19310037791728973, -0.7275470495223999, 0.046846140176057816, 0.061632487922906876, -0.09234204888343811, -0.3281363844871521, -0.04585864394903183, -0.014527535997331142, 0.037602707743644714, -0.4042342007160187, -0.09697279334068298, -0.06378448754549026, 0.042735788971185684, 0.21813848614692688, 0.10928594321012497, -0.15387913584709167, 0.2307787537574768, 0.031264737248420715, 0.13121293485164642, -0.3026617765426636, 0.3729834258556366, 0.06969115883111954, -0.18850094079971313, 0.021297968924045563, -0.02729920484125614, 0.20606499910354614, -0.3279632329940796, -0.024857880547642708, 0.26604506373405457, 0.3668586313724518, -0.26701855659484863, -0.19896654784679413, 0.06529729068279266, 0.2587859630584717, 0.09627041220664978, -0.08288533240556717, 0.29871684312820435, 0.21308889985084534, -0.23206688463687897, -0.3045401871204376, 0.3062804341316223, 0.0069992681965231895, 0.4205733835697174, 0.026531318202614784, -0.18264570832252502, 0.38329142332077026, 0.10583917796611786, -0.23328399658203125, -0.0060076336376369, 0.2103109210729599, 0.20888397097587585, 0.0312979631125927, 0.0615093931555748, -0.34789758920669556, -0.17700722813606262, 0.56783127784729, -0.20460687577724457, 0.11214122176170349, 0.33076727390289307, -0.15699169039726257, -0.08266784995794296, 0.050376296043395996, -0.12668411433696747, 0.32110774517059326, 0.16702131927013397, -0.36527377367019653, 0.037190333008766174, 0.23474329710006714, -0.20119155943393707, 0.11603977531194687, -0.09745016694068909, 0.218206524848938, 0.05318908020853996, 0.22916027903556824, -0.07880603522062302, -0.417031466960907, -0.4203801453113556, 0.1339423954486847, 0.11083056032657623, -0.5512759685516357, 0.12520596385002136, -0.37227919697761536, -0.08220670372247696, -0.04054946452379227, -0.3005829453468323, -0.2753332257270813, -0.19562628865242004, -0.08342872560024261, 0.09905960410833359, 0.03126205503940582, -0.0518522635102272, 0.17124564945697784, 0.17002518475055695, 0.11198903620243073, -0.24576063454151154, -0.20710456371307373, -0.21236495673656464, -0.2687698304653168, -0.0905148833990097, 0.21571671962738037, -0.04900495335459709, -0.02515767328441143, -0.3031787872314453, -0.20453214645385742, -0.15074275434017181, -0.13728493452072144, 0.08084838092327118, -0.17061437666416168, 0.21222202479839325, 0.08487775176763535, 0.48876166343688965, -0.08393018692731857, -0.12838123738765717, 0.35908782482147217, 0.23639541864395142, -0.2614622116088867, 0.2470540851354599, 0.08315865695476532, 0.01843002624809742, -0.046408601105213165, -0.06907512247562408, 0.005278370808809996, -0.15442538261413574, 0.7430190443992615, -0.08334361761808395, 0.20163126289844513, -0.04156101495027542, 0.1645394265651703, 0.129903182387352, -0.26627853512763977, 0.1000530868768692, -0.12102779746055603, -0.21393442153930664, 0.2681332230567932, -0.12438947707414627, -0.44021666049957275, 0.0721985250711441, 0.1469230204820633, -0.07049337774515152, -0.059919025748968124, -0.4526897966861725, -0.24723714590072632, -0.038853902369737625, 0.2286967635154724, -0.13735704123973846, -0.05757332593202591, 0.25960293412208557, -0.010123268701136112, 0.09122437983751297, -0.02658393420279026, -0.334238201379776, 0.11732925474643707, 0.055133089423179626, 0.1163620799779892, 0.1643100380897522, 0.6633326411247253, -0.21803750097751617, 0.23594513535499573, 0.3052801191806793, -0.047010764479637146, 0.36742347478866577, -0.2426074594259262, 0.2596128582954407, -0.24327729642391205, -0.0913035050034523, -0.12680533528327942, -0.1253761351108551, 0.013045649975538254, 0.18456271290779114, -0.02019307017326355, 0.05075300484895706, -0.17365851998329163, -0.045230280607938766, -0.4609679579734802, -0.10127803683280945, 0.14024949073791504, 0.08566366881132126, -0.22870072722434998, -0.2212112993001938, 0.08660133183002472, 0.03374144807457924, 0.11507408320903778, -0.18393270671367645, 0.40288469195365906, 0.30397745966911316, 0.009063977748155594, -0.45902448892593384, -0.24910809099674225, -0.27396783232688904, 0.3141445815563202, 0.08093741536140442, 0.3002001941204071, -0.06208669766783714, 0.2909637987613678, 0.21643857657909393, -0.1976758986711502, 0.9261077642440796, 0.002684151055291295, -0.1659572720527649, 0.1430744230747223, 0.08667580038309097, -0.4900358319282532, 0.0012989556416869164, -0.05143984034657478, 0.2541292905807495, 0.12772980332374573, 0.20146292448043823, -0.6062150597572327, -0.14659354090690613, -0.12568654119968414, 0.16961777210235596, -0.13257569074630737, -0.30241256952285767, -0.17022822797298431, -0.4666600525379181, -0.5862993597984314, -0.21812088787555695, 0.028596801683306694, 0.2952239513397217, 0.08153439313173294, -0.035952743142843246, 0.09512066096067429, -0.2656360864639282, 0.0024533893447369337, 0.12680837512016296, 0.18540328741073608, 0.0804390013217926, -0.09033577144145966, 0.08203770965337753, 0.05426721274852753, 0.5888190269470215, 0.6108227968215942, 0.2106257826089859, -0.6033203601837158, -0.1698666214942932, -0.31875577569007874, 0.411962628364563, 0.1917908489704132, -0.033369842916727066, 0.17532281577587128, -0.1057087704539299, -0.0074273571372032166, 0.07345020771026611, -0.21390603482723236, 0.43103137612342834, -0.1350054293870926, -0.33125486969947815, -0.36079660058021545, 0.5874243378639221, 0.0033596062567085028, -0.012739711441099644, 0.07070090621709824, 0.3162633180618286, -0.3953836262226105, 0.3670036196708679, -0.2552436292171478, 0.7166471481323242, -0.09822065383195877, 0.39458349347114563, 0.4653702676296234, -0.2684096395969391, 0.5387397408485413, -0.13183864951133728, 0.02568492479622364, -0.15678982436656952, 0.15080171823501587, -0.11459711194038391, -0.10219946503639221, 0.2868126630783081, 0.42035549879074097, -0.1900791972875595, 0.1530018001794815, -0.35538554191589355, -0.005157295614480972, 0.044953860342502594, 0.29309022426605225, 0.002942268969491124, -0.2236175537109375, -0.8049345016479492, -0.007304704748094082, -0.09068812429904938, -0.16723108291625977, -0.048638902604579926, -0.24824108183383942, 0.03775911033153534, -0.4397956132888794, -0.30088698863983154, -0.028953969478607178, -0.04174696281552315, -0.08452536910772324, 0.3456767201423645, -0.30729544162750244, 0.22219781577587128, 0.30935630202293396, -0.06342807412147522, -0.169747456908226, -0.2068004012107849, 0.03393850475549698, -0.2961461842060089, -0.20270946621894836, -0.3475349545478821, -0.04426511377096176, 0.16436347365379333, -0.05648268386721611, -0.27335548400878906, 0.2610805034637451, -0.21058061718940735, -0.5443146824836731, -0.0701415091753006, 0.23328106105327606, -0.49670645594596863, -0.4386478066444397, -0.31273409724235535, -0.14158080518245697, 0.03508313000202179, -0.08484828472137451, -0.019084887579083443, 0.19890306890010834, -0.10749772936105728, -0.128061443567276, 0.05544519051909447, -0.07897599041461945, -0.051129814237356186, 0.22316686809062958, 0.02873598411679268, -0.12543827295303345, 0.685686469078064, 0.38326171040534973, 0.058215174823999405, -0.103635773062706, 0.20326992869377136, 0.6720953583717346, -0.24891293048858643, 0.3087468445301056, 0.18287141621112823, 0.4318406581878662, -0.13283546268939972, 0.42366212606430054, 0.021997414529323578, 0.12739922106266022, 0.31152451038360596, -0.5580514073371887, -0.15350380539894104, 0.30169251561164856, 0.0815708115696907, 0.07770006358623505, 0.26585304737091064, 0.063356913626194, 0.0652708113193512, 0.05799640715122223, -0.12720946967601776, 0.33537793159484863, 0.04154341295361519, 0.07795660197734833, 0.20872844755649567, 0.08264641463756561, 0.3267758786678314, -0.04257049784064293, -0.01935412548482418, 0.10769733041524887, -0.0010702358558773994, -0.05588632449507713, -0.049149319529533386, 0.20185552537441254, 0.241983100771904, -0.09602483361959457, -0.19493821263313293, -0.15391255915164948, 0.011955845169723034, -0.13377459347248077, 0.3213217556476593, 0.038428500294685364, -0.08735931664705276, 0.19552314281463623, 0.37148192524909973, 0.16433820128440857, -0.3251369893550873, 0.11411523073911667, -0.16384655237197876, 0.6059873104095459, 0.0469973161816597, -0.011901556514203548, -0.17915670573711395, 0.08036471903324127, -0.23065157234668732, 0.33748117089271545, 0.0988275334239006, 0.00015392097702715546, 0.2705647945404053, -0.4505707621574402, 0.17966756224632263, -0.05241779983043671, 0.20170879364013672, 0.4938369691371918, -0.4585255980491638, 0.3138844668865204, -0.02848399057984352, -0.0570581816136837, 0.0034637092612683773, -0.17094376683235168, 0.42244547605514526, 0.08758249133825302, -0.1638118475675583, 0.170097216963768, 0.0028253141790628433, -0.13369499146938324, 0.017111049965023994, -0.10545497387647629, 0.287384957075119, 0.20065319538116455, -0.08942320942878723, 0.43124938011169434, -0.1834620088338852, -0.056986503303050995, 0.12485722452402115, 0.3617691993713379, 0.24120984971523285, 0.21411113440990448, -0.3609215021133423, -0.0355866514146328, 0.14238978922367096, 0.16335809230804443, -0.10519541800022125, -0.35488957166671753, -0.027986574918031693, 0.34015774726867676, 0.20293764770030975, 0.061626728624105453, 0.1194150298833847, 0.23623789846897125, 0.13313589990139008, 0.1293351799249649, -0.1833062618970871, 0.227036714553833, 0.030860459432005882, -0.30048176646232605, -0.07113900780677795, -0.11581025272607803, -0.09180305153131485, 0.050038691610097885, -0.2572748363018036, -0.3297416865825653, 0.1884554922580719, 0.11049678921699524, 0.07637608796358109, -0.4972600042819977, 0.19575971364974976, 0.019455669447779655, -0.0014926770236343145, -0.21021492779254913, 0.3131486475467682, 0.3145599365234375, -0.2211565375328064, 0.5350197553634644, 0.025641800835728645, 0.5477107763290405, 0.21802736818790436, 0.06652254611253738, 0.01823815144598484, -0.5012838244438171, -0.044291991740465164, 0.19246704876422882, 0.3591526448726654, 0.11764226108789444, 0.08100316673517227, 0.2109430432319641, 0.02748115174472332, 0.05771736428141594, 0.2730036973953247, 0.06551460176706314, 0.18632322549819946, -0.3028692305088043, -0.036932796239852905, -0.35017129778862, -0.10014665126800537, -0.15121003985404968, -0.11708720773458481, -0.1513700783252716, -0.33339160680770874, 0.09444963932037354, 0.2090522199869156, 0.06792806088924408, 0.1047089546918869, -0.014600788243114948, -0.1393786072731018, 0.5112260580062866, 0.4039296507835388, 0.3075302243232727, -0.09578369557857513, -0.028012750670313835, -0.20479565858840942, -0.1363402009010315, -0.3467088043689728, -0.11907458305358887, 0.2723599672317505, 0.08675464987754822, 0.2639300525188446, 0.28514525294303894, -0.0107750054448843, 0.2542978823184967, -0.3200686275959015, 0.02925727888941765, -0.30257534980773926, -0.17026877403259277, 0.3497341275215149, 0.23152092099189758, -0.16599850356578827, 0.14361779391765594, 0.40265658497810364, -0.07104679942131042, -0.0964009016752243, -0.21880660951137543, 0.3641435205936432, -0.1985035389661789, -0.09477049112319946, 0.31046944856643677, 0.17038072645664215, 0.5703433752059937, 0.16124792397022247, -0.10282143950462341, 0.03256668150424957, -0.1898336410522461, -0.017904384061694145, 0.5546184182167053, 0.01079580932855606, 0.3781970143318176, -0.29697051644325256, 0.03087421879172325, -0.18003925681114197, 0.07732918858528137, -0.34767797589302063, -0.06990118324756622, -0.29341310262680054, 0.20213331282138824, 0.052486248314380646, -0.18146057426929474, 0.014674771577119827, 0.08939363062381744, -0.13100388646125793, 0.06495186686515808, -0.10941963642835617, -0.10195814073085785, 0.3342760503292084, -0.43525636196136475, -0.1552681177854538, 0.17677858471870422, -0.031763385981321335, -0.10274099558591843, -0.11415079236030579, -0.5677453875541687, 0.168278306722641, 0.4463456869125366, -0.01406402699649334, -0.5691124796867371, 0.11022601276636124, -0.06185232102870941, -0.15924842655658722, -0.14741075038909912, 0.26723676919937134, 0.07385847717523575, -0.17373767495155334, -0.2226586490869522, -0.318643718957901 ]
https://github.com/huggingface/datasets/issues/1783
Dataset Examples Explorer
Hi @ChewKokWah, We're working on it! In the meantime, you can still find the dataset explorer at the following URL: https://huggingface.co/datasets/viewer/
In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version. Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation.
21
Dataset Examples Explorer In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version. Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation. Hi @ChewKokWah, We're working on it! In the meantime, you can still find the dataset explorer at the following URL: https://huggingface.co/datasets/viewer/
[ -0.3861371874809265, -0.38739848136901855, -0.061884697526693344, 0.29741227626800537, 0.15671496093273163, 0.29894697666168213, 0.08448288589715958, 0.3552838861942291, -0.06431072950363159, 0.3763425052165985, 0.0037847072817385197, 0.2994426488876343, -0.2900574207305908, 0.5288342833518982, 0.39265701174736023, -0.28976964950561523, 0.01155074406415224, 0.20835338532924652, -0.10081741213798523, 0.11488691717386246, 0.07922594994306564, 0.08556895703077316, -0.17432795464992523, 0.15143507719039917, -0.40291616320610046, -0.18803881108760834, -0.30377161502838135, -0.07465525716543198, -0.2611445486545563, -0.5259745121002197, 0.09752784669399261, -0.09698085486888885, 0.32576024532318115, 0.08752430975437164, -0.00010945137910312042, -0.1372063159942627, 0.22470694780349731, 0.07966811954975128, -0.4892878234386444, -0.05925305187702179, -0.3846609890460968, -0.01515816431492567, 0.3065684139728546, -0.1603705734014511, -0.21389278769493103, -0.40643250942230225, 0.2569763958454132, 0.060766611248254776, 0.3277086615562439, -0.05740349739789963, 0.18620812892913818, 0.4664742052555084, -0.1011987030506134, -0.30958959460258484, -0.05777975171804428, 0.5932615399360657, -0.3776038587093353, 0.14188098907470703, 0.40566501021385193, 0.17192113399505615, -0.05587364733219147, 0.3942481279373169, 0.4434017837047577, 0.10746200382709503, 0.06668313592672348, 0.12247233837842941, -0.014031182043254375, -0.1412602812051773, 0.03522688150405884, 0.6123381853103638, 0.48412322998046875, 0.10828420519828796, -0.3699074983596802, -0.4363866150379181, -0.027957070618867874, -0.16586551070213318, -0.11217083036899567, 0.38244080543518066, 0.07018227875232697, 0.2538602650165558, -0.37502437829971313, 0.11346545815467834, -0.18307867646217346, -0.03669745475053787, -0.09141285717487335, -0.01984984055161476, -0.34800177812576294, -0.07120830565690994, 0.46802395582199097, -0.043220989406108856, 0.09429319947957993, 0.23417121171951294, -0.0011738508474081755, 0.16521672904491425, -0.026317156851291656, -0.20859059691429138, 0.18608060479164124, 0.17611117660999298, 0.12910795211791992, 0.22926922142505646, 0.11673716455698013, 0.32466813921928406, -0.03122757002711296, 0.17558002471923828, 0.2116524875164032, -0.10557413846254349, 0.44098326563835144, 0.21196973323822021, 0.18457065522670746, 0.3149191439151764, 0.047623418271541595, -0.042671170085668564, -0.3810492157936096, 0.15703658759593964, -0.3530597686767578, -0.23613838851451874, -0.01042825449258089, -0.16971735656261444, -0.0877123475074768, -0.11541877686977386, -0.2391987144947052, -0.06368561834096909, 0.10946302860975266, 0.40938273072242737, -0.09473303705453873, -0.3719484806060791, -0.3213815689086914, -0.132431760430336, 0.0660618469119072, -0.3266570270061493, -0.17459340393543243, 0.0009160952758975327, -0.28273266553878784, 0.030079439282417297, 0.14481094479560852, -0.5260002017021179, 0.4474388062953949, -0.07013116031885147, -0.06892112642526627, 0.003132542362436652, 0.3343254327774048, 0.15536580979824066, 0.34081295132637024, 0.10378158092498779, -0.0048324186354875565, -0.22386285662651062, 0.15571369230747223, 0.07394161075353622, -0.2017611861228943, -0.029244376346468925, -0.10531017929315567, -0.3409505784511566, -0.3423968553543091, 0.11370731145143509, -0.2802436649799347, 0.05969179794192314, -0.38048726320266724, 0.4780712425708771, -0.4661559760570526, -0.20106621086597443, -0.05017426237463951, 0.11695237457752228, -0.2553439736366272, 0.06000681594014168, 0.3718678057193756, 0.2557029128074646, -0.3894888460636139, -0.3772595524787903, 0.01827111281454563, -0.2124774008989334, -0.39016208052635193, -0.03746361657977104, -0.3442837595939636, 0.3350664973258972, -0.5363284349441528, 0.23522892594337463, 0.336730033159256, -0.22280991077423096, -0.05188095569610596, 0.09366292506456375, 0.15739211440086365, -0.05494791641831398, 0.001453213393688202, -0.1481587141752243, 0.44589972496032715, -0.03055376000702381, -0.302645742893219, -0.07905895262956619, 0.0599413700401783, -0.036874547600746155, 0.0009240171639248729, -0.17192970216274261, -0.01291088480502367, 0.056333575397729874, -0.14861474931240082, 0.10105343908071518, 0.11913233995437622, 0.03834430128335953, 0.47238853573799133, -0.2317596673965454, -0.11254161596298218, 0.148472860455513, 0.21926963329315186, 0.24320349097251892, 0.011154633946716785, -0.402067095041275, -0.15833120048046112, 0.09494048357009888, 0.003820815123617649, -0.18073952198028564, 0.3076310157775879, -0.31859657168388367, -0.1131107285618782, -0.034154683351516724, -0.25964418053627014, -0.26212653517723083, 0.15849821269512177, -0.1365666687488556, 0.16118213534355164, 0.1251431405544281, -0.1892429143190384, 0.08858952671289444, -0.3987363278865814, 0.18700522184371948, -0.39014148712158203, 0.20903250575065613, 0.11055859178304672, 0.053606752306222916, 0.010265259072184563, 0.026725929230451584, -0.04083481431007385, -0.2687215507030487, 0.06860297918319702, 0.221715047955513, 0.16415254771709442, -0.10901369154453278, 0.16309672594070435, 0.4362352192401886, 0.2089853435754776, -0.39176732301712036, -0.010467971675097942, -0.13317804038524628, -0.13324269652366638, 0.20646341145038605, -0.7598806023597717, 0.3216648995876312, 0.2521359324455261, 0.1578044444322586, 0.31733784079551697, 0.11525116115808487, 0.02317747473716736, 0.11108790338039398, -0.25495395064353943, -0.28374460339546204, 0.13084980845451355, 0.07693108171224594, 0.1748402714729309, -0.052869729697704315, -0.640616238117218, 0.14786849915981293, 0.26482507586479187, -0.09427450597286224, -0.03801870718598366, 0.09634897112846375, -0.3271733224391937, -0.02015794813632965, 0.4219532608985901, 0.05240490660071373, 0.02210446447134018, 0.2686968147754669, 0.2439735233783722, 0.08576863259077072, -0.1344517320394516, 0.11467467993497849, 0.1895124316215515, 0.06847040355205536, 0.0004231567436363548, -0.35793012380599976, -0.17320743203163147, 0.07837685942649841, -0.287615567445755, -0.06037789210677147, 0.11064954102039337, 0.11754187196493149, -0.2738894820213318, 0.09055858850479126, -0.36303743720054626, -0.48376381397247314, -0.06979496777057648, 0.07046473026275635, 0.15524668991565704, -0.39965304732322693, 0.08036695420742035, 0.21613018214702606, -0.11437541991472244, 0.058319091796875, -0.16257378458976746, 0.322358101606369, -0.2975401282310486, 0.7413793206214905, -0.1173180490732193, 0.11610125750303268, -0.1537315845489502, 0.13649672269821167, 0.22915223240852356, 0.3248567581176758, 0.380838543176651, -0.22313450276851654, 0.11283214390277863, -0.5781592130661011, -0.5961936116218567, 0.4128217101097107, 0.09461962431669235, 0.27269721031188965, 0.37131035327911377, 0.1063179224729538, -0.4431185722351074, -0.08089792728424072, 0.014268381521105766, -0.3306339979171753, -0.22475777566432953, -0.15593072772026062, -0.0645112618803978, 0.14424221217632294, -0.04471733793616295, -0.180403932929039, -0.16939976811408997, -0.19827140867710114, 0.37523582577705383, -0.08493798971176147, 0.19986572861671448, 0.1477503925561905, 0.04122810438275337, 0.3752749562263489, -0.5501059889793396, -0.01545741967856884, -0.11899420619010925, -0.40808919072151184, 0.03775261342525482, -0.6036459803581238, -0.34498131275177, 0.1304650902748108, -0.14814431965351105, -0.036734648048877716, -0.11815011501312256, -0.24379001557826996, -0.24893517792224884, -0.2817436456680298, -0.046445924788713455, -0.04387886822223663, 0.058211930096149445, 0.3366234004497528, -0.07223572582006454, -0.09184414893388748, 0.06534934043884277, -0.14390987157821655, -0.06273852288722992, -0.011668910272419453, 0.11499062925577164, -0.17817562818527222, -0.034336481243371964, 0.1868719607591629, 0.3779296875, 0.21884125471115112, -0.12480879575014114, 0.027053967118263245, -0.45159903168678284, 0.2974490523338318, -0.04549388214945793, -0.0707409456372261, 0.10050704330205917, -0.11440899968147278, 0.14883679151535034, 0.1586330682039261, 0.22254611551761627, 0.30800536274909973, 0.3026149570941925, 0.281533807516098, -0.316256046295166, -0.19434165954589844, 0.05452870577573776, -0.17329084873199463, 0.22605770826339722, -0.13560694456100464, 0.13303329050540924, -0.05133085697889328, 0.10636880993843079, 0.00457879388704896, 0.03694361820816994, 0.23842020332813263, 0.025827394798398018, -0.38063836097717285, 0.03989587724208832, 0.05206703767180443, -0.04448064789175987, -0.008907156996428967, -0.1164747104048729, -0.2867598235607147, -0.11600228399038315, 0.06739236414432526, 0.2316892147064209, 0.6677553653717041, -0.041293494403362274, -0.005150028504431248, 0.04732126742601395, -0.4719272255897522, -0.3972480297088623, -0.034990761429071426, -0.28308194875717163, 0.09841495007276535, 0.1577632576227188, 0.4498450756072998, 0.1115662232041359, -0.25316178798675537, 0.6400968432426453, 0.14723415672779083, -0.19241878390312195, 0.1099444329738617, 0.10657879710197449, 0.10875257849693298, -0.1604263335466385, 0.0033711872529238462, 0.12669146060943604, -0.06001223623752594, -0.07145411521196365, -0.23310083150863647, -0.3549361526966095, 0.02256438136100769, 0.013847925700247288, 0.433159202337265, 0.3815610706806183, 0.0909094586968422, 0.25793907046318054, 0.5203461647033691, 0.3753034174442291, 0.30564188957214355, 0.35491707921028137, 0.104413241147995, -0.1209678053855896, 0.3064054846763611, -0.061757493764162064, 0.33101052045822144, 0.1565050482749939, 0.03893867880105972, 0.10246633738279343, -0.04212360084056854, 0.13903933763504028, -0.33175620436668396, 0.32284900546073914, 0.29740265011787415, 0.08945734053850174, -0.3194745182991028, -0.23417288064956665, 0.5605679750442505, 0.22378689050674438, -0.18513886630535126, 0.46205559372901917, 0.4765678942203522, 0.1422175168991089, -0.23735763132572174, 0.05353139713406563, 0.6876665353775024, 0.03652312606573105, 0.08434496819972992, 0.24557548761367798, -0.17165477573871613, 0.5021942853927612, 0.12092838436365128, -0.1125570684671402, -0.2956693470478058, -0.4778721034526825, -0.11478198319673538, -0.22168980538845062, 0.2821292281150818, 0.1816496104001999, -0.19886066019535065, -0.02468571439385414, -0.010078427381813526, 0.18244384229183197, -0.04269903525710106, 0.06374605745077133, 0.015780141577124596, -0.07267148792743683, -0.38198867440223694, 0.12379957735538483, 0.18786369264125824, -0.003254600800573826, 0.009338169358670712, -0.10062158107757568, 0.005843412596732378, -0.06040005758404732, -0.46392568945884705, -0.21563032269477844, -0.134378120303154, 0.00168298848439008, 0.27925676107406616, -0.2689443528652191, 0.3096625804901123, 0.31478166580200195, 0.031216636300086975, 0.039561424404382706, -0.2702920436859131, 0.016941161826252937, -0.466031938791275, -0.045833148062229156, -0.15623395144939423, -0.0017328194808214903, 0.26501891016960144, -0.12446051836013794, -0.20572324097156525, 0.2733047902584076, -0.014413516037166119, 0.017664236947894096, -0.08189418166875839, 0.1602964550256729, -0.25557103753089905, -0.1735798418521881, -0.06685727834701538, -0.10348168760538101, 0.029879175126552582, -0.26671645045280457, 0.12279222905635834, 0.2154369056224823, -0.13497485220432281, -0.013182468712329865, 0.3866214454174042, 0.1808190494775772, 0.004753600340336561, 0.19999051094055176, -0.14869306981563568, -0.0018686160910874605, 0.275264710187912, 0.19029608368873596, 0.04271780326962471, -0.214277446269989, 0.298370361328125, 0.48794880509376526, -0.21869203448295593, -0.005225521046668291, -0.1280588060617447, 0.06266777962446213, 0.19733820855617523, 0.35698238015174866, 0.19948861002922058, -0.19003212451934814, -0.29147520661354065, -0.058181218802928925, -0.38028207421302795, 0.2114996612071991, -0.11834835261106491, 0.49878185987472534, -0.17976590991020203, 0.015537593513727188, 0.05406744405627251, 0.12390685081481934, -0.31960758566856384, 0.24815477430820465, -0.32386788725852966, 0.06385009735822678, -0.0027060285210609436, 0.2991052567958832, 0.11340370029211044, -0.32903599739074707, -0.03589232265949249, 0.12018109858036041, -0.18389306962490082, -0.23190496861934662, -0.3390771448612213, 0.1232619658112526, 0.047989215701818466, -0.0015724112745374441, 0.28105413913726807, 0.3564520478248596, -0.004739879164844751, -0.2098502814769745, 0.16434204578399658, 0.03817493095993996, 0.23744867742061615, 0.23117578029632568, 0.04341915622353554, -0.1417313665151596, 0.20415522158145905, -0.05010831356048584, 0.29431962966918945, 0.18335671722888947, 0.3143180310726166, -0.09473223239183426, -0.16752351820468903, -0.07263269275426865, -0.03996112197637558, 0.18795020878314972, -0.0444883294403553, -0.3453727662563324, 0.05059635266661644, 0.024674514308571815, 0.1378045529127121, -0.024543672800064087, 0.3533416986465454, 0.08927623182535172, 0.0256681889295578, 0.1503743678331375, 0.3059256374835968, 0.2060721218585968, -0.17182429134845734, -0.18203361332416534, 0.09415338933467865, -0.08179021626710892, 0.23998896777629852, -0.028304431587457657, 0.18823827803134918, 0.3200191557407379, 0.14300291240215302, -0.1456785500049591, -0.01934855245053768, -0.02789364568889141, 0.49298566579818726, 0.3488089442253113, -0.2583787143230438, 0.07632291316986084, 0.11675271391868591, 0.06997755169868469, 0.33281776309013367, -0.08697552978992462, -0.03735560551285744, 0.36321771144866943, -0.2329978346824646, 0.08221493661403656, 0.5594726204872131, -0.2854756712913513, -0.03674079850316048, 0.09578076004981995, -0.13889062404632568, 0.0861748456954956, -0.20342592895030975, 0.5114123225212097, -0.15826468169689178, -0.345650315284729, -0.28927937150001526, -0.06359849870204926, 0.06637880206108093, -0.09882239252328873, -0.09523214399814606, -0.22469520568847656, 0.07751670479774475, 0.10034622251987457, 0.10745380073785782, -0.42757609486579895, 0.15210206806659698, -0.33202439546585083, -0.06720153242349625, -0.4065207540988922, -0.0077385688200592995, 0.28455209732055664, 0.24093931913375854, 0.038846492767333984, -0.05671387165784836, -0.13501691818237305, 0.0345037505030632, 0.006947411689907312, 0.6226804256439209, 0.1937185525894165, -0.27195337414741516, 0.44941845536231995, -0.003836756804957986, -0.27867087721824646, -0.009736990556120872, 0.0881032645702362, -0.09380631148815155, 0.09639157354831696, -0.3321152329444885, 0.2460116297006607, 0.12302384525537491, -0.1396179348230362, 0.14297525584697723, -0.16742350161075592, 0.22515025734901428, -0.4204900562763214, -0.14190758764743805, -0.1662173867225647, -0.221579909324646, 0.13824400305747986, -0.23807735741138458, -0.24364444613456726, 0.1490856409072876, 0.38088345527648926, 0.007307815365493298, -0.01847497932612896, 0.10627943277359009, 0.07049927860498428, 0.017671285197138786, 0.3879515528678894, 0.5070167779922485, 0.091201052069664, 0.015565607696771622, -0.4338003695011139, -0.49612319469451904, -0.04777013137936592, -0.20837248861789703, -0.07556923478841782, 0.2671864628791809, 0.051497284322977066, 0.07923653721809387, 0.12024954706430435, 0.19340622425079346, -0.1729041486978531, 0.11228449642658234, 0.14889293909072876, -0.37478846311569214, -0.2444620579481125, 0.13332726061344147, 0.16476915776729584, -0.11152254045009613, 0.09730169922113419, 0.18336589634418488, -0.2671878933906555, -0.06053495034575462, -0.05396576225757599, 0.4409010410308838, -0.38581106066703796, -0.21345454454421997, 0.2742437720298767, -0.08932019025087357, 0.22114336490631104, -0.05428890511393547, -0.05792666971683502, -0.11337919533252716, 0.10592208802700043, 0.05678386241197586, 0.3305470645427704, 0.11929798871278763, 0.31754982471466064, -0.036603476852178574, -0.27145329117774963, -0.0694229006767273, -0.15288300812244415, 0.41361886262893677, 0.11768969893455505, -0.21023564040660858, 0.026281122118234634, 0.031072301790118217, -0.08659504354000092, 0.5606876611709595, 0.3495243787765503, -0.18189802765846252, -0.28594180941581726, -0.04567771777510643, -0.07513576000928879, 0.20338502526283264, -0.42429569363594055, 0.020381644368171692, -0.00720173167064786, 0.07309770584106445, 0.2851402461528778, -0.13970331847667694, -0.5321121215820312, -0.07793168723583221, 0.3862549960613251, -0.2537594735622406, 0.08177178353071213, 0.42358019948005676, 0.06838855147361755, 0.02497599646449089, -0.061619557440280914, 0.728491485118866, 0.2601013779640198, -0.12554745376110077, 0.07814902067184448, -0.2238432615995407 ]
https://github.com/huggingface/datasets/issues/1783
Dataset Examples Explorer
Glad to see that it still exist, this existing one is more than good enough for me, it is feature rich, simple to use and concise. Hope similar feature can be retain in the future version.
In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version. Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation.
36
Dataset Examples Explorer In the Older version of the Dataset, there are a useful Dataset Explorer that allow user to visualize the examples (training, test and validation) of a particular dataset, it is no longer there in current version. Hope HuggingFace can re-enable the feature that at least allow viewing of the first 20 examples of a particular dataset, or alternatively can extract 20 examples for each datasets and make those part of the Dataset Card Documentation. Glad to see that it still exist, this existing one is more than good enough for me, it is feature rich, simple to use and concise. Hope similar feature can be retain in the future version.
[ -0.36287209391593933, -0.423875093460083, -0.04691309854388237, 0.308378666639328, 0.12723465263843536, 0.23467355966567993, 0.17101480066776276, 0.3707435131072998, -0.04600505530834198, 0.37545114755630493, 0.037358831614255905, 0.24077348411083221, -0.3106936514377594, 0.5867730379104614, 0.425044983625412, -0.37111136317253113, 0.017620468512177467, 0.18140722811222076, -0.08537579327821732, 0.08684266358613968, 0.05588137358427048, 0.0799582302570343, -0.18064263463020325, 0.19461672008037567, -0.437564492225647, -0.20320935547351837, -0.29067906737327576, -0.0181124210357666, -0.22345203161239624, -0.5350553393363953, 0.09335150569677353, -0.11315973848104477, 0.3181230127811432, 0.09953124076128006, -0.00011166131298523396, -0.1911386251449585, 0.2427992820739746, 0.11751503497362137, -0.5374824404716492, -0.01702483929693699, -0.3509189784526825, -0.06324858963489532, 0.3206753730773926, -0.18441569805145264, -0.185928076505661, -0.33353617787361145, 0.200956791639328, 0.08714274317026138, 0.36257603764533997, -0.10001355409622192, 0.15401533246040344, 0.4514332413673401, -0.11476876586675644, -0.2746315896511078, 0.02152583934366703, 0.6503049731254578, -0.4158148765563965, 0.10277453809976578, 0.487264484167099, 0.12204479426145554, -0.06283175200223923, 0.4364337921142578, 0.38492071628570557, 0.10844190418720245, 0.08278629183769226, 0.13598239421844482, 0.036740221083164215, -0.12854555249214172, -0.002675917698070407, 0.6877957582473755, 0.4381466209888458, 0.09319870173931122, -0.36321336030960083, -0.5371531248092651, -0.09442999958992004, -0.20775514841079712, -0.12356701493263245, 0.34606263041496277, 0.04566169157624245, 0.2922646105289459, -0.32744210958480835, 0.12380804121494293, -0.20140628516674042, -0.04352020099759102, -0.03160872310400009, -0.04195187985897064, -0.350546270608902, -0.03885718435049057, 0.44341039657592773, -0.04545499011874199, 0.032143983989953995, 0.16507920622825623, 0.027494249865412712, 0.16763751208782196, -0.03626439720392227, -0.1789744645357132, 0.2143944650888443, 0.179052472114563, 0.20067432522773743, 0.18325616419315338, 0.04367319494485855, 0.2886772155761719, -0.005130574107170105, 0.18752643465995789, 0.2100372016429901, -0.14857754111289978, 0.4455878734588623, 0.1579919457435608, 0.19875772297382355, 0.29058313369750977, 0.11119511723518372, -0.024733958765864372, -0.3412185311317444, 0.19070357084274292, -0.3514389097690582, -0.23641595244407654, 0.048077791929244995, -0.1570359319448471, -0.0745459571480751, -0.11041378229856491, -0.1966988742351532, -0.10011143982410431, 0.09877185523509979, 0.37873363494873047, -0.08206481486558914, -0.3699356019496918, -0.30439239740371704, -0.1323147565126419, 0.09532996267080307, -0.3404923379421234, -0.1633530557155609, 0.013424266129732132, -0.2573067545890808, 0.0765170082449913, 0.14089368283748627, -0.48911380767822266, 0.4031635820865631, -0.06372033059597015, -0.08232063800096512, 0.018204951658844948, 0.31768131256103516, 0.13764549791812897, 0.32319629192352295, 0.08467752486467361, -0.06982100009918213, -0.200185164809227, 0.14536021649837494, 0.04668042063713074, -0.2402198612689972, -0.03320452943444252, -0.11505430191755295, -0.40292876958847046, -0.31976771354675293, 0.09049732238054276, -0.1786218285560608, 0.10104814171791077, -0.5091862082481384, 0.5675259232521057, -0.4719489812850952, -0.14239542186260223, -0.05228757485747337, 0.1688283532857895, -0.2888944447040558, 0.08082100003957748, 0.36578336358070374, 0.3202438950538635, -0.3815142810344696, -0.40230295062065125, 0.004050091374665499, -0.2024502009153366, -0.354172021150589, -0.010266555473208427, -0.3748864233493805, 0.38426366448402405, -0.5060610175132751, 0.19321107864379883, 0.3482883870601654, -0.2705029547214508, -0.026890642940998077, 0.07324221730232239, 0.13421878218650818, -0.015300522558391094, 0.05472045764327049, -0.16563978791236877, 0.5171085596084595, -0.058082085102796555, -0.32665902376174927, -0.005883670412003994, 0.05005309730768204, 0.004567989148199558, -0.005781133659183979, -0.14363333582878113, -0.012643352150917053, 0.09874213486909866, -0.1880905032157898, 0.08297567069530487, 0.10468708723783493, -0.02913810685276985, 0.5324888825416565, -0.25470277667045593, -0.06238088011741638, 0.12401668727397919, 0.24472284317016602, 0.18672680854797363, 0.03329002484679222, -0.39072543382644653, -0.26631584763526917, 0.08742745220661163, 0.017390495166182518, -0.17043717205524445, 0.3375398814678192, -0.3268711566925049, -0.10811813175678253, -0.03013789653778076, -0.26415249705314636, -0.2458118498325348, 0.11566321551799774, -0.1632663607597351, 0.11296820640563965, 0.11940526962280273, -0.23012827336788177, 0.10286276787519455, -0.4876907169818878, 0.1936998963356018, -0.3489355146884918, 0.19252227246761322, 0.11545884609222412, 0.08967659622430801, -0.0020300964824855328, 0.08054855465888977, -0.023298008367419243, -0.28268811106681824, 0.052323974668979645, 0.1806110143661499, 0.16518303751945496, -0.12753230333328247, 0.2021794468164444, 0.418383926153183, 0.25019371509552, -0.3330257833003998, -0.004210345912724733, -0.20555976033210754, -0.07188476622104645, 0.18679289519786835, -0.7351928949356079, 0.31166526675224304, 0.28925877809524536, 0.1737937331199646, 0.27622783184051514, 0.055966563522815704, 0.027218926697969437, 0.08492937684059143, -0.25095707178115845, -0.23386867344379425, 0.1624344438314438, 0.08342397958040237, 0.1351509988307953, 0.011840752325952053, -0.6773616671562195, 0.17999427020549774, 0.3371830880641937, -0.1255374401807785, -0.06369172781705856, 0.15971578657627106, -0.2830047309398651, -0.0718507319688797, 0.42287084460258484, 0.058026522397994995, 0.007862643338739872, 0.22130174934864044, 0.17576812207698822, 0.061136066913604736, -0.10282459110021591, 0.1389879435300827, 0.2311139702796936, 0.0595351979136467, -0.021347688511013985, -0.3625927269458771, -0.15990866720676422, 0.12347882986068726, -0.2691360414028168, -0.08518470078706741, 0.1261216551065445, 0.06750128418207169, -0.24929732084274292, 0.08822327107191086, -0.31241360306739807, -0.46994999051094055, -0.05582806468009949, 0.053670529276132584, 0.1064356341958046, -0.34494009613990784, 0.09614857286214828, 0.18335147202014923, -0.13050177693367004, 0.08080239593982697, -0.07397525757551193, 0.4409160614013672, -0.2626437246799469, 0.6817627549171448, -0.15893469750881195, 0.12168227881193161, -0.14660465717315674, 0.09290528297424316, 0.19640980660915375, 0.29978346824645996, 0.3955373167991638, -0.19229476153850555, 0.125374898314476, -0.6362920999526978, -0.5710223317146301, 0.41473668813705444, 0.1140519380569458, 0.28197523951530457, 0.32379084825515747, 0.12125891447067261, -0.48097214102745056, -0.09206126630306244, 0.0238985363394022, -0.3108510673046112, -0.19529545307159424, -0.1606525033712387, -0.06964994966983795, 0.08661536872386932, -0.0036351687740534544, -0.17604604363441467, -0.23371946811676025, -0.19288882613182068, 0.37307611107826233, -0.13502904772758484, 0.2156970500946045, 0.18019156157970428, 0.022220585495233536, 0.3586764931678772, -0.5773912668228149, 0.06568816304206848, -0.12300494313240051, -0.419679194688797, -0.03419102728366852, -0.5392009019851685, -0.3599959909915924, 0.04881075769662857, -0.18133807182312012, -0.12221381813287735, -0.08613086491823196, -0.22494082152843475, -0.28328901529312134, -0.28889212012290955, -0.012711700983345509, -0.05501718446612358, 0.142812117934227, 0.36446672677993774, -0.012962114997208118, -0.04805213212966919, 0.08233869820833206, -0.22717243432998657, -0.04118604585528374, -0.01952287182211876, 0.10348007082939148, -0.11570540815591812, 0.01137184351682663, 0.14244143664836884, 0.42829811573028564, 0.13442081212997437, -0.07860942929983139, 0.047712765634059906, -0.4147202670574188, 0.25432536005973816, -0.08435894548892975, -0.10630341619253159, 0.15341778099536896, -0.09898398071527481, 0.1714029610157013, 0.13085415959358215, 0.2102695256471634, 0.34521204233169556, 0.2885035276412964, 0.2634052634239197, -0.2960059940814972, -0.23340736329555511, 0.025864185765385628, -0.06856609135866165, 0.27100521326065063, -0.058106109499931335, 0.05613664537668228, -0.05029313266277313, 0.11480220407247543, 0.0017158702248707414, 0.13608476519584656, 0.26296254992485046, 0.04269236698746681, -0.45156991481781006, 0.048892538994550705, 0.06359276175498962, -0.06515781581401825, 0.04239530861377716, -0.1487872451543808, -0.27443450689315796, -0.10302495956420898, 0.013310953043401241, 0.27532488107681274, 0.6601599454879761, 0.022747159004211426, -0.02109195850789547, 0.0015433271182700992, -0.5326403379440308, -0.3859303891658783, -0.023572498932480812, -0.2493935525417328, 0.07461779564619064, 0.11913318186998367, 0.4595211148262024, 0.06351149082183838, -0.3181060254573822, 0.6373791098594666, 0.21319694817066193, -0.1942310482263565, 0.12622660398483276, 0.11924508213996887, 0.10609403997659683, -0.20075355470180511, 0.01588601805269718, 0.16773508489131927, -0.07218673080205917, -0.06926427781581879, -0.25347355008125305, -0.36916160583496094, 0.06230613961815834, -0.0160839706659317, 0.44532647728919983, 0.3887849450111389, 0.07389373332262039, 0.3272364139556885, 0.4302355647087097, 0.4262765347957611, 0.3560318350791931, 0.2934799790382385, 0.017901277169585228, -0.14675100147724152, 0.2595756947994232, -0.10832291841506958, 0.40406298637390137, 0.20718510448932648, -0.04026736691594124, 0.13808982074260712, -0.10564890503883362, 0.15932297706604004, -0.3352413475513458, 0.29041269421577454, 0.32053548097610474, 0.1410129815340042, -0.3666873276233673, -0.222075417637825, 0.5649853348731995, 0.2509385049343109, -0.19642658531665802, 0.4854004383087158, 0.5616512894630432, 0.16542667150497437, -0.23376375436782837, -0.013483730144798756, 0.7488549947738647, 0.011356678791344166, 0.17942313849925995, 0.2811601758003235, -0.08629000931978226, 0.5181325674057007, 0.2136390656232834, -0.07859791815280914, -0.35093826055526733, -0.41293227672576904, -0.10723782330751419, -0.23593761026859283, 0.25145596265792847, 0.21314316987991333, -0.19958961009979248, -0.030933495610952377, 0.033961355686187744, 0.18470187485218048, -0.08068105578422546, 0.0858270600438118, 0.06718672811985016, -0.19965167343616486, -0.45943906903266907, 0.06681551784276962, 0.1864127218723297, -0.03131702169775963, -0.0020044115372002125, -0.145493283867836, 0.03372683748602867, -0.07695085555315018, -0.4161774516105652, -0.2480277270078659, -0.12536729872226715, -0.02786608412861824, 0.3732725977897644, -0.3237699270248413, 0.32466673851013184, 0.24128711223602295, -0.023241452872753143, 0.06661173701286316, -0.20861287415027618, -0.031621478497982025, -0.5383197069168091, 0.01195310428738594, -0.22888728976249695, -0.049735456705093384, 0.2615378201007843, -0.13232648372650146, -0.23747135698795319, 0.18709729611873627, -0.061518602073192596, 0.01613350212574005, -0.07066473364830017, 0.17416158318519592, -0.19794586300849915, -0.17898181080818176, -0.0728762298822403, -0.11469737440347672, 0.005683990195393562, -0.2668551802635193, 0.09958091378211975, 0.2071617692708969, -0.11864735931158066, -0.01144461426883936, 0.3965771794319153, 0.16505952179431915, 0.02387765236198902, 0.11083216220140457, -0.17631353437900543, -0.01612814888358116, 0.2718542814254761, 0.17134524881839752, 0.049656204879283905, -0.19897760450839996, 0.29848793148994446, 0.512816309928894, -0.20561173558235168, 0.040533170104026794, -0.07901473343372345, -0.004781696014106274, 0.14209899306297302, 0.426411509513855, 0.2334619164466858, -0.18816907703876495, -0.21816584467887878, -0.042689017951488495, -0.37369924783706665, 0.22815200686454773, -0.17073841392993927, 0.4515785276889801, -0.12383195012807846, -0.008597786538302898, 0.06441063433885574, 0.10720523446798325, -0.29792317748069763, 0.23733115196228027, -0.26757246255874634, 0.06758572161197662, 0.1066538393497467, 0.28533896803855896, 0.1486872136592865, -0.2966266870498657, -0.05603699013590813, 0.08989886194467545, -0.16925810277462006, -0.22352203726768494, -0.3569561839103699, 0.14497800171375275, 0.06432613730430603, -0.03981602564454079, 0.2931801676750183, 0.34152650833129883, -0.031243063509464264, -0.2159668207168579, 0.21449075639247894, 0.0533117800951004, 0.26253214478492737, 0.26503244042396545, 0.011877130717039108, -0.1454118937253952, 0.23327237367630005, 0.026836784556508064, 0.28969433903694153, 0.19864541292190552, 0.3081659972667694, -0.11801600456237793, -0.13548503816127777, -0.09962980449199677, 0.013953943736851215, 0.1951919049024582, -0.048649828881025314, -0.3119463324546814, 0.013578611426055431, 0.00488144438713789, 0.074233278632164, 0.03983818739652634, 0.3551676273345947, 0.11483018100261688, 0.01651982218027115, 0.1727314293384552, 0.29736748337745667, 0.18092668056488037, -0.19038337469100952, -0.20953257381916046, 0.1714635044336319, -0.11087080836296082, 0.27635252475738525, 0.018687497824430466, 0.21209391951560974, 0.3231058418750763, 0.16003087162971497, -0.18677304685115814, 0.036665964871644974, -0.017879487946629524, 0.4736906886100769, 0.2818273901939392, -0.2511587142944336, 0.09751196205615997, 0.11154726892709732, 0.16977091133594513, 0.3672656714916229, -0.12093168497085571, -0.023420797660946846, 0.3076200783252716, -0.19601596891880035, 0.0861857682466507, 0.5580365061759949, -0.32684746384620667, 0.03364240750670433, 0.08667608350515366, -0.16847559809684753, 0.04430142790079117, -0.20905448496341705, 0.5345993041992188, -0.12784093618392944, -0.4057995080947876, -0.25142672657966614, -0.06181664392352104, 0.05484183132648468, -0.11274287104606628, -0.03930972144007683, -0.2156905233860016, 0.0880427211523056, 0.09321831166744232, 0.10742908716201782, -0.37299567461013794, 0.21447233855724335, -0.32368868589401245, -0.008395712822675705, -0.42543286085128784, 0.005701843183487654, 0.3477917015552521, 0.26575082540512085, 0.09099078178405762, -0.09729932248592377, -0.09930115938186646, 0.03288261219859123, -0.03462779521942139, 0.620656430721283, 0.11807635426521301, -0.22628982365131378, 0.4333232045173645, 0.04067230224609375, -0.3129928708076477, 0.0022458317689597607, 0.07346952706575394, -0.12079381197690964, 0.10678748786449432, -0.34008607268333435, 0.23280707001686096, 0.07468351721763611, -0.10751184821128845, 0.1573765128850937, -0.14546170830726624, 0.09124642610549927, -0.4371270537376404, -0.17302997410297394, -0.18892401456832886, -0.22340908646583557, 0.03945804387331009, -0.23092569410800934, -0.2144010066986084, 0.09474939107894897, 0.5052248239517212, 0.03361636772751808, 0.010373671539127827, 0.0725555270910263, 0.05579083040356636, 0.007100699935108423, 0.3296574652194977, 0.512271523475647, 0.10035844147205353, 0.030794667080044746, -0.3707309663295746, -0.45666810870170593, -0.055362265557050705, -0.2726142108440399, -0.11334750801324844, 0.3075876533985138, 0.059555865824222565, 0.020857924595475197, 0.14123135805130005, 0.2326318919658661, -0.1926286667585373, 0.14967459440231323, 0.09020063281059265, -0.4039147198200226, -0.246818408370018, 0.16586609184741974, 0.14313822984695435, -0.11398734897375107, 0.019761497154831886, 0.1975492686033249, -0.21652832627296448, -0.08191685378551483, -0.09057384729385376, 0.44369569420814514, -0.39074432849884033, -0.1234758123755455, 0.23003460466861725, -0.05083339661359787, 0.17910419404506683, -0.054777320474386215, -0.13051940500736237, -0.10952641814947128, 0.13215382397174835, 0.06013767793774605, 0.32160526514053345, 0.13709023594856262, 0.24854923784732819, -0.040442053228616714, -0.28201332688331604, -0.10846021771430969, -0.10370330512523651, 0.45613884925842285, 0.06159227341413498, -0.2457842230796814, 0.078403040766716, 0.06845855712890625, -0.09748070687055588, 0.5709720253944397, 0.358867883682251, -0.20809786021709442, -0.24776466190814972, -0.1020749881863594, -0.10125763714313507, 0.23668304085731506, -0.38342246413230896, -0.025716429576277733, -0.032344456762075424, 0.08270931243896484, 0.27582231163978577, -0.10746397078037262, -0.5303414463996887, -0.10593981295824051, 0.34870409965515137, -0.27847355604171753, 0.07355105131864548, 0.4093363583087921, 0.09777157008647919, -0.005446783732622862, -0.06865853071212769, 0.6830685138702393, 0.2762744724750519, -0.1177210807800293, 0.09965179860591888, -0.23936961591243744 ]
https://github.com/huggingface/datasets/issues/1781
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
Hi ! I'm not able to reproduce the issue. Can you try restarting your runtime ? The PyExtensionType is available in pyarrow starting 0.17.1 iirc. If restarting your runtime doesn't fix this, can you try updating pyarrow ? ``` pip install pyarrow --upgrade ```
I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png)
44
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png) Hi ! I'm not able to reproduce the issue. Can you try restarting your runtime ? The PyExtensionType is available in pyarrow starting 0.17.1 iirc. If restarting your runtime doesn't fix this, can you try updating pyarrow ? ``` pip install pyarrow --upgrade ```
[ -0.1790667176246643, -0.15857701003551483, -0.04439399391412735, 0.22058609127998352, 0.18019706010818481, -0.06392652541399002, 0.1799783855676651, 0.26824256777763367, -0.31142231822013855, 0.19323380291461945, -0.03610508143901825, 0.43298885226249695, -0.16673214733600616, -0.11185600608587265, 0.08164127916097641, -0.06726498156785965, 0.25074902176856995, 0.39723584055900574, 0.22831608355045319, 0.015299497172236443, -0.1987970620393753, 0.22143328189849854, -0.3317897617816925, 0.22891145944595337, -0.36306968331336975, 0.25725093483924866, 0.05589570105075836, -0.1920567899942398, -0.23017385601997375, -0.5764161348342896, 0.46228307485580444, -0.45769020915031433, 0.18378685414791107, 0.01981973648071289, -0.00011443188122939318, -0.008583557792007923, 0.3469848930835724, 0.03693274036049843, -0.0781996101140976, -0.17992669343948364, 0.014669032767415047, -0.07959990203380585, 0.3153555989265442, -0.06888297945261002, 0.13768431544303894, -0.049098942428827286, -0.04556267708539963, 0.36711761355400085, -0.051687441766262054, 0.27965253591537476, 0.23754507303237915, -0.025175750255584717, 0.5402343273162842, 0.01672373339533806, 0.5226998329162598, -0.16090181469917297, -0.22563724219799042, 0.6437643766403198, 0.3970012664794922, -0.33972620964050293, 0.3303512632846832, -0.06238790974020958, -0.3161483108997345, 0.1467282623052597, 0.3413372337818146, 0.009386365301907063, 0.478527307510376, -0.29684004187583923, -0.03492100164294243, 0.06390471756458282, 0.19931010901927948, -0.10613241791725159, -0.05362311750650406, 0.1321723610162735, 0.27377498149871826, -0.4418087303638458, 0.17805390059947968, 0.3744235932826996, -0.06510283052921295, 0.1674174964427948, 0.3446935713291168, -0.028273986652493477, -0.15471714735031128, 0.11217710375785828, -0.3299461305141449, 0.4400118589401245, -0.060891199856996536, -0.012678458355367184, 0.16065967082977295, -0.01435357891023159, 0.43840262293815613, 0.17201921343803406, -0.14645788073539734, 0.17460940778255463, -0.13466845452785492, 0.16957876086235046, 0.034611836075782776, 0.36144915223121643, -0.01689770072698593, -0.30393412709236145, -0.16464149951934814, -0.22025583684444427, 0.18523840606212616, 0.4585879147052765, -0.15472400188446045, 0.2969100773334503, 0.04259829595685005, -0.1898491233587265, 0.19396422803401947, 0.043113987892866135, -0.1044301837682724, 0.142160564661026, -0.14134031534194946, -0.37775200605392456, 0.2381356805562973, -0.08613277971744537, 0.42199262976646423, -0.15249425172805786, -0.455139696598053, -0.34603995084762573, -0.5161134600639343, 0.07154238224029541, -0.08191020786762238, 0.2317304164171219, -0.1786220371723175, 0.13982190191745758, 0.013510269112884998, 0.22793570160865784, -0.12977522611618042, -0.23413723707199097, -0.04157083109021187, 0.31837424635887146, -0.18675559759140015, -0.2240164428949356, -0.06058347970247269, -0.19775453209877014, -0.03448686748743057, 0.06472114473581314, 0.0029567477758973837, -0.17286600172519684, -0.36389806866645813, -0.23140385746955872, -0.23837439715862274, 0.32501912117004395, -0.12411938607692719, -0.014452371746301651, 0.1709779053926468, -0.5575411915779114, -0.14249397814273834, 0.31947529315948486, -0.561752438545227, -0.40438902378082275, -0.2904808521270752, 0.16599997878074646, -0.1723255068063736, -0.1548970490694046, -0.30650970339775085, -0.18035092949867249, -0.033964887261390686, -0.27121835947036743, -0.13444817066192627, -0.47942376136779785, -0.01606155000627041, -0.4012240171432495, -0.07799418270587921, 0.023712480440735817, -0.4536840319633484, -0.1713840663433075, -0.06733481585979462, -0.059336159378290176, 0.34551551938056946, 0.034836236387491226, -0.17410363256931305, 0.05995497852563858, -0.08434492349624634, 0.19870169460773468, 0.08481470495462418, -0.11367323249578476, -0.22338393330574036, -0.23622490465641022, -0.07850733399391174, -0.038603972643613815, -0.0020761704072356224, -0.28772351145744324, -0.019768739119172096, -0.04313058406114578, 0.4431331753730774, 0.2906010150909424, -0.10933421552181244, 0.21798622608184814, -0.31103381514549255, -0.19816675782203674, 0.35804495215415955, 0.12559984624385834, 0.09553565829992294, -0.16782434284687042, 0.08927824348211288, -0.28284797072410583, 0.09090334177017212, -0.14410382509231567, -0.03334246575832367, -0.02477964013814926, 0.5660243630409241, 0.09152384102344513, -0.11757298558950424, -0.05556703358888626, 0.06030254811048508, 0.17707273364067078, -0.16718542575836182, 0.1522553563117981, -0.34474244713783264, -0.038001649081707, -0.32477566599845886, 0.3926258683204651, -0.24539273977279663, -0.07465985417366028, 0.0887518897652626, -0.10591785609722137, -0.179107204079628, 0.4000243544578552, -0.07048452645540237, 0.05814769119024277, 0.17782428860664368, 0.1856280118227005, 0.0744909942150116, 0.4301852285861969, -0.2708325684070587, -0.4979071021080017, -0.10840485244989395, 0.003412378253415227, 0.23242324590682983, 0.009456858970224857, -0.10768072307109833, -0.06700047850608826, -0.02965405397117138, 0.1820954829454422, -0.27383217215538025, 0.15432268381118774, 0.09934796392917633, -0.46785128116607666, -0.009804784320294857, -0.22348235547542572, 0.06927624344825745, -0.01874537579715252, 0.8860575556755066, 0.16759224236011505, 0.2548607885837555, 0.13226336240768433, -0.26078662276268005, 0.16865701973438263, 0.0046352818608284, 0.09246306866407394, 0.20963938534259796, 0.13990463316440582, 0.06811679154634476, 0.24119417369365692, -0.1811216175556183, -0.11707478761672974, -0.02553243190050125, 0.054253775626420975, 0.283424973487854, 0.20264576375484467, 0.19769544899463654, 0.0019476109882816672, -0.47568464279174805, 0.09324359893798828, 0.23659171164035797, -0.17329387366771698, 0.3250071704387665, 0.06680081784725189, -0.35975679755210876, 0.07571979612112045, 0.07933550328016281, -0.0889662578701973, 0.2429635375738144, 0.14912296831607819, 0.5926095843315125, -0.0030884025618433952, 0.26508817076683044, 0.08025061339139938, -0.16853949427604675, -0.22755904495716095, -0.08665124326944351, 0.27500927448272705, -0.248576819896698, 0.21474957466125488, -0.3447979688644409, -0.023402994498610497, -0.16416162252426147, -0.5490452647209167, -0.1036430075764656, -0.12645705044269562, -0.12158431857824326, 0.28564390540122986, 0.19152627885341644, 0.05217333137989044, 0.2701272666454315, -0.09636638313531876, 0.07072878628969193, -0.458015501499176, -0.07695218920707703, -0.2203989177942276, -0.37430909276008606, 0.026289159432053566, 0.12517724931240082, -0.059072211384773254, -0.0304240845143795, -0.3601931929588318, 0.13016454875469208, 0.07015786319971085, -0.36974969506263733, 0.10273641347885132, -0.21741540729999542, 0.3510773181915283, 0.12888434529304504, 0.13893534243106842, -0.22834379971027374, -0.2265947163105011, 0.3410275876522064, -0.22795669734477997, -0.23165839910507202, 0.17297117412090302, -0.2530035972595215, -0.14666706323623657, -0.03882454335689545, -0.002437369432300329, -0.4087461233139038, -0.13567493855953217, -0.0016150246374309063, 0.0617811344563961, 0.06477686017751694, 0.24733586609363556, 0.3024418354034424, 0.23006093502044678, 0.024663163349032402, -0.00551785621792078, 0.10058502852916718, 0.16625991463661194, 0.42914924025535583, -0.1283850520849228, -0.17998583614826202, 0.3432489335536957, -0.2596539855003357, -0.04546630010008812, -0.10259049385786057, -0.21025754511356354, -0.49688616394996643, -0.020850200206041336, 0.49425315856933594, -0.11824773997068405, -0.049485236406326294, 0.1953202784061432, 0.13268938660621643, 0.006299242842942476, 0.09638786315917969, -0.029870187863707542, -0.4402616620063782, 0.367514431476593, 0.23365969955921173, 0.059736236929893494, 0.038474176079034805, -0.132835254073143, 0.5266125202178955, -0.3150179386138916, -0.034940071403980255, 0.32933980226516724, -0.27154597640037537, -0.06168702617287636, 0.02730627916753292, -0.37569716572761536, -0.028094712644815445, -0.15550260245800018, -0.20602242648601532, 0.17613287270069122, -0.2777560353279114, -0.16405217349529266, -0.16386251151561737, -0.07748506218194962, -0.23830170929431915, -0.21181201934814453, 0.1579068899154663, 0.3201146423816681, 0.22258411347866058, -0.16092146933078766, -0.179194375872612, -0.013210813514888287, -0.14283734560012817, 0.123850017786026, 0.20512905716896057, -0.27163904905319214, 0.07009906321763992, 0.4383116066455841, -0.6262348294258118, -0.05963905155658722, 0.2981518805027008, 0.32960978150367737, -0.045215509831905365, 0.15853697061538696, 0.06533374637365341, 0.044048864394426346, -0.01635003834962845, 0.3518734574317932, 0.27033859491348267, -0.0755225270986557, 0.14120851457118988, 0.07662799954414368, -0.1490987241268158, -0.4287264049053192, -0.1191016137599945, -0.2681026756763458, 0.024327989667654037, -0.4682471752166748, -0.12966477870941162, 0.21631258726119995, 0.3303779065608978, 0.414761483669281, -0.10042530298233032, 0.2933023273944855, -0.37929126620292664, -0.45693594217300415, -0.18292351067066193, -0.14716927707195282, 0.11072312295436859, 0.5425571799278259, 0.044208966195583344, 0.23260323703289032, -0.11236979812383652, -0.11950090527534485, 0.048185795545578, 0.28083086013793945, 0.08009466528892517, -0.08874262124300003, -0.05812107399106026, -0.24516350030899048, -0.14979161322116852, 0.4851491451263428, 0.35755494236946106, 0.3432023823261261, -0.5243740677833557, -0.2735808491706848, 0.17613418400287628, 0.2826772928237915, -0.08507278561592102, -0.33563390374183655, 0.1472056359052658, -0.6066704392433167, -0.10709882527589798, 0.2576438784599304, -0.05599883198738098, 0.24302148818969727, 0.12221404910087585, -0.031008116900920868, 0.15050950646400452, 0.559309720993042, 0.05246929079294205, 0.08376134186983109, -0.16321052610874176, 0.44748595356941223, -0.10408236086368561, 0.19984501600265503, 0.03314730152487755, 0.8620256781578064, 0.09621598571538925, -0.10626837611198425, 0.5184588432312012, -0.08812899142503738, 0.18789680302143097, -0.008163205347955227, 0.18999844789505005, -0.3045167922973633, -0.07990361750125885, -0.08129136264324188, -0.23750494420528412, 0.30075603723526, -0.3801077902317047, -0.18557219207286835, 0.032174136489629745, -0.10736653208732605, 0.04126526787877083, 0.26915863156318665, -0.3244296610355377, 0.10202896595001221, -0.02709457091987133, -0.18156057596206665, 0.1279207020998001, -0.3390742242336273, 0.38816308975219727, -0.23317517340183258, 0.08971424400806427, -0.2383803278207779, -0.03451799228787422, -0.3565089702606201, 0.1594754457473755, -0.4747295379638672, 0.09533800929784775, 0.402570903301239, -0.2607298493385315, 0.218015655875206, 0.2544824182987213, -0.0881710797548294, -0.20516043901443481, -0.11909627914428711, 0.1531812995672226, 0.2104896903038025, -0.29330000281333923, -0.14009131491184235, -0.014818807132542133, 0.3789055049419403, -0.26633554697036743, -0.20536887645721436, 0.3243810832500458, -0.12005523592233658, 0.019012117758393288, 0.20792332291603088, 0.21721184253692627, 0.2174224704504013, -0.1397693008184433, -0.11597049981355667, -0.1548209935426712, 0.43965110182762146, -0.17938265204429626, 0.09745468944311142, 0.1022862121462822, -0.14806810021400452, 0.2389153093099594, 0.059793684631586075, -0.12154410034418106, -0.06766532361507416, 0.03428741544485092, 0.053084369748830795, 0.1256932020187378, 0.4378906786441803, 0.0360097773373127, -0.13380829989910126, -0.08925925940275192, 0.08357671648263931, -0.24525204300880432, -0.3923935890197754, 0.16142286360263824, 0.04132001847028732, 0.09458748251199722, 0.15416976809501648, 0.6016368865966797, 0.22009049355983734, 0.19594354927539825, -0.0029774417635053396, -0.39358416199684143, 0.01539700385183096, 0.1952124983072281, 0.22340528666973114, -0.18293701112270355, 0.14827671647071838, 0.4871104061603546, 0.23102159798145294, -0.2154334932565689, -0.23554539680480957, 0.16993875801563263, -0.020216917619109154, 0.16549502313137054, -0.20813152194023132, -0.023761194199323654, 0.13768793642520905, -0.02558780275285244, 0.17065376043319702, 0.1360500603914261, 0.07900425046682358, -0.24130728840827942, -0.2038373351097107, 0.1567433774471283, 0.047349635511636734, 0.1087641716003418, 0.14443138241767883, 0.032390762120485306, 0.13638918101787567, 0.10756324231624603, -0.014493199065327644, -0.011574622243642807, -0.2664198577404022, 0.020628252997994423, 0.504808783531189, 0.011670757085084915, -0.10324140638113022, 0.13988645374774933, -0.17360422015190125, 0.45919618010520935, 0.17299103736877441, 0.08511365205049515, 0.05566652864217758, 0.12225852906703949, 0.006754386238753796, -0.1525094211101532, -0.36882832646369934, -0.08225259184837341, 0.25275349617004395, -0.5157040953636169, -0.01029787678271532, -0.3664908707141876, -0.08044441044330597, 0.36816683411598206, -0.28237757086753845, 0.1550215482711792, 0.3580295145511627, 0.14871497452259064, -0.23438936471939087, 0.08023422211408615, 0.1561589539051056, 0.012103763408958912, -0.06572858989238739, 0.20856943726539612, 0.09627172350883484, 0.13251757621765137, 0.013520549051463604, 0.1941375583410263, 0.11257456988096237, 0.33379048109054565, 0.07331246137619019, 0.19916650652885437, -0.19074851274490356, 0.3111230134963989, 0.30128106474876404, -0.04472654312849045, 0.09972503036260605, 0.107146255671978, -0.2848712205886841, 0.1915012151002884, -0.12234515696763992, -0.03664344176650047, 0.34470710158348083, -0.27279743552207947, 0.054544541984796524, -0.049981072545051575, 0.20501209795475006, -0.1866605132818222, 0.22294802963733673, 0.4996075928211212, -0.03812618926167488, -0.08524575084447861, 0.04503968358039856, 0.47153326869010925, -0.09092143177986145, 0.21895922720432281, 0.21218842267990112, 0.04001909866929054, -0.11028862744569778, 0.061560388654470444, 0.08992941677570343, -0.16476646065711975, 0.14055763185024261, 0.3287215828895569, -0.2781500816345215, -0.16833488643169403, 0.13419613242149353, 0.1551511436700821, 0.2446393519639969, -0.1510169804096222, -0.029192160815000534, -0.012602542527019978, -0.2535862922668457, -0.342518150806427, 0.3309093713760376, 0.5272144079208374, 0.36179643869400024, -0.22287115454673767, -0.35056909918785095, -0.2627762258052826, -0.08631544560194016, 0.11957266181707382, -0.1643647700548172, 0.19720028340816498, 0.5600962042808533, 0.0767567977309227, 0.19424206018447876, -0.17044943571090698, 0.13970418274402618, -0.0916648730635643, -0.043189000338315964, -0.04912253096699715, 0.1625777930021286, -0.008292506448924541, -0.25678640604019165, -0.5138962864875793, 0.09667092561721802, -0.05040247365832329, 0.35003480315208435, 0.11257335543632507, 0.11481544375419617, -0.1855018436908722, 0.04428787901997566, 0.06090022996068001, 0.166542649269104, 0.3051978647708893, 0.3875771462917328, 0.4755401015281677, -0.21389444172382355, -0.18143479526042938, -0.29163670539855957, 0.36961987614631653, -0.23896564543247223, 0.04145944118499756, 0.11052750051021576, -0.006288748700171709, -0.19997325539588928, 0.3702284097671509, -0.01149365771561861, 0.1765708178281784, 0.07348930835723877, 0.02980288304388523, -0.32098424434661865, -0.22219030559062958, 0.14447461068630219, -0.32794228196144104, 0.07144899666309357, -0.12310627847909927, 0.2319754660129547, -0.6399857997894287, 0.11017255485057831, -0.3500317335128784, -0.2746463716030121, 0.002753686625510454, -0.002903931774199009, 0.6594686508178711, -0.08456996828317642, 0.4161301553249359, 0.1328030675649643, 0.09509329497814178, 0.037823062390089035, -0.3472765386104584, -0.05209466442465782, 0.24728837609291077, -0.0002779825299512595, 0.22365139424800873, 0.1149880588054657, 0.007558635901659727, -0.3633074462413788, 0.36915263533592224, 0.010458402335643768, -0.10326391458511353, -0.1003398597240448, 0.080771803855896, 0.018232986330986023, 0.16123904287815094, -0.1669696420431137, 0.017748752608895302, -0.10940287262201309, 0.04703814163804054, -0.3611804246902466, -0.5371567010879517, 0.424358606338501, -0.31465741991996765, -0.3414463698863983, 0.06733927875757217, 0.21002759039402008, -0.1327819675207138, -0.14682859182357788, -0.40876513719558716, 0.03323277458548546, 0.29696372151374817, 0.13313980400562286, -0.27543777227401733, 0.20855776965618134, 0.033827681094408035, 0.05570582300424576, -0.033555541187524796, 0.38381442427635193, -0.09978801012039185, 0.1347159892320633, -0.25185346603393555, -0.06294263899326324 ]
https://github.com/huggingface/datasets/issues/1781
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
Yes indeed. Also it looks like Pyarrow 3.0.0 got released on pypi 10 hours ago. This might be related to the bug, I'll investigate EDIT: looks like the 3.0.0 release doesn't have unexpected breaking changes for us, so I don't think the issue comes from that
I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png)
46
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png) Yes indeed. Also it looks like Pyarrow 3.0.0 got released on pypi 10 hours ago. This might be related to the bug, I'll investigate EDIT: looks like the 3.0.0 release doesn't have unexpected breaking changes for us, so I don't think the issue comes from that
[ -0.013139760121703148, -0.06683260202407837, -0.03311927989125252, 0.14838853478431702, 0.15526288747787476, -0.13665850460529327, 0.29721131920814514, 0.32552483677864075, -0.39373576641082764, 0.18657280504703522, -0.01726936548948288, 0.3017137050628662, -0.09787217527627945, -0.13595181703567505, 0.15709708631038666, -0.07664712518453598, 0.3692229390144348, 0.33226561546325684, 0.21011173725128174, 0.03413250297307968, -0.2047904133796692, 0.24357494711875916, -0.36056387424468994, 0.2816300392150879, -0.33497145771980286, 0.29646486043930054, -0.05019451305270195, -0.21149291098117828, -0.17204846441745758, -0.5515247583389282, 0.4652979373931885, -0.3716564178466797, 0.17180277407169342, 0.08620774000883102, -0.00011528705363161862, 0.04787635803222656, 0.33827340602874756, 0.010899216867983341, -0.060263585299253464, -0.09714461863040924, 0.00568237854167819, -0.04947908595204353, 0.24770934879779816, -0.01704614795744419, 0.1799534261226654, -0.046585813164711, -0.12438414245843887, 0.34218621253967285, -0.09060172736644745, 0.3016492426395416, 0.2360055297613144, 0.08285816758871078, 0.48731791973114014, 0.03093196265399456, 0.6077609658241272, -0.07731642574071884, -0.26935967803001404, 0.5535908341407776, 0.34719642996788025, -0.3623807728290558, 0.308640718460083, -0.039705872535705566, -0.2690623104572296, 0.11965326219797134, 0.28641197085380554, 0.0299368966370821, 0.4240354299545288, -0.268858402967453, -0.09927437454462051, 0.15160129964351654, 0.16770566999912262, -0.17284439504146576, -0.14817406237125397, 0.05795560032129288, 0.25755730271339417, -0.45991018414497375, 0.23176832497119904, 0.31120240688323975, -0.11514782905578613, 0.15627172589302063, 0.3843083083629608, 0.003948332276195288, -0.21210823953151703, 0.05668773129582405, -0.357463002204895, 0.4364015460014343, 0.0000956582443905063, -0.03212357312440872, 0.18041585385799408, -0.002462501171976328, 0.48264744877815247, 0.21764446794986725, -0.22506119310855865, 0.18745800852775574, -0.12645193934440613, 0.12052581459283829, 0.09698353707790375, 0.21317441761493683, 0.032653067260980606, -0.24343346059322357, -0.17189423739910126, -0.2731763422489166, 0.2743755877017975, 0.34536445140838623, -0.17472243309020996, 0.240558460354805, 0.05115565285086632, -0.09853803366422653, 0.21413534879684448, -0.01702660694718361, 0.002231599297374487, 0.15822666883468628, -0.13248808681964874, -0.33098655939102173, 0.1595119684934616, -0.11746682971715927, 0.38870108127593994, -0.10719725489616394, -0.40329188108444214, -0.3672437369823456, -0.4772164523601532, 0.04258296266198158, -0.20664335787296295, 0.1653784066438675, -0.09996572881937027, 0.17632079124450684, -0.05194434896111488, 0.249445378780365, -0.20047779381275177, -0.13505929708480835, -0.015427717939019203, 0.3069826364517212, -0.138139545917511, -0.11662692576646805, -0.15019597113132477, -0.11737410724163055, -0.12035443633794785, -0.028892800211906433, 0.0037052445113658905, -0.09388666599988937, -0.3903513252735138, -0.22690922021865845, -0.1927281767129898, 0.40009692311286926, -0.2094472199678421, 0.010631517507135868, 0.03616619482636452, -0.4328801929950714, -0.17511141300201416, 0.30840906500816345, -0.5105226039886475, -0.4189545810222626, -0.338699072599411, 0.16220474243164062, -0.23925542831420898, -0.15903280675411224, -0.2101457118988037, -0.15391716361045837, -0.025781987234950066, -0.2977166175842285, -0.06793704628944397, -0.4593387842178345, 0.06612248718738556, -0.37615400552749634, -0.08899451047182083, 0.1171998381614685, -0.460056871175766, -0.2082938700914383, -0.039674174040555954, -0.1002499908208847, 0.21234068274497986, 0.033453065901994705, -0.13829025626182556, 0.04763484001159668, -0.13627733290195465, 0.23074281215667725, -0.02428532764315605, -0.05946211516857147, -0.272276908159256, -0.2320830523967743, -0.04425137862563133, -0.03885995224118233, 0.0928504467010498, -0.31695082783699036, 0.03434449061751366, -0.07495131343603134, 0.4046429395675659, 0.23132407665252686, -0.1184694766998291, 0.2528601586818695, -0.21519117057323456, -0.22505821287631989, 0.4088800847530365, 0.06684186309576035, 0.0973031222820282, -0.23978064954280853, 0.06920233368873596, -0.21931055188179016, 0.1449567824602127, -0.16284888982772827, -0.0161281730979681, -0.004173459950834513, 0.5557933449745178, 0.011431708000600338, -0.08562840521335602, -0.050571925938129425, 0.01895762048661709, 0.22291779518127441, -0.1853208839893341, 0.19592586159706116, -0.37701770663261414, 0.05082029104232788, -0.273228257894516, 0.4390932321548462, -0.23997032642364502, -0.2291375696659088, 0.06914407014846802, -0.07095522433519363, -0.16861365735530853, 0.4575914442539215, -0.12532947957515717, 0.08456647396087646, 0.28475382924079895, 0.1448565125465393, 0.1470870077610016, 0.49994421005249023, -0.2506100535392761, -0.45304742455482483, -0.15841977298259735, 0.009718084707856178, 0.18617795407772064, -0.03563085198402405, -0.08804646134376526, -0.056874122470617294, 0.010895508341491222, 0.26530489325523376, -0.26520276069641113, 0.12354887276887894, 0.17384293675422668, -0.39295804500579834, -0.018114378675818443, -0.17428000271320343, 0.08774389326572418, -0.033560384064912796, 0.8921661376953125, 0.16879574954509735, 0.40380147099494934, 0.16025595366954803, -0.15179719030857086, 0.1315702646970749, -0.01351240836083889, 0.12694613635540009, 0.1719961017370224, 0.157927006483078, 0.035809747874736786, 0.3080630302429199, -0.16347166895866394, -0.08712563663721085, 0.00409840838983655, 0.08150823414325714, 0.34807878732681274, 0.09090179204940796, 0.13216733932495117, 0.09513192623853683, -0.4533490836620331, 0.1085839569568634, 0.28759080171585083, -0.2044246345758438, 0.3006252348423004, -0.0027226791717112064, -0.3478747308254242, 0.09680654108524323, 0.06877969205379486, -0.10363321751356125, 0.23124536871910095, 0.14646919071674347, 0.6274522542953491, -0.05396184325218201, 0.2600465714931488, 0.12081527709960938, -0.17547330260276794, -0.1735767126083374, -0.03450862690806389, 0.17548933625221252, -0.3216804265975952, 0.24726909399032593, -0.2865735590457916, -0.03308448567986488, -0.18379884958267212, -0.6172889471054077, -0.24672837555408478, -0.0972244143486023, -0.08636373281478882, 0.23979537189006805, 0.1439489722251892, 0.049482330679893494, 0.1944272369146347, -0.13631629943847656, 0.13183137774467468, -0.393923282623291, -0.0659630075097084, -0.16600142419338226, -0.41101494431495667, 0.03423374518752098, 0.07891111075878143, -0.12802313268184662, -0.08261863142251968, -0.38248395919799805, 0.09803827852010727, 0.023292170837521553, -0.41787222027778625, 0.1835722178220749, -0.2367059290409088, 0.2517472803592682, 0.15669889748096466, 0.046433161944150925, -0.13016609847545624, -0.18292801082134247, 0.28201183676719666, -0.27332833409309387, -0.31711092591285706, 0.24813039600849152, -0.19685089588165283, -0.025536181405186653, -0.04235493391752243, 0.0016367583302780986, -0.43151435256004333, -0.12709695100784302, 0.006396991200745106, 0.041153956204652786, 0.08137322217226028, 0.4008948504924774, 0.3015107214450836, 0.25641918182373047, -0.06941314041614532, -0.051686953753232956, 0.20515069365501404, 0.17295843362808228, 0.4019707143306732, -0.04533388465642929, -0.24625004827976227, 0.19888301193714142, -0.21107220649719238, -0.1946013867855072, -0.04317769035696983, -0.2507733404636383, -0.41142526268959045, 0.006034810096025467, 0.5550527572631836, -0.04975355044007301, -0.06974199414253235, 0.34150469303131104, 0.06409751623868942, 0.020394280552864075, 0.10280127078294754, -0.05755043402314186, -0.42462918162345886, 0.3636840879917145, 0.19507372379302979, 0.020997488871216774, -0.04709435626864433, -0.09102966636419296, 0.534406840801239, -0.3050164580345154, 0.019694548100233078, 0.3806324601173401, -0.316595196723938, 0.008518294431269169, -0.007504639215767384, -0.3508321940898895, 0.0020641121082007885, -0.2164054661989212, -0.2069069892168045, 0.11515280604362488, -0.20210252702236176, -0.19994722306728363, -0.2324254810810089, -0.00818003062158823, -0.14882643520832062, -0.24503080546855927, 0.1605924665927887, 0.17233806848526, 0.20589083433151245, -0.14721035957336426, -0.03596979379653931, -0.08034871518611908, -0.13512298464775085, 0.14141157269477844, 0.09918288886547089, -0.2391822636127472, 0.022170761600136757, 0.37374788522720337, -0.47153526544570923, -0.18653415143489838, 0.2090766578912735, 0.39116746187210083, -0.0005613412940874696, 0.2155107706785202, -0.10193738341331482, 0.030224306508898735, -0.059765029698610306, 0.4634602963924408, 0.3330000936985016, -0.0764131173491478, 0.2497057318687439, 0.10639497637748718, -0.19253358244895935, -0.4660726487636566, -0.15306417644023895, -0.38201281428337097, 0.04671481251716614, -0.39567306637763977, -0.09915699809789658, 0.1917421668767929, 0.30780988931655884, 0.35427865386009216, -0.052416447550058365, 0.2326924204826355, -0.3907877206802368, -0.5037890076637268, -0.10832297056913376, -0.18566131591796875, 0.07354182004928589, 0.40673303604125977, -0.05116119235754013, 0.20219813287258148, -0.05224992707371712, -0.1719224601984024, -0.0551195926964283, 0.2742958962917328, -0.02635563164949417, -0.11140347272157669, -0.04322124272584915, -0.2032579779624939, -0.1201070100069046, 0.4974152147769928, 0.3016117513179779, 0.4307507574558258, -0.5198165774345398, -0.23466478288173676, 0.15395404398441315, 0.27330464124679565, 0.028219863772392273, -0.2632872462272644, 0.16595247387886047, -0.5596688985824585, -0.17249055206775665, 0.2411608248949051, -0.1367807388305664, 0.3588768243789673, 0.09730657190084457, -0.0596349723637104, 0.20254679024219513, 0.5289086103439331, 0.024894744157791138, 0.0749857947230339, -0.24590706825256348, 0.4537619650363922, -0.09831412881612778, 0.0699349045753479, 0.04367368668317795, 0.8350266814231873, 0.12485022097826004, 0.030507158488035202, 0.6416879892349243, -0.21586072444915771, 0.25376588106155396, 0.09450489282608032, 0.1731383055448532, -0.2961381673812866, -0.10710673779249191, -0.10754764825105667, -0.24129711091518402, 0.3092471659183502, -0.5395002961158752, -0.1265200525522232, -0.01607518456876278, -0.06288199126720428, 0.13114333152770996, 0.3468612730503082, -0.4278757572174072, 0.09382018446922302, -0.03303356468677521, -0.20387227833271027, 0.11214424669742584, -0.21382126212120056, 0.39665982127189636, -0.2033080756664276, 0.06484310328960419, -0.2075207680463791, -0.09532423317432404, -0.3254089653491974, 0.2572101354598999, -0.384383887052536, 0.072365403175354, 0.4309493601322174, -0.31361955404281616, 0.08976032584905624, 0.14767418801784515, -0.10389663279056549, -0.3308495283126831, -0.13816452026367188, 0.13799549639225006, 0.2811756730079651, -0.16024965047836304, -0.03305789828300476, -0.07589375972747803, 0.45114973187446594, -0.25675588846206665, -0.2407039999961853, 0.3248717784881592, -0.17244428396224976, -0.025204293429851532, 0.1689881682395935, 0.21269826591014862, 0.3129541575908661, -0.06340549141168594, 0.047448817640542984, -0.19498136639595032, 0.4568566381931305, -0.18302059173583984, 0.08389714360237122, 0.05129004642367363, -0.15371745824813843, 0.13181209564208984, -0.067240409553051, -0.0820615142583847, -0.09339345991611481, 0.14226508140563965, 0.10500385612249374, 0.16777515411376953, 0.4702974855899811, 0.09164370596408844, -0.075658418238163, -0.06084875389933586, 0.1444067358970642, -0.18363125622272491, -0.4542884826660156, 0.09266829490661621, -0.059140644967556, 0.03390471264719963, 0.0791589692234993, 0.5761153697967529, 0.2180941104888916, 0.09877409785985947, -0.01834040880203247, -0.334614098072052, -0.004029210656881332, 0.12695297598838806, 0.1444273293018341, -0.28000175952911377, 0.15899989008903503, 0.4735197126865387, 0.308824360370636, -0.29217126965522766, -0.2072618454694748, 0.13440755009651184, 0.01393075194209814, 0.11143751442432404, -0.19843558967113495, -0.034479331225156784, 0.1641913205385208, -0.053016018122434616, 0.18027685582637787, 0.17622235417366028, 0.029903139919042587, -0.1960490196943283, -0.2763882279396057, 0.1646423190832138, 0.026245273649692535, 0.08284490555524826, 0.22776471078395844, -0.014227841980755329, 0.12884722650051117, 0.14008943736553192, -0.0335572324693203, -0.023217421025037766, -0.3132748603820801, 0.07495008409023285, 0.46862152218818665, -0.0035452446900308132, -0.038327593356370926, 0.1672217845916748, -0.18216533958911896, 0.4613613486289978, 0.12798209488391876, 0.196250781416893, -0.004873585421591997, 0.14136680960655212, -0.07388248294591904, -0.05002116784453392, -0.5202826857566833, -0.09694436192512512, 0.30027011036872864, -0.532829761505127, 0.0007334224646911025, -0.4318068027496338, -0.006455575115978718, 0.4072589874267578, -0.3208836019039154, 0.0898786336183548, 0.40285995602607727, 0.1345391571521759, -0.2542099058628082, 0.0681832879781723, 0.0502430722117424, -0.004267516080290079, -0.11726614087820053, 0.20478153228759766, 0.10543900728225708, 0.0983838140964508, 0.1125994324684143, 0.21779389679431915, 0.09511815756559372, 0.40876588225364685, 0.0784459188580513, 0.310832679271698, -0.21993790566921234, 0.3216117322444916, 0.3078158497810364, -0.08268295228481293, 0.0700756311416626, 0.04918500408530235, -0.24887654185295105, 0.19715580344200134, -0.14394167065620422, -0.013207124546170235, 0.31239745020866394, -0.2327861487865448, 0.0940205305814743, -0.09648668020963669, 0.17341604828834534, -0.20892053842544556, 0.3062177300453186, 0.49252501130104065, -0.059741679579019547, -0.09543141722679138, -0.07269489765167236, 0.4616530239582062, -0.09854547679424286, 0.2110268622636795, 0.27017420530319214, -0.004065398592501879, -0.03814750909805298, 0.02334686927497387, 0.03644517436623573, -0.18816660344600677, 0.2913280725479126, 0.2702760696411133, -0.25668865442276, -0.2534957826137543, 0.1303732991218567, 0.08965688198804855, 0.2583935260772705, -0.18121804296970367, 0.0337643064558506, -0.0694994106888771, -0.22662177681922913, -0.3217250108718872, 0.3388972878456116, 0.5313590168952942, 0.37964877486228943, -0.19520339369773865, -0.32178837060928345, -0.18601466715335846, -0.07299162447452545, 0.11963207274675369, -0.13089576363563538, 0.22203317284584045, 0.6603367924690247, 0.11936727166175842, 0.1698143482208252, -0.12563355267047882, 0.18396130204200745, -0.030758794397115707, 0.05630122497677803, -0.1492139995098114, 0.22866006195545197, -0.14679448306560516, -0.24530673027038574, -0.46568456292152405, 0.12320583313703537, -0.05551009252667427, 0.39849546551704407, 0.074323371052742, 0.08254706114530563, -0.1017228439450264, 0.030050721019506454, 0.05634850263595581, 0.18427331745624542, 0.34459686279296875, 0.40531474351882935, 0.3979039490222931, -0.11089004576206207, -0.10444360226392746, -0.25906428694725037, 0.4423465430736542, -0.24954190850257874, 0.08958184719085693, 0.13166065514087677, -0.008886776864528656, -0.1571730673313141, 0.3125433325767517, -0.015455898828804493, 0.24764199554920197, -0.07971327006816864, -0.08511964976787567, -0.3925025463104248, -0.2460026741027832, 0.1071518063545227, -0.20532813668251038, -0.018297476693987846, -0.14190562069416046, 0.3042200207710266, -0.6519697308540344, 0.1224004477262497, -0.27820998430252075, -0.25642630457878113, 0.07774966210126877, 0.045395612716674805, 0.6552131772041321, -0.02190397121012211, 0.39615532755851746, 0.1705242544412613, -0.027097195386886597, -0.07992672175168991, -0.3554827570915222, -0.08622785657644272, 0.2046663761138916, -0.06408540904521942, 0.12381408363580704, 0.1020912230014801, -0.0947147011756897, -0.32308822870254517, 0.4325675070285797, 0.051791053265333176, -0.0371953509747982, -0.1337209790945053, 0.13919861614704132, 0.06386625021696091, 0.08631108701229095, -0.11778441816568375, -0.046326588839292526, -0.1643604338169098, -0.03789548575878143, -0.32743439078330994, -0.5092481970787048, 0.30030879378318787, -0.42329204082489014, -0.3363006114959717, 0.06681080907583237, 0.18471889197826385, -0.22125205397605896, -0.15294575691223145, -0.38108402490615845, 0.09958750754594803, 0.3112213611602783, 0.13132576644420624, -0.30762630701065063, 0.20137713849544525, -0.024177774786949158, 0.0009545962093397975, -0.012242218479514122, 0.44741323590278625, -0.14610086381435394, 0.05423529073596001, -0.12151817232370377, -0.0445525124669075 ]
https://github.com/huggingface/datasets/issues/1781
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
Installing datasets installs pyarrow>=0.17.1 so in theory it doesn't matter which version of pyarrow colab has by default (which is currently pyarrow 0.14.1). Also now the colab runtime refresh the pyarrow version automatically after the update from pip (previously you needed to restart your runtime). I guess what happened is that Colab didn't refresh pyarrow for some reason, and the AttributeError was raised *before* the pyarrow version check from `datasets` at https://github.com/huggingface/datasets/blob/master/src/datasets/__init__.py#L60
I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png)
72
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png) Installing datasets installs pyarrow>=0.17.1 so in theory it doesn't matter which version of pyarrow colab has by default (which is currently pyarrow 0.14.1). Also now the colab runtime refresh the pyarrow version automatically after the update from pip (previously you needed to restart your runtime). I guess what happened is that Colab didn't refresh pyarrow for some reason, and the AttributeError was raised *before* the pyarrow version check from `datasets` at https://github.com/huggingface/datasets/blob/master/src/datasets/__init__.py#L60
[ -0.41816309094429016, 0.15043902397155762, -0.019076785072684288, 0.15334860980510712, 0.134226456284523, -0.02369331195950508, 0.2542451322078705, 0.24548973143100739, -0.3241707384586334, 0.11164002120494843, 0.0381205789744854, 0.37743136286735535, -0.08131333440542221, -0.047862280160188675, -0.01188680063933134, 0.041886985301971436, 0.30278047919273376, 0.34092825651168823, 0.20719014108181, 0.02591060660779476, -0.23427638411521912, 0.09097223728895187, -0.3210459053516388, 0.2035175859928131, -0.41183510422706604, 0.22036877274513245, -0.017481312155723572, -0.17000260949134827, -0.3172970116138458, -0.6792120933532715, 0.5830790400505066, -0.23232188820838928, 0.2768801152706146, 0.14258544147014618, -0.00012093278928659856, -0.02091658115386963, 0.3580548167228699, 0.10246508568525314, -0.28933653235435486, -0.1401558220386505, -0.15110409259796143, -0.18668101727962494, 0.3294048309326172, 0.013839450664818287, 0.2098608911037445, -0.2561303973197937, -0.013452901504933834, 0.21814218163490295, -0.08072727173566818, 0.274679034948349, 0.16976608335971832, 0.0567857027053833, 0.4970570504665375, 0.0424644835293293, 0.3831530213356018, -0.07101915776729584, -0.12619948387145996, 0.5384055972099304, 0.2573762834072113, -0.3175971210002899, 0.32736217975616455, 0.09556931257247925, -0.30029353499412537, 0.24530857801437378, 0.33841776847839355, 0.026110881939530373, 0.3156372308731079, -0.19505585730075836, -0.008003036491572857, 0.23268762230873108, 0.4724448025226593, -0.20557864010334015, -0.3742716610431671, -0.14508618414402008, 0.24624334275722504, -0.350483775138855, 0.29556387662887573, 0.18235795199871063, 0.013468426652252674, 0.14899533987045288, 0.14975391328334808, -0.018453361466526985, -0.06698184460401535, 0.07979805767536163, -0.3698357939720154, 0.4304921627044678, -0.11515706032514572, 0.09487296640872955, 0.11713153123855591, -0.06679261475801468, 0.5531333684921265, -0.035331208258867264, -0.2178267240524292, 0.2489420771598816, -0.23379242420196533, 0.10790503770112991, 0.0849384143948555, 0.38369593024253845, 0.01914334110915661, -0.16348056495189667, -0.2799133360385895, -0.31505128741264343, 0.04342995584011078, 0.3021692931652069, -0.031421441584825516, 0.2702072858810425, 0.07229618728160858, -0.0455675832927227, 0.23698024451732635, 0.01302883867174387, -0.03439847752451897, 0.11623693257570267, -0.1001424789428711, -0.3603304624557495, 0.2520414888858795, -0.057450760155916214, 0.6233629584312439, -0.23488757014274597, -0.4208136796951294, -0.2791057825088501, -0.4959395229816437, -0.12938790023326874, -0.14017100632190704, 0.16679616272449493, -0.29775726795196533, 0.25984489917755127, -0.14327451586723328, 0.10833539813756943, -0.2539905309677124, -0.18618124723434448, -0.06465163081884384, 0.15688994526863098, -0.14106275141239166, -0.10382074862718582, -0.07832152396440506, -0.19582214951515198, -0.003899147268384695, 0.060115963220596313, -0.12462349981069565, -0.068477101624012, -0.2699032425880432, -0.3182121813297272, -0.1636875569820404, 0.4307083785533905, -0.23433759808540344, 0.1612662672996521, 0.11761508136987686, -0.5139938592910767, -0.16879627108573914, 0.28216034173965454, -0.5118231177330017, -0.4434722363948822, -0.20829324424266815, 0.09986831247806549, -0.3005477786064148, -0.19365134835243225, -0.4257192015647888, -0.09903592616319656, 0.08824857324361801, -0.48112645745277405, -0.02428518235683441, -0.5677355527877808, 0.009443584829568863, -0.3748413324356079, -0.03117547743022442, 0.2954774796962738, -0.6035416126251221, -0.1913347989320755, -0.11963070929050446, -0.1438702940940857, 0.14222373068332672, -0.032059814780950546, -0.13554996252059937, 0.08777152746915817, -0.06918454170227051, 0.00529717979952693, 0.09780573099851608, -0.20194238424301147, -0.4289777874946594, -0.12813258171081543, 0.03915465250611305, 0.08905847370624542, 0.06299014389514923, -0.1787741482257843, 0.07338277250528336, -0.07386443018913269, 0.3456239700317383, 0.21203385293483734, -0.16009315848350525, 0.07668209820985794, -0.09463156759738922, -0.19602179527282715, 0.3323121666908264, 0.13537602126598358, 0.07914659380912781, -0.0963713750243187, 0.10511810332536697, -0.15281693637371063, 0.10424855351448059, -0.0824316069483757, -0.02286781184375286, 0.015180372633039951, 0.5127728581428528, 0.01297900639474392, -0.11648564785718918, -0.16115348041057587, -0.18592830002307892, 0.2242622673511505, 0.0850021168589592, -0.059883031994104385, -0.42057573795318604, -0.18365703523159027, -0.2416522055864334, 0.2941112816333771, -0.18845589458942413, -0.25944194197654724, -0.00572504848241806, 0.12021638453006744, -0.15774671733379364, 0.3912131190299988, -0.14060746133327484, 0.314197838306427, 0.06999391317367554, 0.24493542313575745, -0.07930298894643784, 0.36499345302581787, -0.16731396317481995, -0.3892545998096466, -0.15349891781806946, 0.046194128692150116, 0.13880984485149384, -0.04499402642250061, -0.11339841783046722, 0.10983453691005707, -0.009377140551805496, 0.2966071665287018, -0.22146159410476685, 0.15785670280456543, 0.12644334137439728, -0.18219158053398132, 0.031081009656190872, -0.3086501955986023, -0.004707877989858389, 0.002635273616760969, 0.6934754848480225, 0.15617531538009644, 0.24251317977905273, 0.18733100593090057, -0.19397903978824615, 0.07101722061634064, 0.04523850232362747, 0.1769445836544037, 0.033825457096099854, 0.08479996025562286, -0.026679752394557, 0.2097431868314743, 0.02418057806789875, 0.01529520470649004, -0.12462807446718216, 0.15604102611541748, 0.36521121859550476, 0.14918947219848633, 0.15324999392032623, -0.018670056015253067, -0.46016228199005127, 0.0689493864774704, 0.383127897977829, 0.13045139610767365, 0.4296893775463104, 0.033359088003635406, -0.3057476580142975, 0.04278649017214775, -0.07289823144674301, 0.0013502100482583046, 0.06720477342605591, 0.18508459627628326, 0.5060133337974548, -0.020158465951681137, 0.2183595448732376, 0.2089824080467224, -0.1588149070739746, -0.3101998269557953, 0.041130319237709045, 0.37397924065589905, -0.3386664092540741, 0.2943226993083954, -0.3655644655227661, -0.1117810308933258, -0.19001182913780212, -0.6143971085548401, -0.22981561720371246, -0.1397647261619568, -0.183711439371109, 0.32033801078796387, 0.20368129014968872, 0.14847111701965332, 0.062382690608501434, -0.13522084057331085, 0.041902054101228714, -0.43031179904937744, 0.06903611123561859, -0.17851004004478455, -0.2635134160518646, -0.00046964696957729757, 0.08003827929496765, -0.14336873590946198, 0.010811668820679188, -0.4225103259086609, 0.08281492441892624, -0.01529462169855833, -0.3495784103870392, 0.0856359452009201, -0.327542781829834, 0.44314274191856384, 0.2561691999435425, 0.15181460976600647, -0.24412082135677338, -0.133664071559906, 0.33651357889175415, -0.21758489310741425, -0.28055864572525024, -0.080427385866642, -0.1813366860151291, -0.08587758988142014, 0.0960068553686142, -0.08899389207363129, -0.43243443965911865, -0.11478446424007416, 0.023935467004776, 0.11663089692592621, 0.038481391966342926, 0.3249639868736267, 0.26700571179389954, 0.12280873209238052, -0.038152456283569336, 0.02722419798374176, 0.060403384268283844, 0.014572840183973312, 0.3432312309741974, -0.043967533856630325, -0.09172032028436661, 0.24188169836997986, -0.18619538843631744, -0.15789148211479187, 0.09884075820446014, -0.39210328459739685, -0.6064205169677734, -0.10588208585977554, 0.4493831694126129, -0.08048812299966812, 0.028575152158737183, 0.318355530500412, 0.21039974689483643, 0.058882515877485275, -0.0014325055526569486, -0.13036350905895233, -0.5016966462135315, 0.2687033712863922, 0.195123091340065, 0.03928323835134506, 0.15928532183170319, -0.11933235824108124, 0.5885623097419739, -0.11808338761329651, -0.130707249045372, 0.19673806428909302, -0.27807682752609253, 0.25778478384017944, 0.0037792231887578964, -0.3999600112438202, 0.00010863230272661895, -0.18382099270820618, -0.1722363978624344, 0.05615399405360222, -0.08897421509027481, 0.020605972036719322, -0.177657350897789, -0.10408736765384674, -0.2045784443616867, -0.16499191522598267, 0.04859882593154907, 0.14846311509609222, 0.2544666826725006, 0.01242066826671362, 0.014621197246015072, -0.19893009960651398, -0.12703388929367065, -0.013311509042978287, 0.31794416904449463, -0.10335767269134521, 0.09752218425273895, 0.21118301153182983, -0.3801305592060089, -0.19201450049877167, 0.3192763328552246, 0.3189559876918793, 0.07806938141584396, 0.21480482816696167, 0.011507908813655376, 0.011720387265086174, -0.013602678664028645, 0.37729963660240173, 0.12151734530925751, -0.0888897031545639, 0.14946173131465912, 0.030708931386470795, -0.2940438389778137, -0.32768020033836365, -0.07797074317932129, -0.19993114471435547, -0.03219061344861984, -0.2915950119495392, -0.11491432040929794, 0.08003710955381393, 0.4781748950481415, 0.48652827739715576, 0.0007785717025399208, 0.2729392349720001, -0.2663768529891968, -0.42039012908935547, -0.10458538681268692, -0.13712115585803986, -0.08413301408290863, 0.24716544151306152, -0.009055385366082191, 0.3496670722961426, -0.26898208260536194, -0.12797708809375763, 0.0009069433435797691, 0.28371158242225647, 0.10026601701974869, -0.014521370641887188, 0.03288514167070389, -0.06777381896972656, -0.09914228320121765, 0.6560020446777344, 0.5683664083480835, 0.22286736965179443, -0.5871342420578003, -0.3114338517189026, 0.26154574751853943, 0.30813083052635193, 0.03853989765048027, -0.36543211340904236, 0.1598137617111206, -0.4349404573440552, -0.20393581688404083, 0.11811329424381256, -0.0032239712309092283, 0.3611798882484436, 0.25685808062553406, -0.2989944815635681, -0.17090556025505066, 0.6227720975875854, 0.18703871965408325, -0.04978330060839653, -0.01204273384064436, 0.49893873929977417, -0.10867971926927567, 0.08676905930042267, -0.07086334377527237, 0.7722871899604797, 0.21616162359714508, -0.016466645523905754, 0.5215464234352112, -0.037514448165893555, 0.39845168590545654, 0.0963158831000328, 0.20345880091190338, -0.30842480063438416, -0.2251472920179367, -0.177180215716362, -0.23831391334533691, 0.43703693151474, -0.3925252854824066, -0.12048192322254181, 0.1257023811340332, 0.10995469242334366, 0.16742923855781555, 0.29345956444740295, -0.2357233464717865, -0.09708448499441147, 0.04078494384884834, -0.2799018621444702, 0.07030981034040451, -0.20626604557037354, 0.452102929353714, -0.23941875994205475, 0.19165529310703278, -0.1744392365217209, -0.1181282252073288, -0.326903373003006, 0.027201658114790916, -0.42233872413635254, 0.0469856858253479, 0.34874072670936584, -0.34652990102767944, 0.14123313128948212, 0.3082630932331085, 0.14900287985801697, -0.11056090146303177, -0.14299635589122772, 0.19253958761692047, 0.12035784125328064, -0.08307375013828278, -0.08768734335899353, -0.1431593894958496, 0.45850870013237, -0.08697022497653961, -0.29140621423721313, 0.11814899742603302, -0.17575161159038544, -0.11699703335762024, 0.19278351962566376, 0.17803888022899628, 0.18034711480140686, -0.1606607288122177, -0.008434153161942959, -0.20925556123256683, 0.41609930992126465, -0.20628735423088074, 0.0337354801595211, 0.029154174029827118, -0.030818544328212738, 0.25892987847328186, -0.04156414791941643, -0.20234347879886627, -0.23836210370063782, 0.22516953945159912, 0.05389062687754631, 0.22073078155517578, 0.5160396099090576, 0.004514251369982958, -0.14240606129169464, -0.025994332507252693, 0.03684209659695625, -0.20405234396457672, -0.4193037450313568, 0.09430893510580063, -0.047261882573366165, 0.17374904453754425, 0.14844799041748047, 0.5579468011856079, 0.1887618601322174, 0.07398362457752228, -0.012034349143505096, -0.49983295798301697, -0.017501533031463623, 0.2965070605278015, 0.17054656147956848, -0.14023105800151825, 0.2619222402572632, 0.31618285179138184, 0.14629852771759033, -0.20808854699134827, -0.16210031509399414, 0.11141233146190643, 0.08754829317331314, 0.2187369167804718, -0.10144305229187012, 0.18576425313949585, 0.27125734090805054, -0.11867983639240265, 0.08826346695423126, 0.11075706034898758, 0.02323782444000244, -0.16796988248825073, -0.15518003702163696, 0.19523069262504578, 0.07908030599355698, -0.030985042452812195, 0.14436642825603485, -0.05068409815430641, 0.05141058191657066, -0.016651833429932594, 0.12291372567415237, 0.14353568851947784, -0.2517282962799072, 0.0204632505774498, 0.34471386671066284, 0.10181402415037155, -0.10644347220659256, 0.25781580805778503, -0.16466155648231506, 0.3178761899471283, 0.11871708929538727, 0.21428091824054718, 0.04412417486310005, 0.16591089963912964, -0.049374330788850784, -0.03691265359520912, -0.39809149503707886, -0.09095918387174606, 0.2025742083787918, -0.5558544397354126, 0.06940684467554092, -0.2835453450679779, 0.23896296322345734, 0.4619518518447876, -0.20674701035022736, 0.036185018718242645, 0.48774459958076477, 0.07472281157970428, -0.27188125252723694, 0.11394193023443222, 0.2718527615070343, 0.10405047237873077, 0.008456234820187092, 0.32266944646835327, 0.19101645052433014, 0.23183496296405792, 0.005049704108387232, 0.28712648153305054, 0.2534639537334442, 0.30624690651893616, 0.2237187922000885, 0.34085613489151, -0.11838600784540176, 0.3203243911266327, 0.4664040803909302, 0.10852845758199692, -0.02239198423922062, 0.2567117214202881, -0.21223203837871552, 0.21282881498336792, 0.0245733093470335, -0.08169939368963242, 0.19816644489765167, -0.43612295389175415, 0.31413042545318604, -0.06388963758945465, 0.1463700532913208, -0.27707287669181824, 0.3593444228172302, 0.42061761021614075, -0.1748628318309784, -0.09724975377321243, -0.10612981021404266, 0.4280223250389099, -0.10158122330904007, 0.03804132714867592, 0.22548149526119232, -0.07109220325946808, 0.07657786458730698, 0.031019674614071846, -0.00999903492629528, -0.2566737234592438, 0.31533583998680115, 0.19514016807079315, -0.31577667593955994, -0.4515140950679779, 0.16600196063518524, 0.15376146137714386, 0.2545729875564575, -0.08003857731819153, 0.06878223270177841, -0.05596495792269707, -0.15406912565231323, -0.13222631812095642, 0.5119330883026123, 0.6078242659568787, 0.33239370584487915, -0.07309374958276749, -0.23134493827819824, -0.3119514584541321, -0.028571926057338715, 0.09801924228668213, -0.07540550082921982, -0.06352337449789047, 0.36349326372146606, 0.18493275344371796, 0.17776700854301453, -0.10573998838663101, 0.26838481426239014, -0.11546099931001663, -0.0876854807138443, -0.3277669847011566, 0.3378288745880127, -0.0771917924284935, -0.15047837793827057, -0.29737478494644165, 0.266649067401886, 0.00638304278254509, 0.27591395378112793, 0.24822254478931427, 0.069019615650177, -0.12533947825431824, -0.025636833161115646, 0.00888098031282425, 0.11342224478721619, 0.30148372054100037, 0.5731633901596069, 0.34232160449028015, -0.04886246472597122, -0.03226528689265251, -0.5246587991714478, 0.2737067937850952, -0.3799615502357483, -0.01269100233912468, 0.12210831791162491, -0.11021009832620621, -0.19722247123718262, 0.40665367245674133, 0.10940761119127274, 0.1486450880765915, 0.04487663134932518, -0.05503490939736366, -0.32515233755111694, -0.3328719735145569, -0.05180538445711136, -0.2736152410507202, -0.047076549381017685, -0.2848767340183258, 0.2699878215789795, -0.6724929809570312, -0.00983788538724184, -0.16482214629650116, -0.19485250115394592, 0.13395215570926666, -0.23294448852539062, 0.6932844519615173, -0.006091164890676737, 0.5324743986129761, 0.1539003849029541, 0.01895330473780632, -0.23979653418064117, -0.38657018542289734, -0.2289651483297348, 0.36948254704475403, -0.125331848859787, 0.3657653033733368, -0.12084189802408218, -0.009806953370571136, -0.29790231585502625, 0.4230303466320038, 0.04621047154068947, 0.05184750631451607, -0.18548895418643951, 0.1832357496023178, -0.06718461960554123, 0.07735505700111389, -0.11239859461784363, 0.033634036779403687, -0.09602117538452148, 0.20616891980171204, -0.32348376512527466, -0.5417071580886841, 0.4071376919746399, -0.44719940423965454, -0.2611277103424072, -0.13826921582221985, 0.15757645666599274, -0.02017710544168949, -0.29106995463371277, -0.5523154139518738, 0.17135000228881836, 0.39712610840797424, 0.08703453838825226, -0.3133404552936554, 0.17386974394321442, -0.010651975870132446, 0.06553786247968674, -0.07474897801876068, 0.5040859580039978, -0.3182089924812317, -0.01509823463857174, -0.07190071791410446, -0.010788566432893276 ]
https://github.com/huggingface/datasets/issues/1781
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import
Yes colab doesn’t reload preloaded library unless you restart the instance. Maybe we should move the check on top of the init
I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png)
22
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType' during import I'm using Colab. And suddenly this morning, there is this error. Have a look below! ![screenshot-colab research google com-2021 01 26-08-15-36](https://user-images.githubusercontent.com/45964869/105799890-fdaf3b80-5fae-11eb-8f06-11b65cdccc30.png) Yes colab doesn’t reload preloaded library unless you restart the instance. Maybe we should move the check on top of the init
[ -0.14016827940940857, -0.14400242269039154, -0.03869454190135002, 0.28774547576904297, 0.2086872160434723, -0.15753276646137238, 0.1334627866744995, 0.19260263442993164, -0.2747628688812256, 0.12113434076309204, -0.061840739101171494, 0.417987197637558, -0.14915840327739716, 0.037329718470573425, 0.17234745621681213, 0.22850401699543, 0.20476706326007843, 0.4507702589035034, 0.19331547617912292, -0.0358729213476181, -0.05633322149515152, 0.09113478660583496, -0.45177772641181946, -0.022768884897232056, -0.37407705187797546, 0.1728881150484085, 0.016811130568385124, -0.038599781692028046, -0.14388154447078705, -0.5761188864707947, 0.5109918117523193, -0.20189520716667175, 0.11765295267105103, 0.045630328357219696, -0.00011695973807945848, -0.021561838686466217, 0.2957274913787842, -0.08152776211500168, -0.18286776542663574, -0.030446957796812057, 0.10399913042783737, 0.08590938150882721, 0.4524632394313812, -0.038761258125305176, 0.13772597908973694, 0.0620981864631176, -0.14287252724170685, 0.2268146276473999, 0.04267163574695587, 0.2654351592063904, 0.2162778377532959, -0.024550722911953926, 0.2785426080226898, 0.24674862623214722, 0.3330405652523041, -0.033849749714136124, -0.10992500931024551, 0.5772958397865295, 0.3482236862182617, -0.31170251965522766, 0.22199705243110657, 0.07708044350147247, -0.3472619652748108, 0.12989984452724457, 0.5009498596191406, -0.15333665907382965, 0.2511967718601227, -0.1369098275899887, -0.07138990610837936, 0.085164874792099, 0.13084645569324493, -0.1807098686695099, -0.03854864090681076, -0.022681724280118942, 0.3367502689361572, -0.43579670786857605, 0.29433923959732056, 0.15365509688854218, 0.04828599467873573, 0.14068111777305603, 0.40383240580558777, -0.11592820286750793, -0.04920868203043938, 0.056170158088207245, -0.29774150252342224, 0.5725087523460388, -0.0990440770983696, 0.029804939404129982, 0.21478255093097687, 0.07761447876691818, 0.529927134513855, 0.13525715470314026, -0.31253719329833984, 0.21308735013008118, -0.18099723756313324, 0.05727441981434822, 0.15093761682510376, 0.3558632433414459, -0.20098042488098145, -0.06052851304411888, 0.04950583353638649, -0.16327783465385437, 0.1300145387649536, 0.3676854968070984, -0.1424962431192398, 0.3776363432407379, 0.1548835039138794, -0.09596531093120575, 0.3594742715358734, 0.1658724546432495, -0.2740071713924408, 0.1589539796113968, -0.2349023073911667, -0.33678022027015686, 0.4507615566253662, -0.08249399811029434, 0.37749096751213074, -0.2482679784297943, -0.31303760409355164, -0.2947343587875366, -0.5301499962806702, -0.13430316746234894, 0.11293885111808777, 0.23567186295986176, -0.2533470094203949, 0.26334717869758606, 0.02087007462978363, 0.06200776249170303, -0.33243048191070557, 0.014147217385470867, -0.042639102786779404, 0.3480694890022278, -0.2938273251056671, -0.013567361049354076, 0.03257705271244049, -0.25841081142425537, 0.16641449928283691, -0.1595476269721985, 0.25741198658943176, -0.39065754413604736, -0.24371056258678436, -0.23000140488147736, -0.13250374794006348, 0.48010972142219543, -0.26563599705696106, -0.11749108135700226, 0.23004353046417236, -0.5545179843902588, -0.20621518790721893, 0.342090368270874, -0.48357048630714417, -0.44804298877716064, -0.0692138820886612, 0.1318645030260086, -0.2776026427745819, -0.1435282677412033, -0.17116960883140564, -0.3030308187007904, 0.0746002048254013, -0.43765705823898315, -0.05815083533525467, -0.44395604729652405, 0.02848132699728012, -0.39855828881263733, 0.023792222142219543, 0.19196024537086487, -0.45070943236351013, -0.1807585209608078, -0.06123773753643036, 0.02789236418902874, 0.17319995164871216, -0.030778735876083374, -0.2933192253112793, 0.013954048044979572, -0.20747438073158264, -0.08574997633695602, 0.0822572410106659, -0.10669662058353424, -0.2593955397605896, -0.2776187062263489, -0.050349947065114975, -0.0017587800975888968, 0.07501976937055588, -0.20231275260448456, -0.0372995063662529, -0.12829560041427612, 0.39374256134033203, 0.2658710479736328, -0.09607679396867752, 0.16711685061454773, -0.3055386543273926, -0.10478339344263077, 0.2357504963874817, -0.02433890290558338, 0.17188210785388947, -0.009885638952255249, 0.2645919919013977, -0.05804765596985817, 0.07032721489667892, -0.07379500567913055, -0.20177975296974182, -0.038465797901153564, 0.5287054777145386, -0.0025235814973711967, -0.04618510603904724, 0.023102592676877975, 0.09095476567745209, 0.1952456384897232, -0.09398746490478516, 0.014922047033905983, -0.39157018065452576, -0.012315191328525543, -0.358792781829834, 0.3929842412471771, -0.20137473940849304, -0.2269890159368515, 0.06559715420007706, 0.08143109083175659, -0.18327558040618896, 0.4519274830818176, -0.13343065977096558, 0.10857722163200378, -0.009923018515110016, 0.05542770400643349, 0.02716652862727642, 0.41769206523895264, -0.1555558145046234, -0.44237732887268066, -0.20662179589271545, 0.016465429216623306, 0.07049039006233215, -0.02767961099743843, -0.2374279648065567, 0.011732866987586021, 0.06114725396037102, 0.3287152647972107, -0.22979462146759033, 0.11341653019189835, 0.22551190853118896, -0.3239578306674957, -0.013035953976213932, -0.30539384484291077, 0.20599114894866943, -0.09753841906785965, 0.8549456596374512, 0.22749951481819153, 0.13246551156044006, 0.1277942955493927, -0.1672811508178711, -0.05128305405378342, 0.017408469691872597, 0.033929429948329926, 0.043818313628435135, 0.1433737576007843, 0.009995776228606701, 0.3170175850391388, 0.01563219726085663, 0.057569414377212524, -0.010497906245291233, -0.05327512323856354, 0.25390827655792236, 0.18520452082157135, 0.18309924006462097, -0.03928416594862938, -0.37256884574890137, 0.01531257014721632, 0.39278578758239746, -0.10422126948833466, 0.35374876856803894, -0.0030456953682005405, -0.4114218056201935, 0.000803682894911617, 0.10207247734069824, -0.10020794719457626, 0.14564459025859833, 0.17369787395000458, 0.8331609964370728, 0.09139972180128098, 0.29139769077301025, 0.09904427081346512, -0.37459346652030945, -0.22923584282398224, 0.08481002599000931, 0.1412864625453949, -0.3006944954395294, 0.19623346626758575, -0.2893143594264984, 0.021409614011645317, -0.16278600692749023, -0.530941903591156, -0.07382535934448242, -0.1034962609410286, -0.12438628822565079, 0.43798962235450745, 0.25601205229759216, 0.10481536388397217, 0.27436745166778564, -0.06797107309103012, -0.009114277549088001, -0.6351604461669922, -0.030366603285074234, -0.2195129096508026, -0.3502955436706543, -0.0034259078092873096, 0.2406204640865326, 0.02536514587700367, 0.08855429291725159, -0.2230233997106552, 0.1152777448296547, 0.19694884121418, -0.46307826042175293, 0.09642618894577026, -0.10847288370132446, 0.366842657327652, 0.03406107798218727, 0.1044907197356224, -0.1882036179304123, -0.23834271728992462, 0.21620923280715942, -0.2671552300453186, -0.2033492624759674, 0.05906836315989494, -0.07983604073524475, 0.005217994097620249, -0.04404829815030098, -0.11365178972482681, -0.2847565710544586, -0.16945649683475494, -0.12835361063480377, 0.12548530101776123, 0.033884886652231216, 0.3986448645591736, 0.32494643330574036, 0.20007602870464325, 0.1735302209854126, 0.07666922360658646, 0.1222376599907875, -0.09271520376205444, 0.32314977049827576, -0.034693002700805664, 0.023161977529525757, 0.29900190234184265, -0.30585864186286926, 0.02860330231487751, -0.12585322558879852, -0.4488917589187622, -0.5858914256095886, 0.014621607959270477, 0.27050507068634033, -0.04498232528567314, 0.022895440459251404, 0.3292979598045349, 0.1701294630765915, -0.009939483366906643, 0.10315965116024017, -0.18173235654830933, -0.39345887303352356, 0.28438031673431396, 0.24906203150749207, -0.04373853653669357, -0.039165038615465164, -0.22072061896324158, 0.5412877798080444, -0.4730604887008667, -0.034415289759635925, 0.3007102906703949, -0.04631294682621956, 0.12206678092479706, -0.09383781999349594, -0.34731507301330566, 0.002616042736917734, -0.1770341843366623, -0.3872642517089844, 0.16032110154628754, -0.1921955794095993, -0.1894461214542389, -0.25036537647247314, 0.027951303869485855, -0.29327496886253357, -0.21870523691177368, 0.13105975091457367, 0.010510766878724098, 0.025269579142332077, -0.09204407036304474, -0.0690297931432724, -0.0432196743786335, -0.10325900465250015, 0.010746683925390244, 0.29595983028411865, -0.22205521166324615, 0.020485196262598038, 0.3319788873195648, -0.6371981501579285, 0.011433827690780163, 0.07856888324022293, 0.2924869954586029, 0.016109777614474297, 0.28017863631248474, -0.12389862537384033, 0.058137647807598114, -0.11540106683969498, 0.25882843136787415, 0.26699039340019226, -0.12227247655391693, 0.1879420131444931, -0.15699610114097595, 0.08723476529121399, -0.46831998229026794, 0.0024566950742155313, -0.39101308584213257, -0.03719460219144821, -0.5108356475830078, -0.0007461764616891742, 0.301647424697876, 0.3158564865589142, 0.28305450081825256, -0.07469984889030457, 0.18456177413463593, -0.477310448884964, -0.49288859963417053, -0.4238077700138092, -0.1448921412229538, -0.034028127789497375, 0.27920305728912354, 0.01377827674150467, 0.1574697196483612, -0.1167866438627243, -0.24214299023151398, 0.07629889994859695, 0.36078548431396484, 0.12091358751058578, 0.1257699877023697, -0.04934367164969444, -0.25958451628685, -0.13504116237163544, 0.4870649576187134, 0.4426615834236145, 0.2938043773174286, -0.3357525169849396, -0.30800122022628784, 0.29277265071868896, 0.31074073910713196, 0.04349864274263382, -0.39419251680374146, 0.19877226650714874, -0.4934760332107544, -0.19119462370872498, 0.17311111092567444, 0.04400802031159401, 0.11279886215925217, 0.20550255477428436, -0.25964316725730896, -0.050558291375637054, 0.5910874605178833, 0.0034477077424526215, 0.03583564981818199, 0.06175361946225166, 0.3198781907558441, -0.13412503898143768, 0.24302980303764343, 0.22316795587539673, 0.965651273727417, 0.012014728970825672, -0.054654210805892944, 0.46029070019721985, 0.03271789848804474, 0.2713981866836548, -0.05149172618985176, 0.3049481213092804, -0.35734960436820984, -0.24580469727516174, -0.061177004128694534, -0.26532578468322754, 0.35605669021606445, -0.6037126779556274, -0.22247910499572754, -0.03006291761994362, 0.015170409344136715, -0.05679091066122055, 0.18702594935894012, -0.26154425740242004, -0.057511527091264725, -0.06943418830633163, -0.22461429238319397, 0.046108443289995193, -0.23754291236400604, 0.5531848073005676, -0.3224277198314667, 0.21208283305168152, -0.01562604121863842, -0.10247621685266495, -0.2567564845085144, 0.10741586238145828, -0.3843134939670563, 0.08194995671510696, 0.18266473710536957, -0.1906035989522934, -0.0020574135705828667, 0.20885859429836273, -0.04809717461466789, 0.02589520439505577, -0.0038109237793833017, 0.20533540844917297, 0.2875351011753082, -0.2509109675884247, -0.24063222110271454, -0.04123026132583618, 0.45449185371398926, -0.07396207749843597, -0.22320066392421722, 0.163298100233078, -0.14869624376296997, -0.12030959129333496, 0.20793451368808746, 0.24919432401657104, 0.2404615581035614, -0.06668004393577576, -0.11946450918912888, 0.050387050956487656, 0.19102269411087036, -0.23495763540267944, 0.06670484691858292, 0.05199596285820007, -0.15816837549209595, 0.1981559693813324, 0.1511419117450714, -0.30121049284935, -0.14049209654331207, 0.09682346880435944, 0.1954912394285202, 0.12711037695407867, 0.4786176383495331, 0.004655381664633751, -0.0343613363802433, -0.11829439550638199, 0.10163482278585434, -0.45662015676498413, -0.29949986934661865, 0.27557244896888733, 0.1854294240474701, -0.0628449097275734, 0.20358645915985107, 0.5781238079071045, 0.1484227180480957, 0.2833884656429291, 0.0016788770444691181, -0.41372933983802795, -0.06858725100755692, 0.14479276537895203, 0.11125350743532181, -0.06067023426294327, 0.20278500020503998, 0.584972083568573, 0.1415162980556488, -0.020885413512587547, -0.20941588282585144, 0.07603354752063751, -0.07957085967063904, 0.1131136417388916, -0.30749717354774475, 0.18674790859222412, 0.043092720210552216, -0.007370614912360907, 0.11489147692918777, 0.22193561494350433, 0.08259280025959015, -0.20040103793144226, -0.0969475582242012, 0.19310739636421204, 0.039728716015815735, 0.30055081844329834, 0.23248936235904694, -0.08332382142543793, 0.0887916088104248, 0.043192729353904724, 0.07074759900569916, -0.04547804966568947, -0.2720467448234558, 0.004417760297656059, 0.5248974561691284, -0.02931629866361618, -0.13948477804660797, 0.21387922763824463, -0.2634390592575073, 0.38210928440093994, 0.038878489285707474, -0.004083545878529549, -0.02158026210963726, 0.10260207206010818, 0.03954525291919708, -0.07185587286949158, -0.44431379437446594, 0.002552741440013051, 0.1375380903482437, -0.4270154535770416, -0.008081291802227497, -0.4568274915218353, -0.08802830427885056, 0.4660215377807617, -0.11645573377609253, 0.12306472659111023, 0.3373885750770569, 0.09097948670387268, -0.30881237983703613, 0.1949308067560196, -0.04608892276883125, -0.05826092138886452, 0.03891262784600258, 0.44271543622016907, 0.05950528010725975, 0.10744664072990417, 0.22941938042640686, 0.20663051307201385, -0.023166408762335777, 0.2925170361995697, 0.12752695381641388, 0.16816607117652893, -0.28635668754577637, 0.221029132604599, 0.34866711497306824, -0.08687209337949753, 0.0117012495175004, -0.05569004267454147, -0.18060603737831116, 0.4193440079689026, -0.1166277527809143, 0.16210921108722687, 0.08197647333145142, -0.5037819743156433, 0.3588401675224304, 0.09322553128004074, 0.18933254480361938, -0.11080921441316605, 0.3356674611568451, 0.41140100359916687, 0.017560694366693497, -0.11495847254991531, 0.036513663828372955, 0.3873963952064514, -0.194182887673378, 0.20691266655921936, 0.29684966802597046, -0.010449741035699844, -0.0987938717007637, 0.1528923064470291, 0.26356908679008484, -0.11211420595645905, 0.14242267608642578, 0.2765946090221405, -0.39659714698791504, -0.34449440240859985, -0.005812486633658409, 0.07519890367984772, 0.18850216269493103, -0.15580397844314575, 0.08973665535449982, -0.09081970900297165, -0.12866418063640594, -0.24321407079696655, 0.3294365406036377, 0.45048072934150696, 0.42811983823776245, -0.07950462400913239, -0.3229369819164276, -0.16045309603214264, 0.07464563101530075, 0.10478304326534271, -0.14512252807617188, 0.2769167125225067, 0.6709729433059692, 0.05229639261960983, 0.17480887472629547, -0.19528235495090485, 0.3402727246284485, -0.09679156541824341, -0.30598291754722595, -0.18565157055854797, 0.19366216659545898, 0.252638041973114, -0.1094965785741806, -0.46305564045906067, 0.2653675675392151, -0.06217126548290253, 0.3748275935649872, 0.06472031027078629, -0.002949072513729334, -0.1486263871192932, 0.02140408754348755, 0.038571927696466446, 0.28002864122390747, 0.3117572069168091, 0.5116192698478699, 0.31697654724121094, -0.13986200094223022, -0.11575092375278473, -0.5177519917488098, 0.4010753631591797, -0.17866390943527222, 0.1842116266489029, 0.022036314010620117, -0.02678842283785343, -0.09976612776517868, 0.31252679228782654, -0.028373021632432938, 0.11945552378892899, 0.0742446556687355, -0.10696305334568024, -0.29542669653892517, -0.33189281821250916, -0.0963866338133812, -0.31951069831848145, -0.00007226022717077285, -0.27879828214645386, 0.1629820615053177, -0.6408563852310181, 0.08287988603115082, -0.18022114038467407, -0.3284861445426941, 0.10355009883642197, -0.06898466497659683, 0.7786414623260498, -0.17242306470870972, 0.37212327122688293, 0.10728754103183746, 0.08926387131214142, 0.150910422205925, -0.41444557905197144, -0.14470919966697693, 0.09109795838594437, 0.1098468154668808, 0.3065461218357086, 0.02313641645014286, -0.019930118694901466, -0.3485969305038452, 0.3524782061576843, 0.1307264119386673, -0.08243495225906372, -0.25109750032424927, -0.006151993293315172, 0.03351185470819473, 0.19831912219524384, -0.15382960438728333, 0.3151015639305115, -0.11763674765825272, 0.0559941865503788, -0.2864590287208557, -0.4610401690006256, 0.46834954619407654, -0.22317858040332794, -0.26986780762672424, 0.005784539505839348, 0.17293347418308258, -0.24871395528316498, -0.21862541139125824, -0.5525943636894226, 0.07796836644411087, 0.25951188802719116, 0.10685800015926361, -0.21708732843399048, 0.24912665784358978, 0.05127529054880142, 0.09375952929258347, -0.13074512779712677, 0.22707071900367737, -0.13032867014408112, 0.11386729031801224, -0.1932699829339981, -0.0613107904791832 ]
https://github.com/huggingface/datasets/issues/1776
[Question & Bug Report] Can we preprocess a dataset on the fly?
We are very actively working on this. How does your dataset look like in practice (number/size/type of files)?
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
18
[Question & Bug Report] Can we preprocess a dataset on the fly? I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 We are very actively working on this. How does your dataset look like in practice (number/size/type of files)?
[ -0.3903965950012207, -0.19714856147766113, -0.07739070057868958, -0.003823967883363366, 0.3977738916873932, 0.3356426954269409, 0.26100394129753113, 0.29689639806747437, -0.08464055508375168, 0.13276657462120056, 0.06934736669063568, 0.12865307927131653, -0.1356012225151062, 0.22886593639850616, 0.2126404345035553, 0.15091918408870697, 0.21284224092960358, 0.06642622500658035, 0.03567218407988548, 0.20651069283485413, -0.253982275724411, -0.15314175188541412, -0.1100577712059021, -0.2128913402557373, -0.4570022225379944, -0.27202481031417847, -0.16050519049167633, 0.0205966979265213, -0.23419632017612457, -0.17677456140518188, 0.3146647810935974, 0.3214799463748932, 0.08660222589969635, 0.5502461194992065, -0.00011173378879902884, 0.00889308750629425, 0.40191352367401123, -0.0934249758720398, -0.10762980580329895, -0.10607500374317169, 0.12850017845630646, -0.2643047869205475, -0.1480516642332077, -0.24707818031311035, -0.15671592950820923, -0.05044814571738243, 0.11968293786048889, -0.637354850769043, 0.3856012523174286, 0.12543372809886932, 0.21151460707187653, 0.12865762412548065, -0.08107099682092667, 0.13829603791236877, 0.31796354055404663, 0.35858291387557983, -0.358245849609375, -0.0789358988404274, 0.25965389609336853, -0.07955861836671829, 0.04806791618466377, 0.12024262547492981, -0.3685801923274994, -0.011184456758201122, 0.3391452133655548, 0.11310477554798126, -0.20823907852172852, -0.6446157693862915, 0.1036309152841568, 0.27648675441741943, 0.4921407997608185, -0.525183379650116, -0.6757845878601074, -0.23487360775470734, 0.11644218116998672, -0.3433663547039032, 0.04457254707813263, 0.4104200601577759, -0.15067525207996368, 0.04625357687473297, -0.444593220949173, -0.36858534812927246, 0.0073840864934027195, -0.336141973733902, 0.27084988355636597, -0.15386928617954254, -0.23515136539936066, 0.00232781027443707, 0.062133632600307465, 0.14664344489574432, 0.3794536292552948, -0.24089393019676208, -0.35753658413887024, 0.5096226334571838, -0.26251715421676636, -0.2431843876838684, -0.2934477925300598, 0.10316167026758194, 0.2890484631061554, 0.12902946770191193, 0.0322168730199337, -0.13476493954658508, -0.04534788057208061, -0.03312349691987038, 0.1808275580406189, 0.04792175069451332, -0.05936870351433754, -0.1961778700351715, 0.3188606798648834, -0.21964965760707855, 0.07543285936117172, -0.07937904447317123, 0.059862297028303146, -0.39651235938072205, 0.3271107077598572, 0.03770919516682625, 0.30403196811676025, -0.32267293334007263, 0.4087906777858734, -0.018078774213790894, 0.09222910553216934, -0.013514569029211998, -0.4056243598461151, 0.10217752307653427, -0.13724887371063232, -0.017854657024145126, 0.1294897347688675, 0.08078844845294952, 0.028771525248885155, -0.1734163463115692, -0.10402518510818481, 0.015377814881503582, 0.014040995389223099, 0.27625349164009094, 0.12915600836277008, -0.2255573868751526, 0.05980641022324562, 0.19257093966007233, -0.0866803526878357, -0.1647266000509262, 0.1988249123096466, -0.4564761817455292, 0.10301697999238968, 0.34383440017700195, 0.03279321640729904, 0.05407106131315231, -0.06752113997936249, 0.33003467321395874, -0.19483666121959686, 0.4849698543548584, -0.20168432593345642, -0.27767279744148254, 0.03625239431858063, 0.10428803414106369, -0.01997324824333191, 0.05561419948935509, -0.6019019484519958, 0.17124691605567932, 0.5740997791290283, 0.2262295037508011, 0.22374622523784637, 0.23392926156520844, -0.2646647095680237, -0.16799864172935486, 0.11934834718704224, 0.4449639320373535, -0.18989482522010803, 0.21221943199634552, 0.27368801832199097, 0.02319043129682541, 0.15235869586467743, 0.10423754900693893, 0.02753930538892746, 0.2540643513202667, -0.06300771981477737, -0.15037554502487183, 0.3098081648349762, -0.10666031390428543, 0.11570179462432861, 0.40088149905204773, -0.05500907450914383, -0.2682391405105591, 0.07421037554740906, 0.18553562462329865, -0.03648943454027176, -0.13083964586257935, 0.00005732744830311276, 0.39760759472846985, 0.005013620015233755, 0.19509664177894592, -0.18479077517986298, -0.448239803314209, -0.3217771649360657, 0.005811022128909826, -0.037820205092430115, 0.10627902299165726, -0.18560673296451569, -0.3014099895954132, 0.08773013204336166, -0.19781310856342316, 0.1949760466814041, 0.37260115146636963, -0.044387757778167725, 0.06906700134277344, 0.05051961541175842, -0.1592523157596588, -0.36613649129867554, 0.21455118060112, -0.12305878102779388, 0.0163030494004488, 0.18168294429779053, -0.45763689279556274, 0.18197579681873322, 0.0651789978146553, 0.08000991493463516, 0.11326011270284653, 0.04539559781551361, -0.3407963216304779, 0.3032761514186859, -0.011489351280033588, -0.45566326379776, 0.2294507771730423, -0.1917678564786911, 0.105221226811409, -0.3946021795272827, -0.08140954375267029, 0.1480354517698288, -0.06047527864575386, -0.03559901937842369, -0.16785229742527008, -0.2173682600259781, -0.00864393450319767, -0.08280952274799347, 0.30092236399650574, -0.09612476825714111, 0.17689722776412964, -0.013427292928099632, 0.16867570579051971, -0.1474282443523407, -0.1476055383682251, -0.02059089206159115, -0.13210529088974, 0.1468915045261383, -0.1920763999223709, -0.2768484055995941, 0.23780667781829834, -0.15263892710208893, 0.4071860611438751, -0.05655933544039726, -0.17049099504947662, 0.20153993368148804, -0.0626925677061081, -0.04672054946422577, 0.18740664422512054, 0.011346728540956974, -0.01847011409699917, 0.7148056626319885, -0.12358823418617249, -0.08700636029243469, -0.1725444495677948, -0.01140917930752039, -0.026526516303420067, -0.044828224927186966, 0.2636302411556244, -0.09863170981407166, -0.11397339403629303, -0.22894304990768433, 0.09293870627880096, 0.21436206996440887, 0.14235499501228333, 0.04843248799443245, 0.17999877035617828, 0.09540694952011108, -0.09617795795202255, 0.2947973608970642, 0.010229283012449741, 0.4094163477420807, -0.03066200576722622, 0.21737457811832428, 0.11281825602054596, -0.18894121050834656, 0.17108741402626038, 0.0641644075512886, 0.06640762090682983, -0.13523319363594055, 0.11678966879844666, 0.1735372543334961, -0.1463000476360321, 0.14437507092952728, 0.0346316397190094, -0.2236536145210266, 0.10553375631570816, -0.1247572973370552, 0.006526872981339693, 0.06845011562108994, -0.0014726812951266766, -0.4323996305465698, 0.40774762630462646, 0.07149628549814224, -0.1607212871313095, -0.1685134321451187, -0.17983943223953247, 0.2189040631055832, 0.013390163891017437, 0.26487115025520325, -0.16334664821624756, 0.46535858511924744, -0.05185738205909729, 0.04782259091734886, -0.3106512725353241, 0.1889944225549698, 0.0980868712067604, 0.03684159740805626, 0.3631501793861389, -0.022880153730511665, 0.05731388181447983, 0.20287351310253143, 0.18957574665546417, -0.00037075759610161185, -0.13383585214614868, -0.16119998693466187, -0.2465217411518097, -0.03307958319783211, 0.0012591821141541004, -0.20421141386032104, 0.046795979142189026, -0.11168460547924042, -0.24376963078975677, 0.14599518477916718, -0.00019071222050115466, 0.03415399789810181, 0.2436150163412094, 0.022654609754681587, -0.14873991906642914, -0.1455848664045334, 0.07987464219331741, -0.022601347416639328, -0.7236922979354858, 0.2888316512107849, -0.0164140947163105, -0.35741493105888367, 0.021652337163686752, 0.005314272828400135, -0.03623185679316521, 0.3411470353603363, -0.6054068207740784, 0.012870967388153076, -0.37438854575157166, 0.03555481508374214, -0.17137230932712555, 0.16432026028633118, 0.26677241921424866, 0.07436716556549072, -0.07150638103485107, 0.02201594039797783, -0.10485400259494781, 0.0018190668197348714, -0.1901123970746994, 0.01523082610219717, 0.2821200489997864, 0.4061180353164673, 0.010955329984426498, 0.687018871307373, 0.17412781715393066, 0.013203936628997326, 0.3461174964904785, 0.04426608234643936, 0.5539385080337524, -0.2773265540599823, -0.09586937725543976, -0.1771090030670166, -0.24282662570476532, -0.1766514629125595, 0.12360235303640366, 0.27350667119026184, -0.3021129369735718, -0.19381871819496155, 0.025360675528645515, -0.07952096313238144, -0.09929773956537247, 0.13475556671619415, -0.28842559456825256, 0.288728803396225, -0.005579227115958929, 0.03221634775400162, -0.2510037124156952, -0.4088842570781708, 0.10398944467306137, 0.06493255496025085, 0.6988078951835632, -0.1419103592634201, -0.19133281707763672, 0.21819321811199188, -0.6576193571090698, 0.2069140374660492, -0.003327334066852927, 0.2896776795387268, 0.12813903391361237, 0.06716308742761612, 0.07596772164106369, -0.3018740713596344, 0.5862103700637817, -0.20583806931972504, 0.030228739604353905, 0.40097111463546753, -0.007555521093308926, -0.2386109083890915, 0.126006081700325, 0.07730409502983093, 0.5740272402763367, -0.19258032739162445, 0.3010323643684387, -0.0307217575609684, -0.17163041234016418, 0.08728944510221481, 0.3777674436569214, -0.21517278254032135, -0.5332980751991272, -0.1703988015651703, -0.1797482967376709, -0.17500263452529907, 0.15046754479408264, 0.054904308170080185, -0.19732913374900818, -0.13214054703712463, -0.10620209574699402, -0.38447993993759155, 0.30521127581596375, -0.021157553419470787, -0.19301950931549072, 0.1160212904214859, -0.033762525767087936, 0.48535820841789246, 0.03943450748920441, -0.16996225714683533, -0.07287238538265228, 0.5232400298118591, -0.25951090455055237, -0.18938934803009033, -0.14749883115291595, -0.03636178746819496, 0.38643795251846313, 0.24375180900096893, 0.04835366830229759, 0.20938029885292053, -0.01493364479392767, 0.08610207587480545, -0.5349304676055908, 0.10915995389223099, 0.1268620640039444, -0.08363984525203705, -0.6452921032905579, -0.6370642185211182, 0.6103532910346985, 0.45277348160743713, 0.054773155599832535, 0.44093990325927734, 0.054721489548683167, -0.15754716098308563, 0.2837328612804413, 0.21445223689079285, 0.8360581398010254, -0.34749358892440796, 0.2523154318332672, -0.3638061285018921, 0.16225872933864594, 0.2669769525527954, -0.31136929988861084, 0.0150993587449193, -0.30760321021080017, -0.40025946497917175, 0.04246847704052925, -0.1455598771572113, 0.10536900907754898, 0.32232552766799927, 0.05807091295719147, 0.2982230484485626, -0.05111505836248398, -0.09217393398284912, -0.1188712939620018, -0.07433780282735825, -0.07843908667564392, -0.5844622254371643, -0.16226744651794434, 0.17473024129867554, -0.043551765382289886, 0.12001188099384308, -0.14097943902015686, 0.20368574559688568, 0.2561599612236023, -0.11875146627426147, -0.39112982153892517, -0.016769500449299812, -0.2120411992073059, -0.28020521998405457, -0.1674090474843979, -0.1748950332403183, -0.1033795028924942, 0.07241113483905792, 0.4791940450668335, 0.5132243633270264, -0.0546383298933506, -0.0849701538681984, 0.10395244508981705, 0.115241140127182, -0.09866400808095932, 0.11216849088668823, 0.11118367314338684, -0.07542423158884048, 0.07227104902267456, -0.02860886976122856, -0.39298585057258606, -0.13952265679836273, 0.1768450289964676, -0.08542131632566452, 0.08600909262895584, 0.027031544595956802, -0.29945215582847595, 0.06948799639940262, 0.22139804065227509, -0.057957522571086884, 0.10773203521966934, 0.3272387981414795, 0.018335221335291862, 0.3171115815639496, -0.15064045786857605, -0.3271254003047943, 0.012523068115115166, 0.25314295291900635, 0.14493303000926971, -0.3179352581501007, 0.2900618314743042, 0.1992645412683487, -0.23740357160568237, -0.13798850774765015, 0.20612218976020813, -0.0179362241178751, -0.3303300142288208, 0.2150021493434906, 0.13200967013835907, 0.2330530285835266, -0.06949053704738617, 0.1627018004655838, 0.0822032168507576, -0.26225173473358154, 0.1388380080461502, -0.18551649153232574, -0.5902353525161743, -0.09658563137054443, 0.14280982315540314, 0.22331036627292633, 0.5382524728775024, -0.3736315667629242, 0.14909608662128448, 0.3163086771965027, -0.25338131189346313, -0.010181683115661144, 0.04271034151315689, 0.11362949013710022, 0.11112756282091141, 0.2753560543060303, 0.029825571924448013, -0.17891906201839447, -0.005251511465758085, 0.05391401797533035, 0.03329332545399666, -0.279455304145813, -0.04774670675396919, 0.16699561476707458, -0.1420474797487259, -0.08743555843830109, 0.22336114943027496, -0.21281690895557404, -0.2577120065689087, -0.38180801272392273, 0.0933896005153656, 0.3412838578224182, -0.0700267031788826, -0.25416818261146545, 0.30460065603256226, 0.14502428472042084, -0.3586774170398712, 0.3340471386909485, 0.07001913338899612, 0.14352534711360931, -0.12325774133205414, 0.12375839799642563, 0.16647672653198242, -0.05559781193733215, 0.1118842214345932, -0.18668141961097717, 0.24646656215190887, -0.02382669784128666, 0.1362110823392868, -0.1701814830303192, 0.06103060394525528, 0.27663296461105347, 0.2868176996707916, 0.1773666888475418, -0.09330116212368011, 0.1268346607685089, 0.2990511953830719, 0.1772523671388626, -0.2163126915693283, -0.20401202142238617, 0.12936650216579437, -0.059113919734954834, 0.10350178927183151, 0.2595464289188385, 0.21915458142757416, 0.13584139943122864, -0.15562120079994202, 0.26559385657310486, 0.2433725893497467, -0.42326292395591736, 0.04237170144915581, 0.21772271394729614, 0.137202650308609, 0.14528386294841766, 0.2677958607673645, 0.30366870760917664, 0.16234835982322693, 0.35976874828338623, 0.289725124835968, 0.5725325345993042, 0.33716967701911926, 0.05475815385580063, -0.2753024101257324, -0.6611907482147217, 0.30655956268310547, 0.08542139828205109, 0.3103342354297638, 0.37882378697395325, -0.013585240580141544, 0.2490016371011734, 0.0256535355001688, -0.17853094637393951, -0.2163432389497757, 0.10903880000114441, -0.11405226588249207, -0.1785178929567337, 0.3778684735298157, 0.020188914611935616, 0.3296589255332947, 0.1227002814412117, -0.04725615680217743, -0.10817089676856995, 0.26520389318466187, 0.044924452900886536, 0.16075973212718964, 0.16782911121845245, 0.17482875287532806, 0.05635521933436394, 0.3255889117717743, -0.1390039175748825, 0.16707761585712433, 0.03380174934864044, 0.05201103165745735, -0.04516267776489258, 0.5297790765762329, 0.27729371190071106, 0.3780843913555145, -0.09875480085611343, 0.1468122899532318, -0.055605337023735046, 0.0012176540913060308, -0.0299477931112051, 0.26414668560028076, -0.1150575578212738, -0.1527375727891922, 0.1634344905614853, 0.06949003785848618, -0.08180646598339081, 0.2432885766029358, -0.15491870045661926, 0.3400704562664032, -0.13969817757606506, 0.2530263364315033, 0.09329136461019516, -0.3390544354915619, -0.2198704183101654, 0.1748742312192917, -0.22939707338809967, 0.13707910478115082, 0.6883217096328735, -0.3523360788822174, -0.046669650822877884, -0.054999154061079025, 0.07789473980665207, 0.1893005222082138, 0.4720000922679901, 0.37034088373184204, 0.06909360736608505, -0.1510736048221588, 0.07635270804166794, -0.4328629672527313, -0.15379448235034943, -0.1426941603422165, 0.25030258297920227, -0.20729278028011322, -0.11279087513685226, 0.15921525657176971, 0.2857862114906311, -0.021907757967710495, -0.3598351776599884, 0.073904849588871, 0.43483415246009827, -0.31276917457580566, -0.18816712498664856, -0.1850745677947998, 0.07514959573745728, 0.05571611970663071, -0.5030347108840942, 0.12375865876674652, 0.1257847547531128, -0.07426918298006058, 0.0443495437502861, 0.09412171691656113, 0.15373942255973816, -0.01113155297935009, 0.4049513041973114, 0.004367890302091837, 0.17260433733463287, -0.1656097173690796, -0.014558110386133194, -0.30314382910728455, -0.04368428513407707, -0.22673416137695312, 0.12965138256549835, 0.07701348513364792, -0.06069033220410347, -0.556887686252594, -0.2705356180667877, -0.07294557243585587, -0.2407098263502121, -0.23688268661499023, 0.060050781816244125, -0.35546231269836426, -0.24559292197227478, -0.11674865335226059, -0.05975641682744026, 0.1881880909204483, 0.20106646418571472, -0.020057475194334984, 0.08956588059663773, -0.30764108896255493, -0.28974899649620056, 0.524659276008606, -0.17344516515731812, -0.2983180284500122, -0.24424248933792114, 0.06164299324154854, 0.0614122711122036, -0.16060899198055267, -0.3795975148677826, 0.24051083624362946, 0.27419909834861755, -0.11917301267385483, 0.15512074530124664, 0.3109648525714874, -0.3516451120376587, 0.06469687074422836, -0.20360343158245087, 0.6356158256530762, -0.19219817221164703, 0.0002171242522308603, -0.4029255509376526, -0.3338174521923065 ]
https://github.com/huggingface/datasets/issues/1776
[Question & Bug Report] Can we preprocess a dataset on the fly?
It's a text file with many lines (about 1B) of Chinese sentences. I use it to train language model using https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
21
[Question & Bug Report] Can we preprocess a dataset on the fly? I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 It's a text file with many lines (about 1B) of Chinese sentences. I use it to train language model using https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
[ -0.37495046854019165, -0.3105457127094269, -0.025356139987707138, 0.07814691960811615, 0.41907602548599243, 0.3276045620441437, 0.25238823890686035, 0.24938929080963135, -0.11202339082956314, 0.0602596178650856, -0.04217486083507538, 0.08074959367513657, -0.11859822273254395, 0.16778165102005005, 0.31894248723983765, 0.0842120349407196, 0.20637303590774536, 0.03349284455180168, -0.002537592314183712, 0.17585323750972748, -0.22771795094013214, -0.16506384313106537, -0.06017440930008888, -0.11336302012205124, -0.5667714476585388, -0.27682992815971375, -0.2453332096338272, -0.04908552020788193, -0.15834704041481018, -0.22841936349868774, 0.2756984531879425, 0.23408189415931702, 0.08938323706388474, 0.5178627371788025, -0.00011839769285870716, 0.05139785259962082, 0.3754439949989319, -0.08065914362668991, -0.12657879292964935, -0.10067387670278549, 0.13752031326293945, -0.22117052972316742, -0.17709775269031525, -0.19191111624240875, -0.1763422191143036, -0.001200128928758204, 0.1539304256439209, -0.49223271012306213, 0.5047301054000854, 0.194683238863945, 0.144863098859787, 0.2098606824874878, -0.0517696887254715, 0.22196079790592194, 0.21852335333824158, 0.3186279535293579, -0.24613139033317566, 0.14449843764305115, 0.21559420228004456, -0.016661860048770905, -0.03760820999741554, 0.16346697509288788, -0.31660720705986023, -0.015186254866421223, 0.2694856524467468, 0.14867527782917023, -0.15378527343273163, -0.5454914569854736, 0.1296336054801941, 0.3487488627433777, 0.3943708837032318, -0.5621156096458435, -0.6745544075965881, -0.2740333676338196, 0.18087975680828094, -0.3332335650920868, 0.093286894261837, 0.4548143744468689, -0.14097730815410614, 0.20200209319591522, -0.4392782151699066, -0.41259026527404785, 0.07816161215305328, -0.31171688437461853, 0.2973240911960602, -0.047480590641498566, -0.2603076994419098, 0.03278323635458946, 0.05133911967277527, 0.13210833072662354, 0.3066852390766144, -0.2835436165332794, -0.3123472332954407, 0.573369562625885, -0.2480735033750534, -0.2415744662284851, -0.3126254677772522, 0.17123350501060486, 0.20139962434768677, -0.06655919551849365, 0.06826024502515793, -0.12892237305641174, 0.004191581159830093, -0.050270866602659225, 0.126024067401886, 0.039294321089982986, -0.08337673544883728, -0.21175751090049744, 0.2936166524887085, -0.17861498892307281, 0.0200479906052351, -0.022956348955631256, 0.022384416311979294, -0.3257002532482147, 0.23055146634578705, 0.08852323144674301, 0.2718847393989563, -0.141756072640419, 0.31398457288742065, -0.013668677769601345, -0.01897723227739334, -0.031128693372011185, -0.3354020416736603, 0.1593698412179947, -0.19146496057510376, -0.04394545033574104, 0.14451099932193756, 0.10419642180204391, -0.03084111399948597, -0.2627182602882385, -0.09549382328987122, 0.0899273082613945, -0.05538933351635933, 0.3115382492542267, 0.11606267839670181, -0.16808977723121643, 0.09530088305473328, 0.18655294179916382, -0.12426682561635971, -0.2649594843387604, 0.08114032447338104, -0.43657219409942627, 0.014829235151410103, 0.25061464309692383, -0.01971517689526081, 0.0720883384346962, -0.03679293394088745, 0.3380574584007263, -0.17790448665618896, 0.4492942988872528, -0.2043384462594986, -0.25738972425460815, 0.1642535775899887, 0.05348559841513634, -0.008352667093276978, 0.05551398918032646, -0.4702354967594147, 0.3273874521255493, 0.6150686144828796, 0.2876591086387634, 0.28035542368888855, 0.3247438073158264, -0.3547731041908264, -0.05433467775583267, 0.11124557256698608, 0.5088637471199036, -0.2824383080005646, 0.044527530670166016, 0.39103275537490845, -0.03790019825100899, 0.12273154407739639, 0.20045100152492523, -0.03862035647034645, 0.3778631091117859, -0.034849293529987335, -0.13771089911460876, 0.25490066409111023, -0.0279564056545496, -0.004930403083562851, 0.42978435754776, -0.13296467065811157, -0.2408832311630249, 0.09946335852146149, 0.22738483548164368, -0.1922980397939682, -0.05346795544028282, 0.06413625180721283, 0.3943486511707306, 0.05072731152176857, 0.134792760014534, -0.18895438313484192, -0.5016101002693176, -0.24051453173160553, -0.025490177795290947, -0.05148528516292572, 0.1133788451552391, -0.19852177798748016, -0.07845006138086319, 0.14197894930839539, -0.18654026091098785, 0.17620983719825745, 0.37410083413124084, -0.17765656113624573, 0.10496637970209122, -0.024601798504590988, -0.23914824426174164, -0.3565000891685486, 0.2378040850162506, -0.18518461287021637, 0.07278860360383987, 0.19771090149879456, -0.44128668308258057, 0.2564162313938141, 0.09285952895879745, 0.021197596564888954, 0.09672223776578903, -0.004148488864302635, -0.38171032071113586, 0.32776257395744324, 0.022082192823290825, -0.4443686306476593, 0.2501785159111023, -0.3590981364250183, 0.07382844388484955, -0.40266165137290955, -0.11434976011514664, 0.1062474399805069, 0.009500063955783844, -0.10033142566680908, -0.09452854841947556, -0.26047420501708984, 0.007163161411881447, -0.10087841004133224, 0.2901645004749298, -0.16169580817222595, 0.22722245752811432, -0.12036314606666565, 0.0991879552602768, -0.07375646382570267, -0.22343049943447113, -0.010773071087896824, -0.13014094531536102, 0.10444322228431702, -0.22954733669757843, -0.24909725785255432, 0.26698368787765503, -0.02942398004233837, 0.4033820629119873, 0.025611698627471924, -0.2489113211631775, 0.22177958488464355, -0.04112542048096657, -0.0857887864112854, 0.08462747186422348, 0.10302789509296417, -0.049561064690351486, 0.7756670713424683, -0.028904175385832787, -0.13238966464996338, -0.2946964502334595, 0.12236744910478592, -0.03221095725893974, 0.05094440281391144, 0.2729353606700897, -0.16222378611564636, -0.13280974328517914, -0.24352140724658966, 0.013893187046051025, 0.23289689421653748, 0.0966445729136467, 0.08826894313097, 0.309880793094635, 0.051168859004974365, -0.12634731829166412, 0.28501078486442566, 0.018753983080387115, 0.4396485686302185, -0.02505151368677616, 0.16158440709114075, 0.13248300552368164, -0.27926498651504517, 0.24794645607471466, 0.09712564945220947, 0.06976139545440674, -0.21545782685279846, 0.14134402573108673, 0.09908545017242432, -0.1793447583913803, 0.03100253827869892, 0.03604966402053833, -0.26454806327819824, 0.18055717647075653, -0.20561756193637848, -0.1350843757390976, 0.11206693947315216, 0.022505352273583412, -0.34210848808288574, 0.3792143166065216, 0.1037956178188324, -0.05517720803618431, -0.06458698958158493, -0.176441490650177, 0.14158380031585693, -0.05905389413237572, 0.3099808394908905, -0.21319988369941711, 0.3635682761669159, -0.09602191299200058, -0.04472450166940689, -0.2309793084859848, 0.18583039939403534, 0.18363787233829498, 0.057599037885665894, 0.3153480589389801, 0.015003529377281666, 0.06127794086933136, 0.145881786942482, 0.17308856546878815, 0.03150984272360802, -0.12686175107955933, -0.2293550968170166, -0.2512016296386719, 0.007825870998203754, -0.0029189405031502247, -0.1471857726573944, 0.0929354727268219, -0.18531553447246552, -0.19760093092918396, 0.21957486867904663, -0.0661495253443718, 0.059411853551864624, 0.3334243595600128, -0.018125519156455994, 0.0040228539146482944, -0.17716366052627563, 0.06466589868068695, -0.0010528170969337225, -0.7291214466094971, 0.3107965588569641, 0.05569237843155861, -0.35983526706695557, -0.009534046985208988, -0.08333201706409454, 0.024673718959093094, 0.3075164556503296, -0.6023687124252319, 0.059028010815382004, -0.36415284872055054, 0.022292030975222588, -0.1750628650188446, 0.1446497142314911, 0.169419065117836, -0.006836177781224251, 0.002027961192652583, 0.033519499003887177, -0.03290192782878876, 0.07124706357717514, -0.18925592303276062, 0.04485518857836723, 0.29058295488357544, 0.6020951867103577, 0.0019181723473593593, 0.6774523258209229, 0.23822784423828125, -0.010103325359523296, 0.32345348596572876, 0.11356323212385178, 0.524778425693512, -0.21542692184448242, -0.09265459328889847, -0.16710776090621948, -0.21629434823989868, -0.10277067124843597, 0.2582962214946747, 0.21519918739795685, -0.23342083394527435, -0.18049705028533936, -0.04436805844306946, -0.007284353021532297, -0.09354893118143082, 0.19710345566272736, -0.38604244589805603, 0.35247528553009033, 0.04312142729759216, 0.040476538240909576, -0.22450366616249084, -0.39346843957901, 0.10247450321912766, 0.026567533612251282, 0.6047844886779785, -0.06171518191695213, -0.2506677806377411, 0.13564561307430267, -0.7349545359611511, 0.15759067237377167, 0.06089315190911293, 0.39994099736213684, 0.11611852794885635, 0.14234432578086853, 0.15304772555828094, -0.26714906096458435, 0.6611443758010864, -0.18208837509155273, 0.023695265874266624, 0.28408145904541016, -0.0700308084487915, -0.22585316002368927, 0.16905128955841064, 0.004905917681753635, 0.5148662328720093, 0.019226139411330223, 0.3401060700416565, -0.008586590178310871, -0.20248056948184967, 0.09084873646497726, 0.37643635272979736, -0.2770534157752991, -0.5819292664527893, -0.21866564452648163, -0.1276066154241562, -0.2294236123561859, 0.19331128895282745, 0.10356492549180984, -0.19818131625652313, -0.061747100204229355, -0.06767669320106506, -0.3200572431087494, 0.29008692502975464, 0.05109214410185814, -0.18663683533668518, 0.004052523989230394, 0.08376704156398773, 0.4016822874546051, 0.05187437683343887, -0.0788608193397522, -0.16875603795051575, 0.5229554176330566, -0.2597314417362213, -0.26516807079315186, -0.18190115690231323, -0.08117902278900146, 0.3944951295852661, 0.3223749101161957, 0.09412045776844025, 0.2993001341819763, 0.17868299782276154, 0.11385384202003479, -0.5120100378990173, 0.18926893174648285, 0.1549816131591797, 0.0719948261976242, -0.7229211926460266, -0.6222499012947083, 0.652593195438385, 0.3519830107688904, 0.12593860924243927, 0.25376754999160767, 0.12205284833908081, -0.26559653878211975, 0.2247299998998642, 0.2336195409297943, 0.8952522277832031, -0.3194468915462494, 0.29456910490989685, -0.2977176308631897, 0.18844549357891083, 0.441276490688324, -0.3313080370426178, 0.08702456951141357, -0.18642430007457733, -0.3148833215236664, -0.003682277398183942, -0.11617674678564072, 0.17164203524589539, 0.37080204486846924, 0.09521235525608063, 0.3008534014225006, -0.017984427511692047, -0.051608629524707794, -0.016610750928521156, 0.029303548857569695, -0.08204778283834457, -0.5858249664306641, -0.21833524107933044, 0.10132814943790436, -0.08557455241680145, 0.1453370451927185, -0.19210019707679749, 0.1840767115354538, 0.2510250508785248, -0.0993482768535614, -0.41747137904167175, -0.03664514422416687, -0.34678637981414795, -0.17795099318027496, -0.19798871874809265, -0.16223236918449402, 0.05260186269879341, 0.08650890737771988, 0.5049936771392822, 0.5158255696296692, -0.0750926062464714, -0.09953829646110535, 0.019285529851913452, 0.0976051464676857, -0.15617536008358002, 0.08644313365221024, 0.18892371654510498, -0.057359520345926285, 0.05448497086763382, -0.029300091788172722, -0.3847137689590454, -0.12600596249103546, 0.10873983055353165, -0.12949694693088531, 0.08528503775596619, 0.13325640559196472, -0.4105950891971588, 0.043043602257966995, 0.18811585009098053, -0.08036244660615921, 0.04602895677089691, 0.2664835751056671, -0.08431185781955719, 0.17668277025222778, -0.1003560796380043, -0.39247432351112366, -0.01707792840898037, 0.332571804523468, 0.15091317892074585, -0.25410717725753784, 0.4268801212310791, 0.30139467120170593, -0.27817508578300476, -0.0730166807770729, 0.1619441956281662, 0.0966804027557373, -0.432940274477005, 0.1042788103222847, 0.18796655535697937, 0.2459782510995865, -0.21420228481292725, 0.05483030155301094, 0.12209480255842209, -0.21561089158058167, 0.12158320844173431, -0.2027389109134674, -0.6988824605941772, -0.11574649810791016, 0.19374294579029083, 0.09633065015077591, 0.5451958775520325, -0.09530023485422134, 0.1898052841424942, 0.4475340247154236, -0.18525296449661255, -0.03415068984031677, -0.005108196754008532, 0.09384968876838684, 0.15894746780395508, 0.24768929183483124, 0.02462133578956127, -0.1350824534893036, -0.04577229544520378, 0.08445044606924057, 0.06267879903316498, -0.2373904585838318, -0.09886931627988815, 0.2000257819890976, -0.05702641233801842, -0.1207517683506012, 0.212535560131073, -0.18718083202838898, -0.167942076921463, -0.40308380126953125, 0.033922549337148666, 0.3511117696762085, -0.00697176530957222, -0.20972822606563568, 0.2676530182361603, 0.20404794812202454, -0.3131278455257416, 0.27796751260757446, 0.07485909014940262, 0.10649193078279495, -0.0686856284737587, 0.09694448113441467, 0.29076558351516724, 0.04614947363734245, 0.06582243740558624, -0.15295442938804626, 0.28154993057250977, -0.12764815986156464, 0.08699040859937668, -0.23592698574066162, 0.08804258704185486, 0.23085545003414154, 0.22293750941753387, 0.18890757858753204, -0.11966549605131149, 0.05408436805009842, 0.3452792465686798, 0.09658664464950562, -0.3158843517303467, -0.13738089799880981, 0.22070814669132233, -0.12793655693531036, 0.10543359071016312, 0.27108892798423767, 0.20831075310707092, 0.2108290195465088, -0.15562400221824646, 0.22138401865959167, 0.15548175573349, -0.36791080236434937, -0.02557566575706005, 0.3143434226512909, 0.2194732129573822, 0.289156436920166, 0.34714314341545105, 0.3937496244907379, 0.1932377964258194, 0.36046889424324036, 0.29666462540626526, 0.5566436648368835, 0.11561238765716553, 0.14604492485523224, -0.2761040925979614, -0.6948460936546326, 0.16864612698554993, 0.11191610991954803, 0.14376452565193176, 0.34306368231773376, -0.14048495888710022, 0.24998268485069275, 0.013436648063361645, -0.21596992015838623, -0.187009796500206, 0.17248503863811493, -0.20667558908462524, -0.26465684175491333, 0.35974305868148804, 0.029996005818247795, 0.30805906653404236, 0.1755874902009964, -0.0062239766120910645, -0.17585253715515137, 0.11991158127784729, 0.03626866266131401, 0.10598341375589371, 0.029143763706088066, 0.12097329646348953, 0.07656204700469971, 0.18712139129638672, -0.2097545862197876, 0.15742377936840057, 0.018893850967288017, 0.13195408880710602, -0.1634800136089325, 0.4289204180240631, 0.1874070167541504, 0.39559832215309143, -0.07572854310274124, 0.1927969753742218, -0.056929394602775574, 0.023352110758423805, -0.057629406452178955, 0.19939856231212616, 0.002304953755810857, -0.07401560992002487, 0.17862114310264587, 0.0053612603805959225, -0.05825343355536461, 0.1853407621383667, -0.07937522977590561, 0.33247074484825134, -0.22972193360328674, 0.28975534439086914, -0.038107145577669144, -0.30078190565109253, -0.23211432993412018, 0.257709264755249, -0.33460575342178345, 0.33399778604507446, 0.7271052002906799, -0.4429171085357666, -0.0402117520570755, -0.06234854832291603, 0.035139527171850204, 0.16753429174423218, 0.5127871632575989, 0.38622406125068665, 0.13020750880241394, -0.21322335302829742, 0.105506531894207, -0.5249496698379517, -0.19797536730766296, -0.1035245805978775, 0.3607327342033386, -0.26795390248298645, -0.1362633854150772, 0.1628423035144806, 0.21418893337249756, -0.1237194761633873, -0.29990604519844055, -0.05591503530740738, 0.33104684948921204, -0.25797712802886963, -0.20189768075942993, -0.348137229681015, 0.1867288500070572, 0.017172109335660934, -0.43533363938331604, 0.1584535837173462, 0.2004404366016388, -0.17389445006847382, -0.0889287143945694, 0.16387903690338135, 0.030490189790725708, -0.018021780997514725, 0.34601670503616333, 0.0734667107462883, 0.25870099663734436, -0.194183349609375, 0.009610620327293873, -0.30587300658226013, 0.02320331521332264, -0.25867366790771484, 0.2087647169828415, 0.05141440033912659, 0.007906030863523483, -0.5748569369316101, -0.3172648847103119, -0.10321471095085144, -0.21648472547531128, -0.1374961882829666, -0.05872349813580513, -0.3331204354763031, -0.23010855913162231, -0.17847180366516113, 0.0029491824097931385, 0.32381364703178406, 0.27668067812919617, -0.008544662967324257, 0.10117538273334503, -0.2328115850687027, -0.1817188411951065, 0.4950389564037323, -0.3164902627468109, -0.3039829432964325, -0.24055059254169464, 0.05648615211248398, 0.12379952520132065, -0.25667354464530945, -0.44573765993118286, 0.15041182935237885, 0.28647851943969727, -0.13946034014225006, 0.05887025594711304, 0.3648122549057007, -0.30238214135169983, 0.09236660599708557, -0.21126925945281982, 0.6263194680213928, -0.18212617933750153, -0.09965178370475769, -0.3672665059566498, -0.40447407960891724 ]
https://github.com/huggingface/datasets/issues/1776
[Question & Bug Report] Can we preprocess a dataset on the fly?
Indeed I will submit a PR in a fez days to enable processing on-the-fly :) This can be useful in language modeling for tokenization, padding etc.
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
26
[Question & Bug Report] Can we preprocess a dataset on the fly? I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 Indeed I will submit a PR in a fez days to enable processing on-the-fly :) This can be useful in language modeling for tokenization, padding etc.
[ -0.38063064217567444, -0.1969694048166275, -0.07462398707866669, -0.006863603834062815, 0.4007774889469147, 0.3399396240711212, 0.2778785824775696, 0.26342666149139404, -0.09953507035970688, 0.14619946479797363, 0.13427641987800598, 0.18493759632110596, -0.14211831986904144, 0.2875477969646454, 0.26896607875823975, 0.1431528776884079, 0.19679774343967438, 0.03322157263755798, 0.07253272086381912, 0.2377660721540451, -0.2820776104927063, -0.15956147015094757, -0.1298617273569107, -0.17965969443321228, -0.4086607098579407, -0.30662932991981506, -0.15480026602745056, -0.0939178317785263, -0.27369341254234314, -0.20015384256839752, 0.29561829566955566, 0.2963145971298218, 0.06532541662454605, 0.4654722213745117, -0.00011540269770193845, 0.010522075928747654, 0.4278811812400818, -0.05471266433596611, -0.09954596310853958, -0.1435347944498062, 0.13768422603607178, -0.24834704399108887, -0.1386115998029709, -0.24094945192337036, -0.11215835809707642, -0.0338168740272522, 0.07843012362718582, -0.6800124645233154, 0.34944063425064087, 0.11581534892320633, 0.18762317299842834, 0.11962784826755524, -0.08414123207330704, 0.15587681531906128, 0.28433674573898315, 0.3790523409843445, -0.34934520721435547, -0.1307840794324875, 0.19725918769836426, -0.07721354067325592, 0.0815451517701149, 0.07717280089855194, -0.3598996698856354, -0.04842570796608925, 0.2894827425479889, 0.08927042037248611, -0.2145828902721405, -0.6604301929473877, 0.13883011043071747, 0.2746996581554413, 0.4689066708087921, -0.5630960464477539, -0.7029753923416138, -0.2193472534418106, 0.14027373492717743, -0.3208354711532593, 0.03829055652022362, 0.44820302724838257, -0.17156429588794708, 0.07312408089637756, -0.41513144969940186, -0.42024654150009155, 0.041366979479789734, -0.3086302578449249, 0.2753446400165558, -0.07209707796573639, -0.2119612842798233, 0.02520209737122059, 0.0342022068798542, 0.18109893798828125, 0.4665640592575073, -0.2718546986579895, -0.3090377151966095, 0.4835744798183441, -0.2577786147594452, -0.1970091462135315, -0.26455703377723694, 0.06774801015853882, 0.26920971274375916, 0.05939666926860809, 0.03128654509782791, -0.12087664753198624, -0.05939401313662529, -0.060343194752931595, 0.1857621967792511, 0.04672469198703766, -0.02059631049633026, -0.18886098265647888, 0.288548082113266, -0.2618694603443146, 0.10948348045349121, -0.05132279917597771, 0.02047288604080677, -0.338310182094574, 0.305931955575943, 0.09551998972892761, 0.24374215304851532, -0.27114659547805786, 0.3885357081890106, -0.027221646159887314, 0.07651306688785553, -0.0235701035708189, -0.4008273482322693, 0.08768204599618912, -0.11595223098993301, -0.004717220552265644, 0.15468551218509674, 0.09619617462158203, 0.06724347919225693, -0.22885894775390625, -0.07707886397838593, 0.014027593657374382, 0.004149517975747585, 0.23254990577697754, 0.07277096062898636, -0.19737286865711212, 0.031166402623057365, 0.21053238213062286, -0.09173429757356644, -0.20584776997566223, 0.17513367533683777, -0.44167545437812805, 0.09071041643619537, 0.29822754859924316, 0.035136040300130844, 0.0468144528567791, -0.029916834086179733, 0.35252904891967773, -0.23667313158512115, 0.5580146312713623, -0.15719301998615265, -0.29588422179222107, 0.04677681624889374, 0.07422862201929092, -0.020416583865880966, 0.0069829365238547325, -0.5607436299324036, 0.2342836707830429, 0.6066610217094421, 0.21604344248771667, 0.2605380415916443, 0.232074573636055, -0.30536842346191406, -0.1547013372182846, 0.13657985627651215, 0.4368866980075836, -0.2761685848236084, 0.18238501250743866, 0.2781623303890228, 0.03970060497522354, 0.224702388048172, 0.028513433411717415, -0.024241924285888672, 0.27067193388938904, -0.04757584631443024, -0.1463969349861145, 0.3211706876754761, -0.09991339594125748, 0.13672004640102386, 0.3996351361274719, -0.05904989689588547, -0.28139954805374146, 0.08106832951307297, 0.16551628708839417, -0.06320775300264359, -0.05658293515443802, -0.0004907052498310804, 0.44617778062820435, 0.02388988807797432, 0.1589469015598297, -0.18043777346611023, -0.47520992159843445, -0.2243526130914688, -0.013598906807601452, 0.011863931082189083, 0.12632988393306732, -0.12866021692752838, -0.2577129900455475, 0.0810362920165062, -0.20283102989196777, 0.19902977347373962, 0.3393392860889435, -0.04003321751952171, 0.0700502097606659, 0.050167616456747055, -0.21940697729587555, -0.32555338740348816, 0.2392323613166809, -0.1290407031774521, 0.07254055887460709, 0.16847708821296692, -0.4414999485015869, 0.20578014850616455, 0.1176258847117424, 0.09295997023582458, 0.16508948802947998, 0.018488198518753052, -0.3471728563308716, 0.2571837902069092, 0.008034530095756054, -0.4888255298137665, 0.28475672006607056, -0.2818242013454437, 0.06055566295981407, -0.31922447681427, -0.08911175280809402, 0.15444563329219818, -0.02641892619431019, -0.07297753542661667, -0.11705829948186874, -0.23852050304412842, 0.032093677669763565, -0.10211373120546341, 0.2757897675037384, -0.06638982146978378, 0.16827313601970673, -0.08663493394851685, 0.12564167380332947, -0.14474523067474365, -0.12906958162784576, -0.007608741521835327, -0.17177888751029968, 0.14997094869613647, -0.1908583641052246, -0.18799105286598206, 0.24413710832595825, -0.09065485745668411, 0.45510926842689514, -0.018668364733457565, -0.17646317183971405, 0.18051299452781677, 0.006529859732836485, -0.05523623526096344, 0.12505494058132172, 0.01558221410959959, -0.08828076720237732, 0.7388352155685425, -0.15103331208229065, -0.09796903282403946, -0.11662877351045609, 0.026519082486629486, 0.004368460271507502, -0.011702721938490868, 0.2582094669342041, -0.11334530264139175, -0.14054802060127258, -0.22059336304664612, 0.08562669903039932, 0.2107999622821808, 0.12128355354070663, 0.03954625502228737, 0.2407403290271759, 0.07095778733491898, -0.06431769579648972, 0.32072117924690247, 0.022734850645065308, 0.4563131332397461, -0.04685324430465698, 0.23022408783435822, 0.157525897026062, -0.2121620923280716, 0.14795470237731934, 0.061193227767944336, 0.06468404084444046, -0.13868817687034607, 0.11826302856206894, 0.13235220313072205, -0.1580018848180771, 0.13924607634544373, -0.02858751267194748, -0.2757464051246643, 0.09569879621267319, -0.13782423734664917, -0.11890171468257904, 0.14351977407932281, -0.027888640761375427, -0.4474334120750427, 0.4689065217971802, 0.05117146298289299, -0.17833051085472107, -0.17204968631267548, -0.25060558319091797, 0.21449244022369385, -0.008766386657953262, 0.2332843691110611, -0.14380793273448944, 0.4303097724914551, -0.018049608916044235, 0.05895261466503143, -0.2585688829421997, 0.1374780833721161, 0.10435201227664948, 0.03097575530409813, 0.3830714523792267, -0.0061091892421245575, 0.001017583766952157, 0.20853742957115173, 0.20509052276611328, -0.001941232243552804, -0.14475703239440918, -0.20030026137828827, -0.26093965768814087, -0.023617412894964218, -0.0058719320222735405, -0.20884819328784943, 0.09288524836301804, -0.15212395787239075, -0.23904862999916077, 0.1361914575099945, -0.002510868012905121, 0.052036166191101074, 0.19139139354228973, -0.034163154661655426, -0.09710893034934998, -0.1601899266242981, 0.06803234666585922, -0.024921858683228493, -0.682763397693634, 0.2437417358160019, 0.01761743612587452, -0.33865344524383545, -0.023872079327702522, 0.008869235403835773, 0.043735940009355545, 0.32550710439682007, -0.5940136313438416, 0.06406846642494202, -0.4057159423828125, 0.07097230851650238, -0.22092361748218536, 0.1615331619977951, 0.3194853663444519, 0.10002711415290833, -0.02165784128010273, 0.03393680602312088, -0.16035467386245728, -0.020117297768592834, -0.1682431548833847, -0.02354975789785385, 0.34330296516418457, 0.45358598232269287, 0.0314810648560524, 0.6971466541290283, 0.1354648321866989, -0.00726785883307457, 0.3471183776855469, 0.037519671022892, 0.4989185631275177, -0.3026140630245209, -0.11541210114955902, -0.19299384951591492, -0.26882073283195496, -0.17421621084213257, 0.07811401039361954, 0.20364747941493988, -0.2888607978820801, -0.21735350787639618, 0.05150369927287102, -0.11613507568836212, -0.04035382345318794, 0.08608657121658325, -0.3470902442932129, 0.3549283444881439, 0.027554797008633614, 0.027591804042458534, -0.29215526580810547, -0.38152727484703064, 0.11333636194467545, 0.005060904193669558, 0.7152577638626099, -0.14129136502742767, -0.19823172688484192, 0.18183892965316772, -0.6152510643005371, 0.1812918484210968, 0.02404055930674076, 0.39189842343330383, 0.13090182840824127, 0.04471272975206375, 0.13155944645404816, -0.2936673164367676, 0.5625489950180054, -0.25961288809776306, 0.021820178255438805, 0.3942939341068268, -0.04889477789402008, -0.24840115010738373, 0.15034626424312592, 0.08036566525697708, 0.5243749618530273, -0.19547033309936523, 0.2850290834903717, -0.02036689594388008, -0.1341274231672287, 0.04742368683218956, 0.36162471771240234, -0.20790034532546997, -0.5691275596618652, -0.2100694328546524, -0.13691356778144836, -0.19606319069862366, 0.16729062795639038, 0.05068565532565117, -0.1484784185886383, -0.09898404777050018, -0.07939805090427399, -0.43537476658821106, 0.30446305871009827, -0.04921674728393555, -0.20592932403087616, 0.03091278485953808, -0.052168868482112885, 0.4565044939517975, 0.01070465985685587, -0.24765388667583466, -0.16799089312553406, 0.4879385232925415, -0.18821527063846588, -0.2456018179655075, -0.1580670326948166, -0.005101217422634363, 0.4487924575805664, 0.22745773196220398, 0.04680657386779785, 0.24214932322502136, 0.028811771422624588, 0.06787258386611938, -0.5434041023254395, 0.058065999299287796, 0.12932290136814117, -0.07685311138629913, -0.6611807346343994, -0.6796523928642273, 0.5924071669578552, 0.47282934188842773, 0.06901300698518753, 0.4679059386253357, 0.037383049726486206, -0.18621623516082764, 0.3434479534626007, 0.24815070629119873, 0.8984994888305664, -0.3707820773124695, 0.21249480545520782, -0.3760991394519806, 0.11620790511369705, 0.29984980821609497, -0.30497393012046814, 0.07569675892591476, -0.30925410985946655, -0.34103772044181824, 0.031697843223810196, -0.16260278224945068, 0.17449603974819183, 0.3247876763343811, 0.07135892659425735, 0.24984535574913025, -0.04995465651154518, -0.08416316658258438, -0.02285482920706272, -0.1055406779050827, -0.05494902655482292, -0.5814418792724609, -0.13645035028457642, 0.1379915177822113, -0.0684126690030098, 0.1358148455619812, -0.13968180119991302, 0.20950870215892792, 0.28304970264434814, -0.13001705706119537, -0.43888306617736816, -0.0014410902513191104, -0.2389281690120697, -0.28302469849586487, -0.19298507273197174, -0.14825809001922607, -0.020520659163594246, 0.028984779492020607, 0.5220217704772949, 0.566985547542572, 0.015148257836699486, -0.10170690715312958, 0.1449865996837616, 0.10290709137916565, -0.05491602420806885, 0.11441821604967117, 0.09506598860025406, -0.08765758574008942, 0.06441815197467804, -0.0018644420197233558, -0.3893853724002838, -0.16964897513389587, 0.14564412832260132, -0.049754273146390915, 0.12668631970882416, 0.05350545421242714, -0.3307957053184509, 0.12411538511514664, 0.27437645196914673, -0.08970779180526733, 0.08354397863149643, 0.3032914698123932, -0.0005674802814610302, 0.2926304042339325, -0.198492631316185, -0.336445152759552, 0.0016808200161904097, 0.23420120775699615, 0.1770998239517212, -0.2752549648284912, 0.22372281551361084, 0.23387771844863892, -0.2575758695602417, -0.10630414634943008, 0.17240110039710999, -0.0763135626912117, -0.3368684947490692, 0.1599051058292389, 0.12803347408771515, 0.25585293769836426, -0.12171430885791779, 0.1438896805047989, 0.0312529094517231, -0.18699011206626892, 0.09780091047286987, -0.21967802941799164, -0.5614857077598572, -0.084002785384655, 0.07624699175357819, 0.15192456543445587, 0.5885525345802307, -0.30706706643104553, 0.1264452487230301, 0.37019917368888855, -0.21794314682483673, -0.01091821026057005, 0.08404569327831268, 0.09072933346033096, 0.10649771243333817, 0.2765714228153229, -0.026166992262005806, -0.1470145881175995, -0.023552987724542618, 0.08015049248933792, 0.08145543187856674, -0.25118884444236755, -0.021066829562187195, 0.18893611431121826, -0.10974301397800446, -0.02781972661614418, 0.23783805966377258, -0.19925962388515472, -0.32053253054618835, -0.3503115475177765, 0.07541828602552414, 0.3556351065635681, -0.12502522766590118, -0.22054581344127655, 0.30596616864204407, 0.19243359565734863, -0.39472466707229614, 0.36454716324806213, 0.11251580715179443, 0.13034465909004211, -0.10614511370658875, 0.17551173269748688, 0.20992980897426605, -0.014589156955480576, 0.12232200801372528, -0.1652107685804367, 0.2344045639038086, -0.02142023667693138, 0.15161868929862976, -0.20994508266448975, 0.10741492360830307, 0.1961648017168045, 0.271239310503006, 0.19622987508773804, -0.06289704144001007, 0.09379976987838745, 0.31838515400886536, 0.12733566761016846, -0.25582757592201233, -0.1813255250453949, 0.1610773205757141, -0.022101011127233505, 0.10443136096000671, 0.2958097457885742, 0.2726106345653534, 0.19737033545970917, -0.1681465357542038, 0.25173935294151306, 0.22230105102062225, -0.44655585289001465, 0.04788796603679657, 0.22981883585453033, 0.16019345819950104, 0.16910050809383392, 0.26858559250831604, 0.32564133405685425, 0.09999728947877884, 0.3341895639896393, 0.33404839038848877, 0.5820031762123108, 0.3988991379737854, 0.08125723898410797, -0.26379814743995667, -0.6308768391609192, 0.3162612020969391, 0.06252522766590118, 0.2412291020154953, 0.35690632462501526, -0.05552695319056511, 0.22979241609573364, 0.03538592532277107, -0.17069242894649506, -0.19887298345565796, 0.1212291568517685, -0.13756410777568817, -0.16653794050216675, 0.377259224653244, 0.016535578295588493, 0.3176468312740326, 0.10492143034934998, -0.04185616225004196, -0.09927204251289368, 0.26851582527160645, 0.001330553786829114, 0.1823672503232956, 0.11839209496974945, 0.16524450480937958, 0.06009786203503609, 0.2857713997364044, -0.18342357873916626, 0.1760757863521576, -0.043692752718925476, 0.04718415439128876, -0.13340774178504944, 0.538723886013031, 0.2672441005706787, 0.3809129297733307, -0.12416402250528336, 0.16159024834632874, -0.10296560823917389, 0.010156327858567238, -0.012483544647693634, 0.29421311616897583, -0.0430893637239933, -0.07433701306581497, 0.17864525318145752, 0.045570675283670425, -0.04420427232980728, 0.2325783669948578, -0.1303553730249405, 0.38554784655570984, -0.164139524102211, 0.33598873019218445, 0.09041409194469452, -0.2982104420661926, -0.18754348158836365, 0.20612406730651855, -0.2436426281929016, 0.15718427300453186, 0.740996778011322, -0.35968026518821716, -0.10596469044685364, -0.0848393514752388, 0.05386979877948761, 0.19892609119415283, 0.44216108322143555, 0.37874042987823486, 0.09707632660865784, -0.1298152357339859, 0.06909193843603134, -0.3757621645927429, -0.15619826316833496, -0.10441091656684875, 0.25843825936317444, -0.20273862779140472, -0.14423823356628418, 0.19736117124557495, 0.3004537522792816, -0.032004255801439285, -0.2971872389316559, -0.0014055450446903706, 0.4319012761116028, -0.2911931872367859, -0.1324739009141922, -0.23003672063350677, 0.06531874090433121, 0.02832096815109253, -0.47672662138938904, 0.1169423758983612, 0.19173556566238403, -0.11068721860647202, 0.03524298965930939, 0.07042454928159714, 0.1664671152830124, -0.0603749044239521, 0.45255011320114136, 0.033995989710092545, 0.18255171179771423, -0.12791816890239716, 0.00586546678096056, -0.3119235932826996, -0.07593907415866852, -0.22876925766468048, 0.23962247371673584, 0.051136575639247894, -0.12844936549663544, -0.549462616443634, -0.3066655099391937, -0.10700366646051407, -0.25877857208251953, -0.2332361340522766, 0.03912045806646347, -0.32623594999313354, -0.26825690269470215, -0.1688867211341858, -0.05690665915608406, 0.22410061955451965, 0.18542388081550598, 0.0212506465613842, 0.0982692763209343, -0.27644845843315125, -0.27640751004219055, 0.44505542516708374, -0.11665593832731247, -0.3241906762123108, -0.23451346158981323, 0.05785714462399483, 0.08003537356853485, -0.21779939532279968, -0.3854020833969116, 0.15555284917354584, 0.2995448112487793, -0.13096019625663757, 0.21521951258182526, 0.3185413181781769, -0.3890826106071472, 0.10243522375822067, -0.22066353261470795, 0.6346167325973511, -0.2192082703113556, 0.033623527735471725, -0.4068097174167633, -0.3738468587398529 ]
https://github.com/huggingface/datasets/issues/1776
[Question & Bug Report] Can we preprocess a dataset on the fly?
Hi @acul3, Please look at the discussion on a related Issue #1825. I think using `set_transform` after building from source should do.
I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532
22
[Question & Bug Report] Can we preprocess a dataset on the fly? I know we can use `Datasets.map` to preprocess a dataset, but I'm using it with very large corpus which generates huge cache file (several TB cache from a 400 GB text file). I have no disk large enough to save it. Can we preprocess a dataset on the fly without generating cache? BTW, I tried raising `writer_batch_size`. Seems that argument doesn't have any effect when it's larger than `batch_size`, because you are saving all the batch instantly after it's processed. Please check the following code: https://github.com/huggingface/datasets/blob/0281f9d881f3a55c89aeaa642f1ba23444b64083/src/datasets/arrow_dataset.py#L1532 Hi @acul3, Please look at the discussion on a related Issue #1825. I think using `set_transform` after building from source should do.
[ -0.4329630732536316, -0.1497633010149002, -0.021089786663651466, 0.011729610152542591, 0.48501771688461304, 0.2730880677700043, 0.30650511384010315, 0.27627474069595337, -0.17471252381801605, 0.10266084223985672, 0.09820462763309479, 0.1963547319173813, -0.08684225380420685, 0.24604541063308716, 0.26387161016464233, 0.14228397607803345, 0.2081042379140854, 0.08988007158041, -0.09663061797618866, 0.18759675323963165, -0.2959870994091034, -0.14257438480854034, -0.06332682073116302, -0.1839759796857834, -0.46941840648651123, -0.24277245998382568, -0.12922313809394836, 0.0019163883989676833, -0.18162092566490173, -0.20310622453689575, 0.29272398352622986, 0.23240569233894348, -0.014858360402286053, 0.4824581444263458, -0.00011419362999731675, 0.04881902039051056, 0.41278618574142456, -0.10139619559049606, -0.14203014969825745, -0.1252632439136505, 0.10220184177160263, -0.30306094884872437, -0.13483774662017822, -0.2586306035518646, -0.15554501116275787, -0.10205098986625671, 0.039701174944639206, -0.635534942150116, 0.43213528394699097, 0.14660967886447906, 0.2200482040643692, 0.14741523563861847, -0.04512258246541023, 0.12456950545310974, 0.2611005902290344, 0.3140599727630615, -0.38215991854667664, -0.10725545883178711, 0.18083660304546356, 0.03866816684603691, 0.03780967742204666, 0.15193010866641998, -0.3269195258617401, 0.005300465971231461, 0.35915690660476685, 0.11015156656503677, -0.23634220659732819, -0.5635489821434021, 0.14775314927101135, 0.2872590720653534, 0.4784778654575348, -0.5608299970626831, -0.7194263935089111, -0.26612693071365356, 0.14518246054649353, -0.3385508060455322, 0.10055822879076004, 0.4154755473136902, -0.17051531374454498, 0.06584508717060089, -0.4523692727088928, -0.43096181750297546, 0.025211773812770844, -0.3683643639087677, 0.24051526188850403, -0.14456792175769806, -0.2335287183523178, 0.02050020359456539, 0.005709639750421047, 0.18992941081523895, 0.4107075333595276, -0.21884334087371826, -0.3381608724594116, 0.4355345666408539, -0.21855604648590088, -0.218763068318367, -0.26613107323646545, 0.08142511546611786, 0.24573282897472382, 0.1398295909166336, 0.01550664845854044, -0.11616525053977966, -0.03259003907442093, -0.08937163650989532, 0.13607533276081085, 0.1203245148062706, -0.08448999375104904, -0.140830397605896, 0.28963711857795715, -0.22513513267040253, 0.09500012546777725, -0.09808139503002167, 0.0825609639286995, -0.4091346561908722, 0.3306643068790436, 0.1045781821012497, 0.3203134536743164, -0.3002011775970459, 0.39894571900367737, 0.014008771628141403, 0.1325966715812683, 0.015018142759799957, -0.3814518451690674, 0.14573507010936737, -0.11045293509960175, 0.05123041570186615, 0.14663822948932648, 0.14227300882339478, 0.061334364116191864, -0.1713283210992813, -0.12158597260713577, -0.05797422304749489, -0.01765688695013523, 0.3037647008895874, 0.10175821930170059, -0.20350636541843414, 0.09603378921747208, 0.19683174788951874, -0.06930606067180634, -0.14747829735279083, 0.15935644507408142, -0.4074447751045227, 0.17736877501010895, 0.34921619296073914, -0.025846116244792938, 0.08958020806312561, -0.04352710396051407, 0.35301414132118225, -0.19980388879776, 0.5373978018760681, -0.13544128835201263, -0.3122028708457947, 0.035628143697977066, 0.09458799660205841, -0.05318063497543335, 0.03737390786409378, -0.5619785785675049, 0.14266079664230347, 0.6161593794822693, 0.21491418778896332, 0.2612345814704895, 0.1844778060913086, -0.24947379529476166, -0.16102063655853271, 0.13912488520145416, 0.45780935883522034, -0.2424219697713852, 0.154250830411911, 0.30466291308403015, 0.0511811301112175, 0.13853561878204346, 0.09610176086425781, -0.02894975244998932, 0.20645155012607574, -0.038737792521715164, -0.19975215196609497, 0.3259775638580322, -0.0721958577632904, 0.04675348848104477, 0.33943668007850647, -0.09082122892141342, -0.2645246088504791, 0.08235381543636322, 0.13847169280052185, -0.02766038477420807, -0.09626708179712296, -0.05483678728342056, 0.42660588026046753, -0.019570529460906982, 0.23604385554790497, -0.18107101321220398, -0.44252780079841614, -0.28279420733451843, -0.07466945052146912, 0.017608996480703354, 0.13785243034362793, -0.19699272513389587, -0.27384844422340393, 0.05709025636315346, -0.18213431537151337, 0.2325853407382965, 0.34869933128356934, -0.045605555176734924, 0.04651264101266861, 0.05859531834721565, -0.14478524029254913, -0.38473060727119446, 0.22109247744083405, -0.10427147150039673, 0.04221183434128761, 0.11362704634666443, -0.43162107467651367, 0.12563380599021912, 0.1094217598438263, 0.07254570722579956, 0.106526218354702, 0.03961748629808426, -0.30190297961235046, 0.2947505712509155, -0.04109073802828789, -0.44443827867507935, 0.24860526621341705, -0.1694130301475525, 0.11282350867986679, -0.4200754165649414, -0.07612516731023788, 0.15064182877540588, -0.06473831087350845, -0.06186560541391373, -0.12362418323755264, -0.1879747360944748, -0.007473533973097801, -0.1552290916442871, 0.31024250388145447, -0.15093941986560822, 0.2376554310321808, -0.08336647599935532, 0.14791421592235565, -0.1031503975391388, -0.22167377173900604, 0.013470820151269436, -0.1461157202720642, 0.12049780786037445, -0.18983443081378937, -0.2374289333820343, 0.24055901169776917, -0.12544219195842743, 0.452813059091568, -0.024447092786431313, -0.10674013942480087, 0.19655971229076385, -0.0574268139898777, -0.06503468751907349, 0.09893986582756042, -0.04699452221393585, -0.043578267097473145, 0.7283758521080017, -0.08934205025434494, -0.064638651907444, -0.08555446565151215, 0.07168848812580109, 0.014611219055950642, -0.045049477368593216, 0.2503601610660553, -0.1430048793554306, -0.12394443154335022, -0.20581868290901184, 0.11238961666822433, 0.22712379693984985, 0.14604993164539337, 0.028182951733469963, 0.2094624787569046, 0.05400824546813965, -0.10658874362707138, 0.33124375343322754, 0.01954391971230507, 0.4602999985218048, -0.028526151552796364, 0.2461501806974411, 0.10565145313739777, -0.2152441442012787, 0.20443715155124664, 0.08516611903905869, 0.05613420158624649, -0.17285266518592834, 0.11263056844472885, 0.15506109595298767, -0.0694652646780014, 0.03615577146410942, 0.0005298245814628899, -0.2245992124080658, 0.08336025476455688, -0.1207847148180008, -0.030918128788471222, 0.0240627471357584, 0.05839431285858154, -0.4411787688732147, 0.3388659954071045, 0.05310337245464325, -0.1855522096157074, -0.18536719679832458, -0.21004681289196014, 0.2090856283903122, 0.0030890172347426414, 0.19118249416351318, -0.1702624410390854, 0.44990819692611694, -0.06540635973215103, 0.02909070998430252, -0.2961735427379608, 0.1470845639705658, 0.09489823877811432, -0.0052762823179364204, 0.35852470993995667, 0.014864805154502392, 0.027395285665988922, 0.20911329984664917, 0.1998988837003708, 0.059594955295324326, -0.16880881786346436, -0.18062813580036163, -0.20808079838752747, -0.05643495172262192, 0.01799064315855503, -0.1513291448354721, -0.0068998634815216064, -0.029733220115303993, -0.29022058844566345, 0.13177552819252014, -0.027170157060027122, 0.022543398663401604, 0.23140420019626617, 0.04084109142422676, -0.15084433555603027, -0.060904428362846375, 0.06513508409261703, -0.04116678610444069, -0.6186658143997192, 0.30167654156684875, -0.058781154453754425, -0.346543550491333, -0.04413434490561485, -0.027905281633138657, 0.017873315140604973, 0.36908262968063354, -0.6034703254699707, 0.0759538933634758, -0.43368813395500183, 0.07875853031873703, -0.15462014079093933, 0.19420553743839264, 0.32095032930374146, 0.1343018263578415, -0.09561944752931595, -0.034725748002529144, -0.17358720302581787, 0.014821157790720463, -0.15833085775375366, -0.008742972277104855, 0.25834763050079346, 0.42548224329948425, -0.014115246944129467, 0.7667748332023621, 0.15633858740329742, -0.040822096168994904, 0.3145274817943573, 0.01772342249751091, 0.5878828763961792, -0.3564192056655884, -0.12585048377513885, -0.1813509613275528, -0.21664366126060486, -0.14913709461688995, 0.07184404134750366, 0.25375959277153015, -0.25750088691711426, -0.2045571208000183, 0.07010903209447861, -0.11129362881183624, -0.11720439791679382, 0.15797679126262665, -0.35165512561798096, 0.2993708848953247, 0.04676293209195137, 0.10095985978841782, -0.26303333044052124, -0.3549571633338928, 0.1259233057498932, -0.05991806462407112, 0.6850693821907043, -0.15389978885650635, -0.18003727495670319, 0.1375817358493805, -0.6912075877189636, 0.22517623007297516, 0.010991448536515236, 0.2751893401145935, 0.16949231922626495, 0.012462491169571877, 0.06762024015188217, -0.3236367702484131, 0.5596727132797241, -0.20986291766166687, -0.018577815964818, 0.39164844155311584, -0.04108079895377159, -0.31858137249946594, 0.1438375562429428, 0.08320345729589462, 0.5215530395507812, -0.1703876256942749, 0.27302536368370056, -0.07997273653745651, -0.16310007870197296, 0.13640806078910828, 0.40824204683303833, -0.220516636967659, -0.4579721987247467, -0.2055659294128418, -0.21043691039085388, -0.2233048677444458, 0.1625543236732483, -0.0004980911035090685, -0.1777329444885254, -0.1616404801607132, -0.11082220077514648, -0.3879925608634949, 0.24192862212657928, -0.10167144238948822, -0.18166883289813995, 0.15948031842708588, -0.00702320272102952, 0.5028970241546631, 0.09145388752222061, -0.13548783957958221, -0.04670168086886406, 0.6026394367218018, -0.16953183710575104, -0.16210494935512543, -0.16363631188869476, 0.0054740216583013535, 0.3667348325252533, 0.3100357949733734, 0.028796905651688576, 0.1405542641878128, 0.0074568320997059345, 0.10563688725233078, -0.5073134899139404, 0.06009860709309578, 0.13150666654109955, -0.0806751400232315, -0.5603201985359192, -0.6287378668785095, 0.6531301736831665, 0.3827989399433136, 0.031117409467697144, 0.43192601203918457, 0.11654059588909149, -0.1684410721063614, 0.3139209747314453, 0.2665286064147949, 0.8644781708717346, -0.34680360555648804, 0.24904164671897888, -0.28386053442955017, 0.09723308682441711, 0.30669090151786804, -0.21822716295719147, 0.03435637801885605, -0.3303464651107788, -0.36207669973373413, 0.06883755326271057, -0.19249963760375977, 0.11415202170610428, 0.26704609394073486, 0.05115159973502159, 0.23594263195991516, -0.09587825834751129, -0.12192350625991821, -0.11976280063390732, -0.08171377331018448, -0.13603708148002625, -0.6008029580116272, -0.1783628761768341, 0.15159831941127777, -0.04680323228240013, 0.13191311061382294, -0.11452002823352814, 0.20925334095954895, 0.18113942444324493, -0.15071077644824982, -0.4558626115322113, 0.02701488323509693, -0.25615623593330383, -0.2469811886548996, -0.1386922001838684, -0.22689194977283478, -0.06806635111570358, 0.04060252010822296, 0.5350573658943176, 0.4937666058540344, -0.045357681810855865, -0.05543529987335205, 0.14985106885433197, 0.13934578001499176, -0.0006832262151874602, 0.1040051206946373, 0.13615235686302185, -0.05530368164181709, 0.06262122094631195, 0.005233269650489092, -0.3632959723472595, -0.11646461486816406, 0.18806399405002594, -0.16447433829307556, 0.07541096210479736, -0.05574507638812065, -0.25454941391944885, 0.07337760180234909, 0.24664431810379028, -0.11983111500740051, 0.09575603902339935, 0.2751671373844147, 0.0035104958806186914, 0.29702475666999817, -0.15720234811306, -0.36419063806533813, -0.02243085205554962, 0.2522279620170593, 0.18322858214378357, -0.27862435579299927, 0.35426849126815796, 0.19727660715579987, -0.2224346548318863, -0.13412638008594513, 0.18423666059970856, 0.018239207565784454, -0.4513963460922241, 0.2480618953704834, 0.12629753351211548, 0.18291251361370087, -0.11392167955636978, 0.17164704203605652, 0.020668938755989075, -0.18631500005722046, 0.10575831681489944, -0.16074873507022858, -0.5908622741699219, -0.07754473388195038, 0.13798788189888, 0.2136131227016449, 0.48762333393096924, -0.34529754519462585, 0.1147184893488884, 0.3632791340351105, -0.2515026926994324, -0.052747197449207306, 0.07163705676794052, 0.1376981884241104, 0.08145947754383087, 0.2629788815975189, 0.03636202961206436, -0.18999607861042023, -0.006794285494834185, 0.04136358201503754, 0.005094943568110466, -0.25640183687210083, -0.06515958905220032, 0.16688592731952667, -0.15672509372234344, -0.08775240182876587, 0.14472496509552002, -0.19975139200687408, -0.23089629411697388, -0.413813054561615, 0.16140425205230713, 0.3609611988067627, -0.10768518596887589, -0.222243532538414, 0.28471922874450684, 0.1251552253961563, -0.35747796297073364, 0.29585447907447815, 0.05763396620750427, 0.14309024810791016, -0.14669451117515564, 0.17992869019508362, 0.18287447094917297, -0.07039433717727661, 0.06894728541374207, -0.17544570565223694, 0.2120848149061203, 0.05600475147366524, 0.16812752187252045, -0.22200199961662292, 0.055201154202222824, 0.264810711145401, 0.3314075171947479, 0.19100385904312134, -0.07495532184839249, 0.07670259475708008, 0.29166820645332336, 0.17311078310012817, -0.26039522886276245, -0.16487731039524078, 0.07268157601356506, -0.08233833312988281, 0.11578017473220825, 0.27867794036865234, 0.23200039565563202, 0.1014925092458725, -0.10814902186393738, 0.2868589460849762, 0.17277809977531433, -0.4057709574699402, 0.08975952118635178, 0.2512679696083069, 0.12781791388988495, 0.1547183096408844, 0.32632535696029663, 0.3106878697872162, 0.188029482960701, 0.35937464237213135, 0.29825979471206665, 0.5835429430007935, 0.3375905156135559, 0.08546358346939087, -0.24754272401332855, -0.6166616082191467, 0.2919541299343109, 0.01268349401652813, 0.2537054419517517, 0.3417034149169922, 0.0011649865191429853, 0.22556471824645996, 0.04103035107254982, -0.2557654082775116, -0.24898681044578552, 0.14458711445331573, -0.1577441692352295, -0.1740821748971939, 0.3542083501815796, 0.034988854080438614, 0.3517550528049469, 0.13457542657852173, -0.0684276893734932, -0.0899401381611824, 0.32068219780921936, 0.04301096871495247, 0.1703484058380127, 0.10470455139875412, 0.22470693290233612, 0.007459487300366163, 0.30761927366256714, -0.15705162286758423, 0.19433294236660004, -0.0012028502533212304, 0.03919389843940735, -0.07298482954502106, 0.5906713008880615, 0.31275618076324463, 0.3928547501564026, -0.10747531801462173, 0.18590539693832397, -0.015037932433187962, -0.019770849496126175, -0.032872769981622696, 0.2742161452770233, -0.08664093166589737, -0.13490553200244904, 0.19345004856586456, 0.06458819657564163, -0.09403574466705322, 0.18811273574829102, -0.1571761667728424, 0.35709676146507263, -0.10758569091558456, 0.32263705134391785, 0.09698418527841568, -0.37179940938949585, -0.2190297394990921, 0.1861296445131302, -0.1853235810995102, 0.12987026572227478, 0.719150960445404, -0.3829757273197174, -0.06614185869693756, -0.11639691144227982, 0.06970562040805817, 0.2253580242395401, 0.5203016400337219, 0.3859860897064209, 0.06752891838550568, -0.17044565081596375, 0.07980519533157349, -0.3966829180717468, -0.11737968027591705, -0.10928894579410553, 0.2891942858695984, -0.15930107235908508, -0.09396269917488098, 0.17941808700561523, 0.2901890277862549, -0.002313632518053055, -0.3146267831325531, 0.04820330813527107, 0.431145578622818, -0.2662263512611389, -0.20243261754512787, -0.19070877134799957, 0.05741342529654503, 0.02341342717409134, -0.534294605255127, 0.13799317181110382, 0.1352618783712387, -0.07911624014377594, 0.07261018455028534, 0.1056390330195427, 0.1728833168745041, -0.009930265136063099, 0.42564502358436584, 0.07138736546039581, 0.1645066738128662, -0.13748182356357574, -0.01051588449627161, -0.3001004159450531, -0.1640690565109253, -0.24274182319641113, 0.1930490881204605, 0.05396368354558945, -0.03718462958931923, -0.4960959851741791, -0.2699706554412842, -0.14967074990272522, -0.24138052761554718, -0.16113317012786865, 0.10257010906934738, -0.34335362911224365, -0.17692607641220093, -0.18702994287014008, -0.04305091127753258, 0.19830229878425598, 0.21290720999240875, -0.018253887072205544, 0.1253938376903534, -0.30853521823883057, -0.38724827766418457, 0.5898024439811707, -0.15653620660305023, -0.3682814836502075, -0.21121831238269806, 0.1110895648598671, 0.09121095389127731, -0.22580230236053467, -0.3942165672779083, 0.23387758433818817, 0.2611788809299469, -0.12217787653207779, 0.12152639031410217, 0.2710578441619873, -0.37831708788871765, 0.08232264220714569, -0.22738538682460785, 0.6979738473892212, -0.22542038559913635, -0.017110886052250862, -0.42641425132751465, -0.29899001121520996 ]
https://github.com/huggingface/datasets/issues/1775
Efficient ways to iterate the dataset
It seems that selecting a subset of colums directly from the dataset, i.e., dataset["column"], is slow.
For a large dataset that does not fits the memory, how can I select only a subset of features from each example? If I iterate over the dataset and then select the subset of features one by one, the resulted memory usage will be huge. Any ways to solve this? Thanks
16
Efficient ways to iterate the dataset For a large dataset that does not fits the memory, how can I select only a subset of features from each example? If I iterate over the dataset and then select the subset of features one by one, the resulted memory usage will be huge. Any ways to solve this? Thanks It seems that selecting a subset of colums directly from the dataset, i.e., dataset["column"], is slow.
[ -0.27262160181999207, -0.3842427730560303, -0.09381960332393646, 0.33284223079681396, -0.06488404422998428, 0.06871713697910309, -0.08692667633295059, 0.2765882909297943, 0.15681560337543488, 0.18535152077674866, 0.10415671765804291, 0.09687289595603943, 0.07577300816774368, 0.17130185663700104, 0.05944902077317238, 0.024408679455518723, -0.11798327416181564, 0.2368057817220688, -0.19384336471557617, -0.09436491131782532, -0.32354000210762024, -0.33712974190711975, -0.3414105474948883, -0.41392114758491516, -0.04482128843665123, -0.2763500511646271, -0.0030550258234143257, -0.07011622190475464, -0.10049591958522797, -0.20227336883544922, 0.06491021066904068, -0.10592060536146164, 0.17237043380737305, 0.13137808442115784, -0.00011107683531008661, -0.30966028571128845, -0.006171741522848606, -0.01679750718176365, -0.21811740100383759, 0.2127900868654251, -0.4324010908603668, -0.15368755161762238, -0.20967364311218262, -0.4574205279350281, 0.07893585413694382, -0.19354432821273804, 0.04185173660516739, -0.3434145748615265, -0.39452654123306274, 0.001965605653822422, 0.17221908271312714, 0.36327454447746277, -0.42815160751342773, -0.21938204765319824, 0.16364815831184387, 0.2020663321018219, -0.18606433272361755, -0.16880902647972107, 0.3972513675689697, -0.03171677142381668, 0.11051064729690552, 0.19868189096450806, 0.0027410760521888733, 0.06433293968439102, 0.45815378427505493, -0.09333732724189758, -0.26952967047691345, -0.09125279635190964, 0.2907189130783081, 0.35707515478134155, 0.7055128216743469, 0.014239341951906681, -0.020415622740983963, -0.2548278868198395, -0.11469149589538574, -0.4821661710739136, -0.0554717518389225, 0.20977646112442017, -0.18124064803123474, 0.17940740287303925, -0.37548521161079407, -0.2821715176105499, -0.1214117780327797, 0.10099439322948456, 0.22518160939216614, -0.1510578989982605, 0.07024750113487244, 0.009548884816467762, 0.5192235112190247, -0.22286082804203033, 0.2806358337402344, -0.18835236132144928, 0.04239552468061447, 0.12819457054138184, -0.5794638991355896, -0.30979427695274353, -0.11188437044620514, -0.062491923570632935, 0.3452717065811157, 0.10768434405326843, 0.0815117210149765, 0.09048423916101456, 0.23070436716079712, 0.064364492893219, 0.3840830326080322, -0.13383029401302338, -0.18832547962665558, 0.13455766439437866, 0.1456451565027237, -0.1606636792421341, -0.0020953682251274586, -0.09078080952167511, -0.21826620399951935, 0.09379235655069351, 0.20854052901268005, -0.4199846684932709, -0.15693290531635284, -0.12900252640247345, -0.14942078292369843, -0.12614335119724274, -0.13786207139492035, -0.0162504892796278, -0.024644413962960243, 0.4202549159526825, 0.06194580718874931, -0.18893109261989594, -0.42650651931762695, -0.011110953986644745, -0.22338925302028656, -0.264056921005249, -0.29864922165870667, 0.28442373871803284, -0.049871187657117844, 0.018967123702168465, 0.0652073472738266, 0.19942201673984528, 0.15405622124671936, -0.13862130045890808, -0.15471772849559784, -0.139239102602005, 0.05473347380757332, -0.33606356382369995, 0.2683523893356323, -0.00828215479850769, -0.1358439326286316, -0.007702462375164032, -0.05977287143468857, 0.33612537384033203, -0.324505090713501, 0.219170942902565, 0.14632897078990936, -0.5682116746902466, 0.18341216444969177, 0.0710727721452713, 0.0017383215017616749, -0.06673160940408707, -0.3420162498950958, 0.42012307047843933, -0.09898892045021057, 0.4257795214653015, -0.09953361749649048, 0.07064790278673172, -0.30745401978492737, -0.1526211053133011, 0.3723749816417694, 0.4698694050312042, -0.32939857244491577, 0.05108736827969551, 0.12026539444923401, 0.1393195241689682, 0.3856450021266937, 0.41930270195007324, -0.2203957736492157, 0.15258504450321198, -0.12243924289941788, 0.09594621509313583, 0.19025565683841705, 0.18200385570526123, -0.5025997161865234, 0.34160882234573364, 0.10806809365749359, 0.07228885591030121, 0.2504364848136902, 0.5023422241210938, 0.07303447276353836, 0.06381163746118546, -0.12981072068214417, 0.39353543519973755, -0.27757880091667175, 0.1868896782398224, -0.0036725907120853662, -0.34795206785202026, 0.21955877542495728, 0.039670154452323914, 0.2890777587890625, 0.24120962619781494, -0.008328637108206749, 0.04432743042707443, 0.28573039174079895, -0.3043042719364166, -0.15061111748218536, 0.1334230750799179, 0.5146898627281189, -0.003933854401111603, -0.04092642292380333, -0.30393725633621216, -0.3744557201862335, 0.22730405628681183, 0.45749470591545105, -0.5265104174613953, 0.3239099681377411, -0.1340288370847702, 0.10735779255628586, 0.0188047643750906, 0.1776626706123352, 0.14124822616577148, 0.017536059021949768, -0.04448578879237175, 0.2947915494441986, -0.4913443922996521, -0.23103612661361694, 0.0905998945236206, -0.30486738681793213, -0.10073433071374893, -0.29959169030189514, -0.016309265047311783, 0.5265923738479614, 0.001910282066091895, 0.21377617120742798, -0.02868025004863739, -0.03288332745432854, -0.29071831703186035, 0.14983302354812622, 0.14835083484649658, 0.37718772888183594, -0.06583217531442642, 0.1169118732213974, 0.35292860865592957, 0.08801841735839844, -0.1726701855659485, 0.047459930181503296, -0.32509535551071167, 0.21334095299243927, 0.031035294756293297, -0.21053849160671234, 0.15715539455413818, 0.09874704480171204, 0.519926130771637, 0.29630374908447266, -0.0036356442142277956, 0.02799730934202671, -0.03092878870666027, 0.27649715542793274, 0.07144278287887573, 0.1936665177345276, 0.17368634045124054, 0.1350107192993164, 0.35304903984069824, -0.6447689533233643, 0.04549647495150566, 0.19942624866962433, 0.0886547788977623, -0.09189154952764511, 0.025197792798280716, -0.1220782995223999, 0.0939575582742691, 0.12174858152866364, -0.3537808060646057, -0.029660750180482864, 0.0877935141324997, 0.03548107296228409, -0.13502447307109833, 0.08790725469589233, 0.10482888668775558, 0.12757377326488495, 0.2802188992500305, 0.30643150210380554, -0.3647531270980835, -0.04244820028543472, -0.2706395983695984, -0.1003275066614151, 0.067124143242836, 0.04948950186371803, 0.11458402127027512, 0.0018407488241791725, 0.07246936112642288, -0.3552091419696808, -0.11684765666723251, 0.20576047897338867, 0.33131805062294006, 0.23934189975261688, -0.11047415435314178, -0.11246538162231445, 0.5158165097236633, -0.058107469230890274, -0.10628627240657806, -0.1323300004005432, 0.5061984658241272, -0.012050504796206951, 0.016814135015010834, 0.11033722013235092, -0.060342639684677124, -0.06999918818473816, 0.004581254441291094, 0.35465866327285767, 0.13781903684139252, 0.37368911504745483, 0.1214236244559288, -0.16788367927074432, -0.4728029668331146, 0.1906895786523819, 0.12772130966186523, 0.2162531465291977, 0.0835692435503006, -0.19907686114311218, 0.12865084409713745, -0.35191407799720764, 0.10471862554550171, -0.16720610857009888, 0.19804896414279938, -0.02788822539150715, 0.0853998139500618, -0.0343412384390831, -0.019679993391036987, 0.3902202844619751, -0.320862740278244, -0.2228170484304428, -0.29233503341674805, 0.3292642831802368, 0.02463519014418125, 0.24423359334468842, -0.011665502563118935, 0.05370372161269188, -0.26100805401802063, -0.06643924862146378, 0.023643705993890762, 0.05866764113306999, -0.1673671305179596, 0.28998512029647827, -0.07205750793218613, -0.19385044276714325, -0.07575725018978119, 0.0666716918349266, -0.028664065524935722, 0.5141788721084595, -0.40759119391441345, 0.06451784819364548, -0.5274331569671631, -0.046771347522735596, -0.18022356927394867, 0.034718550741672516, -0.0563659593462944, -0.20879246294498444, -0.036418382078409195, 0.05832964554429054, -0.027385946363210678, 0.20153771340847015, 0.1771993190050125, 0.05472693219780922, 0.36817049980163574, 0.17765527963638306, 0.22605295479297638, 0.29137861728668213, 0.3049384653568268, 0.28295305371284485, 0.23410873115062714, -0.09187386184930801, -0.1326294243335724, 0.0755496397614479, -0.042837899178266525, 0.22393879294395447, -0.11861785501241684, -0.24476370215415955, 0.2743472158908844, -0.10573239624500275, -0.2245054990053177, -0.004137290641665459, -0.061806537210941315, 0.0859006717801094, -0.19294409453868866, 0.25236591696739197, 0.010164553299546242, 0.26695144176483154, 0.15922722220420837, -0.05740196257829666, -0.33614546060562134, 0.041320931166410446, 0.07890225201845169, -0.38244765996932983, 0.300942063331604, 0.009793388657271862, -0.622649073600769, -0.14969013631343842, -0.3150057792663574, -0.004922348074615002, -0.14701294898986816, 0.323296457529068, 0.1405625343322754, -0.3313429653644562, 0.03582686185836792, 0.27140259742736816, 0.5188843011856079, 0.27716055512428284, -0.19719108939170837, -0.09966330230236053, -0.6063252091407776, -0.004659771453589201, 0.19855277240276337, -0.33831876516342163, 0.4118959307670593, -0.08648490905761719, 0.1271386593580246, -0.13116160035133362, -0.3343246579170227, 0.3492298722267151, 0.5830069184303284, -0.1878552883863449, -0.18906845152378082, 0.22679127752780914, -0.23298576474189758, -0.060350243002176285, 0.23889705538749695, 0.2808484435081482, 0.05247851833701134, 0.26561814546585083, -0.05321592465043068, -0.39002081751823425, -0.06995579600334167, 0.4186622202396393, 0.15853270888328552, 0.09488458186388016, -0.09744404256343842, 0.3590678870677948, 0.042389869689941406, -0.008367280475795269, 0.42336830496788025, 0.5041760206222534, 0.24585825204849243, -0.41548389196395874, 0.04524527117609978, -0.10063862800598145, 0.7665144205093384, 0.2695264518260956, 0.018677949905395508, 0.2186742126941681, -0.21982745826244354, 0.17893792688846588, -0.3878568410873413, -0.13028490543365479, 0.02503276988863945, -0.15455244481563568, -0.25649335980415344, -0.38098615407943726, 0.4144182503223419, 0.015340563841164112, -0.0022170438896864653, 0.29920855164527893, -0.04441153630614281, 0.10379278659820557, 0.0025707639288157225, 0.24790546298027039, 0.7095938324928284, -0.1336071938276291, -0.15034614503383636, -0.10700703412294388, 0.3820204734802246, 0.21217702329158783, -0.03533191978931427, 0.306155264377594, -0.18318729102611542, -0.8363989591598511, 0.04469486325979233, -0.11120472103357315, -0.018226318061351776, 0.23773637413978577, 0.1937696635723114, 0.45454758405685425, -0.07200365513563156, 0.10756871104240417, 0.06591984629631042, -0.14685291051864624, -0.07419641315937042, -0.21595779061317444, 0.04876603186130524, 0.07831553369760513, 0.18018214404582977, -0.02308846078813076, 0.09461144357919693, 0.15205000340938568, 0.14820203185081482, -0.014676577411592007, -0.2205895036458969, -0.04446776583790779, -0.3808140456676483, 0.043025773018598557, 0.02438829094171524, -0.3118440508842468, 0.059128016233444214, -0.02490995265543461, 0.0035378525499254465, 0.27774491906166077, 0.10991209000349045, 0.03522517904639244, 0.25037288665771484, 0.10686896741390228, -0.12626247107982635, 0.07853417843580246, -0.0459505096077919, 0.03179926797747612, -0.1842198669910431, 0.11450069397687912, -0.004938615020364523, 0.052903350442647934, -0.09107103198766708, -0.0822482481598854, 0.217292919754982, 0.05485892295837402, -0.4014469385147095, 0.11690208315849304, -0.12054812163114548, -0.1110372319817543, 0.11514782160520554, 0.08136564493179321, -0.06540475785732269, 0.46366408467292786, 0.09197921305894852, -0.14152823388576508, -0.1286737471818924, -0.14422059059143066, 0.2252933830022812, 0.09657212346792221, 0.3756392002105713, 0.1870124638080597, -0.20875148475170135, -0.25220027565956116, 0.16316230595111847, 0.30878230929374695, 0.1714208871126175, -0.022755233570933342, -0.33256396651268005, 0.1336076408624649, -0.018455976620316505, 0.1659058779478073, 0.062169793993234634, -0.2094888538122177, -0.2350197434425354, -0.022191358730196953, -0.030751241371035576, 0.34044188261032104, 0.2304006814956665, 0.2985265851020813, -0.23097971081733704, -0.3417853116989136, -0.4882930815219879, 0.436547189950943, -0.23480986058712006, -0.05076258257031441, -0.31533533334732056, 0.2696283459663391, 0.15662617981433868, 0.3287506699562073, -0.19833965599536896, -0.03837456554174423, 0.13484500348567963, 0.17537102103233337, 0.040010519325733185, -0.19483743607997894, -0.08217926323413849, 0.10318846255540848, 0.026835259050130844, -0.2245441973209381, 0.03377409651875496, -0.2329859882593155, -0.3304448127746582, -0.46210533380508423, 0.24279488623142242, -0.02961655892431736, 0.1497240513563156, -0.02825164422392845, 0.2559705674648285, -0.4835481643676758, -0.2318078577518463, 0.37301570177078247, 0.10596194863319397, 0.13763117790222168, 0.1328076273202896, 0.23427575826644897, 0.305788516998291, -0.15166740119457245, -0.1500680148601532, 0.012535898014903069, 0.06229658052325249, -0.19018876552581787, -0.12724104523658752, 0.17842711508274078, 0.07797151058912277, 0.322512149810791, -0.13249064981937408, 0.616122305393219, 0.20120657980442047, 0.17323075234889984, 0.3271649479866028, 0.22360490262508392, -0.14298520982265472, -0.44846823811531067, 0.013640978373587132, -0.2504252791404724, 0.18734389543533325, 0.5648916959762573, 0.22236326336860657, 0.27217036485671997, -0.1308407336473465, -0.36728978157043457, 0.10985025763511658, -0.05405468866229057, 0.023271463811397552, 0.2495570033788681, 0.21166931092739105, -0.45969492197036743, 0.01725110039114952, 0.5931339263916016, 0.47601643204689026, 0.5107029676437378, -0.08483060449361801, 0.3243487775325775, 0.22218282520771027, 0.1353188455104828, -0.12162452191114426, -0.6607634425163269, -0.08439408987760544, 0.40373238921165466, -0.03185853734612465, 0.015597526915371418, -0.18821580708026886, -0.42648062109947205, 0.02123088203370571, -0.10185334086418152, -0.25721409916877747, -0.0009436774998903275, 0.07716412097215652, -0.12220274657011032, -0.024195605888962746, -0.2490433007478714, -0.14891259372234344, 0.20847028493881226, 0.018962102010846138, -0.49599966406822205, 0.36104410886764526, 0.006727535277605057, 0.3690359890460968, -0.20162662863731384, 0.5517864227294922, -0.010425388813018799, 0.2209765911102295, -0.39736437797546387, 0.0490524023771286, -0.21843986213207245, 0.08519978821277618, -0.0450378954410553, 0.09113281965255737, -0.23293064534664154, 0.11488005518913269, -0.015088798478245735, -0.026608647778630257, -0.17860575020313263, -0.2313799411058426, -0.1345185935497284, -0.2221692055463791, -0.23199443519115448, 0.17451797425746918, 0.3362201750278473, -0.021949077025055885, 0.018802925944328308, 0.12200822681188583, 0.06443315744400024, -0.23888395726680756, -0.6822421550750732, -0.21424148976802826, 0.1744689643383026, -0.29108020663261414, 0.15593451261520386, 0.02211090922355652, 0.06554923951625824, -0.28236573934555054, 0.4207375645637512, -0.4660411775112152, 0.19194312393665314, 0.5151315927505493, 0.092682845890522, -0.5289086699485779, 0.4705035984516144, 0.016159601509571075, 0.030972789973020554, -0.2906501293182373, -0.23197302222251892, -0.08498775213956833, -0.06964027136564255, -0.413206547498703, -0.13491569459438324, 0.5719476342201233, 0.4682937562465668, 0.009672669693827629, 0.1252073049545288, -0.07981476932764053, 0.04344119876623154, -0.05456194654107094, 0.4297460913658142, -0.24003389477729797, -0.4153178930282593, 0.06120854616165161, 0.21969248354434967, 0.04983494430780411, -0.3647942543029785, 0.40844395756721497, -0.21422278881072998, 0.028203167021274567, -0.13760927319526672, 0.06829286366701126, 0.24236728250980377, 0.101211778819561, 0.20611782371997833, -0.11860339343547821, -0.05028528347611427, 0.06608552485704422, -0.04802268370985985, 0.0322190597653389, -0.07951032370328903, 0.007277423050254583, 0.14199185371398926, -0.03713501989841461, 0.08332303166389465, -0.2190539538860321, 0.39156895875930786, 0.08811062574386597, 0.1482817828655243, -0.06998603045940399, -0.14480505883693695, 0.07046791911125183, 0.0794520303606987, -0.14188919961452484, 0.33474087715148926, 0.2606511116027832, 0.10037503391504288, -0.24800854921340942, -0.04574858397245407, -0.030072461813688278, 0.01210181787610054, 0.1946263164281845, 0.0748133659362793, -0.3734346032142639, -0.27004244923591614, 0.16322281956672668, 0.2970549166202545, -0.016514306887984276, -0.11672036349773407, -0.08522696793079376, 0.31822073459625244, -0.25200992822647095, -0.012192508205771446, 0.20005221664905548, 0.012672323733568192, -0.23843660950660706, -0.019535670056939125, 0.42328643798828125, -0.3153415024280548, -0.2699568569660187, -0.23088619112968445, -0.3392125368118286 ]
https://github.com/huggingface/datasets/issues/1774
is it possible to make slice to be more compatible like python list and numpy?
Hi ! Thanks for reporting. I am working on changes in the way data are sliced from arrow. I can probably fix your issue with the changes I'm doing. If you have some code to reproduce the issue it would be nice so I can make sure that this case will be supported :) I'll make a PR in a few days
Hi, see below error: ``` AssertionError: Requested slice [:10000000000000000] incompatible with 20 examples. ```
62
is it possible to make slice to be more compatible like python list and numpy? Hi, see below error: ``` AssertionError: Requested slice [:10000000000000000] incompatible with 20 examples. ``` Hi ! Thanks for reporting. I am working on changes in the way data are sliced from arrow. I can probably fix your issue with the changes I'm doing. If you have some code to reproduce the issue it would be nice so I can make sure that this case will be supported :) I'll make a PR in a few days
[ 0.004518918227404356, -0.06874572485685349, -0.24153338372707367, 0.05697212740778923, 0.4289456307888031, -0.30124396085739136, 0.1267024427652359, 0.37132731080055237, -0.13171707093715668, 0.4324040412902832, -0.014955357648432255, 0.7657299637794495, -0.07993330806493759, 0.2857096791267395, -0.3763236701488495, -0.488015741109848, -0.021064547821879387, 0.1064816489815712, 0.25148341059684753, 0.12021005898714066, 0.05524180084466934, 0.0996667668223381, -0.33966708183288574, 0.11706812679767609, -0.18887728452682495, -0.17909309267997742, 0.24903495609760284, -0.021579749882221222, -0.0056372531689703465, -0.2691526412963867, -0.12614190578460693, -0.4162087142467499, 0.0354161262512207, 0.19070552289485931, -0.00010930777352768928, 0.11382865160703659, 0.5290835499763489, 0.042696304619312286, -0.207660511136055, -0.05074654147028923, 0.2870475649833679, -0.487958163022995, 0.24212954938411713, -0.24164527654647827, 0.0444297268986702, 0.055497586727142334, -0.373524010181427, 0.010754558257758617, 0.4677681028842926, -0.02646511420607567, 0.25452566146850586, 0.006299060769379139, 0.349065363407135, 0.04596468433737755, 0.07097980380058289, 0.3102608919143677, -0.20729519426822662, -0.137246772646904, 0.505874514579773, 0.4029480814933777, 0.26839905977249146, 0.10324191302061081, -0.0779399573802948, 0.04054419323801994, -0.42705652117729187, 0.004428960848599672, -0.06847932189702988, -0.37396928668022156, -0.11772750318050385, 0.5738005042076111, 0.17283526062965393, 0.192846417427063, -0.21517591178417206, -0.01067260093986988, -0.30153679847717285, -0.26505088806152344, -0.15549549460411072, 0.10122976452112198, -0.09724120050668716, 0.10499022901058197, 0.06905714422464371, 0.005789807066321373, -0.13160590827465057, 0.30300870537757874, 0.2846273183822632, 0.48967263102531433, -0.035527609288692474, 0.10823570191860199, 0.16356492042541504, -0.350335031747818, 0.22685815393924713, 0.12437153607606888, -0.07456111162900925, -0.09666161239147186, -0.15927758812904358, -0.005347684025764465, -0.5801076889038086, 0.16886600852012634, 0.14843454957008362, -0.006306830793619156, 0.32387226819992065, 0.4233802258968353, -0.15026269853115082, 0.15021993219852448, 0.2346859574317932, -0.06387874484062195, -0.08610902726650238, 0.004874121863394976, 0.13109643757343292, -0.1369224190711975, 0.10436225682497025, -0.028941834345459938, 0.2619711756706238, -0.3201723098754883, -0.23995375633239746, 0.0034460928291082382, -0.02589196339249611, -0.07905944436788559, -0.0733679011464119, -0.2654663026332855, -0.32960715889930725, -0.0969419777393341, 0.3133120536804199, 0.12846292555332184, -0.02120145782828331, 0.09652937203645706, -0.17791372537612915, 0.2430862933397293, -0.19942577183246613, -0.12514303624629974, 0.008212579414248466, 0.03852338716387749, 0.16896679997444153, -0.48337891697883606, -0.03313780575990677, -0.24857427179813385, -0.005878372583538294, -0.004819866269826889, 0.33141353726387024, 0.08670290559530258, -0.14928336441516876, -0.01488778181374073, 0.06281966716051102, 0.01986059360206127, 0.07478554546833038, -0.21424534916877747, 0.17393586039543152, 0.06721017509698868, -0.0024389245081692934, 0.40904951095581055, -0.5157788395881653, -0.16852515935897827, -0.14786452054977417, 0.13076530396938324, 0.44577503204345703, 0.27311503887176514, 0.22074387967586517, -0.1539468914270401, 0.005732470192015171, -0.32267528772354126, -0.08110617846250534, -0.1813511848449707, 0.2451278418302536, -0.3095429241657257, 0.22090043127536774, -0.393146276473999, -0.3490608036518097, 0.08533735573291779, -0.41806650161743164, 0.2275339663028717, 0.2932502031326294, 0.7705193758010864, -0.18120385706424713, -0.2930038571357727, -0.030712978914380074, 0.3370468020439148, 0.4182482957839966, 0.10503299534320831, -0.24538485705852509, 0.20372527837753296, 0.05093953013420105, -0.17191071808338165, -0.32833895087242126, 0.26730722188949585, 0.15334415435791016, -0.20945709943771362, -0.020972969010472298, 0.16960258781909943, 0.04616339132189751, -0.03516242280602455, -0.25009655952453613, -0.4086688160896301, 0.2898605763912201, -0.08881473541259766, -0.06981382519006729, -0.14063626527786255, 0.2050488293170929, -0.3768812119960785, 0.26097556948661804, -0.0919981598854065, 0.024756040424108505, 0.011076589114964008, 0.4300156533718109, -0.40441247820854187, 0.10269002616405487, -0.09497807919979095, 0.16022497415542603, -0.1923356056213379, -0.18117131292819977, -0.042261745780706406, -0.17419062554836273, 0.014171036891639233, 0.11395417898893356, 0.2723790109157562, 0.2118363380432129, 0.17267799377441406, 0.14381814002990723, -0.4210803806781769, 0.35865554213523865, -0.19222013652324677, 0.03350943326950073, -0.03311179205775261, -0.19498208165168762, 0.05276495963335037, -0.16439849138259888, 0.33956313133239746, -0.30220454931259155, -0.31051719188690186, -0.11811597645282745, 0.16783368587493896, 0.23984473943710327, -0.189041405916214, -0.23283283412456512, 0.2748934328556061, 0.10147607326507568, -0.18204045295715332, -0.26862865686416626, 0.05321642383933067, 0.16151711344718933, -0.46485158801078796, 0.23352791368961334, 0.2280951589345932, 0.013751965947449207, -0.0216455589979887, 0.008042320609092712, 0.2652316093444824, -0.5424764752388, 0.36303386092185974, 0.09047216176986694, 0.2836490571498871, 0.19754257798194885, 0.12664471566677094, 0.06523668020963669, -0.031609389930963516, 0.3338303565979004, 0.12314757704734802, -0.1631329506635666, -0.1990453153848648, -0.14837270975112915, 0.012620563618838787, -0.003790115239098668, -0.07543319463729858, 0.25894904136657715, 0.2821463644504547, 0.03974425047636032, 0.1176438257098198, -0.01547127403318882, -0.4251081049442291, 0.1360589563846588, 0.23541948199272156, -0.08374491333961487, -0.15847358107566833, 0.23018218576908112, -0.33596327900886536, 0.23322820663452148, 0.4529043734073639, 0.0288973618298769, -0.12563379108905792, 0.072596974670887, -0.004652927629649639, 0.05299536883831024, 0.22063487768173218, -0.2965284287929535, 0.016503898426890373, -0.06173503398895264, 0.13545510172843933, -0.32681092619895935, 0.23842106759548187, 0.046546321362257004, -0.8412545323371887, -0.19151471555233002, -0.3362047076225281, 0.0675198882818222, 0.03706200793385506, -0.21092140674591064, 0.30763936042785645, 0.1330847293138504, 0.10196252912282944, -0.02713613770902157, 0.3244498074054718, -0.10163966566324234, -0.1711578071117401, -0.30021193623542786, 0.1642317920923233, 0.1031268835067749, 0.3488464653491974, -0.08328801393508911, 0.18779243528842926, 0.022753575816750526, 0.029557889327406883, -0.40923014283180237, 0.00015369484026450664, -0.03464685007929802, 0.5563626289367676, 0.10881595313549042, -0.00256633129902184, -0.1718284636735916, -0.3161523938179016, 0.18275970220565796, -0.41255077719688416, -0.05620681121945381, 0.31780824065208435, 0.03687100112438202, -0.23726142942905426, 0.010753712616860867, 0.01600165106356144, -0.6098572611808777, -0.33519598841667175, 0.3220384418964386, 0.23634740710258484, 0.15858738124370575, -0.12598131597042084, 0.191772922873497, -0.15303295850753784, 0.27359122037887573, -0.07464037090539932, -0.031809642910957336, 0.06879038363695145, 0.12471926957368851, -0.15668268501758575, -0.19345641136169434, -0.13489264249801636, -0.17708198726177216, -0.11678378283977509, -0.0765608549118042, 0.04151639714837074, 0.19299393892288208, -0.30297812819480896, -0.05051001161336899, -0.12263583391904831, 0.13210169970989227, 0.3967475891113281, 0.15604045987129211, -0.10275191813707352, -0.05668717250227928, -0.18042103946208954, 0.10745767503976822, 0.02325531467795372, -0.13322821259498596, 0.4811723232269287, 0.34658169746398926, 0.12792819738388062, 0.368839293718338, 0.24778643250465393, -0.11961693316698074, 0.28477755188941956, 0.2797137200832367, 0.03908978030085564, -0.10420889407396317, -0.27761194109916687, 0.22766445577144623, -0.0037568011321127415, -0.22757455706596375, 0.01224551722407341, 0.014104519970715046, 0.04186071828007698, 0.037719592452049255, -0.21821323037147522, -0.43958044052124023, -0.17612069845199585, 0.21338436007499695, 0.09213267266750336, -0.048664871603250504, -0.11010591685771942, -0.1205703616142273, -0.272211492061615, -0.22614572942256927, 0.10582709312438965, -0.12370344996452332, 0.4476039707660675, -0.24463507533073425, -0.3568993806838989, -0.545268714427948, 0.0441708043217659, 0.5647820830345154, 0.3321603536605835, 0.24900078773498535, -0.027846459299325943, -0.1814679503440857, 0.05980484560132027, 0.05941745266318321, 0.6105980277061462, -0.20745441317558289, -0.38502541184425354, -0.10524825006723404, 0.09172704815864563, -0.1567702740430832, 0.22886796295642853, -0.15902139246463776, 0.3620496988296509, 0.27989792823791504, -0.19278296828269958, -0.08452378958463669, 0.0735429897904396, 0.28324612975120544, 0.2585209906101227, -0.050709616392850876, -0.04524878412485123, 0.22437502443790436, 0.2511662542819977, -0.19117282330989838, -0.06400161981582642, -0.08683665841817856, 0.09991633892059326, -0.11302284151315689, -0.23518416285514832, -0.4449388384819031, -0.4831210970878601, -0.1476334184408188, -0.25867339968681335, 0.3886399269104004, -0.2742813229560852, -0.018473174422979355, -0.32520779967308044, 0.28516435623168945, 0.21689744293689728, 0.2599502503871918, -0.1063728854060173, 0.19403082132339478, -0.2688569128513336, 0.07684460282325745, 0.25816065073013306, 0.0847618505358696, 0.040571123361587524, 0.1307302564382553, 0.04827558249235153, 0.15610508620738983, 0.11980944871902466, -0.5726235508918762, -0.031453073024749756, -0.11100654304027557, -0.21290990710258484, 0.36976900696754456, 0.4043025076389313, 0.30055779218673706, -0.032588016241788864, 0.44407105445861816, -0.19861401617527008, 0.07895421236753464, 0.19986414909362793, 0.45214471220970154, 0.9886338114738464, 0.10132978856563568, -0.15300913155078888, -0.015924541279673576, -0.05972008407115936, 0.42669469118118286, 0.10081994533538818, 0.16639722883701324, -0.3995175063610077, -0.15024809539318085, -0.031938981264829636, -0.22491778433322906, -0.11852646619081497, 0.056129615753889084, -0.31102997064590454, -0.05639667809009552, -0.5337850451469421, -0.04039730131626129, -0.2572265863418579, 0.0648106038570404, 0.07965042442083359, -0.19687621295452118, -0.3503144681453705, 0.13155418634414673, -0.15240882337093353, -0.3069128394126892, -0.018340928480029106, -0.30181822180747986, -0.20964668691158295, -0.2561686635017395, -0.12400134652853012, 0.0877361074090004, -0.30598917603492737, 0.4181004762649536, 0.2314327508211136, -0.45860156416893005, 0.21116089820861816, 0.05154389888048172, 0.22252093255519867, 0.09783835709095001, -0.15630337595939636, -0.036019500344991684, 0.13182973861694336, -0.049344561994075775, 0.06609800457954407, 0.20491895079612732, 0.1444838047027588, 0.002168908715248108, -0.11256363242864609, 0.14950832724571228, 0.0704617127776146, -0.5966780781745911, -0.28477656841278076, 0.14023180305957794, 0.11454600840806961, -0.2185785323381424, -0.2229594588279724, -0.26255178451538086, -0.40285447239875793, -0.16191086173057556, 0.14603528380393982, 0.25624319911003113, -0.03795851394534111, 0.38832801580429077, 0.5429607033729553, 0.17845550179481506, -0.04049184173345566, -0.032742712646722794, 0.14418794214725494, 0.06966443359851837, 0.17163127660751343, 0.3212610185146332, -0.2490285485982895, -0.18906891345977783, 0.18010084331035614, -0.18167294561862946, -0.05412517860531807, 0.025687985122203827, -0.08075301349163055, 0.01550231408327818, 0.06344275921583176, 0.3246158957481384, 0.14240802824497223, 0.48621705174446106, -0.4675268232822418, -0.3633801341056824, -0.24187257885932922, 0.3637571334838867, 0.05072981119155884, 0.13703590631484985, -0.20090019702911377, -0.0810730829834938, -0.21092160046100616, 0.2939010262489319, -0.2792302966117859, 0.20672917366027832, 0.06030847877264023, 0.12929873168468475, -0.383312851190567, -0.10929954797029495, -0.06500434875488281, 0.016928179189562798, 0.0719960406422615, 0.2888392210006714, -0.24905772507190704, -0.2088915854692459, 0.12142075598239899, 0.0957685261964798, 0.036979660391807556, -0.580570638179779, -0.30332356691360474, -0.15845727920532227, 0.0030395574867725372, -0.15955907106399536, -0.4319700300693512, -0.264438271522522, -0.0336926095187664, -0.18199795484542847, 0.4959421157836914, -0.00869537703692913, 0.16454243659973145, 0.2707718312740326, -0.17684173583984375, 0.3435393273830414, 0.11441588401794434, -0.016884176060557365, 0.33388277888298035, -0.0011244637425988913, -0.005053375847637653, 0.0724361389875412, 0.20278282463550568, 0.05388757959008217, 0.0777537077665329, -0.2313007265329361, -0.30538827180862427, -0.05282077565789223, 0.4625082015991211, 0.24558208882808685, 0.14430774748325348, 0.15250016748905182, 0.2244812697172165, 0.19977441430091858, -0.05483318492770195, -0.2919037640094757, 0.23201890289783478, 0.20117312669754028, 0.030321966856718063, 0.3115655183792114, 0.01922174170613289, 0.16553175449371338, 0.3544033169746399, -0.007189353462308645, 0.17104758322238922, -0.6634290814399719, 0.07695605605840683, 0.36333489418029785, 0.08607296645641327, -0.13535776734352112, -0.2520187497138977, -0.37938612699508667, 0.27997636795043945, -0.016505597159266472, -0.2989177703857422, 0.12963217496871948, 0.16967584192752838, -0.0758233368396759, 0.3128224313259125, 0.054895296692848206, -0.12942558526992798, 0.040487661957740784, -0.009100118651986122, 0.05402355268597603, 0.36734047532081604, 0.35646337270736694, -0.01725182496011257, -0.1925055831670761, -0.22613957524299622, 0.199228897690773, 0.015993371605873108, -0.12834154069423676, -0.1642080843448639, -0.11440714448690414, 0.04769819974899292, -0.3337891101837158, 0.028141969814896584, 0.2662842571735382, 0.43380293250083923, 0.23560355603694916, 0.012194022536277771, -0.2688330113887787, 0.004064708948135376, 0.24078992009162903, 0.1526181995868683, -0.22705276310443878, -0.018495600670576096, 0.06788120418787003, -0.04652559384703636, -0.1567811518907547, -0.009686295874416828, 0.5891762375831604, 0.2141222208738327, -0.40627893805503845, -0.16577300429344177, -0.11191476881504059, -0.16720479726791382, 0.030475128442049026, 0.16761882603168488, 0.1938883662223816, 0.11158054322004318, 0.12536513805389404, 0.23483189940452576, -0.13697047531604767, 0.062013231217861176, 0.13146273791790009, 0.25175508856773376, -0.24533125758171082, 0.3672528564929962, 0.1214340552687645, -0.2679498493671417, -0.30274441838264465, -0.36042430996894836, -0.1830502152442932, 0.17410089075565338, -0.2602977752685547, -0.38297998905181885, -0.016671396791934967, 0.26257479190826416, 0.09170079231262207, -0.2118704915046692, 0.3728059232234955, 0.15172193944454193, 0.15527796745300293, -0.22086159884929657, 0.0982096865773201, 0.10397743433713913, 0.021862085908651352, -0.23316442966461182, 0.17110677063465118, 0.26475775241851807, -0.09548493474721909, 0.38054248690605164, 0.42747583985328674, 0.21289852261543274, 0.04718706011772156, 0.032306939363479614, 0.10431224852800369, -0.5206046104431152, 0.16698798537254333, 0.3593800663948059, -0.19799305498600006, 0.08482805639505386, -0.032378122210502625, 0.08649199455976486, 0.08439544588327408, 0.038853421807289124, -0.2193261682987213, 0.01826249621808529, 0.020891360938549042, 0.17538504302501678, 0.15762655436992645, 0.4535905122756958, -0.011771079152822495, -0.16800479590892792, -0.0772639736533165, 0.14547865092754364, -0.05145765095949173, -0.0009278776124119759, 0.622922420501709, 0.2327607125043869, 0.28512683510780334, -0.2586367726325989, -0.42730841040611267, -0.3670191168785095, -0.28457579016685486, -0.3651998043060303, 0.3357762396335602, 0.16691523790359497, 0.18303321301937103, -0.09474736452102661, 0.03118521347641945, 0.13869312405586243, -0.03412880748510361, 0.146721750497818, 0.2278100997209549, -0.03130397945642471, -0.28333836793899536, 0.2253667265176773, -0.005202936474233866, -0.08357739448547363, -0.015467378310859203, -0.014849881641566753, 0.0944095328450203, -0.12636910378932953, -0.07042387127876282, -0.2874096632003784, 0.2488095909357071, -0.11695275455713272, 0.35755881667137146, 0.06945963948965073, 0.3240206837654114, -0.10327300429344177, -0.020429471507668495, 0.21135850250720978, 0.3053734600543976, 0.0561128705739975, -0.18076951801776886, -0.08017948269844055 ]