html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/1856
@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?
load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
45
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` @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.06117354333400726, 0.14232732355594635, -0.10863210260868073, 0.22138375043869019, 0.12633641064167023, 0.1217508614063263, 0.245276540517807, 0.01037982851266861, 0.3931342661380768, 0.10966624319553375, -0.13955889642238617, -0.02014491893351078, 0.03638170287013054, 0.025238007307052612, -0.1712939441204071, 0.3643229007720947, 0.01854485645890236, -0.01134670153260231, -0.07883806526660919, -0.010269887745380402, -0.3044540286064148, 0.25937318801879883, -0.060082755982875824, -0.08405604958534241, -0.05983983725309372, 0.1535957008600235, 0.31665629148483276, 0.04422297701239586, -0.08336708694696426, -0.3201698362827301, 0.42107027769088745, 0.1378978043794632, -0.015670984983444214, 0.328981876373291, -0.0001259096316061914, -0.05002392828464508, 0.41676682233810425, 0.032062940299510956, -0.3987613022327423, -0.30998051166534424, -0.45815134048461914, -0.32514089345932007, 0.15099576115608215, -0.10070152580738068, 0.14998923242092133, 0.16336846351623535, 0.005327355116605759, -0.2619088590145111, 0.09537647664546967, 0.10011324286460876, 0.11727427691221237, 0.35019955039024353, 0.10599322617053986, 0.20151014626026154, 0.34521663188934326, 0.12262987345457077, -0.01875820755958557, 0.29132017493247986, 0.18812112510204315, -0.1821523904800415, -0.27050474286079407, 0.04058627784252167, -0.0015805736184120178, 0.5240550637245178, 0.20741382241249084, -0.06581281870603561, 0.2831403911113739, -0.27022817730903625, 0.24643725156784058, 0.43348464369773865, 0.5518839359283447, -0.16113515198230743, -0.3142518401145935, -0.10849080979824066, -0.14431992173194885, -0.2082727551460266, 0.26838240027427673, 0.47971436381340027, -0.16795194149017334, -0.1982160061597824, -0.5444875955581665, 0.16088663041591644, -0.05065783113241196, 0.18890294432640076, -0.13251395523548126, 0.24686795473098755, 0.03465389087796211, 0.18291425704956055, 0.1495763510465622, -0.17243428528308868, 0.6086636781692505, -0.3743203282356262, 0.03492315858602524, 0.29070860147476196, -0.5965973734855652, -0.007769562304019928, 0.034076981246471405, 0.563331663608551, 0.22478517889976501, 0.5783307552337646, 0.1639447808265686, 0.2058052122592926, 0.025719132274389267, 0.2746678292751312, 0.5060390830039978, 0.22001895308494568, -0.1086447462439537, 0.3596939742565155, 0.19317173957824707, 0.21536138653755188, 0.14792968332767487, 0.12440689653158188, -0.003003321588039398, -0.27102527022361755, 0.6188275814056396, -0.07342206686735153, 0.25093603134155273, -0.5128176212310791, -0.5945706367492676, 0.3519124388694763, -0.2508150041103363, -0.12275917828083038, 0.052964162081480026, 0.21219059824943542, -0.17590349912643433, 0.1633971929550171, -0.04886578395962715, -0.0933007001876831, -0.13326725363731384, 0.08906105160713196, -0.2012098878622055, 0.12135401368141174, -0.027643203735351562, 0.22767455875873566, 0.22793906927108765, -0.03557386249303818, 0.3027087450027466, -0.13837212324142456, 0.33690354228019714, -0.20315682888031006, 0.42347031831741333, -0.15301275253295898, -0.15769903361797333, 0.4656792879104614, 0.018806323409080505, 0.13610178232192993, 0.07712942361831665, 0.17520815134048462, -0.22541284561157227, 0.3178544342517853, -0.1811046302318573, -0.19131261110305786, 0.17321883141994476, 0.08431216329336166, -0.6098443865776062, -0.18703335523605347, -0.2142934948205948, -0.4069158732891083, 0.32835257053375244, -0.3127764165401459, 0.007401548326015472, -0.35697877407073975, 0.06260958313941956, -0.1431141197681427, -0.05134306848049164, 0.434880793094635, -0.27825504541397095, -0.16568785905838013, -0.3917517364025116, -0.19668570160865784, 0.3818413019180298, 0.46461161971092224, -0.12386058270931244, 0.09032861888408661, -0.22802704572677612, -0.1686192750930786, 0.038850776851177216, -0.15464520454406738, -0.4479783773422241, 0.09870274364948273, -0.19938892126083374, 0.4591367840766907, 0.002401284873485565, 0.16776111721992493, -0.0978831946849823, -0.01897279918193817, 0.31117457151412964, 0.15398187935352325, -0.010500830598175526, 0.07566797733306885, -0.11894296854734421, -0.1285547912120819, 0.32380571961402893, 0.2631974518299103, 0.19393622875213623, 0.00012052804231643677, 0.1493891328573227, -0.07698642462491989, 0.08753108978271484, -0.01655944064259529, -0.00441182404756546, 0.2684108316898346, 0.36942970752716064, 0.12750332057476044, -0.05727145075798035, -0.036968715488910675, -0.46027982234954834, 0.17194995284080505, -0.4196966290473938, 0.022422175854444504, -0.061406876891851425, 0.09276111423969269, -0.18852965533733368, -0.1335383653640747, -0.24068358540534973, 0.05012892931699753, -0.055418312549591064, 0.3447309136390686, 0.14981912076473236, -0.10164984315633774, 0.07537243515253067, 0.08772604912519455, -0.4383295774459839, 0.0307365320622921, -0.40013566613197327, 0.2532047629356384, 0.02876102738082409, 0.1389981359243393, 0.07983323931694031, 0.07768925279378891, 0.15928174555301666, -0.017233043909072876, -0.020364059135317802, 0.2922263741493225, 0.14122915267944336, 0.4036795198917389, -0.07896959781646729, 0.48305830359458923, -0.028725219890475273, -0.10024558007717133, -0.051105767488479614, 0.4246053695678711, 0.12461601197719574, -0.2297823131084442, -0.2653990685939789, 0.6342544555664062, -0.12469425052404404, 0.3354457914829254, -0.036846838891506195, 0.10404564440250397, 0.2729400396347046, 0.024860568344593048, -0.27587562799453735, -0.18607410788536072, 0.4675985872745514, 0.10569033771753311, 0.003151349723339081, 0.12198451161384583, 0.0486668199300766, -0.16200485825538635, 0.314816951751709, -0.3001987338066101, 0.04593237116932869, 0.0504411943256855, -0.04942306876182556, -0.24426142871379852, 0.1841946691274643, 0.6842710971832275, 0.5695009231567383, 0.07901372015476227, -0.0502622127532959, -0.15015794336795807, -0.17025718092918396, -0.11122295260429382, 0.0289548821747303, 0.18590328097343445, -0.05498611181974411, 0.4992835223674774, 0.19121211767196655, -0.22439956665039062, -0.42435765266418457, -0.1603444367647171, 0.1699373722076416, 0.3191203773021698, -0.4955602288246155, -0.08456295728683472, -0.12217506766319275, 0.22518739104270935, -0.2842991054058075, -0.06337138265371323, -0.16697703301906586, -0.5736443996429443, -0.1112598329782486, 0.4169120490550995, -0.05699440464377403, 0.18196997046470642, -0.4180186986923218, 0.1734418123960495, -0.05356480926275253, -0.4603128731250763, 0.04769138991832733, -0.2303590327501297, -0.05114481598138809, -0.01234779879450798, 0.34348031878471375, -0.07857298105955124, 0.3597756028175354, -0.2547628879547119, 0.13637159764766693, -0.6831150650978088, -0.2296445220708847, 0.0053693982772529125, -0.11947549879550934, 0.14113964140415192, 0.04131320118904114, 0.13245642185211182, -0.0009102299809455872, -0.002576339989900589, 0.027933817356824875, 0.09695249050855637, -0.28484153747558594, 0.16653314232826233, -0.19787189364433289, 0.033181678503751755, 0.1929994374513626, 0.004298310726881027, -0.1131908968091011, -0.3015258312225342, 0.12962880730628967, 0.4311298131942749, 0.08007858693599701, -0.0818813145160675, -0.1446489840745926, 0.10021242499351501, 0.12184411287307739, 0.3078339695930481, -0.38725537061691284, -0.45427125692367554, 0.5385529398918152, -0.05998477339744568, -0.18612559139728546, -0.001748800277709961, 0.0950818806886673, 0.25716206431388855, 0.412782222032547, -0.48849472403526306, -0.10797859728336334, -0.3561544120311737, -0.13807426393032074, 0.06890803575515747, -0.0369926318526268, 0.262465238571167, 0.03662274405360222, -0.010552629828453064, 0.0430208295583725, -0.4865607023239136, 0.03233729675412178, 0.04849446937441826, 0.3351130187511444, -0.09624512493610382, 0.15135082602500916, -0.2685442864894867, 0.5760499835014343, 0.07135192304849625, 0.019770443439483643, 0.09381496906280518, 0.27110743522644043, 0.39680710434913635, 0.019942983984947205, -0.07231117784976959, -0.08361752331256866, -0.07448349893093109, 0.03752309828996658, 0.12000535428524017, 0.01658743992447853, -0.23222169280052185, 0.009765833616256714, -0.0028805360198020935, -0.2798805236816406, -0.1282063126564026, -0.031813740730285645, -0.19072477519512177, 0.34952229261398315, 0.15167862176895142, 0.0363004207611084, -0.24857041239738464, -0.5477302670478821, -0.20116356015205383, 0.11521385610103607, -0.015568960458040237, -0.10093541443347931, -0.3231310248374939, -0.026897907257080078, -0.03425527736544609, 0.33412033319473267, -0.02382441610097885, 0.4164540767669678, -0.04730572551488876, -0.2034258395433426, 0.22102484107017517, -0.1795639991760254, 0.14225366711616516, -0.051600970327854156, 0.1998467594385147, -0.05853476747870445, -0.11628470569849014, -0.27156615257263184, -0.20607656240463257, -0.2619052827358246, 0.24534347653388977, -0.07769517600536346, 0.2267114222049713, -0.40266650915145874, 0.04278680682182312, 0.06877534091472626, 0.3809311091899872, -0.2973005771636963, -0.2171103060245514, -0.3158600330352783, -0.2742903232574463, -0.2834303677082062, -0.05609310790896416, -0.10546247661113739, 0.2077488750219345, -0.12031885981559753, 0.17512671649456024, -0.0006156414747238159, 0.009342335164546967, 0.32337507605552673, -0.06683941185474396, 0.3630557954311371, -0.10807588696479797, 0.14139002561569214, 0.08626598119735718, -0.34308919310569763, 0.3026038706302643, 0.758916437625885, -0.07038766145706177, -0.22916431725025177, 0.25442036986351013, -0.05936383828520775, -0.3124518096446991, 0.2692413330078125, 0.11704915761947632, -0.08998335897922516, 0.36341002583503723, -0.020908381789922714, -0.0537426695227623, -0.27740344405174255, 0.1468382477760315, 0.11810716241598129, -0.34629344940185547, -0.41222381591796875, 0.13079462945461273, 0.0961119532585144, -0.10925193130970001, 0.4117062985897064, 0.2758305072784424, -0.14017042517662048, 0.05399276316165924, 0.45949381589889526, 0.9954114556312561, -0.13125383853912354, 0.2847006022930145, -0.06030542775988579, -0.08718206733465195, 0.3122881054878235, -0.24893470108509064, 0.10440192371606827, -0.3933151066303253, 0.14710403978824615, -0.12633053958415985, -0.3329879641532898, 0.07445918023586273, 0.0401635617017746, 0.22206157445907593, 0.4867367446422577, 0.015061050653457642, 0.12553761899471283, 0.1986963152885437, 0.09324633330106735, -0.3384924829006195, -0.014600930735468864, 0.18806535005569458, 0.0834587812423706, -0.22544226050376892, 0.39009398221969604, -0.13289746642112732, 0.22347787022590637, 0.019444428384304047, -0.11879008263349533, -0.5311704874038696, -0.03632750362157822, -0.056291814893484116, 0.44729453325271606, 0.2374153882265091, -0.20328867435455322, -0.17887964844703674, 0.1081017330288887, 0.01359289139509201, 0.005354013293981552, -0.26819291710853577, 0.15481938421726227, 0.39552974700927734, 0.07515112310647964, -0.028644748032093048, -0.0019438154995441437, 0.2729853689670563, -0.05660231411457062, -0.15182308852672577, 0.08781789988279343, -0.01016700267791748, -0.5436391830444336, -0.34304487705230713, 0.2885993719100952, -0.23351240158081055, -0.34504956007003784, -0.2680537700653076, -0.22464297711849213, -0.18284010887145996, -0.20512759685516357, 0.06651603430509567, 0.23439855873584747, -0.1421092450618744, 0.21736982464790344, 0.13324257731437683, -0.3970557153224945, -0.25347214937210083, 0.5514845252037048, 0.16132572293281555, -0.11610045284032822, 0.5359880328178406, -0.11154814809560776, -0.2558027505874634, -0.167405366897583, 0.032298944890499115, 0.07323698699474335, -0.5194632411003113, 0.07286153733730316, -0.23848290741443634, 0.17124974727630615, -0.12848569452762604, 0.355226069688797, 0.35103684663772583, 0.3508449196815491, -0.02650994062423706, -0.5613188743591309, -0.0033329948782920837, -0.01428457722067833, 0.061917323619127274, 0.3227636516094208, -0.23905684053897858, -0.2200426608324051, -0.039937250316143036, -0.18071864545345306, -0.2042580395936966, 0.12395024299621582, -0.42849043011665344, -0.030142009258270264, 0.19985952973365784, -0.08751578629016876, 0.16646721959114075, 0.05767747014760971, 0.07220713794231415, 0.06497208774089813, -0.2155698835849762, -0.11945861577987671, -0.13811931014060974, 0.2042919248342514, 0.10902877151966095, -0.14237314462661743, -0.023958703503012657, -0.03359347954392433, 0.05210239440202713, -0.04781629517674446, 0.034145139157772064, 0.3134574890136719, -0.10163888335227966, -0.016175486147403717, 0.1550467312335968, -0.12653538584709167, -0.10682441294193268, -0.0469963438808918, -0.29772886633872986, -0.04761870205402374, 0.18590176105499268, 0.09034450352191925, 0.3465738892555237, 0.060511521995067596, -0.039232563227415085, 0.11671602725982666, 0.18099282681941986, -0.15566667914390564, 0.14714953303337097, -0.2417294681072235, -0.034107498824596405, -0.0012862123548984528, 0.3312528729438782, 0.5788925886154175, -0.3147875964641571, -0.18044432997703552, 0.23464933037757874, 0.11941805481910706, -0.1353294551372528, -0.09135414659976959, 0.07580903172492981, -0.0935794785618782, 0.08941622823476791, 0.1361350417137146, -0.018028393387794495, -0.24743996560573578, 0.44630318880081177, 0.11698296666145325, 0.3723032474517822, -0.6105337738990784, 0.17108754813671112, 0.1364411860704422, -0.11753790825605392, 0.037596579641103745, 0.35817036032676697, -0.039460405707359314, -0.029600847512483597, -0.17149075865745544, -0.12173694372177124, 0.19950498640537262, -0.359777569770813, 0.159343883395195, -0.21455365419387817, -0.6058474779129028, 0.4413033127784729, 0.32006198167800903, -0.07247111201286316, 0.2271357625722885, 0.1714424192905426, 0.39121532440185547, -0.1395464390516281, 0.4165736436843872, -0.5694961547851562, -0.03490343689918518, -0.14430367946624756, -0.17609934508800507, -0.13240502774715424, -0.3570290505886078, 0.054708659648895264, 0.30480509996414185, 0.06949003040790558, -0.11166360974311829, 0.15672388672828674, 0.052906960248947144, -0.26099610328674316, -0.49404919147491455, 0.14421194791793823, -0.09843014925718307, -0.07991360127925873, -0.26677608489990234, 0.058132246136665344, 0.3363921642303467, -0.041169602423906326, 0.11700654774904251, 0.18734844028949738, 0.4015202820301056, 0.32237088680267334, 0.06094934046268463, -0.008996095508337021, -0.11055529117584229, -0.01689229905605316, 0.045927584171295166, 0.7341307997703552, 0.011859063059091568, -0.16862918436527252, 0.22824980318546295, 0.10509677976369858, -0.16240137815475464, 0.3463478982448578, -0.06729289889335632, -0.19695203006267548, -0.24958789348602295, 0.5849603414535522, -0.07440347969532013, 0.04054231941699982, -0.2656804323196411, 0.1646089404821396, -0.3968413472175598, -0.4330812096595764, -0.025616604834794998, 0.00110655277967453, 0.006221804767847061, -0.026220817118883133, 0.016119983047246933, -0.17137455940246582, 0.48755156993865967, 0.4068419337272644, 0.05807218328118324, -0.4211580157279968, 0.019516557455062866, -0.6684357523918152, 0.32731911540031433, -0.3808620274066925, 0.10563705861568451, -0.042951520532369614, 0.3075513541698456, -0.19908183813095093, 0.3060508966445923, 0.11973637342453003, 0.022201530635356903, -0.32950711250305176, -0.2277277708053589, -0.19449034333229065, -0.10706740617752075, 0.3338199555873871, -0.21072231233119965, -0.1293596625328064, -0.32482898235321045, 0.10426732152700424, 0.0008916854858398438, 0.008212186396121979, -0.12308160960674286, -0.02850472927093506, -0.022103145718574524, 0.3299267292022705, 0.196796253323555, 0.1362973302602768, 0.7609400153160095, 0.06711848080158234, -0.13315080106258392, -0.25731635093688965, -0.23982062935829163, -0.10366348922252655, 0.1768931895494461, -0.036727819591760635, 0.44638562202453613, -0.02118503674864769, -0.40584224462509155, -0.1812153309583664, 0.46227073669433594, -0.14638486504554749, -0.4938637912273407, 0.0005716904997825623, -0.051011547446250916, -0.1060827448964119, 0.07423323392868042, -0.11207699030637741, 0.09306839108467102, 0.27236729860305786, 0.24888503551483154, -0.11389605700969696, -0.21862134337425232, 0.5264891386032104, -0.37762120366096497, -0.03174060210585594, 0.11928196251392365, 0.19638271629810333, 0.04534926265478134, -0.2616778016090393, -0.4460183084011078, 0.34797507524490356, 0.36188533902168274, 0.061042994260787964, -0.12201662361621857, 0.23199409246444702, -0.45726728439331055, 0.16085004806518555, -0.0770440548658371, 0.05661811679601669, 0.10849221050739288, -0.22466179728507996, -0.1531858593225479, -0.16413161158561707 ]
https://github.com/huggingface/datasets/issues/1856
> 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
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'] ```
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.13494262099266052, 0.047477781772613525, -0.11106196790933609, 0.2588097155094147, 0.062481969594955444, -0.03678257018327713, 0.2863384485244751, 0.011993391439318657, 0.3435027003288269, 0.2581290602684021, 0.07673422247171402, -0.03757923096418381, 0.0030820854008197784, 0.03795231133699417, -0.23370864987373352, 0.169569194316864, -0.021713562309741974, -0.07363483309745789, -0.1117962971329689, 0.040674880146980286, -0.2747717499732971, 0.2887175679206848, 0.0070180147886276245, -0.203448086977005, -0.03966159373521805, 0.008733648806810379, 0.3278360068798065, 0.11759646236896515, -0.17591345310211182, -0.3116760849952698, 0.3300222158432007, 0.08261249959468842, 0.0683184415102005, 0.3464249074459076, -0.00012041810987284407, -0.06831817328929901, 0.39421534538269043, 0.09657617658376694, -0.41895976662635803, -0.2462107241153717, -0.35147127509117126, -0.3533966541290283, 0.07687605917453766, -0.14831843972206116, 0.17620888352394104, 0.31583091616630554, 0.13149301707744598, -0.2369055449962616, 0.1729607731103897, 0.13813155889511108, 0.13241901993751526, 0.42141634225845337, 0.15271931886672974, 0.18100444972515106, 0.36248475313186646, 0.048438169062137604, -0.03632558137178421, 0.26997724175453186, 0.21515657007694244, -0.062193613499403, -0.29291611909866333, 0.1053553968667984, -0.03940386325120926, 0.5324477553367615, 0.1441996693611145, -0.02629953809082508, 0.10127920657396317, -0.3418426811695099, 0.1716114729642868, 0.3872765302658081, 0.5805899500846863, -0.12491050362586975, -0.2338673621416092, -0.09334132075309753, -0.2541104257106781, -0.3007950186729431, 0.3701970875263214, 0.4087916612625122, -0.1825314164161682, -0.24208718538284302, -0.4668251574039459, 0.2356189340353012, -0.11459846049547195, 0.16404634714126587, -0.1773635447025299, 0.21256694197654724, 0.029611844569444656, 0.21809852123260498, 0.25342756509780884, -0.07228933274745941, 0.5507889986038208, -0.33852720260620117, 0.027864469215273857, 0.21654987335205078, -0.5382954478263855, -0.059662528336048126, 0.026529794558882713, 0.4756048917770386, 0.18465133011341095, 0.5643039345741272, 0.18954388797283173, 0.16553576290607452, 0.04948248714208603, 0.29118025302886963, 0.4096364974975586, 0.18556973338127136, -0.22529548406600952, 0.2780072093009949, 0.2126201093196869, 0.19787003099918365, 0.16984280943870544, 0.0987502932548523, -0.018339231610298157, -0.344964861869812, 0.612930417060852, -0.07254371047019958, 0.1491268277168274, -0.44137266278266907, -0.5689802765846252, 0.36165571212768555, -0.29591819643974304, -0.14766323566436768, 0.07146163284778595, 0.12755939364433289, -0.18861791491508484, -0.0284609105437994, 0.013129986822605133, -0.11428503692150116, -0.15542367100715637, 0.09142278134822845, -0.19619295001029968, 0.11930304765701294, -0.09731020778417587, 0.20340609550476074, 0.2082078605890274, -0.04586295038461685, 0.27945685386657715, -0.040852099657058716, 0.29504987597465515, -0.21975623071193695, 0.537706732749939, -0.27217692136764526, -0.18071982264518738, 0.5546466708183289, -0.052327144891023636, 0.01126086711883545, 0.10489396005868912, 0.1803131401538849, -0.1602942943572998, 0.2673657536506653, -0.14790724217891693, -0.12792295217514038, 0.1871574968099594, 0.13107171654701233, -0.5833473205566406, -0.20720449090003967, -0.16470949351787567, -0.3109380304813385, 0.23202665150165558, -0.29214122891426086, 0.02384953945875168, -0.35687294602394104, 0.01658017188310623, -0.2122601866722107, 0.024651899933815002, 0.4080350399017334, -0.2196415662765503, -0.02926822006702423, -0.3386441469192505, -0.17848077416419983, 0.42419782280921936, 0.33566296100616455, -0.1659257560968399, 0.18277764320373535, -0.25458863377571106, -0.160952627658844, 0.010721594095230103, -0.1088564544916153, -0.39765533804893494, 0.050172753632068634, -0.2954810857772827, 0.40578222274780273, 0.14341698586940765, 0.19287793338298798, 0.014345716685056686, 0.0030356571078300476, 0.28355395793914795, 0.15822111070156097, -0.014703642576932907, 0.03613601624965668, -0.17030414938926697, -0.1570073664188385, 0.17084196209907532, 0.2926815152168274, 0.29810258746147156, 0.004195071756839752, 0.2727927565574646, -0.12372447550296783, 0.019749904051423073, -0.0045746322721242905, -0.022605091333389282, 0.2537457346916199, 0.13426481187343597, -0.02357986569404602, -0.07285739481449127, -0.0011670365929603577, -0.5085257887840271, 0.20308434963226318, -0.35831546783447266, 0.049937110394239426, -0.037802327424287796, 0.10986118018627167, -0.14671602845191956, -0.22909754514694214, -0.14286527037620544, 0.09381458163261414, 0.0016223229467868805, 0.39556634426116943, 0.1550280749797821, -0.16004574298858643, 0.10116468369960785, 0.12783265113830566, -0.43715226650238037, 0.04734528437256813, -0.4895060956478119, 0.29927200078964233, 0.01833302713930607, 0.05527481064200401, 0.1059117242693901, -0.022818848490715027, 0.13570912182331085, -0.11474798619747162, 0.03401823714375496, 0.30856603384017944, 0.1717773973941803, 0.39974841475486755, 0.04096952825784683, 0.6185168027877808, -0.10081189125776291, -0.042290955781936646, -0.005037485621869564, 0.5124956965446472, 0.08092063665390015, -0.22709250450134277, -0.397221177816391, 0.6124411821365356, -0.2382662296295166, 0.23214858770370483, -0.13311626017093658, 0.08427758514881134, 0.26492220163345337, -0.014043010771274567, -0.2797195017337799, 0.03760591149330139, 0.44473519921302795, 0.2148773968219757, -0.10851351171731949, 0.059482477605342865, -0.12572617828845978, -0.08750028163194656, 0.36860352754592896, -0.26394200325012207, -0.009963411837816238, 0.15313315391540527, -0.014910232275724411, -0.17583975195884705, 0.09523729234933853, 0.8160726428031921, 0.5828450918197632, 0.13837218284606934, 0.06518661975860596, -0.18816743791103363, -0.14722736179828644, -0.13797959685325623, 0.0860716924071312, 0.17569632828235626, -0.09891389310359955, 0.42863577604293823, 0.10379915684461594, -0.21196334064006805, -0.48858165740966797, -0.2679803967475891, 0.1950266808271408, 0.4274774193763733, -0.4311172068119049, 0.008033841848373413, -0.006075911223888397, 0.2277984917163849, -0.33021998405456543, 0.021480977535247803, -0.22902870178222656, -0.42857223749160767, -0.13628539443016052, 0.5601520538330078, -0.021282054483890533, 0.06256701797246933, -0.3208746314048767, 0.22798822820186615, 0.018312744796276093, -0.48723912239074707, -0.042190805077552795, -0.09390588104724884, -0.10667554289102554, 0.031130611896514893, 0.4095046818256378, -0.10109292715787888, 0.41621822118759155, -0.3030731976032257, 0.11139564216136932, -0.5681462287902832, -0.23996269702911377, -0.04425028711557388, -0.1286788284778595, 0.11647330224514008, 0.08984450995922089, 0.28636595606803894, -0.09453389048576355, 0.006007857620716095, -0.03836246207356453, 0.1657685786485672, -0.24803830683231354, 0.12489666789770126, -0.16734175384044647, 0.04282074049115181, 0.11292463541030884, -0.18048834800720215, -0.10324109345674515, -0.34514158964157104, 0.1504685878753662, 0.4686198830604553, 0.16053786873817444, -0.050380997359752655, 0.032063134014606476, 0.10363183915615082, 0.09613793343305588, 0.21491137146949768, -0.3637517988681793, -0.6516868472099304, 0.4263012111186981, 0.02886999025940895, -0.1900147795677185, 0.04958318918943405, 0.08505317568778992, 0.21406906843185425, 0.4236084222793579, -0.5703601837158203, -0.12771090865135193, -0.3932388722896576, -0.10568484663963318, -0.014020239934325218, 0.12535899877548218, 0.38361918926239014, 0.10568263381719589, -0.07064898312091827, 0.053200118243694305, -0.4380124807357788, 0.024364883080124855, 0.06259401142597198, 0.33013206720352173, -0.09297524392604828, 0.2045576125383377, -0.19585135579109192, 0.6013501882553101, 0.03884498029947281, -0.014996076934039593, 0.08432470262050629, 0.2517704963684082, 0.4348466992378235, -0.0002991780638694763, -0.02270245924592018, 0.04287949204444885, -0.06429250538349152, -0.03436053916811943, 0.12858915328979492, -0.040477048605680466, -0.2122773826122284, 0.052567318081855774, -0.038389965891838074, -0.17459943890571594, -0.16176538169384003, 0.10905420035123825, -0.05660722404718399, 0.3451625406742096, 0.0706646591424942, 0.0425654798746109, -0.2898291349411011, -0.4241087734699249, -0.2228248417377472, 0.11047771573066711, 0.004040118306875229, -0.07511919736862183, -0.3085339069366455, 0.05987844616174698, -0.11645728349685669, 0.3225315809249878, -0.07949203997850418, 0.36668214201927185, -0.11615020781755447, -0.08079750090837479, 0.219427689909935, -0.14638882875442505, 0.11375878751277924, -0.10693614184856415, 0.10287217050790787, -0.061068564653396606, -0.04699290916323662, -0.11381196975708008, -0.21264274418354034, -0.31067708134651184, 0.3325222432613373, -0.0191535372287035, 0.2525075078010559, -0.4487138092517853, 0.04485451057553291, 0.05574342980980873, 0.3679998815059662, -0.2528473734855652, -0.24496838450431824, -0.3577001094818115, -0.30701711773872375, -0.34257271885871887, 0.18557097017765045, 0.0011227503418922424, 0.21387314796447754, -0.13415202498435974, 0.08144234865903854, 0.09664671123027802, 0.03667190670967102, 0.2058677077293396, -0.08072386682033539, 0.30479931831359863, -0.05127357691526413, 0.02888713777065277, 0.20297715067863464, -0.38951539993286133, 0.277802973985672, 0.6610251069068909, -0.04379101097583771, -0.060928501188755035, 0.2704164981842041, -0.09266497194766998, -0.3631853759288788, 0.2875848710536957, 0.06794038414955139, -0.08847026526927948, 0.41823524236679077, 0.12583117187023163, -0.06996020674705505, -0.2813870310783386, 0.21642932295799255, 0.16148363053798676, -0.24664413928985596, -0.38317251205444336, 0.11603489518165588, 0.015144303441047668, -0.1279822587966919, 0.5681811571121216, 0.1725109964609146, -0.11888435482978821, 0.08850160241127014, 0.4173097610473633, 1.107187032699585, -0.11676830053329468, 0.24644476175308228, -0.0031259246170520782, -0.1765981912612915, 0.3316379487514496, -0.2680209279060364, 0.1921708732843399, -0.39882153272628784, 0.03983772546052933, -0.1273457109928131, -0.3764096200466156, 0.13559114933013916, -0.046497639268636703, 0.09215473383665085, 0.4239910840988159, -0.05160098522901535, 0.08215511590242386, 0.16116856038570404, 0.07101447135210037, -0.40110403299331665, 0.010941095650196075, 0.21799814701080322, 0.10147880762815475, -0.2128031849861145, 0.370758056640625, -0.20217886567115784, 0.11336682736873627, 0.11074911057949066, -0.22239123284816742, -0.48604798316955566, -0.09605206549167633, -0.032784104347229004, 0.283648818731308, 0.22052298486232758, -0.11244334280490875, -0.2335149049758911, 0.08266907930374146, 0.12139967083930969, -0.06178220361471176, -0.17547717690467834, 0.14194533228874207, 0.2989318370819092, 0.025944869965314865, 0.031730104237794876, -0.08539799600839615, 0.27068156003952026, -0.11884238570928574, -0.16286230087280273, 0.05285494402050972, -0.03602905571460724, -0.5696086883544922, -0.2322646826505661, 0.24476493895053864, -0.1292954385280609, -0.27740007638931274, -0.1481330394744873, -0.1568337231874466, -0.3212553858757019, -0.206281378865242, 0.11146153509616852, 0.31051164865493774, -0.15225395560264587, 0.388468861579895, 0.05360069125890732, -0.3761638104915619, -0.24940405786037445, 0.47350549697875977, 0.09038183838129044, -0.0472881942987442, 0.46434485912323, -0.049359142780303955, -0.25575459003448486, -0.21683232486248016, 0.05458785593509674, 0.051926322281360626, -0.46440523862838745, 0.15672729909420013, -0.20199720561504364, 0.20474211871623993, -0.10244002938270569, 0.33098429441452026, 0.3380800187587738, 0.34946712851524353, -0.07524746656417847, -0.6224421262741089, -0.054829493165016174, -0.10991088300943375, 0.031538933515548706, 0.37692442536354065, -0.21816127002239227, -0.349745512008667, 0.039491936564445496, -0.20793786644935608, -0.27357006072998047, 0.0982373058795929, -0.42650488018989563, -0.0077452631667256355, 0.18203981220722198, -0.14306947588920593, 0.25881633162498474, 0.0930420458316803, 0.09094078093767166, 0.04552143067121506, -0.325687974691391, -0.13887307047843933, -0.13342908024787903, 0.192550927400589, 0.03860264644026756, -0.1288580298423767, 0.025297753512859344, -0.09219236671924591, 0.04497520625591278, -0.018825164064764977, -0.05588613077998161, 0.23616355657577515, -0.1481454074382782, -0.1354156732559204, 0.1923215389251709, -0.01589946821331978, -0.11976693570613861, -0.18801836669445038, -0.30419039726257324, -0.10436272621154785, 0.1823476254940033, 0.1488695591688156, 0.18729929625988007, -0.049660876393318176, -0.06946557015180588, 0.11834175884723663, 0.272677481174469, -0.10550461709499359, 0.21893328428268433, -0.19477981328964233, -0.16537106037139893, -0.0994827151298523, 0.33859413862228394, 0.5191001892089844, -0.27957046031951904, -0.21230190992355347, 0.23917467892169952, 0.18509182333946228, -0.08136704564094543, -0.11641179025173187, 0.09856967628002167, 0.021869555115699768, 0.06979286670684814, 0.19300836324691772, -0.01431775838136673, -0.30894696712493896, 0.380435049533844, 0.11344077438116074, 0.3322177231311798, -0.7211833000183105, 0.03824341669678688, 0.09484908729791641, -0.22301611304283142, -0.04897456616163254, 0.48574692010879517, -0.0627155750989914, -0.002813044935464859, -0.13442184031009674, -0.09951367974281311, 0.16652558743953705, -0.26666325330734253, 0.10251669585704803, -0.3384127914905548, -0.5586657524108887, 0.4284239709377289, 0.34067198634147644, 0.04922931268811226, 0.1477314680814743, 0.21720412373542786, 0.2795034945011139, -0.11717182397842407, 0.3882195055484772, -0.5804316997528076, 0.008350305259227753, -0.1292092204093933, -0.11991818249225616, -0.21507564187049866, -0.32334601879119873, 0.04374943673610687, 0.3426988124847412, 0.09917733818292618, -0.11918900907039642, 0.22628790140151978, 0.06529116630554199, -0.28116339445114136, -0.37127411365509033, 0.03874210640788078, -0.032999906688928604, -0.09864816814661026, -0.2912288308143616, 0.07708363980054855, 0.3421230912208557, -0.029564227908849716, 0.011745337396860123, 0.20957203209400177, 0.4396034777164459, 0.26853838562965393, 0.09993844479322433, 0.05976852774620056, -0.07811203598976135, 0.0021206289529800415, -0.07505795359611511, 0.6987163424491882, -0.025297723710536957, -0.10151737928390503, 0.21115157008171082, 0.138206347823143, -0.20758527517318726, 0.35037997364997864, -0.17194373905658722, -0.3512226939201355, -0.14744161069393158, 0.5249902009963989, 0.058355964720249176, 0.03212472051382065, -0.2822970151901245, 0.13205254077911377, -0.4383368194103241, -0.314659059047699, -0.009482577443122864, 0.058176036924123764, 0.013378512114286423, 0.0018398836255073547, 0.0307002030313015, -0.13433639705181122, 0.446166068315506, 0.3831963539123535, 0.16741690039634705, -0.47539860010147095, 0.03289388120174408, -0.6384220123291016, 0.2768552303314209, -0.3937019109725952, 0.10022570192813873, -0.03587406501173973, 0.3426172435283661, -0.15483210980892181, 0.21974782645702362, 0.2084043174982071, -0.0953625738620758, -0.17612454295158386, -0.07302562892436981, -0.1464688926935196, -0.028683438897132874, 0.3783766031265259, -0.17876237630844116, -0.1578899621963501, -0.30848318338394165, 0.20948217809200287, -0.1234288364648819, 0.07640321552753448, -0.1339641511440277, -0.0156034454703331, -0.06206139922142029, 0.254266619682312, 0.25153592228889465, 0.12449051439762115, 0.6347789168357849, 0.0061345696449279785, -0.09818755090236664, -0.3610517978668213, -0.09232879430055618, -0.21604782342910767, 0.0614580474793911, 0.025380689650774002, 0.6215925216674805, -0.10011710971593857, -0.3572171628475189, -0.2692154049873352, 0.5112689733505249, -0.1436246931552887, -0.4518861770629883, 0.09846533089876175, -0.059259362518787384, -0.1322193741798401, 0.18416160345077515, -0.10861454904079437, 0.16544204950332642, 0.3128497302532196, 0.20701473951339722, -0.23999498784542084, -0.22647714614868164, 0.5082712173461914, -0.4022962749004364, -0.13374817371368408, 0.13960230350494385, 0.1908555030822754, 0.16518792510032654, -0.18244943022727966, -0.43939417600631714, 0.39903566241264343, 0.29494020342826843, 0.015709523111581802, -0.1631636619567871, 0.16951677203178406, -0.401500940322876, 0.18220262229442596, 0.038304977118968964, 0.039218686521053314, 0.10610607266426086, -0.2178327739238739, -0.15429085493087769, -0.1948411464691162 ]
https://github.com/huggingface/datasets/issues/1856
@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`.
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'] ```
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.19478663802146912, 0.05544725060462952, -0.0836697518825531, 0.15782232582569122, 0.1719485968351364, 0.08044286072254181, 0.23757320642471313, 0.09915164113044739, 0.24161997437477112, -0.013613887131214142, -0.08398203551769257, 0.06070072203874588, -0.003998162224888802, -0.1410386562347412, -0.3183492422103882, 0.3028688430786133, 0.08086644113063812, 0.031971320509910583, -0.17937242984771729, 0.03681859374046326, -0.3233242630958557, 0.24467606842517853, -0.04896780848503113, -0.2615424394607544, -0.15718476474285126, 0.19282445311546326, 0.19521024823188782, 0.01864810287952423, -0.10129620134830475, -0.30448609590530396, 0.5374704599380493, 0.19924965500831604, -0.012076448649168015, 0.3185732364654541, -0.0001195671793539077, 0.08530615270137787, 0.3367522358894348, 0.024846836924552917, -0.31564435362815857, -0.39741694927215576, -0.38593095541000366, -0.29445207118988037, 0.09696082770824432, -0.07509449124336243, 0.10688038915395737, 0.17731812596321106, 0.11158803105354309, -0.12399651855230331, 0.11564202606678009, 0.18488147854804993, 0.20535072684288025, 0.3852196931838989, 0.11663132905960083, 0.19726471602916718, 0.31258171796798706, 0.3064415752887726, -0.10692040622234344, 0.2679605782032013, 0.1251925677061081, -0.10115259885787964, -0.1667240858078003, 0.09293312579393387, -0.11706985533237457, 0.3990475535392761, 0.14471609890460968, -0.04051371291279793, 0.32008570432662964, -0.15482239425182343, 0.2880885601043701, 0.49797821044921875, 0.3820739984512329, -0.12942294776439667, -0.36181700229644775, 0.030811719596385956, -0.22950194776058197, -0.20957225561141968, 0.2629092037677765, 0.38121241331100464, -0.057876553386449814, -0.21787767112255096, -0.4667554795742035, 0.2266640067100525, -0.025490783154964447, 0.2627207636833191, 0.05250611901283264, 0.3400256037712097, 0.1289118230342865, 0.12332431972026825, 0.15981073677539825, -0.20953039824962616, 0.49954575300216675, -0.24413961172103882, -0.008565310388803482, 0.15881499648094177, -0.5495274662971497, 0.00905599445104599, -0.03149528056383133, 0.4228043258190155, 0.2175271064043045, 0.5261777639389038, 0.13086017966270447, 0.28615128993988037, 0.018671635538339615, 0.20189304649829865, 0.23497986793518066, 0.11299976706504822, -0.002275051549077034, 0.3624727725982666, 0.1853782832622528, 0.24517115950584412, 0.06700790673494339, 0.14502620697021484, 0.0917719304561615, -0.1510998159646988, 0.674002468585968, -0.1330975592136383, 0.29486703872680664, -0.46547961235046387, -0.49147698283195496, 0.32479485869407654, -0.18390437960624695, -0.09131637215614319, 0.03147266432642937, 0.23840206861495972, -0.14576545357704163, 0.25409984588623047, 0.04443666338920593, 0.035218704491853714, -0.15449759364128113, 0.21919645369052887, -0.19571471214294434, -0.011142954230308533, -0.07170635461807251, 0.2342016100883484, 0.261187344789505, 0.015525322407484055, 0.39985114336013794, -0.03201022371649742, 0.21157605946063995, -0.11096649616956711, 0.37173110246658325, -0.10758370161056519, -0.06413659453392029, 0.3863782286643982, -0.08710213750600815, 0.08008600771427155, 0.10765164345502853, 0.12058595567941666, -0.19143754243850708, 0.11788763105869293, -0.0960543304681778, -0.13474106788635254, -0.03846723958849907, 0.15012043714523315, -0.5645663142204285, -0.1816154271364212, 0.07558245956897736, -0.377191960811615, 0.303020179271698, -0.36753377318382263, -0.044369686394929886, -0.4381236135959625, -0.04041270911693573, -0.12795650959014893, 0.007109940052032471, 0.3058851957321167, -0.11307933181524277, -0.0507403202354908, -0.33283114433288574, -0.10520613193511963, 0.4337943494319916, 0.29706329107284546, -0.018374139443039894, -0.05392435938119888, -0.14581716060638428, -0.2737307548522949, -0.03628162294626236, -0.08733605593442917, -0.29598021507263184, 0.12221570312976837, -0.11023060977458954, 0.48588478565216064, -0.013729751110076904, 0.30038321018218994, -0.20765605568885803, 0.01643259823322296, 0.24735894799232483, 0.08742588758468628, 0.015623228624463081, 0.12711481750011444, -0.2721617519855499, -0.2168182134628296, 0.4197230935096741, 0.30421218276023865, 0.14479531347751617, -0.05499628931283951, 0.0315450094640255, -0.03759991005063057, 0.19198808073997498, 0.0012867609038949013, -0.08916020393371582, 0.14625701308250427, 0.32229116559028625, 0.03915034979581833, 0.028895027935504913, -0.06792851537466049, -0.49935469031333923, 0.20358632504940033, -0.24448856711387634, 0.05013987049460411, -0.0717330127954483, 0.05869670212268829, -0.14476847648620605, -0.2020161747932434, -0.22117923200130463, 0.041422486305236816, 0.03793903812766075, 0.3838428854942322, 0.18251541256904602, -0.11797396093606949, 0.02416078746318817, 0.1218317374587059, -0.33905214071273804, 0.04900486767292023, -0.45815253257751465, 0.2769998013973236, 0.041090115904808044, 0.11038978397846222, 0.11122739315032959, 0.08957129716873169, 0.07473103702068329, -0.010037902742624283, -0.030922334641218185, 0.3922051787376404, 0.08278457820415497, 0.2096950262784958, -0.030465994030237198, 0.4936659038066864, -0.10330242663621902, -0.15651743113994598, -0.16889387369155884, 0.5129127502441406, 0.13651621341705322, -0.18891814351081848, -0.25760677456855774, 0.5926945805549622, -0.13010059297084808, 0.3979544937610626, -0.06444397568702698, 0.13931310176849365, 0.257417231798172, -0.07679605484008789, -0.35695648193359375, -0.23106321692466736, 0.5517594218254089, -0.15496836602687836, -0.10699014365673065, 0.08321833610534668, -0.15727519989013672, -0.11697277426719666, 0.04969164729118347, -0.13129565119743347, 0.1258493810892105, 0.0575031079351902, 0.10979944467544556, -0.14434120059013367, 0.1292145848274231, 0.5851314663887024, 0.5111240148544312, 0.10826557874679565, -0.15153658390045166, -0.019642654806375504, -0.38572144508361816, -0.08634664863348007, 0.04414541274309158, 0.14603248238563538, 0.040510475635528564, 0.38253432512283325, 0.1978771686553955, -0.15488488972187042, -0.49804648756980896, -0.19632939994335175, 0.028599761426448822, 0.2656153738498688, -0.4287971556186676, 0.07467267662286758, -0.31764379143714905, 0.22828792035579681, -0.30368539690971375, -0.0836184024810791, -0.17860087752342224, -0.5703515410423279, -0.04276382923126221, 0.3845750689506531, -0.07114751636981964, 0.2192089557647705, -0.5256518721580505, 0.10337120294570923, -0.04335349425673485, -0.47887709736824036, 0.037099167704582214, -0.24716155230998993, -0.007933122105896473, -0.004799317568540573, 0.36936333775520325, 0.06958100199699402, 0.4405273199081421, -0.2635095715522766, 0.02320348471403122, -0.5357105135917664, -0.26078957319259644, -0.07549864053726196, -0.09630846977233887, 0.01386197842657566, 0.14566585421562195, 0.14182738959789276, 0.033226996660232544, -0.20470203459262848, 0.1369003802537918, 0.047608181834220886, -0.1899101436138153, 0.28619837760925293, -0.22029004991054535, -0.12225666642189026, 0.14102186262607574, -0.15012714266777039, -0.01763232611119747, -0.22995024919509888, 0.017905451357364655, 0.31323251128196716, 0.1129755973815918, -0.04850466921925545, -0.002841949462890625, 0.0647498369216919, -0.11556904017925262, 0.3681408762931824, -0.292470782995224, -0.5026843547821045, 0.5586991906166077, 0.0010550245642662048, -0.18931059539318085, 0.0034448131918907166, 0.04480008780956268, 0.22404053807258606, 0.3211059272289276, -0.5155478119850159, -0.07710534334182739, -0.3473515212535858, -0.13094989955425262, 0.17039044201374054, -0.04335397481918335, 0.31314516067504883, 0.12131783366203308, -0.012903809547424316, -0.003168337047100067, -0.45048290491104126, 0.05530519038438797, -0.06791717559099197, 0.5599039196968079, -0.21809647977352142, 0.07854846864938736, -0.23561415076255798, 0.4960041642189026, 0.12442907691001892, -0.15270964801311493, -0.0077507756650447845, 0.138824924826622, 0.32882314920425415, -0.1095915138721466, -0.22578005492687225, -0.14082176983356476, -0.18208327889442444, 0.09833578020334244, 0.020930301398038864, 0.03882070258259773, -0.3366087079048157, -0.1184428334236145, 0.2828337550163269, -0.24130399525165558, -0.21298861503601074, -0.010434504598379135, -0.26401185989379883, 0.3414265811443329, 0.17331087589263916, 0.14711345732212067, -0.171830952167511, -0.5536516308784485, -0.10060644894838333, 0.06575906276702881, -0.1263183057308197, -0.1281956434249878, -0.3953516185283661, -0.0828719288110733, 0.026855094358325005, 0.36187273263931274, 0.03036874532699585, 0.563328742980957, -0.03317711502313614, -0.2938784658908844, 0.07653211057186127, -0.17289546132087708, 0.07190132141113281, -0.20820175111293793, 0.18855810165405273, 0.09293907135725021, -0.14726096391677856, -0.3871902823448181, -0.20171290636062622, -0.19497722387313843, 0.25558558106422424, -0.05119260028004646, 0.3263747990131378, -0.3654240369796753, 0.04436957836151123, 0.09887898713350296, 0.399556040763855, -0.21195261180400848, -0.2742004990577698, -0.39019912481307983, -0.14978981018066406, -0.17050138115882874, -0.06327970325946808, -0.226233571767807, 0.131382554769516, -0.17889894545078278, 0.19582730531692505, 0.028160562738776207, 0.046133384108543396, 0.34075403213500977, 0.027888532727956772, 0.2946106791496277, -0.08457380533218384, 0.30276697874069214, 0.13136069476604462, -0.17910020053386688, 0.10142132639884949, 0.7728278040885925, -0.0677524209022522, -0.3344683051109314, 0.17642000317573547, -0.09490033984184265, -0.29391223192214966, 0.3029401898384094, 0.20609307289123535, -0.07897241413593292, 0.33233940601348877, -0.06424903869628906, -0.04211169481277466, -0.14749127626419067, 0.18181855976581573, 0.033611465245485306, -0.33014625310897827, -0.17936381697654724, 0.09238573908805847, -0.02241048961877823, -0.04606160521507263, 0.44206324219703674, 0.15552780032157898, -0.0700894370675087, 0.31098514795303345, 0.4530811309814453, 0.9685312509536743, 0.03991541266441345, 0.24075204133987427, 0.008241867646574974, -0.2067376673221588, 0.1699521541595459, -0.13756142556667328, 0.1208815723657608, -0.44188934564590454, 0.04152902588248253, -0.066954605281353, -0.2064250409603119, 0.05550171062350273, -0.024467455223202705, 0.13066554069519043, 0.3444657325744629, 0.05492858588695526, 0.1411389857530594, 0.08722130209207535, 0.05006195604801178, -0.27777326107025146, -0.05306001752614975, 0.10670313984155655, 0.18319307267665863, -0.1393306851387024, 0.21374452114105225, -0.11270123720169067, 0.20576509833335876, 0.06101270020008087, -0.1952587515115738, -0.4594777226448059, 0.050041355192661285, 0.13866479694843292, 0.43514758348464966, 0.4156050384044647, -0.04922927916049957, -0.21959935128688812, 0.052702646702528, 0.1416323184967041, 0.044018104672431946, -0.3519323170185089, 0.1094774529337883, 0.4287140965461731, 0.07112200558185577, 0.018463559448719025, -0.16839413344860077, 0.3001399040222168, -0.02416558936238289, -0.14457444846630096, 0.009976920671761036, 0.03853953629732132, -0.4615333378314972, -0.21006187796592712, 0.024034466594457626, -0.20818309485912323, -0.2153235375881195, -0.1697956621646881, -0.11315509676933289, -0.08307678252458572, -0.26350080966949463, 0.14058613777160645, 0.2836170494556427, -0.09461025893688202, 0.30608075857162476, 0.24136333167552948, -0.35730212926864624, -0.18838392198085785, 0.5763758420944214, -0.034318871796131134, -0.15315943956375122, 0.3977425694465637, 0.009703651070594788, -0.2667919993400574, -0.22589336335659027, 0.26471269130706787, -0.008720070123672485, -0.5552687644958496, 0.005358140915632248, -0.2442559450864792, 0.09470432996749878, -0.060376014560461044, 0.3846193552017212, 0.2534620761871338, 0.15251865983009338, 0.0655352845788002, -0.5687196254730225, -0.01027466356754303, 0.0688735842704773, 0.17081592977046967, 0.4163551926612854, -0.3672190308570862, -0.3088109493255615, -0.08680440485477448, -0.11364702135324478, -0.2778409421443939, 0.01141967624425888, -0.3757002353668213, 0.0113295316696167, -0.10583779215812683, -0.0557275116443634, 0.18687579035758972, 0.005630794912576675, 0.15961813926696777, -0.002528700977563858, -0.22023144364356995, -0.16304363310337067, -0.21616175770759583, 0.15676775574684143, 0.12829738855361938, -0.1293986737728119, 0.10670167207717896, -0.06691954284906387, 0.05157411843538284, -0.09495963156223297, -0.10712869465351105, 0.32794976234436035, -0.19742891192436218, 0.06880860030651093, 0.028485063463449478, -0.07932662963867188, 0.05427108705043793, -0.2081383466720581, -0.342708557844162, -0.15417061746120453, 0.29028403759002686, -0.06083953008055687, 0.13408052921295166, -0.015065141022205353, 0.1764710396528244, 0.1667008399963379, 0.059737078845500946, -0.12134785950183868, 0.3109099566936493, -0.2965932786464691, -0.06901557743549347, 0.06954325735569, 0.3078795075416565, 0.5859782695770264, -0.3248099088668823, -0.0701037347316742, 0.23605340719223022, 0.19943515956401825, -0.26967495679855347, -0.1061142086982727, 0.08822299540042877, 0.0964633896946907, 0.10122170299291611, 0.07777976244688034, -0.13693061470985413, -0.2971312701702118, 0.47333794832229614, 0.19763989746570587, 0.19447360932826996, -0.7444225549697876, 0.12110185623168945, 0.11189258843660355, -0.20942756533622742, -0.012687426060438156, 0.22133487462997437, -0.1534293293952942, -0.09091198444366455, -0.2060396820306778, -0.06698325276374817, 0.38161444664001465, -0.36384886503219604, 0.20922106504440308, -0.2261679470539093, -0.30459460616111755, 0.38761889934539795, -0.0022029653191566467, -0.05062880367040634, 0.187321737408638, 0.22138172388076782, 0.4170786142349243, -0.17893323302268982, 0.32289919257164, -0.6740232706069946, -0.1435573399066925, -0.050553835928440094, -0.19977083802223206, -0.3083726167678833, -0.2873626947402954, -0.06269874423742294, 0.17035318911075592, -0.014222219586372375, -0.01858954131603241, 0.3029104769229889, 0.07466834783554077, -0.20037397742271423, -0.6321531534194946, 0.11774463951587677, -0.16338321566581726, 0.02338109165430069, -0.18738599121570587, -0.00540629867464304, 0.40429043769836426, -0.07043154537677765, 0.09786242246627808, 0.1443995088338852, 0.3789834678173065, 0.35322242975234985, -0.01141621358692646, 0.021593578159809113, -0.2928697466850281, -0.07413658499717712, 0.09634596109390259, 0.8004981875419617, 0.12374955415725708, -0.11629694700241089, 0.3406516909599304, 0.14367246627807617, -0.21669822931289673, 0.5199923515319824, -0.1479879915714264, -0.01572120189666748, -0.03508194535970688, 0.7006475329399109, 0.05409140884876251, 0.16817329823970795, -0.2048671543598175, 0.1254873126745224, -0.3451823592185974, -0.4681110680103302, 0.022095274180173874, 0.1330069750547409, 0.04374280199408531, -0.01836608722805977, 0.057538751512765884, -0.04709756374359131, 0.5547437071800232, 0.27906692028045654, 0.018334830179810524, -0.40843653678894043, 0.010895684361457825, -0.6790778040885925, 0.20030269026756287, -0.323570191860199, 0.1987062394618988, -0.00865192525088787, 0.32249024510383606, 0.03900895640254021, 0.4053058922290802, 0.09740187227725983, -0.12429575622081757, -0.19563442468643188, -0.039381034672260284, -0.22217269241809845, -0.010410808026790619, 0.27492260932922363, -0.14896608889102936, -0.07784537971019745, -0.2355688363313675, 0.07266592234373093, 0.033634547144174576, 0.0702487975358963, -0.04226978123188019, -0.25671684741973877, -0.02933141216635704, 0.28606635332107544, 0.1323135793209076, 0.07552987337112427, 0.6710899472236633, 0.04725055396556854, -0.11629240214824677, -0.418058305978775, -0.2712436616420746, 0.003296583890914917, 0.12239377200603485, -0.05068358778953552, 0.5432876348495483, -0.03294681757688522, -0.3503839671611786, -0.1806841492652893, 0.297698974609375, -0.20011168718338013, -0.5811732411384583, -0.1300952434539795, 0.051218606531620026, -0.06861282885074615, 0.2098846584558487, -0.23609861731529236, 0.055503103882074356, 0.17037516832351685, 0.19223937392234802, -0.09839373826980591, -0.27200210094451904, 0.6404887437820435, -0.19934839010238647, -0.05809976905584335, 0.021524518728256226, 0.15027202665805817, -0.0441080667078495, -0.1477539986371994, -0.5046073794364929, 0.18363916873931885, 0.20081625878810883, 0.042010653764009476, -0.10029816627502441, 0.1392051875591278, -0.3728257119655609, 0.2734101414680481, -0.09023413062095642, 0.2114885002374649, 0.09140503406524658, -0.1839487999677658, -0.22373051941394806, -0.1556932032108307 ]
https://github.com/huggingface/datasets/issues/1856
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>`
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'] ```
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.1977473497390747, 0.16995781660079956, -0.05109279230237007, 0.23982182145118713, 0.14944016933441162, -0.05001053214073181, 0.26483970880508423, 0.22645068168640137, 0.318641722202301, 0.06029542535543442, -0.06212681531906128, 0.007255226373672485, -0.004848897457122803, -0.13671837747097015, -0.20750655233860016, 0.3518308103084564, 0.13856495916843414, -0.016953572630882263, -0.2259686291217804, 0.019292302429676056, -0.2470269650220871, 0.2507217228412628, -0.08148381114006042, -0.1623293161392212, -0.08144532144069672, 0.24534006416797638, 0.18591922521591187, 0.11965116858482361, -0.09244220703840256, -0.4332830607891083, 0.3541625142097473, 0.12079545855522156, 0.05541642755270004, 0.3615809977054596, -0.0001247109757969156, 0.10888238251209259, 0.3887200653553009, 0.057943686842918396, -0.2862361967563629, -0.1727549433708191, -0.44701075553894043, -0.3646291494369507, -0.03329474478960037, 0.0008806437253952026, 0.18492162227630615, 0.07025955617427826, 0.0694611594080925, -0.06314823031425476, 0.005541019141674042, 0.23876258730888367, 0.1421351134777069, 0.4269421398639679, 0.23958872258663177, 0.11778654158115387, 0.2658692002296448, 0.212986558675766, -0.09012389928102493, 0.26914292573928833, 0.21039414405822754, -0.21427352726459503, -0.25081178545951843, 0.11914150416851044, -0.18595178425312042, 0.41468900442123413, 0.10368181020021439, 0.01169665902853012, 0.2535795569419861, -0.18788973987102509, 0.23648840188980103, 0.5302149057388306, 0.34731239080429077, -0.08484213054180145, -0.45748400688171387, -0.1686609983444214, -0.19271732866764069, -0.34312117099761963, 0.34051740169525146, 0.2637237310409546, -0.08643679320812225, -0.138209730386734, -0.355459988117218, 0.13517233729362488, -0.08915872126817703, 0.24016287922859192, -0.09994073212146759, 0.1585041880607605, 0.10897456109523773, 0.05111037194728851, 0.08961513638496399, -0.28314629197120667, 0.47396713495254517, -0.42534077167510986, -0.015205342322587967, 0.1840297430753708, -0.5253767967224121, 0.05387158691883087, 0.019131196662783623, 0.5155971646308899, 0.3433679938316345, 0.44537341594696045, 0.16382071375846863, 0.15424692630767822, -0.11320877075195312, 0.1749989092350006, 0.10057753324508667, 0.16485708951950073, -0.12466756254434586, 0.2837975323200226, 0.3344494700431824, 0.23281852900981903, 0.06633240729570389, 0.15492498874664307, -0.05650339648127556, -0.27418115735054016, 0.5267841815948486, -0.11085233092308044, 0.3137877583503723, -0.5724888443946838, -0.43061888217926025, 0.33649101853370667, -0.1928466260433197, -0.028217755258083344, 0.06756727397441864, 0.22808000445365906, -0.23874531686306, 0.3099795877933502, -0.06434756517410278, 0.0004804227501153946, -0.16649632155895233, 0.05024845525622368, -0.20335648953914642, -0.018749654293060303, -0.08107277005910873, 0.2882337272167206, 0.3058469891548157, -0.029948685318231583, 0.32225728034973145, -0.014862462878227234, 0.2578922510147095, -0.09378119558095932, 0.2736908793449402, -0.14260998368263245, 0.009733583778142929, 0.42591148614883423, -0.2763500213623047, 0.03172643482685089, 0.08268147706985474, 0.05991572141647339, -0.1499500721693039, 0.18885503709316254, -0.1219959706068039, -0.10375640541315079, 0.03411152958869934, 0.08559862524271011, -0.7176010012626648, -0.19093389809131622, 0.023606466129422188, -0.4370226263999939, 0.23197589814662933, -0.4660429358482361, -0.045549552887678146, -0.5799197554588318, 0.02505236119031906, -0.14464262127876282, 0.1525876373052597, 0.31061214208602905, -0.15751177072525024, -0.11120473593473434, -0.1945011168718338, -0.04211881011724472, 0.32145121693611145, 0.33766359090805054, -0.09742214530706406, 0.024970106780529022, -0.26040756702423096, -0.15382957458496094, 0.018291868269443512, -0.2152290940284729, -0.47895491123199463, 0.09745325148105621, -0.1639339029788971, 0.5817301869392395, 0.16185960173606873, 0.16498078405857086, -0.2130649983882904, 0.0506925955414772, 0.20028932392597198, 0.06769125163555145, -0.012575548142194748, 0.16301944851875305, -0.23480956256389618, -0.19295799732208252, 0.3607845902442932, 0.2327781617641449, 0.2313605397939682, -0.02461327239871025, 0.09428377449512482, -0.046942226588726044, 0.26638713479042053, -0.029554840177297592, -0.12640532851219177, 0.14049112796783447, 0.2977231442928314, -0.05657997727394104, -0.01521710678935051, -0.03633638471364975, -0.45107612013816833, 0.28875675797462463, -0.1545192301273346, 0.02368970774114132, -0.10396072268486023, 0.10782164335250854, -0.1292864978313446, -0.23087827861309052, -0.24097062647342682, -0.09346458315849304, -0.03292905539274216, 0.4628792107105255, 0.17295441031455994, 0.0034064501523971558, 0.028060585260391235, 0.24539627134799957, -0.2640745937824249, 0.10126867145299911, -0.5871549248695374, 0.2537442445755005, 0.10945487022399902, 0.09824559092521667, 0.03883257508277893, 0.08060203492641449, 0.06886644661426544, -0.04026937112212181, -0.048374880105257034, 0.3387967348098755, 0.21071778237819672, 0.1517690271139145, -0.004525805823504925, 0.5949784517288208, -0.051488883793354034, -0.04011240601539612, -0.06819960474967957, 0.40755993127822876, 0.16744613647460938, -0.12227138131856918, -0.2599916458129883, 0.6478696465492249, -0.14875419437885284, 0.40133535861968994, -0.024422265589237213, -0.02539355680346489, 0.25951242446899414, -0.14132685959339142, -0.4156425893306732, -0.060627494007349014, 0.49047473073005676, -0.058750540018081665, -0.11782963573932648, 0.09458550810813904, -0.20395097136497498, -0.15348714590072632, 0.23840129375457764, -0.18651750683784485, -0.0035639628767967224, 0.025903115049004555, -0.11448714137077332, -0.07292582839727402, 0.11158119887113571, 0.6173873543739319, 0.6931014060974121, 0.09067563712596893, -0.1532764732837677, -0.07199355959892273, -0.20846083760261536, -0.13191449642181396, 0.05893906205892563, 0.16594456136226654, -0.034493688493967056, 0.4840485453605652, 0.2609242796897888, -0.17415261268615723, -0.4542827606201172, -0.2900518774986267, 0.0969516932964325, 0.16411082446575165, -0.462848424911499, 0.08096062391996384, -0.30646684765815735, 0.14401839673519135, -0.44739970564842224, 0.008924566209316254, -0.30479755997657776, -0.46280717849731445, -0.16764499247074127, 0.5472716093063354, -0.015707172453403473, 0.20099875330924988, -0.6645432710647583, 0.16471368074417114, -0.059483736753463745, -0.4675344228744507, 0.06937240064144135, -0.10887745022773743, -0.01432611420750618, -0.04951941594481468, 0.376041054725647, -0.08424607664346695, 0.390868216753006, -0.1910771280527115, -0.018150940537452698, -0.5628097653388977, -0.4042609930038452, -0.031547363847494125, -0.09615711867809296, -0.08664549887180328, 0.14876802265644073, 0.06610682606697083, 0.2045079618692398, -0.10822999477386475, 0.12198922783136368, 0.0034575164318084717, -0.251530259847641, 0.19216613471508026, -0.1392141431570053, -0.08676658570766449, 0.13034868240356445, -0.1573183238506317, -0.055560171604156494, -0.24161458015441895, 0.12640103697776794, 0.22307482361793518, 0.042624130845069885, 0.08445576578378677, -0.03407050296664238, 0.1342976838350296, -0.18463100492954254, 0.2868455648422241, -0.21104204654693604, -0.47353535890579224, 0.4939223527908325, 0.013770382851362228, -0.20863261818885803, -0.1078977882862091, 0.011479832231998444, 0.20314306020736694, 0.383065789937973, -0.5122942924499512, -0.0500405915081501, -0.3821271061897278, -0.012285448610782623, 0.149518221616745, -0.038167793303728104, 0.24341131746768951, 0.07763360440731049, 0.0006716027855873108, -0.06341921538114548, -0.37525635957717896, 0.011935342103242874, -0.051598381251096725, 0.5554396510124207, -0.16580823063850403, 0.1307978630065918, -0.21956458687782288, 0.5205675363540649, 0.02045363187789917, -0.17738884687423706, -0.015097305178642273, 0.12093214690685272, 0.4579960107803345, -0.08203540742397308, -0.237509623169899, -0.013643328100442886, -0.09285590052604675, 0.0310116708278656, 0.016773559153079987, -0.04595794528722763, -0.05460819974541664, -0.023305922746658325, 0.17575740814208984, -0.1513463258743286, -0.19527503848075867, 0.07363250106573105, -0.20625349879264832, 0.2666287422180176, 0.1491876095533371, 0.08295081555843353, -0.273679256439209, -0.460107684135437, -0.08831578493118286, 0.09901697933673859, 0.013199128210544586, -0.1141732782125473, -0.3601974844932556, 0.0028562918305397034, -0.0865938663482666, 0.36942464113235474, 0.06774343550205231, 0.5374172329902649, 0.003499820828437805, -0.4062407612800598, -0.027481406927108765, -0.19809484481811523, 0.13662631809711456, 0.04133366793394089, 0.15186521410942078, 0.076089046895504, -0.26182276010513306, -0.2618720829486847, -0.30117103457450867, -0.14559337496757507, 0.19725289940834045, 0.010223736986517906, 0.42639556527137756, -0.31119081377983093, 0.009012766182422638, 0.07704330235719681, 0.5044951438903809, -0.17369218170642853, -0.16611692309379578, -0.3287210762500763, -0.11039067804813385, -0.20563042163848877, -0.06700005382299423, -0.14884069561958313, 0.18985338509082794, -0.27600449323654175, 0.2880744934082031, -0.11593170464038849, -0.04205246642231941, 0.3881798982620239, 0.08116394281387329, 0.2963176369667053, -0.08518491685390472, 0.3596174716949463, 0.1865711212158203, -0.09970220923423767, 0.2935778796672821, 0.7036967277526855, -0.07592295855283737, -0.4403664171695709, 0.13707490265369415, -0.08124546706676483, -0.2529206871986389, 0.34463900327682495, 0.042170748114585876, -0.020726945251226425, 0.4141944646835327, -0.06938491761684418, -0.15437892079353333, 0.05176270380616188, 0.28867876529693604, 0.11547532677650452, -0.3386642634868622, -0.2388705015182495, 0.14380484819412231, 0.06972368061542511, -0.15266545116901398, 0.462960422039032, 0.050919897854328156, -0.10791583359241486, 0.101127490401268, 0.12036434561014175, 0.8393641710281372, 0.1140444204211235, 0.37781932950019836, 0.026708438992500305, -0.0391325019299984, 0.2921770215034485, -0.013614989817142487, 0.20006321370601654, -0.4918190836906433, -0.23180009424686432, -0.06688176095485687, -0.3209640681743622, 0.19609171152114868, -0.10471776127815247, 0.27094724774360657, 0.43526482582092285, 0.21989747881889343, 0.23707334697246552, 0.13467690348625183, 0.09945020079612732, -0.12655217945575714, 0.008076097816228867, 0.054368529468774796, 0.09918472170829773, -0.19567632675170898, 0.4031539559364319, -0.04686577990651131, 0.09235359728336334, -0.09315823763608932, -0.23608970642089844, -0.4514453411102295, 0.11429199576377869, 0.02594270557165146, 0.4191180169582367, 0.39710143208503723, -0.05957500636577606, -0.24795769155025482, 0.14148947596549988, 0.16917534172534943, 0.04258596524596214, -0.276638388633728, 0.1784694790840149, 0.467168927192688, 0.0909845381975174, 0.028695523738861084, -0.21776804327964783, 0.3202313184738159, 0.019105084240436554, -0.11458787322044373, -0.004474012181162834, -0.00869981199502945, -0.4215157628059387, -0.26505929231643677, -0.003822801634669304, -0.017931601032614708, -0.2658554017543793, -0.13915781676769257, -0.12470613420009613, -0.012355700135231018, -0.24723321199417114, 0.08719481527805328, 0.3706958591938019, -0.12432533502578735, 0.23021584749221802, 0.15208107233047485, -0.35444945096969604, -0.204787477850914, 0.590853750705719, -0.12277300655841827, -0.25881892442703247, 0.5218560695648193, -0.11360201984643936, -0.13347811996936798, -0.14093834161758423, 0.22751963138580322, 0.09631011635065079, -0.4837849736213684, 0.050091952085494995, -0.2060241848230362, 0.026120439171791077, 0.007830042392015457, 0.29119133949279785, 0.22441482543945312, -0.01704483851790428, 0.09978797286748886, -0.5264368057250977, -0.07967580109834671, 0.09519335627555847, 0.057517532259225845, 0.41520681977272034, -0.272110253572464, -0.23814381659030914, -0.35413026809692383, -0.275493860244751, -0.22713541984558105, 0.09206853061914444, -0.20976018905639648, -0.039622627198696136, -0.01889028027653694, -0.034364331513643265, 0.2426287680864334, -0.029357176274061203, 0.1448669135570526, 0.045999981462955475, -0.12306182831525803, -0.12126538157463074, -0.27681779861450195, 0.2021894007921219, 0.11572733521461487, -0.09818249940872192, 0.0693177655339241, -0.09418750554323196, 0.11005416512489319, -0.11274567246437073, 0.11771132797002792, 0.29052913188934326, -0.17019113898277283, -0.05985844135284424, 0.01586863026022911, -0.04492677375674248, 0.14175710082054138, -0.00806446559727192, -0.36330273747444153, -0.09027751535177231, 0.3748224079608917, 0.0704592615365982, 0.02434006705880165, 0.02741311490535736, 0.05990930646657944, 0.1317330300807953, -0.031007889658212662, -0.13022136688232422, 0.4147026836872101, -0.32551655173301697, -0.1937371790409088, 0.07433627545833588, 0.2790167033672333, 0.6166605949401855, -0.32772096991539, -0.10521465539932251, 0.2799761891365051, 0.17889609932899475, -0.2058534026145935, -0.14309491217136383, 0.1972789764404297, -0.015263013541698456, 0.10522733628749847, 0.1560051441192627, -0.09996502101421356, -0.26745155453681946, 0.37035077810287476, 0.15760543942451477, 0.2714167535305023, -0.4941527545452118, 0.19630485773086548, 0.2657334804534912, -0.16137704253196716, -0.010738011449575424, 0.25565943121910095, -0.0921964943408966, -0.06561305373907089, 0.0056158509105443954, -0.053290896117687225, 0.32977980375289917, -0.43412119150161743, 0.08546474575996399, -0.18958963453769684, -0.44096580147743225, 0.28927579522132874, 0.07980906218290329, -0.03378330171108246, 0.2495214343070984, 0.14167189598083496, 0.31443920731544495, -0.21662572026252747, 0.3021010160446167, -0.5998128652572632, -0.01769298128783703, -0.030402973294258118, -0.18134160339832306, -0.15735110640525818, -0.3583909273147583, 0.09248468279838562, 0.2413349747657776, -0.009432347491383553, 0.02551138401031494, 0.3337194323539734, 0.1591833233833313, -0.2511439621448517, -0.5507923364639282, -0.08350785076618195, -0.056750040501356125, 0.03599308431148529, -0.1781901717185974, 0.03370705246925354, 0.41500943899154663, -0.10863202810287476, 0.14954733848571777, 0.21842585504055023, 0.551374614238739, 0.3730781376361847, 0.05042894184589386, -0.14655080437660217, -0.2240878939628601, -0.017787564545869827, 0.0449722558259964, 0.7161058783531189, -0.01401052251458168, -0.05738722160458565, 0.3180463910102844, 0.08893647789955139, -0.13145753741264343, 0.3808569610118866, -0.29007071256637573, -0.17175117135047913, -0.08608175814151764, 0.6210691928863525, 0.00971398688852787, 0.16109302639961243, -0.24362170696258545, 0.18752583861351013, -0.31577885150909424, -0.39806801080703735, 0.13995522260665894, 0.19684606790542603, 0.0464000478386879, 0.08362268656492233, 0.022741008549928665, -0.151720330119133, 0.5273546576499939, 0.3188103437423706, 0.06476841866970062, -0.4174138009548187, 0.08852127194404602, -0.7221713066101074, 0.30249086022377014, -0.3389042317867279, 0.15215355157852173, -0.09381010383367538, 0.21136145293712616, 0.08346785604953766, 0.20103926956653595, 0.04665437340736389, -0.2246110439300537, -0.12089724838733673, -0.12126090377569199, -0.24254591763019562, -0.09150785952806473, 0.3232155740261078, -0.21684223413467407, -0.051425229758024216, -0.301135778427124, 0.1313190907239914, -0.013224590569734573, 0.07395696640014648, 0.012301843613386154, -0.028964340686798096, -0.17690277099609375, 0.24764855206012726, 0.11431233584880829, 0.17318220436573029, 0.7652647495269775, 0.06575851142406464, -0.2970636487007141, -0.46816015243530273, -0.2858736515045166, -0.09809485077857971, 0.2642611861228943, -0.13599054515361786, 0.6043873429298401, -0.00548379123210907, -0.32125768065452576, -0.2743750214576721, 0.3681734502315521, -0.15998758375644684, -0.579129695892334, 0.04257974773645401, 0.036480650305747986, -0.11747067421674728, 0.23599311709403992, -0.12782257795333862, 0.10467270761728287, 0.10122160613536835, 0.2595418095588684, -0.16834574937820435, -0.313241571187973, 0.6432461738586426, -0.3836360573768616, -0.029061399400234222, -0.01337539404630661, 0.21578647196292877, -0.04617026075720787, -0.0788293182849884, -0.578417181968689, 0.26468536257743835, 0.2759847939014435, 0.0526714064180851, -0.26283931732177734, 0.10175097733736038, -0.2769646644592285, 0.27393287420272827, -0.03192741796374321, 0.2957468032836914, 0.02211036905646324, -0.35651275515556335, -0.19946470856666565, -0.030063148587942123 ]
https://github.com/huggingface/datasets/issues/1856
A similar issue arises when trying to stream the dataset ```python >>> from datasets import load_dataset >>> iter_dset = load_dataset("amazon_polarity", split="test", streaming=True) >>> iter(iter_dset).__next__() --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~\lib\tarfile.py in nti(s) 186 s = nts(s, "ascii", "strict") --> 187 n = int(s.strip() or "0", 8) 188 except ValueError: ValueError: invalid literal for int() with base 8: 'e nonce=' During handling of the above exception, another exception occurred: InvalidHeaderError Traceback (most recent call last) ~\lib\tarfile.py in next(self) 2288 try: -> 2289 tarinfo = self.tarinfo.fromtarfile(self) 2290 except EOFHeaderError as e: ~\lib\tarfile.py in fromtarfile(cls, tarfile) 1094 buf = tarfile.fileobj.read(BLOCKSIZE) -> 1095 obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors) 1096 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE ~\lib\tarfile.py in frombuf(cls, buf, encoding, errors) 1036 -> 1037 chksum = nti(buf[148:156]) 1038 if chksum not in calc_chksums(buf): ~\lib\tarfile.py in nti(s) 188 except ValueError: --> 189 raise InvalidHeaderError("invalid header") 190 return n InvalidHeaderError: invalid header During handling of the above exception, another exception occurred: ReadError Traceback (most recent call last) <ipython-input-5-6b9058341b2b> in <module> ----> 1 iter(iter_dset).__next__() ~\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 363 364 def __iter__(self): --> 365 for key, example in self._iter(): 366 if self.features: 367 # we encode the example for ClassLabel feature types for example ~\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 360 else: 361 ex_iterable = self._ex_iterable --> 362 yield from ex_iterable 363 364 def __iter__(self): ~\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 77 78 def __iter__(self): ---> 79 yield from self.generate_examples_fn(**self.kwargs) 80 81 def shuffle_data_sources(self, seed: Optional[int]) -> "ExamplesIterable": ~\.cache\huggingface\modules\datasets_modules\datasets\amazon_polarity\56923eeb72030cb6c4ea30c8a4e1162c26b25973475ac1f44340f0ec0f2936f4\amazon_polarity.py in _generate_examples(self, filepath, files) 114 def _generate_examples(self, filepath, files): 115 """Yields examples.""" --> 116 for path, f in files: 117 if path == filepath: 118 lines = (line.decode("utf-8") for line in f) ~\lib\site-packages\datasets\utils\streaming_download_manager.py in __iter__(self) 616 617 def __iter__(self): --> 618 yield from self.generator(*self.args, **self.kwargs) 619 620 ~\lib\site-packages\datasets\utils\streaming_download_manager.py in _iter_from_urlpath(cls, urlpath, use_auth_token) 644 ) -> Generator[Tuple, None, None]: 645 with xopen(urlpath, "rb", use_auth_token=use_auth_token) as f: --> 646 yield from cls._iter_from_fileobj(f) 647 648 @classmethod ~\lib\site-packages\datasets\utils\streaming_download_manager.py in _iter_from_fileobj(cls, f) 624 @classmethod 625 def _iter_from_fileobj(cls, f) -> Generator[Tuple, None, None]: --> 626 stream = tarfile.open(fileobj=f, mode="r|*") 627 for tarinfo in stream: 628 file_path = tarinfo.name ~\lib\tarfile.py in open(cls, name, mode, fileobj, bufsize, **kwargs) 1603 stream = _Stream(name, filemode, comptype, fileobj, bufsize) 1604 try: -> 1605 t = cls(name, filemode, stream, **kwargs) 1606 except: 1607 stream.close() ~\lib\tarfile.py in __init__(self, name, mode, fileobj, format, tarinfo, dereference, ignore_zeros, encoding, errors, pax_headers, debug, errorlevel, copybufsize) 1484 if self.mode == "r": 1485 self.firstmember = None -> 1486 self.firstmember = self.next() 1487 1488 if self.mode == "a": ~\lib\tarfile.py in next(self) 2299 continue 2300 elif self.offset == 0: -> 2301 raise ReadError(str(e)) 2302 except EmptyHeaderError: 2303 if self.offset == 0: ReadError: invalid header ```
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'] ```
430
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'] ``` A similar issue arises when trying to stream the dataset ```python >>> from datasets import load_dataset >>> iter_dset = load_dataset("amazon_polarity", split="test", streaming=True) >>> iter(iter_dset).__next__() --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~\lib\tarfile.py in nti(s) 186 s = nts(s, "ascii", "strict") --> 187 n = int(s.strip() or "0", 8) 188 except ValueError: ValueError: invalid literal for int() with base 8: 'e nonce=' During handling of the above exception, another exception occurred: InvalidHeaderError Traceback (most recent call last) ~\lib\tarfile.py in next(self) 2288 try: -> 2289 tarinfo = self.tarinfo.fromtarfile(self) 2290 except EOFHeaderError as e: ~\lib\tarfile.py in fromtarfile(cls, tarfile) 1094 buf = tarfile.fileobj.read(BLOCKSIZE) -> 1095 obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors) 1096 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE ~\lib\tarfile.py in frombuf(cls, buf, encoding, errors) 1036 -> 1037 chksum = nti(buf[148:156]) 1038 if chksum not in calc_chksums(buf): ~\lib\tarfile.py in nti(s) 188 except ValueError: --> 189 raise InvalidHeaderError("invalid header") 190 return n InvalidHeaderError: invalid header During handling of the above exception, another exception occurred: ReadError Traceback (most recent call last) <ipython-input-5-6b9058341b2b> in <module> ----> 1 iter(iter_dset).__next__() ~\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 363 364 def __iter__(self): --> 365 for key, example in self._iter(): 366 if self.features: 367 # we encode the example for ClassLabel feature types for example ~\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 360 else: 361 ex_iterable = self._ex_iterable --> 362 yield from ex_iterable 363 364 def __iter__(self): ~\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 77 78 def __iter__(self): ---> 79 yield from self.generate_examples_fn(**self.kwargs) 80 81 def shuffle_data_sources(self, seed: Optional[int]) -> "ExamplesIterable": ~\.cache\huggingface\modules\datasets_modules\datasets\amazon_polarity\56923eeb72030cb6c4ea30c8a4e1162c26b25973475ac1f44340f0ec0f2936f4\amazon_polarity.py in _generate_examples(self, filepath, files) 114 def _generate_examples(self, filepath, files): 115 """Yields examples.""" --> 116 for path, f in files: 117 if path == filepath: 118 lines = (line.decode("utf-8") for line in f) ~\lib\site-packages\datasets\utils\streaming_download_manager.py in __iter__(self) 616 617 def __iter__(self): --> 618 yield from self.generator(*self.args, **self.kwargs) 619 620 ~\lib\site-packages\datasets\utils\streaming_download_manager.py in _iter_from_urlpath(cls, urlpath, use_auth_token) 644 ) -> Generator[Tuple, None, None]: 645 with xopen(urlpath, "rb", use_auth_token=use_auth_token) as f: --> 646 yield from cls._iter_from_fileobj(f) 647 648 @classmethod ~\lib\site-packages\datasets\utils\streaming_download_manager.py in _iter_from_fileobj(cls, f) 624 @classmethod 625 def _iter_from_fileobj(cls, f) -> Generator[Tuple, None, None]: --> 626 stream = tarfile.open(fileobj=f, mode="r|*") 627 for tarinfo in stream: 628 file_path = tarinfo.name ~\lib\tarfile.py in open(cls, name, mode, fileobj, bufsize, **kwargs) 1603 stream = _Stream(name, filemode, comptype, fileobj, bufsize) 1604 try: -> 1605 t = cls(name, filemode, stream, **kwargs) 1606 except: 1607 stream.close() ~\lib\tarfile.py in __init__(self, name, mode, fileobj, format, tarinfo, dereference, ignore_zeros, encoding, errors, pax_headers, debug, errorlevel, copybufsize) 1484 if self.mode == "r": 1485 self.firstmember = None -> 1486 self.firstmember = self.next() 1487 1488 if self.mode == "a": ~\lib\tarfile.py in next(self) 2299 continue 2300 elif self.offset == 0: -> 2301 raise ReadError(str(e)) 2302 except EmptyHeaderError: 2303 if self.offset == 0: ReadError: invalid header ```
[ -0.3396334648132324, 0.020067602396011353, -0.046227674931287766, 0.17625856399536133, 0.13730300962924957, 0.08595189452171326, 0.19963882863521576, 0.13551568984985352, 0.2324957251548767, 0.08524835854768753, -0.04402138665318489, 0.07850921154022217, -0.02695854753255844, -0.08933530747890472, -0.241651713848114, 0.17428357899188995, 0.013500288128852844, 0.07833950966596603, -0.18137270212173462, 0.08021612465381622, -0.2044002115726471, 0.2318347841501236, -0.0237760990858078, -0.3260403275489807, 0.026984363794326782, 0.2008015513420105, 0.250069797039032, 0.07164284586906433, -0.12791261076927185, -0.3315078616142273, 0.4326397180557251, 0.17062781751155853, 0.12647399306297302, 0.23137009143829346, -0.00012198804324725643, 0.07159312069416046, 0.3433467745780945, 0.04386737942695618, -0.40288129448890686, -0.33146917819976807, -0.5118099451065063, -0.2734094262123108, 0.09817425906658173, -0.03448828309774399, 0.07425174117088318, 0.21437841653823853, 0.14069288969039917, -0.2628237009048462, 0.10209688544273376, 0.1484520435333252, 0.1718684732913971, 0.47902482748031616, 0.06665810942649841, 0.2748759090900421, 0.24067655205726624, 0.23078292608261108, -0.09057693928480148, 0.23134639859199524, 0.09972324967384338, 0.01932041347026825, -0.22822758555412292, 0.14794112741947174, -0.15953569114208221, 0.464939683675766, 0.1188286691904068, -0.08065309375524521, 0.1982024908065796, -0.1641780585050583, 0.2228665053844452, 0.44936102628707886, 0.40768197178840637, -0.16147544980049133, -0.3458152115345001, 0.003918208181858063, -0.21197162568569183, -0.3545731008052826, 0.2643466591835022, 0.32562005519866943, -0.16742321848869324, -0.22343015670776367, -0.3788585960865021, 0.20026642084121704, -0.1209719255566597, 0.18178097903728485, 0.009602256119251251, 0.33450791239738464, 0.08846965432167053, 0.10901886224746704, 0.08600671589374542, -0.19229759275913239, 0.6059761047363281, -0.423942506313324, -0.03317898511886597, 0.21712908148765564, -0.5905472040176392, 0.09414683282375336, -0.1089562326669693, 0.4130988121032715, 0.12930724024772644, 0.4920397996902466, 0.26824140548706055, 0.27193737030029297, 0.07594295591115952, 0.19200290739536285, 0.19997194409370422, 0.10440633445978165, -0.021661531180143356, 0.29665976762771606, 0.12726543843746185, 0.26805955171585083, 0.019873730838298798, 0.025653254240751266, 0.059173569083213806, -0.1552528291940689, 0.7049297094345093, -0.03502810373902321, 0.3174933195114136, -0.4742211103439331, -0.44241151213645935, 0.20727933943271637, -0.2103002965450287, -0.15110166370868683, 0.17174185812473297, 0.15107658505439758, -0.19081264734268188, 0.3247172236442566, -0.01956004649400711, -0.07196524739265442, -0.18999439477920532, 0.06915965676307678, -0.20976290106773376, -0.11848936975002289, -0.013080663979053497, 0.2303151786327362, 0.2611054480075836, -0.17230823636054993, 0.2835674285888672, -0.040116243064403534, 0.1978955864906311, -0.05059795826673508, 0.43498513102531433, -0.10429850220680237, -0.006957259029150009, 0.4169871211051941, -0.1348940134048462, 0.11643540859222412, 0.14456576108932495, 0.16966941952705383, -0.1715202033519745, 0.13910233974456787, -0.013942334800958633, -0.1864033192396164, 0.09930280596017838, 0.1260029524564743, -0.5512732267379761, -0.1957075297832489, 0.06607741862535477, -0.38225850462913513, 0.19535347819328308, -0.4674839377403259, -0.10386985540390015, -0.4537022113800049, -0.062293641269207, -0.11004556715488434, 0.13298043608665466, 0.28662094473838806, -0.15037301182746887, -0.09364920854568481, -0.2468952238559723, -0.1209961399435997, 0.6206521391868591, 0.2615719437599182, -0.046052757650613785, -0.09562140703201294, -0.1598234325647354, -0.21234895288944244, 0.06106175482273102, -0.11048562824726105, -0.3963792324066162, 0.21344749629497528, -0.09825921058654785, 0.6506130695343018, 0.10283172130584717, 0.3170914053916931, -0.04338756948709488, 0.04107050597667694, 0.2137342393398285, 0.1910858005285263, -0.06794185191392899, 0.1569678634405136, -0.2200038880109787, -0.16812840104103088, 0.3746047019958496, 0.2574886083602905, 0.03814823925495148, 0.038806475698947906, 0.08618263900279999, -0.03489472717046738, 0.254719078540802, -0.02197830006480217, -0.028751950711011887, 0.05942874029278755, 0.2873668670654297, -0.025531210005283356, -0.03967104107141495, -0.09771127998828888, -0.5329664945602417, 0.21391111612319946, -0.04084062576293945, -0.02915184572339058, -0.08551419526338577, 0.1365227997303009, -0.06508374214172363, -0.17196515202522278, -0.27237334847450256, 0.06034014746546745, 0.018755514174699783, 0.5706146955490112, 0.15986520051956177, -0.15498170256614685, 0.000525154173374176, 0.28170421719551086, -0.3974832594394684, 0.016729090362787247, -0.5769186615943909, 0.3520231544971466, 0.15050627291202545, 0.060817163437604904, 0.10694285482168198, 0.03199033811688423, 0.07854357361793518, 0.012370258569717407, -0.14549429714679718, 0.3607146143913269, 0.12433570623397827, 0.247508242726326, -0.04874737188220024, 0.5428749322891235, -0.04912018030881882, -0.1858496367931366, -0.16700294613838196, 0.5169447660446167, 0.13740195333957672, -0.13402818143367767, -0.13672080636024475, 0.4937775731086731, -0.174580916762352, 0.48010021448135376, 0.0012223422527313232, 0.1034565269947052, 0.3119765818119049, 0.05082330107688904, -0.43692442774772644, -0.13975174725055695, 0.5391438603401184, -0.22250573337078094, -0.11123749613761902, 0.040891990065574646, -0.250399649143219, -0.11037438362836838, 0.08936402946710587, -0.12468430399894714, -0.04897940903902054, 0.09269095957279205, -0.028926871716976166, -0.15482482314109802, 0.21536777913570404, 0.6824842095375061, 0.5565805435180664, 0.05395346134901047, 0.018378010019659996, -0.04418204724788666, -0.3000759482383728, -0.0840936228632927, 0.1238497793674469, 0.17240385711193085, 0.005234662443399429, 0.4140300154685974, 0.1253276914358139, -0.17906254529953003, -0.4833469092845917, -0.26805293560028076, -0.0007615461945533752, 0.24705056846141815, -0.3836142420768738, 0.15928752720355988, -0.3329056203365326, 0.13046234846115112, -0.3312425911426544, -0.18552462756633759, -0.1911400854587555, -0.511290967464447, -0.22789640724658966, 0.5458832383155823, -0.062306322157382965, 0.16831809282302856, -0.5661453008651733, 0.027905359864234924, 0.02680359035730362, -0.4693719148635864, -0.04650842770934105, -0.22325992584228516, 0.03250511735677719, -0.037371743470430374, 0.3232027292251587, 0.008492715656757355, 0.45330366492271423, -0.2851104438304901, 0.07407693564891815, -0.6053286790847778, -0.22800415754318237, -0.045145630836486816, -0.008958940394222736, -0.012293090112507343, 0.18864451348781586, 0.29777196049690247, 0.05607471615076065, -0.264986127614975, 0.16618211567401886, 0.0008708983659744263, -0.16749358177185059, 0.32750701904296875, -0.2753472328186035, -0.008416388183832169, 0.19838330149650574, -0.11208102107048035, -0.11620131880044937, -0.30213746428489685, 0.010133684612810612, 0.2615036368370056, 0.10489608347415924, 0.09992062300443649, -0.05227310582995415, -0.018616698682308197, -0.08960601687431335, 0.3046799302101135, -0.21193215250968933, -0.6586393713951111, 0.4983042776584625, -0.013727258890867233, -0.12737324833869934, -0.004055291414260864, 0.10556301474571228, 0.2971650958061218, 0.5035528540611267, -0.4784962832927704, 0.05949978530406952, -0.36771541833877563, -0.11087029427289963, 0.11431922018527985, -0.03320907801389694, 0.20914961397647858, 0.1441221833229065, 0.010259877890348434, -0.013654105365276337, -0.39161986112594604, 0.0012658312916755676, -0.007632293738424778, 0.5102407932281494, -0.11345270276069641, 0.21066847443580627, -0.23577240109443665, 0.5270028710365295, 0.08224329352378845, -0.1733270287513733, 0.04477472975850105, 0.14323624968528748, 0.3101237714290619, -0.12177246809005737, -0.25769945979118347, -0.09602159261703491, -0.1461247205734253, -0.011200621724128723, 0.04941587895154953, -0.016072582453489304, -0.22875350713729858, -0.12562519311904907, 0.1764492243528366, -0.16174961626529694, -0.2199491709470749, 0.01768106035888195, -0.24342869222164154, 0.4367467164993286, 0.14933639764785767, 0.12558966875076294, -0.20276029407978058, -0.5458480715751648, -0.1366506814956665, 0.17290270328521729, -0.025159135460853577, -0.10265389084815979, -0.3500325679779053, -0.07081276923418045, -0.10714639723300934, 0.3167126774787903, 0.046928323805332184, 0.6563400030136108, -0.04101046174764633, -0.32024526596069336, 0.06725790351629257, -0.08958633244037628, -0.005637355148792267, -0.2357359081506729, 0.15375590324401855, 0.052271127700805664, -0.16612237691879272, -0.2949260175228119, -0.1418961137533188, -0.16030322015285492, 0.2406824678182602, -0.050405167043209076, 0.267467737197876, -0.29759693145751953, 0.048592459410429, 0.03962862491607666, 0.4624841809272766, -0.19252410531044006, -0.32393765449523926, -0.3865364193916321, -0.08769914507865906, -0.1828252524137497, -0.11347772181034088, -0.26996853947639465, 0.16281932592391968, -0.18033193051815033, 0.17242661118507385, -0.03705408051609993, 0.0406719371676445, 0.3431011140346527, 0.05518096312880516, 0.2906830310821533, -0.03494861721992493, 0.35966575145721436, 0.2235901951789856, -0.0895819216966629, 0.16041967272758484, 0.6656162142753601, 0.009304769337177277, -0.45284944772720337, 0.1585652232170105, 0.005811825394630432, -0.24866367876529694, 0.2400204837322235, 0.10302430391311646, -0.07114893198013306, 0.5261312127113342, -0.03174677491188049, -0.13153061270713806, -0.09014462679624557, 0.1820909082889557, 0.09888306260108948, -0.34644055366516113, -0.3543509244918823, 0.007367262616753578, -0.04068724066019058, -0.04481760412454605, 0.5264521241188049, 0.016710864380002022, -0.05564402416348457, 0.25387445092201233, 0.3387206196784973, 0.924336314201355, 0.013196337968111038, 0.24987423419952393, 0.06758883595466614, -0.2645835876464844, 0.23534317314624786, -0.10616268962621689, 0.17731936275959015, -0.40239760279655457, -0.11138850450515747, -0.08068101853132248, -0.26605015993118286, 0.17317934334278107, -0.06338534504175186, 0.07048597186803818, 0.3805571496486664, 0.10178123414516449, 0.1783585399389267, 0.1099620833992958, 0.05094823241233826, -0.2167835831642151, -0.14986583590507507, 0.03436070308089256, 0.12825588881969452, -0.2835894227027893, 0.2589747905731201, -0.09115797281265259, 0.1619134098291397, 0.23447825014591217, -0.18841665983200073, -0.3627933859825134, 0.09602220356464386, 0.027204297482967377, 0.3270931541919708, 0.22541408240795135, -0.06132463365793228, -0.2527742087841034, 0.0694727823138237, 0.08337372541427612, -0.015101577155292034, -0.24212445318698883, 0.15796416997909546, 0.4691425561904907, 0.10983148217201233, -0.030359406024217606, -0.1399456262588501, 0.22790224850177765, -0.014439091086387634, -0.1557123363018036, 0.12633436918258667, 0.019320502877235413, -0.49032098054885864, -0.1234179213643074, -0.004272859543561935, 0.01294737495481968, -0.18032583594322205, -0.07698850333690643, -0.13775292038917542, -0.09208346158266068, -0.25621485710144043, 0.1169150248169899, 0.22192400693893433, -0.22912542521953583, 0.24264881014823914, 0.14315487444400787, -0.3301040828227997, -0.21923160552978516, 0.533694326877594, -0.06822944432497025, -0.1738731861114502, 0.5293635129928589, -0.006607778370380402, -0.253389835357666, -0.18310457468032837, 0.128911554813385, -0.05319973826408386, -0.45395705103874207, -0.05629254877567291, -0.20063333213329315, 0.17816470563411713, -0.06590586155653, 0.3338592052459717, 0.20328374207019806, 0.08689884841442108, 0.020408697426319122, -0.5323845744132996, -0.09164632111787796, -0.08275020122528076, 0.1560000777244568, 0.4417191743850708, -0.3257814943790436, -0.38766637444496155, -0.211586594581604, -0.1713598668575287, -0.2470143437385559, -0.11013570427894592, -0.2526587247848511, 0.03872130811214447, -0.04159998148679733, -0.014224395155906677, 0.313610315322876, 0.01626173034310341, 0.1669939160346985, 0.006112989038228989, -0.170558363199234, -0.13642489910125732, -0.22222250699996948, 0.17021435499191284, 0.11828513443470001, -0.22272270917892456, -0.000775899738073349, -0.055254191160202026, 0.04374902322888374, -0.1300974041223526, -0.07030657678842545, 0.29026302695274353, -0.18287816643714905, 0.040467165410518646, 0.1347673535346985, -0.053296320140361786, -0.0026149675250053406, -0.11515256762504578, -0.32885506749153137, 0.0019878335297107697, 0.211271733045578, -0.006351599004119635, 0.09341250360012054, -0.07700562477111816, 0.1279127299785614, 0.08485499024391174, 0.14131097495555878, -0.13166849315166473, 0.34668445587158203, -0.2885119915008545, -0.0558709092438221, 0.029077831655740738, 0.3171931207180023, 0.5558387637138367, -0.19176703691482544, -0.13516314327716827, 0.19885505735874176, 0.19296398758888245, -0.14157751202583313, -0.07255252450704575, 0.07895946502685547, 0.06308798491954803, 0.1174522340297699, 0.027103155851364136, -0.1803334653377533, -0.3238470256328583, 0.441914439201355, 0.12368667125701904, 0.15793660283088684, -0.6431884765625, 0.1776740550994873, 0.28760525584220886, -0.11335734277963638, -0.0316084660589695, 0.09909311681985855, -0.05449533089995384, -0.15340223908424377, -0.11903713643550873, -0.10269270837306976, 0.2947072684764862, -0.23410296440124512, 0.13862009346485138, -0.3215084373950958, -0.38591328263282776, 0.27769696712493896, 0.02433609962463379, -0.04322372004389763, 0.2902542054653168, 0.24928992986679077, 0.33564987778663635, -0.08483731746673584, 0.29497694969177246, -0.5646453499794006, -0.09732694923877716, -0.026628801599144936, -0.2040780931711197, -0.30489417910575867, -0.2524317502975464, 0.017323285341262817, 0.19358275830745697, 0.09527405351400375, 0.10850726068019867, 0.28554481267929077, 0.16550825536251068, -0.11365987360477448, -0.5689333081245422, 0.005002010613679886, -0.04725921154022217, -0.05831323191523552, -0.19959130883216858, 0.09121928364038467, 0.4206162393093109, -0.027780313044786453, 0.20233094692230225, 0.06662439554929733, 0.3695971965789795, 0.3738473355770111, -0.0035199299454689026, 0.1566704511642456, -0.19622361660003662, -0.09802347421646118, 0.06770612299442291, 0.7347948551177979, 0.05004581809043884, -0.08020856976509094, 0.3501648008823395, 0.12163026630878448, -0.17136460542678833, 0.3853725790977478, -0.26220273971557617, -0.11295327544212341, -0.03561180457472801, 0.7241023778915405, 0.06438951194286346, 0.25963103771209717, -0.1945895403623581, 0.10894022136926651, -0.41376906633377075, -0.3573667109012604, 0.10055379569530487, 0.06358186900615692, 0.023687247186899185, 0.06961926817893982, 0.02500619739294052, -0.15013936161994934, 0.560802161693573, 0.25165581703186035, 0.061557624489068985, -0.4225754737854004, -0.04069916903972626, -0.6800879836082458, 0.17729824781417847, -0.2970673739910126, 0.10794477164745331, -0.03949729725718498, 0.3517917990684509, 0.04191821441054344, 0.2828952372074127, 0.0718119665980339, -0.1872687041759491, -0.18134942650794983, -0.012615613639354706, -0.1471899449825287, -0.10276756435632706, 0.3242102265357971, -0.1195574551820755, -0.1421814113855362, -0.3396233320236206, 0.14404499530792236, 0.08608287572860718, 0.060270726680755615, 0.05816756188869476, -0.14889903366565704, -0.07073984295129776, 0.20006301999092102, 0.08330948650836945, 0.13472570478916168, 0.7046471834182739, 0.01086166501045227, -0.2151334583759308, -0.37780243158340454, -0.24376708269119263, -0.04346412420272827, 0.16056735813617706, -0.08620855212211609, 0.6452892422676086, 0.014209523797035217, -0.3217860460281372, -0.3444404900074005, 0.2909236550331116, -0.16537266969680786, -0.6211539506912231, -0.14779424667358398, 0.09444048255681992, -0.14487135410308838, 0.3220865726470947, -0.23131388425827026, 0.07268528640270233, 0.20386569201946259, 0.22498267889022827, -0.1535399705171585, -0.28513914346694946, 0.6619889140129089, -0.34843891859054565, -0.09340465068817139, 0.04015203192830086, 0.12773139774799347, 0.013814921490848064, -0.013465899974107742, -0.5556977987289429, 0.2905689477920532, 0.2878231406211853, -0.09641849994659424, -0.025114934891462326, 0.12675268948078156, -0.2603839039802551, 0.37928247451782227, -0.08867786079645157, 0.1671065241098404, 0.16516831517219543, -0.23453402519226074, -0.18983596563339233, -0.11638051271438599 ]
https://github.com/huggingface/datasets/issues/1856
This error still happens, but for a different reason now: Google Drive returns a warning instead of the dataset.
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'] ```
19
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'] ``` This error still happens, but for a different reason now: Google Drive returns a warning instead of the dataset.
[ -0.28189346194267273, 0.1576433777809143, -0.06837515532970428, 0.09960294514894485, 0.10807443410158157, 0.16043893992900848, 0.46409910917282104, 0.08679676055908203, 0.2902541160583496, 0.1448865830898285, 0.05735684186220169, -0.029875747859477997, -0.10137246549129486, 0.011113062500953674, -0.28880244493484497, 0.25144460797309875, 0.13003051280975342, 0.014966711401939392, -0.026426464319229126, 0.025329142808914185, -0.37528347969055176, 0.3360220491886139, 0.00805671513080597, -0.195482075214386, -0.0802752673625946, 0.10966169834136963, 0.25152477622032166, 0.05237506702542305, -0.05497869849205017, -0.3080161213874817, 0.39113855361938477, 0.10906749218702316, 0.08638028800487518, 0.24919050931930542, -0.00012440163118299097, 0.13673582673072815, 0.4725240170955658, 0.04629763960838318, -0.32198014855384827, -0.35187914967536926, -0.3527873754501343, -0.17892895638942719, 0.076726995408535, -0.10954360663890839, 0.09438268840312958, 0.15383312106132507, 0.18434685468673706, -0.10080136358737946, 0.005624696612358093, 0.16871128976345062, 0.1377440094947815, 0.40859681367874146, 0.1559184342622757, 0.26693516969680786, 0.36120128631591797, 0.13675428926944733, -0.08924124389886856, 0.34203195571899414, 0.052946045994758606, -0.07445775717496872, -0.18792112171649933, 0.15778805315494537, -0.11441358178853989, 0.428305059671402, 0.10337063670158386, 0.1259227842092514, 0.11936351656913757, -0.15130293369293213, 0.17110493779182434, 0.30203238129615784, 0.44825708866119385, -0.15887925028800964, -0.28921765089035034, -0.0821082592010498, -0.18827107548713684, -0.21636325120925903, 0.41925308108329773, 0.3321739435195923, -0.07826880365610123, -0.16329900920391083, -0.5042745471000671, 0.12273627519607544, -0.08288133144378662, 0.14948515594005585, -0.1100330576300621, 0.30897384881973267, 0.08505270630121231, 0.1518600881099701, 0.2012847512960434, -0.09698362648487091, 0.5320150256156921, -0.2935943305492401, -0.040108513087034225, 0.07618283480405807, -0.40992534160614014, -0.11150024086236954, 0.05308997258543968, 0.44750306010246277, 0.20692797005176544, 0.49093806743621826, 0.12607288360595703, 0.18586516380310059, -0.055756811052560806, 0.19766481220722198, 0.33026161789894104, 0.11491455137729645, -0.06376928091049194, 0.24256682395935059, 0.20204025506973267, 0.28385430574417114, 0.19497978687286377, 0.07326360046863556, 0.13498003780841827, -0.2560986876487732, 0.7037339210510254, 0.09407924115657806, 0.45340508222579956, -0.414104700088501, -0.5380058288574219, 0.2098851352930069, -0.25905027985572815, -0.21922913193702698, -0.05506153032183647, 0.1752762496471405, -0.08674012869596481, 0.015899477526545525, 0.049790479242801666, 0.05687244236469269, -0.10546727478504181, 0.1876801997423172, -0.1393575370311737, 0.011649992316961288, -0.04141800105571747, 0.22054460644721985, 0.24115481972694397, -0.04788030683994293, 0.26142096519470215, -0.04473964869976044, 0.15601040422916412, -0.06018619239330292, 0.2995099425315857, -0.1770501285791397, -0.05289652943611145, 0.3793472945690155, -0.01958853006362915, 0.009985685348510742, 0.09835167229175568, 0.07519732415676117, -0.20246121287345886, 0.20743520557880402, -0.14824332296848297, -0.14605671167373657, -0.017895838245749474, 0.06843242049217224, -0.5958097577095032, -0.1628498136997223, -0.11120063066482544, -0.36979418992996216, 0.09259866178035736, -0.37995225191116333, -0.05870386213064194, -0.4458443522453308, -0.09076842665672302, -0.18107274174690247, 0.03833881765604019, 0.32481130957603455, -0.111602284014225, -0.05126217007637024, -0.3044009208679199, -0.1428109109401703, 0.3169146180152893, 0.3511482775211334, -0.02262677066028118, 0.0665227472782135, -0.355814665555954, -0.26950347423553467, -0.10146529972553253, -0.08321273326873779, -0.3409043550491333, 0.14609524607658386, -0.23650449514389038, 0.4539051651954651, -0.03655624017119408, 0.21660780906677246, -0.2609666883945465, 0.03239143267273903, 0.28406038880348206, 0.1771356463432312, -0.024402083829045296, 0.142245352268219, -0.14241063594818115, -0.3236006498336792, 0.3133017420768738, 0.1736726313829422, 0.17393745481967926, 0.1411556601524353, 0.2960703670978546, -0.2286570817232132, 0.1685994267463684, -0.04304444417357445, -0.1364443004131317, 0.23504182696342468, 0.38340842723846436, -0.15862905979156494, -0.04548082500696182, 0.015486553311347961, -0.7338730096817017, 0.18767687678337097, -0.14134202897548676, 0.06476883590221405, -0.27646613121032715, 0.0789954662322998, -0.109757199883461, -0.27578601241111755, -0.18227480351924896, 0.0751175582408905, -0.017008930444717407, 0.4422847628593445, 0.14506366848945618, 0.12007859349250793, 0.17995378375053406, -0.04244153946638107, -0.3468935191631317, 0.05755750089883804, -0.4906477630138397, 0.49865758419036865, -0.039454102516174316, 0.07683032751083374, 0.1349903643131256, -0.03966604173183441, 0.04320451617240906, -0.10139185190200806, -0.023062055930495262, 0.3145606517791748, -0.004618588835000992, 0.4022878110408783, -0.05063258484005928, 0.6662476658821106, -0.0067206695675849915, -0.2054368555545807, -0.09037294238805771, 0.4893096089363098, 0.08711321651935577, -0.08250177651643753, -0.390164852142334, 0.6032891869544983, -0.21952398121356964, 0.32235515117645264, -0.13965459167957306, 0.09449107944965363, 0.2128816694021225, -0.10071983188390732, -0.2553085386753082, -0.20098868012428284, 0.29326027631759644, 0.12169259041547775, -0.027509264647960663, -0.006458209827542305, -0.1983841359615326, -0.14678604900836945, 0.372636079788208, -0.1577080339193344, 0.037965670228004456, 0.15139248967170715, 0.04363793134689331, -0.17623819410800934, 0.17662625014781952, 0.8572227358818054, 0.49252116680145264, 0.066472128033638, -0.08636163175106049, 0.002783842384815216, -0.3731665015220642, -0.050501879304647446, 0.05768679827451706, 0.1327783465385437, 0.007337391376495361, 0.4572008550167084, 0.14459708333015442, -0.18372909724712372, -0.4953967332839966, -0.1696341335773468, 0.08155015110969543, 0.2710421681404114, -0.5151885151863098, 0.14581777155399323, -0.15959790349006653, 0.2877815067768097, -0.34087198972702026, 0.04615959897637367, -0.2431974560022354, -0.5149297714233398, -0.12937866151332855, 0.5444688200950623, -0.11104711890220642, 0.12797966599464417, -0.33687639236450195, 0.16665080189704895, 0.08305495232343674, -0.5815594792366028, -0.03252281993627548, -0.12041331082582474, 0.059039030224084854, -0.03435831144452095, 0.3373582065105438, -0.024134883657097816, 0.43724650144577026, -0.34249812364578247, 0.06734384596347809, -0.8136793375015259, -0.2465447038412094, 0.014013489708304405, -0.24910135567188263, 0.13840490579605103, 0.2002250850200653, 0.17899061739444733, 0.0585864782333374, -0.27991148829460144, 0.08072453737258911, 0.0037178844213485718, -0.24232304096221924, 0.14169275760650635, -0.20773667097091675, 0.04159624129533768, 0.10925509035587311, -0.18795649707317352, 0.05332082509994507, -0.1798083782196045, 0.05437124893069267, 0.30687814950942993, 0.08897055685520172, 0.01821783185005188, 0.09339353442192078, 0.0578588992357254, 0.07890933752059937, 0.13139879703521729, -0.2548108398914337, -0.5290399193763733, 0.4313284158706665, 0.09998928010463715, -0.1335069239139557, 0.017249584197998047, 0.03696542978286743, 0.14726756513118744, 0.4163753092288971, -0.5289618968963623, -0.14740845561027527, -0.37435802817344666, -0.04072611406445503, 0.16631761193275452, -0.02844534069299698, 0.336012601852417, 0.2364351898431778, 0.008469358086585999, 0.07398855686187744, -0.529132068157196, -0.0030941106379032135, 0.0624898262321949, 0.5206922888755798, 0.017277151346206665, 0.2539733350276947, -0.25571852922439575, 0.5220209956169128, -0.18695884943008423, -0.22152626514434814, 0.031092574819922447, 0.06338518857955933, 0.4639904201030731, -0.052661776542663574, -0.18127797544002533, -0.11203762888908386, -0.16932600736618042, -0.12236212193965912, 0.03901282697916031, -0.13888688385486603, -0.29118824005126953, 0.019112303853034973, 0.1203349381685257, -0.28603264689445496, -0.23684729635715485, -0.005417643114924431, -0.16246896982192993, 0.3512565493583679, 0.08541256189346313, 0.03213860094547272, -0.16008181869983673, -0.5508784651756287, -0.011958461254835129, 0.14177393913269043, 0.09097900986671448, -0.11343778669834137, -0.32881784439086914, -0.10287634283304214, -0.13617734611034393, 0.38172632455825806, 0.08227726072072983, 0.47136589884757996, -0.09026332944631577, -0.2323007732629776, 0.09326356649398804, -0.21732346713542938, 0.03716544806957245, -0.2525269687175751, 0.2733464241027832, 0.08707363903522491, -0.05693153291940689, -0.053183481097221375, -0.2677329480648041, -0.36847472190856934, 0.14550641179084778, -0.07238700985908508, 0.40422335267066956, -0.29592809081077576, 0.02372260019183159, 0.1745528131723404, 0.4015903174877167, -0.21102561056613922, -0.13075877726078033, -0.44951704144477844, -0.16906246542930603, -0.3178650438785553, 0.08478350192308426, -0.12707673013210297, 0.08664974570274353, -0.30355221033096313, 0.23438118398189545, 0.07783924788236618, -0.07716251909732819, 0.16626302897930145, -0.09589539468288422, 0.3543379306793213, 0.005307890474796295, 0.08582493662834167, 0.21775367856025696, -0.13120338320732117, 0.2619344890117645, 0.7251717448234558, -0.013791029341518879, -0.16311952471733093, 0.20341604948043823, -0.10606518387794495, -0.3286924958229065, 0.25187793374061584, 0.1082146018743515, -0.12255755066871643, 0.37189143896102905, 0.0023265350610017776, -0.20170480012893677, -0.18176791071891785, 0.3061952590942383, 0.08983143419027328, -0.30865371227264404, -0.12893755733966827, 0.15850862860679626, 0.002218477427959442, -0.182865172624588, 0.5544472932815552, 0.2781238257884979, -0.21330717206001282, 0.3164367079734802, 0.4763887822628021, 0.9161742329597473, -0.05741140618920326, 0.2823934555053711, 0.05725425109267235, -0.19572728872299194, 0.24203382432460785, -0.07318069785833359, 0.19455768167972565, -0.41801562905311584, -0.141900897026062, -0.08776803314685822, -0.29859113693237305, 0.11005200445652008, 0.0036414749920368195, 0.10296361148357391, 0.3598124384880066, 0.06879344582557678, 0.10592305660247803, 0.1235257014632225, 0.11352887004613876, -0.259268581867218, 0.09753412008285522, 0.279743492603302, 0.09324325621128082, -0.1768059879541397, 0.33848434686660767, -0.15241098403930664, 0.22985488176345825, 0.1972886025905609, -0.3768290877342224, -0.5630290508270264, 0.059761375188827515, 0.07694671303033829, 0.3796389102935791, 0.24527215957641602, -0.21225236356258392, -0.12394976615905762, 0.11294327676296234, 0.29269641637802124, 0.06857988238334656, -0.31673064827919006, 0.18538396060466766, 0.26681461930274963, 0.05823281779885292, -0.1518043875694275, -0.21786130964756012, 0.2738584578037262, 0.008973121643066406, -0.19153061509132385, -0.0527302622795105, -0.005074653774499893, -0.6892610788345337, -0.3128284513950348, 0.047362394630908966, -0.40929508209228516, -0.13386842608451843, -0.18102973699569702, -0.142812579870224, -0.18782156705856323, -0.23691831529140472, 0.09659478068351746, 0.20374873280525208, 0.09045882523059845, 0.1645374447107315, 0.19587399065494537, -0.4438570737838745, -0.19269609451293945, 0.5072797536849976, -0.04727230593562126, -0.2745247483253479, 0.5034919381141663, -0.06285759061574936, -0.144088014960289, -0.20341390371322632, 0.13362054526805878, 0.10777102410793304, -0.3718023896217346, 0.02671799063682556, -0.3022798001766205, 0.1995440572500229, -0.12634475529193878, 0.28703248500823975, 0.27018454670906067, 0.31725046038627625, 0.04255881905555725, -0.5546704530715942, 0.03433889150619507, 0.1733858287334442, -0.0114467553794384, 0.43637755513191223, -0.24779590964317322, -0.31054648756980896, 0.0010113120079040527, -0.29183968901634216, -0.24020794034004211, 0.14859654009342194, -0.33782878518104553, -0.016932176426053047, 0.08416897803544998, -0.05982588231563568, 0.3290824592113495, -0.05235179513692856, 0.1276499330997467, -0.12182372808456421, -0.10359582304954529, -0.07224016636610031, -0.17584876716136932, 0.1720016598701477, 0.10963362455368042, -0.024252044036984444, 0.06559833884239197, -0.12884309887886047, 0.09023807942867279, 0.010216817259788513, 0.0867796540260315, 0.34083521366119385, -0.19061167538166046, -0.007420126348733902, -0.00936347246170044, -0.07745339721441269, -0.07792913913726807, -0.3656724691390991, -0.4526812434196472, -0.10001343488693237, 0.238520085811615, 0.07992877066135406, 0.12608002126216888, 0.08631262183189392, -0.00008213147521018982, 0.15370593965053558, 0.07066528499126434, 0.07931338250637054, 0.2643166184425354, -0.18836115300655365, -0.1833416223526001, -0.10934585332870483, 0.2551558017730713, 0.29107749462127686, -0.4305110573768616, -0.16443690657615662, 0.23716802895069122, 0.1750328242778778, -0.15652155876159668, -0.1706102341413498, 0.004881519824266434, -0.0638154149055481, 0.10078849643468857, 0.09678012877702713, -0.004251457750797272, -0.0802026242017746, 0.4081345200538635, 0.13682153820991516, 0.33625245094299316, -0.725301206111908, 0.13811573386192322, 0.13382327556610107, -0.23948775231838226, 0.017660586163401604, 0.2637803256511688, -0.1497628390789032, -0.08972246944904327, -0.15551239252090454, -0.05576908215880394, 0.205514058470726, -0.28766587376594543, 0.13568508625030518, -0.27845504879951477, -0.3887929618358612, 0.36307138204574585, 0.04442652687430382, -0.17839327454566956, 0.20152416825294495, 0.3009861409664154, 0.23751839995384216, -0.2377166748046875, 0.3671747148036957, -0.630081295967102, -0.07635475695133209, -0.06544353067874908, -0.12618279457092285, -0.26418477296829224, -0.29690200090408325, -0.05124770104885101, 0.3946475386619568, 0.08214838802814484, -0.038570962846279144, 0.24659790098667145, 0.1207658052444458, -0.2646317183971405, -0.3292178809642792, 0.14281314611434937, -0.09945814311504364, 0.0002478845417499542, -0.1743161827325821, 0.047072432935237885, 0.30495280027389526, -0.058321695774793625, 0.14186209440231323, 0.23577550053596497, 0.44600385427474976, 0.2625076174736023, 0.10524392127990723, -0.04181759059429169, -0.285006582736969, -0.0026831477880477905, 0.08520634472370148, 0.6794244050979614, 0.04881345480680466, -0.1555965542793274, 0.18142664432525635, 0.1507595032453537, -0.16539090871810913, 0.4937618374824524, -0.1351776123046875, -0.1278291493654251, 0.03154931962490082, 0.5859698057174683, 0.020156417042016983, 0.1320263296365738, -0.21487799286842346, 0.20391753315925598, -0.3218245506286621, -0.4320862591266632, 0.10625989735126495, 0.14542505145072937, 0.006168868392705917, 0.05208791792392731, 0.0317065566778183, 0.07483889907598495, 0.46078911423683167, 0.45938360691070557, 0.19505538046360016, -0.40398117899894714, -0.02802729606628418, -0.6760361790657043, 0.23891587555408478, -0.25306543707847595, 0.3020133972167969, -0.04092375189065933, 0.25967979431152344, -0.05040758475661278, 0.33884304761886597, 0.26197928190231323, 0.06546004116535187, -0.25644248723983765, -0.24140091240406036, -0.1651119440793991, 0.013163762167096138, 0.37167152762413025, -0.14727388322353363, -0.20204807817935944, -0.2596713602542877, 0.09952758252620697, 0.09148077666759491, 0.024381674826145172, -0.06478139758110046, 0.0447554737329483, -0.16998210549354553, 0.2580986022949219, 0.18315468728542328, 0.13194620609283447, 0.7788719534873962, -0.06998755037784576, -0.24545219540596008, -0.39330869913101196, -0.25969845056533813, -0.0909523218870163, 0.09842757880687714, -0.024598168209195137, 0.6201732754707336, 0.03852400928735733, -0.3653138279914856, -0.28931817412376404, 0.4032164514064789, -0.1686112880706787, -0.38946884870529175, -0.1885998547077179, 0.12226045876741409, -0.10917389392852783, 0.19789791107177734, -0.13863112032413483, 0.06738515198230743, 0.2732203006744385, 0.2413530796766281, -0.14965549111366272, -0.28229930996894836, 0.45428746938705444, -0.16055229306221008, -0.12167906761169434, 0.1185828149318695, 0.1349404752254486, 0.005003219470381737, -0.021095145493745804, -0.5507388710975647, 0.30625540018081665, 0.18774625658988953, 0.047837790101766586, -0.21684636175632477, 0.05772779509425163, -0.14878098666667938, 0.2786390483379364, 0.0013999789953231812, 0.1419650912284851, 0.0933382660150528, -0.24959075450897217, -0.23538647592067719, -0.14756108820438385 ]
https://github.com/huggingface/datasets/issues/1856
Hi ! Thanks for reporting. Google Drive changed the way to bypass the warning message recently. The latest release `1.18.4` fixes this for datasets loaded in a regular way. We opened a PR to fix this recently for streaming mode at #3843 - we'll do a new release once the fix is merged :)
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'] ```
54
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 ! Thanks for reporting. Google Drive changed the way to bypass the warning message recently. The latest release `1.18.4` fixes this for datasets loaded in a regular way. We opened a PR to fix this recently for streaming mode at #3843 - we'll do a new release once the fix is merged :)
[ -0.34371891617774963, 0.09665457904338837, -0.05536678433418274, 0.09807907044887543, 0.15954197943210602, 0.13036420941352844, 0.4060622751712799, 0.10624471306800842, 0.27967533469200134, 0.1851273477077484, 0.01667291671037674, -0.04572874307632446, -0.05456998944282532, 0.07953101396560669, -0.311500608921051, 0.18363098800182343, 0.0936344563961029, 0.002418186515569687, -0.03317156061530113, 0.050335586071014404, -0.37501198053359985, 0.3412531316280365, -0.026632845401763916, -0.2965778708457947, -0.05995814502239227, 0.1087334081530571, 0.2598346471786499, 0.03876383602619171, -0.059104569256305695, -0.278103768825531, 0.28940120339393616, 0.1775960922241211, 0.06059723347425461, 0.2672731280326843, -0.00012107417569495738, 0.12703487277030945, 0.4806768000125885, 0.04644610732793808, -0.34477561712265015, -0.34666043519973755, -0.29609012603759766, -0.1657344102859497, 0.06323467940092087, -0.09738492965698242, 0.06328773498535156, 0.17606303095817566, 0.17633487284183502, -0.16671761870384216, 0.04766744375228882, 0.08631084114313126, 0.1507999151945114, 0.4383389353752136, 0.1362614929676056, 0.32803675532341003, 0.36534035205841064, 0.10595488548278809, -0.053652700036764145, 0.32027122378349304, 0.03221939876675606, -0.016439735889434814, -0.17217537760734558, 0.2014840990304947, -0.08798404037952423, 0.3938724398612976, 0.08375540375709534, 0.08401745557785034, 0.15812000632286072, -0.22720152139663696, 0.23466573655605316, 0.38275742530822754, 0.4093054533004761, -0.1783314347267151, -0.32325834035873413, -0.06607058644294739, -0.166834756731987, -0.21915984153747559, 0.5109217762947083, 0.38506388664245605, -0.0968673974275589, -0.19103482365608215, -0.5273725986480713, 0.16168686747550964, -0.07376933097839355, 0.13432803750038147, -0.007151946425437927, 0.3346121311187744, 0.12894587218761444, 0.13750389218330383, 0.18172264099121094, -0.13016480207443237, 0.5540940761566162, -0.39705413579940796, -0.10024295747280121, 0.10119779407978058, -0.47527506947517395, -0.08786199986934662, -0.010820455849170685, 0.44215288758277893, 0.16746419668197632, 0.48254185914993286, 0.21373742818832397, 0.24402432143688202, -0.05635295808315277, 0.23470667004585266, 0.3133952021598816, 0.08019132912158966, -0.044884659349918365, 0.2166510969400406, 0.23875899612903595, 0.2919820547103882, 0.1821404993534088, 0.11332428455352783, 0.13224904239177704, -0.29570674896240234, 0.7160150408744812, 0.07529343664646149, 0.3360699415206909, -0.3598341643810272, -0.46507734060287476, 0.19099247455596924, -0.26961639523506165, -0.1599084585905075, 0.035394951701164246, 0.1882265955209732, -0.0926530584692955, 0.01921193301677704, 0.021502964198589325, 0.014380061998963356, -0.1030498594045639, 0.1953546106815338, -0.1607058048248291, 0.0002713184803724289, -0.014591410756111145, 0.20406977832317352, 0.26176023483276367, -0.20985156297683716, 0.2886700928211212, -0.018568478524684906, 0.10710437595844269, -0.04726542532444, 0.31956255435943604, -0.16477899253368378, -0.08421571552753448, 0.43544259667396545, 0.04024261236190796, -0.025133080780506134, 0.026141928508877754, 0.0519358366727829, -0.18417616188526154, 0.19723279774188995, -0.07019883394241333, -0.13491837680339813, 0.044897936284542084, 0.13157664239406586, -0.5635554194450378, -0.15657517313957214, -0.11340121924877167, -0.31741344928741455, 0.13161872327327728, -0.4293001592159271, -0.0743638277053833, -0.3585142493247986, -0.10855288058519363, -0.18025554716587067, 0.056710608303546906, 0.32840776443481445, -0.14627641439437866, -0.06972715258598328, -0.2830069661140442, -0.15600301325321198, 0.3516499996185303, 0.3689599931240082, -0.031827569007873535, -0.05463758856058121, -0.3250090479850769, -0.24657884240150452, -0.03926341235637665, -0.06768719851970673, -0.29811379313468933, 0.21383018791675568, -0.21349507570266724, 0.3856247067451477, -0.04194195568561554, 0.24364787340164185, -0.12084044516086578, 0.06075047701597214, 0.2761459946632385, 0.20666512846946716, -0.06179679185152054, 0.19328954815864563, -0.19725866615772247, -0.2605552077293396, 0.2622170150279999, 0.2096928358078003, 0.07285259664058685, 0.03490026667714119, 0.30554336309432983, -0.2898942232131958, 0.12323043495416641, -0.07407259941101074, -0.08872266113758087, 0.25962376594543457, 0.3531554341316223, -0.1601412296295166, 0.005406148731708527, 0.021935172379016876, -0.8069174289703369, 0.20766909420490265, -0.12509892880916595, 0.043821949511766434, -0.20800691843032837, 0.09099413454532623, -0.06345834583044052, -0.24991098046302795, -0.19735459983348846, 0.10652521997690201, 0.02353275567293167, 0.42563870549201965, 0.1528572142124176, 0.06393180042505264, 0.15850895643234253, -0.027011217549443245, -0.2861681878566742, 0.005739811807870865, -0.4672676920890808, 0.5076683759689331, -0.028268923982977867, 0.05286138504743576, 0.20672592520713806, -0.13159745931625366, 0.09758646786212921, -0.12799668312072754, -0.12051227688789368, 0.39309969544410706, 0.020860236138105392, 0.4677700400352478, -0.045877330005168915, 0.6695398092269897, 0.026633290573954582, -0.19841089844703674, -0.08863048255443573, 0.5136284828186035, 0.10345083475112915, -0.11202289164066315, -0.459777295589447, 0.6217973232269287, -0.24781398475170135, 0.3044344186782837, -0.07741397619247437, 0.08242863416671753, 0.24508097767829895, 0.010212279856204987, -0.2788454294204712, -0.20741182565689087, 0.331625759601593, 0.0841059684753418, -0.0032649636268615723, 0.0434621125459671, -0.22940300405025482, -0.1264122724533081, 0.3236083686351776, -0.14794039726257324, 0.01447482779622078, 0.15994670987129211, 0.014936241321265697, -0.2462238371372223, 0.16315236687660217, 0.86128169298172, 0.4531298875808716, 0.10875235497951508, -0.03972366824746132, -0.022086353972554207, -0.2894245684146881, -0.13605435192584991, 0.15249550342559814, 0.10834434628486633, -0.0076908692717552185, 0.4529648423194885, 0.17045912146568298, -0.19703376293182373, -0.5523796677589417, -0.15827122330665588, 0.1784631907939911, 0.27093610167503357, -0.431908518075943, 0.12338222563266754, -0.16416679322719574, 0.24883674085140228, -0.2989056408405304, 0.050340551882982254, -0.2531738579273224, -0.4916102886199951, -0.08022867143154144, 0.580276608467102, -0.18131312727928162, 0.22039006650447845, -0.29647356271743774, 0.10432738065719604, 0.14295268058776855, -0.6436560750007629, -0.07109887897968292, -0.1555429995059967, 0.07899987697601318, -0.02806236408650875, 0.38861390948295593, -0.003112372010946274, 0.4329706132411957, -0.2728949785232544, 0.05233693867921829, -0.8050493001937866, -0.2903854250907898, -0.013820726424455643, -0.223666712641716, 0.10319264233112335, 0.15982910990715027, 0.1895769238471985, 0.07217104732990265, -0.2586636543273926, 0.04775208979845047, -0.06330008804798126, -0.2464001178741455, 0.23431050777435303, -0.20646455883979797, 0.015587396919727325, 0.08391891419887543, -0.1991233080625534, 0.07330075651407242, -0.23027276992797852, 0.03016686998307705, 0.30003833770751953, 0.0802561491727829, 0.00612470880150795, 0.03644732013344765, -0.060532402247190475, 0.14784780144691467, 0.13289698958396912, -0.2649775743484497, -0.5636628866195679, 0.48355966806411743, 0.06872326135635376, -0.1624475121498108, 0.07286106050014496, -0.021587476134300232, 0.15572184324264526, 0.41630876064300537, -0.47971633076667786, -0.12702420353889465, -0.4049369990825653, -0.03010178729891777, 0.1600027084350586, -0.057941339910030365, 0.3158018887042999, 0.251675546169281, -0.0009761415421962738, 0.07703447341918945, -0.4939176142215729, 0.04133472219109535, 0.028651434928178787, 0.39438432455062866, -0.03381655365228653, 0.3414818048477173, -0.2903021574020386, 0.47589004039764404, -0.14078958332538605, -0.14571517705917358, 0.04939255118370056, 0.10989978164434433, 0.4112803339958191, -0.10206020623445511, -0.07772662490606308, -0.059473730623722076, -0.13453340530395508, -0.08232859522104263, 0.08666802197694778, -0.09673818945884705, -0.3587188720703125, -0.05611089989542961, 0.13853083550930023, -0.23555845022201538, -0.2254408597946167, -0.007345015183091164, -0.17945457994937897, 0.381634384393692, 0.12949857115745544, 0.0687914490699768, -0.1727840006351471, -0.548048198223114, -0.04306644946336746, 0.1275321990251541, 0.05283760651946068, -0.10236875712871552, -0.2814275026321411, -0.05315504968166351, -0.06451471149921417, 0.3723152279853821, 0.08946721255779266, 0.5090370774269104, -0.09041011333465576, -0.1695355474948883, 0.08339870721101761, -0.21653610467910767, 0.025057654827833176, -0.34627532958984375, 0.2850099205970764, 0.06727787107229233, -0.05876414105296135, -0.09728430211544037, -0.25495603680610657, -0.35127151012420654, 0.0670614093542099, -0.08089140057563782, 0.40318024158477783, -0.346907377243042, 0.025608770549297333, 0.13803735375404358, 0.3441293239593506, -0.18697115778923035, -0.2462451159954071, -0.42710503935813904, -0.13575056195259094, -0.3652931749820709, 0.04350169748067856, -0.0965704470872879, 0.11357839405536652, -0.38347554206848145, 0.1834261119365692, 0.12316351383924484, -0.051067955791950226, 0.10720384865999222, -0.06879768520593643, 0.3488762378692627, -0.015765100717544556, 0.23377160727977753, 0.19389349222183228, -0.20269912481307983, 0.20898965001106262, 0.7018721699714661, 0.041795115917921066, -0.16420026123523712, 0.2565985321998596, -0.06712330132722855, -0.4072166383266449, 0.20047080516815186, 0.10964147001504898, -0.09836319088935852, 0.39189600944519043, 0.0460677370429039, -0.1426820307970047, -0.12491440027952194, 0.22691014409065247, 0.11804400384426117, -0.27878546714782715, -0.18562358617782593, 0.174468532204628, -0.026270855218172073, -0.12845750153064728, 0.4635106325149536, 0.29335781931877136, -0.17841419577598572, 0.3184797763824463, 0.45578381419181824, 0.8749716281890869, -0.04833577200770378, 0.22080682218074799, 0.10165977478027344, -0.2525404393672943, 0.1844954639673233, -0.11303655058145523, 0.22422325611114502, -0.5063513517379761, -0.1288975477218628, -0.061928652226924896, -0.2708788216114044, 0.04372645542025566, -0.01577809453010559, 0.056291237473487854, 0.39839285612106323, 0.07629020512104034, 0.09628269821405411, 0.05023474246263504, 0.12404198944568634, -0.35056114196777344, 0.013507738709449768, 0.19162103533744812, 0.1049056276679039, -0.15283739566802979, 0.288254976272583, -0.11527745425701141, 0.15017518401145935, 0.3031306862831116, -0.3781035244464874, -0.5160980224609375, 0.07206472754478455, 0.016581788659095764, 0.34633317589759827, 0.19175830483436584, -0.19160284101963043, -0.13452968001365662, 0.11485065519809723, 0.22977247834205627, 0.0680166482925415, -0.3035503029823303, 0.1906704157590866, 0.30122095346450806, 0.07658984512090683, -0.17723481357097626, -0.13193851709365845, 0.23034188151359558, -0.024973087012767792, -0.19579215347766876, -0.04877019301056862, -0.014071665704250336, -0.5524476766586304, -0.20666182041168213, 0.015206833370029926, -0.4101404547691345, -0.07345085591077805, -0.1530037820339203, -0.18439766764640808, -0.2542020380496979, -0.24403861165046692, 0.11713790893554688, 0.1885121613740921, 0.004785850644111633, 0.1291055530309677, 0.22754454612731934, -0.38057729601860046, -0.21042761206626892, 0.5293377041816711, -0.07353175431489944, -0.18711227178573608, 0.5243668556213379, -0.028880879282951355, -0.18961754441261292, -0.2124953269958496, 0.162050262093544, 0.06355858594179153, -0.3791272044181824, 0.007996831089258194, -0.2454947531223297, 0.19704969227313995, -0.1133660078048706, 0.29754847288131714, 0.23048830032348633, 0.3532167971134186, 0.10988219082355499, -0.5376740097999573, 0.011054642498493195, 0.09209020435810089, -0.02391975373029709, 0.43275707960128784, -0.26635265350341797, -0.33650070428848267, -0.015389848500490189, -0.2238549441099167, -0.2685399055480957, 0.10808922350406647, -0.33366140723228455, -0.006290426477789879, 0.0665271133184433, -0.10013684630393982, 0.33578741550445557, -0.01564539596438408, 0.14874623715877533, -0.09308598935604095, -0.12017440795898438, -0.10888045281171799, -0.12639212608337402, 0.14279702305793762, 0.09810303896665573, -0.08482754975557327, -0.005787398666143417, -0.08893774449825287, -0.028481822460889816, -0.03060770034790039, 0.0897931456565857, 0.25569623708724976, -0.2164517641067505, -0.06710603088140488, 0.044177133589982986, -0.10391309857368469, -0.07988986372947693, -0.2808166742324829, -0.4489462971687317, -0.09055544435977936, 0.16066403687000275, 0.03530079126358032, 0.08640795201063156, 0.020922698080539703, 0.030565418303012848, 0.1261887401342392, 0.1505761742591858, 0.06975102424621582, 0.2949684262275696, -0.23024845123291016, -0.1806434988975525, -0.13863734900951385, 0.29352468252182007, 0.29181382060050964, -0.4025059640407562, -0.16631610691547394, 0.23583480715751648, 0.19978702068328857, -0.18157246708869934, -0.16111008822917938, -0.042180005460977554, -0.024250347167253494, 0.17607596516609192, 0.03313496708869934, -0.041251786053180695, -0.09786474704742432, 0.31819671392440796, 0.1868688017129898, 0.30161404609680176, -0.7265447378158569, 0.09304763376712799, 0.0696110874414444, -0.18764150142669678, 0.04070952534675598, 0.23748816549777985, -0.14397278428077698, -0.09787128120660782, -0.17828984558582306, -0.04622829705476761, 0.1747470498085022, -0.2156720757484436, 0.1078825294971466, -0.26247110962867737, -0.43479177355766296, 0.3210515081882477, 0.06730574369430542, -0.17323561012744904, 0.1969289630651474, 0.3423530161380768, 0.19242392480373383, -0.19631066918373108, 0.33934152126312256, -0.6466987133026123, -0.03390945866703987, -0.0416792556643486, -0.14906691014766693, -0.22139431536197662, -0.2818775773048401, -0.0941525399684906, 0.4138702154159546, 0.07887183129787445, 0.02736714668571949, 0.18573381006717682, 0.18209466338157654, -0.18810303509235382, -0.3491397798061371, 0.12660178542137146, -0.01469370722770691, 0.02243294194340706, -0.19299674034118652, 0.12015737593173981, 0.37509626150131226, -0.07395963370800018, 0.06312626600265503, 0.14943455159664154, 0.3863435387611389, 0.2704443335533142, 0.05700143054127693, 0.03316444158554077, -0.21209268271923065, -0.014988906681537628, 0.12618280947208405, 0.6424114108085632, 0.08392903208732605, -0.1569153070449829, 0.24922794103622437, 0.16166943311691284, -0.17550356686115265, 0.49715930223464966, -0.1491849720478058, -0.17245900630950928, 0.05073176696896553, 0.5831466913223267, 0.030016835778951645, 0.17149189114570618, -0.26463037729263306, 0.1098310798406601, -0.26042255759239197, -0.38778480887413025, 0.057552773505449295, 0.13453614711761475, 0.011891566216945648, 0.011779390275478363, 0.04073622450232506, 0.07864034175872803, 0.5363706350326538, 0.37487757205963135, 0.15938158333301544, -0.3833363652229309, -0.031121432781219482, -0.6612550020217896, 0.14717569947242737, -0.22240084409713745, 0.2988262176513672, -0.04458487033843994, 0.3053036332130432, -0.05202826112508774, 0.3196772038936615, 0.2023269534111023, 0.1015571802854538, -0.21505245566368103, -0.153825581073761, -0.16854259371757507, -0.0015868130140006542, 0.31353339552879333, -0.20580139756202698, -0.20740734040737152, -0.33296626806259155, 0.1818508505821228, 0.028883595019578934, 0.05633988976478577, -0.025989508256316185, 0.05161866545677185, -0.1437382847070694, 0.22881954908370972, 0.12463603168725967, 0.13802680373191833, 0.7277459502220154, -0.10104310512542725, -0.17936983704566956, -0.33692076802253723, -0.27851027250289917, -0.11273819208145142, 0.03342433646321297, 0.0016135424375534058, 0.6712952852249146, 0.06208447366952896, -0.4123215973377228, -0.28642985224723816, 0.3971395194530487, -0.17635774612426758, -0.40225791931152344, -0.15266413986682892, 0.07605718076229095, -0.08882208168506622, 0.24403277039527893, -0.14509069919586182, 0.0031244615092873573, 0.25265154242515564, 0.19363343715667725, -0.13696612417697906, -0.3093870282173157, 0.5094351172447205, -0.14124508202075958, -0.09251891076564789, 0.08224755525588989, 0.15094661712646484, 0.1533668339252472, -0.002909138798713684, -0.5102693438529968, 0.3676128387451172, 0.190030038356781, 0.0043637678027153015, -0.19360026717185974, 0.07011158764362335, -0.1426212042570114, 0.27556562423706055, -0.012920811772346497, 0.09637431800365448, 0.1357077956199646, -0.26300615072250366, -0.2145189344882965, -0.1296987235546112 ]
https://github.com/huggingface/datasets/issues/1854
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() ```
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!
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.2646303176879883, 0.1603153645992279, -0.045890599489212036, 0.13861563801765442, -0.025281131267547607, 0.12017001956701279, 0.15693825483322144, 0.10714055597782135, 0.05867066979408264, 0.04408618062734604, 0.10954879224300385, 0.5823288559913635, -0.15739110112190247, 0.13800707459449768, 0.4451276659965515, -0.13564682006835938, 0.10213281959295273, 0.20480719208717346, -0.17529670894145966, 0.0704088881611824, -0.2645278573036194, -0.09055213630199432, -0.1519211381673813, -0.17901989817619324, -0.057932689785957336, -0.06132211536169052, -0.4128629267215729, -0.30235737562179565, -0.26559752225875854, -0.7929653525352478, -0.01238541305065155, -0.0009121103212237358, -0.08393054455518723, 0.26241642236709595, -0.00012833451910410076, 0.011733576655387878, 0.16709858179092407, -0.05399584770202637, -0.5640703439712524, -0.04569622874259949, -0.15539707243442535, -0.23874789476394653, 0.14549612998962402, -0.31387194991111755, 0.22605682909488678, -0.7180808186531067, 0.32295921444892883, -0.15456971526145935, 0.08908458054065704, 0.12501373887062073, -0.00037566572427749634, 0.49481135606765747, 0.1991046518087387, -0.36394721269607544, 0.2621559798717499, -0.04534224048256874, -0.1395278424024582, -0.17216277122497559, 0.37630990147590637, -0.20688162744045258, 0.08242109417915344, -0.1125960648059845, 0.2658931016921997, -0.09155668318271637, 0.40663936734199524, 0.12621355056762695, -0.012745387852191925, -0.14266490936279297, -0.15652762353420258, 0.29038727283477783, 0.2264159917831421, -0.4190438687801361, -0.636202335357666, -0.49100828170776367, 0.3017786145210266, -0.03996855020523071, -0.13481304049491882, 0.06015528738498688, -0.07117333263158798, -0.07603752613067627, -0.06980955600738525, -0.37702062726020813, -0.11191211640834808, 0.23817050457000732, 0.07179422676563263, 0.4428233206272125, 0.1425432711839676, 0.16436046361923218, 0.14419791102409363, -0.1271938681602478, -0.23456622660160065, 0.015186861157417297, -0.12329438328742981, 0.3333290219306946, -0.10311111062765121, -0.11664587259292603, 0.1092309057712555, -0.04701238125562668, 0.47551220655441284, -0.06129999831318855, 0.17372700572013855, 0.1157122552394867, -0.367578387260437, 0.08663427829742432, 0.17147648334503174, -0.10088066756725311, 0.21374422311782837, -0.2119160294532776, -0.31287336349487305, 0.07727552950382233, 0.40921100974082947, 0.062039464712142944, -0.18246027827262878, 0.10737363994121552, -0.26181864738464355, -0.35823535919189453, -0.06813841313123703, 0.4037792384624481, -0.12076203525066376, -0.027362827211618423, -0.010699927806854248, 0.08419518172740936, -0.04728800803422928, 0.17367780208587646, 0.17173118889331818, -0.367912232875824, -0.2393832802772522, 0.20148056745529175, 0.12630760669708252, -0.010279085487127304, 0.0816342830657959, 0.2179592251777649, -0.10804013907909393, 0.1765950322151184, 0.10082311928272247, -0.0010514967143535614, -0.014449529349803925, -0.0649893507361412, 0.06919358670711517, 0.0783880427479744, -0.01141073927283287, -0.1804756373167038, 0.25219935178756714, 0.010660668835043907, 0.053255610167980194, -0.04565262049436569, -0.10148539394140244, -0.4404919147491455, -0.4781495928764343, 0.2198810577392578, -0.10788807272911072, -0.18129035830497742, -0.22441188991069794, -0.0641980916261673, 0.004239082336425781, -0.16428951919078827, -0.19526763260364532, 0.5241124033927917, 0.38312944769859314, -0.23584070801734924, 0.130208820104599, -0.12835855782032013, -0.563591480255127, -0.17915141582489014, 0.19442686438560486, 0.33991432189941406, -0.4468758702278137, -0.32744091749191284, -0.10168535262346268, -0.01581842079758644, -0.41329067945480347, 0.129503071308136, -0.09444631636142731, 0.2800903022289276, -0.4338250756263733, 0.4084130525588989, 0.3091631829738617, -0.16581682860851288, -0.2207370102405548, 0.13089856505393982, -0.17825402319431305, 0.0376555472612381, 0.08423417806625366, 0.39586493372917175, 0.29530978202819824, 0.06001972779631615, 0.4510015845298767, 0.25852900743484497, -0.07952135056257248, -0.08993534743785858, 0.07368911802768707, -0.41466617584228516, 0.30074501037597656, -0.011193633079528809, -0.12632054090499878, -0.09053144603967667, 0.027957964688539505, -0.5407938361167908, 0.16449198126792908, -0.10661730170249939, 0.3368988335132599, -0.03835625201463699, 0.40192198753356934, -0.007630560547113419, -0.10582397878170013, -0.5203375220298767, -0.3627278208732605, 0.138412207365036, -0.07732465118169785, 0.12221948057413101, -0.11240419745445251, -0.435809463262558, -0.14829622209072113, 0.42671433091163635, -0.1347390115261078, -0.02146882191300392, -0.06915126740932465, 0.05720727518200874, -0.009346365928649902, -0.12008276581764221, -0.4359641671180725, 0.14287862181663513, 0.2283414900302887, 0.3076545298099518, -0.4393090307712555, -0.049837857484817505, 0.26864826679229736, -0.18490645289421082, -0.12170238792896271, 0.17337185144424438, -0.1410754919052124, -0.1443532556295395, 0.2083715945482254, 0.2823854088783264, -0.08674129098653793, -0.27010416984558105, 0.12039095163345337, 0.2604827284812927, 0.2900449335575104, 0.30600857734680176, -0.10014385730028152, -0.205706387758255, 0.31407931447029114, -0.2532830238342285, -0.22917045652866364, 0.5499860644340515, 0.04193045571446419, 0.42619529366493225, 0.13705694675445557, 0.03928457200527191, 0.020195476710796356, 0.2511621117591858, -0.25379204750061035, -0.25780296325683594, -0.04990607500076294, 0.1488565057516098, 0.21238508820533752, -0.1196056604385376, -0.10451845824718475, 0.16266602277755737, 0.1422625184059143, 0.15961867570877075, 0.17707405984401703, 0.1443227082490921, -0.21447326242923737, 0.06230156868696213, 0.0679699182510376, 0.014986984431743622, 0.4575430154800415, 0.05440129339694977, 0.11451667547225952, 0.06591586023569107, 0.11104565858840942, 0.056890975683927536, 0.0589824914932251, 0.031461380422115326, -0.11707421392202377, 0.03847271203994751, 0.538994550704956, 0.06154690682888031, -0.021838970482349396, -0.13882103562355042, 0.11369713395833969, -0.043255604803562164, -0.12181878834962845, 0.03975645452737808, 0.044824838638305664, 0.07221546024084091, -0.2530292570590973, -0.371677041053772, -0.08491891622543335, -0.0843767523765564, 0.26894140243530273, 0.03143136948347092, 0.015641584992408752, 0.3010817766189575, 0.13798771798610687, 0.7158762216567993, 0.10474415123462677, -0.4731733500957489, -0.08592303097248077, 0.006562311202287674, 0.21826134622097015, -0.10107170045375824, -0.10317312180995941, 0.3030093312263489, 0.4021121561527252, 0.08699039369821548, -0.03165727108716965, -0.347520112991333, -0.5039148330688477, 0.1095273494720459, -0.051787830889225006, 0.43373170495033264, 0.39487066864967346, -0.3356013000011444, -0.11234267055988312, -0.2517049312591553, 0.18364831805229187, 0.0373474583029747, -0.1394076645374298, -0.18606479465961456, -0.09768544137477875, -0.2373916506767273, -0.04965600743889809, 0.10303269326686859, -0.2060161679983139, -0.17669357359409332, 0.4733741581439972, 0.15361256897449493, 0.25191277265548706, -0.2228935956954956, 0.09829532355070114, 0.033694665879011154, -0.1396934539079666, -0.12086675316095352, 0.07183216512203217, -0.0042213574051856995, 0.47306087613105774, -0.36195671558380127, -0.17627853155136108, -0.16062328219413757, -0.5109411478042603, 0.11148467659950256, 0.37749433517456055, -0.28791749477386475, -0.3993915319442749, -0.26131319999694824, 0.3807622194290161, -0.09368477016687393, 0.2705564498901367, 0.49555736780166626, 0.004103165119886398, 0.15339556336402893, 0.05739988386631012, -0.2879432737827301, 0.3740735352039337, 0.1856689453125, 0.059899769723415375, 0.08098186552524567, 0.1704525649547577, 0.08677620440721512, 0.6634981632232666, 0.18454387784004211, -0.10840778052806854, 0.14336320757865906, -0.5918191075325012, 0.36275339126586914, -0.21686573326587677, -0.22201332449913025, -0.17964693903923035, -0.11066213250160217, 0.0941362977027893, 0.06077924743294716, -0.026392869651317596, 0.12603014707565308, 0.07124598324298859, 0.34688347578048706, 0.05419667065143585, -0.19858436286449432, 0.1793525665998459, 0.02106385864317417, 0.33733609318733215, -0.019324909895658493, -0.022400669753551483, -0.387143075466156, 0.017365165054798126, -0.04099198430776596, 0.27647948265075684, 0.2389589250087738, -0.177068829536438, -0.4978463053703308, -0.14098773896694183, -0.307357519865036, 0.06948661804199219, 0.3090181052684784, 0.44738999009132385, 0.2480776309967041, -0.1597178876399994, 0.0432346947491169, -0.20205286145210266, 0.7236331105232239, 0.32533469796180725, -0.4594322443008423, 0.008428208529949188, 0.09381774067878723, -0.2563484311103821, 0.1732940971851349, 0.013920620083808899, 0.542202353477478, 0.1814727783203125, 0.2524055242538452, -0.45429158210754395, 0.2550082802772522, 0.20514793694019318, 0.17938871681690216, -0.18166571855545044, -0.1778387427330017, -0.11380835622549057, -0.12891283631324768, -0.231563538312912, 0.1871427595615387, 0.1932210922241211, 0.2209281176328659, 0.46918773651123047, -0.09896070510149002, -0.4084223806858063, 0.0668775662779808, 0.10205326974391937, -0.03331708908081055, 0.004495851695537567, 0.14979742467403412, 0.5072351098060608, -0.11103843152523041, -0.20785880088806152, 0.4400333762168884, 0.4042309522628784, -0.1330384612083435, -0.48365071415901184, -0.16117604076862335, -0.20422430336475372, 0.4172762632369995, 0.2799086272716522, 0.16675534844398499, 0.27386870980262756, 0.04891568422317505, 0.16796058416366577, -0.2383996993303299, 0.2513350248336792, 0.092528335750103, -0.1277252435684204, -0.35820141434669495, -0.3206033408641815, 0.4401078224182129, -0.050543010234832764, -0.05108628422021866, 0.0931558832526207, 0.18601129949092865, -0.3132156431674957, 0.35594141483306885, -0.03830684348940849, 0.8532409071922302, 0.014018183574080467, 0.4227760136127472, 0.2781120836734772, -0.039860621094703674, 0.31474411487579346, -0.038367483764886856, 0.21104809641838074, -0.45474177598953247, -0.21354864537715912, -0.03939865529537201, -0.1463223695755005, 0.16004037857055664, 0.20316122472286224, -0.15104246139526367, 0.2056577503681183, 0.24870701134204865, 0.0024849874898791313, -0.11763027310371399, 0.24413859844207764, -0.2815452516078949, -0.49947768449783325, -0.3187268376350403, -0.07894222438335419, 0.18579258024692535, -0.06793393194675446, -0.11852772533893585, -0.0023446455597877502, -0.0017805472016334534, -0.2800907790660858, -0.37472856044769287, -0.3991493582725525, -0.309317022562027, -0.15894004702568054, 0.6127158403396606, -0.2648887038230896, 0.26006177067756653, -0.034700095653533936, -0.03426288813352585, 0.17096012830734253, 0.11673929542303085, 0.08110874146223068, -0.019356783479452133, -0.13601653277873993, -0.04074348509311676, -0.3909029960632324, 0.17596079409122467, 0.2466168999671936, 0.016630634665489197, 0.2744944095611572, -0.11718295514583588, -0.2790032625198364, -0.21064747869968414, 0.21838124096393585, 0.23843275010585785, -0.2930263578891754, -0.25107914209365845, 0.1993105560541153, 0.11795379221439362, -0.25699636340141296, -0.11513951420783997, 0.1747872680425644, -0.249965101480484, 0.15523746609687805, 0.0525323823094368, -0.03694692999124527, -0.00587302353233099, 0.29757922887802124, -0.18962961435317993, -0.2781781554222107, 0.35393020510673523, 0.14287427067756653, -0.07277357578277588, -0.07928892225027084, -0.026617012917995453, 0.43774470686912537, -0.2136412411928177, -0.07195734977722168, 0.054706983268260956, -0.048379912972450256, -0.28275537490844727, 0.07057459652423859, 0.07421228289604187, 0.18390333652496338, -0.10512722283601761, -0.291168212890625, -0.40446847677230835, 0.27638912200927734, 0.3002135157585144, 0.3721831738948822, 0.18484993278980255, 0.17024365067481995, -0.25245633721351624, 0.4358139634132385, -0.11690628528594971, 0.14791744947433472, 0.14597856998443604, 0.15027128159999847, 0.18546436727046967, 0.11600209772586823, -0.08262121677398682, 0.12804999947547913, -0.0782817080616951, 0.15506166219711304, -0.14408235251903534, 0.015192665159702301, -0.1747511625289917, 0.21273815631866455, 0.23315837979316711, -0.011226095259189606, -0.14788419008255005, -0.11468397080898285, -0.17620885372161865, -0.3947840929031372, 0.31633514165878296, -0.0946524441242218, -0.2700203061103821, -0.19961485266685486, 0.6224370002746582, 0.25772929191589355, -0.09895059466362, 0.5540857315063477, 0.2836505174636841, 0.47066444158554077, 0.18089601397514343, 0.2874780297279358, -0.3524557948112488, 0.07644641399383545, 0.33858659863471985, 0.4616110324859619, 0.36843162775039673, -0.04640769213438034, 0.0408414751291275, -0.20603281259536743, -0.00812460482120514, 0.1402798295021057, 0.22865018248558044, 0.5841593742370605, -0.24247662723064423, 0.08344729989767075, 0.33892691135406494, 0.013256613165140152, -0.1886739730834961, 0.009598299860954285, 0.2829732596874237, -0.11926634609699249, 0.28851741552352905, 0.4438750743865967, -0.14190673828125, 0.13827505707740784, -0.15664663910865784, 0.08617427945137024, 0.010041125118732452, 0.014658268541097641, -0.15473538637161255, -0.09307663142681122, -0.03515225648880005, -0.14315301179885864, 0.1480112224817276, 0.38503366708755493, 0.3257231116294861, 0.5992688536643982, -0.23771438002586365, 0.4989939332008362, 0.5984042286872864, 0.006602622102946043, 0.19620764255523682, 0.0195394828915596, 0.053992416709661484, 0.5260343551635742, 0.694486141204834, 0.1154349073767662, 0.35118943452835083, 0.4129685163497925, -0.0707864910364151, -0.07139259576797485, 0.002006843686103821, 0.1799689531326294, 0.19092819094657898, -0.3396003544330597, 0.12106749415397644, -0.19975019991397858, -0.2255670428276062, -0.09369365125894547, -0.04386260733008385, -0.39085400104522705, 0.05569789186120033, -0.03286733105778694, 0.359478235244751, -0.4826163053512573, 0.07416975498199463, 0.21901164948940277, 0.0676174908876419, -0.306722491979599, 0.1683754175901413, 0.01932584121823311, 0.1612188071012497, 0.09859391301870346, 0.0885513499379158, 0.15398728847503662, 0.2236354798078537, -0.04122655838727951, 0.3775157928466797, -0.5520080924034119, 0.09237173199653625, -0.06420932710170746, -0.06269267201423645, -0.01287170872092247, -0.05020163208246231, 0.2981151044368744, -0.07037234306335449, 0.02754051610827446, 0.16847026348114014, 0.2442590445280075, -0.11067051440477371, -0.5813175439834595, -0.0054786913096904755, 0.0077515095472335815, -0.27688732743263245, -0.08205687999725342, -0.014521468430757523, -0.04413745552301407, -0.06875941157341003, 0.2984170913696289, -0.39230671525001526, 0.035250283777713776, 0.16577917337417603, -0.014820510521531105, -0.15874804556369781, 0.16361987590789795, 0.5065178275108337, 0.2900009751319885, -0.07103003561496735, -0.24688401818275452, -0.5102573037147522, -0.009848210960626602, -0.11190446466207504, -0.19571444392204285, -0.055647820234298706, 0.11794867366552353, 0.026969831436872482, 0.20014098286628723, 0.16112220287322998, -0.00906510278582573, -0.03408872336149216, 0.39533814787864685, -0.17830875515937805, -0.04629185423254967, -0.08578537404537201, 0.10226990282535553, 0.13502323627471924, -0.263191282749176, -0.1652938276529312, -0.07073855400085449, -0.16213305294513702, -0.10256838798522949, -0.009249314665794373, -0.053761065006256104, -0.12468944489955902, 0.5808815360069275, 0.2099566012620926, 0.1434178650379181, -0.1043718159198761, -0.014057260006666183, -0.21728050708770752, -0.11253227293491364, -0.33627668023109436, 0.6051658391952515, 0.028251007199287415, 0.06292733550071716, -0.14583656191825867, 0.03556327894330025, 0.018791187554597855, 0.004690144211053848, 0.08922399580478668, -0.15652424097061157, -0.19709070026874542, 0.3591445982456207, -0.39626598358154297, 0.1175953671336174, -0.1363483965396881, 0.30453741550445557, 0.2100231945514679, 0.21699628233909607, 0.18470287322998047, -0.09158104658126831, 0.23190438747406006, -0.4541724622249603, -0.3235696256160736, -0.07796112447977066, 0.021892942488193512, 0.0010352116078138351, -0.3787175714969635, -0.5221461057662964, -0.28750741481781006, 0.3396662175655365, -0.011159568093717098, -0.04374406486749649, 0.046223390847444534, -0.18471659719944, -0.12373711913824081, -0.4769805073738098, 0.4785837233066559, -0.01989210583269596, -0.08345743268728256, -0.09862767159938812, -0.5801849365234375 ]
https://github.com/huggingface/datasets/issues/1854
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).
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!
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.2646303176879883, 0.1603153645992279, -0.045890599489212036, 0.13861563801765442, -0.025281131267547607, 0.12017001956701279, 0.15693825483322144, 0.10714055597782135, 0.05867066979408264, 0.04408618062734604, 0.10954879224300385, 0.5823288559913635, -0.15739110112190247, 0.13800707459449768, 0.4451276659965515, -0.13564682006835938, 0.10213281959295273, 0.20480719208717346, -0.17529670894145966, 0.0704088881611824, -0.2645278573036194, -0.09055213630199432, -0.1519211381673813, -0.17901989817619324, -0.057932689785957336, -0.06132211536169052, -0.4128629267215729, -0.30235737562179565, -0.26559752225875854, -0.7929653525352478, -0.01238541305065155, -0.0009121103212237358, -0.08393054455518723, 0.26241642236709595, -0.00012833451910410076, 0.011733576655387878, 0.16709858179092407, -0.05399584770202637, -0.5640703439712524, -0.04569622874259949, -0.15539707243442535, -0.23874789476394653, 0.14549612998962402, -0.31387194991111755, 0.22605682909488678, -0.7180808186531067, 0.32295921444892883, -0.15456971526145935, 0.08908458054065704, 0.12501373887062073, -0.00037566572427749634, 0.49481135606765747, 0.1991046518087387, -0.36394721269607544, 0.2621559798717499, -0.04534224048256874, -0.1395278424024582, -0.17216277122497559, 0.37630990147590637, -0.20688162744045258, 0.08242109417915344, -0.1125960648059845, 0.2658931016921997, -0.09155668318271637, 0.40663936734199524, 0.12621355056762695, -0.012745387852191925, -0.14266490936279297, -0.15652762353420258, 0.29038727283477783, 0.2264159917831421, -0.4190438687801361, -0.636202335357666, -0.49100828170776367, 0.3017786145210266, -0.03996855020523071, -0.13481304049491882, 0.06015528738498688, -0.07117333263158798, -0.07603752613067627, -0.06980955600738525, -0.37702062726020813, -0.11191211640834808, 0.23817050457000732, 0.07179422676563263, 0.4428233206272125, 0.1425432711839676, 0.16436046361923218, 0.14419791102409363, -0.1271938681602478, -0.23456622660160065, 0.015186861157417297, -0.12329438328742981, 0.3333290219306946, -0.10311111062765121, -0.11664587259292603, 0.1092309057712555, -0.04701238125562668, 0.47551220655441284, -0.06129999831318855, 0.17372700572013855, 0.1157122552394867, -0.367578387260437, 0.08663427829742432, 0.17147648334503174, -0.10088066756725311, 0.21374422311782837, -0.2119160294532776, -0.31287336349487305, 0.07727552950382233, 0.40921100974082947, 0.062039464712142944, -0.18246027827262878, 0.10737363994121552, -0.26181864738464355, -0.35823535919189453, -0.06813841313123703, 0.4037792384624481, -0.12076203525066376, -0.027362827211618423, -0.010699927806854248, 0.08419518172740936, -0.04728800803422928, 0.17367780208587646, 0.17173118889331818, -0.367912232875824, -0.2393832802772522, 0.20148056745529175, 0.12630760669708252, -0.010279085487127304, 0.0816342830657959, 0.2179592251777649, -0.10804013907909393, 0.1765950322151184, 0.10082311928272247, -0.0010514967143535614, -0.014449529349803925, -0.0649893507361412, 0.06919358670711517, 0.0783880427479744, -0.01141073927283287, -0.1804756373167038, 0.25219935178756714, 0.010660668835043907, 0.053255610167980194, -0.04565262049436569, -0.10148539394140244, -0.4404919147491455, -0.4781495928764343, 0.2198810577392578, -0.10788807272911072, -0.18129035830497742, -0.22441188991069794, -0.0641980916261673, 0.004239082336425781, -0.16428951919078827, -0.19526763260364532, 0.5241124033927917, 0.38312944769859314, -0.23584070801734924, 0.130208820104599, -0.12835855782032013, -0.563591480255127, -0.17915141582489014, 0.19442686438560486, 0.33991432189941406, -0.4468758702278137, -0.32744091749191284, -0.10168535262346268, -0.01581842079758644, -0.41329067945480347, 0.129503071308136, -0.09444631636142731, 0.2800903022289276, -0.4338250756263733, 0.4084130525588989, 0.3091631829738617, -0.16581682860851288, -0.2207370102405548, 0.13089856505393982, -0.17825402319431305, 0.0376555472612381, 0.08423417806625366, 0.39586493372917175, 0.29530978202819824, 0.06001972779631615, 0.4510015845298767, 0.25852900743484497, -0.07952135056257248, -0.08993534743785858, 0.07368911802768707, -0.41466617584228516, 0.30074501037597656, -0.011193633079528809, -0.12632054090499878, -0.09053144603967667, 0.027957964688539505, -0.5407938361167908, 0.16449198126792908, -0.10661730170249939, 0.3368988335132599, -0.03835625201463699, 0.40192198753356934, -0.007630560547113419, -0.10582397878170013, -0.5203375220298767, -0.3627278208732605, 0.138412207365036, -0.07732465118169785, 0.12221948057413101, -0.11240419745445251, -0.435809463262558, -0.14829622209072113, 0.42671433091163635, -0.1347390115261078, -0.02146882191300392, -0.06915126740932465, 0.05720727518200874, -0.009346365928649902, -0.12008276581764221, -0.4359641671180725, 0.14287862181663513, 0.2283414900302887, 0.3076545298099518, -0.4393090307712555, -0.049837857484817505, 0.26864826679229736, -0.18490645289421082, -0.12170238792896271, 0.17337185144424438, -0.1410754919052124, -0.1443532556295395, 0.2083715945482254, 0.2823854088783264, -0.08674129098653793, -0.27010416984558105, 0.12039095163345337, 0.2604827284812927, 0.2900449335575104, 0.30600857734680176, -0.10014385730028152, -0.205706387758255, 0.31407931447029114, -0.2532830238342285, -0.22917045652866364, 0.5499860644340515, 0.04193045571446419, 0.42619529366493225, 0.13705694675445557, 0.03928457200527191, 0.020195476710796356, 0.2511621117591858, -0.25379204750061035, -0.25780296325683594, -0.04990607500076294, 0.1488565057516098, 0.21238508820533752, -0.1196056604385376, -0.10451845824718475, 0.16266602277755737, 0.1422625184059143, 0.15961867570877075, 0.17707405984401703, 0.1443227082490921, -0.21447326242923737, 0.06230156868696213, 0.0679699182510376, 0.014986984431743622, 0.4575430154800415, 0.05440129339694977, 0.11451667547225952, 0.06591586023569107, 0.11104565858840942, 0.056890975683927536, 0.0589824914932251, 0.031461380422115326, -0.11707421392202377, 0.03847271203994751, 0.538994550704956, 0.06154690682888031, -0.021838970482349396, -0.13882103562355042, 0.11369713395833969, -0.043255604803562164, -0.12181878834962845, 0.03975645452737808, 0.044824838638305664, 0.07221546024084091, -0.2530292570590973, -0.371677041053772, -0.08491891622543335, -0.0843767523765564, 0.26894140243530273, 0.03143136948347092, 0.015641584992408752, 0.3010817766189575, 0.13798771798610687, 0.7158762216567993, 0.10474415123462677, -0.4731733500957489, -0.08592303097248077, 0.006562311202287674, 0.21826134622097015, -0.10107170045375824, -0.10317312180995941, 0.3030093312263489, 0.4021121561527252, 0.08699039369821548, -0.03165727108716965, -0.347520112991333, -0.5039148330688477, 0.1095273494720459, -0.051787830889225006, 0.43373170495033264, 0.39487066864967346, -0.3356013000011444, -0.11234267055988312, -0.2517049312591553, 0.18364831805229187, 0.0373474583029747, -0.1394076645374298, -0.18606479465961456, -0.09768544137477875, -0.2373916506767273, -0.04965600743889809, 0.10303269326686859, -0.2060161679983139, -0.17669357359409332, 0.4733741581439972, 0.15361256897449493, 0.25191277265548706, -0.2228935956954956, 0.09829532355070114, 0.033694665879011154, -0.1396934539079666, -0.12086675316095352, 0.07183216512203217, -0.0042213574051856995, 0.47306087613105774, -0.36195671558380127, -0.17627853155136108, -0.16062328219413757, -0.5109411478042603, 0.11148467659950256, 0.37749433517456055, -0.28791749477386475, -0.3993915319442749, -0.26131319999694824, 0.3807622194290161, -0.09368477016687393, 0.2705564498901367, 0.49555736780166626, 0.004103165119886398, 0.15339556336402893, 0.05739988386631012, -0.2879432737827301, 0.3740735352039337, 0.1856689453125, 0.059899769723415375, 0.08098186552524567, 0.1704525649547577, 0.08677620440721512, 0.6634981632232666, 0.18454387784004211, -0.10840778052806854, 0.14336320757865906, -0.5918191075325012, 0.36275339126586914, -0.21686573326587677, -0.22201332449913025, -0.17964693903923035, -0.11066213250160217, 0.0941362977027893, 0.06077924743294716, -0.026392869651317596, 0.12603014707565308, 0.07124598324298859, 0.34688347578048706, 0.05419667065143585, -0.19858436286449432, 0.1793525665998459, 0.02106385864317417, 0.33733609318733215, -0.019324909895658493, -0.022400669753551483, -0.387143075466156, 0.017365165054798126, -0.04099198430776596, 0.27647948265075684, 0.2389589250087738, -0.177068829536438, -0.4978463053703308, -0.14098773896694183, -0.307357519865036, 0.06948661804199219, 0.3090181052684784, 0.44738999009132385, 0.2480776309967041, -0.1597178876399994, 0.0432346947491169, -0.20205286145210266, 0.7236331105232239, 0.32533469796180725, -0.4594322443008423, 0.008428208529949188, 0.09381774067878723, -0.2563484311103821, 0.1732940971851349, 0.013920620083808899, 0.542202353477478, 0.1814727783203125, 0.2524055242538452, -0.45429158210754395, 0.2550082802772522, 0.20514793694019318, 0.17938871681690216, -0.18166571855545044, -0.1778387427330017, -0.11380835622549057, -0.12891283631324768, -0.231563538312912, 0.1871427595615387, 0.1932210922241211, 0.2209281176328659, 0.46918773651123047, -0.09896070510149002, -0.4084223806858063, 0.0668775662779808, 0.10205326974391937, -0.03331708908081055, 0.004495851695537567, 0.14979742467403412, 0.5072351098060608, -0.11103843152523041, -0.20785880088806152, 0.4400333762168884, 0.4042309522628784, -0.1330384612083435, -0.48365071415901184, -0.16117604076862335, -0.20422430336475372, 0.4172762632369995, 0.2799086272716522, 0.16675534844398499, 0.27386870980262756, 0.04891568422317505, 0.16796058416366577, -0.2383996993303299, 0.2513350248336792, 0.092528335750103, -0.1277252435684204, -0.35820141434669495, -0.3206033408641815, 0.4401078224182129, -0.050543010234832764, -0.05108628422021866, 0.0931558832526207, 0.18601129949092865, -0.3132156431674957, 0.35594141483306885, -0.03830684348940849, 0.8532409071922302, 0.014018183574080467, 0.4227760136127472, 0.2781120836734772, -0.039860621094703674, 0.31474411487579346, -0.038367483764886856, 0.21104809641838074, -0.45474177598953247, -0.21354864537715912, -0.03939865529537201, -0.1463223695755005, 0.16004037857055664, 0.20316122472286224, -0.15104246139526367, 0.2056577503681183, 0.24870701134204865, 0.0024849874898791313, -0.11763027310371399, 0.24413859844207764, -0.2815452516078949, -0.49947768449783325, -0.3187268376350403, -0.07894222438335419, 0.18579258024692535, -0.06793393194675446, -0.11852772533893585, -0.0023446455597877502, -0.0017805472016334534, -0.2800907790660858, -0.37472856044769287, -0.3991493582725525, -0.309317022562027, -0.15894004702568054, 0.6127158403396606, -0.2648887038230896, 0.26006177067756653, -0.034700095653533936, -0.03426288813352585, 0.17096012830734253, 0.11673929542303085, 0.08110874146223068, -0.019356783479452133, -0.13601653277873993, -0.04074348509311676, -0.3909029960632324, 0.17596079409122467, 0.2466168999671936, 0.016630634665489197, 0.2744944095611572, -0.11718295514583588, -0.2790032625198364, -0.21064747869968414, 0.21838124096393585, 0.23843275010585785, -0.2930263578891754, -0.25107914209365845, 0.1993105560541153, 0.11795379221439362, -0.25699636340141296, -0.11513951420783997, 0.1747872680425644, -0.249965101480484, 0.15523746609687805, 0.0525323823094368, -0.03694692999124527, -0.00587302353233099, 0.29757922887802124, -0.18962961435317993, -0.2781781554222107, 0.35393020510673523, 0.14287427067756653, -0.07277357578277588, -0.07928892225027084, -0.026617012917995453, 0.43774470686912537, -0.2136412411928177, -0.07195734977722168, 0.054706983268260956, -0.048379912972450256, -0.28275537490844727, 0.07057459652423859, 0.07421228289604187, 0.18390333652496338, -0.10512722283601761, -0.291168212890625, -0.40446847677230835, 0.27638912200927734, 0.3002135157585144, 0.3721831738948822, 0.18484993278980255, 0.17024365067481995, -0.25245633721351624, 0.4358139634132385, -0.11690628528594971, 0.14791744947433472, 0.14597856998443604, 0.15027128159999847, 0.18546436727046967, 0.11600209772586823, -0.08262121677398682, 0.12804999947547913, -0.0782817080616951, 0.15506166219711304, -0.14408235251903534, 0.015192665159702301, -0.1747511625289917, 0.21273815631866455, 0.23315837979316711, -0.011226095259189606, -0.14788419008255005, -0.11468397080898285, -0.17620885372161865, -0.3947840929031372, 0.31633514165878296, -0.0946524441242218, -0.2700203061103821, -0.19961485266685486, 0.6224370002746582, 0.25772929191589355, -0.09895059466362, 0.5540857315063477, 0.2836505174636841, 0.47066444158554077, 0.18089601397514343, 0.2874780297279358, -0.3524557948112488, 0.07644641399383545, 0.33858659863471985, 0.4616110324859619, 0.36843162775039673, -0.04640769213438034, 0.0408414751291275, -0.20603281259536743, -0.00812460482120514, 0.1402798295021057, 0.22865018248558044, 0.5841593742370605, -0.24247662723064423, 0.08344729989767075, 0.33892691135406494, 0.013256613165140152, -0.1886739730834961, 0.009598299860954285, 0.2829732596874237, -0.11926634609699249, 0.28851741552352905, 0.4438750743865967, -0.14190673828125, 0.13827505707740784, -0.15664663910865784, 0.08617427945137024, 0.010041125118732452, 0.014658268541097641, -0.15473538637161255, -0.09307663142681122, -0.03515225648880005, -0.14315301179885864, 0.1480112224817276, 0.38503366708755493, 0.3257231116294861, 0.5992688536643982, -0.23771438002586365, 0.4989939332008362, 0.5984042286872864, 0.006602622102946043, 0.19620764255523682, 0.0195394828915596, 0.053992416709661484, 0.5260343551635742, 0.694486141204834, 0.1154349073767662, 0.35118943452835083, 0.4129685163497925, -0.0707864910364151, -0.07139259576797485, 0.002006843686103821, 0.1799689531326294, 0.19092819094657898, -0.3396003544330597, 0.12106749415397644, -0.19975019991397858, -0.2255670428276062, -0.09369365125894547, -0.04386260733008385, -0.39085400104522705, 0.05569789186120033, -0.03286733105778694, 0.359478235244751, -0.4826163053512573, 0.07416975498199463, 0.21901164948940277, 0.0676174908876419, -0.306722491979599, 0.1683754175901413, 0.01932584121823311, 0.1612188071012497, 0.09859391301870346, 0.0885513499379158, 0.15398728847503662, 0.2236354798078537, -0.04122655838727951, 0.3775157928466797, -0.5520080924034119, 0.09237173199653625, -0.06420932710170746, -0.06269267201423645, -0.01287170872092247, -0.05020163208246231, 0.2981151044368744, -0.07037234306335449, 0.02754051610827446, 0.16847026348114014, 0.2442590445280075, -0.11067051440477371, -0.5813175439834595, -0.0054786913096904755, 0.0077515095472335815, -0.27688732743263245, -0.08205687999725342, -0.014521468430757523, -0.04413745552301407, -0.06875941157341003, 0.2984170913696289, -0.39230671525001526, 0.035250283777713776, 0.16577917337417603, -0.014820510521531105, -0.15874804556369781, 0.16361987590789795, 0.5065178275108337, 0.2900009751319885, -0.07103003561496735, -0.24688401818275452, -0.5102573037147522, -0.009848210960626602, -0.11190446466207504, -0.19571444392204285, -0.055647820234298706, 0.11794867366552353, 0.026969831436872482, 0.20014098286628723, 0.16112220287322998, -0.00906510278582573, -0.03408872336149216, 0.39533814787864685, -0.17830875515937805, -0.04629185423254967, -0.08578537404537201, 0.10226990282535553, 0.13502323627471924, -0.263191282749176, -0.1652938276529312, -0.07073855400085449, -0.16213305294513702, -0.10256838798522949, -0.009249314665794373, -0.053761065006256104, -0.12468944489955902, 0.5808815360069275, 0.2099566012620926, 0.1434178650379181, -0.1043718159198761, -0.014057260006666183, -0.21728050708770752, -0.11253227293491364, -0.33627668023109436, 0.6051658391952515, 0.028251007199287415, 0.06292733550071716, -0.14583656191825867, 0.03556327894330025, 0.018791187554597855, 0.004690144211053848, 0.08922399580478668, -0.15652424097061157, -0.19709070026874542, 0.3591445982456207, -0.39626598358154297, 0.1175953671336174, -0.1363483965396881, 0.30453741550445557, 0.2100231945514679, 0.21699628233909607, 0.18470287322998047, -0.09158104658126831, 0.23190438747406006, -0.4541724622249603, -0.3235696256160736, -0.07796112447977066, 0.021892942488193512, 0.0010352116078138351, -0.3787175714969635, -0.5221461057662964, -0.28750741481781006, 0.3396662175655365, -0.011159568093717098, -0.04374406486749649, 0.046223390847444534, -0.18471659719944, -0.12373711913824081, -0.4769805073738098, 0.4785837233066559, -0.01989210583269596, -0.08345743268728256, -0.09862767159938812, -0.5801849365234375 ]
https://github.com/huggingface/datasets/issues/1849
@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!
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).
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.07334105670452118, -0.31102389097213745, -0.1762830913066864, 0.18871550261974335, 0.08587662130594254, -0.10724179446697235, 0.11768986284732819, 0.06328698992729187, -0.42619043588638306, -0.13589197397232056, -0.2996532618999481, 0.13682134449481964, -0.07004351913928986, 0.31382250785827637, 0.23151524364948273, -0.38120439648628235, -0.09241589903831482, 0.12396842241287231, -0.24858605861663818, -0.16811500489711761, -0.020674966275691986, 0.20142802596092224, 0.060208529233932495, -0.01701679453253746, -0.07883235812187195, -0.185782790184021, -0.10645802319049835, -0.19129669666290283, -0.20093780755996704, -0.41116446256637573, -0.12930718064308167, 0.039378780871629715, 0.09966236352920532, 0.5218948125839233, -0.00010906291572609916, -0.1116432324051857, -0.08479628711938858, -0.27521812915802, -0.04820670187473297, -0.1977027952671051, 0.0026011690497398376, 0.017241068184375763, -0.1876087784767151, 0.03326241672039032, -0.11618578433990479, 0.004350766539573669, 0.17673413455486298, -0.256652295589447, 0.15262284874916077, 0.25602707266807556, 0.1796584129333496, -0.2397238165140152, 0.003753073513507843, 0.12031950801610947, 0.18378812074661255, 0.35329005122184753, -0.16591200232505798, -0.18612635135650635, 0.4423641562461853, 0.3691049814224243, 0.1545248031616211, 0.20547400414943695, -0.23383226990699768, -0.16024544835090637, 0.1172221451997757, 0.1588023602962494, -0.12801307439804077, -0.4249422252178192, -0.2001315802335739, 0.16148588061332703, 1.0803807973861694, -0.2730860710144043, -0.2102268487215042, -0.16821503639221191, -0.006715275347232819, -0.03884454071521759, 0.05452718585729599, 0.0947854220867157, -0.10754039883613586, 0.28220415115356445, -0.12841150164604187, -0.08735588192939758, -0.40362316370010376, 0.2998383343219757, 0.17510882019996643, -0.09039582312107086, -0.16518959403038025, -0.0817207545042038, -0.2652522921562195, -0.022478263825178146, -0.1265885829925537, -0.06915110349655151, 0.1829088181257248, 0.14437061548233032, 0.1264309287071228, -0.20703674852848053, -0.07222330570220947, -0.23967823386192322, 0.12979058921337128, 0.07993307709693909, 0.15789079666137695, 0.12824973464012146, -0.36138397455215454, -0.035532426089048386, 0.32121169567108154, -0.148323655128479, 0.1604643166065216, -0.30204182863235474, 0.03045530430972576, -0.3613666892051697, 0.16218891739845276, -0.2847992777824402, -0.24289126694202423, 0.23617485165596008, 0.13779039680957794, -0.046789463609457016, 0.1481565684080124, -0.2279862016439438, 0.0026649832725524902, 0.05271438881754875, -0.01803455501794815, 0.05892912670969963, -0.030358847230672836, 0.0837377980351448, -0.14452126622200012, 0.1464489847421646, 0.11820972710847855, 0.23814386129379272, -0.015013433992862701, -0.1115037053823471, 0.08406873047351837, -0.0457720085978508, -0.25559794902801514, 0.18171536922454834, 0.052026815712451935, -0.10004529356956482, 0.16858159005641937, 0.19605767726898193, -0.0118182972073555, -0.07843611389398575, -0.13665634393692017, -0.17841973900794983, 0.2777073085308075, -0.1461719274520874, 0.05278107523918152, 0.13902640342712402, -0.19031883776187897, -0.04703030735254288, -0.363314688205719, 0.12110830098390579, 0.16795256733894348, -0.04229297488927841, -0.04531317949295044, 0.1867239624261856, -0.012482285499572754, -0.156264066696167, -0.17691904306411743, 0.7114766836166382, 0.2749205529689789, -0.10273946821689606, -0.007508624345064163, 0.1939912885427475, -0.5860927700996399, -0.10502399504184723, 0.17764316499233246, 0.05855920910835266, -0.6696822643280029, 0.021252036094665527, -0.037868451327085495, 0.16111654043197632, 0.29753053188323975, 0.212563157081604, 0.33957651257514954, 0.5863780379295349, 0.021005623042583466, 0.26678746938705444, 0.17175529897212982, -0.2706252932548523, -0.14310987293720245, 0.13693767786026, -0.1598667949438095, -0.11708539724349976, -0.04734831303358078, 0.14493779838085175, 0.4792863130569458, -0.10187704116106033, 0.029484977945685387, 0.19400697946548462, -0.20144255459308624, -0.02355324476957321, -0.029060788452625275, -0.03718957677483559, -0.12045913189649582, 0.0778588354587555, -0.1989879310131073, -0.10679583251476288, -0.12518003582954407, 0.21775102615356445, 0.22465117275714874, 0.06529470533132553, 0.3470468521118164, 0.06921178847551346, 0.38479989767074585, 0.19090014696121216, 0.12973514199256897, -0.4917135238647461, 0.40339216589927673, -0.19642159342765808, 0.15266525745391846, 0.47823047637939453, -0.14731881022453308, -0.1671420931816101, -0.3596304655075073, -0.22060903906822205, -0.0516645684838295, 0.2606673836708069, 0.22058145701885223, 0.1991177797317505, -0.00945599377155304, 0.08572036027908325, 0.03558174520730972, 0.45011043548583984, -0.007556349039077759, -0.24193477630615234, -0.3201271891593933, 0.2504456043243408, 0.09513820707798004, -0.34468314051628113, -0.014947965741157532, 0.49894243478775024, -0.08319266140460968, 0.14938026666641235, 0.13808691501617432, 0.2466292679309845, 0.0038794614374637604, 0.013597864657640457, -0.20220375061035156, -0.11014476418495178, 0.26284030079841614, -0.4228823184967041, 0.33136415481567383, 0.06269046664237976, 0.0637861043214798, -0.22584611177444458, 0.03935519605875015, -0.020557746291160583, 0.1559751182794571, 0.07062003016471863, -0.14247259497642517, -0.10161591321229935, -0.13290631771087646, 0.0496608167886734, -0.056905344128608704, -0.11066072434186935, 0.0648704543709755, 0.11938244849443436, -0.0562705397605896, -0.2600482702255249, -0.26264718174934387, 0.24233098328113556, 0.2686447203159332, 0.006195791065692902, 0.0921059101819992, 0.04663420468568802, -0.20505288243293762, 0.20629237592220306, -0.04789963737130165, -0.474214106798172, -0.005434073507785797, 0.2985427975654602, 0.19349965453147888, -0.03869165480136871, 0.11781802773475647, -0.00005702301859855652, 0.07349749654531479, 0.14415712654590607, -0.14067961275577545, 0.26912370324134827, -0.1684083342552185, 0.014476943761110306, -0.2006816267967224, -0.06469602137804031, -0.2875881791114807, 0.03922334313392639, -0.1764375865459442, -0.1992070972919464, 0.07650119811296463, -0.1841208040714264, -0.24531370401382446, -0.31672409176826477, 0.09951230883598328, 0.061085931956768036, 0.2686391770839691, 0.1480073779821396, 0.049126580357551575, -0.01012229360640049, 0.21242044866085052, 0.15072594583034515, 0.023234866559505463, -0.00013470277190208435, -0.02151843160390854, -0.032080382108688354, -0.15615949034690857, 0.16968411207199097, 0.07609432935714722, 0.30614346265792847, 0.45288562774658203, -0.3062445819377899, 0.014612890779972076, 0.08024537563323975, -0.01783115416765213, 0.230417400598526, -0.3757925033569336, 0.28340089321136475, 0.028935719281435013, -0.000025346875190734863, -0.3605324625968933, -0.41153866052627563, 0.016146458685398102, -0.031522613018751144, -0.2919287085533142, 0.07438786327838898, -0.09567841142416, -0.1340010017156601, 0.11572165787220001, -0.44453445076942444, -0.297171950340271, -0.3025035262107849, 0.335298091173172, 0.08214469999074936, 0.22495821118354797, 0.16999174654483795, -0.12080773711204529, 0.1753779947757721, 0.16364561021327972, 0.43416115641593933, -0.32022809982299805, -0.3624623417854309, 0.30462291836738586, -0.2548816204071045, -0.2976195514202118, -0.08710134774446487, 0.006007209420204163, 0.026022866368293762, 0.06352654099464417, -0.2088305801153183, 0.1419956088066101, -0.010043882764875889, 0.04971078038215637, 0.08470209687948227, 0.17801311612129211, 0.15832392871379852, 0.07651905715465546, -0.07987724244594574, -0.2320670485496521, 0.03285524994134903, 0.14761079847812653, 0.16697581112384796, 0.19662970304489136, 0.2978931665420532, 0.01475483551621437, 0.006802521646022797, 0.349337637424469, 0.4952240586280823, 0.03258552402257919, 0.062058232724666595, 0.282273530960083, 0.0033728647977113724, -0.017472710460424423, -0.30496925115585327, 0.19448643922805786, 0.049722712486982346, 0.1094198152422905, 0.6189504861831665, 0.2590443789958954, -0.031626179814338684, -0.12968896329402924, -0.15733560919761658, -0.3830251097679138, -0.13440023362636566, 0.23378145694732666, -0.2662256360054016, 0.14176824688911438, -0.37338778376579285, -0.15008686482906342, -0.02144785225391388, -0.17250114679336548, 0.06449099630117416, -0.023198086768388748, 0.06949996203184128, 0.017031222581863403, -0.45991867780685425, -0.11790064722299576, -0.4404785931110382, -0.1500287652015686, 0.3699202239513397, 0.06646871566772461, -0.25453895330429077, 0.05896332114934921, 0.016656950116157532, 0.42829495668411255, 0.28719913959503174, -0.3595501482486725, -0.08175072818994522, -0.05954791232943535, 0.3208387494087219, -0.2337530255317688, 0.3633396625518799, -0.3790825307369232, 0.06112990155816078, 0.2409208118915558, -0.016108766198158264, -0.19468386471271515, 0.16996270418167114, 0.06844067573547363, 0.35526514053344727, -0.10936121642589569, -0.3979184031486511, 0.1107332706451416, -0.3221362233161926, -0.03772073611617088, 0.04761224612593651, 0.29757341742515564, 0.010838404297828674, 0.27650296688079834, -0.33371955156326294, 0.3182638883590698, 0.22968299686908722, 0.571784257888794, -0.07925079017877579, 0.1295108050107956, 0.17110179364681244, 0.1002245619893074, 0.4372742772102356, 0.08105756342411041, 0.06133745610713959, 0.33551284670829773, -0.008458303287625313, -0.08386985957622528, 0.042301926761865616, -0.6474964618682861, 0.6383490562438965, 0.17787493765354156, 0.5054208040237427, 0.05788147449493408, -0.09885571151971817, -0.179164856672287, -0.31234705448150635, 0.08295223116874695, 0.27655115723609924, 0.22879774868488312, -0.5406431555747986, -0.4827101230621338, 0.36881351470947266, -0.05081503093242645, -0.016092754900455475, 0.39329272508621216, 0.08660989999771118, -0.527390718460083, 0.40005162358283997, 0.13467901945114136, 1.2645549774169922, -0.07298189401626587, 0.08058959245681763, 0.016674302518367767, 0.21393275260925293, 0.11046922206878662, -0.33289894461631775, -0.10022403299808502, -0.11849693208932877, 0.003925178200006485, -0.18404248356819153, 0.1489250659942627, -0.11249973624944687, 0.44660618901252747, -0.6558454036712646, -0.23422420024871826, 0.11346182227134705, 0.18014834821224213, 0.0316670760512352, 0.23095625638961792, -0.08756150305271149, -0.5443080067634583, -0.1068466454744339, 0.1333284080028534, -0.09437713027000427, -0.10515240579843521, 0.07793392241001129, -0.14074024558067322, -0.09908664226531982, 0.18724800646305084, -0.5839386582374573, -0.19350683689117432, -0.2705622911453247, -0.2539994716644287, -0.2642703056335449, -0.454912930727005, 0.46144354343414307, 0.3034355342388153, 0.4711962342262268, 0.2648221552371979, -0.09883332252502441, -0.27002817392349243, 0.2565155625343323, -0.24409820139408112, 0.11321605741977692, -0.05641845241189003, 0.2361491322517395, -0.25656622648239136, -0.4020325839519501, 0.11990642547607422, 0.23404672741889954, 0.055814191699028015, -0.19970734417438507, -0.2428252249956131, 0.27732691168785095, -0.606006920337677, 0.03326377272605896, 0.40399476885795593, 0.039299607276916504, 0.05616249144077301, 0.1593710482120514, 0.32194405794143677, -0.27039679884910583, 0.3919324576854706, -0.0728839561343193, -0.11713206768035889, -0.09170089662075043, -0.014020189642906189, 0.32095974683761597, -0.09505388885736465, 0.26670190691947937, 0.31777772307395935, -0.20660598576068878, -0.19010838866233826, 0.12542018294334412, -0.002545952796936035, -0.06991833448410034, -0.16680939495563507, -0.0008288063108921051, 0.03649628162384033, -0.22431500256061554, 0.25828981399536133, 0.2697298526763916, -0.13129666447639465, -0.2389480471611023, -0.16251517832279205, -0.40660610795021057, 0.14960841834545135, 0.24640566110610962, 0.20300883054733276, 0.056858211755752563, 0.10913647711277008, 0.1058473289012909, 0.12977851927280426, -0.38442057371139526, -0.3562226891517639, 0.16252130270004272, 0.3911125063896179, 0.2898440361022949, -0.09931975603103638, 0.05262229964137077, -0.13960759341716766, 0.11516250669956207, 0.11629310995340347, -0.12752428650856018, -0.21183663606643677, -0.12850208580493927, 0.13775891065597534, 0.11933916807174683, -0.23925845324993134, -0.04578615352511406, -0.15537211298942566, -0.2056812345981598, -0.16299735009670258, -0.0004480108618736267, 0.4357181191444397, 0.03952725976705551, 0.3720490038394928, 0.2068151831626892, 0.12072929739952087, -0.11142859607934952, -0.13430210947990417, 0.0886634886264801, 0.06583377718925476, 0.1747950315475464, -0.014456444419920444, 0.06395356357097626, -0.15197841823101044, 0.05204726755619049, 0.3738810122013092, 0.35499247908592224, -0.12321478128433228, 0.19293782114982605, -0.1140262633562088, 0.2656605541706085, 0.3561334013938904, 0.25409287214279175, 0.19470110535621643, 0.15259644389152527, -0.13671235740184784, 0.18333543837070465, 0.26336807012557983, 0.00527721643447876, 0.07480016350746155, -0.28225910663604736, -0.1367000937461853, 0.05136118829250336, 0.27691495418548584, 0.10086452960968018, -0.08527146279811859, 0.25146517157554626, -0.07312708348035812, 0.14880740642547607, -0.08419331908226013, -0.0641888976097107, 0.36898744106292725, 0.13005895912647247, -0.045783285051584244, 0.050801314413547516, 0.22023051977157593, 0.017639581114053726, 0.08830825984477997, 0.0042292773723602295, 0.0974264144897461, -0.11537160724401474, 0.10032248497009277, 0.17487183213233948, 0.06571828573942184, -0.025953879579901695, 0.2681545317173004, -0.10540696233510971, 0.18855020403862, 0.20588991045951843, 0.6595244407653809, -0.0601864717900753, -0.10495894402265549, 0.16618196666240692, -0.006503317505121231, -0.05521882697939873, 0.0787564143538475, -0.6642007231712341, -0.2857769727706909, -0.0530475452542305, -0.41377371549606323, 0.048493485897779465, -0.35197851061820984, 0.07822814583778381, 0.1137445867061615, 0.07023771107196808, -0.41516295075416565, -0.052781905978918076, -0.203050434589386, 0.32018157839775085, -0.25294390320777893, 0.2339252233505249, 0.2223711609840393, -0.04413437098264694, 0.1609778255224228, 0.36416202783584595, 0.15343303978443146, -0.05330943688750267, -0.37579524517059326, 0.46932944655418396, -0.2915986478328705, -0.25233882665634155, 0.09521321952342987, 0.3439052700996399, 0.07589487731456757, -0.0035804081708192825, 0.11966927349567413, 0.19784627854824066, -0.046899132430553436, -0.19371798634529114, 0.45778191089630127, -0.36456671357154846, 0.12806454300880432, 0.13830497860908508, 0.11339211463928223, -0.3378148674964905, -0.1734226644039154, -0.3441179096698761, -0.4632590115070343, 0.006294704973697662, 0.7435661554336548, -0.2706795334815979, -0.012798435986042023, -0.04727305471897125, 0.10165630280971527, 0.034843456000089645, 0.053734567016363144, 0.5934010148048401, 0.2932860851287842, 0.1423203945159912, -0.17337775230407715, -0.14678955078125, 0.10804648697376251, 0.13896873593330383, -0.33660438656806946, -0.0652376338839531, -0.05203019455075264, 0.36820176243782043, 0.36340847611427307, -0.05646446347236633, -0.3060184717178345, -0.732879638671875, 0.2398664802312851, -0.18637463450431824, 0.03451484814286232, -0.06668321788311005, 0.6858643293380737, -0.1334247887134552, 0.05402849614620209, -0.27847570180892944, 0.34733256697654724, 0.0763167142868042, -0.40324655175209045, 0.12324817478656769, -0.06566441804170609, 0.2084627002477646, -0.15248434245586395, -0.006083676591515541, 0.4159906804561615, -0.33212608098983765, 0.1745472252368927, 0.12447421252727509, 0.05565931648015976, -0.32892873883247375, 0.2753637731075287, 0.16529634594917297, 0.35696476697921753, -0.29382047057151794, 0.1285811811685562, 0.017426174134016037, 0.08919768035411835, 0.1250610649585724, 0.04323973506689072, -0.21586114168167114, 0.05523862689733505, -0.2938520312309265, -0.17642280459403992, 0.056026358157396317, 0.3817709684371948, -0.047324039041996, -0.025754012167453766, -0.39883214235305786, -0.4108397662639618, 0.005938142538070679, 0.008929971605539322, -0.44033679366111755, 0.1504618227481842, -0.030387327075004578, -0.0181618370115757, 0.2231644093990326, -0.7285832762718201, -0.08740385621786118, 0.45518797636032104, 0.020122170448303223, 0.08900481462478638, 0.23690153658390045, 0.04753044247627258, -0.15702717006206512, -0.09156020730733871, 0.4929831624031067, 0.10331729054450989, -0.15235255658626556, -0.1984369456768036, -0.5478038787841797 ]
https://github.com/huggingface/datasets/issues/1849
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 :-)
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).
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.2446836531162262, -0.47310495376586914, -0.17479516565799713, 0.05118837207555771, 0.12573319673538208, -0.09047136455774307, 0.07210523635149002, 0.21556340157985687, -0.2834852933883667, 0.12188804149627686, -0.3020026683807373, 0.19129154086112976, -0.3662654459476471, 0.16451668739318848, 0.13558731973171234, -0.04945806786417961, -0.15291212499141693, 0.11668279767036438, -0.06518112868070602, -0.10856195539236069, -0.09382893145084381, 0.26619774103164673, -0.0076809898018836975, -0.08310532569885254, 0.07404930144548416, 0.001232808455824852, 0.02712448686361313, -0.2614452540874481, -0.22609636187553406, -0.43112680315971375, -0.28076672554016113, 0.10978351533412933, 0.04201105237007141, 0.26065510511398315, -0.0001012167485896498, -0.09954695403575897, 0.10226978361606598, -0.2563877999782562, -0.23640847206115723, -0.2771129012107849, 0.09442125260829926, 0.22497113049030304, -0.10207343846559525, 0.033096253871917725, -0.35129183530807495, -0.08708396553993225, 0.17362764477729797, -0.29906222224235535, 0.09423673152923584, 0.44839340448379517, 0.28700441122055054, 0.10876807570457458, 0.017240792512893677, -0.04707230255007744, 0.3513857424259186, 0.08922795951366425, -0.16798488795757294, -0.10174879431724548, 0.26337599754333496, 0.17195555567741394, -0.11541427671909332, 0.2804039716720581, -0.07344816625118256, -0.06493910402059555, 0.16999976336956024, 0.06320830434560776, -0.15344448387622833, -0.44144245982170105, -0.12580737471580505, 0.19198155403137207, 0.5023950934410095, -0.3778834640979767, -0.24965789914131165, -0.23433855175971985, 0.0014073103666305542, -0.2383289784193039, 0.031701505184173584, 0.08528147637844086, -0.4321382939815521, 0.24406227469444275, 0.0006117038428783417, -0.1649400144815445, -0.11422166228294373, 0.21034079790115356, 0.3562361001968384, -0.06612136960029602, -0.2036217749118805, -0.24574124813079834, 0.06249150261282921, -0.11293911933898926, -0.19852110743522644, 0.08735761791467667, 0.14477470517158508, 0.11884838342666626, -0.021980594843626022, -0.17500635981559753, 0.22421428561210632, -0.14598211646080017, 0.24946598708629608, 0.18115611374378204, 0.2915932536125183, 0.2477516531944275, -0.2751612663269043, -0.008246935904026031, 0.06623079627752304, 0.016224578022956848, 0.2081095278263092, -0.31575146317481995, 0.17483317852020264, 0.0749877393245697, 0.10833276063203812, -0.10479274392127991, -0.11581116914749146, 0.3235091269016266, 0.05457960069179535, -0.0948987752199173, 0.12705205380916595, -0.19759246706962585, -0.14941969513893127, -0.06540991365909576, -0.08926288783550262, -0.05293303355574608, 0.026162240654230118, 0.3333378732204437, -0.03328925371170044, 0.16288897395133972, 0.18775048851966858, 0.19653405249118805, -0.10169865190982819, -0.13917988538742065, -0.016941875219345093, 0.07193799316883087, -0.07206916809082031, 0.14179743826389313, 0.2965695261955261, -0.15362310409545898, 0.21459436416625977, 0.011774718761444092, 0.05313990265130997, 0.022748567163944244, -0.08996054530143738, -0.0020374879240989685, 0.23732507228851318, -0.12184617668390274, 0.023188136518001556, -0.07825428247451782, -0.20072905719280243, -0.04732993617653847, -0.2776864171028137, -0.13556990027427673, 0.3456801176071167, -0.007960371673107147, -0.08296117931604385, 0.33326536417007446, -0.08928008377552032, -0.11178487539291382, 0.07520429790019989, 0.6522990465164185, 0.10525386780500412, -0.14940673112869263, -0.012489914894104004, 0.12183640897274017, -0.5117616057395935, -0.08225136250257492, 0.15446080267429352, 0.15376845002174377, -0.17832043766975403, -0.17356489598751068, 0.13697394728660583, 0.05026962235569954, 0.09504342079162598, 0.16648967564105988, 0.14061367511749268, 0.14407294988632202, -0.14383824169635773, 0.36822956800460815, 0.11320139467716217, -0.2234625220298767, -0.2475328892469406, -0.03029346652328968, -0.16984978318214417, -0.08154971897602081, 0.24415113031864166, 0.1658104956150055, 0.3559519946575165, -0.05547013506293297, 0.1300061047077179, 0.1874435395002365, 0.003879636526107788, -0.06747905164957047, -0.2416631579399109, -0.207752987742424, -0.19628171622753143, 0.2166883945465088, -0.07965656369924545, 0.026988741010427475, 0.010064568370580673, 0.22761842608451843, 0.2825477719306946, -0.15273721516132355, 0.31405478715896606, 0.08151157200336456, 0.31976640224456787, 0.0782916247844696, 0.17774394154548645, -0.5899118781089783, 0.23973241448402405, -0.2106177806854248, -0.09541052579879761, 0.5726773142814636, -0.14580044150352478, -0.3300536870956421, -0.16025717556476593, -0.23734980821609497, 0.03239539638161659, 0.12301687896251678, 0.35297203063964844, 0.45235109329223633, 0.06818124651908875, 0.12423411011695862, -0.07140430808067322, 0.2873800992965698, 0.05655897408723831, -0.1308623105287552, -0.272257924079895, 0.043838806450366974, -0.07347294688224792, -0.2239454984664917, 0.29744499921798706, 0.32552194595336914, -0.15483923256397247, 0.09115997701883316, 0.12028394639492035, 0.22557178139686584, -0.049788814038038254, 0.023362545296549797, -0.15308989584445953, 0.09252265095710754, 0.13621076941490173, -0.4039679765701294, -0.02008846588432789, 0.16218656301498413, 0.08430945873260498, -0.0932028517127037, -0.00505433976650238, 0.11343901604413986, 0.4156908094882965, 0.028998373076319695, 0.27486011385917664, 0.099829763174057, 0.07272565364837646, -0.06466298550367355, -0.2692371606826782, -0.08808644860982895, 0.23969314992427826, -0.20247045159339905, 0.0311080664396286, -0.13338536024093628, -0.43742647767066956, 0.09217173606157303, 0.29568779468536377, -0.051809970289468765, 0.19796715676784515, 0.1582343578338623, -0.28275221586227417, 0.08483321964740753, -0.03430406376719475, -0.30787578225135803, -0.023096494376659393, 0.38939476013183594, 0.09230106323957443, -0.08831649273633957, -0.06540035456418991, 0.0106029212474823, 0.09369691461324692, 0.1997481882572174, -0.2894544005393982, 0.24927175045013428, 0.1272999793291092, -0.13507328927516937, -0.5136489272117615, -0.15540006756782532, -0.29103875160217285, 0.05270260572433472, -0.16084134578704834, -0.1769309937953949, 0.01880030333995819, -0.20575925707817078, 0.005928508937358856, -0.16778583824634552, 0.038699422031641006, 0.05474882572889328, 0.3567638397216797, 0.23623766005039215, -0.11754021048545837, 0.09634172916412354, -0.07783673703670502, 0.17246955633163452, 0.033588990569114685, -0.08172091841697693, -0.11402209103107452, -0.007858313620090485, -0.006551964208483696, 0.24027928709983826, 0.19581195712089539, 0.20844754576683044, 0.4720807373523712, -0.09747636318206787, 0.042801037430763245, -0.08279585093259811, -0.11795420199632645, 0.26761165261268616, -0.2731461226940155, 0.15027154982089996, 0.12842999398708344, -0.23018233478069305, -0.16928136348724365, -0.5684155821800232, 0.02879071980714798, -0.1986542046070099, -0.3813607692718506, 0.10551378130912781, -0.032383132725954056, -0.05636008456349373, -0.13989993929862976, -0.573769748210907, -0.16266170144081116, -0.5080015063285828, 0.42977720499038696, 0.30658650398254395, 0.12781062722206116, 0.2718541622161865, -0.1408851146697998, 0.16211886703968048, 0.0003247596323490143, 0.48084089159965515, -0.2825733721256256, -0.10734939575195312, 0.21775087714195251, -0.33858856558799744, -0.24481141567230225, -0.32681626081466675, -0.1765272170305252, 0.17401766777038574, 0.0678536593914032, -0.2126874476671219, -0.06785467267036438, -0.08936624228954315, 0.20512567460536957, 0.02193763107061386, -0.03298157453536987, 0.29718825221061707, 0.2930377721786499, -0.22297780215740204, -0.17002752423286438, 0.012998469173908234, 0.23246188461780548, -0.07470200955867767, 0.060560282319784164, 0.256390780210495, -0.04548683390021324, -0.053908780217170715, 0.3795763850212097, 0.1761092245578766, -0.038113661110401154, 0.3560260534286499, -0.06587573140859604, 0.12788493931293488, -0.049506817013025284, -0.25655877590179443, 0.1938411295413971, 0.029687725007534027, 0.04292561113834381, 0.5046951174736023, 0.0830397754907608, -0.12171778827905655, -0.12120306491851807, 0.032974354922771454, -0.2757848799228668, -0.27157390117645264, 0.03812050819396973, -0.17543861269950867, 0.22038663923740387, -0.20522308349609375, 0.07568305730819702, -0.026229411363601685, -0.1750725358724594, 0.29108211398124695, -0.09162880480289459, 0.045307502150535583, -0.15279901027679443, -0.3904540538787842, 0.09527634084224701, -0.47698357701301575, 0.1211918517947197, 0.3720579147338867, 0.1703334003686905, -0.12727060914039612, -0.34100258350372314, -0.1047668606042862, 0.14636212587356567, 0.08023250102996826, -0.3026004731655121, -0.10442829132080078, 0.1990421712398529, 0.21790239214897156, -0.09600197523832321, 0.3850284814834595, -0.4127282500267029, -0.1140463724732399, 0.14582964777946472, 0.1484435796737671, -0.3244854211807251, 0.13591760396957397, 0.14037829637527466, 0.24017822742462158, 0.037251196801662445, -0.09195941686630249, 0.06767469644546509, -0.2784249782562256, -0.21202459931373596, 0.07963982224464417, 0.1409570276737213, 0.07515154778957367, 0.060938186943531036, 0.017162561416625977, 0.16171713173389435, 0.015729650855064392, 0.6219585537910461, 0.1262020319700241, 0.2305983006954193, 0.03457006439566612, 0.3014827072620392, 0.17986857891082764, 0.06779369711875916, -0.03502451628446579, 0.3268321752548218, 0.03597181662917137, -0.3196762502193451, -0.03075750358402729, -0.3156142234802246, 0.33626097440719604, 0.010558847337961197, 0.16935263574123383, 0.2757956087589264, 0.0207291841506958, 0.04803407937288284, -0.22430135309696198, 0.22894370555877686, 0.24759671092033386, 0.12155286967754364, -0.25564485788345337, -0.3392484784126282, 0.2284744828939438, -0.15065112709999084, -0.1627786010503769, 0.1830211728811264, -0.08998743444681168, -0.3301509916782379, 0.5516896843910217, -0.09426465630531311, 1.0282044410705566, -0.05904453620314598, 0.07681937515735626, 0.10523857921361923, 0.2488802820444107, 0.12122304737567902, -0.3813135027885437, 0.13503238558769226, -0.062169112265110016, -0.10110920667648315, -0.06956136226654053, 0.13100755214691162, -0.280592679977417, 0.208765909075737, -0.6060696244239807, -0.12675784528255463, 0.22543610632419586, 0.13574744760990143, 0.04675357788801193, 0.4178180694580078, -0.21072448790073395, -0.5592289566993713, -0.2329220324754715, 0.26713311672210693, 0.05963581055402756, 0.15500307083129883, 0.3905976712703705, -0.16157248616218567, 0.01165773719549179, -0.13911817967891693, -0.40640467405319214, -0.0549846850335598, -0.36893796920776367, -0.23099175095558167, -0.19445712864398956, -0.23076893389225006, 0.2400178611278534, 0.26232287287712097, 0.32074493169784546, 0.3633084297180176, -0.24770137667655945, -0.1912378966808319, 0.2563919723033905, -0.09425697475671768, 0.022047679871320724, 0.06942112743854523, 0.28424909710884094, -0.12925469875335693, -0.16181626915931702, 0.25730034708976746, 0.26582789421081543, -0.08590752631425858, -0.18152180314064026, -0.2416182905435562, 0.10665566474199295, -0.41681134700775146, 0.1245807483792305, 0.16389282047748566, -0.315711110830307, -0.19938507676124573, 0.2443884164094925, 0.18668635189533234, -0.3711587190628052, 0.11895827949047089, 0.20779730379581451, -0.05006800591945648, -0.15994347631931305, 0.22266928851604462, 0.26228785514831543, -0.16925331950187683, 0.3335680067539215, 0.1494542360305786, -0.22389796376228333, -0.3878358006477356, -0.30326640605926514, -0.16982398927211761, -0.18355107307434082, 0.015425778925418854, 0.15174658596515656, -0.21164663136005402, -0.06637729704380035, 0.2987138032913208, 0.10459165275096893, 0.06416068971157074, -0.2635016441345215, 0.014531075954437256, -0.5142242908477783, 0.28436902165412903, 0.16385626792907715, 0.3496056795120239, -0.01922665536403656, 0.18846052885055542, -0.002420976758003235, -0.04506026208400726, -0.5011372566223145, -0.2810207009315491, -0.28628411889076233, 0.2542150020599365, 0.21587815880775452, -0.2318921536207199, 0.2132062315940857, 0.04314769431948662, 0.3190135657787323, 0.14156684279441833, -0.031784333288669586, -0.2971875071525574, -0.17712369561195374, 0.07874573022127151, -0.01487650629132986, 0.056957826018333435, -0.04456833377480507, 0.04148217290639877, -0.13269910216331482, -0.09376108646392822, -0.04204428195953369, 0.380398154258728, 0.011143259704113007, 0.23731175065040588, 0.18086197972297668, -0.0908321887254715, 0.2514035701751709, -0.0949711799621582, -0.012563027441501617, 0.10850447416305542, 0.11664699763059616, 0.005060706287622452, -0.0760425478219986, -0.12885726988315582, 0.2272396683692932, 0.32434988021850586, 0.32109779119491577, -0.203987255692482, 0.1382920891046524, 0.049783702939748764, -0.05817491561174393, 0.41746145486831665, 0.3369734287261963, 0.15876565873622894, -0.04499131068587303, -0.027081869542598724, 0.2871132791042328, 0.3827195465564728, -0.24869418144226074, 0.038730863481760025, -0.3137325048446655, -0.27047860622406006, 0.3703235685825348, 0.33110129833221436, 0.002677328884601593, -0.1017884910106659, 0.35402777791023254, -0.05621316656470299, -0.09273754805326462, -0.17351782321929932, -0.10180139541625977, 0.2736479341983795, 0.23078182339668274, -0.17021486163139343, 0.041885435581207275, 0.03155309706926346, 0.15826238691806793, 0.24948064982891083, -0.25797683000564575, 0.1877669394016266, -0.1977006196975708, 0.108263298869133, 0.33826062083244324, 0.13664710521697998, -0.06762959808111191, 0.18597334623336792, 0.06567341834306717, 0.37256520986557007, 0.004423711448907852, 0.7724084258079529, 0.010954897850751877, 0.045698802918195724, 0.043355248868465424, 0.22059015929698944, -0.11918111890554428, -0.1363265961408615, -0.2501596212387085, -0.2826456129550934, -0.1302422732114792, -0.2654411792755127, 0.1874384880065918, -0.08116721361875534, 0.12886731326580048, 0.04959357529878616, 0.09234090149402618, -0.2246062159538269, -0.17784848809242249, -0.16490623354911804, 0.42229411005973816, -0.274043470621109, 0.2454628348350525, 0.12571512162685394, 0.08393529057502747, 0.21431513130664825, 0.3574661910533905, 0.2837618291378021, -0.00007071439176797867, -0.33148548007011414, 0.35977503657341003, -0.3336437940597534, -0.1156696304678917, -0.2068922072649002, 0.365416944026947, 0.3015882968902588, 0.128087118268013, 0.313504159450531, 0.2218196541070938, -0.22733572125434875, -0.056446194648742676, 0.07466919720172882, -0.25507476925849915, -0.06500458717346191, 0.17653203010559082, 0.05822451412677765, -0.1135057657957077, -0.4047631621360779, -0.2626592814922333, -0.5181840062141418, 0.11703938245773315, 0.3340691030025482, -0.07819325476884842, 0.0896386206150055, -0.1309981793165207, 0.1565670371055603, 0.01636654883623123, 0.12159427255392075, 0.4205203652381897, 0.26267051696777344, 0.07875391840934753, -0.2565971314907074, -0.3723417818546295, 0.04458533972501755, 0.18579980731010437, -0.1927730292081833, -0.12865374982357025, 0.06975457072257996, 0.40654656291007996, 0.331304669380188, -0.18914581835269928, -0.17895832657814026, -0.5281738638877869, 0.26629775762557983, -0.21419377624988556, 0.10763988643884659, -0.07345543801784515, 0.26442229747772217, 0.13409239053726196, -0.17488762736320496, -0.17157532274723053, 0.14855819940567017, 0.20264336466789246, -0.3142874240875244, 0.16653838753700256, -0.1248750165104866, 0.054920535534620285, 0.017008360475301743, -0.01731097139418125, 0.36023059487342834, -0.5139234066009521, -0.10951929539442062, -0.015457309782505035, -0.1967187523841858, -0.31905847787857056, 0.03589333966374397, 0.17548149824142456, 0.4160301089286804, -0.05985179916024208, -0.07918809354305267, -0.08588600158691406, 0.19167925417423248, 0.24379992485046387, 0.03174758702516556, -0.1619948446750641, 0.1378452181816101, -0.23869869112968445, -0.01640625111758709, -0.0654052123427391, 0.3601765036582947, -0.02694062516093254, -0.048353686928749084, -0.34285974502563477, -0.6533913612365723, 0.3332827091217041, -0.1210150271654129, -0.2877953052520752, 0.035431236028671265, 0.20700135827064514, 0.04980839043855667, -0.0692186951637268, -0.7117741107940674, -0.04916635900735855, 0.36911478638648987, 0.10504370927810669, -0.006304815411567688, 0.27046599984169006, -0.06642721593379974, -0.08872245252132416, -0.16514502465724945, 0.40058252215385437, 0.28275391459465027, -0.10013425350189209, -0.09855515509843826, -0.4512084722518921 ]
https://github.com/huggingface/datasets/issues/1849
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!
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).
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.24184945225715637, -0.3422914147377014, -0.14152635633945465, 0.07103137671947479, -0.03408171236515045, -0.09505584090948105, 0.1323649287223816, 0.13229098916053772, -0.3182583153247833, 0.21849307417869568, -0.34164854884147644, 0.18533466756343842, -0.22746425867080688, 0.21728253364562988, 0.1103413999080658, -0.2743069529533386, -0.09841705858707428, 0.07613395899534225, 0.040977634489536285, -0.015481777489185333, 0.0028426796197891235, 0.17515383660793304, -0.11235620081424713, -0.22324013710021973, -0.030483614653348923, -0.17091773450374603, -0.01046561449766159, -0.1952396184206009, -0.252142071723938, -0.43609094619750977, -0.20439714193344116, 0.16321608424186707, -0.0707426443696022, 0.47817710041999817, -0.00009880100697046146, -0.043250471353530884, 0.3008357584476471, -0.233577698469162, -0.20983374118804932, -0.08556994050741196, 0.1470595896244049, 0.0775863453745842, -0.2077464461326599, 0.013736993074417114, -0.36321818828582764, 0.08198556303977966, 0.09919552505016327, -0.11893633008003235, 0.14555147290229797, 0.3298052251338959, 0.30280613899230957, 0.21057553589344025, 0.18437828123569489, -0.1484053134918213, 0.2919992506504059, 0.125944584608078, -0.2449662983417511, -0.008054029196500778, 0.3158087730407715, 0.2650028169155121, -0.09714727848768234, 0.357487291097641, -0.06246546283364296, -0.011533308774232864, 0.0887947529554367, -0.05627969652414322, -0.172531858086586, -0.28797727823257446, -0.09537774324417114, 0.20196481049060822, 0.6051996946334839, -0.35223326086997986, -0.3222529888153076, -0.15414661169052124, 0.11140492558479309, -0.25983595848083496, 0.04262448847293854, 0.0666833445429802, -0.34436747431755066, 0.2692182660102844, -0.10051031410694122, -0.11660795658826828, -0.10490240156650543, 0.13865306973457336, 0.16674552857875824, -0.0524287149310112, -0.1955408751964569, -0.22955383360385895, 0.04900629073381424, -0.18060773611068726, -0.3074800968170166, 0.12587985396385193, 0.06007814407348633, 0.02104458585381508, 0.01649809442460537, -0.26957210898399353, 0.06441493332386017, -0.010356787592172623, 0.1720125377178192, 0.27211329340934753, 0.20652909576892853, 0.27262425422668457, -0.19455254077911377, 0.014900406822562218, 0.03284604474902153, -0.09673333168029785, -0.013960644602775574, -0.2702674865722656, 0.23396076261997223, -0.029196979478001595, 0.07165197283029556, -0.033295199275016785, 0.09325885772705078, 0.25287678837776184, -0.030330657958984375, -0.18926407396793365, -0.008638713508844376, -0.13492229580879211, -0.1671449840068817, -0.007682636380195618, -0.10766047239303589, -0.031766392290592194, 0.08060550689697266, 0.30811697244644165, -0.016018908470869064, 0.18873490393161774, 0.028074875473976135, 0.29082560539245605, -0.1090199202299118, -0.15775629878044128, -0.04417724534869194, 0.0036542657762765884, 0.06935738772153854, 0.28897133469581604, 0.3754380941390991, 0.01597059890627861, 0.305830180644989, -0.01089777797460556, 0.08079883456230164, 0.09819571673870087, -0.005963493138551712, -0.04271699860692024, 0.2109496295452118, 0.03022923693060875, 0.1373908966779709, -0.02894403040409088, -0.18011754751205444, -0.09467334300279617, -0.2171856015920639, -0.11171695590019226, 0.15747976303100586, -0.006221696734428406, -0.16788119077682495, 0.31038764119148254, -0.03687763214111328, -0.22318574786186218, 0.06277801096439362, 0.5657603144645691, 0.1443600356578827, -0.24896135926246643, 0.011632323265075684, 0.2420760989189148, -0.5268596410751343, 0.01701725274324417, 0.12853243947029114, 0.23612743616104126, -0.11031950265169144, -0.18066143989562988, 0.028469402343034744, 0.17337538301944733, 0.20712168514728546, 0.37994641065597534, 0.06892558187246323, 0.1884656697511673, -0.060965217649936676, 0.2828649580478668, 0.027242761105298996, -0.29479289054870605, -0.300678014755249, -0.02058972604572773, -0.2514829933643341, -0.02256687358021736, 0.1542675793170929, 0.10468268394470215, 0.18747074902057648, -0.09376102685928345, 0.21203549206256866, -0.04559191316366196, 0.019175531342625618, -0.007249966263771057, -0.2553143799304962, -0.18715262413024902, -0.1492055058479309, 0.16075783967971802, -0.0763445794582367, -0.09399179369211197, 0.02107994817197323, 0.11628030240535736, 0.26679015159606934, -0.05166881904006004, 0.29202961921691895, 0.20325112342834473, 0.3211774528026581, -0.07045119255781174, 0.15485849976539612, -0.4971802830696106, 0.36126214265823364, -0.1764654815196991, -0.0748249813914299, 0.5619052052497864, -0.16173198819160461, -0.31721773743629456, -0.23742908239364624, -0.15712863206863403, 0.07724921405315399, 0.10639844834804535, 0.3205333650112152, 0.269374817609787, 0.006287865340709686, 0.24782271683216095, -0.056322675198316574, 0.32351502776145935, -0.04774611443281174, -0.08099990338087082, -0.10751406848430634, -0.07027271389961243, -0.10817479342222214, -0.19824017584323883, 0.21347449719905853, 0.3048526346683502, -0.2491968274116516, 0.1001492291688919, 0.11286838352680206, 0.20631495118141174, 0.003275226801633835, 0.1444820612668991, -0.09718788415193558, -0.015565082430839539, 0.3050768971443176, -0.5114293694496155, -0.09849927574396133, 0.11172182857990265, 0.16531695425510406, -0.10061560571193695, -0.05156770721077919, 0.06793087720870972, 0.4120126962661743, -0.2124268263578415, 0.04809120297431946, 0.010254085063934326, 0.16419166326522827, -0.00018465518951416016, -0.1825164556503296, -0.13450638949871063, 0.21800345182418823, 0.04898359626531601, 0.08487897366285324, -0.10276143252849579, -0.28986963629722595, 0.08874467015266418, 0.1933974027633667, -0.0700596421957016, 0.27086135745048523, 0.13305293023586273, -0.2582092583179474, -0.015085820108652115, -0.02436874248087406, -0.23924139142036438, 0.06982729583978653, 0.37994489073753357, 0.1702331155538559, -0.09908000379800797, 0.06378816813230515, -0.12425743788480759, 0.17395970225334167, 0.17812998592853546, -0.3330642580986023, 0.22771206498146057, 0.162079855799675, 0.001715412363409996, -0.5846608877182007, -0.01863187924027443, -0.1945095956325531, 0.04776742309331894, -0.22024977207183838, -0.28042659163475037, 0.08223956823348999, -0.14020119607448578, 0.03971272334456444, -0.034718528389930725, -0.016056230291724205, 0.07515039294958115, 0.3684800863265991, 0.2897176444530487, -0.11196734756231308, 0.08002660423517227, -0.0768052488565445, 0.3573744297027588, 0.05504962056875229, -0.08020389825105667, -0.18604877591133118, -0.12917476892471313, -0.0031823264434933662, 0.25294312834739685, 0.18038582801818848, 0.05368947982788086, 0.4089682102203369, -0.17186453938484192, 0.23514172434806824, -0.06996694952249527, -0.23053081333637238, 0.2565394639968872, -0.3240991532802582, 0.1748986691236496, 0.06806281208992004, -0.07923539727926254, -0.3135063052177429, -0.587350070476532, -0.045759133994579315, -0.25326329469680786, -0.37231141328811646, 0.010399281978607178, -0.20134878158569336, -0.15472745895385742, -0.2350601702928543, -0.43067672848701477, -0.14914755523204803, -0.4586872458457947, 0.43649303913116455, 0.20456373691558838, -0.09679709374904633, 0.3382941782474518, -0.23409609496593475, 0.18165813386440277, -0.02091997303068638, 0.530971884727478, -0.38526496291160583, -0.3563809096813202, 0.21058496832847595, -0.378566175699234, -0.3260812759399414, -0.2777753174304962, -0.08220664411783218, 0.18236076831817627, 0.028490759432315826, -0.2786486744880676, -0.045653268694877625, -0.16037973761558533, 0.21617715060710907, 0.07454118132591248, 0.06275921314954758, 0.1909133493900299, 0.21423012018203735, -0.2686978876590729, -0.11287927627563477, -0.04054749757051468, 0.13609734177589417, 0.07163195312023163, 0.1438775211572647, 0.12996405363082886, -0.13506542146205902, 0.022693634033203125, 0.556335985660553, 0.23717933893203735, 0.01182030700147152, 0.4369504153728485, -0.016248976811766624, 0.30770522356033325, -0.18990033864974976, -0.19969400763511658, 0.26422974467277527, 0.07332757115364075, 0.04866021126508713, 0.46266505122184753, 0.14905095100402832, -0.3474372923374176, -0.15629640221595764, -0.13987082242965698, -0.24326962232589722, -0.3702930510044098, -0.050472553819417953, -0.054760515689849854, 0.2536337077617645, -0.10289980471134186, 0.09045858681201935, -0.12875869870185852, -0.23423121869564056, 0.2971388101577759, -0.07439874112606049, -0.00816558301448822, -0.21439355611801147, -0.4703221321105957, -0.02358158677816391, -0.5126327276229858, 0.08935044705867767, 0.4468321204185486, 0.22003428637981415, -0.26833248138427734, -0.3191055655479431, -0.059253569692373276, 0.1669139266014099, 0.15646065771579742, -0.3530780076980591, -0.14647480845451355, 0.153150275349617, 0.27433204650878906, -0.20082132518291473, 0.4838937222957611, -0.3385244607925415, -0.09983125329017639, 0.07667756080627441, 0.12654414772987366, -0.25305846333503723, 0.18956997990608215, 0.1489555537700653, 0.23155494034290314, 0.06222622096538544, -0.06105775013566017, 0.08712141215801239, -0.4036608934402466, -0.13098721206188202, 0.2098190039396286, 0.23389431834220886, 0.16437554359436035, 0.2413669228553772, 0.04847099632024765, 0.16330793499946594, 0.0364832803606987, 0.4714268445968628, 0.197090283036232, 0.1634083390235901, 0.2929779887199402, 0.2803603410720825, 0.17417708039283752, -0.05315170809626579, -0.06166301667690277, 0.269021600484848, 0.021143559366464615, -0.23797906935214996, -0.15629716217517853, -0.3631966710090637, 0.27508312463760376, 0.11267401278018951, 0.29546818137168884, 0.2113281935453415, 0.004640484228730202, 0.009016571566462517, -0.298265665769577, 0.2084503322839737, 0.15847113728523254, 0.03639700263738632, -0.3152126669883728, -0.156794935464859, 0.06354165077209473, 0.03785182535648346, -0.03350898623466492, 0.27423110604286194, 0.09553658217191696, -0.22515156865119934, 0.5279747247695923, -0.09918512403964996, 1.049473524093628, -0.02316306158900261, 0.11429492384195328, 0.20589286088943481, 0.16534832119941711, 0.029746558517217636, -0.2530486583709717, 0.05831630900502205, 0.10285574197769165, -0.07053081691265106, -0.005825195461511612, 0.17214477062225342, -0.20542603731155396, 0.03660114109516144, -0.49677935242652893, -0.28160592913627625, 0.2530694901943207, 0.12010189890861511, 0.053974591195583344, 0.3480636477470398, -0.3170424699783325, -0.4831201136112213, -0.17066554725170135, 0.3155546188354492, 0.18843238055706024, 0.11580368876457214, 0.25702965259552, -0.12546628713607788, 0.013030998408794403, -0.1530570387840271, -0.5004335641860962, -0.1846950650215149, -0.34754830598831177, -0.10613497346639633, -0.1295693814754486, -0.33799660205841064, 0.23498234152793884, 0.2575417757034302, 0.44675958156585693, 0.30000945925712585, -0.4185538589954376, 0.09336121380329132, 0.156378835439682, -0.08427217602729797, 0.08151164650917053, 0.06697453558444977, 0.27129748463630676, -0.1806642860174179, -0.18902158737182617, 0.20537544786930084, 0.11329685896635056, -0.14876089990139008, -0.16999222338199615, -0.12867842614650726, 0.024422690272331238, -0.2915288209915161, 0.1959647238254547, 0.17398124933242798, -0.21488650143146515, -0.21018414199352264, 0.2649528682231903, 0.11412391811609268, -0.19108444452285767, 0.16380280256271362, 0.0705646276473999, -0.15025591850280762, -0.13235384225845337, 0.30768731236457825, 0.1299341917037964, -0.07643052935600281, 0.29301339387893677, 0.05301845073699951, -0.2316916584968567, -0.42508095502853394, -0.04152572900056839, -0.27921754121780396, -0.20171159505844116, 0.044526997953653336, 0.2725234031677246, -0.1493815779685974, 0.037769146263599396, 0.3083541691303253, 0.07113046944141388, -0.17822353541851044, -0.18621714413166046, 0.11855714023113251, -0.527872622013092, 0.25095003843307495, 0.05872954800724983, 0.2626577615737915, 0.1905261129140854, 0.22677427530288696, 0.04896596074104309, -0.1448144167661667, -0.5076662302017212, -0.21799907088279724, -0.23652449250221252, 0.15226233005523682, 0.10292917490005493, -0.33039841055870056, 0.21653757989406586, -0.031276606023311615, 0.29404592514038086, 0.1068747490644455, -0.0670449286699295, -0.3291208744049072, -0.17182227969169617, 0.08250521123409271, -0.06094798818230629, -0.0372561514377594, 0.06753665208816528, 0.04612868279218674, -0.1900002360343933, -0.07984790205955505, 0.08842044323682785, 0.3399565517902374, 0.052549540996551514, 0.2045460343360901, 0.05481636896729469, 0.035156454890966415, 0.08850720524787903, -0.07933676242828369, 0.03933677449822426, 0.12436619400978088, 0.06937158107757568, -0.06365209817886353, -0.023176284506917, -0.14757399260997772, 0.2409808188676834, 0.35831186175346375, 0.3597868084907532, -0.17917922139167786, 0.14445087313652039, 0.011082807555794716, -0.04648730158805847, 0.42434439063072205, 0.30721530318260193, 0.13918346166610718, -0.06906020641326904, 0.009376011788845062, 0.3417516350746155, 0.37569403648376465, -0.27302855253219604, -0.0133553147315979, -0.22093528509140015, -0.2101660668849945, 0.37125441431999207, 0.23294635117053986, 0.02740044891834259, -0.14024657011032104, 0.22001932561397552, -0.03392047435045242, 0.0619056336581707, -0.26465123891830444, -0.14782732725143433, 0.1841287910938263, 0.26762720942497253, -0.13142231106758118, -0.027513455599546432, 0.0526321679353714, 0.17269842326641083, 0.15478570759296417, -0.037827491760253906, 0.30559006333351135, -0.12123063951730728, 0.2179776281118393, 0.26083463430404663, 0.10167950391769409, -0.02204849384725094, 0.05918276309967041, -0.03344159200787544, 0.3391270637512207, 0.13043347001075745, 0.734674334526062, -0.028430111706256866, -0.16054609417915344, -0.14130474627017975, 0.12004034221172333, -0.07490593194961548, -0.1871407926082611, -0.3938406705856323, -0.16893500089645386, -0.02013079822063446, -0.22072981297969818, 0.1600557565689087, 0.09200511127710342, 0.060878537595272064, 0.04112779349088669, -0.0018080472946166992, -0.4389412999153137, -0.23924745619297028, -0.1338045597076416, 0.5131223201751709, -0.2622467875480652, 0.15531262755393982, 0.17380981147289276, -0.114336296916008, 0.1716640740633011, 0.44021129608154297, 0.36613646149635315, -0.21684691309928894, -0.22350117564201355, 0.2903326153755188, -0.3593679666519165, -0.11056912690401077, -0.23416069149971008, 0.4193156957626343, 0.33140525221824646, 0.04628805071115494, 0.29525768756866455, 0.24430851638317108, -0.20060387253761292, -0.10427950322628021, 0.19254249334335327, -0.17966270446777344, -0.17949599027633667, 0.11840935796499252, -0.1055968850851059, -0.07571591436862946, -0.3725278973579407, -0.2455047369003296, -0.3838869035243988, 0.23198015987873077, 0.33484911918640137, -0.20792099833488464, 0.08558253198862076, -0.1815820038318634, 0.16078099608421326, 0.12193330377340317, 0.29532134532928467, 0.3858645260334015, 0.09111680835485458, 0.1655747890472412, -0.21646298468112946, -0.40147894620895386, 0.04405355453491211, 0.17567427456378937, 0.11830433458089828, -0.19427436590194702, -0.0400501973927021, 0.37527844309806824, 0.21826699376106262, -0.18992361426353455, -0.221215158700943, -0.5325391888618469, 0.14689083397388458, -0.28211525082588196, 0.2319544106721878, -0.10069632530212402, 0.2195289433002472, 0.08636260032653809, -0.12299273908138275, -0.05462561547756195, 0.11866475641727448, 0.2042074203491211, -0.3010462522506714, 0.051388293504714966, -0.10290859639644623, 0.09876279532909393, 0.12828299403190613, -0.03322666138410568, 0.29837173223495483, -0.4984865188598633, -0.06369367986917496, -0.1608520746231079, -0.1427333503961563, -0.20073063671588898, 0.07257289439439774, 0.14835798740386963, 0.370121031999588, -0.12529528141021729, -0.037033699452877045, 0.1789204329252243, 0.23037005960941315, 0.20462799072265625, 0.1254645735025406, -0.19384145736694336, 0.13635535538196564, -0.21219834685325623, -0.03499043732881546, -0.12036971002817154, 0.363845556974411, -0.08562441170215607, -0.015538401901721954, -0.19828937947750092, -0.654686450958252, 0.34856635332107544, -0.09600725769996643, -0.24562901258468628, 0.06189284846186638, 0.15637049078941345, -0.08879680931568146, -0.053787000477313995, -0.6362179517745972, 0.00212976336479187, 0.291018545627594, 0.06208490580320358, -0.16287827491760254, 0.33172374963760376, 0.039294321089982986, -0.2380175143480301, -0.18697820603847504, 0.5860604643821716, 0.17302080988883972, -0.09888562560081482, -0.044994767755270004, -0.27930378913879395 ]
https://github.com/huggingface/datasets/issues/1844
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)
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!
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.2011132836341858, 0.16045275330543518, -0.04834141954779625, -0.20894046127796173, -0.13016581535339355, 0.2428107112646103, 0.27112480998039246, 0.25712406635284424, -0.2969913184642792, -0.03867379575967789, -0.31456395983695984, 0.24536383152008057, 0.21585606038570404, -0.07630865275859833, 0.08549898862838745, -0.33255723118782043, 0.1179942935705185, 0.002580735832452774, 0.5615065097808838, -0.20760546624660492, -0.34362590312957764, 0.19639702141284943, 0.012337416410446167, -0.12730401754379272, -0.19219854474067688, 0.30858075618743896, -0.4058002531528473, 0.04762406274676323, 0.05754461884498596, -0.5313263535499573, 0.023193687200546265, 0.5336877703666687, 0.2939295768737793, 0.06753109395503998, -0.00011404246470192447, -0.17198482155799866, 0.2067975550889969, -0.23935911059379578, -0.2624622583389282, -0.07093269377946854, 0.08785241097211838, -0.3210977017879486, -0.23366451263427734, -0.3475590944290161, 0.0243871808052063, 0.002920873463153839, 0.0848526656627655, -0.3639575242996216, -0.193242147564888, 0.11321835964918137, 0.10027500241994858, -0.003047861158847809, 0.013768412172794342, -0.12019626796245575, 0.5767489075660706, -0.0308852382004261, 0.18409138917922974, 0.3108730912208557, 0.5937849283218384, 0.20887330174446106, 0.1791096329689026, 0.39530161023139954, -0.4267849028110504, -0.4061583876609802, -0.22259333729743958, -0.05905451998114586, -0.044415924698114395, -0.27659177780151367, -0.0753084272146225, 0.14901818335056305, 0.4300263822078705, -0.11632019281387329, -0.7273464202880859, -0.4193946123123169, 0.03713184967637062, -0.20229272544384003, -0.2925472855567932, 0.4444059431552887, 0.30253952741622925, 0.3318835496902466, 0.1208859533071518, -0.13085581362247467, 0.08795513957738876, -0.07989684492349625, 0.3085595667362213, 0.18706640601158142, 0.24938245117664337, -0.1455201804637909, 0.11236406862735748, -0.1316787749528885, -0.24918216466903687, 0.19706326723098755, -0.4026862680912018, 0.03559126704931259, -0.009151902049779892, -0.11931225657463074, -0.1048695519566536, -0.48676297068595886, -0.08578207343816757, -0.036076001822948456, 0.05946050584316254, 0.08932951092720032, -0.24214324355125427, -0.10717660933732986, 0.10650656372308731, 0.29851990938186646, 0.4347003102302551, 0.20944640040397644, -0.08220471441745758, 0.04305301234126091, -0.13784080743789673, -0.040798213332891464, -0.23220127820968628, 0.2316167950630188, -0.318601131439209, 0.24694302678108215, 0.13919642567634583, 0.05571258068084717, -0.003922678530216217, 0.1390760838985443, -0.4542083144187927, -0.058622535318136215, -0.1460411250591278, 0.014532980509102345, 0.08818046003580093, 0.23709993064403534, 0.22807000577449799, 0.1176127940416336, -0.011766992509365082, -0.3454345464706421, -0.0980367362499237, -0.022603541612625122, 0.052541881799697876, 0.07269015163183212, -0.10430146753787994, -0.3754671812057495, 0.3222716450691223, -0.22430342435836792, -0.15497756004333496, -0.14108256995677948, -0.2971782982349396, 0.14998479187488556, 0.03973623365163803, -0.19256551563739777, 0.04125380516052246, 0.015070505440235138, -0.14075618982315063, -0.2130509912967682, 0.03750179708003998, 0.23652857542037964, -0.11831347644329071, -0.30880117416381836, -0.38274604082107544, 0.10784810036420822, -0.39662879705429077, -0.3141869902610779, 0.3781786262989044, 0.37225309014320374, 0.19208286702632904, -0.2534313499927521, 0.2706924080848694, 0.1460498869419098, -0.26371508836746216, 0.15512703359127045, -0.15512779355049133, 0.6188799142837524, -0.031307317316532135, -0.11252043396234512, 0.4339669644832611, 0.16162601113319397, 0.15794754028320312, 0.10298946499824524, 0.41291195154190063, 0.055335674434900284, -0.010922461748123169, 0.05937349796295166, -0.4170096516609192, -0.6448664665222168, -0.013277707621455193, 0.029700051993131638, 0.09563503414392471, 0.07732532918453217, 0.3346985876560211, -0.005737166851758957, 0.6432275176048279, -0.3904716670513153, -0.13780631124973297, -0.024826684966683388, 0.013732464984059334, 0.11155279725790024, -0.1739797592163086, -0.16759079694747925, -0.28263306617736816, 0.17587193846702576, -0.06575066596269608, 0.17168501019477844, 0.30920323729515076, 0.07023371756076813, 0.4772827625274658, -0.14974622428417206, 0.11359566450119019, 0.030829060822725296, -0.085541732609272, 0.4020220935344696, 0.1651071161031723, 0.13937918841838837, 0.1653696745634079, 0.12263549119234085, 0.10773132741451263, 0.30072689056396484, 0.1516304314136505, -0.29722604155540466, -0.007740456610918045, -0.0184936560690403, 0.18425320088863373, -0.24022869765758514, 0.0268612802028656, 0.08024565875530243, -0.1575201004743576, 0.2302197813987732, -0.32264894247055054, 0.10638900101184845, -0.1910548210144043, 0.032015446573495865, -0.2304762750864029, -0.10933348536491394, 0.19024240970611572, 0.024031605571508408, -0.024654433131217957, 0.34758618474006653, -0.13663114607334137, 0.12595802545547485, -0.13658690452575684, 0.48362812399864197, -0.0706561952829361, 0.42516395449638367, 0.1638556271791458, -0.19200994074344635, 0.34966814517974854, -0.2762998640537262, 0.13532711565494537, -0.05118624493479729, -0.17471016943454742, -0.012067310512065887, -0.06255550682544708, 0.03828401118516922, -0.03268144279718399, -0.053750067949295044, -0.030062690377235413, 0.06768989562988281, -0.17351564764976501, 0.05703885853290558, -0.5073086619377136, -0.3154095411300659, -0.042331330478191376, 0.06572316586971283, -0.4276807904243469, 0.06060667335987091, -0.1491333544254303, 0.19117014110088348, 0.15270185470581055, -0.3350789546966553, -0.01622062176465988, 0.3151859939098358, -0.030840400606393814, 0.04884447157382965, 0.0017455648630857468, 0.12141406536102295, 0.03305542469024658, 0.2184409201145172, 0.17317719757556915, 0.19669020175933838, 0.5540256500244141, -0.3212427496910095, 0.25459545850753784, 0.3876332640647888, -0.24620991945266724, -0.012335188686847687, 0.29423555731773376, 0.2663763761520386, -0.22167743742465973, 0.5088402628898621, 0.015541799366474152, 0.03001745231449604, -0.09838983416557312, 0.002421259880065918, -0.2300804853439331, -0.431488573551178, 0.045122161507606506, -0.4368389844894409, -0.0910855233669281, -0.028429098427295685, 0.20962068438529968, -0.2737997770309448, -0.3143653869628906, 0.37929460406303406, 0.2540467381477356, 0.21356382966041565, -0.14553892612457275, 0.07653766870498657, 0.05472420156002045, -0.5638499855995178, 0.256321519613266, 0.0055905841290950775, -0.16943398118019104, -0.14029645919799805, 0.10020235180854797, -0.3154427409172058, 0.09402602910995483, -0.3524281978607178, -0.22802743315696716, -0.2467198520898819, -0.04561493173241615, -0.02676689252257347, 0.44911980628967285, -0.297927588224411, -0.12813982367515564, -0.259520947933197, -0.09630484879016876, -0.042130790650844574, -0.16364288330078125, -0.28935861587524414, -0.06609886884689331, 0.0033800117671489716, -0.20846298336982727, -0.13786596059799194, -0.24109816551208496, -0.42640313506126404, 0.4629021883010864, -0.015185080468654633, 0.1453614979982376, 0.3218551278114319, -0.10292662680149078, -0.13518379628658295, -0.08635454624891281, 0.12377214431762695, -0.04718288406729698, -0.5483478903770447, 0.10134701430797577, -0.26355046033859253, -0.09495984017848969, -0.22012314200401306, -0.19924838840961456, -0.19493910670280457, -0.3742796778678894, -0.12437587976455688, 0.1396118700504303, 0.18858808279037476, -0.16563168168067932, 0.5132589340209961, 0.3430977165699005, 0.010856349021196365, 0.015213869512081146, -0.007551297545433044, -0.17368671298027039, -0.24860116839408875, 0.11736589670181274, 0.3763454556465149, 0.0978221446275711, 0.011675246059894562, 0.13486085832118988, 0.10203167796134949, 0.014149034395813942, 0.06178317219018936, 0.03846127167344093, 0.34458521008491516, 0.09133589267730713, 0.2637011706829071, 0.09939706325531006, -0.48505061864852905, 0.15641175210475922, -0.12709040939807892, 0.005801394581794739, 0.469322144985199, 0.20178624987602234, -0.22099849581718445, -0.07314030826091766, -0.4381103813648224, -0.11399386823177338, -0.15372729301452637, -0.20478594303131104, -0.3517325818538666, 0.28498807549476624, 0.2482718527317047, -0.13062134385108948, -0.23838216066360474, -0.09966292977333069, 0.09692104905843735, 0.04169207811355591, 0.5833786129951477, 0.07282769680023193, -0.08383885771036148, 0.15343354642391205, 0.29567408561706543, 0.18179570138454437, 0.48232075572013855, -0.13139507174491882, 0.34250426292419434, -0.19027745723724365, 0.07162551581859589, 0.2895001173019409, 0.3205429017543793, -0.1360015869140625, -0.32764101028442383, 0.02791241556406021, 0.05501800775527954, -0.035111892968416214, -0.1570398211479187, 0.22971805930137634, -0.393557071685791, 0.522083580493927, -0.13180148601531982, -0.08091819286346436, 0.21952660381793976, 0.461162269115448, -0.1875392496585846, -0.13226109743118286, -0.18748067319393158, -0.02389872819185257, -0.1624840348958969, -0.651824414730072, 0.013278093189001083, 0.022375822067260742, -0.20794788002967834, 0.052043989300727844, 0.01710851490497589, 0.04008053243160248, 0.23638023436069489, 0.07201194763183594, -0.14336585998535156, 0.04478791728615761, 0.5176129937171936, 0.2186274379491806, 0.1045110821723938, -0.14030584692955017, 0.16849006712436676, 0.4528072774410248, -0.4579143822193146, -0.0011403225362300873, -0.2072577029466629, 0.019594617187976837, 0.35988274216651917, 0.3509310185909271, 0.4492093622684479, 0.04550791531801224, 0.18359774351119995, -0.25120896100997925, -0.04176221042871475, -0.09711185097694397, -0.14152812957763672, -0.00017760694026947021, -0.11033620685338974, -0.6272031664848328, 0.0798151046037674, -0.3005559742450714, -0.08088408410549164, -0.6132519245147705, 0.14876092970371246, -0.07299922406673431, 0.3817274868488312, 0.3588348627090454, 0.9718950986862183, 0.11647801101207733, -0.0031877844594419003, -0.1129501461982727, 0.023306362330913544, 0.5999668836593628, 0.1288737952709198, -0.14293691515922546, -0.15463578701019287, -0.07747315615415573, 0.11473961174488068, 0.15045654773712158, -0.24651646614074707, -0.25541114807128906, -0.3286198377609253, -0.011886902153491974, 0.4563329219818115, -0.08105278015136719, 0.2831674814224243, 0.16639405488967896, 0.12661853432655334, -0.41152358055114746, 0.24087131023406982, 0.05317433923482895, -0.01611044630408287, 0.12228534370660782, 0.029314100742340088, -0.34165871143341064, 0.29916661977767944, -0.04208734259009361, -0.2901454567909241, -0.0062629058957099915, -0.022911790758371353, -0.1737760603427887, 0.008344117552042007, -0.016308292746543884, -0.03141804412007332, 0.48206841945648193, 0.403940349817276, 0.20794489979743958, 0.3259916603565216, 0.15581437945365906, 0.6453320384025574, -0.2428017407655716, 0.2031199336051941, 0.16558972001075745, 0.3280928432941437, -0.1876983940601349, -0.3354990482330322, -0.1083371490240097, 0.2084197700023651, -0.09745535254478455, -0.15421438217163086, -0.13533315062522888, -0.064401775598526, 0.12078532576560974, -0.05367232859134674, 0.15611079335212708, -0.12906140089035034, -0.2635783553123474, 0.03457045182585716, 0.06934944540262222, -0.2068421095609665, -0.10446783900260925, -0.21203309297561646, -0.20996546745300293, -0.17329682409763336, 0.25475549697875977, 0.051198530942201614, -0.3391387462615967, 0.2468515932559967, 0.4144502878189087, 0.018232353031635284, 0.11217692494392395, 0.06474283337593079, -0.4947628974914551, -0.38059431314468384, 0.08185970783233643, -0.1477157324552536, -0.10538875311613083, -0.038238540291786194, 0.003005049657076597, 0.06544356793165207, 0.2761075794696808, 0.0773884654045105, 0.061019569635391235, -0.5125802755355835, 0.1417768895626068, -0.21698841452598572, 0.19525392353534698, -0.07053770124912262, -0.4104267656803131, -0.09728053957223892, 0.08495623618364334, -0.24725905060768127, 0.11677238345146179, 0.0008763745427131653, 0.014864884316921234, 0.5638493895530701, -0.06998449563980103, -0.2095896303653717, -0.35243117809295654, 0.03041079267859459, 0.17927902936935425, 0.13760973513126373, -0.07306628674268723, -0.39107099175453186, 0.1469331532716751, -0.002844521775841713, 0.20717033743858337, -0.02674015797674656, -0.06757047027349472, 0.1064998209476471, -0.20798510313034058, -0.1104259043931961, 0.33790433406829834, -0.02057325467467308, 0.4321057200431824, 0.15074048936367035, 0.11594627797603607, 0.06842170655727386, 0.09469776600599289, 0.13313564658164978, 0.25416234135627747, -0.07556642591953278, 0.10817790031433105, -0.21997231245040894, -0.11549777537584305, 0.3980036973953247, 0.11266513168811798, 0.3249569535255432, 0.13414789736270905, 0.3710058629512787, 0.16622602939605713, 0.20870542526245117, 0.38056913018226624, -0.08650200814008713, -0.02611079439520836, -0.13075627386569977, -0.04566853120923042, 0.053992778062820435, 0.14767542481422424, -0.2826767861843109, 0.25303950905799866, -0.13120701909065247, -0.07670368999242783, -0.05607256293296814, 0.39001697301864624, 0.21056333184242249, -0.11010167002677917, 0.020421262830495834, 0.2587754428386688, 0.19198547303676605, 0.22413918375968933, 0.24550476670265198, 0.36734244227409363, 0.11780254542827606, -0.1513081192970276, -0.23452498018741608, -0.121538445353508, 0.23630161583423615, -0.08680834621191025, -0.15394312143325806, 0.0963262990117073, 0.636919379234314, 0.2987172305583954, 0.3417820930480957, 0.2459937334060669, 0.22330084443092346, 0.16315895318984985, 0.15148495137691498, 0.15541242063045502, 0.14279545843601227, 0.15424039959907532, 0.31929898262023926, -0.06369241327047348, 0.11141066998243332, 0.8260488510131836, 0.1878918558359146, -0.3855329155921936, -0.34950587153434753, 0.07462315261363983, -0.055498190224170685, -0.276877760887146, -0.014108626171946526, 0.038253918290138245, -0.40175893902778625, 0.07687284052371979, 0.01685069315135479, -0.11809414625167847, -0.4902297258377075, -0.4592854678630829, 0.5727484226226807, -0.2730342745780945, -0.08359447121620178, 0.3894762098789215, -0.059727806597948074, 0.48417696356773376, 0.6211236715316772, 0.30141308903694153, 0.05034995451569557, 0.08070838451385498, 0.4370154142379761, -0.20491741597652435, 0.017068475484848022, 0.2713010311126709, 0.2428084909915924, 0.17798851430416107, 0.13398271799087524, 0.04212377220392227, 0.03340022265911102, -0.0892525464296341, 0.0876794308423996, -0.09865826368331909, -0.01154450885951519, -0.08752600848674774, 0.4805682301521301, 0.17685170471668243, -0.22676405310630798, -0.1539187878370285, 0.28142544627189636, -0.3128555417060852, 0.1296314150094986, 0.07032151520252228, -0.059744153171777725, -0.1107533872127533, 0.09998399019241333, 0.0345616340637207, 0.12254460155963898, 0.22748135030269623, 0.5293462872505188, 0.048686061054468155, 0.04729986563324928, 0.06719344854354858, -0.3705393970012665, -0.23245522379875183, 0.3131973147392273, 0.1587543785572052, 0.1072215735912323, -0.2613010108470917, 0.500070333480835, 0.32677334547042847, -0.31887370347976685, -0.15764766931533813, -0.4547411799430847, 0.16576115787029266, -0.14729931950569153, 0.00390922836959362, 0.1736501157283783, 0.13795959949493408, 0.037780970335006714, 0.3426949381828308, -0.26427483558654785, -0.4845813512802124, -0.051927875727415085, 0.17417283356189728, 0.03939002752304077, 0.03168191760778427, -0.08917531371116638, 0.034259237349033356, -0.10339522361755371, -0.05344599857926369, -0.13808488845825195, -0.10362450778484344, -0.13959434628486633, -0.5137283802032471, -0.13486896455287933, 0.0003542490303516388, -0.1134849488735199, 0.3835107088088989, -0.026215825229883194, -0.17794404923915863, 0.15348422527313232, -0.20159964263439178, 0.06930017471313477, -0.007451631128787994, -0.5337435603141785, 0.054964445531368256, -0.03533696383237839, -0.15747462213039398, 0.22660787403583527, 0.1493808925151825, 0.13262799382209778, 0.25816842913627625, -0.4373934864997864, -0.4970724880695343, 0.5725139379501343, -0.23977772891521454, 0.1296597123146057, -0.2525007128715515, 0.277439683675766, 0.19572347402572632, 0.07596710324287415, -0.5542810559272766, 0.059611544013023376, 0.30968043208122253, 0.00618184357881546, -0.39369043707847595, 0.18284831941127777, 0.1197398453950882, -0.0011750608682632446, -0.1891242116689682, -0.3156071603298187, 0.28811609745025635, -0.1943173110485077, -0.23942944407463074, -0.020411185920238495 ]
https://github.com/huggingface/datasets/issues/1844
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.
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!
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.2530395984649658, 0.2482583224773407, -0.013386771082878113, -0.12635403871536255, -0.2649044096469879, 0.16548413038253784, 0.2578911781311035, 0.21786944568157196, -0.33855217695236206, -0.11331011354923248, -0.31917354464530945, 0.32153889536857605, 0.1591855138540268, -0.14851896464824677, 0.0773392915725708, -0.29489800333976746, 0.13163146376609802, -0.12500134110450745, 0.46487507224082947, -0.23000094294548035, -0.36198142170906067, 0.3236779272556305, -0.037035852670669556, -0.09360102564096451, -0.06153479963541031, 0.35297849774360657, -0.452657550573349, 0.26380500197410583, -0.044669605791568756, -0.4046934247016907, -0.0694766491651535, 0.5757683515548706, 0.3239983320236206, 0.12948818504810333, -0.00011813000310212374, -0.28747081756591797, 0.10348872095346451, -0.33695513010025024, -0.1963878571987152, 0.013004213571548462, -0.008869558572769165, -0.4548183083534241, -0.38909170031547546, -0.4192705452442169, 0.15415039658546448, -0.026184463873505592, 0.11121069639921188, -0.39062923192977905, 0.12096379697322845, 0.08185938745737076, 0.04133552685379982, -0.20768290758132935, 0.15956538915634155, -0.07562428712844849, 0.5919959545135498, 0.011651723645627499, 0.26086142659187317, 0.32101571559906006, 0.6891129016876221, 0.17039328813552856, 0.003790244460105896, 0.30197709798812866, -0.2869802713394165, -0.36340025067329407, -0.11784522980451584, -0.052475638687610626, 0.16508786380290985, -0.3370412588119507, -0.0982496440410614, 0.05359206721186638, 0.38325169682502747, -0.12711244821548462, -0.6749773621559143, -0.40485766530036926, -0.12872494757175446, -0.25273770093917847, -0.23952050507068634, 0.24748678505420685, 0.2107643187046051, 0.30219459533691406, 0.20629017055034637, -0.08327186852693558, 0.033934518694877625, -0.00942402146756649, 0.12937794625759125, 0.5042904615402222, 0.30083006620407104, -0.13671860098838806, 0.18754693865776062, -0.12222573161125183, -0.15834622085094452, 0.1058049350976944, -0.3015631437301636, 0.05850495770573616, 0.094288170337677, -0.23538266122341156, -0.16159720718860626, -0.6308350563049316, 0.07443321496248245, -0.040086038410663605, 0.07091914862394333, 0.15099409222602844, -0.12247121334075928, -0.13616836071014404, 0.16982464492321014, 0.42949146032333374, 0.4613444209098816, 0.10246485471725464, -0.15213695168495178, 0.012433189898729324, 0.06591440737247467, 0.07664106786251068, -0.21180754899978638, 0.15157464146614075, -0.35875147581100464, 0.46237480640411377, -0.0251668319106102, 0.054059356451034546, 0.08127186447381973, 0.17481297254562378, -0.3938656151294708, -0.16476336121559143, -0.1746283918619156, -0.16310833394527435, 0.08966100960969925, 0.3201335072517395, 0.1945275068283081, 0.08533169329166412, -0.02481595054268837, -0.34843909740448, -0.03040524385869503, -0.023160763084888458, -0.07965217530727386, -0.030186597257852554, -0.09082021564245224, -0.26827746629714966, 0.2477036714553833, -0.2299615442752838, -0.1800292432308197, -0.10327247530221939, -0.2297188639640808, 0.12825040519237518, 0.06654422730207443, -0.23573166131973267, -0.058126501739025116, 0.00519225001335144, -0.16248415410518646, -0.25964152812957764, -0.06650832295417786, 0.25974395871162415, -0.19970348477363586, -0.2225966453552246, -0.37626975774765015, 0.055048275738954544, -0.37406453490257263, -0.25585466623306274, 0.47139209508895874, 0.41036924719810486, 0.16033940017223358, -0.3092687726020813, 0.2056642770767212, 0.2361132651567459, -0.2818240523338318, 0.12934894859790802, -0.2269667685031891, 0.6784202456474304, -0.2738696336746216, 0.026214182376861572, 0.32774654030799866, 0.22427228093147278, 0.29164472222328186, 0.08691202104091644, 0.34883180260658264, -0.018048055469989777, 0.10294987261295319, 0.10829070210456848, -0.3351138234138489, -0.5341981053352356, 0.004710383713245392, 0.1675182282924652, 0.008104071021080017, 0.10241841524839401, 0.32913321256637573, -0.09774263203144073, 0.5350020527839661, -0.49033820629119873, -0.005577255040407181, -0.004530457779765129, -0.004121661186218262, 0.10316650569438934, -0.23950998485088348, -0.21000318229198456, -0.18952825665473938, 0.12656718492507935, -0.01829158142209053, 0.01773792691528797, 0.27120041847229004, 0.08739595115184784, 0.4465693533420563, -0.11886098980903625, 0.13697198033332825, 0.08709122240543365, -0.17913925647735596, 0.4175783693790436, 0.18146856129169464, 0.33542147278785706, -0.05505187064409256, 0.08757063746452332, -0.07125736027956009, 0.29137203097343445, 0.06996771693229675, -0.2244156002998352, 0.004741452634334564, -0.08303771913051605, 0.1683903932571411, -0.22027824819087982, 0.021133147180080414, 0.20273210108280182, -0.09428510814905167, 0.053580597043037415, -0.3407469093799591, 0.07406451553106308, 0.03003372997045517, 0.024564944207668304, -0.34041523933410645, -0.0929093062877655, 0.06694518029689789, 0.03420734405517578, -0.06375753879547119, 0.25283461809158325, -0.06909376382827759, -0.04180072620511055, -0.07419167459011078, 0.4374391734600067, 0.0816069096326828, 0.19901657104492188, 0.07984310388565063, -0.13029445707798004, 0.4036843478679657, -0.195209801197052, 0.3103133738040924, 0.008368484675884247, -0.16332954168319702, -0.12017705291509628, -0.1196015328168869, 0.05218956246972084, -0.1344236135482788, -0.12013860046863556, -0.13186272978782654, -0.042954012751579285, -0.1800508052110672, 0.04621441662311554, -0.5524294972419739, -0.30593419075012207, -0.12597747147083282, 0.07822878658771515, -0.35594475269317627, 0.20434772968292236, -0.03374230116605759, 0.07002931833267212, 0.17989200353622437, -0.30223336815834045, -0.18355685472488403, 0.2993929982185364, 0.10390421748161316, -0.028523720800876617, 0.08373308181762695, 0.18777728080749512, 0.1098017618060112, 0.2179262787103653, 0.2721732258796692, 0.185648113489151, 0.5387428998947144, -0.3212420642375946, 0.15392407774925232, 0.3775051236152649, -0.2700377106666565, 0.09313129633665085, 0.16638866066932678, 0.33744901418685913, -0.07460585981607437, 0.46131688356399536, 0.13286976516246796, -0.02137317694723606, -0.0950566977262497, 0.10007315874099731, -0.11705821752548218, -0.48703330755233765, 0.052789293229579926, -0.40627655386924744, -0.09331589192152023, -0.0032703764736652374, 0.29487910866737366, -0.40221160650253296, -0.42090028524398804, 0.3982214331626892, 0.4475119113922119, 0.2819496989250183, -0.16609840095043182, 0.04999043047428131, -0.055148765444755554, -0.5353001356124878, 0.14355579018592834, -0.017098907381296158, 0.026979990303516388, -0.0771985724568367, -0.03821152076125145, -0.3761482834815979, 0.08115299046039581, -0.2757059335708618, -0.3715783357620239, -0.2372112274169922, -0.10246248543262482, 0.0563875213265419, 0.3251531720161438, -0.1816832274198532, -0.14083343744277954, -0.3250478506088257, -0.09822683781385422, 0.03373947739601135, -0.12492651492357254, -0.2722989022731781, 0.048224419355392456, -0.05976538360118866, -0.22885799407958984, -0.10427503287792206, -0.35404932498931885, -0.38074761629104614, 0.37751877307891846, 0.041725583374500275, 0.25040775537490845, 0.2632564902305603, -0.10983884334564209, -0.22204463183879852, 0.0035442300140857697, 0.04771552234888077, -0.050243739038705826, -0.5488938689231873, 0.14634990692138672, -0.25296634435653687, -0.08062200248241425, -0.23956216871738434, -0.20559555292129517, -0.0889168530702591, -0.29922714829444885, -0.003773406147956848, 0.17298461496829987, 0.23577037453651428, -0.1624864637851715, 0.3506123721599579, 0.3530944287776947, 0.16058418154716492, 0.012619834393262863, 0.03745274245738983, -0.1594703197479248, -0.13148942589759827, 0.23386037349700928, 0.4142293930053711, 0.16997961699962616, 0.11128710955381393, 0.00688571110367775, 0.20429930090904236, -0.003131447359919548, 0.09562266618013382, 0.06477970629930496, 0.2745956480503082, 0.2683444023132324, 0.1946621835231781, 0.09586474299430847, -0.38048797845840454, -0.018142037093639374, -0.04919744282960892, -0.04049047827720642, 0.5621246695518494, 0.1404629647731781, -0.3641777038574219, -0.23759981989860535, -0.20990192890167236, -0.08275537937879562, -0.18771834671497345, -0.1030849739909172, -0.17913706600666046, 0.16771575808525085, 0.1812949925661087, -0.1290348768234253, -0.36853381991386414, -0.017330322414636612, 0.08364318311214447, 0.02253001369535923, 0.5093560218811035, 0.13727813959121704, -0.027087613940238953, 0.23782289028167725, 0.1579575091600418, 0.25566530227661133, 0.44533583521842957, -0.18139150738716125, 0.30572381615638733, -0.221479132771492, 0.06650633364915848, 0.12079079449176788, 0.12766417860984802, -0.1393955945968628, -0.2735544741153717, 0.14306624233722687, 0.135812446475029, 0.005356408655643463, -0.18448655307292938, 0.07937072217464447, -0.5605741143226624, 0.6572231650352478, -0.206309974193573, -0.3128501772880554, 0.1138935312628746, 0.34634828567504883, -0.2300785928964615, -0.050251685082912445, -0.18497157096862793, 0.12734752893447876, -0.2202012836933136, -0.5741532444953918, -0.00890151783823967, 0.13343708217144012, -0.2674989700317383, 0.18919911980628967, 0.0903981626033783, 0.18313655257225037, 0.21046385169029236, 0.12014546245336533, -0.14546188712120056, -0.11121703684329987, 0.5019409656524658, 0.07520127296447754, 0.1396639347076416, -0.13228051364421844, 0.15097327530384064, 0.3216264247894287, -0.4710196256637573, -0.05696704238653183, -0.12523071467876434, -0.0659659281373024, 0.2320081740617752, 0.46899178624153137, 0.37846291065216064, -0.22327198088169098, 0.1639682650566101, -0.28120821714401245, -0.08889620006084442, -0.15284043550491333, -0.05139847844839096, 0.014265567064285278, -0.07248552143573761, -0.5687927007675171, 0.02566933073103428, -0.19058367609977722, -0.2089548408985138, -0.4614226520061493, -0.013613294810056686, -0.17130963504314423, 0.5519627332687378, 0.4034876227378845, 1.0733835697174072, 0.1448938548564911, -0.018529891967773438, -0.1481233388185501, 0.06400948762893677, 0.4912929832935333, -0.018307894468307495, -0.13224351406097412, -0.09088805317878723, 0.03395858034491539, 0.020684465765953064, 0.19174405932426453, -0.1598876267671585, 0.030486779287457466, -0.3327672481536865, 0.012082602828741074, 0.48956623673439026, -0.3025805652141571, 0.16467764973640442, 0.2287430614233017, 0.07936717569828033, -0.35939309000968933, 0.2810901403427124, 0.030774429440498352, -0.07432116568088531, 0.13365720212459564, 0.023589681833982468, -0.4508494436740875, 0.06300124526023865, -0.11769241839647293, -0.17711761593818665, -0.10228975862264633, -0.16404001414775848, -0.14706644415855408, -0.15710557997226715, 0.06315970420837402, -0.08232802152633667, 0.4446714520454407, 0.35066843032836914, 0.1507033109664917, 0.3611937165260315, 0.0309147909283638, 0.7040262818336487, -0.15926526486873627, 0.25765055418014526, 0.08566997200250626, 0.3726045489311218, -0.1405433565378189, -0.17358067631721497, -0.15606562793254852, 0.12236668169498444, -0.05193014442920685, -0.09589844197034836, -0.1476413905620575, 0.09597133100032806, 0.07698522508144379, 0.006542406976222992, 0.3046067953109741, -0.34876587986946106, -0.08539559692144394, 0.019490336999297142, -0.012629259377717972, -0.23871976137161255, 0.0513567253947258, -0.35274890065193176, -0.16411784291267395, -0.11403809487819672, 0.23145610094070435, -0.047793589532375336, -0.37624382972717285, 0.08495555818080902, 0.3765698969364166, -0.06806197762489319, 0.15894222259521484, 0.03155528008937836, -0.5533145666122437, -0.46057412028312683, -0.0533403605222702, -0.20234833657741547, -0.2377944141626358, -0.06323079764842987, 0.03167956322431564, 0.2875441312789917, 0.29548588395118713, 0.2739045023918152, 0.13881759345531464, -0.4811055064201355, 0.2581268548965454, -0.1733328104019165, 0.20990677177906036, -0.044210948050022125, -0.5055646896362305, -0.12442293763160706, 0.07458251714706421, -0.22333423793315887, 0.21714860200881958, 0.1428264081478119, -0.03370334208011627, 0.5198438763618469, -0.16647487878799438, -0.3323400914669037, -0.2878309190273285, -0.0012589581310749054, 0.27724936604499817, 0.12124630808830261, -0.024707341566681862, -0.2537343204021454, 0.15735970437526703, 0.04111633449792862, -0.05724398046731949, 0.07723104953765869, -0.08407837897539139, 0.06032814085483551, -0.1545599102973938, -0.0704461932182312, 0.2445058971643448, 0.004030587151646614, 0.38421007990837097, 0.326134592294693, 0.2246762216091156, 0.05690518021583557, 0.20616543292999268, 0.20818209648132324, 0.3820975720882416, -0.15889543294906616, 0.10954131931066513, -0.2445550262928009, -0.1486319601535797, 0.40110719203948975, 0.2084994614124298, 0.3131086528301239, 0.07997962832450867, 0.3748273551464081, 0.1559557318687439, 0.17768609523773193, 0.45414796471595764, -0.15974575281143188, 0.14509066939353943, -0.11014074087142944, -0.1271139681339264, 0.1100173369050026, 0.14968255162239075, -0.1734429895877838, 0.25256288051605225, -0.08960039168596268, 0.12286417186260223, -0.07680599391460419, 0.38476383686065674, 0.28131842613220215, -0.19840066134929657, 0.0618174709379673, 0.2656446099281311, 0.25136059522628784, 0.3486652672290802, 0.20697277784347534, 0.4152635335922241, 0.01257016509771347, -0.07083756476640701, -0.3461152911186218, -0.04147854819893837, 0.24160926043987274, -0.2297038733959198, -0.11931440234184265, -0.009348955005407333, 0.6945896744728088, 0.39472463726997375, 0.18839293718338013, 0.05239458382129669, 0.09065203368663788, 0.3460867702960968, 0.2865169048309326, 0.15878546237945557, 0.27902770042419434, 0.1509082019329071, 0.3806927800178528, -0.06959689408540726, 0.07841973006725311, 0.8199091553688049, 0.15616685152053833, -0.22313781082630157, -0.402415931224823, 0.04781484603881836, -0.18161466717720032, -0.2417519986629486, -0.15966598689556122, -0.047802213579416275, -0.31444603204727173, 0.07781943678855896, 0.14369109272956848, 0.014725349843502045, -0.444259911775589, -0.6542367935180664, 0.5127463340759277, -0.29608583450317383, 0.14539897441864014, 0.452932745218277, -0.13359591364860535, 0.5429689288139343, 0.5608372092247009, 0.21015393733978271, 0.014921136200428009, 0.123691126704216, 0.3338792324066162, -0.2333037108182907, 0.026471875607967377, 0.19821810722351074, 0.35790547728538513, 0.1713338941335678, 0.06176873296499252, 0.0360177606344223, -0.004426576197147369, -0.07104593515396118, -0.12276457250118256, -0.051235731691122055, -0.07653766125440598, 0.15131588280200958, 0.431742787361145, 0.2671120762825012, -0.14254969358444214, 0.06839830428361893, 0.0813969224691391, -0.39378583431243896, 0.031867969781160355, -0.09344349801540375, -0.011761091649532318, 0.03564507141709328, 0.1442168951034546, 0.00904180109500885, 0.1034894585609436, 0.1283714771270752, 0.42883458733558655, -0.03542851284146309, -0.03627460449934006, -0.028119631111621857, -0.3973757326602936, -0.24212400615215302, 0.35891374945640564, 0.24640314280986786, -0.013506745919585228, -0.26037806272506714, 0.4524380564689636, 0.4628761410713196, -0.3483901023864746, -0.09272725880146027, -0.36761221289634705, 0.33557549118995667, -0.34715181589126587, 0.24634504318237305, 0.43439680337905884, 0.1993955671787262, 0.07083354890346527, 0.3511963486671448, -0.20940904319286346, -0.3332328498363495, -0.08043878525495529, 0.2059752345085144, -0.07852578163146973, -0.0017291083931922913, 0.054498642683029175, -0.04384453967213631, -0.07781530171632767, 0.07447408139705658, -0.10331869125366211, -0.07860330492258072, -0.0953911691904068, -0.27450090646743774, -0.10104785859584808, 0.0002007950097322464, -0.04922828823328018, 0.3249864876270294, -0.08844229578971863, -0.1082545816898346, 0.09119296073913574, -0.28998905420303345, -0.07293085753917694, 0.02581307291984558, -0.6710772514343262, 0.029355302453041077, -0.057779375463724136, -0.10401052236557007, 0.20803110301494598, 0.27729880809783936, 0.24545222520828247, 0.248041570186615, -0.4210086464881897, -0.4685884118080139, 0.5776048898696899, -0.08899283409118652, 0.09675085544586182, -0.26420047879219055, 0.12314903736114502, 0.2944214940071106, 0.16403666138648987, -0.355476438999176, 0.060946062207221985, 0.1970302164554596, -0.020346304401755333, -0.2716577649116516, 0.07761180400848389, -0.01756117306649685, -0.1964314579963684, -0.24486872553825378, -0.29258957505226135, 0.23467756807804108, -0.18281814455986023, -0.3121432960033417, -0.058104999363422394 ]
https://github.com/huggingface/datasets/issues/1844
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.
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!
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.20258626341819763, 0.15204814076423645, -0.046398334205150604, -0.21518029272556305, -0.20975884795188904, 0.22186347842216492, 0.2927144765853882, 0.3270958662033081, -0.280744731426239, -0.08636625111103058, -0.3423934280872345, 0.1748223751783371, 0.18115729093551636, -0.13348925113677979, 0.028532076627016068, -0.3397965729236603, 0.13690637052059174, -0.0015650466084480286, 0.6896281242370605, -0.22065643966197968, -0.358267605304718, 0.2426951676607132, -0.06531434506177902, -0.056227587163448334, -0.18819020688533783, 0.29431554675102234, -0.4418637454509735, 0.10194610059261322, -0.02285289391875267, -0.465509295463562, -0.11289942264556885, 0.5621755123138428, 0.3112183213233948, 0.04260825365781784, -0.00012075168342562392, -0.28349554538726807, 0.18958832323551178, -0.25009220838546753, -0.2641487121582031, 0.06429976969957352, 0.04724808782339096, -0.28897616267204285, -0.19157171249389648, -0.34148845076560974, 0.06597201526165009, -0.00998673215508461, 0.017681671306490898, -0.3728541433811188, -0.18405447900295258, 0.1396951824426651, 0.05855841934680939, -0.1017707958817482, 0.027238741517066956, -0.09780721366405487, 0.582944393157959, -0.059743087738752365, 0.19454309344291687, 0.2558288276195526, 0.7497332096099854, 0.18048281967639923, 0.22592753171920776, 0.3277653455734253, -0.5435165762901306, -0.42967846989631653, -0.14454081654548645, -0.07945948094129562, 0.0035766437649726868, -0.2353159785270691, 0.00015234947204589844, 0.1074102446436882, 0.4455190598964691, -0.04367230460047722, -0.6220412850379944, -0.38645434379577637, -0.0650596022605896, -0.2182621955871582, -0.2932422161102295, 0.31423211097717285, 0.28235724568367004, 0.3710574507713318, 0.12165264785289764, -0.1338571161031723, 0.11207911372184753, -0.017410535365343094, 0.2732362747192383, 0.27821019291877747, 0.2881122827529907, -0.13882826268672943, 0.14075082540512085, -0.11996911466121674, -0.2138812243938446, 0.15297263860702515, -0.35762062668800354, 0.02352665364742279, 0.014302636496722698, -0.22083544731140137, -0.1321437954902649, -0.5561724901199341, -0.16938994824886322, -0.0990581065416336, 0.08493149280548096, 0.11060062050819397, -0.07651921361684799, -0.10256841778755188, 0.1607460081577301, 0.27038514614105225, 0.4041803181171417, 0.13895052671432495, -0.12161853909492493, -0.06475121527910233, -0.15019051730632782, -0.033311210572719574, -0.22526945173740387, 0.31261977553367615, -0.27682313323020935, 0.2574814558029175, 0.059220775961875916, 0.02879590541124344, 0.005072958767414093, 0.1269139051437378, -0.4585179090499878, -0.056722793728113174, -0.1381126046180725, -0.004900254309177399, 0.11799973249435425, 0.23690128326416016, 0.2082662582397461, 0.10772322118282318, 0.024255231022834778, -0.4484046995639801, -0.08716470003128052, 0.024688754230737686, 0.052552372217178345, -0.03597318381071091, -0.1140194684267044, -0.3677076995372772, 0.23248738050460815, -0.22349771857261658, -0.22072961926460266, -0.2021275758743286, -0.2647817134857178, 0.16693861782550812, 0.11200867593288422, -0.1280200332403183, 0.0895146057009697, 0.06087663769721985, -0.14557524025440216, -0.14221152663230896, 0.000964820384979248, 0.28891876339912415, -0.16943436861038208, -0.3882223963737488, -0.4193805754184723, 0.07159410417079926, -0.34913596510887146, -0.30357521772384644, 0.4186151921749115, 0.3618101179599762, 0.21224719285964966, -0.2627325654029846, 0.27000099420547485, 0.14011964201927185, -0.3034572899341583, 0.09731423109769821, -0.23338741064071655, 0.5517138242721558, -0.11103476583957672, 0.009221047163009644, 0.2950669527053833, 0.2318434864282608, 0.19405072927474976, 0.11537149548530579, 0.4618019461631775, 0.006568029522895813, 0.11396872997283936, 0.017644569277763367, -0.32392334938049316, -0.5405445098876953, 0.053194545209407806, 0.028963178396224976, 0.09201019257307053, 0.036595188081264496, 0.33350318670272827, 0.024992801249027252, 0.6625000238418579, -0.44609400629997253, -0.09476493299007416, -0.05499657988548279, -0.08074584603309631, 0.09782352298498154, -0.17326059937477112, -0.17856548726558685, -0.35341933369636536, 0.15263359248638153, 0.010506085120141506, 0.19888736307621002, 0.3615282475948334, 0.06389743834733963, 0.45454299449920654, -0.10580720007419586, 0.09293808043003082, -0.006892495788633823, -0.09401141107082367, 0.4595704674720764, 0.16896413266658783, 0.17949482798576355, 0.14529071748256683, 0.06087939441204071, 0.19697584211826324, 0.24310541152954102, 0.2571718990802765, -0.2650691866874695, -0.009863447397947311, -0.016585417091846466, 0.3412770926952362, -0.1586160510778427, -0.0077308788895606995, 0.10107136517763138, -0.1333782970905304, 0.15117214620113373, -0.4317305088043213, 0.10677192360162735, -0.20143228769302368, -0.0007565394043922424, -0.1344541609287262, -0.16988106071949005, 0.16812829673290253, -0.04719176143407822, -0.020397230982780457, 0.277013897895813, -0.11284095048904419, 0.10627453029155731, -0.09830211102962494, 0.44565412402153015, -0.07352917641401291, 0.35372817516326904, 0.05852291360497475, -0.0232345312833786, 0.28862422704696655, -0.2466837614774704, 0.16736546158790588, -0.16675922274589539, -0.1978946328163147, -0.07747813314199448, 0.05330468714237213, 0.01614757627248764, -0.09392336010932922, -0.08084012567996979, -0.1326185017824173, 0.036587201058864594, -0.2571313977241516, 0.06562011688947678, -0.4624592959880829, -0.24569252133369446, -0.0678146705031395, 0.06294793635606766, -0.5987551808357239, 0.08716592192649841, -0.19130736589431763, 0.16865617036819458, 0.07480336725711823, -0.2727586328983307, 0.004081801511347294, 0.2686508297920227, 0.05313961207866669, -0.0229543074965477, -0.04081998020410538, 0.04611910879611969, 0.007834777235984802, 0.17846450209617615, 0.14729835093021393, 0.15798696875572205, 0.528418779373169, -0.2943544387817383, 0.2633441984653473, 0.41394153237342834, -0.3146461844444275, -0.05067921429872513, 0.27915388345718384, 0.33437129855155945, -0.15810170769691467, 0.5288504958152771, 0.007489129900932312, 0.05863219499588013, -0.0998239666223526, 0.007482446730136871, -0.17819154262542725, -0.44558876752853394, 0.2280278205871582, -0.4807478189468384, 0.025893893092870712, 0.011060185730457306, 0.2136840671300888, -0.2000712901353836, -0.3091621994972229, 0.29629790782928467, 0.1574103832244873, 0.35548391938209534, -0.10575436055660248, 0.11368083953857422, -0.03384310007095337, -0.49569249153137207, 0.21975693106651306, -0.026655444875359535, -0.1890276074409485, -0.09950273483991623, 0.07172578573226929, -0.2529873549938202, 0.14598281681537628, -0.3089471161365509, -0.25566565990448, -0.3172927796840668, -0.010371498763561249, 0.000021677464246749878, 0.3998185992240906, -0.1479940116405487, -0.21187642216682434, -0.25986263155937195, -0.11578980833292007, -0.03471221774816513, -0.1342359185218811, -0.2672850489616394, 0.03889310732483864, -0.07500184327363968, -0.15978887677192688, -0.025538209825754166, -0.16992147266864777, -0.41899242997169495, 0.2884584963321686, -0.03393876925110817, 0.1766665279865265, 0.23201483488082886, -0.06878684461116791, -0.2220521718263626, -0.04499902203679085, 0.15993139147758484, -0.03392694145441055, -0.5086303949356079, 0.08215388655662537, -0.17387805879116058, -0.06099744886159897, -0.20351222157478333, -0.18488213419914246, -0.30070918798446655, -0.2854413092136383, -0.06579815596342087, 0.20146800577640533, 0.27416515350341797, -0.2688772678375244, 0.5612771511077881, 0.21551762521266937, 0.04840928688645363, -0.039346352219581604, 0.031208232045173645, -0.17454659938812256, -0.3107945919036865, 0.09059960395097733, 0.4777965545654297, 0.11615386605262756, 0.04552917554974556, 0.1407919079065323, 0.08753521740436554, -0.036404725164175034, 0.017718404531478882, 0.010344875045120716, 0.3364095687866211, 0.19124062359333038, 0.1911740005016327, 0.035018738359212875, -0.5634855031967163, 0.08375820517539978, -0.030250415205955505, -0.06813402473926544, 0.5521842241287231, 0.19221824407577515, -0.2857973873615265, -0.14580366015434265, -0.29348957538604736, -0.11480922996997833, -0.08044151216745377, -0.1262032836675644, -0.2518870234489441, 0.3526642322540283, 0.2575189471244812, -0.14407594501972198, -0.2897815704345703, -0.1491621881723404, 0.05084856599569321, 0.09847058355808258, 0.5742339491844177, 0.12505537271499634, -0.02384912222623825, 0.19022858142852783, 0.3251264989376068, 0.2206343114376068, 0.472290575504303, -0.1029445081949234, 0.29000431299209595, -0.23743590712547302, 0.17867572605609894, 0.3376530408859253, 0.22172608971595764, -0.23464436829090118, -0.3685336410999298, 0.0910918340086937, 0.020917296409606934, 0.04531737416982651, -0.13809368014335632, 0.21596726775169373, -0.5401026010513306, 0.6022506952285767, -0.19853918254375458, -0.03147008270025253, 0.21850751340389252, 0.47791486978530884, -0.26940372586250305, -0.11370587348937988, -0.20321865379810333, 0.05124397575855255, -0.12245501577854156, -0.5893533229827881, -0.0019226521253585815, 0.04216168820858002, -0.26446884870529175, 0.15176182985305786, -0.024682164192199707, 0.07173781096935272, 0.2086346447467804, 0.09640438854694366, -0.14310526847839355, -0.06272978335618973, 0.5997660160064697, 0.12917447090148926, 0.11224493384361267, -0.1474158614873886, 0.1794983595609665, 0.256094366312027, -0.4961576461791992, 0.09317053109407425, -0.14826974272727966, -0.012206640094518661, 0.3469996154308319, 0.3949161469936371, 0.4357192814350128, 0.016992446035146713, 0.18028977513313293, -0.31925010681152344, 0.06965138763189316, -0.1487434208393097, -0.14628851413726807, -0.05063595622777939, -0.0944407731294632, -0.6300875544548035, 0.02567901834845543, -0.2706146240234375, -0.1397590935230255, -0.5500949621200562, 0.15431298315525055, -0.04568736255168915, 0.4206380546092987, 0.4109286069869995, 1.0612915754318237, 0.04544816538691521, -0.14642030000686646, -0.24696332216262817, 0.04193668067455292, 0.5492525100708008, 0.16201673448085785, -0.09130309522151947, -0.1607629656791687, 0.0321069173514843, 0.09893782436847687, 0.11614710092544556, -0.2794187664985657, -0.25413939356803894, -0.3178934156894684, -0.08728833496570587, 0.4687190651893616, -0.10887780785560608, 0.2544688284397125, 0.17791490256786346, 0.22308805584907532, -0.3008313477039337, 0.3246658444404602, 0.014424778521060944, -0.030061893165111542, 0.1073242574930191, 0.036657415330410004, -0.3281348645687103, 0.2605345845222473, -0.053907692432403564, -0.30640295147895813, -0.1965390294790268, 0.05928019806742668, -0.18146644532680511, -0.00504680909216404, -0.03547142446041107, -0.035125914961099625, 0.43212324380874634, 0.4008662700653076, 0.11904614418745041, 0.3698365390300751, 0.02415355294942856, 0.7271580696105957, -0.2729673385620117, 0.1730532944202423, 0.15800058841705322, 0.365666925907135, -0.15821585059165955, -0.23478537797927856, -0.043123044073581696, 0.2181016355752945, -0.24316450953483582, -0.1812121868133545, -0.08483099937438965, 0.10395815968513489, 0.0822017639875412, -0.06762847304344177, 0.0914621502161026, -0.15398037433624268, -0.2264297753572464, -0.002695627510547638, 0.06117008626461029, -0.05505090951919556, -0.08915196359157562, -0.1379125565290451, -0.18500681221485138, -0.17152215540409088, 0.2025744467973709, 0.06050822511315346, -0.43580520153045654, 0.16260159015655518, 0.42468562722206116, -0.006994478404521942, 0.16477474570274353, -0.00026151537895202637, -0.6238165497779846, -0.2848285436630249, 0.11415311694145203, -0.26113176345825195, -0.21344834566116333, 0.001107148826122284, 0.049572572112083435, 0.09994590282440186, 0.3431379199028015, 0.13338802754878998, 0.10015927255153656, -0.47504135966300964, 0.19214902818202972, -0.2563410699367523, 0.13561423122882843, -0.15495318174362183, -0.4797375798225403, -0.10535137355327606, 0.01466178335249424, -0.1941796839237213, 0.09780072420835495, 0.060711540281772614, 0.04548143967986107, 0.5873951315879822, -0.027725761756300926, -0.38050147891044617, -0.32556700706481934, -0.030749840661883354, 0.16008897125720978, 0.1722453385591507, -0.02333594672381878, -0.2756184935569763, 0.19589027762413025, 0.05424221232533455, 0.16532135009765625, -0.07563240081071854, -0.1026797890663147, 0.06729327142238617, -0.1668599545955658, -0.2070132941007614, 0.31388646364212036, 0.014466673135757446, 0.28595593571662903, 0.192288339138031, 0.09586112201213837, 0.08528926968574524, 0.1718428134918213, 0.14045417308807373, 0.20240412652492523, -0.15024332702159882, 0.11575013399124146, -0.1683477908372879, -0.14091508090496063, 0.5077625513076782, 0.14341306686401367, 0.3052775263786316, 0.06373971700668335, 0.39950498938560486, 0.22788667678833008, 0.22096963226795197, 0.4789087176322937, -0.20550920069217682, 0.025128809735178947, -0.15544730424880981, -0.08122356235980988, -0.03769593685865402, 0.12492828071117401, -0.19662241637706757, 0.2986123561859131, -0.12737500667572021, 0.17974090576171875, -0.10880756378173828, 0.39500176906585693, 0.226870596408844, -0.21640625596046448, 0.08760061115026474, 0.28353434801101685, 0.24829736351966858, 0.21385397017002106, 0.17802390456199646, 0.3404659032821655, 0.12276404350996017, -0.1538020372390747, -0.21846270561218262, -0.11275234818458557, 0.16512633860111237, -0.16208283603191376, -0.07313671708106995, -0.05633879452943802, 0.7049534916877747, 0.30489686131477356, 0.31844425201416016, 0.2254522442817688, 0.25800788402557373, 0.24707238376140594, 0.14878606796264648, 0.13652311265468597, 0.22025960683822632, 0.03210975602269173, 0.46216708421707153, -0.049097295850515366, 0.07929342240095139, 0.7958597540855408, 0.09310094267129898, -0.24465768039226532, -0.4160204529762268, 0.05455264449119568, -0.020830318331718445, -0.30625206232070923, -0.03516291454434395, 0.11465810239315033, -0.38424959778785706, 0.06529328227043152, 0.04821961000561714, -0.089535653591156, -0.4640112817287445, -0.4744279682636261, 0.5227257013320923, -0.2781195640563965, -0.11289403587579727, 0.30380943417549133, 0.008464391343295574, 0.6416423916816711, 0.5664157867431641, 0.26429513096809387, 0.1010478213429451, 0.08641965687274933, 0.45599913597106934, -0.255685031414032, -0.05144105851650238, 0.2270280122756958, 0.32197245955467224, 0.23846665024757385, 0.14850127696990967, -0.04344892501831055, -0.004267143085598946, -0.04997866600751877, 0.08329553157091141, -0.1263560801744461, 0.058144889771938324, -0.01814444363117218, 0.4207744300365448, 0.23231832683086395, -0.25039613246917725, -0.03485319763422012, 0.22785255312919617, -0.2158733606338501, 0.12681901454925537, 0.045842494815588, -0.06576753407716751, -0.12506680190563202, 0.1317734718322754, -0.000003885477781295776, 0.12726590037345886, 0.08598741888999939, 0.5072782635688782, -0.00020755967125296593, 0.0875706672668457, 0.02289566397666931, -0.29345476627349854, -0.25398412346839905, 0.30897247791290283, 0.23832519352436066, 0.1209155023097992, -0.22247731685638428, 0.5440024137496948, 0.41170552372932434, -0.28484344482421875, -0.10102514922618866, -0.5488213300704956, 0.27064943313598633, -0.17946527898311615, 0.04583663493394852, 0.2599024474620819, 0.16985532641410828, -0.003322392702102661, 0.38137495517730713, -0.16001419723033905, -0.5111730098724365, -0.06796845048666, 0.15546078979969025, -0.08923210203647614, 0.09506963938474655, 0.10218296945095062, -0.05991075187921524, -0.09743477404117584, 0.0022092461585998535, -0.1403130441904068, 0.025714419782161713, -0.17270734906196594, -0.4073496162891388, -0.08148780465126038, -0.017417415976524353, -0.09323097765445709, 0.33976250886917114, -0.026092108339071274, -0.1358449012041092, 0.21750754117965698, -0.15468132495880127, 0.014402538537979126, -0.025814205408096313, -0.5638812780380249, 0.06543010473251343, -0.03969067335128784, -0.06613200157880783, 0.27838486433029175, 0.0630611777305603, 0.1904575228691101, 0.26275214552879333, -0.4643501341342926, -0.5056294202804565, 0.5837916135787964, -0.20524165034294128, 0.09389695525169373, -0.2969120144844055, 0.3089847266674042, 0.24188852310180664, 0.16432076692581177, -0.417459636926651, -0.05295875668525696, 0.2758619785308838, -0.08632011711597443, -0.3164334297180176, 0.18863457441329956, 0.13104315102100372, 0.021329030394554138, -0.15739724040031433, -0.3898939788341522, 0.3080562949180603, -0.12761415541172028, -0.3563331067562103, -0.04170509800314903 ]
https://github.com/huggingface/datasets/issues/1844
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'?
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!
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.22097843885421753, 0.03477446734905243, -0.0174860917031765, -0.15179531276226044, -0.20496004819869995, 0.31040942668914795, 0.3499246835708618, 0.23899126052856445, -0.4182049632072449, -0.1190219521522522, -0.3992200195789337, 0.27171069383621216, 0.22531980276107788, -0.12070697546005249, 0.10574589669704437, -0.27103275060653687, 0.1577947586774826, -0.06479525566101074, 0.5990244746208191, -0.19728055596351624, -0.3916413486003876, 0.23155996203422546, 0.02328544855117798, -0.10528991371393204, -0.1919487863779068, 0.3326807916164398, -0.5179937481880188, 0.18938368558883667, 0.05586148798465729, -0.4463600218296051, -0.05193192511796951, 0.5385540723800659, 0.25940191745758057, 0.06866338849067688, -0.0001201749691972509, -0.18870456516742706, 0.15327073633670807, -0.24640187621116638, -0.24760863184928894, -0.068202443420887, 0.1630226969718933, -0.26733720302581787, -0.2945556640625, -0.30697646737098694, 0.09791000932455063, -0.0597786009311676, 0.008120739832520485, -0.4214203655719757, -0.1565282791852951, 0.03954952955245972, 0.04648812487721443, -0.04178428649902344, 0.03532366454601288, -0.10262413322925568, 0.5562956929206848, -0.002025844529271126, 0.24942974746227264, 0.3210568130016327, 0.6099581718444824, 0.24947920441627502, 0.2338647097349167, 0.3001668155193329, -0.4769381880760193, -0.4708833694458008, -0.1287599503993988, -0.02720804512500763, 0.028210215270519257, -0.19223478436470032, -0.06981117278337479, 0.04133903607726097, 0.3280799388885498, -0.1330786645412445, -0.7111257314682007, -0.45842400193214417, -0.046118900179862976, -0.21369099617004395, -0.41447505354881287, 0.3474140465259552, 0.35777613520622253, 0.3390953540802002, 0.0551944263279438, -0.16470271348953247, 0.17309680581092834, 0.023302897810935974, 0.274130642414093, 0.2407238781452179, 0.23408742249011993, -0.0719098374247551, 0.15933814644813538, -0.12634335458278656, -0.30188795924186707, 0.09611539542675018, -0.3530394732952118, -0.023111091926693916, 0.055221304297447205, -0.18032386898994446, -0.039918869733810425, -0.5612178444862366, -0.06887559592723846, -0.06347018480300903, 0.12004617601633072, 0.03673207014799118, -0.12030394375324249, -0.0787196010351181, 0.17726869881153107, 0.3284094035625458, 0.340431809425354, 0.09054140746593475, -0.14240317046642303, 0.026658717542886734, -0.11318977177143097, -0.01105219405144453, -0.16181528568267822, 0.2903783321380615, -0.35192081332206726, 0.2706141471862793, 0.10150372982025146, 0.1630832850933075, -0.010381236672401428, 0.09793458878993988, -0.491324245929718, -0.08826880156993866, -0.16286148130893707, 0.012042764574289322, 0.18130157887935638, 0.27789103984832764, 0.21037107706069946, 0.2165265679359436, 0.019492633640766144, -0.3489286005496979, -0.11004796624183655, 0.028266478329896927, 0.07729687541723251, 0.06549401581287384, -0.1279764026403427, -0.30862510204315186, 0.32208067178726196, -0.22503800690174103, -0.06506827473640442, -0.20308372378349304, -0.3065248727798462, 0.13057686388492584, 0.0732707753777504, -0.159694641828537, 0.09171335399150848, 0.09787312895059586, -0.13674858212471008, -0.12294352054595947, -0.013852454721927643, 0.22163861989974976, -0.16445191204547882, -0.3561447262763977, -0.2158159613609314, 0.04656006023287773, -0.3473251461982727, -0.34195974469184875, 0.2420503795146942, 0.40232419967651367, 0.22668945789337158, -0.2590721845626831, 0.24222707748413086, 0.18452098965644836, -0.3498837649822235, 0.05922061949968338, -0.1313716471195221, 0.6238114833831787, -0.007766515016555786, -0.08329621702432632, 0.3877948820590973, 0.27206534147262573, 0.08591537177562714, 0.16775360703468323, 0.4032237231731415, 0.053636111319065094, 0.04700755327939987, 0.043260663747787476, -0.4101872742176056, -0.6244879364967346, 0.03835974633693695, 0.04822888225317001, -0.03450223058462143, 0.1305968165397644, 0.3557191491127014, 0.000695299357175827, 0.522342324256897, -0.41223597526550293, -0.0007472541183233261, -0.03319692611694336, -0.01576690375804901, 0.09644585847854614, -0.1680336594581604, -0.235658198595047, -0.29977110028266907, 0.11348658800125122, -0.06493633985519409, 0.131691113114357, 0.2948748469352722, 0.00135793536901474, 0.46460846066474915, -0.1661219447851181, 0.07938356697559357, -0.034539271146059036, -0.08439280092716217, 0.3948904275894165, 0.12124775350093842, 0.19216889142990112, -0.04292333126068115, 0.11075036227703094, 0.1654115915298462, 0.24146312475204468, 0.191542387008667, -0.29822200536727905, 0.04935888200998306, -0.03438633307814598, 0.21780483424663544, -0.267089307308197, -0.015209786593914032, 0.1529761254787445, -0.12493675947189331, 0.170455664396286, -0.3960728049278259, -0.016191838309168816, -0.07769086211919785, 0.07755260914564133, -0.19728875160217285, -0.10505232214927673, 0.1627872884273529, 0.03764276206493378, -0.049920886754989624, 0.3225726783275604, -0.08503361791372299, 0.05836942791938782, 0.0013720318675041199, 0.46638694405555725, -0.026458129286766052, 0.485948383808136, 0.04775417596101761, -0.11755736172199249, 0.3558056056499481, -0.24901069700717926, 0.14584869146347046, -0.08905470371246338, -0.1667504459619522, -0.1384650319814682, -0.0018220776692032814, 0.04634018987417221, -0.07065960764884949, -0.03860659524798393, -0.037169985473155975, -0.007378384470939636, -0.30984577536582947, 0.09877265244722366, -0.4832097887992859, -0.3038066029548645, -0.0789630115032196, 0.09301963448524475, -0.44929951429367065, 0.14169126749038696, -0.1375741958618164, 0.2361624389886856, 0.10314446687698364, -0.3040548861026764, -0.07717186212539673, 0.21786116063594818, -0.04489104449748993, -0.004224613308906555, -0.04438073933124542, 0.0655251145362854, 0.09416314959526062, 0.2101774364709854, 0.17719590663909912, 0.24087472259998322, 0.6037323474884033, -0.2918304204940796, 0.26777416467666626, 0.42150843143463135, -0.27985918521881104, 0.009012221358716488, 0.36308225989341736, 0.30629539489746094, -0.16108474135398865, 0.5001880526542664, 0.015114568173885345, -0.029345856979489326, -0.15571552515029907, 0.02559886872768402, -0.15574383735656738, -0.346332848072052, 0.022558394819498062, -0.5094442963600159, -0.05309315025806427, -0.07384021580219269, 0.15771114826202393, -0.24634581804275513, -0.32933273911476135, 0.24780023097991943, 0.24944892525672913, 0.24260786175727844, -0.1832519769668579, 0.003082023933529854, 0.034485191106796265, -0.5286223888397217, 0.31137585639953613, -0.06450622528791428, -0.1091005951166153, -0.18356314301490784, -0.005450977012515068, -0.3063260614871979, 0.08512718230485916, -0.3004767894744873, -0.29671311378479004, -0.29045772552490234, -0.12312570214271545, -0.030331365764141083, 0.4129616320133209, -0.2559928297996521, -0.14729972183704376, -0.2908369302749634, 0.0264725424349308, 0.017898209393024445, -0.16153162717819214, -0.3175320327281952, 0.023416366428136826, -0.10088001191616058, -0.21083825826644897, -0.09294735640287399, -0.228054940700531, -0.37864500284194946, 0.48783087730407715, -0.04834891855716705, 0.1076342910528183, 0.26929211616516113, -0.07818473875522614, -0.2370765209197998, -0.18412256240844727, 0.14739374816417694, -0.05027461051940918, -0.5810418128967285, 0.07226133346557617, -0.1957203596830368, -0.028628714382648468, -0.2978215217590332, -0.144904226064682, -0.21621441841125488, -0.306657612323761, -0.09892238676548004, 0.17042198777198792, 0.24136003851890564, -0.23422060906887054, 0.5072842240333557, 0.3699318468570709, -0.010472573339939117, -0.04427117481827736, 0.03599143773317337, -0.19817030429840088, -0.2408277541399002, 0.12448945641517639, 0.49490290880203247, 0.03046804666519165, 0.013462111353874207, 0.16553428769111633, 0.19439688324928284, 0.10373996198177338, 0.09541696310043335, -0.0017629233188927174, 0.34594452381134033, 0.1287499964237213, 0.23382553458213806, 0.09049947559833527, -0.6101650595664978, 0.05914006009697914, -0.12778452038764954, -0.040054574608802795, 0.4969539940357208, 0.17660127580165863, -0.20337405800819397, -0.1965547651052475, -0.346721351146698, -0.04263566434383392, -0.1534174084663391, -0.18737031519412994, -0.17455646395683289, 0.282478392124176, 0.2552609443664551, -0.17683956027030945, -0.24429163336753845, -0.0625843033194542, 0.0728166252374649, 0.10158233344554901, 0.5623084306716919, 0.1568129062652588, -0.0802050307393074, 0.10299333930015564, 0.20306304097175598, 0.2130463570356369, 0.5398970246315002, -0.10103370249271393, 0.38521507382392883, -0.29626959562301636, 0.0736890584230423, 0.24673494696617126, 0.25282105803489685, -0.14314010739326477, -0.32503649592399597, 0.09065680205821991, -0.07714550197124481, -0.04798416793346405, -0.08477675914764404, 0.23880109190940857, -0.48612847924232483, 0.6551349759101868, -0.04466872662305832, -0.1383967250585556, 0.22075316309928894, 0.45054376125335693, -0.2518521249294281, -0.061442937701940536, -0.2097945213317871, -0.008691027760505676, -0.12198453396558762, -0.6096363067626953, -0.057454243302345276, 0.037525519728660583, -0.21380257606506348, 0.15934836864471436, 0.0025436505675315857, 0.08818016201257706, 0.15997785329818726, 0.14773400127887726, -0.1215679943561554, -0.08276182413101196, 0.5291157960891724, 0.17023777961730957, 0.1728871464729309, -0.09090903401374817, 0.3126511573791504, 0.4004727005958557, -0.4411032199859619, 0.05557522550225258, -0.2909812033176422, 0.036093153059482574, 0.44816917181015015, 0.348975270986557, 0.356991708278656, -0.0036159679293632507, 0.14566388726234436, -0.2892707884311676, -0.08804090321063995, -0.14213846623897552, -0.1054026409983635, -0.02292463928461075, -0.04243975132703781, -0.579997718334198, 0.0873592421412468, -0.24522949755191803, -0.05975620448589325, -0.6179401874542236, 0.16580282151699066, -0.11910878866910934, 0.34211334586143494, 0.3598652482032776, 1.0053181648254395, 0.12381764501333237, 0.0880206972360611, -0.11645530164241791, 0.1319577395915985, 0.5445366501808167, 0.1574394702911377, -0.1165832132101059, -0.11653434485197067, 0.05903974920511246, 0.12692540884017944, 0.08886275440454483, -0.26674649119377136, -0.2439643144607544, -0.2833560109138489, -0.02372046373784542, 0.4424545168876648, -0.04617725685238838, 0.22957582771778107, 0.13055041432380676, 0.1871201992034912, -0.2922731041908264, 0.28628239035606384, -0.02275582030415535, 0.01418393850326538, 0.05684975907206535, 0.009498689323663712, -0.31298068165779114, 0.14038148522377014, -0.09349019825458527, -0.23287484049797058, -0.1617426723241806, -0.08398368954658508, -0.14421826601028442, -0.13181240856647491, -0.009192362427711487, -0.028360292315483093, 0.38019654154777527, 0.36028194427490234, 0.1380676031112671, 0.3586060404777527, -0.023959629237651825, 0.6386117935180664, -0.26331961154937744, 0.14275102317333221, 0.08634193241596222, 0.2632281482219696, -0.09972110390663147, -0.24404573440551758, -0.11777964234352112, 0.23793691396713257, -0.15311279892921448, -0.22273167967796326, -0.07341313362121582, -0.01932140626013279, 0.1067313551902771, -0.10660427808761597, 0.22119572758674622, -0.16741037368774414, -0.2496606856584549, -0.027497481554746628, 0.06623068451881409, -0.14419706165790558, -0.1204332634806633, -0.25712305307388306, -0.2271403968334198, -0.15210075676441193, 0.2999044954776764, 0.011011410504579544, -0.3845520615577698, 0.19773559272289276, 0.40384116768836975, -0.015292264521121979, 0.20564024150371552, 0.07377024739980698, -0.560007631778717, -0.3261534869670868, 0.15431544184684753, -0.20553097128868103, -0.1241176426410675, -0.0972469300031662, 0.0944911539554596, 0.11754007637500763, 0.30152428150177, 0.15949811041355133, 0.08255384117364883, -0.4828438460826874, 0.2753210663795471, -0.2664930522441864, 0.17545044422149658, -0.03063105046749115, -0.34502628445625305, -0.1609974503517151, 0.12797975540161133, -0.19141975045204163, 0.17959067225456238, 0.12901392579078674, -0.022878438234329224, 0.5700923800468445, -0.13853469491004944, -0.25879091024398804, -0.3195571303367615, -0.017411883920431137, 0.15053032338619232, 0.14742502570152283, -0.01891365461051464, -0.3108358383178711, 0.18581680953502655, 0.10508175194263458, 0.22384929656982422, 0.007544085383415222, -0.028108004480600357, 0.08994829654693604, -0.22630122303962708, -0.08960381150245667, 0.34308505058288574, 0.08690278977155685, 0.2806047201156616, 0.18324987590312958, 0.10894031822681427, -0.011504918336868286, 0.18620865046977997, 0.22044694423675537, 0.14327576756477356, -0.11629743129014969, 0.08192149549722672, -0.26210466027259827, -0.11713147163391113, 0.5180976986885071, 0.13312947750091553, 0.39207595586776733, 0.12302868813276291, 0.38136976957321167, 0.18141034245491028, 0.15239885449409485, 0.3915369510650635, -0.09629903733730316, 0.0503208227455616, -0.08886219561100006, -0.04695344343781471, -0.059521012008190155, 0.10103704035282135, -0.18007168173789978, 0.2891722023487091, 0.0040013790130615234, 0.11043646931648254, -0.028808385133743286, 0.41643500328063965, 0.2267102748155594, -0.10729598253965378, -0.06030658259987831, 0.24156369268894196, 0.2479129135608673, 0.3363707661628723, 0.24341651797294617, 0.27990633249282837, 0.13740187883377075, -0.1132822036743164, -0.198246568441391, 0.03177373483777046, 0.29132604598999023, -0.17010876536369324, -0.13765645027160645, 0.03230281174182892, 0.6526052951812744, 0.17217311263084412, 0.4123956263065338, 0.23162154853343964, 0.20147955417633057, 0.22393526136875153, 0.3061027228832245, 0.11052718013525009, 0.10288766771554947, 0.1833377480506897, 0.4449326694011688, -0.046824898570775986, 0.16267108917236328, 0.8947775363922119, 0.11343760788440704, -0.37876400351524353, -0.3137105107307434, 0.06611962616443634, -0.10216262936592102, -0.2968343496322632, -0.09134818613529205, -0.09678475558757782, -0.3326016664505005, 0.05465416982769966, 0.08101661503314972, -0.1187325268983841, -0.5291764736175537, -0.4242376387119293, 0.5176990032196045, -0.3008618950843811, -0.09954500198364258, 0.43256905674934387, -0.017716530710458755, 0.5202099084854126, 0.5960309505462646, 0.31529298424720764, 0.06761851161718369, 0.07064369320869446, 0.4289950430393219, -0.2621091604232788, 0.0018364489078521729, 0.22036932408809662, 0.25705990195274353, 0.09678440541028976, 0.05939255282282829, 0.07227279245853424, -0.004069678485393524, -0.051076725125312805, -0.03143230825662613, -0.054235249757766724, 0.0711522102355957, -0.1385304182767868, 0.47409048676490784, 0.024608515202999115, -0.1848059892654419, 0.007249172776937485, 0.31132519245147705, -0.3124316930770874, 0.13747093081474304, 0.09625986963510513, -0.08262437582015991, -0.10981450229883194, 0.11039049178361893, -0.0001246519386768341, 0.10498637706041336, 0.1413687765598297, 0.4995459318161011, 0.0022364510223269463, 0.014609921723604202, 0.03695794939994812, -0.3628649413585663, -0.2546319365501404, 0.3638894259929657, 0.23390090465545654, 0.07204614579677582, -0.15066930651664734, 0.548512876033783, 0.40516623854637146, -0.22888699173927307, 0.01621698960661888, -0.5260785818099976, 0.271801233291626, -0.1391749083995819, 0.07990464568138123, 0.1306469738483429, 0.03149132430553436, 0.07679378986358643, 0.40034186840057373, -0.3214028775691986, -0.490139901638031, -0.09518231451511383, 0.13732393085956573, 0.020102843642234802, -0.060118310153484344, -0.09388922154903412, -0.04823802411556244, -0.09406545013189316, -0.01817311719059944, -0.07978250086307526, -0.1192050501704216, -0.2002190500497818, -0.40867292881011963, -0.10553491115570068, 0.028871621936559677, -0.15623314678668976, 0.37729600071907043, -0.1519804447889328, -0.11899484694004059, 0.18036523461341858, -0.19503702223300934, 0.1351660043001175, -0.1404508501291275, -0.5362731218338013, 0.14250409603118896, -0.09600606560707092, -0.14367154240608215, 0.25054770708084106, 0.25196701288223267, 0.15383407473564148, 0.32092559337615967, -0.38750922679901123, -0.5163572430610657, 0.6283262968063354, -0.2368852198123932, 0.1326725333929062, -0.2854483127593994, 0.2763116657733917, 0.25713568925857544, 0.16624675691127777, -0.5226237177848816, 0.032039761543273926, 0.2893507182598114, -0.02061735838651657, -0.35451650619506836, 0.19280478358268738, 0.03811696544289589, -0.11577364057302475, -0.18749189376831055, -0.3579196333885193, 0.3021307587623596, -0.1233162060379982, -0.24826553463935852, -0.07224768400192261 ]
https://github.com/huggingface/datasets/issues/1843
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 :-)
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).
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.2875131666660309, 0.17527487874031067, -0.05233759805560112, -0.01608116924762726, -0.10274019092321396, 0.04134617745876312, 0.032245926558971405, 0.15731306374073029, -0.354458212852478, 0.2396768033504486, -0.2381986677646637, -0.11117681115865707, -0.19824476540088654, 0.10468833893537521, 0.12996798753738403, -0.11739344894886017, 0.0626324713230133, 0.16216658055782318, -0.2575623095035553, -0.242628812789917, -0.08484064042568207, -0.021014757454395294, -0.1676180362701416, -0.21543073654174805, -0.26368677616119385, -0.23435869812965393, -0.3444109559059143, -0.022243063896894455, -0.22282978892326355, -0.1175917312502861, 0.11751556396484375, 0.24841336905956268, 0.2399590015411377, 0.4444422423839569, -0.00010515679605305195, -0.19214236736297607, 0.19009868800640106, -0.32331740856170654, -0.3289244472980499, -0.007507778704166412, -0.23929452896118164, -0.15383046865463257, -0.5299215316772461, -0.05031654238700867, -0.08309498429298401, -0.32029077410697937, 0.04071342945098877, 0.16451707482337952, 0.20446887612342834, 0.5778824090957642, 0.21405625343322754, 0.16669633984565735, 0.3482292890548706, -0.11885535717010498, 0.23720988631248474, 0.10144507139921188, -0.12061980366706848, 0.13595105707645416, 0.32142573595046997, 0.05029233545064926, 0.12982869148254395, 0.3519299030303955, 0.07516209781169891, -0.20782098174095154, -0.0013172384351491928, -0.2970612049102783, -0.17037296295166016, -0.46972712874412537, 0.054620206356048584, 0.34667205810546875, 0.5668894052505493, -0.23009158670902252, -0.13793525099754333, -0.18856576085090637, 0.23853260278701782, -0.27539387345314026, -0.14257954061031342, 0.10175434499979019, -0.2468654215335846, 0.22015513479709625, 0.13388372957706451, -0.19836124777793884, -0.2617567181587219, 0.42355483770370483, -0.03932233899831772, 0.2688905596733093, -0.021025266498327255, -0.06641906499862671, 0.1583767533302307, -0.24045202136039734, -0.27389436960220337, -0.0225958451628685, 0.10158190131187439, -0.008362159132957458, -0.21821966767311096, -0.3157846927642822, 0.297857403755188, -0.1357145607471466, 0.17325103282928467, -0.3756062090396881, -0.18921303749084473, -0.15222465991973877, -0.16864651441574097, 0.030830366536974907, 0.1053948849439621, 0.34807348251342773, -0.12742608785629272, 0.1075960248708725, -0.03609452769160271, -0.1672760248184204, 0.0026853159070014954, 0.21271324157714844, -0.13084210455417633, 0.15243417024612427, -0.33704107999801636, 0.25810739398002625, -0.13946396112442017, -0.10064970701932907, -0.22708666324615479, 0.1519317626953125, -0.15494489669799805, 0.19768929481506348, -0.049768391996622086, 0.1678733229637146, 0.15022246539592743, 0.4123968183994293, -0.08525049686431885, 0.326616495847702, 0.043595150113105774, -0.18593379855155945, -0.05001143366098404, 0.15480005741119385, -0.2542714774608612, 0.256656676530838, 0.2378215491771698, 0.3129875659942627, 0.1783682107925415, 0.005379565060138702, 0.32760199904441833, 0.06176227331161499, -0.09912633895874023, -0.051156818866729736, 0.2883899211883545, 0.10071338713169098, 0.13635535538196564, 0.00002598017454147339, -0.25356587767601013, -0.17372700572013855, -0.27744823694229126, 0.009300624951720238, 0.13574275374412537, -0.1794620156288147, -0.1582837998867035, 0.23795504868030548, -0.10186561942100525, -0.17411737143993378, -0.30404147505760193, 0.700713574886322, -0.06063659116625786, -0.12106315791606903, 0.05289582163095474, -0.05322124436497688, -0.36572808027267456, 0.03425157070159912, -0.0872517079114914, 0.3126232624053955, -0.2872094511985779, 0.03939439356327057, 0.05746838450431824, 0.07268732786178589, 0.13553401827812195, 0.15853488445281982, -0.12878182530403137, 0.3593228757381439, -0.03310057520866394, 0.3460193872451782, -0.048875078558921814, -0.43975016474723816, -0.2815988063812256, 0.1535724699497223, -0.2127690315246582, 0.09607339650392532, 0.1783141791820526, -0.10739760100841522, 0.5414619445800781, -0.37189874053001404, 0.03497761860489845, 0.3706713318824768, -0.17272746562957764, 0.034049756824970245, -0.18943656980991364, -0.2846858501434326, 0.07880096137523651, 0.18390128016471863, -0.03232090547680855, -0.08002246916294098, -0.0435631237924099, 0.37276071310043335, 0.2667349576950073, -0.3871522545814514, 0.22023546695709229, 0.25635281205177307, -0.04474208131432533, -0.07487799972295761, -0.028326554223895073, -0.19607669115066528, -0.1836104691028595, -0.059026315808296204, 0.19121502339839935, 0.6219026446342468, 0.15502983331680298, -0.25316596031188965, -0.1419556587934494, -0.23690581321716309, -0.14439435303211212, -0.06201326474547386, 0.2281482070684433, 0.3150979280471802, 0.110761359333992, -0.11259815841913223, -0.08612735569477081, 0.20712022483348846, -0.5647342801094055, -0.264708936214447, -0.15389427542686462, 0.18142619729042053, 0.00846799649298191, -0.2195853590965271, 0.30807802081108093, 0.42270228266716003, 0.014660057611763477, 0.0535552054643631, 0.02855486050248146, 0.1354120969772339, -0.16197964549064636, 0.2579610049724579, 0.07811960577964783, 0.1648443043231964, 0.2727855443954468, -0.5677770376205444, 0.13321003317832947, 0.4646579921245575, 0.07762622833251953, -0.1782425194978714, -0.08203071355819702, 0.12444886565208435, 0.2989766299724579, 0.18296587467193604, 0.16404610872268677, -0.1839013546705246, 0.1819780468940735, -0.000431843101978302, -0.21238064765930176, -0.043538689613342285, 0.1498968005180359, 0.16381478309631348, -0.23492826521396637, 0.036541350185871124, -0.354216992855072, 0.22356759011745453, 0.45180225372314453, -0.22634470462799072, 0.26485002040863037, 0.3474592864513397, -0.04243651032447815, -0.1756834089756012, -0.00047316402196884155, -0.10340109467506409, 0.33192765712738037, 0.36276498436927795, 0.24225389957427979, 0.007105575874447823, 0.07170239835977554, -0.0730774775147438, 0.13889531791210175, 0.12378210574388504, -0.11277780681848526, 0.29406821727752686, 0.18112364411354065, -0.042267683893442154, -0.32544565200805664, -0.08920775353908539, -0.038253989070653915, 0.1844967007637024, -0.10446280241012573, -0.29789432883262634, 0.013378702104091644, -0.20839138329029083, -0.2377454936504364, 0.012981567531824112, 0.0028978344053030014, 0.03036930412054062, 0.35400351881980896, 0.047979943454265594, -0.25798195600509644, 0.25468748807907104, 0.26182878017425537, 0.2677573561668396, -0.34537380933761597, -0.07911708950996399, 0.05458959937095642, -0.4009779095649719, -0.3158772885799408, 0.21584126353263855, 0.3016785681247711, 0.25560030341148376, 0.18602707982063293, -0.19140765070915222, 0.10035194456577301, -0.16301214694976807, -0.396995484828949, 0.16237762570381165, -0.30617794394493103, 0.061260372400283813, -0.14003987610340118, 0.10189029574394226, 0.021082803606987, -0.5848553776741028, -0.21910838782787323, 0.1448173224925995, -0.11598746478557587, -0.10499592125415802, -0.5161018371582031, -0.16991367936134338, -0.048532404005527496, -0.6011018753051758, -0.4975530207157135, -0.4463850259780884, 0.2768109440803528, -0.19840136170387268, 0.05737489461898804, 0.09794817864894867, 0.12523514032363892, 0.06776388734579086, 0.008916132152080536, 0.17878882586956024, -0.23387451469898224, -0.08126463741064072, 0.17273969948291779, -0.219690203666687, -0.29603511095046997, -0.2503243386745453, -0.12694662809371948, 0.03450746834278107, -0.04537101462483406, -0.3076549470424652, 0.15687109529972076, -0.11726945638656616, 0.1862730085849762, 0.06958958506584167, 0.16463066637516022, 0.3058905601501465, -0.036611899733543396, -0.1327187418937683, -0.1065296158194542, -0.10932785272598267, 0.036310724914073944, 0.36743706464767456, 0.2547687292098999, 0.0032196342945098877, 0.003039328381419182, -0.023649148643016815, 0.5740103721618652, 0.2956699728965759, -0.12115528434515, 0.10027023404836655, 0.047323212027549744, 0.2798266112804413, -0.19511660933494568, -0.3320176899433136, 0.45445606112480164, 0.054715704172849655, -0.059497635811567307, 0.5838136672973633, 0.015741068869829178, -0.4595155119895935, -0.049478888511657715, -0.2481125295162201, -0.24015115201473236, -0.2929202616214752, 0.3575481176376343, 0.1684376299381256, 0.27321985363960266, -0.07389941066503525, -0.2694476544857025, -0.25922462344169617, -0.2080506980419159, 0.11782540380954742, 0.14267680048942566, 0.031976960599422455, 0.03504445031285286, -0.2550530433654785, -0.01484261080622673, -0.24040770530700684, -0.05144805461168289, 0.3507370948791504, 0.2669360935688019, -0.3556981682777405, 0.008583001792430878, -0.13415050506591797, 0.12011969089508057, 0.23525315523147583, -0.32905256748199463, -0.12411072850227356, 0.16914501786231995, 0.6236920356750488, 0.058091484010219574, 0.2449866682291031, -0.27829909324645996, -0.4077101945877075, 0.5713489055633545, 0.327094167470932, -0.3180732727050781, 0.029558643698692322, 0.1805696338415146, 0.4551045298576355, 0.019631944596767426, -0.11999458074569702, 0.06692984700202942, -0.41885700821876526, -0.39545610547065735, 0.2638205885887146, 0.41924408078193665, -0.030220746994018555, 0.14443647861480713, 0.051375001668930054, 0.2739145755767822, -0.09937219321727753, 0.5432237982749939, 0.04442915320396423, 0.0042276084423065186, 0.5168449282646179, 0.06524285674095154, -0.021387185901403427, -0.1969532072544098, 0.15595149993896484, 0.25225239992141724, -0.07593370974063873, -0.25593793392181396, 0.08561252057552338, -0.19646713137626648, 0.37210941314697266, 0.38644179701805115, 0.1251039206981659, 0.015251049771904945, -0.09599131345748901, 0.03403014317154884, -0.22133111953735352, 0.3231510519981384, 0.1718503087759018, 0.07879865169525146, -0.29463833570480347, -0.1797347068786621, 0.40431493520736694, 0.021440520882606506, -0.07492563128471375, 0.14125430583953857, 0.18432927131652832, -0.205735445022583, 0.35135504603385925, -0.1385088562965393, 1.2044341564178467, 0.2380201816558838, 0.05688927695155144, 0.26590827107429504, -0.10963784903287888, 0.08832861483097076, -0.499572217464447, -0.08496423810720444, 0.39079195261001587, 0.2597652077674866, -0.019022375345230103, 0.2098601907491684, -0.11789943277835846, 0.2537155747413635, -0.43998056650161743, 0.24260947108268738, 0.11508102715015411, -0.007401373703032732, 0.23064231872558594, 0.5852322578430176, -0.17134955525398254, -0.5080521702766418, -0.24036842584609985, 0.21984994411468506, 0.09457521140575409, 0.06718691438436508, 0.1623474657535553, -0.27439042925834656, 0.11779411882162094, -0.012320257723331451, -0.6150583624839783, 0.09306037425994873, -0.24320589005947113, -0.20297154784202576, -0.42964598536491394, -0.14721959829330444, 0.37992700934410095, 0.2104635238647461, 0.29859036207199097, 0.016884293407201767, -0.22639621794223785, 0.17326277494430542, 0.08656258881092072, -0.022394580766558647, 0.08274725824594498, -0.1729470044374466, 0.4044261872768402, -0.271045058965683, -0.2950925827026367, 0.20022620260715485, 0.0704178512096405, 0.013364389538764954, -0.40022552013397217, -0.2600349187850952, 0.24563172459602356, 0.14672887325286865, 0.2403479814529419, 0.6309661865234375, -0.03596960008144379, -0.2770216464996338, 0.1873919665813446, -0.18144544959068298, -0.38845765590667725, 0.22417952120304108, -0.27625107765197754, -0.1189771518111229, -0.2200239598751068, 0.06159631162881851, 0.2748681604862213, -0.0635087788105011, 0.33371496200561523, 0.32253992557525635, -0.06690534204244614, -0.3963093161582947, 0.03044530749320984, -0.010454759001731873, -0.44092488288879395, -0.020186465233564377, 0.09051094204187393, -0.12795361876487732, -0.21170365810394287, 0.44161996245384216, 0.20736229419708252, -0.07166677713394165, -0.014257915318012238, -0.046450525522232056, -0.3322637379169464, -0.016414038836956024, 0.09120449423789978, 0.1912333220243454, -0.09927581250667572, 0.37921130657196045, -0.03255905956029892, 0.11845036596059799, -0.4336080849170685, 0.076199010014534, -0.16268163919448853, 0.24378839135169983, 0.26326149702072144, -0.14266104996204376, 0.24889594316482544, 0.04140834882855415, 0.15913894772529602, 0.01020636036992073, -0.06190534681081772, -0.2223881483078003, -0.16574251651763916, 0.08454615622758865, 0.11847588419914246, 0.19009284675121307, 0.08741581439971924, -0.04353989288210869, -0.17226305603981018, 0.10139291733503342, 0.2535378932952881, 0.11840672791004181, -0.03530218079686165, 0.15907107293605804, -0.024771317839622498, -0.05737658590078354, 0.12676092982292175, -0.022256970405578613, 0.31714943051338196, 0.3422955870628357, 0.0590776689350605, 0.1731785088777542, 0.009803257882595062, -0.21613754332065582, -0.00247187539935112, 0.35613441467285156, 0.21034672856330872, 0.023045141249895096, 0.04137714207172394, 0.1574684977531433, 0.028891518712043762, 0.2351684868335724, 0.04910561442375183, 0.054847974330186844, -0.04705414921045303, -0.021470610052347183, 0.2766653299331665, 0.26469770073890686, -0.15335290133953094, 0.24257194995880127, -0.25376275181770325, -0.3012733459472656, 0.129177063703537, 0.10176072269678116, 0.10319288074970245, -0.13119247555732727, 0.27172669768333435, -0.10537442564964294, -0.23172622919082642, 0.049029044806957245, -0.035723548382520676, 0.23772047460079193, 0.12845595180988312, -0.08594701439142227, -0.05626962333917618, 0.031223509460687637, 0.22075095772743225, -0.03867477551102638, -0.1650407612323761, 0.5045081377029419, 0.05536641553044319, 0.09405471384525299, 0.2753016948699951, -0.16371718049049377, 0.09640470892190933, 0.056849170476198196, 0.2194768339395523, 0.15393352508544922, 0.051720574498176575, 0.4231325685977936, 0.04822012782096863, -0.31175023317337036, -0.14600157737731934, 0.23339952528476715, 0.10638369619846344, 0.01084507629275322, -0.22797009348869324, -0.2169211506843567, -0.25330448150634766, -0.03146332874894142, 0.016939453780651093, -0.34706953167915344, -0.047203026711940765, 0.15840089321136475, -0.13481836020946503, -0.1955415904521942, -0.18274527788162231, -0.2227245420217514, 0.15877218544483185, -0.17298531532287598, 0.36216026544570923, 0.23587551712989807, -0.15192584693431854, 0.15467295050621033, 0.4195308983325958, 0.5034294724464417, 0.016471870243549347, -0.2659991383552551, 0.25527241826057434, 0.07221584022045135, -0.11349645256996155, 0.0042060017585754395, 0.3613187372684479, 0.043830506503582, 0.05309409275650978, 0.23833099007606506, 0.22130247950553894, -0.2607591152191162, -0.23579339683055878, 0.09989767521619797, -0.19373273849487305, -0.11343039572238922, 0.09294630587100983, -0.05395219102501869, 0.19049043953418732, -0.4325956404209137, -0.03725755587220192, -0.6131446957588196, 0.14929772913455963, 0.5136849284172058, -0.23913916945457458, 0.079109326004982, -0.12822464108467102, 0.11622683703899384, -0.30671995878219604, 0.33763307332992554, 0.34897348284721375, 0.1395459771156311, -0.21940729022026062, -0.20143938064575195, -0.3209106922149658, -0.014735154807567596, -0.06313037127256393, -0.10132340341806412, -0.36478540301322937, 0.09813680499792099, 0.452494740486145, 0.3658343553543091, -0.268214613199234, -0.22218388319015503, -0.380754679441452, 0.18275229632854462, -0.314142644405365, 0.25700512528419495, -0.025315027683973312, 0.42052170634269714, 0.09024806320667267, -0.24136853218078613, -0.2607530653476715, 0.18645329773426056, 0.08945316076278687, -0.13241225481033325, -0.08810041099786758, -0.12447361648082733, -0.05158373340964317, 0.10090285539627075, -0.04019301012158394, 0.5253704786300659, -0.29896193742752075, -0.12349580228328705, -0.16563406586647034, 0.0010453090071678162, -0.18615669012069702, -0.05951825529336929, -0.042782023549079895, 0.31048327684402466, -0.2220739722251892, 0.3915454149246216, -0.035049714148044586, -0.21252170205116272, 0.12080447375774384, 0.06129056215286255, -0.29695606231689453, 0.1123979240655899, -0.2163970172405243, 0.040753431618213654, 0.03706236556172371, 0.35082438588142395, 0.00208102073520422, -0.0512155182659626, -0.29303622245788574, -0.22002965211868286, 0.5129659175872803, -0.14261670410633087, -0.2901851534843445, -0.02678871899843216, 0.3327944278717041, 0.12209557741880417, 0.10836581140756607, -0.6881363391876221, 0.27568405866622925, 0.23023734986782074, 0.14843681454658508, -0.0474422425031662, 0.19266529381275177, 0.05839981511235237, -0.0780559629201889, -0.043835896998643875, -0.048791829496622086, 0.05657625198364258, -0.21921584010124207, 0.07280583679676056, -0.3567443788051605 ]
https://github.com/huggingface/datasets/issues/1843
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.
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).
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.40575072169303894, 0.1195162981748581, -0.003910508006811142, 0.1509026139974594, 0.02204599604010582, -0.08532147109508514, -0.1335306316614151, -0.006255738437175751, -0.24000215530395508, 0.12572956085205078, -0.2750511169433594, -0.3189474046230316, 0.10233308374881744, 0.13984733819961548, 0.14491687715053558, -0.09393058717250824, 0.12054319679737091, 0.025905482470989227, -0.3361460566520691, -0.2657546401023865, -0.08172166347503662, 0.04912075400352478, -0.21699127554893494, -0.2889327108860016, -0.24526888132095337, -0.07997232675552368, -0.35138291120529175, -0.12463795393705368, -0.4012850224971771, -0.1996172070503235, 0.11502762138843536, 0.28579166531562805, 0.0613890066742897, 0.39383187890052795, -0.00010921758803306147, -0.11872192472219467, 0.27976661920547485, -0.29491835832595825, -0.46902069449424744, -0.21306106448173523, -0.46738338470458984, -0.20183193683624268, -0.3875802755355835, 0.09611876308917999, -0.06335742771625519, -0.1115114688873291, 0.205020472407341, 0.11715616285800934, 0.34081119298934937, 0.5179667472839355, 0.19697561860084534, 0.0698205828666687, 0.44410210847854614, -0.2930300533771515, 0.06935692578554153, -0.04178714379668236, -0.019698508083820343, 0.29127037525177, 0.25342249870300293, 0.021174870431423187, 0.19610098004341125, 0.08921186625957489, -0.05230356752872467, -0.13984906673431396, -0.06792494654655457, -0.24158933758735657, -0.08774813264608383, -0.4039776921272278, 0.4737979769706726, 0.3026018738746643, 0.8854362368583679, -0.12355168163776398, -0.057213157415390015, 0.05575169622898102, 0.34735438227653503, -0.15457823872566223, 0.059496037662029266, -0.036159317940473557, -0.23031087219715118, 0.21894636750221252, 0.03700122609734535, -0.3095416724681854, -0.2542937397956848, 0.4501918852329254, -0.02630278468132019, 0.3299732208251953, -0.042636677622795105, 0.09615566581487656, 0.13980762660503387, -0.20916634798049927, -0.11205559968948364, -0.06455153226852417, -0.1094447448849678, 0.1329551488161087, -0.34834226965904236, -0.07176261395215988, 0.11174363642930984, -0.014107387512922287, 0.04508267343044281, -0.24686384201049805, -0.23099304735660553, 0.005751190707087517, -0.08934386074542999, -0.087177574634552, 0.18811500072479248, 0.379970908164978, -0.02955983579158783, -0.11595475673675537, 0.15222907066345215, -0.017390824854373932, 0.014199420809745789, 0.009938113391399384, -0.11142893135547638, 0.05474087595939636, -0.34089580178260803, 0.1652858853340149, 0.0806235745549202, -0.20363359153270721, -0.2136307656764984, 0.08811913430690765, -0.20036613941192627, -0.04662106931209564, -0.10082442313432693, 0.4376763701438904, -0.0591086745262146, 0.3093276917934418, -0.06037764251232147, 0.19304490089416504, -0.14792263507843018, -0.3695373237133026, -0.08712638914585114, -0.016754254698753357, -0.271851122379303, 0.08073209971189499, 0.23283985257148743, 0.25965192914009094, 0.05901335924863815, 0.09371272474527359, 0.049212679266929626, -0.06658618897199631, -0.23986154794692993, -0.038464173674583435, 0.21159034967422485, 0.1285414844751358, 0.06984862685203552, 0.22051361203193665, -0.09208448976278305, -0.22504465281963348, -0.042682260274887085, 0.10047118365764618, 0.08373969793319702, -0.07450257986783981, -0.12879912555217743, 0.192066490650177, -0.17977292835712433, -0.314100980758667, -0.31805357336997986, 0.5080110430717468, -0.24146200716495514, -0.06528718769550323, 0.032365817576646805, 0.10246177017688751, -0.4688637852668762, -0.021020246669650078, 0.04072573035955429, 0.559644877910614, -0.4436154067516327, -0.030783958733081818, 0.08801845461130142, -0.03090389259159565, 0.14536598324775696, 0.1575251817703247, -0.15458054840564728, 0.31936195492744446, -0.021448802202939987, 0.3011642098426819, -0.028509773313999176, -0.22305037081241608, -0.6605327129364014, 0.07810626924037933, -0.09664767980575562, -0.06668446958065033, 0.06184515729546547, -0.009019695222377777, 0.6679308414459229, 0.04562952741980553, -0.15640099346637726, 0.44662392139434814, 0.04941190034151077, -0.07151200622320175, -0.14203086495399475, -0.3319181799888611, 0.28921735286712646, -0.01979506015777588, 0.16870246827602386, -0.0537237748503685, 0.13308046758174896, 0.30839473009109497, 0.3169301450252533, -0.014078479260206223, 0.29645460844039917, 0.34746605157852173, 0.08166515827178955, -0.01889573037624359, 0.04849064722657204, 0.024598926305770874, -0.310413658618927, 0.1486809402704239, 0.2196628600358963, 0.48366644978523254, -0.0978781133890152, 0.0032813549041748047, -0.2344825267791748, -0.1308935135602951, -0.36034831404685974, -0.10231811553239822, 0.18766357004642487, 0.3728756010532379, 0.1479761302471161, 0.09668631851673126, -0.07755713164806366, 0.3941009044647217, -0.2766842246055603, -0.10551523417234421, -0.08797158300876617, 0.42491310834884644, -0.006177990697324276, -0.2714397609233856, 0.18619999289512634, 0.204086035490036, 0.3342067003250122, -0.09530648589134216, -0.026194052770733833, 0.2505722641944885, -0.24820339679718018, 0.36514225602149963, 0.11219548434019089, 0.09923102706670761, 0.26522400975227356, -0.5659911632537842, 0.21993784606456757, 0.44329699873924255, 0.22069978713989258, -0.32553279399871826, 0.005689781624823809, -0.1550021767616272, 0.2652454674243927, 0.1565914750099182, 0.09057612717151642, 0.029094696044921875, 0.45529595017433167, -0.08147896826267242, -0.16549324989318848, 0.034561216831207275, 0.2561272978782654, 0.22512470185756683, -0.17972317337989807, -0.11533241719007492, -0.2786635160446167, 0.2571583092212677, 0.3868493437767029, -0.30513009428977966, 0.262322336435318, 0.15704919397830963, -0.03619912639260292, -0.26139625906944275, -0.019696390256285667, -0.10091522336006165, 0.2762659788131714, 0.17339137196540833, 0.3040487766265869, 0.09634799510240555, 0.056576456874608994, -0.062208548188209534, 0.20410816371440887, 0.02133047766983509, -0.17221441864967346, 0.2142886072397232, 0.13728274405002594, -0.2012932002544403, -0.39917343854904175, 0.0878325030207634, 0.18491803109645844, 0.3150724172592163, -0.09807936102151871, -0.2744602560997009, -0.21131965517997742, -0.269347220659256, -0.30654263496398926, -0.09197405725717545, -0.35154539346694946, -0.08077928423881531, 0.1875152885913849, 0.07191900908946991, 0.13176441192626953, 0.21879297494888306, 0.2243710458278656, 0.23386037349700928, -0.3013220429420471, -0.04228903353214264, 0.028026193380355835, -0.3736099302768707, -0.41837209463119507, 0.0749586671590805, 0.3446519672870636, 0.26060882210731506, 0.249582439661026, -0.19365330040454865, 0.017233707010746002, -0.33355650305747986, -0.20545458793640137, 0.2699443995952606, -0.115175761282444, 0.04985561966896057, -0.2566850185394287, 0.3304833471775055, -0.05549292266368866, -0.2536815404891968, -0.15106087923049927, -0.07299666106700897, 0.07809081673622131, -0.029139678925275803, -0.33418744802474976, -0.1840234249830246, 0.08490750193595886, -0.5110990405082703, -0.4248250424861908, -0.2990657687187195, 0.3247791826725006, -0.37236160039901733, -0.07137230783700943, 0.1569875329732895, 0.04702744260430336, 0.12903353571891785, -0.07992514222860336, 0.004536233842372894, -0.42044538259506226, -0.09208688139915466, 0.16202545166015625, -0.06627427041530609, -0.4101419448852539, 0.12325234711170197, 0.14406800270080566, 0.16362740099430084, -0.04567866399884224, -0.39986056089401245, 0.24959202110767365, -0.11164751648902893, 0.2885931730270386, 0.21770891547203064, 0.11705425381660461, 0.327597439289093, -0.15101785957813263, -0.07645896822214127, -0.13975763320922852, -0.19710493087768555, 0.03624666854739189, 0.37865039706230164, 0.45170754194259644, 0.10345405340194702, 0.09493475407361984, 0.0015621781349182129, 0.5036546587944031, 0.24244174361228943, -0.0031208074651658535, 0.1995587944984436, -0.0323326550424099, 0.3451847434043884, -0.12026932835578918, -0.4784107804298401, 0.34221991896629333, -0.12093155086040497, -0.10801379382610321, 0.3984335660934448, -0.02373836189508438, -0.4457188844680786, -0.2867482900619507, -0.2088177502155304, -0.1730729043483734, -0.3948392868041992, 0.20358534157276154, 0.3248838782310486, 0.19424957036972046, 0.0894131064414978, -0.06773513555526733, -0.06992441415786743, -0.2438025176525116, 0.25303199887275696, 0.19205689430236816, -0.1503227800130844, 0.04578894376754761, -0.2262021154165268, -0.061570923775434494, -0.5227596759796143, -0.0031611844897270203, 0.08835765719413757, 0.6162902116775513, -0.5153849124908447, 0.2788066864013672, 0.1637888103723526, 0.11187744140625, 0.44985243678092957, -0.46745556592941284, 0.025674598291516304, 0.25799381732940674, 0.5658133029937744, -0.02449331060051918, 0.08525047451257706, -0.18263915181159973, -0.32910406589508057, 0.7147034406661987, 0.1901455819606781, -0.2403813898563385, 0.14965443313121796, 0.07431180030107498, 0.4221894145011902, -0.09127552062273026, -0.10627281665802002, 0.08183330297470093, -0.4652073383331299, -0.36230432987213135, 0.0167631097137928, 0.21979528665542603, 0.023223865777254105, 0.30309778451919556, 0.16810396313667297, 0.28683364391326904, -0.08583064377307892, 0.27004387974739075, -0.0696943998336792, -0.06538809835910797, 0.619154155254364, 0.1840454339981079, 0.17789232730865479, -0.09543278813362122, -0.12224233895540237, 0.38810816407203674, -0.11372782289981842, -0.34067049622535706, 0.0815930888056755, -0.21868984401226044, 0.2896745502948761, 0.44770681858062744, 0.1923993080854416, 0.13422490656375885, 0.09141042828559875, 0.054112449288368225, -0.2861168682575226, 0.24857869744300842, 0.29365959763526917, 0.17742714285850525, -0.33531349897384644, -0.4066302180290222, 0.4526826739311218, -0.11070485413074493, -0.0792786180973053, 0.1087721735239029, 0.11368940770626068, -0.1474587619304657, 0.10332950949668884, -0.2280927151441574, 1.34189772605896, 0.2603319585323334, -0.1036197617650032, 0.15968060493469238, -0.39646297693252563, 0.048921581357717514, -0.48837143182754517, 0.057752594351768494, 0.24189835786819458, 0.12644948065280914, -0.0792926624417305, 0.23860539495944977, -0.07683370262384415, 0.04886236786842346, -0.44084519147872925, 0.45171433687210083, 0.03552831709384918, 0.08242546021938324, 0.2013557404279709, 0.5475210547447205, -0.14085006713867188, -0.2970794439315796, -0.18802206218242645, 0.22207413613796234, 0.11915747076272964, 0.4247288703918457, 0.07017096877098083, -0.14907397329807281, 0.15834097564220428, -0.08466462045907974, -0.8224697113037109, 0.10918405652046204, -0.3392356038093567, -0.039640024304389954, -0.45345255732536316, -0.04671626538038254, 0.1759992390871048, 0.045441776514053345, 0.3028600811958313, -0.009631192311644554, -0.32843664288520813, 0.3235792815685272, -0.11580697447061539, -0.0665796548128128, 0.12939488887786865, -0.10589831322431564, 0.2552308142185211, -0.20619741082191467, -0.455262154340744, 0.1773909628391266, 0.15392069518566132, 0.007360294461250305, -0.3866431713104248, -0.2827110290527344, 0.02249322645366192, 0.09629658609628677, 0.25354063510894775, 0.5415589213371277, 0.05583815276622772, -0.1877816915512085, 0.1313236504793167, -0.10406263172626495, -0.25732994079589844, 0.26656824350357056, -0.20133250951766968, -0.2123297154903412, -0.23596175014972687, 0.4419170320034027, 0.03647433966398239, -0.07239554822444916, 0.4562738239765167, 0.5152432322502136, -0.18427711725234985, -0.28911396861076355, -0.11906913667917252, -0.07730945944786072, -0.5514753460884094, -0.08087185025215149, -0.049355071038007736, 0.09203594923019409, -0.255332350730896, 0.34987616539001465, 0.06987886130809784, 0.017356203868985176, -0.09593416750431061, -0.1991744041442871, -0.15583810210227966, -0.09776157140731812, 0.28871652483940125, 0.27104902267456055, -0.2001207172870636, 0.1303311139345169, 0.2551153004169464, -0.13905037939548492, -0.34071195125579834, 0.11936362832784653, -0.14130175113677979, 0.18808358907699585, 0.285123348236084, -0.29648274183273315, 0.3054428994655609, 0.005374547094106674, 0.08207900822162628, -0.13423693180084229, -0.08786419779062271, -0.1190018281340599, -0.04584807902574539, 0.10821449756622314, 0.06909485906362534, -0.00240185484290123, -0.1677379608154297, -0.3603920340538025, -0.15494884550571442, 0.24081197381019592, 0.18007609248161316, 0.26948168873786926, -0.11452415585517883, 0.022833630442619324, -0.005933151580393314, 0.01479046605527401, 0.14969700574874878, 0.0004003038629889488, 0.2844320237636566, 0.5005567073822021, 0.1575220674276352, 0.21742725372314453, 0.05948193743824959, -0.02652403712272644, -0.20284506678581238, 0.33821043372154236, 0.15226826071739197, -0.16358612477779388, 0.1632893681526184, -0.009359035640954971, 0.09800070524215698, 0.19106712937355042, 0.15485115349292755, 0.24135586619377136, -0.04168172553181648, -0.18475329875946045, 0.42563366889953613, 0.16498392820358276, -0.17445465922355652, 0.02803819626569748, -0.14189478754997253, -0.05083458125591278, 0.02317853271961212, 0.04877195134758949, -0.00499589741230011, -0.32027721405029297, 0.1585063934326172, -0.03471184894442558, 0.008387528359889984, 0.08323119580745697, 0.03588702902197838, 0.2588764727115631, 0.030473336577415466, -0.17394912242889404, 0.08404017239809036, 0.0398256853222847, -0.07761666178703308, -0.04062367230653763, -0.1657276302576065, 0.33300545811653137, -0.06223509833216667, 0.24786579608917236, 0.12069439888000488, -0.20343568921089172, 0.06793999671936035, 0.1265934556722641, 0.067818284034729, 0.0898023396730423, 0.05542030185461044, 0.40781667828559875, 0.038784999400377274, -0.1463385820388794, -0.2957148849964142, 0.3513890206813812, 0.1444031149148941, -0.06649856269359589, -0.0986275002360344, -0.36918848752975464, -0.35931143164634705, 0.14439356327056885, 0.05537897348403931, -0.2998838424682617, 0.04089999943971634, 0.2840971350669861, -0.17506158351898193, -0.16259250044822693, -0.3025868833065033, -0.2162390649318695, 0.04076981917023659, -0.3084474802017212, 0.30353012681007385, 0.1948903501033783, -0.024065345525741577, 0.1623741239309311, 0.5255323052406311, 0.4240313470363617, 0.13625749945640564, -0.21811555325984955, 0.42444294691085815, 0.1053227037191391, -0.07066307961940765, 0.09540185332298279, 0.4309617877006531, 0.11977557837963104, 0.03171727433800697, 0.2487390637397766, 0.13319119811058044, -0.13525278866291046, -0.09084084630012512, 0.030152905732393265, 0.0016618818044662476, -0.1724865883588791, 0.05893748998641968, 0.0017149820923805237, 0.3237992227077484, -0.5256596207618713, -0.17043350636959076, -0.6494346261024475, 0.10553637892007828, 0.3118797838687897, -0.2809121906757355, 0.27774593234062195, -0.220042884349823, 0.07651042193174362, -0.3534977436065674, 0.35163092613220215, 0.3177817165851593, 0.15684105455875397, -0.20558257400989532, -0.22691771388053894, -0.42492246627807617, -0.13975688815116882, -0.13533775508403778, 0.09342213720083237, -0.28003573417663574, 0.09738054126501083, 0.26409950852394104, 0.22546282410621643, 0.0399106927216053, -0.011921923607587814, -0.4218789041042328, 0.30824294686317444, -0.18785417079925537, 0.10518194735050201, 0.13755913078784943, 0.5417038798332214, -0.05048505216836929, -0.08526857197284698, -0.035154253244400024, 0.1570746898651123, 0.013197764754295349, -0.061350639909505844, -0.21571606397628784, -0.1166856586933136, -0.2601780593395233, 0.1119748204946518, 0.049054235219955444, 0.5883556008338928, -0.1400185227394104, -0.0703616514801979, -0.4372203052043915, -0.10420632362365723, -0.0301352646201849, -0.043572310358285904, -0.019224779680371284, 0.16321274638175964, -0.08836448192596436, 0.36986351013183594, -0.23260952532291412, -0.2443535327911377, -0.09029517322778702, 0.35235166549682617, -0.3444110155105591, -0.06611490249633789, -0.16406406462192535, 0.16833889484405518, -0.059914011508226395, 0.1166471615433693, -0.02664780244231224, -0.057541728019714355, -0.29331111907958984, -0.09798029065132141, 0.41379261016845703, -0.19227725267410278, -0.37722790241241455, -0.2222599983215332, 0.3068435788154602, -0.014947820454835892, 0.14554162323474884, -0.6260256171226501, 0.24533477425575256, 0.22478124499320984, 0.05619523674249649, -0.08777603507041931, 0.14868690073490143, 0.14266443252563477, 0.1332055777311325, -0.06931766867637634, 0.05543449521064758, 0.2344234585762024, -0.22376903891563416, 0.2015014886856079, -0.20662376284599304 ]
https://github.com/huggingface/datasets/issues/1843
@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?
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).
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.3741523027420044, 0.05199021100997925, -0.04828915372490883, 0.07955196499824524, -0.0135705741122365, 0.01749887317419052, 0.0815657302737236, 0.18861357867717743, -0.20640353858470917, 0.38557493686676025, -0.33914217352867126, -0.5373642444610596, -0.05325821787118912, -0.010436661541461945, 0.1305616796016693, -0.2101036012172699, 0.0005454458296298981, -0.061969950795173645, -0.2461216151714325, -0.10636992752552032, -0.10544751584529877, 0.03694853186607361, -0.12918250262737274, -0.023843955248594284, -0.20577961206436157, -0.10446888953447342, -0.3355357050895691, -0.06736423075199127, -0.3276142179965973, -0.26889297366142273, 0.01965750753879547, 0.2734156847000122, 0.11549969017505646, 0.40121445059776306, -0.00010457434109412134, 0.00014938414096832275, 0.40673738718032837, -0.048194922506809235, -0.34581542015075684, -0.17425137758255005, -0.16455809772014618, -0.2898884415626526, -0.4356113076210022, 0.059661924839019775, -0.2253369390964508, -0.18716895580291748, 0.26307761669158936, 0.04619724303483963, 0.3312252163887024, 0.5269785523414612, 0.21982799470424652, -0.057560525834560394, 0.3618279695510864, -0.3024643063545227, 0.3061881363391876, -0.12634122371673584, -0.08863012492656708, 0.3788728415966034, 0.36227935552597046, 0.12810856103897095, 0.19285055994987488, 0.25640881061553955, -0.04943946748971939, -0.12817752361297607, 0.009310982190072536, -0.3232196569442749, -0.06198807805776596, -0.378190815448761, 0.11266173422336578, 0.2508860230445862, 0.8849618434906006, 0.11650977283716202, -0.2376440167427063, -0.045370228588581085, 0.18586888909339905, -0.08202801644802094, 0.17163726687431335, 0.08199608325958252, -0.09749795496463776, 0.2420729547739029, 0.010666701942682266, -0.26991593837738037, -0.2761211693286896, 0.2845783531665802, 0.06108216941356659, 0.14045602083206177, -0.0721467062830925, 0.1089523434638977, 0.2183653563261032, -0.20038771629333496, -0.2603640854358673, 0.18270687758922577, -0.09529593586921692, 0.2284318506717682, -0.11515037715435028, -0.03163909912109375, 0.23588421940803528, -0.16714739799499512, -0.053756460547447205, -0.17103226482868195, -0.13050338625907898, -0.1916559636592865, -0.20570072531700134, 0.09875248372554779, -0.0011437740176916122, 0.42258408665657043, -0.025822080671787262, -0.09396599233150482, 0.24319057166576385, -0.1216178685426712, -0.04087672010064125, 0.0672025978565216, -0.16116569936275482, -0.15631696581840515, -0.47414278984069824, 0.2587382197380066, 0.08589882403612137, -0.15744534134864807, -0.22320708632469177, 0.00814024731516838, -0.06438618898391724, -0.026837507262825966, 0.026604339480400085, 0.3763579726219177, -0.0467444509267807, 0.2172408252954483, 0.07224658131599426, 0.24953453242778778, -0.0725356936454773, -0.3502613604068756, -0.06449954956769943, 0.09667443484067917, -0.5013256072998047, 0.17742519080638885, 0.3367811441421509, 0.12709468603134155, 0.022837571799755096, -0.02180996909737587, 0.14302301406860352, -0.1520000398159027, -0.15420927107334137, -0.13164971768856049, 0.07182636857032776, 0.14739802479743958, 0.1632305383682251, 0.2887651324272156, -0.06352539360523224, -0.20757730305194855, -0.041488997638225555, 0.02018945850431919, -0.12725210189819336, -0.38535693287849426, -0.1358780711889267, 0.2640461325645447, -0.12399715930223465, -0.053866222500801086, -0.3378988802433014, 0.4284425377845764, -0.25009387731552124, -0.2704095244407654, -0.18366026878356934, 0.2193414717912674, -0.40414929389953613, -0.09899373352527618, -0.06161285564303398, 0.5527359247207642, -0.26262933015823364, 0.1005532369017601, -0.0642993301153183, -0.07227620482444763, 0.0727321207523346, 0.3385041356086731, -0.30980706214904785, 0.2924598455429077, -0.11300100386142731, 0.2416451871395111, 0.08202318847179413, -0.34339049458503723, -0.6367425918579102, 0.15747559070587158, -0.37024933099746704, -0.12314789742231369, 0.362251341342926, -0.08138276636600494, 0.7645025253295898, -0.38590553402900696, -0.041577935218811035, 0.25804880261421204, 0.2841433584690094, 0.008238643407821655, -0.2456495612859726, -0.295038640499115, 0.12855762243270874, 0.09932853281497955, 0.03454248234629631, 0.12004905939102173, 0.2588185667991638, 0.3030824065208435, 0.31453025341033936, -0.1403217315673828, 0.19044628739356995, 0.3736030161380768, 0.06487548351287842, 0.14244996011257172, -0.04100138694047928, -0.033504873514175415, -0.07726652920246124, 0.042879797518253326, 0.1194465309381485, 0.2878555953502655, 0.1323675960302353, -0.18398579955101013, -0.3479399085044861, -0.21244624257087708, -0.389998197555542, -0.0671340599656105, 0.2137281596660614, 0.3639136254787445, 0.13348020613193512, 0.05469883978366852, 0.14922070503234863, 0.3630465865135193, -0.3433389961719513, -0.16818568110466003, -0.12033902108669281, 0.37633901834487915, -0.1943970024585724, -0.09724520891904831, 0.20113617181777954, 0.18187066912651062, 0.3316044807434082, -0.09486140310764313, -0.028607754036784172, 0.1882953643798828, -0.2663230001926422, 0.2544403374195099, 0.2089388519525528, 0.18665561079978943, 0.2824366092681885, -0.7307384014129639, 0.3003788888454437, 0.32129472494125366, 0.2425290048122406, -0.124308280646801, -0.12570974230766296, -0.03052990883588791, 0.25921642780303955, 0.06854958832263947, 0.10280568897724152, -0.050960782915353775, 0.4734236001968384, 0.00432896614074707, -0.07415662705898285, -0.025405429303646088, 0.24930982291698456, 0.2675669491291046, -0.33081698417663574, -0.1631772667169571, -0.1564381718635559, 0.08932384848594666, 0.3958445191383362, -0.14097559452056885, 0.030446060001850128, 0.21754416823387146, 0.0073718298226594925, -0.18569764494895935, -0.03863567113876343, -0.15484443306922913, 0.18786635994911194, 0.2940441966056824, 0.2710776925086975, 0.04188872128725052, 0.19363385438919067, -0.11560076475143433, 0.22622951865196228, 0.084429070353508, -0.23446272313594818, 0.1612134426832199, 0.1995626837015152, 0.011398866772651672, -0.19934895634651184, -0.13308611512184143, 0.2303619086742401, 0.2885449230670929, -0.19606317579746246, -0.31737038493156433, 0.03561672568321228, -0.2672509551048279, -0.12097829580307007, -0.07980828732252121, -0.2716398239135742, -0.11204925179481506, 0.17614448070526123, 0.22192032635211945, -0.13003258407115936, 0.052501700818538666, 0.30185437202453613, 0.26637858152389526, -0.23952963948249817, 0.1697390377521515, -0.08989967405796051, -0.20393317937850952, -0.2418345808982849, 0.15179595351219177, 0.313950777053833, -0.023502785712480545, 0.260810911655426, -0.1703243851661682, 0.25813448429107666, -0.41933518648147583, -0.24843478202819824, 0.07255524396896362, -0.15654365718364716, 0.12843164801597595, -0.38581740856170654, 0.287535697221756, 0.04107274115085602, -0.45584025979042053, -0.048021115362644196, -0.04962272197008133, -0.006789855659008026, 0.02230009436607361, -0.2981390357017517, -0.1353982836008072, 0.0043049827218055725, -0.5185346603393555, -0.5353164076805115, -0.48768240213394165, 0.340976744890213, -0.2174546867609024, 0.04693169891834259, 0.13933035731315613, 0.11687304824590683, 0.15930026769638062, -0.09936074912548065, 0.18086674809455872, -0.2902183532714844, -0.2010563164949417, 0.15144169330596924, -0.37612196803092957, -0.3692212998867035, 0.09506049007177353, 0.24834485352039337, -0.042692217975854874, -0.11076735705137253, -0.48232945799827576, 0.16883543133735657, -0.34148165583610535, 0.1768949329853058, 0.054220378398895264, 0.026152798905968666, 0.1799418330192566, -0.16570605337619781, -0.13135503232479095, -0.0023249462246894836, -0.20003846287727356, -0.06194250285625458, 0.30848878622055054, 0.2828819155693054, -0.14652153849601746, 0.17686885595321655, 0.12625379860401154, 0.7308596968650818, 0.3372606337070465, 0.21937301754951477, 0.22548072040081024, 0.05925089865922928, 0.3217620253562927, -0.2576296031475067, -0.42479145526885986, 0.43192601203918457, -0.19595292210578918, 0.0024233385920524597, 0.45223933458328247, 0.0829087346792221, -0.32562071084976196, -0.2853493094444275, -0.40648025274276733, -0.39025408029556274, -0.42016690969467163, 0.055118098855018616, 0.32707059383392334, 0.09527251869440079, 0.12884891033172607, -0.13038790225982666, -0.18084880709648132, -0.2825465202331543, 0.2367129772901535, 0.39333173632621765, -0.061327014118433, 0.04823041334748268, -0.055414989590644836, -0.10637521743774414, -0.29483652114868164, 0.16871367394924164, 0.11416235566139221, 0.3505271077156067, -0.5199874043464661, 0.2094111144542694, 0.2939939498901367, 0.14026683568954468, 0.5945841073989868, -0.30369386076927185, 0.23898881673812866, 0.0857536792755127, 0.4931541383266449, 0.012978583574295044, 0.08223015815019608, -0.19533604383468628, -0.22386525571346283, 0.6836928129196167, 0.23629255592823029, -0.22470515966415405, 0.23382653295993805, 0.1791151463985443, 0.21379534900188446, -0.03914687782526016, -0.10975552350282669, 0.035649314522743225, -0.35319578647613525, -0.4895445704460144, 0.12203279137611389, 0.3398806154727936, 0.1282113790512085, 0.06626006215810776, 0.011532194912433624, 0.27799198031425476, -0.11564745008945465, 0.3644886314868927, 0.03953036665916443, 0.02472619339823723, 0.624125599861145, 0.1497081220149994, 0.17967650294303894, -0.09256065636873245, -0.17485427856445312, 0.504925012588501, -0.004521395079791546, -0.27216097712516785, 0.05290462076663971, -0.18283142149448395, 0.1526130884885788, 0.49527493119239807, 0.003414660692214966, -0.0024313032627105713, 0.15197798609733582, 0.08384767174720764, -0.23810654878616333, 0.31399253010749817, 0.20474988222122192, 0.005121804773807526, -0.42767176032066345, -0.3296128511428833, 0.4816828668117523, 0.08168129622936249, -0.18380895256996155, 0.2121179699897766, 0.19736012816429138, -0.04827055335044861, 0.12124085426330566, -0.30542004108428955, 1.2670204639434814, -0.03450839966535568, -0.026274293661117554, 0.14362815022468567, -0.21912062168121338, 0.05643140524625778, -0.5175653696060181, 0.08865293860435486, 0.21122530102729797, -0.012561246752738953, 0.020039789378643036, 0.09092235565185547, 0.005387544631958008, 0.14987146854400635, -0.35627827048301697, 0.07334202527999878, 0.03189194202423096, 0.03263344615697861, -0.023645896464586258, 0.5749597549438477, -0.1809690147638321, -0.12838029861450195, -0.17213717103004456, 0.20325852930545807, 0.023101596161723137, 0.3418017625808716, 0.05949031934142113, -0.211623877286911, 0.03844285011291504, -0.11935795843601227, -0.710800051689148, 0.14040663838386536, -0.201981782913208, -0.014248982071876526, -0.5004388093948364, -0.10420367121696472, 0.44353431463241577, 0.11945103108882904, 0.1769232451915741, 0.24400290846824646, -0.3941907584667206, 0.24166396260261536, -0.14660802483558655, -0.16944999992847443, -0.05211467295885086, -0.027914442121982574, 0.30195897817611694, -0.2829475998878479, -0.37291398644447327, 0.2836354970932007, -0.0017942488193511963, 0.02822546660900116, -0.4600774049758911, -0.051117509603500366, 0.18261876702308655, 0.019783712923526764, 0.22070437669754028, 0.37979844212532043, -0.17711523175239563, -0.25177422165870667, 0.14492368698120117, -0.06852810829877853, -0.3642727732658386, -0.04338973015546799, -0.1673242449760437, -0.24437806010246277, 0.027283847332000732, 0.3833366930484772, 0.1490149199962616, -0.10595384240150452, 0.5424472689628601, 0.3601783514022827, -0.2853144407272339, -0.24421963095664978, -0.14118435978889465, -0.11648894101381302, -0.7241873741149902, -0.010691238567233086, 0.07644776254892349, 0.058020517230033875, -0.10227499902248383, 0.2253742516040802, 0.23501108586788177, -0.05691538006067276, -0.010107830166816711, -0.3057069778442383, -0.25253474712371826, -0.08369550108909607, -0.07834750413894653, 0.01563897542655468, -0.0557723268866539, 0.2327733337879181, 0.23388075828552246, -0.05164988338947296, -0.38669919967651367, 0.09639307111501694, -0.14170247316360474, 0.1572551429271698, 0.35183003544807434, -0.2626689374446869, 0.25838062167167664, 0.09980584681034088, 0.12145692110061646, 0.03685356676578522, -0.1825638860464096, -0.16107279062271118, -0.056574322283267975, 0.11140505969524384, 0.06813773512840271, -0.02885783277451992, -0.04044236242771149, -0.36409685015678406, -0.07177011668682098, 0.275531530380249, 0.21000902354717255, 0.19298052787780762, -0.006882164627313614, -0.06666605919599533, -0.07389756292104721, -0.01786172017455101, 0.26827558875083923, 0.21908903121948242, 0.08596916496753693, 0.405148446559906, 0.10104745626449585, 0.20302197337150574, 0.05254259705543518, -0.08906053006649017, -0.28415435552597046, 0.11980268359184265, 0.14993953704833984, 0.05181992053985596, 0.13362711668014526, -0.07912281155586243, 0.2745361924171448, 0.26607745885849, 0.1616654396057129, 0.06667785346508026, -0.0928051620721817, -0.09011262655258179, 0.4874473810195923, 0.20300708711147308, -0.24154794216156006, 0.07627690583467484, -0.11213594675064087, -0.18488211929798126, 0.012460798025131226, -0.10283848643302917, 0.11345677822828293, -0.20102494955062866, 0.19464659690856934, -0.03808370977640152, -0.028170235455036163, -0.019415931776165962, 0.029357921332120895, 0.3393167555332184, -0.04188457131385803, -0.23448003828525543, 0.11692541092634201, 0.14332105219364166, -0.013723593205213547, 0.25487712025642395, -0.18080466985702515, 0.28454720973968506, -0.0537581704556942, 0.22205296158790588, 0.030296526849269867, -0.35637184977531433, 0.11204446852207184, 0.07069049775600433, -0.06677433848381042, 0.23246389627456665, -0.00550336018204689, 0.23804496228694916, -0.0018269345164299011, 0.061761293560266495, -0.2219628095626831, 0.30450013279914856, 0.14095762372016907, 0.07310019433498383, 0.06903449445962906, -0.2575114965438843, -0.2445530891418457, 0.07425559312105179, -0.07768511772155762, -0.2890951931476593, -0.11145682632923126, 0.21908244490623474, -0.20133134722709656, -0.1336747705936432, -0.11047469079494476, -0.16310983896255493, 0.19399064779281616, -0.307260125875473, 0.38995176553726196, 0.08092346042394638, -0.001223146915435791, 0.39017581939697266, 0.39951291680336, 0.4556728005409241, 0.07928122580051422, -0.12068028748035431, 0.2690318524837494, -0.0715334564447403, -0.1090683564543724, 0.0018281638622283936, 0.5251638293266296, 0.30194976925849915, 0.13444295525550842, 0.3727325201034546, 0.15742069482803345, -0.19413340091705322, -0.12153990566730499, 0.012079772539436817, -0.031494565308094025, -0.1955312192440033, 0.1012362390756607, -0.23754364252090454, -0.05939217656850815, -0.4787731468677521, -0.18212802708148956, -0.7445863485336304, 0.012056969106197357, 0.4457142651081085, -0.29513120651245117, 0.12176889926195145, -0.25558343529701233, 0.08480850607156754, -0.16297647356987, 0.2783348560333252, 0.4391406178474426, 0.22042736411094666, -0.060746949166059494, -0.07936699688434601, -0.5453094840049744, 0.09166692942380905, -0.1029384583234787, 0.201334610581398, -0.23000699281692505, 0.13448010385036469, 0.18559587001800537, 0.10588307678699493, 0.08453258126974106, -0.0155988410115242, -0.28953778743743896, 0.14737655222415924, -0.1530165672302246, 0.06044203042984009, 0.11550161987543106, 0.43676257133483887, -0.04577522724866867, -0.16159290075302124, -0.031163290143013, 0.07095800340175629, 0.03244387358427048, -0.057638462632894516, -0.10009550303220749, -0.273328959941864, -0.22939755022525787, 0.28405189514160156, 0.1085323840379715, 0.550063967704773, -0.1439039409160614, -0.056183379143476486, -0.41763997077941895, -0.13136747479438782, 0.008235741406679153, 0.029661279171705246, 0.17820951342582703, 0.2597199082374573, -0.1403369903564453, 0.26827332377433777, -0.045515477657318115, -0.20819491147994995, -0.11686137318611145, 0.17635399103164673, -0.31872597336769104, -0.03972495347261429, -0.1087753102183342, 0.14643657207489014, 0.06855985522270203, 0.09353411197662354, 0.12445400655269623, -0.24271592497825623, -0.3076227605342865, -0.15331009030342102, 0.5325170755386353, -0.248962864279747, -0.4053458869457245, 0.07484787702560425, 0.4408690333366394, -0.01810508593916893, 0.17907756567001343, -0.547432541847229, 0.3000043034553528, 0.31797730922698975, 0.12425662577152252, 0.02369680255651474, 0.1211315169930458, -0.05147773399949074, -0.030004695057868958, -0.017614778131246567, -0.07394375652074814, 0.11506600677967072, -0.1863277703523636, 0.22791385650634766, -0.2254253327846527 ]
https://github.com/huggingface/datasets/issues/1843
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
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).
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.39452749490737915, 0.2756195664405823, -0.08757790178060532, 0.006215663626790047, -0.06524159014225006, 0.02863539755344391, -0.18247243762016296, 0.2685895264148712, -0.25951308012008667, 0.32267051935195923, -0.2936764657497406, -0.2957715392112732, -0.1945614069700241, 0.18701887130737305, 0.20893944799900055, 0.09105241298675537, 0.030066639184951782, 0.2597106099128723, -0.4889114797115326, -0.10478130728006363, -0.02449052780866623, 0.1415162831544876, -0.18158040940761566, -0.16687950491905212, -0.204527348279953, -0.013640258461236954, -0.31777721643447876, -0.29162830114364624, -0.31662189960479736, -0.3389556407928467, 0.2591307759284973, 0.4024864733219147, 0.268263578414917, 0.26437363028526306, -0.00011650468513835222, -0.18141569197177887, 0.1977114975452423, -0.28725171089172363, -0.4984131157398224, 0.014720305800437927, -0.27070245146751404, -0.3995995819568634, -0.4279792606830597, 0.0496150404214859, 0.01310664415359497, -0.25869491696357727, 0.299329549074173, 0.13137061893939972, 0.15402106940746307, 0.6043410897254944, 0.11893853545188904, 0.12279906868934631, 0.19797712564468384, -0.20261453092098236, 0.3769964277744293, 0.03626435250043869, -0.08841487765312195, 0.24862244725227356, 0.2113146334886551, 0.09405985474586487, 0.330339252948761, 0.3243905007839203, 0.20327554643154144, -0.16837210953235626, 0.040536265820264816, -0.3225008547306061, -0.2506561577320099, -0.5101644992828369, -0.013899076730012894, 0.46310967206954956, 0.6668586730957031, -0.31012260913848877, -0.1322302222251892, -0.17011387646198273, 0.24393850564956665, -0.17599916458129883, 0.012359811924397945, 0.04867161065340042, -0.2894200086593628, 0.21032248437404633, 0.005815837532281876, -0.3425406515598297, -0.23238331079483032, 0.3928023874759674, -0.16530227661132812, 0.0985151082277298, -0.13631652295589447, -0.04381003603339195, 0.22208480536937714, -0.23043270409107208, -0.2993950843811035, -0.04861091822385788, -0.010329855605959892, 0.08449864387512207, -0.23372697830200195, -0.495961993932724, 0.16984370350837708, -0.031578484922647476, 0.17684584856033325, -0.4561893343925476, -0.19868221879005432, -0.21898183226585388, -0.27753904461860657, 0.002993957605212927, 0.11458269506692886, 0.36863136291503906, 0.07290031015872955, 0.09450839459896088, 0.1670209765434265, -0.3023115396499634, 0.10476046800613403, 0.08556976914405823, -0.1426621377468109, 0.13739770650863647, -0.4395263195037842, 0.15892598032951355, -0.14223816990852356, -0.07562555372714996, -0.3051210641860962, 0.18056620657444, -0.03626145422458649, 0.15406692028045654, -0.0433284193277359, 0.15926674008369446, 0.06386637687683105, 0.33216598629951477, 0.00863558053970337, 0.27128317952156067, 0.0737074613571167, -0.2359878420829773, -0.015638118609786034, 0.0743163675069809, -0.18801338970661163, 0.29726046323776245, 0.3724641501903534, 0.16952568292617798, 0.23060445487499237, -0.12340518832206726, 0.2562732398509979, 0.25541597604751587, -0.15759257972240448, -0.0771215409040451, 0.08425252884626389, 0.20031017065048218, -0.007614746689796448, 0.0768665075302124, -0.32421645522117615, 0.03852885961532593, -0.3530517816543579, 0.1165565550327301, 0.14611545205116272, -0.16819292306900024, -0.004242079332470894, 0.12086056917905807, -0.14542406797409058, -0.18469037115573883, -0.31415098905563354, 0.6670892238616943, -0.16588924825191498, -0.18843981623649597, -0.03261948376893997, -0.06200268864631653, -0.3356943130493164, 0.0928695946931839, -0.20540165901184082, 0.3628072142601013, -0.45991310477256775, -0.03129124641418457, 0.05167355388402939, -0.019472233951091766, -0.016583170741796494, 0.2870407998561859, -0.1658416986465454, 0.22810053825378418, -0.11188052594661713, 0.14312316477298737, 0.11213475465774536, -0.3574812710285187, -0.4023279547691345, 0.22973263263702393, -0.025099478662014008, -0.05282210186123848, 0.31325286626815796, -0.01547018438577652, 0.6000571846961975, -0.4032658338546753, -0.1561005413532257, 0.3050539493560791, 0.0663902536034584, -0.06498856842517853, -0.21709801256656647, -0.5506219267845154, 0.07572232931852341, 0.08201074600219727, 0.2562987506389618, 0.06704074889421463, 0.13276995718479156, 0.4450988471508026, 0.4237917363643646, -0.20130093395709991, 0.18303066492080688, 0.18107926845550537, 0.10052785277366638, -0.0762891173362732, -0.09048107266426086, -0.36035892367362976, -0.22457507252693176, 0.07524176687002182, 0.16994637250900269, 0.29619455337524414, 0.2997466027736664, -0.37670519948005676, 0.056624867022037506, -0.24568718671798706, 0.06677264720201492, -0.015130707994103432, 0.0987127274274826, 0.21765920519828796, 0.2734745740890503, -0.15411049127578735, -0.1304287612438202, 0.3823816478252411, -0.4641740322113037, -0.23128831386566162, 0.06439438462257385, 0.14788472652435303, 0.06510656327009201, -0.10285013914108276, 0.1676030308008194, 0.07030455768108368, 0.11732491850852966, 0.05399618297815323, 0.0847354531288147, 0.13485932350158691, -0.15689748525619507, 0.11024810373783112, -0.0723440945148468, 0.0968138799071312, 0.3385637104511261, -0.4492703974246979, 0.27064621448516846, 0.3665558099746704, 0.13743969798088074, -0.09891048818826675, -0.23627501726150513, 0.028566326946020126, 0.2820819020271301, 0.12193699926137924, 0.28269535303115845, -0.16131691634655, 0.23316830396652222, 0.14160874485969543, -0.18273033201694489, -0.333601713180542, 0.10056130588054657, 0.3341185748577118, -0.2534901201725006, 0.13249342143535614, -0.28080233931541443, -0.04484167322516441, 0.5708272457122803, -0.08698426187038422, 0.3257894814014435, 0.4019415080547333, -0.027067948132753372, -0.21966880559921265, 0.16173939406871796, -0.17729529738426208, 0.39056625962257385, 0.42278701066970825, 0.4028221070766449, 0.08942098915576935, 0.08766013383865356, -0.14215877652168274, 0.17281602323055267, -0.048912275582551956, -0.2792551815509796, 0.10393846780061722, 0.0364372581243515, -0.06349401921033859, -0.3835657835006714, -0.11890851706266403, 0.06261468678712845, 0.17456424236297607, -0.18547435104846954, -0.4444788694381714, -0.16930735111236572, -0.1456029713153839, -0.07099731266498566, 0.08946572244167328, -0.006490756757557392, -0.05007660761475563, 0.2922295928001404, 0.13396386802196503, -0.1373099684715271, 0.11324062943458557, 0.02937377244234085, 0.4036889374256134, -0.35973814129829407, -0.09852005541324615, -0.010886289179325104, -0.17405542731285095, -0.34885022044181824, 0.10274911671876907, 0.15262064337730408, 0.03514152392745018, 0.03464864194393158, -0.22882887721061707, 0.14616870880126953, -0.17697760462760925, -0.4210934042930603, 0.20963357388973236, -0.16065742075443268, 0.03149714320898056, -0.18834790587425232, 0.1851782500743866, 0.018418528139591217, -0.23071330785751343, -0.3356029987335205, 0.0843588188290596, -0.14304105937480927, -0.07944789528846741, -0.47122687101364136, -0.08721807599067688, -0.04901963844895363, -0.36708542704582214, -0.4791997969150543, -0.40644827485084534, 0.41877734661102295, -0.13183259963989258, 0.11766606569290161, 0.19570191204547882, 0.18257208168506622, 0.03932655230164528, -0.2441081553697586, 0.17942309379577637, -0.1795469969511032, -0.20610374212265015, 0.30441033840179443, -0.25312092900276184, -0.1693059206008911, -0.1619275063276291, 0.12876206636428833, 0.07214247435331345, 0.15999098122119904, -0.4716986417770386, 0.27161356806755066, -0.37344634532928467, 0.3990853428840637, 0.08092963695526123, 0.19739612936973572, 0.317220538854599, -0.23138800263404846, -0.05706886574625969, -0.03618339076638222, -0.14246614277362823, 0.03723406046628952, 0.40064409375190735, 0.15028376877307892, -0.10700546205043793, 0.0874563679099083, 0.26456254720687866, 0.6685686111450195, 0.23415791988372803, 0.037072740495204926, 0.12523221969604492, 0.10931682586669922, 0.6374331712722778, -0.230210080742836, -0.18133589625358582, 0.41564273834228516, 0.21946486830711365, 0.01606435328722, 0.43947625160217285, 0.03980693966150284, -0.33086347579956055, -0.11402726918458939, -0.29878923296928406, -0.04394856467843056, -0.26367974281311035, 0.29184436798095703, -0.03015979193150997, 0.18688461184501648, 0.044169992208480835, -0.18291786313056946, -0.1949276328086853, -0.11149522662162781, 0.0028253160417079926, 0.18893852829933167, 0.02597365714609623, 0.1535169631242752, -0.11687057465314865, -0.10048668086528778, -0.24016709625720978, -0.08251679688692093, 0.0902082622051239, 0.3649483919143677, -0.344826877117157, 0.05591757595539093, -0.10135146975517273, 0.1461898684501648, 0.3217298984527588, -0.20756810903549194, -0.10450462996959686, 0.08681011945009232, 0.6164695024490356, -0.22225584089756012, 0.09912904351949692, -0.15850038826465607, -0.45020943880081177, 0.5935952663421631, 0.18604490160942078, -0.2508346140384674, -0.08680105209350586, 0.2934372127056122, 0.3685336709022522, 0.008427798748016357, -0.1660437285900116, 0.017077945172786713, -0.2766520380973816, -0.4073575437068939, 0.31565773487091064, 0.3849788308143616, -0.1538509726524353, 0.21923315525054932, -0.03002699837088585, 0.05181574821472168, -0.2847200334072113, 0.3886926472187042, -0.02453777939081192, -0.10073035955429077, 0.5650274157524109, 0.17475643754005432, -0.09819427132606506, -0.4175637662410736, 0.0092701967805624, 0.3048291504383087, -0.07425860315561295, -0.3260017931461334, 0.035170406103134155, -0.08172331750392914, 0.33399498462677, 0.45969003438949585, -0.1333196759223938, -0.045888569205999374, -0.14162306487560272, 0.08587486296892166, -0.10065123438835144, 0.453907310962677, 0.11331760883331299, -0.03405328840017319, -0.2912558615207672, -0.30263012647628784, 0.47948557138442993, 0.06599853187799454, -0.12661805748939514, 0.20279085636138916, 0.09903928637504578, -0.33261552453041077, 0.0656471699476242, -0.13552293181419373, 1.2328362464904785, 0.10606656968593597, 0.11316376179456711, 0.0218704491853714, -0.27888572216033936, 0.28063511848449707, -0.6616120338439941, -0.014123118482530117, 0.4549618363380432, 0.14891093969345093, -0.05610787868499756, 0.22307591140270233, 0.19392266869544983, 0.3626052439212799, -0.33575376868247986, 0.31826239824295044, 0.1121501475572586, 0.17344529926776886, 0.21293380856513977, 0.5456158518791199, -0.5706212520599365, -0.35977181792259216, -0.11818284541368484, 0.15149959921836853, 0.1357635259628296, 0.16877271234989166, 0.011525630950927734, -0.15165311098098755, 0.36835986375808716, -0.06218796968460083, -0.6386958360671997, 0.10009923577308655, -0.3431994616985321, -0.11128529906272888, -0.5482456684112549, 0.06909139454364777, 0.3296593427658081, 0.2797994911670685, 0.24341252446174622, 0.36962056159973145, -0.3438284695148468, 0.2961902320384979, -0.044720470905303955, 0.029231742024421692, 0.1249241977930069, -0.17969129979610443, 0.1681114286184311, -0.31761434674263, -0.16607116162776947, 0.19710859656333923, 0.1828441172838211, -0.006846994161605835, -0.38147348165512085, -0.19822445511817932, 0.17440879344940186, 0.22314989566802979, 0.166853666305542, 0.6332232356071472, -0.02688515931367874, -0.1847648024559021, 0.09419161826372147, -0.05393530800938606, -0.29787135124206543, 0.28219926357269287, -0.4007064402103424, -0.23259124159812927, -0.33341914415359497, 0.29647231101989746, 0.2167980670928955, -0.03973827883601189, 0.2869243025779724, 0.08102278411388397, -0.20791637897491455, -0.3785054683685303, 0.007560610771179199, -0.23190516233444214, -0.42023125290870667, 0.041633158922195435, 0.025049827992916107, -0.1195923388004303, -0.35401391983032227, 0.42489132285118103, 0.27788037061691284, -0.12719717621803284, 0.10376963019371033, -0.007914461195468903, -0.32897502183914185, -0.12410162389278412, 0.11378787457942963, 0.23268252611160278, -0.020834878087043762, 0.23856477439403534, 0.037387534976005554, 0.07707513868808746, -0.3000096380710602, 0.04349695146083832, 0.10292098671197891, 0.16607904434204102, 0.10940276086330414, 0.1252080649137497, 0.2947098910808563, 0.022357579320669174, 0.02172520011663437, 0.12341436743736267, -0.06279630959033966, -0.06287964433431625, -0.15101522207260132, 0.13822995126247406, 0.19911491870880127, 0.2511877417564392, -0.010789427906274796, -0.13299094140529633, -0.1390429586172104, 0.08400484919548035, 0.37481796741485596, 0.33411750197410583, -0.10511253029108047, 0.24555343389511108, -0.062153421342372894, -0.10953943431377411, 0.11723428964614868, 0.09818360954523087, 0.31585097312927246, 0.3510115146636963, 0.21240559220314026, 0.3487103581428528, 0.03887500986456871, -0.1696397364139557, -0.08793807029724121, 0.41348129510879517, -0.02031303197145462, -0.04974643513560295, -0.03384770452976227, 0.11996911466121674, 0.09418711066246033, 0.2626901865005493, -0.05829959362745285, 0.2162441909313202, 0.07376916706562042, -0.09635640680789948, 0.48458778858184814, 0.15905062854290009, -0.18363669514656067, 0.1744569092988968, -0.37600505352020264, -0.18988758325576782, 0.01688113808631897, 0.12982399761676788, 0.020485758781433105, -0.19607241451740265, 0.43942221999168396, -0.06818288564682007, -0.24962438642978668, 0.1491871476173401, 0.107362762093544, 0.261435866355896, 0.1854945719242096, -0.1375294029712677, 0.17848502099514008, 0.07979825139045715, 0.23436036705970764, 0.22072795033454895, -0.37897974252700806, 0.293600857257843, 0.1280777007341385, 0.1260855793952942, 0.19322411715984344, -0.3421127200126648, 0.13575690984725952, 0.23708882927894592, 0.019965946674346924, 0.11606380343437195, 0.04083606228232384, 0.04341551661491394, 0.002709556370973587, -0.09693117439746857, -0.33383825421333313, 0.05465155839920044, 0.06086575239896774, 0.0003473609685897827, -0.16740508377552032, -0.2518034875392914, -0.0856497585773468, 0.17869585752487183, 0.01570771262049675, -0.5163860321044922, -0.0341341570019722, 0.24217399954795837, -0.16199655830860138, -0.3491896688938141, 0.09154395759105682, -0.23023664951324463, 0.14701931178569794, -0.31180065870285034, 0.41854503750801086, 0.003081750124692917, -0.12274116277694702, 0.2632627487182617, 0.3552526533603668, 0.39307901263237, 0.09284339845180511, 0.05198398604989052, 0.1928478181362152, -0.042066603899002075, -0.06527559459209442, -0.1556447148323059, 0.34562575817108154, 0.03668277710676193, 0.4378797113895416, 0.21637164056301117, 0.15741758048534393, -0.15737956762313843, -0.16539382934570312, 0.05710691586136818, -0.19000616669654846, -0.362746924161911, 0.2912069261074066, 0.06064832955598831, 0.19025683403015137, -0.20299503207206726, 0.02833590656518936, -0.591489851474762, -0.044667504727840424, 0.48220258951187134, -0.3417667746543884, 0.2164018154144287, -0.2335921674966812, 0.053647540509700775, -0.20620368421077728, 0.24281954765319824, 0.35256436467170715, -0.01742042787373066, -0.2116130292415619, -0.05695038288831711, -0.259386271238327, -0.28693243861198425, -0.11897236108779907, 0.08251944184303284, -0.3457995653152466, 0.24470072984695435, 0.25789108872413635, 0.39453572034835815, -0.2088102251291275, 0.20642082393169403, -0.2922373116016388, 0.05769864097237587, -0.2314189374446869, 0.25135716795921326, 0.028817417100071907, 0.6024892926216125, 0.07076460123062134, -0.38216912746429443, -0.1606886088848114, 0.08457902073860168, -0.032532595098018646, -0.2092236578464508, -0.003353111445903778, 0.011918872594833374, -0.19064569473266602, 0.37468990683555603, -0.06062104552984238, 0.5547396540641785, -0.1299276351928711, -0.019129086285829544, -0.26146507263183594, 0.1284419447183609, -0.18601520359516144, -0.16695727407932281, -0.03515023738145828, 0.21196067333221436, -0.3294382691383362, 0.31775230169296265, -0.00820283591747284, -0.03436686471104622, 0.01265038549900055, 0.04957761615514755, 0.025830045342445374, -0.08174015581607819, -0.20753543078899384, 0.13160990178585052, 0.013499289751052856, 0.2541101276874542, -0.014394029974937439, -0.1189335361123085, -0.28979405760765076, -0.2972885072231293, 0.37014955282211304, -0.15486730635166168, -0.2318078577518463, -0.14980173110961914, 0.3886856436729431, 0.28761255741119385, -0.0012165140360593796, -0.5777559280395508, 0.284246563911438, 0.3728411793708801, 0.10473017394542694, 0.0706949457526207, 0.28553271293640137, -0.005318973213434219, -0.05315922200679779, -0.1251319795846939, 0.18587274849414825, 0.07846194505691528, -0.3833414614200592, -0.08483821153640747, -0.4800366759300232 ]
https://github.com/huggingface/datasets/issues/1843
> 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.
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).
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.3701682686805725, 0.07569335401058197, -0.05002208799123764, 0.1428011953830719, -0.11437216401100159, -0.022535651922225952, 0.024504445493221283, 0.25288209319114685, -0.21712924540042877, 0.21631309390068054, -0.3634769022464752, -0.2713862359523773, -0.09528887271881104, 0.2548367977142334, 0.11782322824001312, -0.2256668210029602, 0.07152441889047623, 0.06289328634738922, -0.4934396743774414, -0.18065758049488068, -0.01679971069097519, 0.08003762364387512, -0.07713234424591064, -0.1608680784702301, -0.2286907136440277, 0.05143142491579056, -0.3497379422187805, -0.2192530781030655, -0.3488779664039612, -0.21128660440444946, 0.030379533767700195, 0.23466001451015472, 0.2090708166360855, 0.3533751666545868, -0.00010471882706042379, -0.09389365464448929, 0.21018162369728088, -0.22755275666713715, -0.4023520350456238, -0.1474175602197647, -0.16945545375347137, -0.21650409698486328, -0.463826060295105, 0.04320690035820007, -0.2301785945892334, -0.19329217076301575, 0.10554385185241699, 0.0908903181552887, 0.3507656157016754, 0.39854609966278076, 0.2088296264410019, 0.16811822354793549, 0.1384952813386917, -0.17704617977142334, 0.12944276630878448, -0.027113325893878937, -0.06447208672761917, 0.19530239701271057, 0.27818983793258667, 0.24234026670455933, 0.025067893788218498, 0.48227277398109436, 0.051012396812438965, -0.11217743158340454, 0.06458263099193573, -0.3023510277271271, -0.1228589341044426, -0.4970504641532898, 0.05851803347468376, 0.45497727394104004, 0.7421858906745911, -0.23275132477283478, -0.2601962089538574, -0.3296453356742859, 0.24171006679534912, -0.06080556660890579, -0.04126281291246414, 0.12689495086669922, -0.26302570104599, 0.30544763803482056, -0.040754809975624084, -0.3075762987136841, -0.18508097529411316, 0.3004445433616638, -0.024644270539283752, 0.23497551679611206, -0.15256726741790771, -0.049445923417806625, 0.09383425116539001, -0.3000544607639313, -0.3330550491809845, -0.138797789812088, -0.01952259987592697, 0.183954119682312, -0.1306203156709671, -0.3575485348701477, 0.12716954946517944, -0.0699242651462555, 0.2695181369781494, -0.24683938920497894, -0.1844831109046936, -0.16024242341518402, -0.10865344107151031, -0.017474738880991936, 0.19749599695205688, 0.41100504994392395, 0.050859980285167694, -0.044815052300691605, 0.04904145002365112, -0.21039466559886932, 0.08389806002378464, 0.0806306004524231, -0.054286666214466095, 0.2022232711315155, -0.4636356234550476, 0.03146311640739441, -0.065702423453331, -0.15996696054935455, -0.10692816227674484, 0.0018304809927940369, 0.045621469616889954, 0.022191200405359268, 0.01393209770321846, 0.26296427845954895, -0.025420108810067177, 0.27734261751174927, -0.08891245722770691, 0.3318891227245331, 0.007696062326431274, -0.272716760635376, -0.05564173683524132, 0.03875429183244705, -0.26346200704574585, 0.25288480520248413, 0.24206164479255676, 0.24993866682052612, 0.23414766788482666, -0.018229488283395767, 0.2714517116546631, 0.07346320897340775, -0.13324478268623352, -0.02122703194618225, 0.12947791814804077, 0.017868928611278534, 0.026199646294116974, 0.11651140451431274, -0.2889255881309509, -0.15743085741996765, -0.30019474029541016, -0.007091734558343887, 0.07253976166248322, -0.16728949546813965, -0.15035629272460938, 0.23125901818275452, -0.2765887379646301, -0.2198793590068817, -0.37842804193496704, 0.7613042593002319, -0.15716534852981567, -0.06713161617517471, -0.025860995054244995, 0.16048482060432434, -0.4984612464904785, 0.031219031661748886, -0.018465597182512283, 0.572506844997406, -0.21369946002960205, -0.23643279075622559, 0.18528002500534058, -0.04073750600218773, -0.032928407192230225, 0.32066285610198975, -0.15486057102680206, 0.2370498925447464, -0.06432298570871353, 0.39697712659835815, 0.08621140569448471, -0.336567223072052, -0.333792507648468, 0.20036229491233826, -0.16307443380355835, 0.012682221829891205, 0.29680848121643066, -0.10839883983135223, 0.6236358880996704, -0.3085472583770752, -0.06562121957540512, 0.44079887866973877, 0.04368890821933746, 0.07631465792655945, -0.21914257109165192, -0.4411570429801941, 0.17379799485206604, 0.21975061297416687, 0.09457723796367645, 0.00771307572722435, -0.0541917085647583, 0.33050429821014404, 0.2851979434490204, -0.27743110060691833, 0.34574538469314575, 0.18454860150814056, -0.03755553439259529, -0.031410373747348785, -0.028948727995157242, -0.24945497512817383, -0.2396080642938614, 0.07019732892513275, 0.10386307537555695, 0.409792423248291, 0.2049584686756134, -0.25755637884140015, -0.14352241158485413, -0.22723853588104248, -0.23293618857860565, -0.14366459846496582, 0.2024192363023758, 0.1730021983385086, 0.22261670231819153, -0.01408667117357254, -0.16226428747177124, 0.327618271112442, -0.30896204710006714, -0.11294987797737122, -0.12025018781423569, 0.21346589922904968, 0.05811811238527298, -0.16024523973464966, 0.2480311244726181, 0.3261513113975525, 0.10551124811172485, 0.022946257144212723, 0.08194524049758911, 0.1655614823102951, -0.23605592548847198, 0.25173720717430115, 0.10589037835597992, 0.23298166692256927, 0.3496469557285309, -0.443866491317749, 0.37182775139808655, 0.32260972261428833, 0.10470734536647797, -0.16497991979122162, -0.2093895524740219, 0.11102833598852158, 0.3269996643066406, 0.11794357001781464, 0.14519011974334717, -0.06758575886487961, 0.28561118245124817, 0.03673023730516434, -0.2883065640926361, -0.1736772060394287, 0.1110667884349823, 0.12113919109106064, 0.009760163724422455, 0.15804189443588257, -0.3687121868133545, 0.16987891495227814, 0.4562642574310303, -0.1424195021390915, 0.1689661294221878, 0.3246617615222931, -0.20693068206310272, -0.18328191339969635, 0.08713279664516449, -0.10433753579854965, 0.2261553555727005, 0.3713855445384979, 0.3932771682739258, 0.12422092258930206, 0.23005834221839905, -0.08347851037979126, 0.12328088283538818, -0.10062137246131897, -0.27780166268348694, 0.1717962920665741, -0.0068289414048194885, -0.08285585045814514, -0.3244181275367737, 0.011756882071495056, -0.03395906090736389, 0.10242729634046555, -0.1919403225183487, -0.42387908697128296, -0.038980498909950256, -0.42754942178726196, -0.3429189920425415, 0.06872043758630753, -0.2192068248987198, 0.08120489865541458, 0.3772016167640686, 0.01714726909995079, -0.20119833946228027, 0.19204199314117432, 0.24464119970798492, 0.2857396602630615, -0.37916868925094604, -0.06796851009130478, -0.029263578355312347, -0.21931642293930054, -0.14486032724380493, 0.1591055691242218, 0.28932133316993713, 0.13323207199573517, 0.26288434863090515, -0.2597985565662384, 0.05451779067516327, -0.2878352999687195, -0.3296542167663574, 0.2591397166252136, -0.18167424201965332, 0.034244947135448456, -0.21465174853801727, 0.12871865928173065, -0.00986199826002121, -0.33604905009269714, -0.13463018834590912, 0.1360161304473877, -0.06627149879932404, -0.14350220561027527, -0.36943814158439636, -0.19058069586753845, 0.015816718339920044, -0.44218015670776367, -0.547023594379425, -0.43638622760772705, 0.44188958406448364, -0.23288863897323608, -0.011750418692827225, 0.03890809416770935, 0.14858441054821014, 0.08612722158432007, -0.26146987080574036, 0.19995325803756714, -0.27807214856147766, -0.2521604597568512, 0.19674749672412872, -0.23844261467456818, -0.32392728328704834, -0.2167913019657135, 0.1482233852148056, 0.03298713266849518, -0.058827221393585205, -0.3675881028175354, 0.06564100086688995, -0.21718713641166687, 0.3849051594734192, 0.16570737957954407, 0.3021330237388611, 0.2084795981645584, -0.05489245429635048, -0.09974586218595505, -0.04849451035261154, -0.13711729645729065, 0.0944613367319107, 0.2940378785133362, 0.12074081599712372, -0.03736380115151405, -0.013513091951608658, 0.07064031064510345, 0.7331618070602417, 0.4433305263519287, 0.03593205660581589, 0.1378314346075058, 0.06682653725147247, 0.44255685806274414, -0.25207409262657166, -0.2575768232345581, 0.48648422956466675, 0.11102940887212753, 0.048015959560871124, 0.5023176670074463, 0.1446162611246109, -0.35313475131988525, -0.1621280014514923, -0.3827891945838928, -0.16127823293209076, -0.30554381012916565, 0.3122985064983368, 0.14870281517505646, 0.14914530515670776, 0.0018651559948921204, -0.20881438255310059, -0.17991280555725098, -0.09951777756214142, 0.14111024141311646, 0.18655633926391602, -0.0672527477145195, 0.11552482843399048, -0.20713067054748535, -0.0609683133661747, -0.4196373522281647, -0.11906416714191437, 0.1540757417678833, 0.16395312547683716, -0.33082184195518494, 0.06458583474159241, -0.031197439879179, 0.18475541472434998, 0.3390968441963196, -0.1980142742395401, -0.044962987303733826, -0.033976875245571136, 0.3296685218811035, -0.058274783194065094, 0.22819676995277405, -0.13638845086097717, -0.3484119474887848, 0.5243239998817444, 0.3274688720703125, -0.4339469075202942, -0.08513899892568588, 0.18360450863838196, 0.45202934741973877, -0.04595448076725006, -0.20493189990520477, 0.16893064975738525, -0.30005723237991333, -0.43426313996315, 0.20328256487846375, 0.40885859727859497, -0.11144698411226273, 0.19113200902938843, 0.07830826938152313, 0.21578723192214966, -0.05045031011104584, 0.3658594489097595, 0.11753913015127182, -0.0030354447662830353, 0.41301631927490234, 0.20293748378753662, 0.08965712785720825, -0.0690988302230835, -0.08989343792200089, 0.37720808386802673, -0.023603064939379692, -0.3043229281902313, -0.12288947403430939, -0.21317249536514282, 0.20437444746494293, 0.3947950005531311, 0.09382500499486923, -0.04376896470785141, -0.007769979536533356, 0.12363359332084656, -0.21659639477729797, 0.15428978204727173, 0.12706530094146729, 0.2224365621805191, -0.3160654902458191, -0.3919178247451782, 0.5125019550323486, 0.04501549154520035, -0.09174516797065735, 0.058671481907367706, 0.2783917784690857, -0.2230508029460907, 0.19368556141853333, -0.21504080295562744, 1.2153534889221191, 0.18812452256679535, 0.11481848359107971, 0.20177967846393585, -0.24695542454719543, 0.2023085206747055, -0.3942830264568329, -0.1897052377462387, 0.27210545539855957, 0.24573490023612976, 0.0009762868285179138, 0.21174001693725586, -0.08133191615343094, 0.2784785330295563, -0.4962838888168335, 0.2711896300315857, 0.11138954758644104, 0.04556921124458313, 0.08838534355163574, 0.5809121131896973, -0.4232158362865448, -0.4742903411388397, -0.3706197142601013, 0.23871362209320068, 0.09024955332279205, 0.18753081560134888, 0.11564891785383224, -0.23398928344249725, 0.16497650742530823, -0.042829789221286774, -0.632540762424469, 0.10840367525815964, -0.28500059247016907, -0.21058227121829987, -0.38712337613105774, -0.009104639291763306, 0.3368227481842041, 0.2709602415561676, 0.2840486764907837, 0.019789529964327812, -0.32685941457748413, 0.22026371955871582, -0.08454384654760361, 0.04965030774474144, 0.0946393758058548, -0.09912271797657013, 0.4290615916252136, -0.3332928419113159, -0.2859704792499542, 0.06804775446653366, 0.16077187657356262, 0.14626024663448334, -0.41292235255241394, -0.2794245183467865, 0.07100822031497955, -0.028715671971440315, 0.13410119712352753, 0.5576699376106262, 0.020814865827560425, -0.12886425852775574, 0.16562823951244354, -0.0068201106041669846, -0.44916683435440063, 0.2423340380191803, -0.13952112197875977, -0.22030816972255707, -0.19899004697799683, 0.21897780895233154, 0.21481414139270782, -0.0585968941450119, 0.35527974367141724, 0.22563612461090088, -0.17963169515132904, -0.30440497398376465, -0.06848606467247009, 0.07818387448787689, -0.5221431851387024, 0.03592108190059662, 0.07176297903060913, -0.14664998650550842, -0.33785155415534973, 0.2661669850349426, 0.24907346069812775, -0.10298238694667816, 0.024728484451770782, 0.00022299587726593018, -0.27183473110198975, 0.026480475440621376, 0.16963180899620056, 0.1759604811668396, -0.12324291467666626, 0.21955984830856323, 0.1706392765045166, -0.07800822705030441, -0.41717231273651123, 0.03272393345832825, -0.023665565997362137, 0.19874830543994904, 0.3878062665462494, -0.03100556880235672, 0.1562349498271942, 0.035058315843343735, 0.10312981903553009, -0.090301513671875, -0.22461757063865662, -0.20403464138507843, -0.20997098088264465, 0.09569846093654633, 0.11285607516765594, 0.12286791205406189, 0.03270948678255081, -0.11714384704828262, -0.13642176985740662, 0.059191104024648666, 0.3521561026573181, 0.31543561816215515, -0.07667046040296555, 0.2034248411655426, 0.03855062276124954, -0.08210684359073639, 0.0648193359375, 0.19831743836402893, 0.3428344130516052, 0.30746734142303467, 0.10404402762651443, 0.22096700966358185, 0.007187947630882263, -0.11541316658258438, 0.07406187802553177, 0.30465614795684814, 0.18571940064430237, 0.0020020194351673126, 0.07260817289352417, 0.10450111329555511, 0.20164328813552856, 0.2957168221473694, 0.1713351607322693, 0.17346231639385223, -0.05004599317908287, -0.07488875836133957, 0.4209255874156952, 0.25396573543548584, -0.14799028635025024, 0.172418475151062, -0.012595048174262047, -0.24789699912071228, 0.17241312563419342, 0.1482936143875122, 0.10703144967556, -0.041176408529281616, 0.2748093605041504, -0.13275271654129028, -0.11535952985286713, 0.11353106796741486, 0.06601552665233612, 0.24150539934635162, 0.12964391708374023, -0.07226726412773132, 0.019468965008854866, 0.16196736693382263, 0.17290127277374268, 0.025602269917726517, -0.2666924297809601, 0.35123270750045776, -0.009679736569523811, 0.232171431183815, 0.20023752748966217, -0.1344333291053772, 0.11862598359584808, 0.17569568753242493, 0.13157717883586884, 0.20865076780319214, -0.04271264001727104, 0.30435603857040405, 0.04063064232468605, -0.2704014778137207, -0.11325740814208984, 0.3184620440006256, 0.0908866822719574, -0.09681715816259384, -0.1420932412147522, -0.29337698221206665, -0.30843687057495117, 0.11664462834596634, -0.06996356695890427, -0.42487186193466187, -0.0010499358177185059, 0.1826615035533905, -0.0767161101102829, -0.19787806272506714, -0.05270862951874733, -0.17913222312927246, 0.15753699839115143, -0.2776765823364258, 0.36287689208984375, 0.1634911298751831, -0.12490585446357727, 0.30192238092422485, 0.5595840811729431, 0.4070015251636505, -0.01300843432545662, -0.05830712243914604, 0.3310622274875641, 0.03312776982784271, -0.04450712352991104, -0.1409432291984558, 0.2963184714317322, 0.01730378158390522, 0.06160508841276169, 0.2934178113937378, 0.19772738218307495, -0.22780939936637878, -0.23081180453300476, -0.028046760708093643, -0.20649881660938263, -0.21125927567481995, 0.08717773854732513, -0.07415980100631714, 0.13216298818588257, -0.4074140191078186, -0.16994264721870422, -0.6608301997184753, 0.15932899713516235, 0.4730759263038635, -0.26150888204574585, 0.14294083416461945, -0.1474592089653015, 0.10281504690647125, -0.12276200950145721, 0.3599652945995331, 0.3447949290275574, 0.0295284204185009, -0.10411139577627182, -0.13276124000549316, -0.4292393624782562, -0.2139894664287567, 0.037732530385255814, 0.0893617793917656, -0.2855094075202942, 0.15093469619750977, 0.2879430949687958, 0.3707045316696167, -0.13182763755321503, 0.007548965513706207, -0.4060831367969513, 0.09434808045625687, -0.23347342014312744, 0.11232216656208038, -0.049998689442873, 0.6286007761955261, 0.18071606755256653, -0.1337849646806717, -0.17895400524139404, 0.18589335680007935, 0.029987677931785583, -0.043067567050457, 0.10705244541168213, -0.20274028182029724, -0.40294143557548523, 0.09683270752429962, 0.008099796250462532, 0.46885403990745544, -0.2251962274312973, -0.025557544082403183, -0.18936413526535034, -0.03418966010212898, -0.3663247227668762, -0.02679482474923134, -0.02591148391366005, 0.26150137186050415, -0.27571165561676025, 0.2454531192779541, -0.07357463240623474, -0.15641096234321594, 0.07538395375013351, -0.016962893307209015, -0.21759918332099915, 0.04149898141622543, -0.11020047962665558, 0.08605138957500458, -0.022421732544898987, 0.3933384120464325, -0.10968923568725586, -0.09776809811592102, -0.253104031085968, -0.24900075793266296, 0.48571109771728516, -0.14619657397270203, -0.22771742939949036, -0.05568911135196686, 0.1905224621295929, 0.17708946764469147, -0.04303620383143425, -0.7272621989250183, 0.32247620820999146, 0.2632126212120056, 0.10821326822042465, 0.07521578669548035, 0.24620160460472107, 0.029300950467586517, -0.08449608087539673, -0.1843971461057663, 0.06426498293876648, 0.11963514983654022, -0.24615603685379028, 0.13798746466636658, -0.345920592546463 ]
https://github.com/huggingface/datasets/issues/1843
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. ```
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).
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.19946858286857605, 0.2436530888080597, -0.0974726527929306, -0.07846873998641968, -0.010633813217282295, -0.14516589045524597, 0.05247572064399719, 0.07501130551099777, -0.12100695818662643, 0.3005027174949646, -0.16881248354911804, -0.1214633584022522, -0.09290596842765808, 0.1014920175075531, 0.04924057051539421, 0.052047062665224075, 0.01593702659010887, 0.1417454481124878, -0.4235430657863617, -0.21375766396522522, 0.06769184023141861, 0.16524434089660645, -0.19717071950435638, -0.11856043338775635, -0.24176836013793945, -0.005174793303012848, -0.1987971067428589, -0.16273900866508484, -0.2773720920085907, -0.17551326751708984, 0.3096407651901245, 0.18611130118370056, -0.04936724901199341, 0.41380423307418823, -0.00010417114390293136, -0.08866841346025467, 0.2680432200431824, -0.26990562677383423, -0.575939953327179, -0.18693311512470245, -0.2699013948440552, -0.3016948997974396, -0.39622145891189575, 0.000575527548789978, -0.1565583050251007, -0.2501753270626068, 0.19012027978897095, 0.08452139794826508, 0.1982962191104889, 0.5663024187088013, 0.2318570762872696, 0.12942743301391602, 0.1595144271850586, -0.2813531756401062, 0.21314449608325958, 0.11611424386501312, -0.1201322078704834, 0.33041277527809143, 0.32303372025489807, -0.053769536316394806, 0.05123380944132805, 0.33517763018608093, 0.14303910732269287, -0.18155229091644287, -0.03451252728700638, -0.40156522393226624, -0.11710268259048462, -0.2742465138435364, 0.02079611085355282, 0.20205900073051453, 0.6257654428482056, -0.2948605418205261, -0.1283828616142273, -0.048904187977313995, 0.26168301701545715, -0.049109622836112976, 0.07344429194927216, -0.021956291049718857, -0.15685291588306427, 0.26442596316337585, 0.2554607093334198, -0.14691397547721863, -0.3002219498157501, 0.3491800129413605, -0.10342007875442505, 0.2759413719177246, -0.16232922673225403, -0.09582984447479248, 0.06700658798217773, -0.1347404420375824, -0.198225200176239, 0.04341135546565056, 0.07948917895555496, 0.0268600694835186, -0.2630917429924011, -0.23747539520263672, 0.1905117928981781, -0.12999071180820465, -0.0011348500847816467, -0.2518422305583954, -0.03306528553366661, -0.13789063692092896, -0.24237172305583954, 0.16906669735908508, 0.02753152698278427, 0.39159971475601196, 0.04780498147010803, 0.02589673548936844, 0.045438408851623535, -0.11203349381685257, 0.016895689070224762, 0.08042050898075104, -0.07517404109239578, 0.12114159762859344, -0.43992316722869873, 0.21645426750183105, -0.11259420961141586, -0.08307532966136932, -0.38283976912498474, 0.22139248251914978, 0.012134864926338196, 0.20580101013183594, -0.08277729153633118, 0.2824523150920868, 0.11290489137172699, 0.33421000838279724, 0.07860466092824936, 0.31836989521980286, -0.05235205218195915, -0.23995167016983032, -0.0853363573551178, 0.157584547996521, -0.30827438831329346, 0.19938886165618896, 0.3140444755554199, 0.19703048467636108, 0.24215127527713776, 0.03850264102220535, 0.3347850441932678, 0.10337989032268524, -0.25050634145736694, 0.01732214167714119, 0.16288232803344727, 0.18110167980194092, 0.05413497984409332, 0.14322713017463684, -0.1262160688638687, -0.10760772973299026, -0.11034749448299408, -0.0072381384670734406, 0.1177452951669693, -0.13877448439598083, -0.1597450077533722, 0.2793837785720825, -0.0914551243185997, -0.14640997350215912, -0.2564208209514618, 0.48645439743995667, -0.1666962206363678, -0.23220528662204742, -0.033420316874980927, -0.07397530972957611, -0.2427847534418106, 0.06479676812887192, -0.057057544589042664, 0.3744245767593384, -0.4999316930770874, -0.04487405717372894, -0.06089901551604271, 0.03909149765968323, 0.21534577012062073, 0.28507766127586365, -0.19692771136760712, 0.2209671139717102, -0.15839046239852905, 0.1526075154542923, -0.07547125220298767, -0.3909391760826111, -0.47069382667541504, 0.24471183121204376, -0.13408778607845306, 0.02262197434902191, 0.20442166924476624, -0.14138752222061157, 0.4970313310623169, -0.3135374188423157, -0.09055586904287338, 0.22671286761760712, 0.1310690939426422, 0.02090095728635788, -0.3485868573188782, -0.26384425163269043, 0.2214565873146057, 0.09604786336421967, -0.005267366301268339, 0.07032022625207901, 0.1484973281621933, 0.2947322130203247, 0.24755126237869263, -0.19667978584766388, 0.19358059763908386, 0.2508867084980011, 0.04292602092027664, -0.11770904064178467, 0.026825711131095886, -0.036283232271671295, -0.21714253723621368, 0.01608121395111084, 0.05337943136692047, 0.5594961047172546, 0.049568451941013336, -0.18252137303352356, -0.22433771193027496, -0.0805797129869461, -0.09102112054824829, -0.0941774770617485, 0.23625686764717102, 0.2504652738571167, -0.00047887861728668213, -0.0016526654362678528, 0.02619098126888275, 0.36736932396888733, -0.5647367835044861, -0.3607931137084961, -0.05396977812051773, 0.3357366621494293, -0.07399750500917435, -0.19659791886806488, 0.18269839882850647, 0.15745891630649567, 0.20130428671836853, 0.06313355267047882, -0.038997773081064224, 0.06410124897956848, -0.18010313808918, 0.3866425156593323, -0.008244751021265984, 0.07210887968540192, 0.26385506987571716, -0.6111438274383545, 0.23645086586475372, 0.37631654739379883, 0.21137535572052002, -0.2172631323337555, -0.11777365207672119, 0.19436226785182953, 0.21799451112747192, 0.10463446378707886, 0.18122003972530365, -0.10039865970611572, 0.4180646240711212, 0.03320704400539398, -0.15433907508850098, -0.21846413612365723, 0.18551397323608398, 0.2518805265426636, -0.2344924360513687, 0.05025990307331085, -0.2499329149723053, 0.11588802933692932, 0.5303111672401428, -0.043232645839452744, 0.2990736961364746, 0.29606062173843384, -0.020463891327381134, -0.22502845525741577, 0.14317083358764648, -0.17258283495903015, 0.33132457733154297, 0.31236323714256287, 0.18394939601421356, 0.018274730071425438, 0.11119461804628372, -0.23185697197914124, 0.25868546962738037, 0.06422258168458939, -0.18485479056835175, 0.26624664664268494, 0.1669275462627411, -0.09632577747106552, -0.4054495692253113, -0.09044329822063446, 0.1006520688533783, 0.16564378142356873, -0.20151075720787048, -0.2808840274810791, -0.09344152361154556, -0.004067219793796539, -0.034043945372104645, 0.012092791497707367, -0.11517224460840225, -0.17633888125419617, 0.36968761682510376, 0.1451009213924408, -0.2763325870037079, 0.2118781954050064, 0.17016753554344177, 0.2720696032047272, -0.35046201944351196, -0.12712612748146057, -0.2708381712436676, -0.38595184683799744, -0.332758367061615, 0.16987575590610504, 0.15694035589694977, 0.21469059586524963, 0.13929982483386993, -0.10367411375045776, 0.1219482272863388, -0.2698880434036255, -0.3286663293838501, 0.1964506208896637, -0.28295576572418213, 0.19264155626296997, -0.1522851586341858, 0.10866080224514008, -0.06628883630037308, -0.3872898519039154, -0.19750350713729858, -0.03996887803077698, -0.11091409623622894, 0.029912441968917847, -0.44601213932037354, -0.041986025869846344, -0.17166465520858765, -0.45087265968322754, -0.5141519904136658, -0.48730820417404175, 0.19614405930042267, -0.23058250546455383, 0.08912429213523865, 0.2859640121459961, 0.18027734756469727, -0.06894784420728683, 0.04844103008508682, 0.16054406762123108, -0.33845773339271545, -0.3026745915412903, 0.20916160941123962, -0.2544577121734619, -0.29242029786109924, -0.16418862342834473, 0.0963803306221962, 0.2745873034000397, -0.12033005058765411, -0.39254674315452576, 0.28803515434265137, -0.1640598028898239, 0.3043844401836395, 0.04737795516848564, 0.001723242923617363, 0.35032302141189575, -0.18562808632850647, -0.17926189303398132, -0.21700263023376465, -0.17525695264339447, 0.042524922639131546, 0.3976612091064453, 0.20706355571746826, -0.05418136343359947, 0.05271543934941292, 0.10864172130823135, 0.5772776007652283, 0.13537563383579254, -0.021798836067318916, 0.26152822375297546, 0.09093982726335526, 0.4808560609817505, -0.22865042090415955, -0.3318850100040436, 0.3099712133407593, 0.1430051326751709, -0.05374661833047867, 0.4422288239002228, -0.060372211039066315, -0.33966755867004395, -0.07211211323738098, -0.24839794635772705, -0.21713459491729736, -0.21484756469726562, 0.28909003734588623, 0.01682438887655735, 0.26552945375442505, 0.07364356517791748, -0.10337313264608383, -0.2026955634355545, -0.1360357701778412, 0.1813150942325592, 0.11130949854850769, 0.07078994065523148, -0.01741757057607174, -0.0759069100022316, 0.02365664392709732, -0.25936436653137207, -0.09691940248012543, 0.1112842708826065, 0.36170029640197754, -0.48038676381111145, 0.030534572899341583, 0.03401877358555794, 0.096695676445961, 0.3674914836883545, -0.2934880256652832, 0.04350510612130165, 0.30527663230895996, 0.6362547874450684, -0.127507284283638, 0.11576494574546814, -0.2674593925476074, -0.3658497929573059, 0.6204192638397217, 0.16985104978084564, -0.26206138730049133, -0.01690678671002388, 0.011989794671535492, 0.27514392137527466, -0.0156400203704834, -0.22679615020751953, 0.03383299708366394, -0.3036285638809204, -0.36584100127220154, 0.23292234539985657, 0.43878886103630066, 0.0009312145411968231, 0.08622479438781738, 0.08773873746395111, 0.12069856375455856, -0.12330590188503265, 0.4253793954849243, -0.021681610494852066, 0.056876290589571, 0.4672921895980835, 0.12634606659412384, -0.09974610805511475, -0.22780531644821167, -0.019439999014139175, 0.42845138907432556, 0.0437316820025444, -0.25209274888038635, 0.19312527775764465, -0.15051594376564026, 0.3266112506389618, 0.35901543498039246, 0.07780148088932037, -0.08119817823171616, -0.10516439378261566, 0.030905181542038918, -0.11803528666496277, 0.2863198518753052, 0.16819164156913757, -0.006064910441637039, -0.2975890040397644, -0.14507734775543213, 0.2908438444137573, -0.15432724356651306, -0.1423889547586441, 0.0550684779882431, 0.12462328374385834, -0.19989804923534393, 0.2963704466819763, -0.16503268480300903, 1.2194265127182007, 0.22365038096904755, 0.014955573715269566, 0.1721474528312683, -0.25627243518829346, 0.04603121429681778, -0.5465513467788696, -0.10119349509477615, 0.28515365719795227, 0.05964498221874237, 0.031302616000175476, 0.25067341327667236, 0.061870817095041275, 0.320792019367218, -0.3977726399898529, 0.1666983664035797, 0.062493979930877686, 0.047825466841459274, 0.2526818513870239, 0.4872467517852783, -0.29545488953590393, -0.45693472027778625, -0.41118717193603516, 0.28197842836380005, 0.1554119735956192, 0.1700684279203415, 0.12637466192245483, -0.2567603588104248, 0.31198084354400635, -0.06565731763839722, -0.48681721091270447, 0.29260164499282837, -0.24129721522331238, -0.07545320689678192, -0.41495299339294434, -0.0019800662994384766, 0.5006420612335205, 0.1465868502855301, 0.18779386579990387, 0.18892084062099457, -0.20836564898490906, 0.367381751537323, 0.074061818420887, 0.000978570431470871, 0.14979636669158936, -0.03171786665916443, 0.31776735186576843, -0.26019594073295593, -0.2962607741355896, 0.2222311943769455, 0.04584294557571411, -0.12835660576820374, -0.34814155101776123, -0.1422812044620514, 0.13433317840099335, 0.1277088224887848, 0.19806021451950073, 0.48068591952323914, -0.11199922859668732, -0.30467140674591064, 0.19816367328166962, -0.13009478151798248, -0.3827233910560608, 0.2528736889362335, -0.25196778774261475, -0.2997050881385803, -0.24460020661354065, 0.38139599561691284, 0.1768241673707962, 0.03698020428419113, 0.4371752142906189, 0.289637953042984, -0.2361139953136444, -0.46959033608436584, -0.11107370257377625, -0.06074530631303787, -0.6077983379364014, 0.08017528057098389, 0.13178294897079468, -0.17477846145629883, -0.12155380845069885, 0.45863106846809387, 0.12444692850112915, -0.09601987898349762, -0.04950214922428131, -0.19597139954566956, -0.3087391257286072, -0.18028609454631805, 0.07636657357215881, 0.13930892944335938, 0.08405959606170654, 0.2793385982513428, -0.007221907377243042, -0.03071093000471592, -0.44798797369003296, 0.08970624953508377, -0.15544572472572327, 0.16972589492797852, 0.026673972606658936, -0.1896655112504959, 0.4018850028514862, 0.06061801314353943, 0.19808480143547058, 0.10598795115947723, -0.03715964034199715, -0.23947536945343018, -0.1474311351776123, 0.09041643142700195, 0.19010239839553833, 0.31057512760162354, -0.12292774021625519, -0.11927998065948486, -0.14778244495391846, 0.1248561441898346, 0.39035820960998535, 0.2951335906982422, -0.11268498003482819, 0.22861957550048828, -0.12750324606895447, 0.1538880169391632, 0.2071763575077057, -0.12383939325809479, 0.23680013418197632, 0.37394630908966064, 0.0692301094532013, 0.12963518500328064, -0.019329886883497238, -0.1698899120092392, -0.0997856855392456, 0.36509183049201965, -0.03632960468530655, 0.1720934510231018, 0.13706669211387634, 0.036598727107048035, 0.12790118157863617, 0.1474025547504425, 0.016156427562236786, -0.019126635044813156, -0.025065694004297256, -0.23371565341949463, 0.40904971957206726, 0.29811978340148926, -0.3287236988544464, 0.11986550688743591, -0.4833686947822571, -0.17938075959682465, 0.12374401092529297, -0.01783020794391632, 0.10649651288986206, -0.18308399617671967, 0.4820238947868347, -0.006135772913694382, -0.1658015251159668, -0.053481366485357285, -0.037148889154195786, 0.11064064502716064, 0.06599107384681702, -0.04929764196276665, 0.1264677792787552, -0.0264139361679554, 0.032879430800676346, 0.11688710749149323, -0.2144121676683426, 0.44239920377731323, 0.16501867771148682, 0.20334841310977936, 0.15491236746311188, -0.2464083731174469, 0.06353476643562317, 0.11941918730735779, 0.003567211329936981, 0.282029926776886, 0.06365415453910828, 0.16508051753044128, -0.07727406919002533, -0.15189500153064728, -0.25472208857536316, 0.058193039149045944, -0.019144538789987564, 0.03798815235495567, -0.28617992997169495, -0.19991299510002136, -0.17099489271640778, 0.048519834876060486, 0.005086169578135014, -0.2091922163963318, 0.00010805204510688782, 0.1914757937192917, -0.23313412070274353, -0.2815386652946472, -0.12377314269542694, -0.12306734919548035, 0.172827810049057, -0.2622763216495514, 0.46657589077949524, 0.1278894543647766, 0.01081098522990942, 0.19993580877780914, 0.33508816361427307, 0.48665595054626465, 0.017816893756389618, -0.07814337313175201, 0.09809999167919159, -0.04841812327504158, -0.16086933016777039, -0.03458815813064575, 0.4915323555469513, 0.05959562957286835, 0.29034730792045593, 0.23336784541606903, 0.26291823387145996, -0.26012229919433594, -0.2237103283405304, 0.23665715754032135, -0.09091615676879883, -0.1318204402923584, 0.23771843314170837, 0.038578592240810394, 0.16026794910430908, -0.4732813239097595, -0.050279177725315094, -0.6061915159225464, -0.09877396374940872, 0.37861746549606323, -0.2255297154188156, 0.25814521312713623, -0.2684154212474823, 0.14973348379135132, -0.24982747435569763, 0.337790310382843, 0.348275363445282, -0.01471063494682312, -0.20867621898651123, -0.12431837618350983, -0.2474953830242157, -0.05014028400182724, 0.07806624472141266, 0.04361369460821152, -0.42005985975265503, 0.11174605041742325, 0.4651491045951843, 0.14752298593521118, -0.17277106642723083, 0.11166699975728989, -0.2946398854255676, 0.07354193925857544, -0.3131278157234192, 0.32694312930107117, 0.1025165244936943, 0.4720638394355774, 0.06353355944156647, -0.23274001479148865, -0.30491647124290466, 0.2680443525314331, 0.09591174125671387, -0.12548542022705078, -0.10326166450977325, -0.10062079131603241, -0.08354730904102325, 0.3423154056072235, -0.03571915626525879, 0.4685293436050415, -0.2829302251338959, -0.00957978144288063, -0.23340509831905365, -0.11468421667814255, -0.04614623636007309, -0.035691630095243454, -0.0001256568357348442, 0.24952921271324158, -0.06529130041599274, 0.27965062856674194, -0.09385116398334503, -0.06763611733913422, 0.015478380024433136, 0.06324732303619385, -0.21293514966964722, 0.17209303379058838, -0.2163684368133545, 0.0971575528383255, -0.24149583280086517, 0.20025253295898438, 0.10393397510051727, -0.15385356545448303, -0.3313705623149872, -0.27565640211105347, 0.38220643997192383, -0.14178046584129333, -0.3627888560295105, 0.003198038786649704, 0.3467355966567993, 0.14248786866664886, 0.05439619719982147, -0.5818463563919067, 0.20407649874687195, 0.29361677169799805, 0.06264850497245789, 0.09746640920639038, 0.16814500093460083, 0.018459085375070572, -0.013143032789230347, -0.1100517138838768, 0.03965403139591217, 0.19524812698364258, -0.26444584131240845, 0.05783029645681381, -0.3341229557991028 ]
https://github.com/huggingface/datasets/issues/1843
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?
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).
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.17688921093940735, 0.23500728607177734, -0.08606843650341034, 0.20410384237766266, -0.23309797048568726, -0.04346432536840439, 0.3742259740829468, -0.04431675374507904, 0.06548817455768585, 0.10112389922142029, -0.4423064589500427, -0.294847697019577, -0.05301281437277794, 0.19022242724895477, 0.18855541944503784, 0.06279870867729187, 0.19078291952610016, -0.2238713651895523, -0.16700153052806854, -0.19653835892677307, -0.17660921812057495, -0.07325831800699234, 0.07063443958759308, -0.05589607357978821, -0.10986936092376709, -0.0346703976392746, -0.2770484387874603, -0.2518584430217743, -0.13460129499435425, -0.10938462615013123, -0.08872596174478531, 0.07147388160228729, 0.21228142082691193, 0.3748485743999481, -0.0001111458259401843, -0.038317836821079254, 0.19570866227149963, -0.056541621685028076, -0.3509974479675293, -0.16939677298069, -0.5732918381690979, 0.06604447960853577, -0.5719039440155029, -0.10174371302127838, -0.12679120898246765, -0.22106049954891205, -0.02478296309709549, -0.026252254843711853, -0.021778032183647156, 0.42115411162376404, 0.1724236011505127, 0.0767071545124054, -0.0757346972823143, 0.07121681421995163, 0.5016145706176758, 0.1903972029685974, -0.12085438519716263, 0.04860783368349075, 0.15751789510250092, 0.2447098195552826, 0.03805399686098099, 0.48385897278785706, -0.0023885145783424377, -0.09432367235422134, 0.14079052209854126, -0.06521695852279663, -0.27296182513237, -0.2105962187051773, -0.058488838374614716, 0.12729594111442566, 0.9238362908363342, -0.08048749715089798, -0.3618766963481903, -0.08672105520963669, 0.1270470768213272, 0.025629960000514984, -0.022561460733413696, 0.32937538623809814, 0.08803433179855347, 0.48146215081214905, 0.07300300151109695, -0.5656747817993164, -0.2542559504508972, 0.42202240228652954, -0.007557481527328491, 0.4286476969718933, -0.1196792796254158, 0.06453035771846771, -0.2250845730304718, -0.007290976122021675, 0.1006181389093399, -0.3901228606700897, 0.08256947994232178, -0.1444491744041443, 0.021904142573475838, -0.2602432370185852, 0.13904477655887604, -0.001605713739991188, -0.03521062806248665, -0.11277841031551361, -0.02806205302476883, -0.2498500794172287, -0.18363462388515472, 0.17592903971672058, 0.11288940906524658, 0.194685161113739, -0.055710721760988235, 0.12342037260532379, 0.33316653966903687, -0.1184011921286583, 0.10244544595479965, 0.05359042063355446, 0.05062141269445419, 0.3487091362476349, -0.6194533705711365, -0.15461312234401703, 0.05354447662830353, -0.17302682995796204, -0.2532058656215668, 0.2715061604976654, 0.07610903680324554, 0.08112160861492157, 0.09384968876838684, 0.22817163169384003, 0.11549046635627747, 0.09707674384117126, -0.09829163551330566, 0.4322943091392517, 0.2728833556175232, -0.21296104788780212, 0.06882502883672714, 0.06875593215227127, -0.1255345642566681, 0.28544074296951294, -0.013451315462589264, 0.4373061954975128, 0.04321170598268509, 0.07233496010303497, 0.45368286967277527, -0.04964100569486618, 0.08444584161043167, -0.0790756493806839, 0.14106261730194092, 0.1844739466905594, 0.11133305728435516, 0.2003936767578125, -0.26961857080459595, -0.08290678262710571, -0.0982414186000824, 0.13924765586853027, 0.04106554388999939, -0.42833608388900757, -0.20542410016059875, 0.15301670134067535, -0.2411671131849289, -0.1772436499595642, -0.39373934268951416, 0.46771925687789917, -0.10898084938526154, -0.1580183207988739, 0.06681592762470245, 0.3648848533630371, -0.5243885517120361, 0.032025936990976334, -0.2461237609386444, 0.303516149520874, -0.26568689942359924, 0.16246698796749115, 0.15068504214286804, 0.36103498935699463, -0.0026281625032424927, 0.3630707263946533, -0.3029225766658783, 0.3589446544647217, -0.04688682407140732, 0.26672080159187317, 0.19629469513893127, -0.2316157966852188, -0.3109978139400482, 0.38333022594451904, -0.15814051032066345, -0.08030262589454651, 0.12024553120136261, -0.09302271902561188, 0.3154143691062927, -0.2549365758895874, 0.038015156984329224, 0.3598024845123291, 0.3089078664779663, 0.1584504246711731, -0.2977128326892853, -0.30352580547332764, 0.19377756118774414, 0.2918928265571594, -0.005383102688938379, 0.04014183580875397, 0.20563186705112457, 0.1810542345046997, 0.08135148137807846, -0.44835203886032104, 0.33149152994155884, 0.1831410527229309, 0.06472482532262802, -0.08495546132326126, -0.08951592445373535, 0.021044962108135223, -0.2334609478712082, -0.014325127005577087, 0.17697682976722717, 0.5444406867027283, 0.016345536336302757, -0.3388364315032959, -0.10663975030183792, -0.09031858295202255, -0.121104896068573, -0.23754236102104187, 0.12937605381011963, 0.1012217104434967, -0.022610411047935486, 0.21130025386810303, -0.151401549577713, 0.12175439298152924, -0.37333986163139343, -0.1286693960428238, -0.06280016899108887, 0.3903951942920685, -0.026916135102510452, 0.16042296588420868, 0.09971357882022858, 0.26311174035072327, 0.018151534721255302, -0.11166542768478394, 0.12293624877929688, 0.1779537796974182, -0.19912615418434143, 0.4674474596977234, 0.2875538766384125, 0.27188053727149963, 0.45377209782600403, -0.4568029046058655, 0.4307045638561249, 0.1117926836013794, 0.055706173181533813, -0.27083325386047363, -0.09530964493751526, 0.14117416739463806, 0.0712658166885376, 0.27983343601226807, -0.08128224313259125, -0.013991083949804306, 0.12279458343982697, 0.15296977758407593, -0.3194539546966553, -0.06755444407463074, 0.11929793655872345, 0.3907162547111511, -0.05007828399538994, 0.08405733108520508, -0.24869415163993835, 0.2649685740470886, 0.22244012355804443, -0.14015673100948334, 0.12981155514717102, 0.20511165261268616, -0.16181135177612305, -0.30604591965675354, 0.31695371866226196, 0.010889627039432526, 0.3427007496356964, 0.22596322000026703, 0.3396804630756378, -0.03801766782999039, 0.2025637924671173, -0.19476431608200073, 0.3998693823814392, 0.12127367407083511, -0.23179250955581665, 0.026117462664842606, 0.059833500534296036, -0.22109615802764893, -0.1962628960609436, -0.14364227652549744, 0.0685112252831459, -0.022015471011400223, -0.29287534952163696, -0.1260189712047577, 0.3531065285205841, -0.2213846892118454, -0.14543898403644562, -0.0889575257897377, -0.223686084151268, -0.07370293140411377, 0.2939586639404297, 0.026151936501264572, -0.38821637630462646, 0.05274307727813721, 0.14345335960388184, 0.4267384707927704, -0.4990488886833191, -0.22494591772556305, -0.1499335914850235, -0.30448415875434875, -0.05681692063808441, 0.11554192751646042, 0.42163556814193726, 0.09270815551280975, 0.12397673726081848, 0.01991923898458481, 0.16071626543998718, -0.5759223699569702, -0.08785666525363922, 0.11583825945854187, -0.2258942574262619, 0.10478387027978897, -0.1758354753255844, 0.0057033635675907135, -0.11092061549425125, -0.3367813527584076, -0.10697068274021149, 0.2574760913848877, 0.3168448805809021, -0.27733057737350464, -0.1600438952445984, -0.14566326141357422, 0.027771547436714172, -0.32743966579437256, -0.4971727132797241, -0.2563108801841736, 0.21216535568237305, -0.16059382259845734, -0.03634592145681381, -0.18560907244682312, 0.12090961635112762, 0.02765822410583496, 0.26401016116142273, -0.12190288305282593, -0.35777127742767334, -0.4457054138183594, 0.2771976888179779, -0.2792566120624542, -0.31867554783821106, -0.2165583223104477, 0.22022901475429535, 0.30443623661994934, 0.007286913692951202, -0.5050761103630066, 0.12216974794864655, 0.11365363001823425, 0.23362454771995544, 0.16581059992313385, 0.25721535086631775, -0.11630740761756897, -0.04563082754611969, -0.0972234308719635, -0.0335046648979187, -0.05299445241689682, -0.014532476663589478, 0.35112690925598145, 0.11419865489006042, 0.1847338229417801, -0.06527496874332428, 0.04659326374530792, 0.8114855885505676, 0.2052145153284073, 0.09424525499343872, 0.2072390764951706, 0.12226378917694092, 0.2584122121334076, -0.10968660563230515, -0.23267677426338196, 0.45075565576553345, -0.011075370013713837, -0.45310157537460327, 0.40923991799354553, 0.19363562762737274, -0.42436879873275757, -0.18118320405483246, -0.19274261593818665, -0.2558113932609558, -0.2215338945388794, 0.2201714664697647, -0.00041878107003867626, 0.23257297277450562, 0.25501084327697754, -0.3409237861633301, -0.1501014232635498, -0.2251625955104828, 0.17382490634918213, 0.10808926820755005, 0.15004682540893555, -0.03392229974269867, -0.15731769800186157, 0.007291402667760849, -0.42443498969078064, 0.12239096313714981, 0.10364475846290588, -0.05357391759753227, -0.15059277415275574, 0.0437563955783844, 0.23787596821784973, 0.04675721004605293, 0.23734164237976074, -0.6042853593826294, -0.23360837996006012, -0.10051246732473373, 0.5441198348999023, -0.0872383639216423, 0.2938614785671234, -0.07094544172286987, -0.32174134254455566, 0.4324364960193634, 0.07963953912258148, -0.31607937812805176, 0.17356917262077332, -0.03784939646720886, 0.17862504720687866, 0.015404894948005676, -0.24830542504787445, 0.16220945119857788, -0.26269593834877014, -0.3507336676120758, 0.02457636222243309, 0.4427521228790283, -0.2547820508480072, 0.11674032360315323, 0.10652704536914825, 0.18454475700855255, 0.17309041321277618, 0.3746155798435211, 0.02782762050628662, -0.2092147171497345, 0.26845309138298035, -0.19932571053504944, -0.001218433491885662, -0.03033502772450447, 0.11175436526536942, 0.5347267985343933, 0.12441782653331757, -0.09206295013427734, -0.06595127284526825, -0.31508174538612366, 0.24783286452293396, 0.4789138436317444, 0.15419861674308777, -0.019275028258562088, -0.137991264462471, 0.018234983086586, -0.2363637238740921, 0.1149396300315857, 0.04476484656333923, 0.16968101263046265, -0.169114887714386, -0.31247109174728394, 0.4716693162918091, -0.11614266782999039, -0.2748441696166992, 0.13535034656524658, 0.4610557556152344, -0.33317533135414124, 0.38124793767929077, -0.07772120833396912, 1.257404088973999, 0.20912694931030273, 0.30341628193855286, 0.1667194962501526, -0.21478977799415588, 0.36229759454727173, -0.8011131286621094, -0.33741313219070435, 0.24670203030109406, 0.4070870578289032, -0.1861032247543335, 0.053932830691337585, -0.1168699562549591, 0.2588731646537781, -0.260206937789917, 0.10859499871730804, 0.388454794883728, 0.26796942949295044, 0.047313012182712555, 0.6848995685577393, -0.1614898294210434, -0.37345725297927856, -0.3993866443634033, 0.2234208583831787, -0.05499542877078056, 0.11945417523384094, -0.11274316161870956, -0.07171843945980072, 0.02675989270210266, -0.020831331610679626, -0.434580534696579, 0.05076456815004349, -0.17326587438583374, 0.10412375628948212, -0.7388632297515869, -0.1987110823392868, 0.4851575195789337, 0.2617509365081787, 0.3026669919490814, -0.13196662068367004, -0.3229515254497528, 0.10031071305274963, -0.1360892504453659, 0.20563215017318726, 0.0788022130727768, -0.2793513238430023, 0.24902121722698212, -0.19469046592712402, -0.16996203362941742, 0.3036070466041565, 0.18267670273780823, -0.12577512860298157, -0.18696731328964233, -0.23140664398670197, -0.06341534107923508, -0.10145772993564606, 0.0645371824502945, 0.7086158990859985, -0.12422677874565125, -0.14234672486782074, 0.08981925249099731, -0.035518862307071686, -0.18234674632549286, 0.06302423775196075, -0.17242127656936646, -0.25836315751075745, -0.29587554931640625, 0.2627401053905487, 0.14361019432544708, -0.16577938199043274, 0.1606542021036148, 0.2066294103860855, -0.20302249491214752, -0.233234703540802, 0.29716014862060547, -0.1968928575515747, -0.40409302711486816, -0.09789694845676422, 0.1039418876171112, 0.008909463882446289, -0.6479463577270508, 0.012277666479349136, 0.301407128572464, 0.05656716972589493, 0.012474417686462402, -0.0032777786254882812, -0.10575982928276062, 0.11535704135894775, 0.1963127702474594, 0.19570651650428772, -0.004136532545089722, 0.022175945341587067, -0.004019208252429962, -0.2936593294143677, -0.3257691264152527, 0.12165336310863495, 0.13220566511154175, 0.015142805874347687, 0.2304726243019104, -0.05592525005340576, 0.37303441762924194, -0.13030844926834106, 0.0037820525467395782, -0.2780870199203491, -0.13216349482536316, -0.12665501236915588, -0.09024719148874283, 0.13399657607078552, 0.3759600520133972, -0.10652433335781097, -0.3196529448032379, -0.32336506247520447, -0.10003075748682022, 0.17223785817623138, 0.24965448677539825, 0.2512974143028259, -0.20866648852825165, 0.024166584014892578, -0.08988435566425323, -0.07304416596889496, -0.1285451352596283, 0.05321421101689339, 0.2011704444885254, 0.4249561131000519, -0.06613752245903015, 0.21517451107501984, 0.22741630673408508, -0.1533636450767517, -0.02838328294456005, 0.3125064969062805, 0.08121268451213837, 0.30801260471343994, 0.27523380517959595, 0.0044600870460271835, 0.1644078940153122, 0.1426965892314911, 0.17868980765342712, 0.2465071678161621, -0.15804216265678406, -0.24832890927791595, 0.24003878235816956, 0.18790759146213531, -0.01492951437830925, 0.12488065659999847, -0.24573367834091187, -0.10615572333335876, 0.11785425990819931, 0.12354104220867157, 0.4039236605167389, 0.1374644786119461, -0.005646832287311554, -0.03770643100142479, -0.03369859606027603, -0.07295104116201401, -0.04408279061317444, 0.03754863142967224, -0.04809962958097458, 0.21222445368766785, -0.05621042847633362, 0.13018397986888885, 0.056459810584783554, 0.1402943730354309, -0.25299009680747986, 0.42802396416664124, 0.39585351943969727, 0.06099354848265648, 0.23221592605113983, 0.18270206451416016, 0.03951456770300865, -0.1088230237364769, 0.098752461373806, 0.1106773167848587, 0.1932627111673355, 0.10295677930116653, 0.04996003955602646, -0.08836212009191513, -0.16289593279361725, 0.22125037014484406, 0.15593786537647247, -0.054639533162117004, -0.32228925824165344, -0.22646236419677734, -0.20324787497520447, 0.03934416174888611, -0.21803492307662964, -0.3061271905899048, -0.0036363378167152405, 0.18274712562561035, 0.018577488139271736, -0.16396573185920715, 0.21267804503440857, -0.1389378011226654, 0.10957341641187668, -0.1786135882139206, 0.22149482369422913, 0.17736998200416565, 0.051876865327358246, 0.1455044001340866, 0.5054802894592285, 0.4030260443687439, -0.09547232836484909, -0.11775839328765869, 0.213049978017807, -0.08502097427845001, -0.041526250541210175, -0.05015125870704651, 0.369875967502594, -0.09476333856582642, -0.0204169824719429, 0.45808467268943787, 0.12083246558904648, -0.12284466624259949, 0.03589896112680435, -0.06578273326158524, -0.015515042468905449, -0.18482840061187744, 0.20888173580169678, -0.06471975892782211, -0.08886124193668365, -0.1972198784351349, -0.23230838775634766, -0.45678287744522095, 0.08731378614902496, 0.6285593509674072, -0.4415358603000641, 0.1877528727054596, -0.16885803639888763, 0.06379073113203049, -0.14169996976852417, 0.48881295323371887, 0.2291920930147171, 0.12238427996635437, -0.3486630916595459, -0.0772763192653656, -0.32447120547294617, -0.08449044823646545, 0.030825097113847733, 0.1885186731815338, -0.5234078764915466, 0.16617414355278015, 0.3957471549510956, 0.46610507369041443, -0.3010933995246887, 0.057813119143247604, -0.7391777634620667, 0.13252155482769012, -0.26320698857307434, 0.28684982657432556, -0.24001523852348328, 0.725226104259491, -0.09475326538085938, 0.09524503350257874, -0.08407938480377197, 0.28257763385772705, -0.06991694867610931, -0.25384679436683655, 0.09706981480121613, -0.1875065118074417, -0.25753384828567505, 0.34021425247192383, -0.0026480387896299362, 0.27877277135849, -0.18990442156791687, 0.02295803278684616, -0.22575944662094116, -0.28394144773483276, -0.05334195867180824, 0.11287912726402283, -0.1534743458032608, 0.2266213744878769, -0.2143363356590271, 0.016656076535582542, -0.03171081095933914, -0.27892637252807617, -0.039581093937158585, 0.23075228929519653, -0.12914180755615234, -0.06281910091638565, -0.24417516589164734, 0.11290167272090912, -0.0918312817811966, 0.3301852345466614, -0.025787901133298874, -0.08229280263185501, -0.2801312506198883, -0.2600487172603607, 0.3812658190727234, -0.015017479658126831, -0.2919612526893616, 0.3405652642250061, 0.36713868379592896, 0.22141343355178833, -0.04750776290893555, -0.7940040826797485, 0.1044563502073288, 0.33248481154441833, 0.1010681763291359, -0.04505668953061104, 0.07021699845790863, 0.16054880619049072, -0.024523913860321045, -0.251402884721756, 0.018531808629631996, -0.11451834440231323, -0.26853716373443604, -0.10672412812709808, -0.31155499815940857 ]
https://github.com/huggingface/datasets/issues/1843
Yes definitely. Shall we suggest them to create a dataset repository under their org on huggingface.co ? @julien-c The dataset is around 1TB
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).
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.28197425603866577, 0.13165077567100525, -0.11428947746753693, 0.1891249716281891, -0.07617303729057312, 0.02389504760503769, -0.015186354517936707, 0.1323358416557312, -0.29278668761253357, 0.15688268840312958, -0.28827792406082153, -0.2273530662059784, -0.13569006323814392, 0.17714598774909973, 0.19771075248718262, -0.16475799679756165, 0.12651968002319336, -0.023116394877433777, -0.32716792821884155, -0.2998179495334625, -0.09859657287597656, 0.07615011185407639, -0.08869729191064835, -0.19200211763381958, -0.26979365944862366, -0.03681229054927826, -0.3112088143825531, -0.21777239441871643, -0.3672374486923218, -0.21104827523231506, 0.03926808387041092, 0.05946756899356842, 0.16564233601093292, 0.5584834218025208, -0.00010524586832616478, -0.12061160057783127, 0.19928409159183502, -0.23859935998916626, -0.2963814437389374, -0.1344754695892334, -0.20269697904586792, -0.23498938977718353, -0.6540786623954773, 0.03312084078788757, -0.25151684880256653, -0.1497751623392105, 0.02420770563185215, -0.005126655101776123, 0.18497484922409058, 0.5032081604003906, 0.22876378893852234, 0.11690111458301544, 0.2910441756248474, -0.147268146276474, 0.24384427070617676, 0.07538719475269318, -0.1609887182712555, 0.15516439080238342, 0.2891930043697357, 0.22601860761642456, 0.11283215880393982, 0.5088257193565369, 0.0498543307185173, -0.28275108337402344, -0.003575507551431656, -0.3058147430419922, -0.19649793207645416, -0.4243426024913788, 0.14942611753940582, 0.27483683824539185, 0.5471498966217041, -0.2278178185224533, -0.2290818691253662, -0.1697380393743515, 0.26119351387023926, -0.15680326521396637, -0.049918949604034424, 0.11228908598423004, -0.16897591948509216, 0.37711310386657715, 0.10190483182668686, -0.39551490545272827, -0.21127229928970337, 0.28540366888046265, 0.023280560970306396, 0.2817799746990204, -0.1576867550611496, -0.09900154918432236, 0.10042280703783035, -0.2646620571613312, -0.38530826568603516, -0.08338779211044312, -0.007706460077315569, 0.0923127830028534, -0.17226456105709076, -0.3142675757408142, 0.2135917842388153, -0.00679035484790802, 0.2582922577857971, -0.32278311252593994, -0.2262987643480301, -0.15160222351551056, -0.19317367672920227, -0.08005431294441223, 0.09862212836742401, 0.3844141662120819, -0.06728534400463104, -0.016043204814195633, 0.10915020108222961, -0.2292177379131317, 0.0716153085231781, 0.14436502754688263, -0.07460755854845047, 0.1786736249923706, -0.4144827127456665, 0.07346554100513458, 0.029187455773353577, -0.2194576859474182, -0.18961559236049652, 0.12062636762857437, -0.030718952417373657, 0.05993141233921051, -0.01124875433743, 0.3262389600276947, 0.052554335445165634, 0.26421281695365906, -0.10743702948093414, 0.3535129725933075, -0.0494069866836071, -0.22312283515930176, -0.09070888161659241, 0.12493940442800522, -0.18162687122821808, 0.15852637588977814, 0.22242769598960876, 0.25212904810905457, 0.08082417398691177, -0.030709868296980858, 0.2543049156665802, 0.11203589290380478, -0.2170092612504959, -0.04385834187269211, 0.22661077976226807, 0.03436724469065666, -0.006522566080093384, 0.057470135390758514, -0.2188865840435028, -0.1199042797088623, -0.2017616331577301, 0.05618881434202194, 0.0737987607717514, -0.13034817576408386, -0.24507860839366913, 0.23723651468753815, -0.14334386587142944, -0.23461292684078217, -0.3658263087272644, 0.662466287612915, -0.09893877059221268, -0.061883121728897095, 0.09156154096126556, 0.22918561100959778, -0.41133198142051697, 0.041374895721673965, -0.07402371615171432, 0.3984494209289551, -0.1373506486415863, -0.13094137609004974, 0.11314264684915543, 0.03831896930932999, 0.01388174295425415, 0.29075145721435547, -0.038374174386262894, 0.19330736994743347, -0.03245045989751816, 0.34800681471824646, 0.03418605029582977, -0.40460777282714844, -0.4445277154445648, 0.14928004145622253, -0.26170849800109863, -0.08497702330350876, 0.23052272200584412, -0.07539933919906616, 0.5631133913993835, -0.2706468999385834, -0.006291676312685013, 0.29146188497543335, -0.024724258109927177, 0.09287327527999878, -0.23497706651687622, -0.41557469964027405, 0.2283691167831421, 0.16995806992053986, 0.08371451497077942, -0.045387543737888336, -0.03900715336203575, 0.3225710988044739, 0.19395217299461365, -0.26404687762260437, 0.27395474910736084, 0.26384833455085754, 0.11226458847522736, -0.117882639169693, -0.010532371699810028, -0.22655293345451355, -0.16221842169761658, -0.04582057148218155, 0.16517499089241028, 0.558830738067627, 0.03934219479560852, -0.2482077032327652, -0.10936446487903595, -0.17966262996196747, -0.19668026268482208, -0.15576088428497314, 0.23795585334300995, 0.2530166506767273, 0.19449859857559204, 0.14051705598831177, -0.14185510575771332, 0.26130643486976624, -0.31850671768188477, -0.18505588173866272, -0.13663804531097412, 0.23913471400737762, -0.0062541235238313675, -0.2149602323770523, 0.24084147810935974, 0.4956151843070984, 0.08686815202236176, -0.07899203896522522, 0.07189623266458511, 0.055457741022109985, -0.3503277897834778, 0.17385408282279968, 0.12443897128105164, 0.23394230008125305, 0.32750001549720764, -0.5012203454971313, 0.22469240427017212, 0.27097296714782715, 0.10816596448421478, -0.15985074639320374, -0.11660435050725937, 0.1506720930337906, 0.2914887070655823, 0.08309698104858398, 0.05699276179075241, -0.0883580669760704, 0.3350684642791748, 0.09631691128015518, -0.12943318486213684, -0.08241568505764008, 0.11843648552894592, 0.19736941158771515, 0.008262865245342255, 0.1231062114238739, -0.30710962414741516, 0.1754608154296875, 0.5225206613540649, -0.18223366141319275, 0.3080972731113434, 0.33165478706359863, -0.09873777627944946, -0.13552376627922058, 0.08561922609806061, -0.18747426569461823, 0.26950517296791077, 0.3026123642921448, 0.21792244911193848, -0.0037575075402855873, 0.32384195923805237, -0.07486481964588165, 0.12743496894836426, 0.016029659658670425, -0.24426963925361633, 0.19694000482559204, 0.19473519921302795, -0.10073818266391754, -0.3468712568283081, 0.045401349663734436, -0.038537122309207916, 0.23384971916675568, -0.07250745594501495, -0.3474929928779602, 0.13094410300254822, -0.2900647521018982, -0.2631686329841614, 0.08697883039712906, -0.26490893959999084, 0.07767288386821747, 0.3261663019657135, -0.022097261622548103, -0.07911510765552521, 0.20161831378936768, 0.24477891623973846, 0.3428671956062317, -0.4011152386665344, -0.08043039590120316, -0.01758076250553131, -0.32776904106140137, -0.14392799139022827, 0.18106579780578613, 0.2856895625591278, 0.11810846626758575, 0.2969575822353363, -0.18189184367656708, 0.14762412011623383, -0.2822350859642029, -0.3307645320892334, 0.2242473065853119, -0.2791382670402527, 0.040908083319664, -0.19014926254749298, 0.03445981442928314, -0.05750517547130585, -0.3769901394844055, -0.14642399549484253, 0.0630079060792923, -0.11375376582145691, -0.10054872184991837, -0.42175236344337463, -0.13026970624923706, 0.026524148881435394, -0.44833189249038696, -0.51887047290802, -0.42685431241989136, 0.4857850670814514, -0.2541285753250122, -0.06963218748569489, 0.004321213811635971, 0.022377226501703262, 0.19442187249660492, -0.09268321096897125, 0.18667295575141907, -0.27600330114364624, -0.27698156237602234, 0.16211706399917603, -0.20883116126060486, -0.3052786588668823, -0.21771526336669922, 0.04256805032491684, 0.0888221487402916, -0.11373583972454071, -0.4125671088695526, 0.10124076157808304, -0.15009728074073792, 0.3791904151439667, 0.19745129346847534, 0.15988799929618835, 0.26224803924560547, -0.1320284605026245, -0.11258754134178162, -0.10748212039470673, -0.2057558298110962, 0.020997928455471992, 0.3534582853317261, 0.20229418575763702, -0.005076057277619839, 0.10066179186105728, 0.07428130507469177, 0.6177754998207092, 0.3007919192314148, -0.014930660836398602, 0.20794892311096191, 0.10917485505342484, 0.4607522487640381, -0.2662663459777832, -0.44124919176101685, 0.5007211565971375, 0.12886427342891693, 0.006646573543548584, 0.46065428853034973, 0.14169681072235107, -0.33816078305244446, -0.12342401593923569, -0.44039350748062134, -0.18571434915065765, -0.2916960120201111, 0.304572731256485, 0.16763082146644592, 0.20781484246253967, -0.06558071821928024, -0.23408053815364838, -0.25607776641845703, -0.14121271669864655, 0.21514108777046204, 0.1932206153869629, -0.0028481334447860718, 0.009607363492250443, -0.19962778687477112, -0.04548990726470947, -0.5053678750991821, -0.07741539180278778, 0.17000854015350342, 0.28665056824684143, -0.46978363394737244, 0.10195814073085785, 0.015118714421987534, 0.1103736162185669, 0.3322482109069824, -0.2976498603820801, -0.08149640262126923, 0.12115613371133804, 0.3847767114639282, 0.041548848152160645, 0.3428760766983032, -0.1924239993095398, -0.1800605058670044, 0.5656818747520447, 0.3200421929359436, -0.42323562502861023, -0.04730025678873062, 0.28940945863723755, 0.3699552118778229, -0.022350914776325226, -0.10714876651763916, 0.11507032811641693, -0.3763304054737091, -0.3671843111515045, 0.2561841309070587, 0.4782506823539734, 0.014907781034708023, 0.2987658977508545, 0.14303770661354065, 0.17449285089969635, -0.07851817458868027, 0.43223515152931213, -0.08490034937858582, -0.07094317674636841, 0.4809967577457428, 0.15703853964805603, 0.04984445124864578, -0.011931432411074638, -0.047139234840869904, 0.31871211528778076, -0.0961805135011673, -0.36102989315986633, 0.010158538818359375, -0.25900304317474365, 0.36011260747909546, 0.38178586959838867, 0.16502514481544495, 0.04773423820734024, -0.06674909591674805, 0.09958530962467194, -0.2544426918029785, 0.14955253899097443, 0.23855111002922058, 0.2091665267944336, -0.3974749743938446, -0.2317342460155487, 0.3972524404525757, 0.018185526132583618, -0.036224961280822754, 0.022150591015815735, 0.3118009567260742, -0.2192685306072235, 0.22984625399112701, -0.1993250548839569, 1.2992123365402222, 0.1632506251335144, 0.09036467224359512, 0.21979713439941406, -0.21111109852790833, 0.1376824975013733, -0.37811264395713806, -0.17612195014953613, 0.2771657705307007, 0.20058925449848175, 0.00011469423770904541, 0.2628123164176941, -0.00714624859392643, 0.19687271118164062, -0.430905282497406, 0.24300183355808258, 0.08248165249824524, 0.1120302826166153, 0.09187914431095123, 0.5037052631378174, -0.21236415207386017, -0.4368635416030884, -0.4565168023109436, 0.2659359872341156, 0.1328689455986023, 0.21410642564296722, 0.10907751321792603, -0.28101104497909546, 0.12475573271512985, -0.03852912411093712, -0.6611130833625793, 0.018588952720165253, -0.2485933005809784, -0.09873741865158081, -0.3500000834465027, -0.17877285182476044, 0.3545897603034973, 0.20690995454788208, 0.39119255542755127, 0.0065713683143258095, -0.25547757744789124, 0.17936551570892334, -0.05392986163496971, -0.016611415892839432, 0.2345946878194809, -0.1129862517118454, 0.3398459255695343, -0.3037160336971283, -0.30382663011550903, 0.11857923120260239, 0.17891383171081543, -0.05877555534243584, -0.4278464615345001, -0.19759368896484375, 0.08248288929462433, 0.0208466537296772, 0.13243015110492706, 0.5716291666030884, -0.0725073367357254, -0.1865529865026474, 0.1920008659362793, 0.003756016492843628, -0.3681875169277191, 0.17158667743206024, -0.12643630802631378, -0.2424497753381729, -0.2466191053390503, 0.2281709909439087, 0.21115738153457642, -0.07086388021707535, 0.32063424587249756, 0.26392972469329834, -0.21182234585285187, -0.35119107365608215, -0.027741611003875732, 0.15814468264579773, -0.6010569334030151, -0.02377508580684662, 0.11530940979719162, -0.14786475896835327, -0.29182949662208557, 0.22491103410720825, 0.16225320100784302, -0.13017717003822327, -0.02170739322900772, 0.000514395534992218, -0.31939244270324707, 0.04089091718196869, 0.19097669422626495, 0.12799987196922302, -0.09403064846992493, 0.2617276906967163, 0.08424095809459686, -0.10707967728376389, -0.42646631598472595, 0.10155518352985382, -0.09285972267389297, 0.1503618210554123, 0.35200899839401245, -0.12294670939445496, 0.16425049304962158, -0.008465416729450226, 0.14717598259449005, -0.04994480311870575, -0.12538515031337738, -0.22922898828983307, -0.10272227227687836, 0.09125411510467529, 0.046807557344436646, 0.1537688970565796, 0.02538163587450981, -0.11044736206531525, -0.2151511162519455, 0.12173140048980713, 0.3245627284049988, 0.2861369848251343, 0.0006525609642267227, 0.09007726609706879, -0.016749616712331772, -0.05220973864197731, 0.1707628071308136, 0.07091078162193298, 0.36547625064849854, 0.34591349959373474, 0.11996816843748093, 0.16755592823028564, 0.046190936118364334, -0.12346620112657547, -0.01786293461918831, 0.3209615647792816, 0.22236216068267822, 0.057494521141052246, 0.0683491975069046, 0.003902740776538849, 0.15139463543891907, 0.4949723482131958, 0.05590283125638962, -0.019385866820812225, -0.11283060908317566, -0.012219130992889404, 0.40422582626342773, 0.26555126905441284, -0.2175685167312622, 0.15770749747753143, -0.11656250804662704, -0.26818251609802246, 0.14534540474414825, 0.136053666472435, 0.025957956910133362, 0.04932394623756409, 0.2134721577167511, -0.05002510920166969, -0.11258849501609802, 0.11137831956148148, 0.033252447843551636, 0.15687870979309082, 0.17740173637866974, -0.040456678718328476, 0.07922554016113281, 0.10816740989685059, 0.1449204683303833, 0.002245573792606592, -0.2128184586763382, 0.4793623983860016, 0.060119204223155975, 0.17907702922821045, 0.2776874005794525, -0.05780146270990372, 0.046083953231573105, 0.20104609429836273, 0.17333637177944183, 0.15914472937583923, -0.0010346882045269012, 0.4170066714286804, 0.010353859513998032, -0.3126991093158722, -0.13726961612701416, 0.28178665041923523, -0.04075251892209053, -0.04225188493728638, 0.03983991593122482, -0.22051623463630676, -0.25305482745170593, 0.034265778958797455, -0.0721728652715683, -0.32665741443634033, -0.035887449979782104, 0.17900091409683228, -0.15684393048286438, -0.2047484666109085, -0.13559728860855103, -0.17444376647472382, 0.19365008175373077, -0.1843630075454712, 0.41019007563591003, 0.19324155151844025, -0.09744062274694443, 0.1663823276758194, 0.5504932403564453, 0.5049690008163452, -0.02846571058034897, -0.11324121057987213, 0.27323222160339355, -0.07761518657207489, -0.07311487942934036, -0.05076417326927185, 0.40470975637435913, 0.010442731902003288, 0.11425416171550751, 0.20260800421237946, 0.2117384672164917, -0.19361144304275513, -0.1927449256181717, 0.1268787384033203, -0.13385936617851257, -0.23485061526298523, 0.1727147400379181, -0.18696382641792297, 0.09055149555206299, -0.5943129658699036, -0.13082857429981232, -0.554319441318512, 0.12384435534477234, 0.4093554615974426, -0.30347394943237305, 0.10661858320236206, -0.199876070022583, 0.10634530335664749, -0.1901714950799942, 0.3664018213748932, 0.31149429082870483, 0.04901830106973648, -0.15170618891716003, -0.16765709221363068, -0.45842593908309937, -0.11847659945487976, 0.0661526694893837, 0.1342477798461914, -0.36919182538986206, 0.10727158188819885, 0.34873515367507935, 0.35701802372932434, -0.13736115396022797, -0.13993582129478455, -0.41835272312164307, 0.08044283092021942, -0.30689889192581177, 0.19139112532138824, 0.012566810473799706, 0.5848875045776367, 0.1708800494670868, -0.14090682566165924, -0.16986580193042755, 0.2786667048931122, 0.06360163539648056, -0.1539648175239563, 0.09591104090213776, -0.3254546821117401, -0.30922847986221313, 0.10154600441455841, 0.001889735460281372, 0.3967323303222656, -0.2579965591430664, -0.12280328571796417, -0.16811853647232056, -0.12518925964832306, -0.15539059042930603, 0.08499319106340408, -0.013785693794488907, 0.2810285687446594, -0.22724869847297668, 0.2192293107509613, -0.01450466550886631, -0.11480257660150528, 0.0029681548476219177, 0.03718611225485802, -0.2482936978340149, 0.11146251857280731, -0.11980171501636505, 0.0042514316737651825, -0.10657432675361633, 0.3087835907936096, -0.0339314229786396, -0.055376216769218445, -0.24795477092266083, -0.23580318689346313, 0.4588892459869385, -0.1182505190372467, -0.2737712860107422, -0.020879074931144714, 0.33572661876678467, 0.1670118272304535, -0.12637026607990265, -0.7813288569450378, 0.27831217646598816, 0.22283519804477692, 0.2146986573934555, -0.009278051555156708, 0.24614955484867096, -0.009981930255889893, -0.11097816377878189, -0.1276862919330597, 0.007530994713306427, -0.00010987557470798492, -0.21531111001968384, 0.25242874026298523, -0.27832886576652527 ]
https://github.com/huggingface/datasets/issues/1843
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!
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).
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.2674560248851776, 0.3468380272388458, -0.11506336182355881, 0.07435546070337296, -0.10949265211820602, 0.02801097184419632, 0.06281278282403946, 0.2007727026939392, -0.3066086173057556, 0.21898303925991058, -0.26910191774368286, -0.20653317868709564, -0.18998701870441437, 0.13933348655700684, 0.17807310819625854, -0.15057089924812317, 0.19186897575855255, 0.007441729307174683, -0.28749412298202515, -0.270444393157959, -0.08604272454977036, -0.03860550746321678, -0.13796114921569824, -0.26851242780685425, -0.22993049025535583, -0.09461173415184021, -0.34556859731674194, -0.28691184520721436, -0.3232320249080658, -0.19623692333698273, -0.05565034598112106, 0.1350371539592743, 0.12405294924974442, 0.49401789903640747, -0.00010455668962094933, -0.2592287063598633, 0.12507180869579315, -0.2645714282989502, -0.3532475233078003, -0.03809531033039093, -0.19961649179458618, -0.1757066547870636, -0.6599071621894836, 0.030460059642791748, -0.09560240805149078, -0.25084829330444336, 0.06722225248813629, -0.0263303741812706, 0.12660107016563416, 0.5544310212135315, 0.2140151560306549, -0.013065822422504425, 0.17167991399765015, -0.13714256882667542, 0.28714072704315186, 0.07588311284780502, -0.20845827460289001, 0.07722686231136322, 0.30492445826530457, 0.11360591650009155, 0.0316927470266819, 0.4821648895740509, -0.007535591721534729, -0.2882489264011383, -0.03184472769498825, -0.3790355324745178, -0.17721855640411377, -0.4207233488559723, 0.10508260875940323, 0.3116881847381592, 0.6529282331466675, -0.20263567566871643, -0.19812099635601044, -0.09611542522907257, 0.26682284474372864, -0.15981212258338928, -0.049897175282239914, 0.17370939254760742, -0.1241329163312912, 0.3310912251472473, 0.13926734030246735, -0.24838581681251526, -0.2472926378250122, 0.3075196444988251, 0.05446512997150421, 0.30402565002441406, -0.08623102307319641, -0.09898816049098969, 0.08838097751140594, -0.2742250859737396, -0.2766880989074707, -0.0626632571220398, 0.00728211272507906, 0.10950955748558044, -0.14186173677444458, -0.3701092004776001, 0.21697762608528137, -0.13201823830604553, 0.0793476477265358, -0.36744996905326843, -0.15922755002975464, -0.13633929193019867, -0.08307942748069763, 0.07130272686481476, -0.01835447922348976, 0.35843658447265625, -0.0802803710103035, -0.07807698100805283, 0.10047207027673721, -0.2737579941749573, 0.04657428711652756, 0.1279941201210022, -0.07597167789936066, 0.335627943277359, -0.39725494384765625, 0.08217993378639221, -0.08616148680448532, -0.16653406620025635, -0.24630895256996155, 0.19534683227539062, -0.04669388011097908, 0.09150320291519165, -0.08935119211673737, 0.3172930181026459, 0.044172462075948715, 0.390440970659256, -0.08309590816497803, 0.33688804507255554, 0.05179177224636078, -0.19289952516555786, -0.06038973480463028, 0.2241697609424591, -0.20172902941703796, 0.2546376585960388, 0.23245123028755188, 0.45219671726226807, 0.04944329708814621, 0.018300674855709076, 0.20407651364803314, 0.06864246726036072, -0.0888892263174057, -0.049172185361385345, 0.27163898944854736, 0.02595815807580948, -0.031112011522054672, -0.0047626979649066925, -0.24964740872383118, -0.16105756163597107, -0.2035471647977829, -0.010769004002213478, 0.14201490581035614, -0.11017443239688873, -0.29799386858940125, 0.2533714771270752, -0.07169900089502335, -0.26774945855140686, -0.2793787717819214, 0.7518095374107361, -0.17829783260822296, -0.11155679076910019, 0.0697048082947731, 0.17381085455417633, -0.460418701171875, 0.045939620584249496, -0.1368110477924347, 0.3723903298377991, -0.236321359872818, -0.03990115970373154, 0.09808558225631714, 0.20547369122505188, 0.04437332972884178, 0.2060777097940445, -0.08105878531932831, 0.2622191905975342, 0.05490937829017639, 0.3178980052471161, 0.044269904494285583, -0.4065377712249756, -0.4463207721710205, 0.15850494801998138, -0.1760583221912384, -0.1846078634262085, 0.29897505044937134, -0.00015257671475410461, 0.6347367167472839, -0.3393874764442444, -0.013722151517868042, 0.36440908908843994, -0.06311191618442535, 0.07184554636478424, -0.2582838535308838, -0.4786251485347748, 0.19882087409496307, 0.15038305521011353, 0.04120055213570595, -0.057537853717803955, 0.06441919505596161, 0.3694817125797272, 0.21831685304641724, -0.3277609944343567, 0.24049073457717896, 0.27855420112609863, 0.06227383017539978, -0.15368995070457458, -0.0451556071639061, -0.16933317482471466, -0.1587282121181488, -0.08306069672107697, 0.17816267907619476, 0.4612790048122406, 0.11146176606416702, -0.20929190516471863, -0.007270965725183487, -0.21706724166870117, -0.1183115690946579, -0.1257411241531372, 0.2582395374774933, 0.2570565938949585, 0.1128954142332077, 0.11889643967151642, -0.12457162886857986, 0.1912958323955536, -0.27648863196372986, -0.2479795664548874, 0.004835065454244614, 0.2340550720691681, 0.05565361678600311, -0.29282379150390625, 0.2693489193916321, 0.41564762592315674, 0.12356966733932495, 0.007520496845245361, -0.035468485206365585, 0.12156128883361816, -0.20713940262794495, 0.26570558547973633, 0.17018701136112213, 0.30674558877944946, 0.23183299601078033, -0.4714108407497406, 0.3065221309661865, 0.34071388840675354, 0.17274725437164307, -0.20989766716957092, -0.21834030747413635, 0.11960603296756744, 0.328713059425354, 0.05226992815732956, 0.05051209032535553, -0.09181815385818481, 0.2911439538002014, 0.09294471144676208, -0.11881241947412491, -0.12938711047172546, 0.1732151210308075, 0.2709851562976837, -0.09853973984718323, 0.13358467817306519, -0.2680145502090454, 0.20480045676231384, 0.5615862607955933, -0.1304110288619995, 0.3069731593132019, 0.19905124604701996, -0.0527811162173748, -0.2780836820602417, 0.12042499333620071, -0.19624388217926025, 0.29163724184036255, 0.2810159921646118, 0.2256423383951187, 0.016477862372994423, 0.2985714375972748, -0.15210559964179993, 0.1900838017463684, -0.050735827535390854, -0.2516883909702301, 0.16039198637008667, 0.20351767539978027, -0.10734890401363373, -0.32170766592025757, 0.04682216793298721, 0.005419641733169556, 0.14321105182170868, 0.03972160816192627, -0.2647113502025604, 0.11322855949401855, -0.23638132214546204, -0.1619856357574463, 0.037066034972667694, -0.15967579185962677, -0.0032520219683647156, 0.3915063738822937, 0.04850295931100845, -0.2069421261548996, 0.15350139141082764, 0.21651676297187805, 0.3693397641181946, -0.3941744863986969, -0.08281484991312027, 0.009604543447494507, -0.3672117292881012, -0.17861413955688477, 0.18657410144805908, 0.19845005869865417, 0.16284030675888062, 0.2797742187976837, -0.12823566794395447, 0.18517738580703735, -0.21266713738441467, -0.3121669888496399, 0.15509983897209167, -0.2662825882434845, 0.05243881791830063, -0.2734866142272949, 0.018325578421354294, -0.05668880045413971, -0.3820498287677765, -0.2653369605541229, 0.03158349543809891, 0.02638133615255356, 0.032377079129219055, -0.39273422956466675, -0.13357755541801453, 0.020835071802139282, -0.3891121745109558, -0.5565212368965149, -0.44716233015060425, 0.3865205943584442, -0.25173136591911316, -0.009263783693313599, -0.0017907507717609406, 0.0099090076982975, 0.17465414106845856, -0.07993555814027786, 0.2039351463317871, -0.2852186858654022, -0.2310415804386139, 0.15995264053344727, -0.2169170081615448, -0.33490291237831116, -0.15407657623291016, 0.039112865924835205, 0.06207847595214844, -0.11508503556251526, -0.4363951086997986, 0.17836759984493256, -0.0987037792801857, 0.3334512412548065, 0.16526097059249878, 0.01013287715613842, 0.2976227402687073, -0.10610736906528473, -0.15657469630241394, -0.18253937363624573, -0.1687907874584198, -0.04810817539691925, 0.423571914434433, 0.12049956619739532, -0.013477127999067307, -0.0380832701921463, 0.12233246862888336, 0.5573825240135193, 0.2054239809513092, 0.027466729283332825, 0.20636387169361115, 0.14982590079307556, 0.4568347632884979, -0.23309753835201263, -0.39748919010162354, 0.5278066396713257, 0.13687840104103088, -0.07438831031322479, 0.5241378545761108, 0.07323435693979263, -0.5568886995315552, -0.10711751133203506, -0.3339168429374695, -0.08183633536100388, -0.22243136167526245, 0.3396262526512146, 0.09924601018428802, 0.1561363935470581, 0.0206613689661026, -0.1405637264251709, -0.2554543614387512, -0.2717415690422058, 0.18959002196788788, 0.0959591493010521, -0.04787838086485863, 0.000699896365404129, -0.16022634506225586, -0.06201855093240738, -0.39808475971221924, -0.10726980119943619, 0.15695786476135254, 0.24646523594856262, -0.5303565263748169, 0.08707299083471298, 0.004620730876922607, 0.17633803188800812, 0.17988508939743042, -0.3207393288612366, -0.0812351256608963, 0.2342446893453598, 0.5497138500213623, -0.018840212374925613, 0.1853070855140686, -0.2950845956802368, -0.34230226278305054, 0.5709083676338196, 0.3086678385734558, -0.18302614986896515, 0.033910639584064484, 0.16770175099372864, 0.4645703136920929, -0.049004800617694855, -0.045714057981967926, 0.1397288292646408, -0.3151712417602539, -0.31205299496650696, 0.30893731117248535, 0.4163508713245392, -0.014675430953502655, 0.2681361138820648, 0.15160071849822998, 0.1820182502269745, -0.008261941373348236, 0.494266539812088, -0.07715114951133728, -0.10442549735307693, 0.47534704208374023, 0.09180547297000885, -0.03779982402920723, -0.11172571778297424, -0.08473899215459824, 0.15284909307956696, -0.06127733737230301, -0.20442482829093933, 0.037526026368141174, -0.3595803678035736, 0.3538602888584137, 0.4210062325000763, 0.12466689944267273, 0.011869216337800026, -0.10969455540180206, 0.10382205992937088, -0.3049681782722473, 0.17419490218162537, 0.26453259587287903, 0.10566573590040207, -0.3500521779060364, -0.23461924493312836, 0.37283986806869507, 0.06062734127044678, -0.12133858352899551, 0.09690088778734207, 0.16829782724380493, -0.21650516986846924, 0.355268657207489, -0.13982674479484558, 1.3028792142868042, 0.23605263233184814, 0.1526300609111786, 0.19171902537345886, -0.2324959635734558, 0.07360135018825531, -0.37255236506462097, -0.15488201379776, 0.35208791494369507, 0.1767762005329132, -0.024960264563560486, 0.22058333456516266, -0.04685307666659355, 0.20853988826274872, -0.5711345076560974, 0.22646474838256836, -0.00927954912185669, 0.12694841623306274, 0.1225559264421463, 0.4747871160507202, -0.26867765188217163, -0.4689060151576996, -0.2684134244918823, 0.29126670956611633, 0.13500429689884186, 0.04003170505166054, 0.15096457302570343, -0.2544364035129547, 0.15122714638710022, 0.06269550323486328, -0.7009254693984985, 0.12113375961780548, -0.1179799884557724, -0.027463426813483238, -0.5845329165458679, -0.04701158404350281, 0.21154344081878662, 0.1814662367105484, 0.33930060267448425, 0.0038951081223785877, -0.2309700846672058, 0.15327957272529602, -0.0033092498779296875, 0.004611842334270477, 0.22768354415893555, -0.1418340802192688, 0.41548606753349304, -0.31453460454940796, -0.20732028782367706, 0.22233277559280396, 0.15951892733573914, 0.03235774487257004, -0.4593440592288971, -0.19397637248039246, 0.17332521080970764, 0.04966675490140915, 0.25456467270851135, 0.5486978888511658, -0.1140187680721283, -0.22716474533081055, 0.19726544618606567, -0.002189021557569504, -0.3667444884777069, 0.27934375405311584, -0.21623502671718597, -0.24337631464004517, -0.203761488199234, 0.2019091546535492, 0.26414185762405396, -0.041403744369745255, 0.28546902537345886, 0.22601832449436188, -0.22720402479171753, -0.41823065280914307, 0.06258262693881989, -0.0068314895033836365, -0.4837258458137512, 0.02087465673685074, 0.03440505266189575, -0.20156584680080414, -0.33092787861824036, 0.20695389807224274, 0.06559285521507263, -0.12836188077926636, -0.08479361981153488, -0.040949754416942596, -0.2633301317691803, 0.013385282829403877, 0.199259415268898, 0.11334645003080368, -0.10205119848251343, 0.17077012360095978, 0.007912017405033112, -0.07086484879255295, -0.43091192841529846, 0.12980544567108154, -0.04415342956781387, 0.19814398884773254, 0.2045237421989441, -0.1416718065738678, 0.1859094351530075, 0.007145445793867111, 0.14056658744812012, -0.09058275818824768, -0.13172855973243713, -0.23358920216560364, -0.16614225506782532, 0.09327096492052078, 0.11773348599672318, 0.19455519318580627, 0.01844944804906845, -0.18877366185188293, -0.24214760959148407, 0.06825394928455353, 0.24406437575817108, 0.24842220544815063, -0.07957211881875992, 0.12648388743400574, -0.028905067592859268, 0.04782870411872864, 0.251558780670166, 0.057637281715869904, 0.32433196902275085, 0.4395708739757538, -0.05653717741370201, 0.16096657514572144, 0.0865144431591034, -0.21131056547164917, -0.025599658489227295, 0.34949806332588196, 0.057361822575330734, 0.000010599382221698761, 0.11253107339143753, 0.02712104842066765, 0.2247646450996399, 0.33905020356178284, -0.06555101275444031, 0.040195614099502563, -0.05900957062840462, -0.07113685458898544, 0.34159567952156067, 0.27971741557121277, -0.10629068315029144, 0.09150345623493195, -0.18584740161895752, -0.1766531765460968, 0.15573041141033173, 0.118387870490551, 0.11226646602153778, -0.11096276342868805, 0.20801669359207153, -0.08155903965234756, -0.17139525711536407, 0.0737801194190979, 0.03762445226311684, 0.1666734218597412, 0.17855696380138397, -0.10198734700679779, -0.033260442316532135, 0.10569074749946594, 0.13749919831752777, 0.0014791530556976795, -0.16476699709892273, 0.4625001847743988, 0.18571874499320984, 0.1034674197435379, 0.19842001795768738, -0.012474842369556427, 0.13374429941177368, 0.1642797887325287, 0.08601270616054535, 0.2504076659679413, 0.04659024626016617, 0.2660350799560547, -0.05844833329319954, -0.30783864855766296, -0.11159831285476685, 0.2143591344356537, 0.0498427152633667, 0.018507786095142365, -0.020373255014419556, -0.1985640525817871, -0.25635993480682373, 0.07050555944442749, -0.014169570058584213, -0.21234682202339172, -0.060128938406705856, 0.2392931878566742, -0.09220745414495468, -0.10583613067865372, -0.05264630541205406, -0.16349466145038605, 0.28988587856292725, -0.25934040546417236, 0.36429092288017273, 0.1571878343820572, -0.040932122617959976, 0.2152029573917389, 0.44096317887306213, 0.47974225878715515, -0.08141060173511505, -0.20351094007492065, 0.31720393896102905, -0.0881628468632698, -0.1225338727235794, -0.013027127832174301, 0.43536460399627686, 0.015437941998243332, 0.17287351191043854, 0.17352111637592316, 0.21337299048900604, -0.18363913893699646, -0.1990482211112976, 0.16397662460803986, -0.06995002925395966, -0.13238081336021423, 0.13194383680820465, -0.055850427597761154, 0.10011040419340134, -0.5145980715751648, -0.1135333925485611, -0.5816861987113953, 0.1198289692401886, 0.40900686383247375, -0.3190317749977112, 0.16620373725891113, -0.12665989995002747, 0.11590032279491425, -0.17480535805225372, 0.3187253773212433, 0.2675616145133972, 0.0338464230298996, -0.07516629993915558, -0.11098350584506989, -0.28917670249938965, -0.17461106181144714, 0.13183698058128357, 0.21511125564575195, -0.3938133120536804, 0.13225853443145752, 0.3189955949783325, 0.38989824056625366, -0.16704465448856354, -0.04443700611591339, -0.5264093279838562, 0.1136263832449913, -0.3879906237125397, 0.26371753215789795, 0.16134005784988403, 0.6632790565490723, 0.09197860211133957, -0.16552504897117615, -0.18932753801345825, 0.23058642446994781, 0.09485017508268356, -0.19516487419605255, -0.0920037180185318, -0.2894488573074341, -0.22290438413619995, 0.15015919506549835, -0.05162801593542099, 0.30967628955841064, -0.24791789054870605, -0.11904576420783997, -0.18205676972866058, -0.034870196133852005, -0.1049269586801529, -0.08672095835208893, 0.012522099539637566, 0.2685784101486206, -0.24934369325637817, 0.33192867040634155, 0.0971076488494873, -0.0566968135535717, -0.0484258197247982, 0.07739568501710892, -0.25544220209121704, 0.09295892715454102, -0.16707627475261688, 0.15111225843429565, -0.18695411086082458, 0.23037397861480713, -0.04324294999241829, -0.08687295764684677, -0.25485849380493164, -0.1970849633216858, 0.44784361124038696, -0.10705128312110901, -0.36629176139831543, -0.035873495042324066, 0.31920233368873596, 0.1614576280117035, 0.04379792511463165, -0.6474661231040955, 0.2208116352558136, 0.23007872700691223, 0.14810161292552948, 0.03563044220209122, 0.21904899179935455, 0.009154658764600754, -0.08580506592988968, -0.13266874849796295, -0.03872953727841377, 0.010559393092989922, -0.18244406580924988, 0.10665979981422424, -0.31016120314598083 ]
https://github.com/huggingface/datasets/issues/1843
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
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).
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.2638152241706848, 0.2556506097316742, -0.10208913683891296, 0.06742584705352783, -0.1163010448217392, 0.004986956715583801, 0.2088763266801834, 0.1324668973684311, -0.23804673552513123, 0.19588738679885864, -0.29251718521118164, -0.1947897970676422, -0.12356499582529068, 0.17620941996574402, 0.2179548591375351, -0.09659786522388458, 0.13386788964271545, -0.048060715198516846, -0.2836483120918274, -0.3060130476951599, -0.053871579468250275, -0.06004757434129715, -0.11377152055501938, -0.18403896689414978, -0.223112091422081, -0.03144015371799469, -0.3102773427963257, -0.21159695088863373, -0.27235424518585205, -0.21861334145069122, 0.024947412312030792, 0.14330454170703888, 0.16451458632946014, 0.4807237982749939, -0.00010310799552826211, -0.11604245007038116, 0.19767102599143982, -0.19728712737560272, -0.29798007011413574, -0.11328776180744171, -0.24793455004692078, -0.15204346179962158, -0.6573240756988525, 0.012597784399986267, -0.3099525272846222, -0.25094687938690186, 0.026570739224553108, 0.02225285768508911, 0.11635462194681168, 0.5167062282562256, 0.2408427596092224, 0.055473193526268005, 0.16730718314647675, -0.13491928577423096, 0.23404298722743988, 0.11276711523532867, -0.20159944891929626, 0.10496072471141815, 0.30359765887260437, 0.12370441108942032, 0.04854239895939827, 0.43949583172798157, -0.026150740683078766, -0.2713291645050049, -0.05859467759728432, -0.30380380153656006, -0.20334544777870178, -0.3597014844417572, 0.0331389345228672, 0.3472297787666321, 0.6664749383926392, -0.16108474135398865, -0.18603509664535522, -0.15026193857192993, 0.21883514523506165, -0.11865344643592834, -0.050835710018873215, 0.08330640941858292, -0.12094195187091827, 0.36799734830856323, 0.16170614957809448, -0.30449703335762024, -0.21775832772254944, 0.27289867401123047, 0.04270598292350769, 0.4257723093032837, -0.06214866787195206, -0.07888640463352203, -0.05868912488222122, -0.20839400589466095, -0.21321508288383484, -0.08974723517894745, 0.014605794101953506, 0.07520537078380585, -0.16601413488388062, -0.34939661622047424, 0.3036048412322998, -0.15039238333702087, 0.16011999547481537, -0.3179902732372284, -0.16445887088775635, -0.11521708965301514, -0.17380736768245697, 0.02886863984167576, 0.07012098282575607, 0.32641494274139404, -0.02323763817548752, -0.04385215789079666, 0.16372664272785187, -0.18920056521892548, 0.06261241436004639, 0.15448686480522156, -0.032362762838602066, 0.23427124321460724, -0.45130184292793274, 0.22866974771022797, 0.02709975838661194, -0.19808495044708252, -0.23857757449150085, 0.12152111530303955, -0.03002401441335678, 0.08164490759372711, 0.007586859166622162, 0.29753613471984863, 0.0489690937101841, 0.35097530484199524, -0.10109255462884903, 0.3271930515766144, -0.0031222552061080933, -0.21373964846134186, -0.07117004692554474, 0.1336989402770996, -0.23833271861076355, 0.1720578670501709, 0.2494344562292099, 0.421591579914093, 0.05350915342569351, 0.08210358023643494, 0.32263341546058655, 0.07473476976156235, -0.15552860498428345, 0.026072073727846146, 0.27221161127090454, -0.03373442962765694, 0.04750359058380127, 0.03374997526407242, -0.2039002627134323, -0.16631752252578735, -0.22464525699615479, 0.059259042143821716, 0.13139395415782928, -0.1161019578576088, -0.2872762084007263, 0.2791670560836792, -0.12984779477119446, -0.2352983057498932, -0.2771540582180023, 0.7251244783401489, -0.1624796837568283, -0.0774156004190445, 0.11326437443494797, 0.2274978905916214, -0.408867210149765, 0.052191540598869324, -0.09453148394823074, 0.3656330108642578, -0.2517017126083374, -0.016954414546489716, 0.1709534227848053, 0.13525864481925964, 0.02250439114868641, 0.1482347846031189, -0.08284292370080948, 0.31583139300346375, -0.058172762393951416, 0.3497924506664276, 0.03925776854157448, -0.3666365146636963, -0.3150377869606018, 0.13170570135116577, -0.23573267459869385, -0.03502972051501274, 0.2565309405326843, -0.1328446865081787, 0.6240295767784119, -0.3125278949737549, -0.012289930135011673, 0.4339909255504608, 0.006510719656944275, 0.13161799311637878, -0.19828596711158752, -0.32149091362953186, 0.2360372543334961, 0.18154051899909973, -0.005643821321427822, -0.018266070634126663, 0.04412924870848656, 0.2750937044620514, 0.2775232195854187, -0.33025407791137695, 0.2896016240119934, 0.2214818149805069, 0.03549934923648834, -0.13818824291229248, 0.016478225588798523, -0.13796710968017578, -0.1545865684747696, -0.07502459734678268, 0.1970408707857132, 0.5770367383956909, 0.12242372334003448, -0.2467803657054901, -0.1696622669696808, -0.1954880654811859, -0.19232824444770813, -0.17297735810279846, 0.273098886013031, 0.2822173833847046, 0.05621322989463806, 0.13980859518051147, -0.13649311661720276, 0.26505976915359497, -0.33737123012542725, -0.2161516398191452, -0.04419035464525223, 0.24888905882835388, 0.054699815809726715, -0.23539988696575165, 0.16527581214904785, 0.47162067890167236, 0.16541557013988495, -0.031769804656505585, 0.004643745720386505, 0.07431088387966156, -0.2732064127922058, 0.2347431778907776, 0.1541241705417633, 0.21907514333724976, 0.3090020716190338, -0.526461124420166, 0.2203458845615387, 0.28990477323532104, 0.09910333156585693, -0.2010914385318756, -0.07364057004451752, 0.17214776575565338, 0.2992255389690399, 0.15549196302890778, 0.009308546781539917, -0.011654969304800034, 0.3077351450920105, 0.030526921153068542, -0.18020132184028625, -0.06000993400812149, 0.1324460208415985, 0.2860773205757141, -0.14370140433311462, 0.001175789162516594, -0.2945254147052765, 0.2530355751514435, 0.4543096125125885, -0.17885467410087585, 0.26928946375846863, 0.16500790417194366, -0.045525576919317245, -0.13972660899162292, 0.14424939453601837, -0.24067391455173492, 0.23868420720100403, 0.30342379212379456, 0.33869999647140503, 0.023740598931908607, 0.20883002877235413, -0.08282087743282318, 0.19225852191448212, -0.047244396060705185, -0.3074474036693573, 0.12861046195030212, 0.1818547546863556, -0.18688133358955383, -0.33176255226135254, -0.0036383047699928284, -0.024187274277210236, 0.10927164554595947, -0.13175339996814728, -0.2908285856246948, 0.16346445679664612, -0.21101228892803192, -0.21896737813949585, -0.06185068190097809, -0.22940099239349365, 0.026231415569782257, 0.42980754375457764, 0.03831636533141136, -0.21140077710151672, 0.2007107138633728, 0.23228982090950012, 0.3449687957763672, -0.45110195875167847, -0.032989345490932465, -0.05738848075270653, -0.3996438980102539, -0.18227644264698029, 0.20011678338050842, 0.21467354893684387, 0.181542307138443, 0.2603403329849243, -0.11864812672138214, 0.14926600456237793, -0.2710833251476288, -0.31361550092697144, 0.18688812851905823, -0.2719041407108307, 0.12089873850345612, -0.19015124440193176, 0.009240098297595978, -0.020303070545196533, -0.4290497303009033, -0.20168817043304443, 0.0887615904211998, -0.030420728027820587, -0.08557521551847458, -0.41415876150131226, -0.08887171745300293, -0.04153866320848465, -0.48588263988494873, -0.47961801290512085, -0.4333898425102234, 0.29886606335639954, -0.2710740864276886, -0.024724293500185013, -0.017353853210806847, 0.04020794853568077, 0.07020370662212372, -0.020696671679615974, 0.16878443956375122, -0.3169857859611511, -0.26432913541793823, 0.1111537367105484, -0.318125456571579, -0.2912345230579376, -0.21739372611045837, 0.05071189999580383, 0.123055100440979, -0.13517476618289948, -0.33049845695495605, 0.14052420854568481, -0.05067827180027962, 0.3599838614463806, 0.17923033237457275, 0.09345655143260956, 0.2319621443748474, -0.05195526033639908, -0.14445951581001282, -0.16842879354953766, -0.14502431452274323, 0.025761369615793228, 0.3778431713581085, 0.16474448144435883, 0.06512132287025452, -0.004789012484252453, 0.05896219611167908, 0.6301650404930115, 0.17608991265296936, 0.04728413373231888, 0.26317083835601807, 0.08107449859380722, 0.37963080406188965, -0.2192726880311966, -0.4116690158843994, 0.5353421568870544, 0.11328710615634918, -0.08979940414428711, 0.4373251795768738, 0.08514206111431122, -0.488173246383667, -0.14432477951049805, -0.3178871273994446, -0.22333022952079773, -0.255317747592926, 0.2832993268966675, 0.08771020919084549, 0.1678837388753891, 0.017108991742134094, -0.17644278705120087, -0.26347702741622925, -0.19804249703884125, 0.2678227424621582, 0.12960828840732574, 0.048440586775541306, -0.0313362292945385, -0.19269293546676636, -0.03557185083627701, -0.4021429121494293, -0.09528668224811554, 0.1271766722202301, 0.2549346387386322, -0.4831460118293762, 0.03632739186286926, 0.06024826318025589, 0.14741143584251404, 0.3275744915008545, -0.35933777689933777, -0.07683680951595306, 0.1758430153131485, 0.5461903810501099, 0.061782315373420715, 0.20763246715068817, -0.17768323421478271, -0.30745482444763184, 0.5304545760154724, 0.3000192940235138, -0.34639132022857666, 0.057984914630651474, 0.1593797206878662, 0.3236679434776306, -0.00970979779958725, -0.13327112793922424, 0.13161388039588928, -0.3605436086654663, -0.3184635639190674, 0.2939845025539398, 0.5474274754524231, -0.011618126183748245, 0.20718824863433838, 0.12998786568641663, 0.23189665377140045, 0.044709764420986176, 0.4415340721607208, 0.011290807276964188, -0.10383094102144241, 0.47468143701553345, 0.06909669935703278, 0.05151703953742981, -0.004530676640570164, -0.17095749080181122, 0.2669604420661926, -0.03387778252363205, -0.3202100098133087, 0.015854358673095703, -0.2754025459289551, 0.41067034006118774, 0.4015181362628937, 0.20560233294963837, -0.007871396839618683, -0.10765297710895538, -0.0063292235136032104, -0.289870947599411, 0.19494222104549408, 0.1890248954296112, 0.15428562462329865, -0.3492985665798187, -0.3161613643169403, 0.370645672082901, -0.007075048983097076, -0.14261266589164734, 0.12224908173084259, 0.21972361207008362, -0.2660682797431946, 0.3476288318634033, -0.1886657476425171, 1.295457124710083, 0.27017244696617126, 0.11891858279705048, 0.2170182466506958, -0.24967153370380402, 0.07938908040523529, -0.4509884715080261, -0.13103747367858887, 0.26213347911834717, 0.24157875776290894, -0.026086419820785522, 0.1937321424484253, -0.13027408719062805, 0.24976855516433716, -0.4515494704246521, 0.21200741827487946, 0.03755532205104828, 0.1302317976951599, 0.11486591398715973, 0.45534002780914307, -0.156575545668602, -0.4293522834777832, -0.34794026613235474, 0.28758442401885986, 0.0790938138961792, 0.12527510523796082, 0.10662339627742767, -0.2575729489326477, 0.12084515392780304, -0.031474847346544266, -0.6170521974563599, 0.11918383836746216, -0.18575286865234375, -0.13615809381008148, -0.4633791446685791, -0.17352904379367828, 0.3035568296909332, 0.17405478656291962, 0.4051637053489685, 0.008442535996437073, -0.24363064765930176, 0.201378732919693, 0.03218815475702286, 0.09256210923194885, 0.17751306295394897, -0.1293593794107437, 0.3848471939563751, -0.2787674069404602, -0.34175220131874084, 0.2409651279449463, 0.16347800195217133, -0.05912172794342041, -0.457817018032074, -0.20844560861587524, 0.13689091801643372, 0.04060245305299759, 0.2614336311817169, 0.5941089987754822, 0.0673772543668747, -0.2787317633628845, 0.2033432424068451, -0.05380038172006607, -0.4027836322784424, 0.14771771430969238, -0.14250722527503967, -0.2563804090023041, -0.1985166072845459, 0.18515370786190033, 0.23064780235290527, -0.06456626206636429, 0.2740061581134796, 0.3334346115589142, -0.1919666826725006, -0.36871665716171265, -0.0361463725566864, 0.13797816634178162, -0.5049198865890503, -0.06748457252979279, 0.1038750559091568, -0.19104517996311188, -0.3406738042831421, 0.20936569571495056, 0.08217854797840118, -0.03860008716583252, -0.085551418364048, -0.032741621136665344, -0.2290893942117691, -0.02544476091861725, 0.12959617376327515, 0.15409564971923828, -0.08907867223024368, 0.2274131178855896, 0.02322201430797577, -0.16216541826725006, -0.452919602394104, 0.02617824077606201, -0.07936885207891464, 0.166561096906662, 0.2855009138584137, -0.16010208427906036, 0.15233151614665985, 0.02812637761235237, 0.16636687517166138, -0.13318976759910583, -0.0903979241847992, -0.24541375041007996, -0.15750432014465332, 0.09153406322002411, 0.1256607323884964, 0.1855221688747406, -0.08393249660730362, -0.16788983345031738, -0.20963652431964874, 0.08964601159095764, 0.34443044662475586, 0.24756887555122375, -0.03926342725753784, 0.14914032816886902, -0.060603972524404526, 0.01101737841963768, 0.1845857948064804, 0.04113622009754181, 0.31041961908340454, 0.34986045956611633, 0.048457492142915726, 0.14586734771728516, 0.024168770760297775, -0.17238567769527435, 0.025220010429620743, 0.32439619302749634, 0.1631806492805481, 0.12044209241867065, 0.04279134422540665, 0.09649385511875153, 0.16192059218883514, 0.3878926634788513, 0.049057960510253906, -0.004477376118302345, -0.09398594498634338, -0.09076564759016037, 0.38715434074401855, 0.30039262771606445, -0.15891113877296448, 0.15130382776260376, -0.16658799350261688, -0.2660659849643707, 0.18865138292312622, 0.11151358485221863, 0.12210790812969208, -0.019977569580078125, 0.19619442522525787, -0.057129040360450745, -0.16327789425849915, 0.06695019453763962, -0.003457173705101013, 0.1657528579235077, 0.057228341698646545, -0.053049277514219284, 0.04044806957244873, 0.030417118221521378, 0.06588193029165268, 0.07163208723068237, -0.1389867067337036, 0.4980091452598572, 0.15499058365821838, 0.06173054501414299, 0.25756046175956726, -0.010311909019947052, 0.13854467868804932, 0.04128327593207359, 0.1509949415922165, 0.18698450922966003, 0.05236795172095299, 0.31828582286834717, -0.0822579488158226, -0.28973525762557983, -0.11896288394927979, 0.2435653805732727, 0.029378928244113922, 0.024535171687602997, -0.09469518810510635, -0.20036406815052032, -0.2621452808380127, -0.06363444030284882, -0.026088228449225426, -0.22405841946601868, -0.01246907189488411, 0.13751572370529175, -0.1763923168182373, -0.08285998553037643, -0.16582952439785004, -0.20997878909111023, 0.1894332766532898, -0.19930535554885864, 0.3392791152000427, 0.16305629909038544, -0.07616321742534637, 0.21806567907333374, 0.5704172253608704, 0.4618905484676361, -0.03981945663690567, -0.24863608181476593, 0.25524285435676575, -0.08105815201997757, -0.12699729204177856, -0.03865911066532135, 0.4618113338947296, -0.009413901716470718, 0.11877764016389847, 0.20675569772720337, 0.23405806720256805, -0.20172810554504395, -0.19156430661678314, 0.15244698524475098, -0.14338353276252747, -0.1096104308962822, 0.1693621426820755, -0.08201230317354202, 0.0917658656835556, -0.5450372695922852, -0.2100183665752411, -0.5755994915962219, 0.04187572002410889, 0.4760661721229553, -0.2757144570350647, 0.10578383505344391, -0.22612664103507996, 0.12408559024333954, -0.1559840589761734, 0.30060654878616333, 0.29199445247650146, 0.053902436047792435, -0.11427100747823715, -0.09736130386590958, -0.4213629961013794, -0.06557469069957733, 0.1224701851606369, 0.12465225160121918, -0.39549022912979126, 0.03114514797925949, 0.45048877596855164, 0.3158787488937378, -0.1747768223285675, -0.10543909668922424, -0.45396897196769714, 0.14669448137283325, -0.38675981760025024, 0.20354926586151123, 0.04927663877606392, 0.6177334785461426, 0.06775914132595062, -0.1090950220823288, -0.19677844643592834, 0.3445989787578583, 0.09746169298887253, -0.1278107911348343, -0.08028854429721832, -0.16930145025253296, -0.2848247289657593, 0.18391728401184082, -0.015608517453074455, 0.4005244970321655, -0.2893493175506592, -0.10235769301652908, -0.2012462317943573, -0.1380586326122284, -0.17109349370002747, -0.02294929325580597, -0.10174699872732162, 0.24473224580287933, -0.15196815133094788, 0.2543823719024658, 0.008115347474813461, -0.16546249389648438, -0.006854243576526642, 0.10927872359752655, -0.23975464701652527, 0.0936175137758255, -0.1706961989402771, 0.024555478245019913, -0.13091853260993958, 0.26950347423553467, -0.004463044926524162, -0.07164091616868973, -0.2301652729511261, -0.25156134366989136, 0.45863455533981323, -0.1334102302789688, -0.38585638999938965, -0.03628341853618622, 0.35882568359375, 0.0566280335187912, 0.025387370958924294, -0.6963677406311035, 0.2384619414806366, 0.22749948501586914, 0.16369256377220154, 0.08623538911342621, 0.19584843516349792, 0.0844278335571289, -0.016970761120319366, -0.106481172144413, -0.01848682016134262, 0.040272969752550125, -0.16922621428966522, 0.10031886398792267, -0.2969769537448883 ]
https://github.com/huggingface/datasets/issues/1843
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_)
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).
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.24426445364952087, 0.07631418108940125, -0.12693443894386292, 0.12922443449497223, -0.0602058544754982, -0.10816580802202225, 0.09541003406047821, 0.02925949916243553, -0.19839419424533844, 0.22876247763633728, -0.2163425236940384, -0.30687716603279114, -0.036101896315813065, 0.20483770966529846, 0.14468131959438324, -0.12050393223762512, -0.0763825997710228, 0.03521127253770828, -0.2530810534954071, -0.39303937554359436, -0.07044259458780289, 0.01007395051419735, -0.0025773048400878906, -0.14566031098365784, -0.19749458134174347, -0.10069050639867783, -0.46696311235427856, 0.004109111614525318, -0.25241976976394653, 0.12154284119606018, 0.09294838458299637, 0.1669033020734787, -0.061797287315130234, 0.22323179244995117, -0.0001050485298037529, -0.19276529550552368, 0.35818278789520264, -0.12525931000709534, -0.2843264043331146, -0.1371055692434311, -0.17150534689426422, -0.16087181866168976, -0.5996174812316895, -0.05780734121799469, -0.3517877459526062, -0.055130839347839355, -0.029753193259239197, 0.017230533063411713, 0.3423306941986084, 0.591703474521637, 0.2008466124534607, 0.08227575570344925, 0.4183851480484009, -0.17693236470222473, 0.11353039741516113, 0.1289748251438141, -0.016101490706205368, 0.19536229968070984, 0.0792291909456253, 0.06270706653594971, 0.41145214438438416, 0.17693786323070526, -0.0387609526515007, -0.3774368166923523, -0.14233200252056122, -0.20573921501636505, -0.2638559341430664, -0.493015319108963, 0.1322355568408966, 0.26594775915145874, 0.6440938711166382, 0.01321893185377121, -0.13940298557281494, -0.0239853635430336, 0.2538208067417145, -0.2253904491662979, -0.010475028306245804, -0.14470002055168152, -0.2681517004966736, 0.20216386020183563, 0.047427259385585785, -0.30130040645599365, -0.1538131982088089, 0.4731570780277252, 0.022878900170326233, 0.18061092495918274, -0.014997618272900581, 0.05532987415790558, -0.050350017845630646, -0.2177552431821823, -0.3165236711502075, 0.01579025387763977, -0.004593663848936558, 0.17692479491233826, -0.23438002169132233, -0.43437743186950684, 0.3938581049442291, -0.007242821156978607, 0.07167576253414154, -0.16935908794403076, -0.19282029569149017, -0.05082855373620987, -0.11169153451919556, -0.07493141293525696, 0.24850238859653473, 0.3352704346179962, 0.17838135361671448, -0.06560719758272171, -0.011993387714028358, -0.264751672744751, 0.18809424340724945, 0.07784175872802734, -0.07602721452713013, 0.12503431737422943, -0.4210846424102783, 0.4101141393184662, 0.08163857460021973, -0.1434597373008728, -0.25872859358787537, 0.16535413265228271, -0.18848396837711334, 0.1703430712223053, -0.08824147284030914, 0.3126603960990906, -0.08463079482316971, 0.1850612312555313, 0.02216225117444992, 0.1708115041255951, -0.08715666085481644, -0.19741609692573547, -0.1289275884628296, 0.23709027469158173, -0.2407018542289734, 0.16928184032440186, 0.05480700731277466, 0.4120901823043823, -0.0461803637444973, 0.10595694929361343, 0.42140254378318787, -0.027201242744922638, -0.17010706663131714, 0.0301685631275177, 0.1526643931865692, -0.004902050830423832, 0.11046327650547028, 0.10515866428613663, -0.12406002730131149, 0.04275056719779968, -0.1227746307849884, 0.04076474905014038, 0.06307797133922577, 0.013862282037734985, -0.17445042729377747, 0.26804330945014954, -0.04749908298254013, -0.19056811928749084, -0.3329368531703949, 0.40641283988952637, -0.20537443459033966, 0.0053355395793914795, 0.2562301754951477, 0.13695423305034637, -0.3320629596710205, 0.14418728649616241, -0.04611574858427048, 0.1919255256652832, -0.22805552184581757, 0.002673603594303131, -0.08386510610580444, 0.13088227808475494, 0.20197412371635437, 0.1595882922410965, -0.14896629750728607, 0.2493915855884552, -0.1373121738433838, 0.35562029480934143, 0.09832580387592316, -0.4499592185020447, -0.37810948491096497, 0.031888484954833984, -0.37579718232154846, -0.023069225251674652, 0.07452665269374847, -0.22590665519237518, 0.5838215351104736, -0.18401522934436798, 0.0712352991104126, 0.31715044379234314, -0.11276254057884216, -0.05089551582932472, -0.09992864727973938, -0.3260999321937561, 0.13345028460025787, 0.08847977221012115, -0.03406414017081261, 0.056039322167634964, 0.02986312098801136, 0.31265947222709656, 0.1648181825876236, -0.2535801827907562, 0.06420918554067612, 0.3471504747867584, 0.13755078613758087, -0.07331795990467072, -0.04676405340433121, -0.015037618577480316, -0.18908093869686127, -0.06012732908129692, 0.1309003382921219, 0.6019637584686279, 0.17817464470863342, -0.3046553432941437, -0.1507045030593872, -0.17057377099990845, -0.0035085398703813553, -0.1373823881149292, 0.23817119002342224, 0.1877821385860443, 0.1591784954071045, 0.02748233824968338, 0.05610370635986328, 0.24452246725559235, -0.3581730127334595, -0.34077712893486023, -0.044975463300943375, 0.2606639862060547, -0.004840133246034384, -0.25919008255004883, 0.1548842191696167, 0.3563864529132843, 0.34864723682403564, 0.03770008310675621, 0.0571804977953434, -0.06609918177127838, -0.266283243894577, 0.16544410586357117, -0.0018788049928843975, 0.09225580096244812, 0.14860109984874725, -0.44317108392715454, 0.15912240743637085, 0.20658963918685913, 0.22044894099235535, -0.31445667147636414, -0.06703127920627594, 0.4534629285335541, 0.4891098141670227, 0.03627755492925644, 0.10738511383533478, 0.02540230005979538, 0.31796735525131226, -0.04152163863182068, -0.1860009729862213, -0.003836214542388916, 0.16255290806293488, 0.26361286640167236, 0.041009530425071716, -0.09344694018363953, -0.4189375638961792, 0.28299087285995483, 0.7185620069503784, -0.19664978981018066, 0.25581759214401245, 0.23339113593101501, 0.03140265867114067, -0.22711224853992462, 0.04662460833787918, -0.444074422121048, 0.2549782395362854, 0.2788483500480652, 0.2681047022342682, 0.1341443508863449, 0.17815957963466644, 0.04830408841371536, 0.1395655870437622, -0.06606997549533844, -0.24604178965091705, 0.11307600140571594, 0.08998715132474899, -0.08760757744312286, -0.2514944076538086, 0.08532701432704926, -0.045035965740680695, 0.12532630562782288, -0.20061376690864563, -0.30338335037231445, 0.1786470115184784, -0.17972619831562042, -0.16301476955413818, -0.18220657110214233, -0.3148112893104553, -0.05921509116888046, 0.18580271303653717, 0.04321954399347305, -0.04975762218236923, 0.055833980441093445, 0.3885272741317749, 0.45854705572128296, -0.1845388412475586, 0.06911855190992355, -0.15973886847496033, -0.28300049901008606, -0.2647772431373596, 0.18322868645191193, 0.16877205669879913, 0.26084694266319275, 0.323138028383255, -0.10662595182657242, 0.08184950053691864, -0.34420716762542725, -0.3076980710029602, 0.23933735489845276, -0.261644184589386, 0.18378543853759766, -0.007095426321029663, 0.15236599743366241, -0.019883178174495697, -0.23663604259490967, -0.1570146530866623, 0.20151925086975098, -0.2649659514427185, -0.09711641073226929, -0.387085884809494, 0.06354229897260666, -0.05554284527897835, -0.4665721654891968, -0.5568020939826965, -0.28786054253578186, 0.45218557119369507, -0.22673062980175018, -0.0383327417075634, 0.02720029279589653, 0.08055929839611053, 0.19780205190181732, -0.08090965449810028, 0.011397089809179306, -0.4675089120864868, -0.24783536791801453, 0.02299020253121853, -0.12719149887561798, -0.36662518978118896, -0.24521887302398682, 0.030494913458824158, 0.17175738513469696, -0.333772212266922, -0.31765198707580566, -0.07138942182064056, -0.20553015172481537, 0.248863086104393, 0.10332106053829193, -0.12966077029705048, 0.3361969590187073, -0.36227190494537354, -0.21653485298156738, -0.1875324845314026, -0.09919069707393646, 0.16135677695274353, 0.34372448921203613, 0.198170006275177, 0.11437726765871048, 0.27819815278053284, -0.07409784942865372, 0.6019595265388489, 0.13010156154632568, 0.046802133321762085, 0.14445054531097412, -0.02795223519206047, 0.20851202309131622, -0.2176886945962906, -0.5086155533790588, 0.429248183965683, 0.11679401248693466, -0.21745678782463074, 0.20876365900039673, -0.15430110692977905, -0.3772737383842468, -0.13950467109680176, -0.4591847062110901, -0.07456929236650467, -0.29137757420539856, 0.319123774766922, 0.0843886137008667, -0.09951700270175934, 0.006828814744949341, -0.19419461488723755, -0.2185029685497284, -0.12066450715065002, 0.1302913874387741, 0.12676411867141724, 0.03625605255365372, 0.08843773603439331, -0.32093364000320435, -0.145819291472435, -0.40387243032455444, 0.017974551767110825, 0.18517638742923737, 0.4507627487182617, -0.576436460018158, 0.28847384452819824, 0.08597058802843094, 0.008829060941934586, 0.3867124319076538, -0.21529655158519745, 0.0027770379092544317, 0.2585441470146179, 0.4470022916793823, 0.20735114812850952, 0.283202201128006, -0.1960408091545105, -0.25141653418540955, 0.48586779832839966, 0.30709585547447205, -0.22004136443138123, 0.03012596070766449, 0.2143295258283615, 0.18483495712280273, -0.1372193694114685, 0.029785651713609695, 0.058581992983818054, -0.39150169491767883, -0.3112425208091736, 0.3392796516418457, 0.5661071538925171, -0.03686264902353287, -0.017979832366108894, 0.029543593525886536, 0.21675562858581543, 0.005473814904689789, 0.41348594427108765, -0.22285540401935577, -0.08177562057971954, 0.3747667968273163, -0.0040292516350746155, 0.11484846472740173, -0.017432427033782005, -0.026050187647342682, 0.3623432517051697, 0.15213081240653992, -0.26790711283683777, 0.06530556827783585, -0.39426907896995544, 0.4741292893886566, 0.3924329876899719, 0.0945785790681839, -0.03113483637571335, -0.0038031432777643204, 0.14063310623168945, -0.2975139915943146, 0.28628450632095337, 0.321740984916687, 0.27209287881851196, -0.34057846665382385, -0.3129264712333679, 0.3925611078739166, 0.02513657510280609, 0.035251230001449585, 0.22538825869560242, 0.24077917635440826, -0.19570721685886383, -0.021728795021772385, -0.09407451748847961, 1.3331971168518066, 0.4469960033893585, 0.15337781608104706, 0.14188382029533386, -0.2485107183456421, 0.1071060299873352, -0.23316273093223572, -0.20410269498825073, 0.2581064701080322, 0.21542221307754517, -0.09540490061044693, 0.22300906479358673, -0.0015440769493579865, 0.31544244289398193, -0.3548339605331421, 0.24008409678936005, -0.2109333574771881, -0.09995277225971222, 0.17286139726638794, 0.4671238958835602, -0.09792080521583557, -0.20798549056053162, -0.25885751843452454, 0.2586876153945923, 0.09882794320583344, 0.22391007840633392, 0.1647275686264038, -0.2662481665611267, -0.042641811072826385, -0.3018898665904999, -0.6961417198181152, 0.10056936740875244, -0.318401038646698, -0.3417184352874756, -0.545469343662262, -0.12995602190494537, 0.28267908096313477, 0.03617984056472778, 0.16273732483386993, 0.06529806554317474, -0.2807627320289612, 0.20302237570285797, 0.009891645982861519, 0.09957877546548843, 0.15260100364685059, -0.1482621729373932, 0.45214444398880005, -0.27731195092201233, -0.31568005681037903, 0.2550986707210541, 0.005867045372724533, -0.06232500821352005, -0.5047739744186401, -0.05135810375213623, 0.01187160611152649, 0.016231663525104523, 0.10437687486410141, 0.4319213330745697, 0.04324169456958771, -0.2051662653684616, 0.19859787821769714, -0.12141365557909012, -0.2531973421573639, 0.0750245675444603, -0.09757480770349503, -0.2755205035209656, -0.16468040645122528, 0.45041146874427795, 0.14989691972732544, -0.2265399545431137, 0.48090043663978577, 0.3105870485305786, -0.16434192657470703, -0.39087679982185364, -0.0836864560842514, 0.249429851770401, -0.5234824419021606, 0.07702391594648361, -0.028225690126419067, 0.03691515326499939, -0.33903732895851135, 0.2942001223564148, -0.040976185351610184, 0.03865944221615791, -0.09925051033496857, -0.23836924135684967, -0.19474974274635315, -0.05977793037891388, 0.0821998119354248, 0.1365947276353836, -0.07131441682577133, 0.39215585589408875, 0.13778623938560486, -0.22780367732048035, -0.43381378054618835, -0.022294385358691216, -0.2262011170387268, 0.2120445966720581, 0.43151408433914185, -0.13259071111679077, 0.2558004856109619, -0.049727845937013626, 0.14941748976707458, -0.10514308512210846, 0.02779679000377655, -0.26231107115745544, -0.04299134016036987, 0.08236139267683029, 0.1180301383137703, 0.185611754655838, 0.1323128044605255, -0.10524627566337585, -0.1197078675031662, 0.24835962057113647, 0.22963406145572662, 0.177359938621521, 0.061148688197135925, 0.04863375052809715, -0.09895859658718109, 0.15099821984767914, 0.11235538125038147, -0.13948708772659302, 0.3923623561859131, 0.41676753759384155, -0.13481146097183228, 0.19316282868385315, 0.01814120262861252, -0.07725073397159576, 0.08993735909461975, 0.12830008566379547, 0.22439244389533997, 0.05423997715115547, -0.09957355260848999, 0.14472529292106628, 0.10097441077232361, 0.26637518405914307, 0.07747506350278854, -0.02080555632710457, -0.15611006319522858, 0.002261802554130554, 0.28247037529945374, 0.29426801204681396, -0.04855898767709732, 0.16140832006931305, -0.19192072749137878, -0.3825162947177887, 0.031091995537281036, 0.02249276265501976, -0.0433143749833107, 0.12346881628036499, 0.19324028491973877, -0.20461809635162354, -0.15610326826572418, 0.052625346928834915, 0.05685659870505333, 0.19832994043827057, -0.1778891384601593, -0.061146605759859085, 0.2848469913005829, 0.04911279305815697, -0.025412186980247498, 0.14814980328083038, -0.15199151635169983, 0.26482969522476196, 0.1013059914112091, 0.2109752893447876, 0.20454192161560059, -0.1911027431488037, 0.13170544803142548, 0.10005225241184235, 0.1552892029285431, 0.329529345035553, -0.007628485560417175, 0.39781656861305237, -0.044161662459373474, -0.2146420180797577, -0.03621666878461838, 0.3101048171520233, -0.09886664152145386, 0.0822312980890274, -0.050283290445804596, -0.2062363624572754, -0.4170135259628296, 0.011310935020446777, -0.02095714583992958, -0.13312524557113647, -0.012766901403665543, 0.011177010834217072, -0.261537104845047, 0.03507643938064575, -0.36582472920417786, -0.26923060417175293, -0.0033942237496376038, -0.3910614252090454, 0.41162845492362976, 0.24469958245754242, -0.10394412279129028, 0.17127443850040436, 0.4762534499168396, 0.46048957109451294, 0.013183757662773132, -0.13290615379810333, 0.22549615800380707, 0.17440761625766754, -0.1647976040840149, 0.05815911293029785, 0.3664777874946594, 0.056298185139894485, 0.04349964112043381, 0.057360611855983734, 0.2743002772331238, -0.26062166690826416, 0.010690571740269661, 0.06696003675460815, 0.13824546337127686, -0.2532537281513214, 0.18989592790603638, -0.10795839130878448, 0.2467455267906189, -0.7149045467376709, -0.07745914906263351, -0.5943198204040527, -0.039199378341436386, 0.46063724160194397, -0.0898030698299408, 0.10580595582723618, -0.3524135649204254, 0.13924530148506165, -0.3943318724632263, 0.3255031108856201, 0.24739663302898407, 0.26961979269981384, -0.03998790681362152, 0.01246364414691925, -0.17451544106006622, -0.05069577693939209, 0.153604656457901, 0.10970602929592133, -0.33149030804634094, -0.03740842640399933, 0.38653990626335144, 0.18272513151168823, 0.039067983627319336, -0.12032119929790497, -0.42150378227233887, 0.16723471879959106, -0.3105466961860657, 0.2724180817604065, 0.00033420324325561523, 0.5711427330970764, 0.12390244752168655, -0.1267719566822052, -0.09596949815750122, 0.32321077585220337, 0.11457081139087677, -0.21182948350906372, -0.221675306558609, -0.07720796018838882, -0.09159235656261444, 0.05294250696897507, 0.06047600507736206, 0.804970383644104, -0.2886037528514862, -0.08352073282003403, 0.06893078237771988, 0.0784921646118164, -0.14894632995128632, -0.007467523217201233, -0.0729132890701294, 0.20281493663787842, 0.036535605788230896, 0.30548232793807983, -0.09905601292848587, -0.2375441938638687, -0.08398932963609695, 0.006491623818874359, -0.2925957441329956, 0.010008350014686584, -0.14158207178115845, -0.0667385458946228, -0.17465941607952118, 0.24185340106487274, -0.012543346732854843, -0.07497847080230713, -0.24966290593147278, -0.12446315586566925, 0.45705902576446533, -0.08452282100915909, -0.2663293480873108, -0.09242375195026398, 0.3227209448814392, -0.03915712609887123, -0.002417914569377899, -0.5286853313446045, 0.15864530205726624, 0.230332612991333, 0.08593461662530899, 0.17097371816635132, 0.20767547190189362, 0.23881582915782928, 0.12077884376049042, -0.11165036261081696, -0.010602854192256927, 0.24128206074237823, 0.025633156299591064, 0.1639564335346222, -0.3027098476886749 ]
https://github.com/huggingface/datasets/issues/1843
@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.
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).
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.3551786541938782, 0.2733169198036194, -0.08489152044057846, 0.043970949947834015, -0.21060769259929657, -0.0997215211391449, 0.014360854402184486, 0.1664300560951233, -0.3334968090057373, 0.185872882604599, -0.2543601989746094, -0.07739277184009552, 0.05462557077407837, -0.11916138231754303, 0.1883627474308014, -0.2674564719200134, 0.1272602081298828, 0.01594492420554161, -0.4990529716014862, -0.2887565493583679, -0.002271704375743866, 0.0825287252664566, -0.3534402549266815, -0.06582915782928467, -0.2267104685306549, -0.0015484541654586792, -0.3274194300174713, -0.1423063576221466, -0.26022809743881226, -0.2481783926486969, -0.059322699904441833, 0.1865079551935196, 0.0723315179347992, 0.5039703845977783, -0.00010577376087894663, -0.18892887234687805, 0.3732985854148865, -0.2488802969455719, -0.3008490800857544, 0.08204130083322525, -0.2667974829673767, 0.0794178694486618, -0.5366249680519104, -0.08511105924844742, -0.22786366939544678, -0.284391850233078, 0.021157359704375267, -0.05453355610370636, 0.14953115582466125, 0.637438952922821, 0.2225167453289032, 0.26012304425239563, 0.0848623663187027, -0.1991490125656128, 0.1856093555688858, -0.16398434340953827, -0.06907785683870316, 0.19053906202316284, 0.2750360667705536, -0.021032650023698807, -0.08197419345378876, 0.2998499870300293, 0.10422206670045853, -0.04456564784049988, -0.2373770773410797, -0.3053140640258789, -0.17073959112167358, -0.34541964530944824, 0.12469953298568726, 0.537383496761322, 0.5419609546661377, -0.1456473171710968, -0.30135583877563477, -0.021301276981830597, 0.2159663885831833, -0.013928256928920746, -0.025854874402284622, 0.000662628561258316, -0.13791638612747192, 0.2246890366077423, -0.0034156106412410736, -0.07485681027173996, -0.20431649684906006, 0.154462531208992, -0.06557019799947739, 0.49089306592941284, -0.02150925248861313, -0.1548563539981842, 0.1846321076154709, -0.24811556935310364, -0.2701604962348938, -0.02579120360314846, -0.22894254326820374, 0.04442358389496803, -0.1947866678237915, -0.3074365556240082, 0.21981091797351837, -0.14595866203308105, 0.10539768636226654, -0.5148681998252869, -0.2520373463630676, 0.07679270952939987, -0.029841898009181023, 0.038018323481082916, 0.028798148036003113, 0.43036431074142456, 0.0822538211941719, 0.013924196362495422, 0.014389047399163246, -0.12868289649486542, -0.02485319972038269, 0.28484252095222473, 0.008504271507263184, 0.12349042296409607, -0.6589145660400391, 0.23969820141792297, -0.19562801718711853, -0.34230268001556396, -0.3911920487880707, 0.10411271452903748, 0.10851895809173584, 0.012172553688287735, -0.10719594359397888, 0.34251558780670166, -0.03214599937200546, 0.11864158511161804, -0.2888522148132324, 0.37791866064071655, -0.2201811671257019, -0.39488688111305237, -0.06383839249610901, 0.22100260853767395, -0.272983193397522, 0.07725314050912857, 0.33877378702163696, 0.4771766662597656, 0.18673941493034363, -0.08890213072299957, 0.28319287300109863, 0.03269822895526886, -0.04127582907676697, -0.06439971923828125, 0.25503623485565186, -0.061850350350141525, 0.09184013307094574, 0.010809153318405151, -0.1270463913679123, -0.25978267192840576, -0.25918418169021606, -0.006658289581537247, 0.12930628657341003, -0.033812396228313446, -0.16393963992595673, 0.23012933135032654, -0.13514572381973267, -0.2654018700122833, -0.2642099857330322, 0.6950770020484924, -0.2816905081272125, -0.17592662572860718, 0.17624083161354065, 0.051303207874298096, -0.4213477671146393, 0.23017722368240356, -0.008359376341104507, 0.37261083722114563, -0.3870706558227539, -0.05697249993681908, 0.12884622812271118, 0.1356600672006607, -0.020216461271047592, 0.1602197140455246, -0.15454556047916412, 0.28426533937454224, -0.07054506987333298, 0.3429219722747803, 0.1554592400789261, -0.4663979709148407, -0.42665961384773254, 0.13625319302082062, -0.05377882719039917, -0.014940209686756134, 0.14752689003944397, -0.2671594023704529, 0.7280389666557312, -0.20253853499889374, -0.03575411066412926, 0.39766162633895874, 0.13104526698589325, 0.19789202511310577, -0.23835359513759613, -0.2894970178604126, 0.33423060178756714, 0.19568833708763123, -0.024270903319120407, -0.06914821267127991, -0.02180786058306694, 0.08383297175168991, 0.15794041752815247, -0.2965838611125946, 0.14826327562332153, 0.19800373911857605, -0.016970913857221603, -0.32432815432548523, 0.11543777585029602, -0.11889918148517609, 0.01439759973436594, 0.08778852969408035, -0.16107259690761566, 0.575960099697113, 0.311133474111557, -0.14695115387439728, -0.21399861574172974, -0.23470260202884674, -0.07711254060268402, -0.3021526038646698, 0.22283372282981873, 0.18029794096946716, 0.13226783275604248, 0.21838447451591492, -0.06274279952049255, 0.182993546128273, -0.17975187301635742, -0.3059768080711365, 0.06323689222335815, 0.15463203191757202, 0.033587485551834106, -0.2636297941207886, 0.2943398356437683, 0.28895190358161926, -0.008817456662654877, -0.017070148140192032, -0.12835180759429932, 0.14942337572574615, -0.1889592707157135, 0.3021013140678406, 0.35405755043029785, 0.08780986070632935, 0.25570598244667053, -0.5296874642372131, 0.10476768016815186, 0.48697903752326965, 0.17433279752731323, -0.08210961520671844, -0.2045048326253891, 0.4014045000076294, 0.3025277853012085, 0.07748496532440186, 0.25972259044647217, -0.17156565189361572, 0.27477777004241943, 0.01106610894203186, -0.1812475025653839, 0.03983993083238602, 0.3730655908584595, 0.2577480971813202, -0.18588557839393616, -0.0040041981264948845, -0.2110433429479599, 0.2028788924217224, 0.6933566927909851, -0.1499212384223938, 0.4464179277420044, 0.2341545671224594, -0.14736828207969666, -0.23946379125118256, 0.1144065260887146, -0.3307744860649109, 0.38380011916160583, 0.22520864009857178, 0.3287409543991089, 0.03171343356370926, 0.11547810584306717, -0.017530225217342377, 0.2093212604522705, -0.048987001180648804, -0.44043824076652527, 0.0404122993350029, 0.20456163585186005, -0.2765512764453888, -0.2801453471183777, -0.026912815868854523, 0.011518053710460663, 0.11302309483289719, -0.1419905126094818, -0.18765054643154144, 0.016445107758045197, -0.04354594647884369, -0.1173078641295433, -0.02806539088487625, -0.27990299463272095, -0.012960091233253479, 0.4996728301048279, 0.03516663610935211, -0.07766842097043991, 0.29453253746032715, 0.2281568944454193, 0.4096616804599762, -0.20716363191604614, -0.06152711808681488, -0.13809406757354736, -0.4016677737236023, -0.35573452711105347, 0.20328289270401, 0.12438061833381653, 0.4340551197528839, 0.06779145449399948, -0.17085635662078857, 0.2648129165172577, -0.14784765243530273, -0.16423624753952026, 0.2659852206707001, -0.2536758780479431, 0.3071199059486389, -0.35553622245788574, -0.09926368296146393, -0.26205796003341675, -0.2119557112455368, -0.19348913431167603, -0.11728323251008987, -0.019376978278160095, 0.009281046688556671, -0.35799306631088257, -0.24844810366630554, 0.0018924027681350708, -0.4207039773464203, -0.3574754297733307, -0.344103068113327, 0.2667475938796997, -0.3142561912536621, -0.045754071325063705, -0.23315775394439697, 0.05380512401461601, 0.22835156321525574, -0.11809991300106049, 0.12829898297786713, -0.3086584210395813, -0.3723420798778534, 0.23619648814201355, -0.37312835454940796, -0.4347388744354248, -0.19016654789447784, 0.11284424364566803, 0.2009083479642868, -0.19623024761676788, -0.27994921803474426, 0.08984020352363586, -0.07578742504119873, 0.2916797995567322, 0.19344522058963776, 0.07358216494321823, 0.2507287561893463, -0.22089792788028717, -0.14608733355998993, -0.07676786184310913, -0.1419752538204193, 0.10741539299488068, 0.43290650844573975, 0.17410418391227722, -0.1641848385334015, -0.07807311415672302, -0.039777643978595734, 0.7484595775604248, 0.18186941742897034, -0.036132894456386566, 0.15509015321731567, -0.11572708934545517, 0.28619831800460815, -0.17949162423610687, -0.20037074387073517, 0.4559270739555359, 0.07021450996398926, 0.07965031266212463, 0.5873458385467529, -0.05965040624141693, -0.40379026532173157, -0.13146288692951202, -0.06342168152332306, -0.3109099268913269, -0.21882350742816925, 0.24484004080295563, 0.1556648463010788, 0.12024515867233276, 0.09251196682453156, 0.006712183356285095, -0.14991456270217896, -0.21493738889694214, 0.3076752722263336, 0.06300639361143112, 0.004088468849658966, -0.053975723683834076, -0.18392129242420197, -0.09869976341724396, -0.23306088149547577, 0.04509070888161659, 0.12559491395950317, 0.41721320152282715, -0.33887940645217896, 0.1059630885720253, 0.01413903757929802, 0.07126745581626892, 0.3088397979736328, -0.24706922471523285, 0.0061386385932564735, 0.2674688398838043, 0.49047064781188965, -0.03746330738067627, 0.124421626329422, -0.3506263196468353, -0.27443644404411316, 0.5050273537635803, 0.044320352375507355, -0.20603103935718536, 0.1372443437576294, 0.1844470053911209, 0.1801811158657074, -0.05559008568525314, -0.053287748247385025, -0.17775702476501465, -0.35159245133399963, -0.16249403357505798, 0.43720653653144836, 0.2988065481185913, -0.0007251948118209839, -0.0671832412481308, 0.24529211223125458, 0.11700385808944702, -0.08119791001081467, 0.3922605812549591, 0.16799677908420563, -0.029373154044151306, 0.30573925375938416, 0.08868134021759033, 0.028456758707761765, -0.2849124073982239, -0.1788625717163086, 0.17632123827934265, 0.22739556431770325, -0.1764003336429596, 0.22874754667282104, -0.2436406910419464, 0.2854170501232147, 0.26117298007011414, 0.11362384259700775, -0.05138494074344635, -0.09460417181253433, -0.0017240010201931, -0.16714270412921906, 0.2643263339996338, 0.25623083114624023, 0.2736632823944092, -0.29230496287345886, -0.08539153635501862, 0.44945985078811646, -0.008611872792243958, -0.08778558671474457, 0.0416329950094223, 0.11388742923736572, -0.22606250643730164, 0.26380595564842224, -0.1847442239522934, 1.1430461406707764, 0.17287404835224152, 0.03636225685477257, 0.2057211995124817, -0.1620517522096634, 0.1455419361591339, -0.5122429728507996, -0.028577443212270737, 0.24917499721050262, -0.06427200138568878, -0.060098372399806976, 0.14666715264320374, 0.14656727015972137, 0.15770193934440613, -0.6139911413192749, 0.4243773818016052, 0.15433594584465027, -0.1389877200126648, 0.24336008727550507, 0.5378382802009583, -0.049526624381542206, -0.3192805349826813, -0.39458775520324707, 0.2510226368904114, 0.040364593267440796, 0.21105091273784637, 0.2064959555864334, -0.12213863432407379, -0.0591706745326519, -0.01984698325395584, -0.5190371870994568, 0.20812103152275085, -0.04388868808746338, -0.1314905434846878, -0.19248783588409424, -0.03505764156579971, 0.29320037364959717, 0.08340007066726685, 0.28909510374069214, 0.04649465158581734, -0.2714976966381073, 0.39690908789634705, -0.016686242073774338, 0.06819916516542435, 0.30737605690956116, -0.11669109761714935, 0.2369595617055893, -0.23754455149173737, -0.39362865686416626, 0.4314378499984741, 0.12355855852365494, -0.023586347699165344, -0.40869101881980896, -0.30949798226356506, 0.03251706808805466, 0.11469537019729614, 0.22702282667160034, 0.4223169982433319, -0.037303417921066284, -0.2104547768831253, 0.17700612545013428, -0.11102594435214996, -0.49374905228614807, 0.37578004598617554, -0.09942720830440521, -0.3258652687072754, -0.17525522410869598, 0.31208136677742004, 0.04495936259627342, -0.01608435809612274, 0.26875996589660645, 0.32699206471443176, -0.05787404254078865, -0.3581143617630005, -0.18322697281837463, 0.1534421145915985, -0.5673994421958923, -0.0913337916135788, -0.11732053011655807, -0.1728062629699707, -0.1916522979736328, 0.31146228313446045, 0.09149043262004852, -0.04709499701857567, -0.0389835350215435, 0.030808642506599426, -0.17441345751285553, -0.08221804350614548, 0.1760895699262619, 0.10849477350711823, -0.12083965539932251, 0.1085432767868042, 0.04950639605522156, -0.06346924602985382, -0.4071822762489319, 0.01705474779009819, -0.1513054370880127, 0.17561325430870056, 0.14964129030704498, -0.15068137645721436, 0.1005391776561737, 0.14116543531417847, 0.13926196098327637, 0.001843539997935295, -0.12659741938114166, -0.24102845788002014, -0.15317384898662567, 0.07932483404874802, 0.023322101682424545, 0.09617751836776733, -0.1620372086763382, -0.04053513705730438, -0.19949115812778473, 0.027943655848503113, 0.19654805958271027, -0.08158064633607864, -0.13641342520713806, 0.17217455804347992, 0.043389271944761276, -0.10033033788204193, 0.14937032759189606, 0.03969297930598259, 0.2879953384399414, 0.3841158449649811, 0.07710430026054382, 0.3171364963054657, 0.06957831978797913, -0.16138587892055511, -0.03549080342054367, 0.3563213348388672, 0.08119718730449677, 0.15746229887008667, 0.01348686870187521, -0.0027525881305336952, 0.25723445415496826, 0.15779370069503784, 0.11148510873317719, 0.08533983677625656, -0.11157704144716263, -0.311002254486084, 0.38512173295021057, 0.24498552083969116, -0.16008907556533813, 0.053122278302907944, -0.1723872572183609, -0.1483215093612671, 0.27734678983688354, 0.013106219470500946, -0.00547374039888382, -0.012704916298389435, 0.41798579692840576, -0.006904032081365585, -0.13112662732601166, 0.10084456205368042, -0.06128665804862976, -0.12407860904932022, -0.004173979163169861, -0.053004637360572815, 0.03023928962647915, 0.025292538106441498, 0.08653812855482101, -0.024177147075533867, -0.008701138198375702, 0.57462078332901, 0.20383909344673157, 0.31481510400772095, 0.11402595043182373, -0.025513797998428345, 0.1445300579071045, 0.1809157431125641, 0.2090105265378952, 0.3537561893463135, 0.08608435094356537, 0.14796826243400574, -0.243238165974617, -0.3147217929363251, -0.38566672801971436, 0.08551263809204102, 0.20593960583209991, -0.12565241754055023, 0.1257867068052292, -0.23867274820804596, -0.2533559799194336, 0.06280389428138733, -0.07040879130363464, -0.013312283903360367, -0.07975831627845764, 0.09355960786342621, -0.08587834984064102, -0.10892056673765182, -0.23557919263839722, -0.2524142563343048, 0.17216306924819946, -0.18598374724388123, 0.47692418098449707, 0.1065455824136734, -0.00755617581307888, 0.16429391503334045, 0.6191946864128113, 0.293988972902298, -0.046042848378419876, -0.4676012396812439, 0.18146957457065582, -0.14888562262058258, -0.017234724014997482, 0.10766327381134033, 0.46706122159957886, 0.1289863884449005, -0.0136793814599514, 0.2001291960477829, 0.2269100844860077, -0.19320526719093323, -0.17446646094322205, 0.0669056624174118, -0.10858571529388428, -0.24204519391059875, -0.02392561361193657, -0.03046448528766632, 0.35592204332351685, -0.43217185139656067, -0.23568487167358398, -0.5966398119926453, -0.032561130821704865, 0.28178367018699646, -0.29851263761520386, 0.06423841416835785, -0.1308930218219757, 0.11206890642642975, -0.21247266232967377, 0.47386613488197327, 0.2863329350948334, 0.40167436003685, -0.1726588010787964, -0.1763753443956375, -0.33882197737693787, 0.08855686336755753, 0.06959371268749237, 0.1894705593585968, -0.2420598566532135, 0.2347685992717743, 0.2082526981830597, 0.4279848337173462, 0.009279593825340271, 0.03890169411897659, -0.49011415243148804, 0.18814842402935028, -0.36551356315612793, 0.20483830571174622, -0.1874963790178299, 0.4944729506969452, 0.008143231272697449, -0.1845749318599701, -0.13464073836803436, 0.1167542114853859, 0.09167886525392532, 0.0334014929831028, -0.17269538342952728, 0.03758309781551361, -0.23082542419433594, 0.22650252282619476, 0.00999310053884983, 0.4546857178211212, -0.10578408092260361, -0.1265779286623001, -0.19319120049476624, -0.07315072417259216, 0.031682875007390976, -0.12310868501663208, -0.040057238191366196, 0.1766233593225479, -0.016121476888656616, 0.294389009475708, 0.008163798600435257, 0.01854189857840538, 0.17097261548042297, 0.07982752472162247, -0.2254881113767624, -0.01106255128979683, -0.09638393670320511, 0.027143511921167374, -0.10960020124912262, 0.2335270643234253, 0.058997321873903275, 0.12768647074699402, -0.11615752428770065, 0.039712585508823395, 0.44055235385894775, -0.31460317969322205, -0.3092558979988098, -0.15354110300540924, 0.3522534966468811, 0.05733906477689743, -0.10253841429948807, -0.5595284700393677, 0.1816340833902359, 0.30458706617355347, 0.18080714344978333, 0.14672701060771942, 0.1256612092256546, 0.0741313099861145, 0.08588907122612, -0.1564195156097412, 0.04402950406074524, 0.058405447751283646, -0.09697231650352478, 0.1654687523841858, -0.2397262006998062 ]
https://github.com/huggingface/datasets/issues/1843
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?
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).
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.3261699676513672, 0.2585771679878235, -0.09217435121536255, -0.03336836397647858, -0.055430956184864044, 0.020177580416202545, 0.004286937415599823, 0.12214884161949158, -0.3325344920158386, 0.28702861070632935, -0.24631109833717346, -0.16635257005691528, -0.08833837509155273, 0.043066784739494324, 0.1519545614719391, -0.04609312862157822, 0.10058803856372833, 0.008411191403865814, -0.28160107135772705, -0.31707146763801575, -0.09997700899839401, 0.07026015222072601, -0.10389332473278046, -0.17984800040721893, -0.10231109708547592, -0.1136203408241272, -0.2879880666732788, -0.12926222383975983, -0.3628217577934265, -0.16106219589710236, 0.08287794888019562, 0.21185897290706635, 0.10541857779026031, 0.33857691287994385, -0.0001049831771524623, -0.1688215136528015, 0.21882086992263794, -0.21010884642601013, -0.46503543853759766, -0.12277821451425552, -0.26333996653556824, -0.19001583755016327, -0.5593048930168152, -0.05893884599208832, -0.13183751702308655, -0.15389901399612427, 0.1906309276819229, 0.10638488829135895, 0.1001444011926651, 0.5843325853347778, 0.22896388173103333, 0.07180808484554291, 0.17176733911037445, -0.2216983139514923, 0.3009498119354248, 0.11322984844446182, -0.1445612907409668, 0.21216069161891937, 0.20203962922096252, 0.1368398666381836, 0.18799105286598206, 0.24985569715499878, 0.06230003386735916, -0.15414085984230042, -0.031292639672756195, -0.2617183029651642, -0.1831342875957489, -0.4605367183685303, 0.10670149326324463, 0.4221016764640808, 0.669969916343689, -0.16043943166732788, -0.22267428040504456, -0.11127657443284988, 0.31614118814468384, -0.13186803460121155, -0.04156721010804176, 0.07622512429952621, -0.18028199672698975, 0.2422289252281189, 0.08786167949438095, -0.3472368121147156, -0.18163467943668365, 0.27860942482948303, 0.00307464599609375, 0.31511566042900085, -0.09892407059669495, -0.0851304829120636, 0.059056274592876434, -0.18150144815444946, -0.3160819411277771, -0.07768717408180237, 0.020067064091563225, 0.16416828334331512, -0.048442281782627106, -0.2551892101764679, 0.26030275225639343, -0.11569441854953766, 0.12743926048278809, -0.33387288451194763, -0.19082669913768768, -0.11293657124042511, -0.18095766007900238, 0.03270145505666733, -0.008753635920584202, 0.3533172905445099, -0.03891400992870331, 0.0067526064813137054, 0.16031771898269653, -0.2577744722366333, 0.13175414502620697, 0.09493067115545273, -0.1060989499092102, 0.10619428008794785, -0.4424651265144348, 0.2819642126560211, 0.01751665771007538, -0.15212908387184143, -0.3608734607696533, 0.0009046010673046112, -0.09837093949317932, 0.09526429325342178, -0.18402962386608124, 0.2711251676082611, 0.059411533176898956, 0.2206316590309143, -0.029946021735668182, 0.3511987626552582, -0.08161729574203491, -0.16763409972190857, -0.06350160390138626, 0.18211570382118225, -0.1835426539182663, 0.14106407761573792, 0.2064753770828247, 0.4040094316005707, 0.1354861855506897, -0.03828349709510803, 0.21919482946395874, 0.10656015574932098, -0.26090946793556213, -0.023015771061182022, 0.13150934875011444, 0.04755857586860657, 0.13053567707538605, 0.20112226903438568, -0.2909491956233978, -0.2401169389486313, -0.3164711594581604, 0.037238284945487976, 0.11651089787483215, -0.032481104135513306, -0.17996935546398163, 0.2699032425880432, -0.11493650078773499, -0.28233662247657776, -0.3300670385360718, 0.6548686027526855, -0.16716118156909943, -0.15857499837875366, 0.02694910392165184, 0.13181667029857635, -0.4072476625442505, 0.029885753989219666, -0.09194730967283249, 0.37231531739234924, -0.3409876823425293, -0.09580428898334503, 0.04077811539173126, 0.012932494282722473, 0.10609297454357147, 0.16490177810192108, -0.04548587650060654, 0.3797605037689209, -0.12721234560012817, 0.3340141773223877, 0.17381149530410767, -0.2973580062389374, -0.42806607484817505, 0.10873134434223175, -0.18398751318454742, 0.05625661462545395, 0.21241626143455505, -0.08880048990249634, 0.6740360856056213, -0.2896544337272644, -0.053024016320705414, 0.5153853893280029, -0.007286342792212963, 0.07265929877758026, -0.18647342920303345, -0.3875897526741028, 0.2624824345111847, 0.11653967946767807, 0.13136067986488342, 0.10882800817489624, 0.18102547526359558, 0.3644092082977295, 0.3500250577926636, -0.27079886198043823, 0.1428898572921753, 0.3335074484348297, 0.12238356471061707, -0.15555070340633392, 0.012886680662631989, -0.03796837106347084, -0.25989070534706116, 0.012490853667259216, 0.0837913528084755, 0.5217413306236267, 0.019242659211158752, -0.24378377199172974, -0.10163266211748123, -0.28442078828811646, -0.16746744513511658, -0.09777258336544037, 0.23946478962898254, 0.302895188331604, 0.15539726614952087, 0.03713332116603851, 0.03485888987779617, 0.2901744246482849, -0.35260844230651855, -0.26369205117225647, -0.07625069469213486, 0.1294236034154892, -0.016773302108049393, -0.19084781408309937, 0.17620524764060974, 0.22715653479099274, 0.19903291761875153, -0.07359714061021805, -0.01703675463795662, 0.1629076898097992, -0.232837975025177, 0.31285619735717773, 0.04640021175146103, 0.15135051310062408, 0.310635507106781, -0.5115107893943787, 0.15729448199272156, 0.4161928594112396, 0.14678965508937836, -0.27364370226860046, -0.24583637714385986, 0.1721501648426056, 0.3308235704898834, 0.155747190117836, 0.2433721423149109, -0.018406253308057785, 0.49589622020721436, 0.10717593878507614, -0.19740939140319824, -0.05404370278120041, 0.1498035192489624, 0.3694203794002533, -0.09561703354120255, -0.05429231375455856, -0.30670908093452454, 0.2138967365026474, 0.6212286353111267, -0.19692911207675934, 0.24066922068595886, 0.2520478367805481, -0.07882095128297806, -0.14635297656059265, 0.029092563316226006, -0.19062930345535278, 0.2503052055835724, 0.3527507781982422, 0.3592059910297394, 0.10537810623645782, 0.15320299565792084, -0.10187117755413055, 0.12130089104175568, 0.08636364340782166, -0.20575189590454102, 0.1337576061487198, 0.12396787106990814, -0.09414087235927582, -0.41687726974487305, 0.019733533263206482, 0.04483526200056076, 0.17797978222370148, -0.16679048538208008, -0.3204415440559387, 0.11410404741764069, -0.16008415818214417, -0.1768817901611328, 0.060124319046735764, -0.199693962931633, -0.11205919086933136, 0.33035510778427124, 0.09858570992946625, -0.1896595060825348, 0.2049134075641632, 0.2834318280220032, 0.2777811586856842, -0.41668760776519775, -0.152523472905159, -0.015928499400615692, -0.3203994631767273, -0.2732066810131073, 0.18605756759643555, 0.23245367407798767, 0.21770606935024261, 0.26994869112968445, -0.28929245471954346, 0.18739357590675354, -0.335677832365036, -0.3198474943637848, 0.23178359866142273, -0.24859660863876343, 0.06740677356719971, -0.24116691946983337, 0.08072161674499512, 0.00270649790763855, -0.3551664352416992, -0.2997347116470337, -0.012559030205011368, -0.10879937559366226, -0.09835405647754669, -0.4978320002555847, -0.2145538628101349, -0.08783844113349915, -0.5328081250190735, -0.5634722709655762, -0.38256269693374634, 0.3526054322719574, -0.142456516623497, -0.02761947363615036, 0.0433119535446167, 0.004082862287759781, 0.1098218560218811, 0.02933456376194954, 0.2357148379087448, -0.283221036195755, -0.05614057183265686, 0.24338385462760925, -0.24328230321407318, -0.40013182163238525, -0.10833831131458282, 0.053757891058921814, 0.050120171159505844, -0.036100052297115326, -0.3312397003173828, 0.20805153250694275, -0.16219407320022583, 0.3929627537727356, 0.1319548487663269, 0.12935957312583923, 0.347927063703537, -0.18761904537677765, -0.1273125410079956, -0.14078345894813538, -0.11034513264894485, 0.07690396904945374, 0.4300549328327179, 0.24325653910636902, -0.09913158416748047, 0.11578114330768585, 0.032439813017845154, 0.6805481910705566, 0.16297465562820435, 0.05031735077500343, 0.13356105983257294, -0.0671360120177269, 0.4736747145652771, -0.22701221704483032, -0.2605067789554596, 0.45799368619918823, 0.042709313333034515, -0.1145172268152237, 0.4364798963069916, 0.008746925741434097, -0.43430888652801514, -0.10887033492326736, -0.19944947957992554, -0.23434627056121826, -0.28162819147109985, 0.24889254570007324, 0.1271238625049591, 0.09769951552152634, 0.20116476714611053, -0.0411907434463501, -0.17995011806488037, -0.13314156234264374, 0.28955745697021484, 0.11789463460445404, 0.05754503607749939, 0.028898850083351135, -0.15300065279006958, -0.06469235569238663, -0.5273177623748779, -0.05315603315830231, 0.2005159705877304, 0.2830532193183899, -0.4398043155670166, 0.01454140990972519, -0.035619478672742844, 0.09019871056079865, 0.32600703835487366, -0.28684374690055847, -0.025601642206311226, 0.25647178292274475, 0.6237993836402893, -0.03274882584810257, 0.09541009366512299, -0.3140833377838135, -0.3194315433502197, 0.6827368140220642, 0.3148847222328186, -0.3409000039100647, 0.08245480805635452, 0.17013736069202423, 0.41300955414772034, -0.0726606547832489, -0.06954097747802734, 0.007025010883808136, -0.5352045297622681, -0.3132355213165283, 0.21338579058647156, 0.42889875173568726, -0.013669904321432114, 0.10453969240188599, 0.190357506275177, 0.16778872907161713, 0.006786331534385681, 0.39336875081062317, -0.06707555800676346, -0.02671397104859352, 0.5132442712783813, 0.04164014756679535, 0.0016661426052451134, -0.06518355011940002, -0.1873147189617157, 0.4569404721260071, -0.015506885945796967, -0.34777820110321045, 0.09078820049762726, -0.32100585103034973, 0.27612295746803284, 0.40496930480003357, 0.13503387570381165, -0.04840255156159401, -0.08328007161617279, 0.06966686248779297, -0.21098846197128296, 0.2506783902645111, 0.2178114354610443, 0.041752081364393234, -0.3729912340641022, -0.31293272972106934, 0.41497039794921875, 0.008660145103931427, -0.13629773259162903, 0.10767164826393127, 0.2048521190881729, -0.2556140422821045, 0.22495579719543457, -0.21079754829406738, 1.259527564048767, 0.20370744168758392, 0.07309926301240921, 0.26574352383613586, -0.31865566968917847, 0.15546637773513794, -0.5350132584571838, -0.09454438090324402, 0.3271147608757019, 0.19849032163619995, -0.022485539317131042, 0.23172801733016968, -0.06716369092464447, 0.20905691385269165, -0.4089980721473694, 0.36462146043777466, 0.056059375405311584, 0.11152848601341248, 0.22942206263542175, 0.5157219171524048, -0.18269214034080505, -0.34920820593833923, -0.09843339771032333, 0.27078545093536377, 0.1393749713897705, 0.2220139503479004, 0.10908299684524536, -0.266398549079895, 0.20035068690776825, -0.13681966066360474, -0.6051578521728516, 0.2714417576789856, -0.2138935923576355, -0.05720756947994232, -0.5069348812103271, -0.12188927829265594, 0.22732046246528625, 0.13640281558036804, 0.34953728318214417, 0.03223884105682373, -0.24903199076652527, 0.28390833735466003, 0.024266833439469337, 0.12548188865184784, 0.25749242305755615, -0.05838360637426376, 0.34922266006469727, -0.27277058362960815, -0.19538164138793945, 0.19961407780647278, -0.034093983471393585, -0.05029669404029846, -0.40928804874420166, -0.2993159592151642, 0.027430394664406776, 0.21172527968883514, 0.14713697135448456, 0.6069583892822266, -0.14619329571723938, -0.2696573734283447, 0.18629421293735504, -0.14871393144130707, -0.3434028625488281, 0.236507385969162, -0.22078688442707062, -0.3309105634689331, -0.27009305357933044, 0.37044134736061096, 0.18460652232170105, -0.018414072692394257, 0.3758646249771118, 0.20976272225379944, -0.24239034950733185, -0.32361429929733276, -0.08372873067855835, 0.08622445166110992, -0.5519274473190308, -0.08096670359373093, 0.031101372092962265, -0.011935055255889893, -0.3298693597316742, 0.32304516434669495, 0.0454692617058754, 0.017841801047325134, -0.12661069631576538, -0.04719521850347519, -0.19497878849506378, -0.08754132688045502, 0.17221277952194214, 0.06279988586902618, -0.016792617738246918, 0.19222484529018402, 0.08464241772890091, -0.1631113588809967, -0.43556785583496094, -0.0034869015216827393, -0.07851336151361465, 0.16919659078121185, 0.21990972757339478, -0.02836143597960472, 0.23503486812114716, -0.013017982244491577, 0.18014463782310486, -0.02551312744617462, -0.06446840614080429, -0.22821128368377686, -0.14379164576530457, 0.0878661647439003, 0.14385360479354858, 0.22264772653579712, 0.015805687755346298, -0.13093815743923187, -0.23106104135513306, 0.1257999688386917, 0.3019750118255615, 0.2664957046508789, -0.09473642706871033, 0.06705255806446075, -0.16557379066944122, 0.07372261583805084, 0.16287407279014587, 0.009417694061994553, 0.22011521458625793, 0.426275372505188, 0.031113218516111374, 0.24399873614311218, 0.012868072837591171, -0.09776172786951065, -0.03770236298441887, 0.24971416592597961, 0.15822742879390717, 0.028849251568317413, 0.008228441700339317, 0.03746669739484787, 0.18663541972637177, 0.22590869665145874, 0.03516799956560135, 0.04538372904062271, -0.10834965109825134, -0.11056208610534668, 0.42414891719818115, 0.28455600142478943, -0.24801073968410492, 0.15913575887680054, -0.3266996443271637, -0.25268083810806274, 0.13914187252521515, 0.05631560459733009, 0.022123053669929504, -0.10916811227798462, 0.3056885004043579, -0.12328936159610748, -0.14438767731189728, 0.017091967165470123, 0.023696113377809525, 0.24356883764266968, 0.08324530720710754, -0.035053398460149765, 0.03183794766664505, 0.056662410497665405, 0.005073118954896927, 0.13703535497188568, -0.257168173789978, 0.38585808873176575, 0.0796104222536087, 0.15197472274303436, 0.19335488975048065, -0.1582798957824707, 0.0465591736137867, 0.07297763228416443, 0.057801730930805206, 0.26659059524536133, 0.13127055764198303, 0.12933915853500366, -0.16783985495567322, -0.17685817182064056, -0.206109881401062, 0.12530121207237244, 0.06346014887094498, 0.07563284039497375, -0.052418891340494156, -0.2231833040714264, -0.21902583539485931, 0.11126473546028137, -0.012349866330623627, -0.23950326442718506, -0.12482818961143494, 0.13318437337875366, -0.11993338167667389, -0.044873468577861786, -0.17004507780075073, -0.3792724609375, 0.12374995648860931, -0.28637194633483887, 0.34079355001449585, 0.1289919912815094, -0.048620618879795074, 0.14648257195949554, 0.44810065627098083, 0.399474561214447, 0.10075565427541733, -0.15466366708278656, 0.20852090418338776, 0.018234115093946457, -0.1115252822637558, 0.01806417852640152, 0.4138028025627136, 0.11495225131511688, 0.07384784519672394, 0.1876872032880783, 0.22964905202388763, -0.22419951856136322, -0.03256060928106308, 0.12068668007850647, -0.09271760284900665, -0.09405192732810974, 0.21845600008964539, -0.14288528263568878, 0.17633384466171265, -0.5103025436401367, -0.11386258900165558, -0.5821383595466614, 0.013606451451778412, 0.3610702157020569, -0.23121556639671326, 0.19266459345817566, -0.1597990095615387, 0.11386425793170929, -0.21106798946857452, 0.37066543102264404, 0.38440272212028503, 0.10412635654211044, -0.08183553069829941, -0.0960431843996048, -0.3968749940395355, -0.13870175182819366, 0.047226376831531525, 0.08852988481521606, -0.31935688853263855, 0.20288307964801788, 0.39512473344802856, 0.299274206161499, -0.07664864510297775, 0.04627881199121475, -0.3797617256641388, 0.11337283998727798, -0.2828349173069, 0.1392633318901062, 0.06718359887599945, 0.5116137862205505, 0.010285556316375732, -0.2501455545425415, -0.15180112421512604, 0.13266924023628235, 0.10153931379318237, -0.14462970197200775, -0.005260087549686432, -0.14812347292900085, -0.1814873218536377, 0.2580215036869049, -0.06734521687030792, 0.42929497361183167, -0.2882857322692871, -0.13585956394672394, -0.15843211114406586, -0.006951741874217987, -0.11215703934431076, -0.02259121835231781, -0.1224217414855957, 0.1981576830148697, -0.06915409862995148, 0.3408105671405792, -0.04442151263356209, -0.14713412523269653, -0.041315965354442596, 0.07860462367534637, -0.39511042833328247, 0.09343160688877106, -0.27261027693748474, 0.13148774206638336, -0.12905076146125793, 0.1855120062828064, -0.0007184147834777832, -0.1341257095336914, -0.2878398895263672, -0.16648592054843903, 0.44652679562568665, -0.1318197399377823, -0.2964191734790802, -0.07052668184041977, 0.3546958267688751, 0.12908495962619781, 0.0069305170327425, -0.5353889465332031, 0.25541961193084717, 0.2577603757381439, 0.04324059560894966, 0.04039399325847626, 0.1596989929676056, 0.05777738615870476, -0.023026108741760254, -0.09843321144580841, -0.006353981792926788, 0.09065678715705872, -0.22191815078258514, 0.07002411037683487, -0.4112513065338135 ]
https://github.com/huggingface/datasets/issues/1843
yes that is possible. I couldn't unfortunately complete this PR, If you would like to add it, please feel free to do it.
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).
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.3144164979457855, 0.240712970495224, -0.09851735830307007, 0.0024262648075819016, -0.04147341474890709, -0.03633309155702591, 0.0861026793718338, 0.1563125103712082, -0.3312874436378479, 0.16874510049819946, -0.3144814074039459, -0.08722834289073944, -0.08008411526679993, 0.11771386116743088, 0.24292302131652832, -0.23413091897964478, 0.12590445578098297, 0.05045623704791069, -0.3424837589263916, -0.24946002662181854, -0.021339051425457, 0.06726730614900589, -0.07884258031845093, -0.1344393491744995, -0.1448361575603485, 0.032169945538043976, -0.27955105900764465, -0.23418651521205902, -0.3020346164703369, -0.1368791162967682, -0.019576217979192734, 0.10978414118289948, 0.10334426164627075, 0.3815741539001465, -0.00010270237544318661, -0.12752266228199005, 0.252795934677124, -0.27276086807250977, -0.3388969302177429, -0.12785476446151733, -0.18108567595481873, -0.08172710239887238, -0.5909469127655029, 0.005200996994972229, -0.3022562563419342, -0.2398955225944519, -0.0072253067046403885, 0.09974014759063721, 0.22619447112083435, 0.5919895172119141, 0.25051382184028625, 0.07011955976486206, 0.2464674711227417, -0.17653831839561462, 0.20979416370391846, 0.13428589701652527, -0.1943410038948059, 0.07489214092493057, 0.24926598370075226, 0.1058407723903656, 0.13419848680496216, 0.35475265979766846, 0.09580105543136597, -0.19330622255802155, -0.08367973566055298, -0.2805370092391968, -0.0862780287861824, -0.347228080034256, 0.09634368121623993, 0.38627639412879944, 0.5706558227539062, -0.14905965328216553, -0.20055432617664337, -0.10980261117219925, 0.31913304328918457, -0.21819821000099182, -0.10300587117671967, 0.07135781645774841, -0.24414390325546265, 0.2761051654815674, 0.1657106876373291, -0.30145299434661865, -0.16010621190071106, 0.2586256265640259, 0.08146575093269348, 0.345028817653656, -0.08520673215389252, -0.12230381369590759, 0.03758805990219116, -0.24551868438720703, -0.25401943922042847, 0.006066648289561272, -0.04611838981509209, 0.0812642052769661, -0.18724264204502106, -0.28068017959594727, 0.2276117205619812, -0.1033083125948906, 0.14978773891925812, -0.3863222002983093, -0.15641430020332336, -0.12693406641483307, -0.1921887844800949, 0.04400502145290375, 0.11500117182731628, 0.37884238362312317, -0.026462752372026443, 0.03777490183711052, 0.04749211296439171, -0.2518247961997986, 0.049771517515182495, 0.11094777286052704, 0.0034480877220630646, 0.1197194904088974, -0.45592015981674194, 0.2956072688102722, -0.035066597163677216, -0.16813410818576813, -0.2250043749809265, 0.010360285639762878, -0.09615671634674072, 0.11250929534435272, -0.09187400341033936, 0.28351011872291565, 0.13210205733776093, 0.2797352969646454, -0.0397721491754055, 0.36094290018081665, -0.02247435972094536, -0.18110309541225433, -0.024214431643486023, 0.20698264241218567, -0.2713600695133209, 0.19403484463691711, 0.19615095853805542, 0.41220754384994507, 0.10242675989866257, 0.024708855897188187, 0.29953309893608093, 0.06390620768070221, -0.20435363054275513, 0.030297856777906418, 0.29134127497673035, -0.02420903369784355, 0.0846228152513504, 0.0053420886397361755, -0.21979141235351562, -0.23987405002117157, -0.21911220252513885, 0.08411499857902527, 0.15763145685195923, 0.01786963641643524, -0.25638461112976074, 0.2600444555282593, -0.06845210492610931, -0.24235662817955017, -0.27853789925575256, 0.7449660301208496, -0.10150234401226044, -0.12975627183914185, 0.09342475980520248, 0.11645936965942383, -0.4105378985404968, 0.1627672165632248, -0.06977613270282745, 0.2469462901353836, -0.19383171200752258, -0.1282406747341156, 0.17058292031288147, 0.0346943736076355, -0.014272481203079224, 0.1706646978855133, -0.0773133784532547, 0.21621449291706085, -0.1221638172864914, 0.34644031524658203, 0.06982243061065674, -0.3657923638820648, -0.21030060946941376, 0.0862002819776535, -0.1694946587085724, -0.0346861258149147, 0.23783278465270996, -0.154781311750412, 0.6538500189781189, -0.2722485065460205, 0.015309006907045841, 0.38437241315841675, -0.03677767142653465, 0.09691720455884933, -0.1929129809141159, -0.32235705852508545, 0.32366877794265747, 0.12448475509881973, 0.03955502063035965, 0.08096292614936829, -0.047145575284957886, 0.36340153217315674, 0.33074843883514404, -0.32300126552581787, 0.2720317244529724, 0.2625041902065277, 0.05173945054411888, -0.19403904676437378, 0.06534464657306671, -0.1876687854528427, -0.020785745233297348, -0.14142444729804993, 0.10560587048530579, 0.6179710030555725, 0.21540206670761108, -0.26421886682510376, -0.1249605268239975, -0.30515891313552856, -0.12023791670799255, -0.20979972183704376, 0.2888029217720032, 0.26942530274391174, 0.07025612890720367, 0.04118744283914566, -0.09886737167835236, 0.2438778281211853, -0.2970069944858551, -0.2975803017616272, -0.018252667039632797, 0.24787887930870056, 0.019648969173431396, -0.24290980398654938, 0.2222897708415985, 0.4088079035282135, 0.15729044377803802, 0.03522869199514389, -0.050462253391742706, 0.041401538997888565, -0.24436357617378235, 0.22956222295761108, 0.09517347812652588, 0.17217259109020233, 0.2641621530056, -0.482130229473114, 0.13075335323810577, 0.37081003189086914, 0.06347068399190903, -0.18448850512504578, -0.0978766679763794, 0.21774163842201233, 0.41070032119750977, 0.15224236249923706, 0.15530307590961456, -0.028025373816490173, 0.4273425042629242, -0.03199222683906555, -0.21933060884475708, -0.07383975386619568, 0.09802447259426117, 0.2268737256526947, -0.1545482873916626, -0.0578119158744812, -0.3017587661743164, 0.19530236721038818, 0.5034915208816528, -0.1534009426832199, 0.29433903098106384, 0.22147078812122345, -0.05523904785513878, -0.11726686358451843, 0.038230493664741516, -0.2572181224822998, 0.23649363219738007, 0.3023201823234558, 0.306922972202301, 0.03117319382727146, 0.19606813788414001, -0.02992866560816765, 0.13785800337791443, -0.03431614488363266, -0.2566356062889099, 0.18402934074401855, 0.20569878816604614, -0.23893879354000092, -0.3877454400062561, 0.09466724097728729, 0.030974894762039185, 0.10880891233682632, -0.17276909947395325, -0.3300412893295288, 0.09641335159540176, -0.26992225646972656, -0.2532964050769806, 0.0454053170979023, -0.13986338675022125, 0.02593827247619629, 0.4245878756046295, 0.055831145495176315, -0.1760520488023758, 0.28355199098587036, 0.3405626714229584, 0.26056215167045593, -0.4604911804199219, 0.04293789714574814, -0.10588378459215164, -0.33841341733932495, -0.15018047392368317, 0.23641398549079895, 0.1870858371257782, 0.23698186874389648, 0.19452455639839172, -0.14542008936405182, 0.06934422254562378, -0.28703221678733826, -0.2716104984283447, 0.248845174908638, -0.259518563747406, 0.08376990258693695, -0.24712234735488892, -0.03345518186688423, 0.030546419322490692, -0.4345565438270569, -0.2007729858160019, 0.013966627418994904, -0.12613150477409363, -0.11296150088310242, -0.4465991258621216, -0.12314243614673615, -0.11976277828216553, -0.451971173286438, -0.5385050177574158, -0.4178849756717682, 0.3924364745616913, -0.19686976075172424, -0.05865328013896942, -0.07999157905578613, -0.028854312375187874, 0.03845028206706047, -0.043362800031900406, 0.12071791291236877, -0.34195205569267273, -0.14262497425079346, 0.0722503811120987, -0.35471293330192566, -0.30844855308532715, -0.21751338243484497, 0.025479629635810852, 0.11710797250270844, -0.19032564759254456, -0.1839790642261505, 0.08403956890106201, -0.05183832347393036, 0.343990683555603, 0.09422086179256439, 0.05204063653945923, 0.2340596616268158, -0.1334277093410492, -0.1558545082807541, -0.16844990849494934, -0.14741019904613495, 0.08709561824798584, 0.40209105610847473, 0.20115938782691956, -0.014140797778964043, -0.015215490013360977, -0.010617747902870178, 0.5695928931236267, 0.2129809707403183, 0.0032867123372852802, 0.196478009223938, -0.06911736726760864, 0.4202747642993927, -0.30303531885147095, -0.2824954688549042, 0.4688384234905243, 0.04416502267122269, -0.06989837437868118, 0.43594890832901, 0.03206849470734596, -0.47631868720054626, -0.09402729570865631, -0.25049906969070435, -0.28372734785079956, -0.280814528465271, 0.3004732131958008, 0.1049330085515976, 0.1418052464723587, 0.017523661255836487, -0.1853659451007843, -0.23669111728668213, -0.1386939287185669, 0.3092554807662964, 0.09522747993469238, 0.10584823787212372, -0.010956395417451859, -0.2383205145597458, -0.03220990300178528, -0.3911241292953491, -0.1759314090013504, 0.16855114698410034, 0.2604578733444214, -0.474926233291626, 0.12476861476898193, -0.09683900326490402, 0.12605184316635132, 0.33914467692375183, -0.35258203744888306, -0.031048545613884926, 0.3051854372024536, 0.4792061448097229, 0.08724784106016159, 0.18700629472732544, -0.24852287769317627, -0.34644830226898193, 0.628909170627594, 0.3033207952976227, -0.3392402231693268, 0.07346281409263611, 0.17140711843967438, 0.3540356755256653, -0.05671457573771477, -0.12584538757801056, 0.10362564772367477, -0.3130618929862976, -0.35133859515190125, 0.29418495297431946, 0.5863970518112183, -0.0044183991849422455, 0.13273237645626068, 0.08566842973232269, 0.15739323198795319, -0.03300530090928078, 0.41207149624824524, -0.056556470692157745, 0.004981867969036102, 0.5083369612693787, 0.07415743172168732, -0.05853072553873062, -0.09969878196716309, -0.13609784841537476, 0.2360038161277771, -0.029490593820810318, -0.3625950813293457, 0.04109425097703934, -0.3179109990596771, 0.341019868850708, 0.3419700860977173, 0.1969088762998581, 0.055420003831386566, -0.11516646295785904, -0.004926837980747223, -0.17862598598003387, 0.1787162721157074, 0.2119584083557129, 0.21977761387825012, -0.2665580213069916, -0.2907716631889343, 0.33279022574424744, 0.02384798228740692, -0.13564260303974152, 0.08002595603466034, 0.1426536738872528, -0.2639538645744324, 0.3023804724216461, -0.20551718771457672, 1.2013123035430908, 0.214293971657753, 0.07088752090930939, 0.18532249331474304, -0.27612367272377014, 0.05569588765501976, -0.4282703697681427, -0.1648578643798828, 0.25096142292022705, 0.13837233185768127, 0.0014108046889305115, 0.23329633474349976, -0.09270186722278595, 0.18773993849754333, -0.46810758113861084, 0.20749148726463318, -0.03315068036317825, 0.05491723120212555, 0.14737413823604584, 0.4590069651603699, -0.14142414927482605, -0.4073213040828705, -0.3770548105239868, 0.27647650241851807, 0.16170315444469452, 0.10014815628528595, 0.1867160052061081, -0.3114006221294403, 0.1649114042520523, -0.02292085438966751, -0.6706446409225464, 0.17730168998241425, -0.18283459544181824, -0.18681079149246216, -0.4717200696468353, -0.1523207277059555, 0.23508848249912262, 0.21902160346508026, 0.4069218039512634, -0.019995220005512238, -0.24313496053218842, 0.29173919558525085, 0.023937290534377098, 0.1518755853176117, 0.13129617273807526, -0.060253698378801346, 0.33630695939064026, -0.30789682269096375, -0.27242374420166016, 0.2259281426668167, 0.07136163860559464, -0.07578069716691971, -0.39846518635749817, -0.27547693252563477, 0.0963086187839508, 0.15839312970638275, 0.24447119235992432, 0.5786367654800415, -0.022087670862674713, -0.3135793209075928, 0.2143932431936264, -0.11599814146757126, -0.4537073075771332, 0.13476771116256714, -0.13880786299705505, -0.2421625852584839, -0.18488532304763794, 0.22235842049121857, 0.27633941173553467, 0.005673952400684357, 0.3082563281059265, 0.25006991624832153, -0.10525854676961899, -0.36053383350372314, -0.13908369839191437, 0.18911497294902802, -0.4564022421836853, -0.021293967962265015, 0.14255046844482422, -0.15464527904987335, -0.2860095500946045, 0.2714068591594696, 0.03318975865840912, 0.05671784654259682, -0.16729958355426788, -0.012439608573913574, -0.23014646768569946, -0.09230117499828339, 0.11381359398365021, 0.0898483544588089, -0.04565998911857605, 0.33715730905532837, 0.055803075432777405, -0.09541739523410797, -0.4461347460746765, 0.004695683717727661, -0.10531168431043625, 0.22451983392238617, 0.249090313911438, -0.11897068470716476, 0.09175293147563934, 0.01168660819530487, 0.17571109533309937, -0.003667054697871208, -0.031733669340610504, -0.26958590745925903, -0.1937435269355774, 0.07640466839075089, 0.1505880206823349, 0.2530783712863922, -0.009254727512598038, -0.05828278511762619, -0.1696677953004837, 0.08401979506015778, 0.3346136808395386, 0.2620314061641693, -0.06977720558643341, 0.13935303688049316, -0.04888566583395004, 0.033989544957876205, 0.2634320855140686, -0.0036809267476201057, 0.34969326853752136, 0.2920742630958557, 0.041692111641168594, 0.15400364995002747, 0.04115249961614609, -0.08303601294755936, -0.0032427534461021423, 0.2300281822681427, 0.19344496726989746, 0.11719676852226257, -0.06116247549653053, 0.1571453958749771, 0.1814699023962021, 0.2435406744480133, 0.0742649957537651, 0.029963115230202675, -0.07709825038909912, -0.015186157077550888, 0.39085736870765686, 0.3026227355003357, -0.22794754803180695, 0.17203649878501892, -0.20257914066314697, -0.32918742299079895, 0.18947792053222656, 0.06838800013065338, 0.04711723327636719, -0.06919525563716888, 0.3555959165096283, -0.12295304238796234, -0.2752385139465332, 0.02466040477156639, 0.07923153042793274, 0.16581404209136963, 0.09474725276231766, -0.04980045184493065, 0.0218519177287817, -0.04674948751926422, 0.074333555996418, 0.016036856919527054, -0.17189684510231018, 0.4392324686050415, 0.12955500185489655, 0.17243781685829163, 0.29567012190818787, 0.08155174553394318, 0.09781768918037415, 0.027422964572906494, 0.17824628949165344, 0.270998477935791, 0.11748138815164566, 0.28972700238227844, -0.0029123909771442413, -0.3623558580875397, -0.16115732491016388, 0.26551714539527893, 0.05468744412064552, -0.023885494098067284, -0.04807129129767418, -0.1641686111688614, -0.21514937281608582, -0.038739532232284546, -0.005995464511215687, -0.1757565438747406, -0.13096147775650024, 0.12933200597763062, -0.16347113251686096, -0.0372239388525486, -0.15344811975955963, -0.22954347729682922, 0.13455502688884735, -0.2233676165342331, 0.3498358130455017, 0.1768845021724701, -0.07745564728975296, 0.21226397156715393, 0.5102560520172119, 0.44515061378479004, -0.001790214329957962, -0.16064077615737915, 0.15998995304107666, -0.029454505071043968, -0.08546024560928345, 0.02356317639350891, 0.34190210700035095, 0.16737225651741028, 0.06707078218460083, 0.17426174879074097, 0.25700855255126953, -0.2493704855442047, -0.11580607295036316, 0.13141846656799316, -0.09739921241998672, -0.09163407236337662, 0.1299998164176941, -0.07696768641471863, 0.19173365831375122, -0.6140167713165283, -0.216684028506279, -0.5189554691314697, 0.10084556043148041, 0.31670933961868286, -0.24512900412082672, 0.08564049005508423, -0.09767045080661774, 0.131433367729187, -0.16944058239459991, 0.26276344060897827, 0.20988944172859192, 0.07793751358985901, -0.08091343939304352, -0.14415976405143738, -0.34457364678382874, -0.06007184833288193, 0.11624462157487869, 0.08938631415367126, -0.3636898100376129, 0.012003764510154724, 0.49302607774734497, 0.31697383522987366, -0.1438656896352768, -0.1319650113582611, -0.35371363162994385, 0.1792699247598648, -0.40544310212135315, 0.22298938035964966, 0.06749892979860306, 0.6136319041252136, 0.1962835192680359, -0.1255868375301361, -0.23972591757774353, 0.273729532957077, 0.11329129338264465, -0.04164385795593262, -0.051667507737874985, -0.2366298884153366, -0.21261262893676758, 0.14560145139694214, -0.05307807773351669, 0.48311322927474976, -0.3111390471458435, -0.06111467629671097, -0.0497695617377758, -0.16246843338012695, -0.19494706392288208, 0.0023764371871948242, -0.04528264328837395, 0.2194715142250061, -0.10705021768808365, 0.2709200978279114, -0.040550220757722855, -0.17803572118282318, -0.046567220240831375, 0.060951389372348785, -0.2925071120262146, 0.13954055309295654, -0.10163123160600662, 0.02023329958319664, -0.19367167353630066, 0.20096157491207123, -0.045645467936992645, -0.09389136731624603, -0.22835370898246765, -0.186920166015625, 0.44891035556793213, -0.14104101061820984, -0.33844220638275146, -0.06486763060092926, 0.30417901277542114, 0.09849321842193604, -0.06793049722909927, -0.6517701148986816, 0.2181299924850464, 0.2331313192844391, 0.16714270412921906, 0.1549941450357437, 0.1583145409822464, 0.05999387428164482, 0.054956287145614624, -0.1076405793428421, -0.05923011526465416, 0.16673193871974945, -0.15695634484291077, 0.0428394079208374, -0.3223869204521179 ]
https://github.com/huggingface/datasets/issues/1842
@mariosasko actually the "official" AMI dataset can be found here: https://huggingface.co/datasets/edinburghcstr/ami -> the old one under `datasets/ami` doesn't work and should be deleted. The new one was tested by fine-tuning a Wav2Vec2 model on it + we uploaded all the processed audio directly into it
Add AMI Corpus
## Adding a Dataset - **Name:** *AMI* - **Description:** *The AMI Meeting Corpus is a multi-modal data set consisting of 100 hours of meeting recordings. For a gentle introduction to the corpus, see the corpus overview. To access the data, follow the directions given there. Around two-thirds of the data has been elicited using a scenario in which the participants play different roles in a design team, taking a design project from kick-off to completion over the course of a day. The rest consists of naturally occurring meetings in a range of domains. Detailed information can be found in the documentation section.* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ - **Data:** *http://groups.inf.ed.ac.uk/ami/download/* - Select all cases in 1) and select "Individual Headsets" & "Microphone array" for 2) - **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
Add AMI Corpus ## Adding a Dataset - **Name:** *AMI* - **Description:** *The AMI Meeting Corpus is a multi-modal data set consisting of 100 hours of meeting recordings. For a gentle introduction to the corpus, see the corpus overview. To access the data, follow the directions given there. Around two-thirds of the data has been elicited using a scenario in which the participants play different roles in a design team, taking a design project from kick-off to completion over the course of a day. The rest consists of naturally occurring meetings in a range of domains. Detailed information can be found in the documentation section.* - **Paper:** *Homepage*: http://groups.inf.ed.ac.uk/ami/corpus/ - **Data:** *http://groups.inf.ed.ac.uk/ami/download/* - Select all cases in 1) and select "Individual Headsets" & "Microphone array" for 2) - **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). @mariosasko actually the "official" AMI dataset can be found here: https://huggingface.co/datasets/edinburghcstr/ami -> the old one under `datasets/ami` doesn't work and should be deleted. The new one was tested by fine-tuning a Wav2Vec2 model on it + we uploaded all the processed audio directly into it
[ -0.19327060878276825, -0.15322953462600708, -0.06630656868219376, -0.07213078439235687, -0.2277432084083557, -0.12058117240667343, 0.38590389490127563, 0.12637218832969666, -0.03839629143476486, 0.34910112619400024, -0.3162006735801697, -0.0043836310505867004, -0.0726272463798523, 0.13082318007946014, -0.1332608312368393, -0.17231184244155884, -0.09669877588748932, 0.16753509640693665, 0.013109195977449417, -0.09944729506969452, 0.06210576742887497, -0.0632234588265419, -0.1919666826725006, -0.049700815230607986, -0.10071295499801636, -0.1509176790714264, -0.04767704755067825, -0.2387515902519226, -0.23435205221176147, -0.03620269149541855, -0.07314812391996384, 0.06191848963499069, -0.18648311495780945, 0.16915751993656158, -0.00009596611926099285, 0.031508930027484894, 0.26757675409317017, -0.19122213125228882, -0.20840291678905487, 0.15355122089385986, -0.22494906187057495, 0.29626065492630005, -0.3705756664276123, 0.023490041494369507, -0.2877967953681946, 0.07620203495025635, 0.0022238101810216904, -0.2502084970474243, 0.25551632046699524, 0.24788257479667664, 0.30331388115882874, 0.19234371185302734, 0.047827690839767456, -0.153582364320755, 0.24137508869171143, 0.2852991819381714, -0.14772406220436096, -0.17734119296073914, 0.17095276713371277, 0.005324818193912506, -0.08126550912857056, 0.3767675459384918, -0.09713506698608398, 0.11788530647754669, 0.00692982180044055, -0.10564936697483063, -0.11440924555063248, -0.2403445839881897, 0.23996257781982422, 0.3032773435115814, 0.6921685934066772, -0.10192656517028809, -0.15872976183891296, -0.013431675732135773, 0.19164660573005676, -0.08172065019607544, -0.014616165310144424, 0.11114537715911865, -0.3033769726753235, 0.11530275642871857, -0.16320067644119263, 0.014205552637577057, -0.10795740783214569, 0.2438068389892578, 0.30089816451072693, -0.05044269934296608, -0.16589996218681335, -0.09518212080001831, -0.061911486089229584, -0.24288485944271088, -0.24057120084762573, 0.08134898543357849, 0.12118910253047943, 0.118999183177948, -0.019776832312345505, -0.2705537676811218, 0.311442494392395, -0.1958579570055008, 0.06309469044208527, -0.08304198831319809, -0.019654106348752975, 0.1318066120147705, -0.0022651851177215576, 0.09959752857685089, 0.3369765877723694, -0.35469892621040344, 0.20340028405189514, -0.3972359001636505, -0.024977359920740128, 0.1994199901819229, 0.11937068402767181, 0.12440739572048187, 0.010926388204097748, -0.05782502889633179, -0.21881112456321716, -0.03670173138380051, 0.0463423877954483, -0.30582818388938904, -0.23886513710021973, -0.0037632882595062256, -0.24523118138313293, -0.00023922324180603027, 0.07578466832637787, 0.27413904666900635, 0.06839370727539062, 0.02364761009812355, 0.016848988831043243, 0.27972257137298584, -0.2941296696662903, -0.1656610667705536, -0.14541621506214142, -0.05227404087781906, -0.1440102458000183, 0.27472931146621704, 0.35178130865097046, 0.2674283981323242, 0.05778715759515762, 0.06527306139469147, 0.17255282402038574, -0.08678597211837769, 0.07063663005828857, 0.0760900229215622, 0.278464674949646, 0.07138413935899734, 0.18279549479484558, 0.02310684323310852, -0.2626298666000366, 0.0807795375585556, -0.2148333489894867, -0.3444226384162903, 0.09844861179590225, -0.15600226819515228, -0.16763822734355927, 0.35274386405944824, 0.16441623866558075, 0.01576410047709942, 0.11757452040910721, 0.2650126516819, 0.17031870782375336, -0.2612677216529846, -0.00737626850605011, 0.26718366146087646, -0.39000505208969116, 0.08278308063745499, -0.017627622932195663, 0.21477748453617096, 0.10070744901895523, -0.11565227061510086, 0.015130385756492615, 0.011944413185119629, -0.07023411989212036, 0.2585771679878235, -0.10314647853374481, 0.06135383993387222, -0.06543797254562378, 0.12738898396492004, -0.11366555839776993, -0.43190252780914307, -0.34629303216934204, -0.18626904487609863, -0.08306672424077988, -0.05146624520421028, 0.09867529571056366, -0.14156588912010193, 0.2587699890136719, -0.2901715636253357, 0.4998627305030823, 0.1378520131111145, -0.1223083883523941, 0.05624779313802719, -0.10478852689266205, -0.20427857339382172, -0.38984695076942444, 0.16274487972259521, -0.17156323790550232, -0.22739079594612122, 0.056845322251319885, 0.14829614758491516, 0.2534480094909668, -0.19292084872722626, 0.3209609091281891, 0.0439935177564621, 0.3377092778682709, -0.23989802598953247, -0.020297223702073097, -0.15138210356235504, 0.09569932520389557, -0.25279510021209717, -0.14424297213554382, 0.3993035852909088, 0.15225830674171448, -0.2794651985168457, -0.12076111882925034, -0.29087936878204346, -0.09816130995750427, 0.06357123702764511, 0.3042241930961609, 0.19315430521965027, -0.12083399295806885, -0.0907869040966034, -0.06646323949098587, -0.1280243843793869, 0.0355130210518837, -0.24326419830322266, -0.36629581451416016, 0.0017298832535743713, -0.13621419668197632, -0.02765238843858242, 0.42399999499320984, 0.33817026019096375, -0.11507338285446167, 0.2751123607158661, 0.08977184444665909, 0.1410280466079712, 0.036533284932374954, 0.2642420828342438, -0.1521853506565094, 0.2466391623020172, 0.0843038558959961, -0.4039280116558075, 0.1784980297088623, -0.149277925491333, 0.0273776613175869, -0.04468459635972977, -0.28918567299842834, 0.14762967824935913, 0.4765418767929077, 0.1127244085073471, 0.06760846078395844, 0.00035133957862854004, 0.1710054576396942, -0.09833628684282303, -0.3296818435192108, -0.21672260761260986, -0.16599920392036438, -0.11579079926013947, -0.07631126046180725, 0.04602047801017761, -0.26051175594329834, 0.16493138670921326, 0.319962739944458, 0.09541492909193039, 0.3073655366897583, 0.03643867373466492, -0.37037622928619385, -0.286563903093338, 0.03657718002796173, -0.14118269085884094, 0.10678054392337799, 0.3673751950263977, 0.1381215751171112, -0.1874130368232727, 0.024416938424110413, -0.09631970524787903, 0.08112020790576935, 0.038784414529800415, -0.13136467337608337, 0.29788899421691895, 0.2143736332654953, -0.07105322182178497, -0.38899052143096924, -0.04805533215403557, -0.2616290748119354, -0.1252618432044983, -0.18941494822502136, -0.16992390155792236, 0.05089002102613449, -0.1813041716814041, -0.03186839818954468, -0.034265968948602676, 0.10835756361484528, 0.11334745585918427, 0.3895041346549988, 0.11732573807239532, -0.3999074399471283, 0.1797206699848175, 0.18392939865589142, 0.5080799460411072, 0.10916522890329361, 0.15460878610610962, 0.08059628307819366, -0.07777338474988937, -0.0919911116361618, 0.2913900315761566, 0.12319391965866089, 0.38305121660232544, 0.31116148829460144, 0.02120392769575119, 0.08389350771903992, -0.2665735185146332, -0.1322413831949234, 0.2811563014984131, 0.0006730221211910248, 0.026417123153805733, 0.08687108010053635, 0.005113154649734497, -0.09701788425445557, -0.5676771402359009, 0.040191616863012314, 0.05890250951051712, -0.3106260895729065, 0.08043216168880463, -0.3058270215988159, 0.0023538172245025635, -0.12435759603977203, -0.408766508102417, -0.13884319365024567, -0.5071195960044861, 0.13505135476589203, -0.06545617431402206, 0.07822312414646149, 0.358989953994751, 0.038344793021678925, -0.005285732448101044, -0.41153284907341003, 0.44039809703826904, -0.4749498665332794, -0.23277723789215088, 0.19207200407981873, -0.3006744384765625, -0.26726654171943665, -0.4107072949409485, -0.15299758315086365, 0.3857607841491699, -0.008743010461330414, -0.26373374462127686, -0.23120680451393127, 0.11739400029182434, -0.3622099459171295, 0.28053009510040283, 0.0452265590429306, 0.21859976649284363, 0.18049828708171844, -0.3205748200416565, -0.08562298864126205, -0.0970151424407959, 0.22919431328773499, 0.35144349932670593, 0.2106758952140808, -0.15876738727092743, -0.1510632336139679, 0.0515112578868866, 0.6596429347991943, 0.26530301570892334, -0.046334266662597656, 0.16465654969215393, 0.06473661214113235, 0.2608805298805237, -0.2354831099510193, -0.0626235380768776, 0.3825436234474182, 0.11453362554311752, 0.04030334949493408, 0.38517430424690247, 0.14635683596134186, -0.5158945918083191, -0.08498242497444153, -0.11773081868886948, -0.1556795835494995, -0.515674889087677, 0.07703813910484314, 0.051236629486083984, 0.28920090198516846, 0.02020229399204254, 0.09600768983364105, -0.13640950620174408, -0.0753512978553772, 0.27060848474502563, -0.1662503480911255, 0.053201474249362946, -0.1563294529914856, -0.3569866120815277, 0.19282667338848114, -0.3096257746219635, 0.1451108157634735, 0.03519047424197197, 0.281807541847229, -0.3113688826560974, -0.27270686626434326, 0.005103759467601776, 0.17063313722610474, -0.004553347826004028, -0.3370816111564636, -0.025961611419916153, 0.17726460099220276, 0.58058762550354, -0.060157254338264465, 0.32230275869369507, -0.22472552955150604, -0.09710869193077087, -0.12709283828735352, 0.23095330595970154, -0.23276592791080475, 0.12016056478023529, 0.2408236861228943, 0.1516335904598236, 0.07048157602548599, 0.012606501579284668, 0.05312834680080414, -0.22528214752674103, -0.3000001907348633, 0.25982990860939026, -0.014792978763580322, -0.04538806155323982, 0.19739854335784912, -0.14884833991527557, 0.3768705725669861, 0.16423621773719788, 0.30331042408943176, 0.1985672563314438, 0.13965588808059692, 0.26557865738868713, 0.30344775319099426, 0.3211146891117096, 0.06754577159881592, 0.27505266666412354, 0.2089925855398178, 0.07721253484487534, -0.08825534582138062, 0.2361246943473816, -0.3833373486995697, 0.25607359409332275, 0.3136604428291321, 0.3866974115371704, 0.15110939741134644, 0.19603177905082703, 0.18021103739738464, -0.3111575245857239, 0.10823655128479004, 0.265310674905777, -0.032986193895339966, -0.2605949938297272, -0.13029706478118896, 0.14981231093406677, -0.15402734279632568, -0.14949563145637512, 0.09894488751888275, 0.29015862941741943, -0.13729283213615417, 0.5336740016937256, -0.06432515382766724, 0.9507260918617249, 0.1951875239610672, 0.1571330726146698, 0.2574385702610016, -0.11239004880189896, 0.052854932844638824, -0.21223576366901398, 0.09518139064311981, 0.18397203087806702, 0.18889842927455902, 0.07475104928016663, 0.12069012224674225, -0.13910266757011414, 0.31913432478904724, -0.3286881148815155, -0.1520944982767105, 0.009252563118934631, -0.32050174474716187, -0.05631856620311737, 0.1376410722732544, -0.05705221742391586, -0.4868887960910797, -0.0960368663072586, 0.30607542395591736, 0.08675354719161987, 0.1363818347454071, 0.32548704743385315, -0.1818288266658783, 0.059078559279441833, -0.20509865880012512, -0.21814990043640137, 0.08225046098232269, 0.1774628609418869, -0.278752863407135, 0.15945592522621155, -0.004683881998062134, 0.24163275957107544, -0.01033056154847145, 0.05410293489694595, 0.1990482211112976, -0.2447681725025177, 0.19221478700637817, 0.20504167675971985, 0.11638715863227844, -0.0005778782069683075, -0.19499118626117706, 0.3490408658981323, -0.1265225112438202, -0.17354199290275574, 0.06543490290641785, 0.14340528845787048, -0.10257282108068466, 0.03148603439331055, 0.009852098301053047, 0.24550861120224, -0.3871289789676666, 0.08510681241750717, 0.18619488179683685, -0.007739491760730743, -0.15455110371112823, 0.2613317668437958, 0.05240605026483536, -0.181907057762146, 0.29204583168029785, 0.02709398977458477, 0.028934702277183533, 0.007703335024416447, 0.2666412591934204, 0.10488201677799225, -0.3535732924938202, 0.2994667887687683, 0.18242938816547394, -0.21095150709152222, -0.506697416305542, -0.2706106901168823, 0.08785160630941391, -0.3795504570007324, -0.020159631967544556, 0.19092629849910736, -0.2806786000728607, 0.17579767107963562, 0.2780492603778839, -0.16818806529045105, -0.11934135854244232, -0.1902378797531128, 0.02994416654109955, -0.2940804958343506, 0.2687267065048218, 0.058398887515068054, 0.26253655552864075, 0.0017635971307754517, -0.044779758900403976, 0.07015935331583023, 0.07460866868495941, -0.5299800634384155, -0.23684516549110413, -0.22337347269058228, 0.381763219833374, 0.06954806298017502, -0.3550952076911926, 0.02951573207974434, -0.16853997111320496, 0.29335182905197144, -0.17394952476024628, -0.23764583468437195, -0.34378954768180847, -0.06502339243888855, 0.08907807618379593, -0.04366268590092659, 0.038256749510765076, 0.30399200320243835, 0.10523690283298492, -0.3430115878582001, -0.08548979461193085, 0.11549828946590424, 0.2060665637254715, -0.017600167542696, -0.2969789206981659, -0.15179644525051117, -0.09568765759468079, 0.048014163970947266, -0.15005294978618622, 0.0794995129108429, 0.02597453072667122, -0.021478425711393356, -0.08579295873641968, -0.22337263822555542, -0.27291762828826904, 0.41625842452049255, 0.3986455798149109, 0.4152447581291199, -0.17676472663879395, 0.19900430738925934, 0.14405259490013123, -0.14855319261550903, 0.4041215181350708, 0.20259498059749603, -0.1182122752070427, -0.16810902953147888, -0.0025393664836883545, 0.05607052519917488, 0.488100528717041, -0.2095869481563568, -0.017880260944366455, -0.024489402770996094, -0.2234376072883606, 0.27645590901374817, -0.032412245869636536, 0.07486030459403992, -0.1281510442495346, 0.24537286162376404, 0.06331530213356018, -0.2141120433807373, -0.3795655071735382, -0.021254288032650948, 0.019017057493329048, -0.006890535354614258, -0.19900530576705933, 0.12174825370311737, -0.11348316073417664, 0.3733063340187073, 0.1660667508840561, 0.002178940922021866, 0.18574422597885132, 0.3009990155696869, 0.18544931709766388, 0.21575260162353516, -0.14111721515655518, 0.12420760095119476, 0.16816920042037964, 0.1952771544456482, 0.3294019103050232, 0.18856370449066162, 0.396249920129776, -0.012253133580088615, -0.22579877078533173, -0.13303978741168976, 0.1126183420419693, 0.024620870128273964, -0.11747667193412781, -0.12270986288785934, -0.16703259944915771, -0.2310255616903305, -0.12882119417190552, 0.07170569151639938, 0.05246786028146744, 0.017436746507883072, -0.17320039868354797, 0.07354143261909485, -0.12672455608844757, -0.17242631316184998, -0.07220776379108429, 0.3806208372116089, -0.03992312774062157, 0.2863689959049225, 0.09733472764492035, -0.24252910912036896, 0.3057066798210144, 0.5310084223747253, 0.23545074462890625, -0.14893651008605957, -0.1419079601764679, 0.44826528429985046, -0.005117768421769142, -0.126188725233078, -0.23466582596302032, 0.24945560097694397, 0.3298393189907074, 0.1260560005903244, 0.21343784034252167, 0.290455162525177, -0.2884543240070343, -0.13671554625034332, -0.0896821916103363, 0.06126747280359268, 0.03878546506166458, -0.05373135209083557, -0.19535869359970093, 0.10524046421051025, -0.3420359194278717, -0.09358863532543182, -0.5006720423698425, -0.16058088839054108, 0.3524561822414398, -0.10845842957496643, 0.1393234133720398, -0.33622732758522034, 0.1592424064874649, -0.05359543859958649, 0.2731339633464813, 0.22389839589595795, 0.22699964046478271, 0.16135871410369873, -0.15165947377681732, -0.3478720784187317, 0.14945203065872192, 0.045943718403577805, 0.24280156195163727, -0.2687304615974426, 0.22551560401916504, 0.5764365196228027, 0.23080015182495117, -0.06252490729093552, -0.2525270879268646, -0.3594120740890503, 0.006311402656137943, -0.2845883071422577, 0.4158827066421509, -0.03917279094457626, 0.22701327502727509, 0.12656757235527039, -0.35621997714042664, -0.003125537186861038, 0.04977303743362427, 0.23787245154380798, -0.005322960205376148, -0.1950831115245819, -0.034219272434711456, -0.15222474932670593, 0.09261990338563919, -0.07557953894138336, 0.18289080262184143, -0.3984904885292053, -0.2850803732872009, -0.24299660325050354, -0.07215053588151932, -0.12997330725193024, -0.1531611531972885, 0.10151636600494385, 0.5446351170539856, -0.04090725630521774, 0.46708914637565613, 0.17621929943561554, 0.03772147372364998, 0.07359649240970612, 0.04404690861701965, -0.30123403668403625, 0.19264191389083862, -0.09475833177566528, 0.09758256375789642, -0.02106933295726776, 0.05366718769073486, -0.04681141674518585, -0.18187682330608368, -0.1926739364862442, -0.36504048109054565, 0.44770151376724243, -0.11268536746501923, -0.17747297883033752, -0.20302291214466095, 0.5088103413581848, -0.15826018154621124, 0.05123577266931534, -0.5335230827331543, 0.11686810851097107, 0.11822046339511871, -0.049562666565179825, -0.0047247931361198425, 0.07956872880458832, -0.003012724220752716, -0.22614945471286774, -0.21756747364997864, 0.3130680322647095, 0.22762563824653625, -0.09729406982660294, -0.07169685512781143, -0.3197171688079834 ]
https://github.com/huggingface/datasets/issues/1840
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.
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).
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.19141420722007751, -0.23302246630191803, -0.05791883543133736, -0.1640419065952301, 0.14640484750270844, -0.07734145224094391, 0.2238347828388214, 0.28073135018348694, -0.2090621441602707, 0.30717408657073975, -0.44875457882881165, 0.041479263454675674, -0.05049773305654526, -0.061811015009880066, 0.13374972343444824, -0.17996835708618164, -0.2989138066768646, 0.09284155815839767, 0.07319507002830505, -0.0893017053604126, 0.19162961840629578, 0.07035385817289352, 0.006779462099075317, 0.010302688926458359, -0.0648634284734726, -0.08363274484872818, 0.06589187681674957, -0.05853715166449547, 0.04358607530593872, -0.1326311081647873, -0.10193759948015213, 0.22079668939113617, -0.13196101784706116, 0.490903377532959, -0.0000958250675466843, -0.02987862378358841, 0.12395936250686646, -0.17157630622386932, -0.18750427663326263, -0.1483193188905716, -0.2629147171974182, 0.19997406005859375, -0.3399197459220886, 0.1386551856994629, -0.23242157697677612, -0.08417779207229614, 0.08358493447303772, -0.17362239956855774, 0.36701083183288574, 0.42264142632484436, 0.32148322463035583, 0.17549224197864532, -0.06860010325908661, 0.03312422335147858, 0.19890083372592926, 0.10556970536708832, -0.18644189834594727, 0.14507853984832764, 0.1981421411037445, -0.004716958850622177, -0.026942968368530273, 0.3730789124965668, 0.040143005549907684, -0.11042286455631256, -0.1406654566526413, 0.05418181046843529, -0.07116180658340454, -0.40517252683639526, 0.046637289226055145, 0.49606770277023315, 0.5813148617744446, -0.2943415641784668, -0.13199284672737122, -0.2549913823604584, 0.09393776953220367, -0.07445879280567169, -0.011960737407207489, 0.10402936488389969, -0.3731023371219635, 0.25261351466178894, 0.14004473388195038, -0.17295287549495697, -0.09266497194766998, 0.18064747750759125, 0.09820449352264404, 0.28733086585998535, -0.09023997187614441, -0.3477495014667511, 0.03502769023180008, -0.12978683412075043, -0.27824538946151733, 0.17417103052139282, 0.37455862760543823, 0.07190918922424316, -0.2025439739227295, -0.2045181691646576, 0.1722053587436676, -0.4943513870239258, 0.33736342191696167, -0.23384985327720642, 0.30884841084480286, 0.19370137155056, -0.27330467104911804, 0.1480511724948883, -0.09294912219047546, 0.14153939485549927, 0.03365955874323845, -0.2610834836959839, 0.4790058135986328, 0.07963145524263382, 0.10170446336269379, 0.08699002861976624, -0.03551745414733887, 0.09551124274730682, -0.16837719082832336, 0.008145429193973541, 0.11574400961399078, 0.12869665026664734, -0.27469730377197266, -0.024859357625246048, -0.07742231339216232, 0.03419039025902748, 0.10076220333576202, 0.31438320875167847, -0.1674359142780304, 0.24231098592281342, 0.012937396764755249, 0.1006358414888382, -0.08718693256378174, -0.4383671283721924, -0.11320139467716217, -0.09015060216188431, -0.04226528853178024, 0.22030183672904968, 0.2512872815132141, 0.008131768554449081, 0.17946863174438477, -0.03837069123983383, 0.36359527707099915, -0.044910527765750885, -0.05802905559539795, 0.1659001111984253, -0.11608801037073135, -0.00631747767329216, 0.1776338368654251, 0.10120653361082077, -0.09472058713436127, -0.05067146196961403, -0.15217025578022003, -0.08140135556459427, 0.006656646728515625, -0.2400236576795578, -0.2349161058664322, 0.3818751871585846, 0.2067500650882721, -0.09162068367004395, 0.17509980499744415, 0.4059944450855255, 0.020577363669872284, -0.11331090331077576, 0.057603053748607635, 0.2704983055591583, -0.3937547206878662, 0.0019519217312335968, 0.23531493544578552, 0.1386980414390564, -0.10300290584564209, -0.21271827816963196, -0.08870050311088562, 0.025946926325559616, -0.08997197449207306, 0.2812159061431885, -0.05472400411963463, 0.14735674858093262, -0.07837051153182983, 0.5168428421020508, 0.3876641094684601, -0.3474632501602173, -0.39298325777053833, 0.1568111628293991, -0.3701220750808716, -0.0025554001331329346, 0.11290322244167328, -0.03256042301654816, 0.23213577270507812, 0.005464024841785431, 0.30861586332321167, 0.27369439601898193, -0.06580445170402527, 0.2518995404243469, -0.25283941626548767, -0.27553534507751465, -0.11300396919250488, 0.22014804184436798, -0.20392060279846191, -0.04755054786801338, -0.021995168179273605, 0.011440776288509369, 0.33050328493118286, -0.2774732708930969, 0.22741937637329102, 0.13726383447647095, 0.36578866839408875, 0.08011758327484131, 0.03492984548211098, -0.17511022090911865, -0.047208692878484726, -0.07068515568971634, -0.04694028198719025, 0.262759268283844, -0.11961919069290161, -0.5422859787940979, -0.32344865798950195, -0.29061102867126465, -0.07412493228912354, 0.06788287311792374, 0.35333073139190674, 0.20434001088142395, 0.12405530363321304, 0.09032749384641647, -0.1320173591375351, 0.1620313823223114, -0.015211537480354309, 0.019896235316991806, 0.07437629997730255, 0.09135531634092331, -0.23566347360610962, 0.006216447800397873, 0.26392170786857605, 0.1740456074476242, -0.10942648351192474, -0.04701940342783928, 0.012195158749818802, 0.4601743519306183, -0.34915345907211304, 0.4136951267719269, -0.07079706341028214, 0.28185397386550903, 0.23625563085079193, -0.27046531438827515, 0.093208909034729, 0.23708800971508026, 0.03082076460123062, -0.0098862424492836, 0.19477123022079468, 0.02040201798081398, 0.43689319491386414, -0.18290528655052185, 0.2546638250350952, -0.016099806874990463, 0.30137643218040466, -0.07862680405378342, -0.10484222322702408, -0.0826985314488411, -0.027450580149888992, -0.07762501388788223, 0.15357466042041779, -0.16326776146888733, -0.5607644319534302, 0.21254467964172363, 0.5365676879882812, -0.15903909504413605, 0.39758145809173584, 0.2310607135295868, -0.37887462973594666, -0.03402520716190338, 0.041758857667446136, -0.18181930482387543, 0.05794857442378998, 0.3344874978065491, 0.22488254308700562, 0.050894901156425476, -0.026341654360294342, -0.20146605372428894, 0.12717457115650177, -0.05369943380355835, -0.2016317993402481, 0.39899176359176636, 0.1725074052810669, -0.010492010042071342, -0.5637577772140503, -0.1607818603515625, -0.12864626944065094, -0.09806329011917114, -0.2647342383861542, -0.15714631974697113, -0.1429147869348526, -0.4420362710952759, -0.1284155398607254, 0.038953524082899094, -0.13040626049041748, -0.11477416753768921, 0.4792996346950531, 0.31626880168914795, -0.06808695197105408, 0.20696115493774414, 0.03798322379589081, 0.38995060324668884, 0.08941343426704407, -0.027965355664491653, 0.0022466853260993958, -0.056150972843170166, -0.1687341034412384, 0.26362472772598267, 0.054025717079639435, -0.12383870780467987, 0.22939853370189667, -0.04529818519949913, 0.14930495619773865, -0.03344356641173363, -0.3091452717781067, 0.30053138732910156, -0.16553501784801483, -0.3047589361667633, -0.12069696933031082, 0.07273150235414505, 0.15899670124053955, -0.3374805152416229, -0.010549075901508331, -0.15801817178726196, -0.2190055549144745, -0.03412787616252899, 0.022927165031433105, -0.013108888640999794, -0.3320544362068176, -0.45060592889785767, -0.20568136870861053, -0.5207066535949707, 0.11988964676856995, -0.2591116726398468, 0.11618372797966003, 0.11220346391201019, -0.22332505881786346, 0.1942959725856781, -0.1867550015449524, 0.4712708592414856, -0.3216317296028137, -0.1863490641117096, 0.3625207841396332, -0.36882904171943665, -0.3724725842475891, -0.16738393902778625, -0.06067619472742081, 0.35321059823036194, -0.0775347352027893, -0.21527424454689026, -0.11164833605289459, -0.08154654502868652, 0.16899143159389496, -0.047310248017311096, 0.0326157882809639, 0.1993015557527542, 0.15910057723522186, -0.25225427746772766, -0.17295199632644653, 0.051959775388240814, 0.05568639561533928, 0.21034742891788483, 0.01034456491470337, 0.011893901973962784, 0.07780063897371292, 0.22787190973758698, 0.7560040950775146, 0.0810779333114624, -0.07607186585664749, 0.1922338306903839, -0.24191059172153473, 0.07154408097267151, 0.09795114398002625, -0.05802186578512192, 0.341195672750473, 0.1354030817747116, 0.19902971386909485, 0.5835258960723877, 0.1346818506717682, -0.10795879364013672, -0.09354398399591446, 0.01940666139125824, -0.301547646522522, -0.40966156125068665, 0.019702160730957985, -0.06512978672981262, 0.14747843146324158, -0.014564670622348785, -0.021040022373199463, -0.014076251536607742, -0.020469455048441887, 0.45381224155426025, 0.13233426213264465, -0.1864849179983139, -0.17997603118419647, 0.21314363181591034, 0.14758192002773285, -0.31764715909957886, 0.13307544589042664, 0.2769826650619507, 0.002300769090652466, -0.24785923957824707, -0.2487753927707672, -0.11710307747125626, 0.1313938945531845, 0.2856898903846741, -0.13991954922676086, -0.12060694396495819, -0.15985655784606934, 0.234841451048851, -0.003514297306537628, 0.3497113585472107, -0.13706201314926147, -0.30631405115127563, 0.12639778852462769, -0.006239715963602066, -0.32530730962753296, -0.015770111232995987, -0.1843082308769226, 0.07753583788871765, -0.09265542775392532, -0.01582200452685356, -0.004391506314277649, -0.26534855365753174, -0.23054829239845276, 0.017184339463710785, 0.08674396574497223, 0.005558539181947708, -0.051126472651958466, -0.14438289403915405, 0.4201827943325043, -0.2546161115169525, 0.32205894589424133, 0.22042399644851685, -0.08597362041473389, 0.24817168712615967, 0.07314830273389816, 0.1424103081226349, 0.1460680067539215, 0.01638687588274479, 0.1482812762260437, 0.2338845282793045, -0.2542990446090698, -0.2496320903301239, -0.1874733567237854, 0.1962055116891861, 0.11799544095993042, 0.19184261560440063, 0.06964868307113647, 0.007057683542370796, 0.17856986820697784, -0.13864155113697052, 0.25520429015159607, 0.2867582142353058, 0.12823382019996643, -0.08002503961324692, -0.25558552145957947, 0.19261972606182098, -0.1053227037191391, -0.10155506432056427, 0.2771304249763489, 0.02409554272890091, -0.3037807047367096, -0.07060254365205765, -0.28821226954460144, 1.0026524066925049, 0.11834356188774109, 0.19081108272075653, 0.3410578966140747, 0.07266494631767273, 0.1709723323583603, -0.4545091390609741, 0.20867513120174408, 0.16320480406284332, -0.1537920981645584, -0.05465425178408623, 0.14201202988624573, -0.2863588333129883, 0.12683923542499542, -0.3761081099510193, -0.0616791732609272, -0.021405331790447235, 0.0627400353550911, 0.13250736892223358, 0.4239198863506317, -0.15108799934387207, -0.47886431217193604, -0.3154269754886627, 0.2642376124858856, -0.0867285281419754, 0.23626506328582764, 0.2626684904098511, -0.25299009680747986, -0.11492867022752762, -0.0637134537100792, -0.15414389967918396, 0.29178762435913086, -0.2924608588218689, -0.049343787133693695, -0.20721255242824554, 0.09981326758861542, 0.24203738570213318, 0.17412786185741425, 0.23200692236423492, 0.13933226466178894, -0.30674871802330017, 0.1588183343410492, 0.19394725561141968, 0.144084170460701, -0.09950011968612671, 0.05913855507969856, 0.3088836371898651, -0.2716981768608093, -0.16983577609062195, 0.2394302785396576, 0.25706586241722107, -0.06989523768424988, -0.26733505725860596, -0.3158336281776428, -0.003501400351524353, -0.09664535522460938, 0.31009021401405334, 0.3235730826854706, -0.15490880608558655, -0.10275528579950333, 0.26445457339286804, 0.020973995327949524, -0.281541109085083, -0.11086253821849823, 0.2335282415151596, 0.03277565538883209, -0.15012633800506592, 0.2513994574546814, 0.06102418154478073, -0.009882710874080658, 0.24717935919761658, 0.02418603003025055, -0.19096478819847107, -0.36685308814048767, -0.2549314498901367, -0.23068082332611084, -0.1314147263765335, -0.130653977394104, -0.13456273078918457, -0.20673726499080658, -0.2458793818950653, 0.15646950900554657, -0.144266277551651, 0.1952608823776245, -0.08517751842737198, 0.0032717734575271606, -0.36731988191604614, 0.061811260879039764, 0.19463610649108887, 0.13362491130828857, -0.11246664822101593, 0.31034889817237854, 0.07744001597166061, 0.0023239515721797943, -0.5247673392295837, -0.20344343781471252, 0.04916518181562424, -0.03546006977558136, 0.32344406843185425, -0.19276374578475952, 0.40319496393203735, 0.012477800250053406, 0.32581013441085815, 0.04869263619184494, -0.07744786143302917, -0.37932223081588745, -0.2583361268043518, 0.07953255623579025, 0.23769962787628174, -0.018728429451584816, 0.07884327322244644, 0.06484512239694595, -0.14208370447158813, -0.016444530338048935, 0.3288494944572449, 0.07249245047569275, 0.007933424785733223, 0.09021804481744766, -0.08632481098175049, 0.055241942405700684, 0.09650641679763794, -0.1942552626132965, -0.05032331869006157, 0.2289918065071106, 0.1543939709663391, 0.02421066164970398, -0.12392130494117737, -0.24028770625591278, -0.1021338403224945, 0.19742977619171143, 0.3567434847354889, -0.08043469488620758, 0.23299629986286163, 0.00979687087237835, -0.1402049958705902, 0.12930472195148468, 0.3861316442489624, -0.09116871654987335, -0.24123315513134003, -0.12753011286258698, 0.25369587540626526, 0.4083324074745178, -0.21388551592826843, 0.1225513368844986, -0.06038631871342659, -0.32917681336402893, 0.36805328726768494, 0.17950281500816345, -0.13028199970722198, 0.20728996396064758, 0.04379092901945114, -0.031670428812503815, -0.121708445250988, -0.11714605987071991, 0.06134284287691116, 0.11343242228031158, -0.048174284398555756, 0.005647436715662479, 0.009660810232162476, -0.027804668992757797, 0.3023860454559326, 0.06773300468921661, -0.35837650299072266, 0.20189262926578522, 0.039966512471437454, -0.08621744811534882, 0.40243566036224365, 0.07038858532905579, -0.07352349907159805, 0.015338554978370667, -0.13961103558540344, 0.21650436520576477, 0.10230578482151031, 0.45891568064689636, -0.1830163449048996, -0.019577477127313614, 0.028138205409049988, 0.3724355101585388, 0.033343542367219925, -0.04429014399647713, -0.26140472292900085, -0.04734200984239578, -0.23035207390785217, -0.16367781162261963, 0.2782406806945801, -0.07065683603286743, 0.04117443040013313, 0.03633680194616318, -0.04969314858317375, -0.17573651671409607, -0.017737386748194695, 0.04396183416247368, 0.46657758951187134, -0.08180150389671326, 0.10765799134969711, 0.007829926908016205, -0.2480558604001999, 0.1456407904624939, 0.2919995188713074, 0.09385080635547638, -0.07347705960273743, -0.20896168053150177, 0.3558447062969208, -0.07808714359998703, -0.07678280770778656, -0.11041559278964996, 0.055546555668115616, 0.2791465222835541, 0.11994437128305435, 0.21188496053218842, 0.2674849033355713, -0.3482513427734375, -0.10668917000293732, 0.018400203436613083, -0.01976829767227173, -0.08932062983512878, 0.15952298045158386, -0.10012874007225037, 0.030762717127799988, -0.365595281124115, -0.25461718440055847, -0.5871138572692871, -0.02984612062573433, 0.3238988518714905, -0.1353871077299118, 0.1393849402666092, -0.35213449597358704, 0.17496880888938904, 0.05433104932308197, 0.2641289234161377, 0.2829345464706421, 0.049221884459257126, 0.3644106984138489, -0.06164582073688507, -0.4385339617729187, 0.25956279039382935, 0.23885869979858398, -0.09727637469768524, -0.3690240681171417, 0.02334844321012497, 0.2873702645301819, 0.14676529169082642, -0.010103777050971985, -0.2942482829093933, -0.2715739607810974, -0.2155800312757492, -0.1658017784357071, 0.1621248424053192, -0.3059235215187073, 0.2832654118537903, 0.2129465639591217, -0.3117228150367737, 0.06711156666278839, -0.07842409610748291, 0.24113181233406067, -0.046023380011320114, 0.1796017438173294, -0.17867319285869598, -0.3356565237045288, 0.24017563462257385, -0.12344884872436523, 0.24309757351875305, -0.3953341841697693, -0.20576699078083038, 0.13904984295368195, -0.005031280219554901, -0.21321213245391846, -0.057772111147642136, 0.11268164217472076, 0.33331298828125, 0.07565948367118835, -0.08009667694568634, -0.23068226873874664, 0.1676313430070877, 0.18346548080444336, -0.1587754338979721, -0.010084979236125946, 0.09718329459428787, -0.02293480932712555, -0.03814787417650223, 0.08628776669502258, 0.16101868450641632, -0.2550325393676758, -0.06843321025371552, -0.1331649273633957, -0.547457754611969, 0.2972135543823242, -0.18074122071266174, -0.11779773980379105, -0.11959801614284515, 0.34742265939712524, 0.021324973553419113, 0.05120893567800522, -0.34892258048057556, 0.1687338948249817, 0.2328532338142395, 0.03474780172109604, -0.19495710730552673, 0.15635530650615692, 0.009338971227407455, -0.2200103998184204, -0.1283111572265625, 0.409803569316864, 0.22525648772716522, -0.09016238898038864, 0.09762586653232574, -0.35634714365005493 ]
https://github.com/huggingface/datasets/issues/1840
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
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).
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.13444727659225464, -0.222856342792511, 0.00019294768571853638, -0.15788564085960388, 0.19370651245117188, 0.004948429763317108, 0.2681257426738739, 0.3020457327365875, -0.24950067698955536, 0.17952263355255127, -0.39550191164016724, 0.23003500699996948, -0.04257709160447121, -0.026486150920391083, 0.00670957937836647, -0.1008290946483612, -0.1025349497795105, 0.15952520072460175, 0.1041879877448082, -0.248020738363266, 0.1949148178100586, 0.06684695929288864, 0.11330625414848328, -0.0790025144815445, -0.3241569995880127, -0.16444560885429382, 0.02310480922460556, -0.14355649054050446, -0.00032603368163108826, -0.1549275815486908, -0.04535488039255142, 0.2715560793876648, -0.21029876172542572, 0.6402716636657715, -0.00010049114644061774, -0.044437043368816376, 0.034191928803920746, -0.24572136998176575, -0.08318980038166046, -0.1936044543981552, -0.11551891267299652, 0.10766572505235672, -0.2947712540626526, 0.11475314199924469, -0.29591652750968933, -0.2513290345668793, -0.018147161230444908, -0.23231790959835052, 0.30751413106918335, 0.3086760640144348, 0.27403122186660767, 0.07917720824480057, 0.0037062764167785645, 0.10204994678497314, 0.1946553736925125, 0.15001678466796875, -0.22054997086524963, 0.17141903936862946, 0.3242519497871399, -0.13661053776741028, -0.0471709705889225, 0.4662684500217438, 0.09553913027048111, -0.2063768208026886, 0.07212299108505249, 0.03368544578552246, -0.14084817469120026, -0.43908920884132385, 0.0748790055513382, 0.49494343996047974, 0.5199843049049377, -0.42640843987464905, -0.36177384853363037, -0.3173404335975647, 0.10820218920707703, -0.2514175772666931, 0.10102969408035278, -0.11797504872083664, -0.25573936104774475, 0.22391320765018463, 0.10838700085878372, -0.1283467411994934, -0.04898735135793686, 0.08111699670553207, 0.12946894764900208, 0.4218023717403412, 0.031773824244737625, -0.25749072432518005, -0.08358514308929443, -0.1344357281923294, -0.40912124514579773, 0.2767672538757324, 0.2451605349779129, 0.2131907343864441, -0.29559507966041565, -0.16371718049049377, 0.21937395632266998, -0.575283408164978, 0.2983843684196472, -0.14189285039901733, 0.20433662831783295, 0.17898385226726532, -0.3365131616592407, 0.11850157380104065, -0.07308098673820496, 0.13830143213272095, 0.12299586832523346, -0.18102575838565826, 0.2307826578617096, -0.07752302289009094, -0.05081852152943611, 0.02566090226173401, -0.03548412770032883, 0.11081187427043915, -0.07373343408107758, 0.009948529303073883, 0.1576348841190338, 0.0028996914625167847, -0.2117079198360443, 0.1503162384033203, -0.19717442989349365, -0.01343432068824768, 0.02162082865834236, 0.294563353061676, -0.15806657075881958, 0.3248327970504761, -0.03216950222849846, 0.0962950810790062, 0.04611623287200928, -0.16754262149333954, -0.11636287719011307, -0.10513392090797424, -0.05985744670033455, 0.17833705246448517, 0.289933443069458, -0.23062697052955627, 0.24745136499404907, 0.09061581641435623, 0.21510536968708038, 0.02398928999900818, -0.1130206286907196, 0.14889605343341827, 0.03521174192428589, 0.013094810768961906, -0.05303996056318283, 0.1488322913646698, -0.016197968274354935, -0.04610418900847435, -0.11226902157068253, -0.14885243773460388, 0.1025855541229248, -0.09914399683475494, -0.40223264694213867, 0.33751380443573, 0.10656386613845825, -0.0816785991191864, 0.3401317894458771, 0.397325336933136, 0.18109005689620972, -0.2607652544975281, 0.08631604164838791, 0.20446279644966125, -0.40285611152648926, -0.1337231993675232, 0.29882630705833435, 0.04281265661120415, -0.2501436173915863, -0.12954555451869965, -0.003745071589946747, 0.06622333079576492, -0.04455665871500969, 0.2206290066242218, 0.05884106084704399, 0.06576940417289734, -0.08018836379051208, 0.4227001667022705, 0.29065224528312683, -0.2918368875980377, -0.3610621690750122, 0.167782723903656, -0.23687058687210083, 0.14163357019424438, 0.1983560025691986, -0.10596367716789246, 0.20487837493419647, -0.004846148192882538, 0.506551206111908, 0.21914345026016235, -0.2216196209192276, 0.05962107330560684, -0.2887994349002838, -0.15315917134284973, 0.08183430135250092, 0.09171846508979797, -0.13946101069450378, -0.06966584920883179, -0.15320169925689697, -0.11089126765727997, 0.2634885609149933, -0.20501887798309326, 0.17995260655879974, 0.1328164041042328, 0.49781355261802673, 0.11841069906949997, 0.10319504141807556, -0.20386463403701782, -0.18841981887817383, 0.010055862367153168, 0.005453683435916901, 0.314254492521286, -0.08591713011264801, -0.5233684778213501, -0.29343557357788086, -0.3056117594242096, -0.12412822246551514, 0.010428998619318008, 0.3078225255012512, 0.262529581785202, 0.025666527450084686, 0.020396851003170013, -0.2492908537387848, 0.1213696226477623, 0.011215537786483765, 0.07952733337879181, 0.02301616221666336, 0.08978394418954849, -0.2401883900165558, -0.16040652990341187, 0.22886264324188232, 0.34558069705963135, -0.15916578471660614, -0.06027304381132126, -0.05895067751407623, 0.3045245409011841, -0.3686720132827759, 0.335265189409256, -0.0782305896282196, 0.356992244720459, 0.1849016547203064, -0.17017604410648346, 0.02010463736951351, 0.19424653053283691, 0.07412056624889374, -0.1760629415512085, 0.11428402364253998, 0.10503934323787689, 0.33724653720855713, -0.14759106934070587, 0.08756522834300995, -0.16004502773284912, 0.30910465121269226, 0.010209493339061737, -0.09800925850868225, -0.06314118951559067, -0.0762404054403305, -0.18100032210350037, 0.21614155173301697, -0.015531787648797035, -0.6039137840270996, 0.21933791041374207, 0.6066969037055969, -0.05026458203792572, 0.26645752787590027, 0.18905861675739288, -0.30528566241264343, 0.009106084704399109, 0.09645868837833405, -0.23719272017478943, 0.07765840739011765, 0.26823991537094116, 0.16865593194961548, 0.03856320679187775, -0.032551564276218414, -0.13287553191184998, 0.02877674251794815, -0.061764609068632126, -0.048239849507808685, 0.5199929475784302, 0.23964843153953552, 0.12906213104724884, -0.4704147279262543, -0.20760291814804077, -0.10374134033918381, 0.08200883120298386, -0.26977023482322693, -0.1634816825389862, -0.07283486425876617, -0.37107229232788086, -0.05085478723049164, -0.050670407712459564, -0.34086811542510986, -0.12550058960914612, 0.3960852324962616, 0.32985374331474304, 0.008716307580471039, 0.40969425439834595, 0.05115445703268051, 0.15715329349040985, 0.06009828299283981, -0.12926191091537476, -0.07130028307437897, -0.0899614542722702, -0.1671464741230011, 0.2367100864648819, 0.14320263266563416, -0.19590507447719574, 0.23391467332839966, -0.005052804946899414, 0.12643525004386902, 0.03593587875366211, -0.4879770576953888, 0.1857515573501587, -0.40267515182495117, -0.22737686336040497, 0.005752433091402054, 0.00002841651439666748, 0.08938460052013397, -0.4461909532546997, 0.0706716924905777, -0.27567392587661743, -0.21094529330730438, -0.09130392968654633, -0.17451493442058563, 0.0008464530110359192, -0.3001881539821625, -0.5085432529449463, -0.12444887310266495, -0.5271833539009094, 0.1792958378791809, -0.281921923160553, 0.11613151431083679, 0.277988076210022, -0.1688765585422516, 0.10679085552692413, -0.2514389753341675, 0.4454711973667145, -0.3080192804336548, -0.22585058212280273, 0.22663399577140808, -0.1953064352273941, -0.30691811442375183, 0.03141412138938904, -0.15082161128520966, 0.530336320400238, -0.01593603380024433, -0.08824083209037781, -0.1784493327140808, -0.02838081121444702, 0.2868049144744873, -0.03142593801021576, 0.06839516013860703, 0.23626188933849335, 0.2672896385192871, -0.20330774784088135, -0.1630728542804718, -0.13078628480434418, 0.023408280685544014, 0.19730617105960846, 0.07845737040042877, -0.014975365251302719, 0.1801188439130783, 0.13507907092571259, 0.8288180232048035, 0.06008830666542053, -0.24521152675151825, 0.27925825119018555, -0.2965869605541229, 0.24241110682487488, 0.012059144675731659, -0.2315933257341385, 0.3489260971546173, 0.13632938265800476, 0.18739235401153564, 0.48026731610298157, 0.08529633283615112, -0.014055408537387848, -0.09350322186946869, 0.09538964927196503, -0.3411555886268616, -0.309034526348114, 0.2123466432094574, -0.13604798913002014, 0.13840432465076447, 0.021422363817691803, 0.06572514772415161, -0.19595244526863098, -0.10944300889968872, 0.36814871430397034, 0.1309853494167328, -0.06330367177724838, -0.1535942107439041, 0.14432229101657867, -0.01491725817322731, -0.3111482858657837, 0.043271951377391815, 0.2908512353897095, 0.1650206297636032, -0.3033662438392639, -0.1587880700826645, -0.20497211813926697, 0.20937657356262207, 0.25483426451683044, -0.20755338668823242, -0.17398715019226074, 0.1600531041622162, 0.24650253355503082, 0.01900777965784073, 0.27263909578323364, -0.09692481905221939, -0.1166563481092453, 0.1592397391796112, 0.16345003247261047, -0.3500538468360901, -0.05767936632037163, -0.2100786417722702, 0.23656295239925385, -0.0404832661151886, 0.0786975547671318, -0.048906780779361725, -0.21199876070022583, -0.269286185503006, -0.030338473618030548, 0.09344581514596939, -0.02162862941622734, -0.016563693061470985, -0.01746314764022827, 0.38132530450820923, -0.2355319857597351, 0.4151548743247986, 0.30843237042427063, 0.009539391845464706, 0.2811661958694458, 0.2500530481338501, 0.1180642694234848, 0.22237734496593475, 0.023210925981402397, 0.31184884905815125, 0.11292460560798645, -0.21612200140953064, -0.18791016936302185, -0.1973954141139984, 0.44517219066619873, 0.11900696158409119, 0.2169220745563507, 0.08251643180847168, -0.07614696025848389, 0.029180360957980156, -0.1812075674533844, 0.3324916958808899, 0.30719709396362305, 0.22143666446208954, -0.18135342001914978, -0.2902565598487854, 0.1426408290863037, -0.006095658987760544, -0.17870782315731049, 0.370826780796051, -0.01133091002702713, -0.3125835657119751, 0.12018280476331711, -0.3805451989173889, 1.0539367198944092, 0.10600551962852478, 0.17056331038475037, 0.3440304398536682, 0.1708267331123352, 0.21443365514278412, -0.4325196146965027, 0.14121577143669128, 0.06228874623775482, -0.2115292251110077, 0.0575009286403656, 0.166216641664505, -0.18852362036705017, 0.03317013382911682, -0.36312299966812134, 0.06026599183678627, 0.015908539295196533, 0.060248371213674545, 0.13082240521907806, 0.3993851840496063, -0.06641793251037598, -0.4873318374156952, -0.2496805042028427, 0.19656974077224731, -0.12725934386253357, 0.2601579427719116, 0.17860928177833557, -0.24985381960868835, -0.28136369585990906, -0.08410686254501343, -0.2218988984823227, 0.20950371026992798, -0.2499837875366211, -0.21657779812812805, -0.0586407408118248, 0.0542164146900177, 0.2628609836101532, 0.023547418415546417, 0.2635432481765747, 0.13672494888305664, -0.2656129002571106, 0.1696123480796814, 0.20357660949230194, 0.14257541298866272, -0.039537589997053146, 0.10316149890422821, 0.4867223799228668, -0.2618871331214905, -0.18681930005550385, 0.14631110429763794, 0.09677506983280182, -0.008074767887592316, -0.36744964122772217, -0.3758533298969269, 0.06263894587755203, -0.2191752791404724, 0.38164788484573364, 0.23621879518032074, -0.0746135413646698, -0.12784376740455627, 0.24537056684494019, 0.1814095824956894, -0.39470404386520386, 0.012283362448215485, 0.12933069467544556, 0.06214280426502228, -0.15878133475780487, 0.16833755373954773, 0.11270367354154587, -0.04960905760526657, 0.30671554803848267, 0.12754830718040466, -0.05753500014543533, -0.3017159402370453, -0.3166987895965576, 0.023554161190986633, -0.2233230322599411, -0.335182785987854, 0.010590150952339172, -0.31369349360466003, -0.1052810400724411, 0.266818642616272, 0.06110570952296257, 0.18556377291679382, 0.007017292082309723, -0.05538193881511688, -0.5129720568656921, 0.10316368192434311, 0.08678743988275528, 0.15300700068473816, -0.21432346105575562, 0.33227628469467163, 0.10865191370248795, 0.16538919508457184, -0.5192533731460571, -0.24624235928058624, 0.03329053521156311, 0.19248512387275696, 0.1842329502105713, -0.27023807168006897, 0.3270453214645386, -0.11535787582397461, 0.3327234387397766, 0.03619367256760597, -0.030536411330103874, -0.31458133459091187, -0.20677615702152252, 0.07174991071224213, 0.20165953040122986, -0.004105653613805771, 0.14886897802352905, 0.1970040649175644, -0.2191009223461151, -0.14338207244873047, 0.23317430913448334, 0.060771092772483826, -0.01006946712732315, 0.1859634518623352, 0.005492237396538258, 0.08294178545475006, 0.2363806962966919, -0.3351300358772278, 0.07736354321241379, 0.1577957272529602, 0.12530072033405304, -0.02042696438729763, -0.22572585940361023, -0.22163863480091095, 0.0209905207157135, 0.1940125823020935, 0.1762094795703888, -0.08129877597093582, 0.21194233000278473, -0.012676838785409927, -0.13161388039588928, 0.24304679036140442, 0.49362558126449585, 0.03720765560865402, -0.10534267127513885, -0.017730645835399628, 0.3020397424697876, 0.3756217658519745, -0.3024635910987854, 0.1557869017124176, 0.11947532743215561, -0.18147757649421692, 0.3449592590332031, 0.11649022996425629, -0.0015551522374153137, 0.12042015790939331, -0.046392980962991714, -0.026950296014547348, -0.055505380034446716, -0.23702099919319153, 0.029638689011335373, 0.030387746170163155, -0.053654745221138, 0.026065770536661148, 0.10193969309329987, -0.008862733840942383, 0.31654125452041626, 0.20173610746860504, -0.2197793424129486, 0.35012418031692505, 0.11471828818321228, -0.15322235226631165, 0.4321584403514862, -0.05663245916366577, 0.0155754704028368, 0.033112283796072006, -0.0650247186422348, 0.21848170459270477, 0.0824347585439682, 0.5198343992233276, -0.18197685480117798, -0.2765979468822479, 0.15746939182281494, 0.3043009340763092, -0.06080479547381401, -0.05194848030805588, -0.13808777928352356, -0.02865387499332428, -0.12118526548147202, -0.28101396560668945, 0.21425946056842804, -0.03455625846982002, 0.13609714806079865, -0.0227322019636631, -0.11950615048408508, -0.09476050734519958, -0.2054435759782791, 0.0951794907450676, 0.5703052878379822, -0.04886331409215927, 0.22979837656021118, 0.09430330991744995, -0.3598144054412842, 0.10324262082576752, 0.3485672175884247, 0.2855008840560913, -0.11418059468269348, -0.17025285959243774, 0.45187798142433167, -0.1236325353384018, -0.051849525421857834, -0.08539418131113052, 0.1682271659374237, 0.24829235672950745, 0.0372164361178875, 0.0963401198387146, 0.23968291282653809, -0.2887352406978607, -0.18794019520282745, 0.016346098855137825, 0.014205634593963623, -0.052393652498722076, 0.1453014314174652, -0.18795961141586304, -0.1568940281867981, -0.35509634017944336, -0.10935546457767487, -0.5188397765159607, -0.126915842294693, 0.45776766538619995, 0.0951123982667923, 0.14408960938453674, -0.35248345136642456, 0.15030726790428162, 0.07764934748411179, 0.16505897045135498, 0.3841644823551178, 0.10569020360708237, 0.2553607225418091, 0.012490272521972656, -0.49825870990753174, 0.27321892976760864, 0.17420721054077148, -0.07872899621725082, -0.3084371089935303, -0.020290281623601913, 0.3806377053260803, 0.06946280598640442, 0.0583566278219223, -0.2635866403579712, -0.1606089472770691, -0.31069740653038025, -0.2541220784187317, -0.012029403820633888, -0.34385550022125244, 0.15056723356246948, 0.22030554711818695, -0.19606085121631622, 0.012534506618976593, -0.27327799797058105, 0.24780544638633728, -0.1533522754907608, 0.0855225920677185, -0.05753288045525551, -0.17119833827018738, 0.2229478657245636, -0.04617123305797577, 0.27968794107437134, -0.3314434289932251, -0.24111004173755646, -0.007700681686401367, -0.14235834777355194, -0.3083873987197876, 0.12256370484828949, 0.07038860768079758, 0.5162590146064758, 0.05529921501874924, -0.13878092169761658, -0.26119205355644226, 0.1268996000289917, 0.14181049168109894, -0.24113667011260986, -0.11241509020328522, 0.3134898245334625, -0.021800294518470764, 0.0789322704076767, 0.11398258805274963, 0.26458805799484253, -0.1810566484928131, -0.02355678752064705, -0.2825872302055359, -0.5902606248855591, 0.4051390290260315, -0.264981210231781, -0.2718053460121155, -0.22904406487941742, 0.2613844573497772, 0.04917280375957489, 0.03271777182817459, -0.5370392203330994, 0.11342930793762207, 0.2650885581970215, 0.10484986007213593, -0.23215147852897644, 0.035014424473047256, -0.01135878637433052, -0.2713632881641388, -0.0993940606713295, 0.29484859108924866, 0.09603182971477509, -0.053182944655418396, 0.107333242893219, -0.2708473801612854 ]
https://github.com/huggingface/datasets/issues/1840
I saw that this current datasets package holds common voice version 6.1, how to add the new version 7.0 that is already available?
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).
23
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 saw that this current datasets package holds common voice version 6.1, how to add the new version 7.0 that is already available?
[ -0.358308345079422, -0.3505196273326874, -0.012085653841495514, -0.2336001694202423, -0.4511425495147705, 0.06780560314655304, -0.03324476629495621, 0.5403197407722473, -0.1008654236793518, 0.08199597895145416, -0.22267140448093414, 0.2464449405670166, -0.2389799952507019, 0.06251918524503708, -0.09577328711748123, -0.25830501317977905, 0.1143464595079422, 0.15225718915462494, 0.19452691078186035, -0.17079122364521027, -0.12377230077981949, 0.10815619677305222, -0.07173484563827515, -0.09809066355228424, -0.04893064126372337, -0.3299817442893982, -0.06955334544181824, -0.23475593328475952, -0.26841965317726135, -0.242832750082016, 0.07875956594944, 0.395126610994339, 0.22163130342960358, 0.6137537956237793, -0.00011295992590021342, 0.03698413074016571, 0.22483715415000916, -0.005324352532625198, -0.031853631138801575, -0.40361469984054565, -0.3523942530155182, -0.038722045719623566, -0.4229103922843933, 0.27639347314834595, 0.030371777713298798, -0.2925681173801422, 0.07658635079860687, -0.23291772603988647, 0.2964344620704651, 0.43242377042770386, 0.1952522248029709, -0.006009332835674286, -0.0025334134697914124, -0.039226263761520386, -0.05915921926498413, -0.0488494411110878, -0.2672988772392273, 0.10513368248939514, 0.29060274362564087, 0.12020067125558853, 0.08843740820884705, 0.32854151725769043, 0.059757620096206665, -0.22255688905715942, -0.09126744419336319, -0.03359944745898247, 0.12421006709337234, -0.3518330454826355, 0.1870642602443695, 0.525444507598877, 0.8187971711158752, -0.1758558452129364, -0.5179089903831482, 0.052990272641181946, 0.22564905881881714, -0.5650975108146667, 0.06290656328201294, -0.2294737696647644, -0.07260357588529587, 0.12469198554754257, -0.032559122890233994, -0.4394739270210266, -0.31207898259162903, 0.28949689865112305, 0.05273371934890747, 0.48347488045692444, -0.05310007929801941, -0.03815999999642372, 0.17319083213806152, -0.192463219165802, -0.0355537086725235, 0.24620668590068817, 0.01504870317876339, 0.16403654217720032, -0.15742436051368713, -0.364806592464447, 0.005674457177519798, -0.6697844862937927, 0.309384822845459, -0.33635076880455017, 0.041961852461099625, 0.08213914185762405, -0.5721992254257202, -0.007450707256793976, -0.11853812634944916, 0.12495671212673187, 0.30588799715042114, -0.0965120941400528, 0.2650657594203949, 0.07359479367733002, 0.33219635486602783, 0.2107667624950409, -0.1237969622015953, -0.02602739818394184, -0.12239250540733337, 0.13299334049224854, 0.25732171535491943, -0.1187138557434082, 0.11725461483001709, 0.027893658727407455, -0.1467113494873047, -0.05806194245815277, -0.0731726810336113, 0.12694141268730164, -0.008019935339689255, 0.40833136439323425, -0.10585515201091766, 0.21865656971931458, -0.06728657335042953, -0.3519268333911896, -0.011365804821252823, 0.016277555376291275, 0.1375807523727417, 0.24434217810630798, 0.1602340042591095, -0.19817297160625458, 0.19900405406951904, 0.06392140686511993, -0.0607336089015007, 0.12187430262565613, -0.1249556913971901, 0.05993784964084625, -0.1711161881685257, 0.05885891616344452, -0.15572825074195862, 0.29517996311187744, -0.24372217059135437, 0.11949175596237183, -0.2472892552614212, 0.1394108086824417, -0.14573650062084198, -0.2465074062347412, -0.6074973344802856, 0.15976156294345856, 0.18247172236442566, -0.2868497371673584, -0.16886165738105774, 0.5957244038581848, -0.023957867175340652, -0.3270299434661865, -0.115232914686203, -0.01514600683003664, -0.6260631084442139, -0.1805373877286911, 0.0503847673535347, 0.06093280762434006, -0.5975376963615417, -0.05441310629248619, -0.28361809253692627, 0.14836879074573517, -0.14693981409072876, 0.09735822677612305, 0.020584743469953537, -0.1988086849451065, -0.01888987421989441, 0.13605231046676636, 0.6023392677307129, -0.2568682134151459, -0.472247838973999, -0.005124140530824661, -0.12698496878147125, 0.160651296377182, 0.25409847497940063, 0.05558685213327408, 0.03552282974123955, 0.062470074743032455, 0.31930965185165405, 0.05693446472287178, -0.2086106836795807, -0.3324221670627594, -0.03703268617391586, -0.277108371257782, 0.009892525151371956, -0.020578615367412567, 0.18342448770999908, -0.014875497668981552, 0.11888733506202698, -0.023406092077493668, 0.23416702449321747, -0.15183451771736145, 0.042025260627269745, 0.14125730097293854, 0.5577675104141235, -0.053838808089494705, 0.13466563820838928, -0.13146370649337769, -0.403154581785202, 0.3028143048286438, 0.16744695603847504, -0.016837121918797493, 0.004307720810174942, -0.3037020266056061, -0.25197768211364746, -0.1957816481590271, -0.020696599036455154, 0.10760360956192017, 0.10700587928295135, 0.2924462556838989, 0.08715064823627472, -0.14159882068634033, -0.2610582411289215, 0.2843587398529053, -0.0394396036863327, 0.013558484613895416, 0.027197595685720444, 0.1737166941165924, -0.2213442325592041, -0.16122601926326752, 0.008954472839832306, 0.2356235384941101, -0.009151538833975792, -0.13300460577011108, 0.06829408556222916, 0.24884626269340515, -0.37084493041038513, 0.2565930187702179, 0.08964625000953674, 0.2607077360153198, 0.2067423015832901, 0.02920222282409668, 0.19682040810585022, -0.07697112113237381, -0.26002779603004456, 0.18985924124717712, 0.2240019142627716, 0.10129993408918381, 0.5602582097053528, -0.21297982335090637, 0.02717391401529312, -0.14769718050956726, 0.27795669436454773, 0.21726873517036438, 0.05692862719297409, -0.11630582809448242, -0.1520899534225464, -0.062078483402729034, -0.12800846993923187, -0.18126244843006134, -0.4334091544151306, 0.20440062880516052, 0.6716197729110718, -0.2312891185283661, 0.12422741949558258, 0.020511845126748085, -0.16805921494960785, -0.06774148344993591, 0.14738884568214417, -0.10104117542505264, 0.018453486263751984, 0.21797960996627808, 0.16912654042243958, -0.011413287371397018, -0.21849344670772552, 0.06490330398082733, -0.07299624383449554, 0.04235600680112839, 0.06118336319923401, 0.2779957056045532, 0.09526176750659943, 0.18043670058250427, -0.26218414306640625, -0.31754836440086365, 0.1097431406378746, 0.2680024206638336, 0.04836814105510712, -0.19980770349502563, -0.1968040019273758, -0.14610767364501953, -0.3705076575279236, 0.12075811624526978, -0.4275488257408142, 0.004588574171066284, 0.23913681507110596, 0.5503565073013306, 0.18845675885677338, 0.2761739492416382, -0.043256860226392746, 0.18654251098632812, 0.029673077166080475, 0.041183099150657654, 0.24114066362380981, 0.2766304612159729, -0.25199460983276367, 0.11425536870956421, -0.02849843166768551, -0.3570271134376526, 0.17560690641403198, -0.1956445872783661, 0.025430969893932343, -0.21571847796440125, -0.6510059237480164, 0.09925331175327301, -0.36687859892845154, -0.14599192142486572, -0.13943056762218475, -0.03524459898471832, 0.00203096866607666, -0.277230441570282, -0.14999601244926453, -0.32856854796409607, -0.20840689539909363, -0.16986626386642456, -0.3971538245677948, 0.1299881935119629, -0.025509286671876907, -0.7505226135253906, -0.2900678217411041, -0.48025697469711304, 0.1090322956442833, -0.2630937099456787, 0.23234885931015015, 0.3844940960407257, -0.10957721620798111, 0.07570796459913254, -0.14242687821388245, 0.46476465463638306, -0.18097856640815735, -0.1663757711648941, 0.246149942278862, -0.16054575145244598, -0.17856185138225555, 0.259954571723938, -0.31791260838508606, 0.3131915330886841, 0.13046114146709442, -0.12839388847351074, -0.26607394218444824, -0.020065704360604286, 0.5114758014678955, 0.0006045179907232523, 0.03984508663415909, 0.5504140257835388, 0.11724647134542465, -0.10722889006137848, -0.13248831033706665, -0.16725751757621765, -0.17656293511390686, 0.6956039071083069, 0.23779641091823578, 0.3587528169155121, 0.3140869736671448, 0.11873732507228851, 0.9821807742118835, 0.2194080948829651, -0.23508214950561523, 0.19277054071426392, -0.2220003753900528, 0.25436586141586304, 0.07626258581876755, -0.029251080006361008, 0.03167087957262993, 0.23978787660598755, 0.4531175196170807, 0.32937127351760864, 0.1253024935722351, -0.05702386796474457, 0.030022546648979187, -0.27894413471221924, -0.1678464710712433, -0.18724936246871948, 0.09641097486019135, -0.14595676958560944, 0.29735440015792847, -0.060646675527095795, -0.10181201249361038, -0.46693098545074463, -0.13775821030139923, 0.26318395137786865, 0.24775351583957672, -0.1380215287208557, 0.04581304267048836, 0.15671059489250183, 0.024808093905448914, -0.40830063819885254, 0.31637877225875854, 0.4706087112426758, 0.49157238006591797, -0.2151084691286087, 0.05203935503959656, -0.2564627528190613, 0.2230735719203949, 0.3292044401168823, -0.43947651982307434, -0.26429417729377747, 0.07166177034378052, 0.15075801312923431, 0.030975341796875, 0.14572429656982422, 0.0032833069562911987, -0.029240639880299568, 0.09660528600215912, 0.23278528451919556, 0.18520286679267883, -0.1850442886352539, 0.1914803385734558, 0.3749412000179291, -0.01966358721256256, 0.02885335311293602, 0.004617571830749512, -0.1003538966178894, 0.021219030022621155, -0.1490432322025299, -0.15186668932437897, 0.11201592534780502, -0.18017923831939697, -0.06871297955513, 0.41178789734840393, -0.43142497539520264, 0.1897062063217163, 0.04096953943371773, -0.022375397384166718, 0.5111888647079468, 0.11188313364982605, 0.20018458366394043, 0.07165934145450592, 0.23082347214221954, 0.1854013204574585, 0.10616429150104523, -0.3489643931388855, -0.19041916728019714, -0.08414986729621887, 0.29733964800834656, 0.030838198959827423, 0.04383397102355957, 0.1429188996553421, -0.00927698239684105, -0.16815242171287537, 0.1413666307926178, 0.27713969349861145, 0.4643087387084961, 0.22978845238685608, -0.5021708607673645, -0.26566800475120544, 0.14117830991744995, 0.3036549687385559, -0.26186057925224304, 0.38871854543685913, 0.12546990811824799, -0.18702587485313416, -0.2131691575050354, -0.560926079750061, 0.6293551921844482, 0.037741318345069885, 0.08873195946216583, 0.07925701141357422, 0.18047592043876648, 0.18347284197807312, -0.3873065412044525, 0.12989799678325653, 0.14372371137142181, -0.4156280755996704, -0.10591157525777817, 0.2329769730567932, 0.18169942498207092, -0.1416977196931839, -0.3667415976524353, 0.2888849079608917, 0.19607076048851013, 0.013496343046426773, 0.26557594537734985, 0.42413949966430664, -0.044275593012571335, -0.1739465892314911, 0.18477967381477356, 0.058406345546245575, -0.1025121733546257, 0.2636815011501312, 0.07545966655015945, 0.02832285314798355, -0.14516504108905792, -0.3067416250705719, -0.20146824419498444, -0.033385589718818665, 0.22565864026546478, -0.13900694251060486, 0.080394446849823, 0.07615642249584198, 0.5016492605209351, -0.05213088542222977, 0.427371084690094, 0.01886628568172455, -0.17198945581912994, -0.0255526602268219, 0.17632046341896057, 0.045885369181632996, -0.05014709383249283, -0.0071555860340595245, 0.3579566180706024, -0.11987228691577911, -0.26283541321754456, 0.3678390085697174, 0.09656617790460587, -0.24559661746025085, -0.2679692208766937, -0.6048880219459534, 0.2475578933954239, 0.01812763139605522, 0.5127099752426147, 0.25662171840667725, 0.010466337203979492, -0.1738145649433136, 0.14170454442501068, 0.21475692093372345, -0.44547605514526367, -0.13424494862556458, -0.03607954829931259, -0.13212142884731293, -0.042529698461294174, 0.2695634365081787, 0.3527158200740814, -0.07604216039180756, 0.4267282783985138, 0.08576047420501709, 0.11210288107395172, -0.11360737681388855, -0.38629353046417236, 0.18654435873031616, -0.10747643560171127, -0.28625595569610596, -0.042250119149684906, -0.23044170439243317, 0.004964131861925125, 0.5873570442199707, 0.03302774950861931, 0.1922614425420761, -0.05144331604242325, -0.05869652330875397, -0.47562316060066223, 0.20474517345428467, -0.1656005084514618, 0.27087152004241943, -0.018911071121692657, -0.042074039578437805, 0.14435258507728577, 0.0556158721446991, -0.2875518202781677, -0.1687200963497162, 0.24029475450515747, 0.34000203013420105, 0.285599023103714, 0.06654278934001923, 0.24526973068714142, 0.03671631962060928, 0.16948139667510986, -0.27966824173927307, -0.17637057602405548, -0.11735670268535614, -0.21820808947086334, 0.09242691844701767, 0.08548830449581146, -0.024907108396291733, 0.19874122738838196, -0.19449931383132935, -0.16239774227142334, 0.12902264297008514, 0.3624184727668762, 0.14118768274784088, -0.03650759160518646, 0.38149067759513855, 0.13651105761528015, -0.07547344267368317, 0.16261625289916992, 0.13610497117042542, 0.12918049097061157, 0.2123657464981079, -0.05568637326359749, 0.462295800447464, 0.02392813190817833, -0.19231687486171722, -0.2102230340242386, 0.18452487885951996, 0.06214504688978195, 0.006637800484895706, -0.004876691848039627, -0.15810999274253845, 0.06060914695262909, 0.21701234579086304, 0.3599590063095093, -0.1148037239909172, -0.003781333565711975, 0.06952417641878128, 0.35195305943489075, 0.17096668481826782, -0.26533734798431396, 0.008235428482294083, 0.21503187716007233, -0.22032256424427032, 0.16528864204883575, 0.15411707758903503, 0.16604451835155487, 0.2801550030708313, 0.3399689495563507, -0.10449764132499695, -0.3561900854110718, -0.08536417782306671, 0.4527592360973358, 0.2235010862350464, 0.06910373270511627, 0.04350036382675171, 0.34558990597724915, -0.029566241428256035, 0.022082161158323288, 0.048739898949861526, -0.4166349172592163, 0.09370388090610504, 0.13113223016262054, -0.12200191617012024, 0.5428831577301025, -0.2409593164920807, 0.13649173080921173, -0.005169562995433807, 0.03770695626735687, 0.14017900824546814, 0.25932934880256653, 0.36518594622612, 0.029696643352508545, -0.31784164905548096, -0.03169936314225197, 0.04117912799119949, -0.07270058244466782, -0.21882402896881104, -0.16089868545532227, -0.11274556815624237, -0.2638743221759796, -0.11880099773406982, 0.12729333341121674, -0.12458914518356323, 0.04924614727497101, 0.06662767380475998, -0.13190659880638123, -0.12100009620189667, -0.04001646488904953, 0.0074011581018567085, 0.06313217431306839, 0.044717609882354736, 0.45621535181999207, -0.20130261778831482, -0.40311163663864136, 0.2506026029586792, 0.0920080691576004, 0.012100866064429283, -0.1616835594177246, 0.03566639870405197, 0.361663818359375, 0.19970637559890747, -0.10763382911682129, 0.1910300999879837, 0.016237374395132065, 0.19586554169654846, 0.22175371646881104, 0.00864989310503006, 0.07718431949615479, -0.10015831887722015, -0.005889615975320339, -0.12064822763204575, 0.19128653407096863, -0.31436580419540405, 0.44256719946861267, -0.00668567419052124, -0.05278535187244415, -0.19617803394794464, 0.12669003009796143, -0.3610304296016693, -0.031520918011665344, 0.5138074159622192, 0.017150018364191055, -0.0924307107925415, -0.2337612360715866, 0.06157544255256653, -0.08185702562332153, -0.11757245659828186, 0.36020708084106445, 0.0693545714020729, 0.25489580631256104, 0.01667945086956024, -0.20332789421081543, 0.32816123962402344, 0.08354033529758453, -0.07765289396047592, -0.2157018631696701, -0.13639803230762482, 0.1771126538515091, -0.07425639778375626, 0.2908809781074524, -0.5286780595779419, -0.10648907721042633, -0.14695525169372559, -0.11047754436731339, -0.2127872258424759, 0.10710347443819046, 0.2547720670700073, 0.07986335456371307, -0.16438138484954834, -0.035246457904577255, -0.25869515538215637, 0.026403680443763733, -0.0855335220694542, 0.041186124086380005, 0.005764536559581757, -0.4895683526992798, 0.3334729075431824, -0.17112106084823608, 0.3226031959056854, -0.23469385504722595, -0.18131627142429352, -0.38215216994285583, -0.08578674495220184, -0.32709988951683044, 0.092328280210495, -0.06243952736258507, 0.8024919033050537, -0.2974708676338196, 0.3298358917236328, -0.13828694820404053, 0.08563098311424255, -0.12128643691539764, -0.20744432508945465, -0.18340450525283813, 0.47287219762802124, -0.24899443984031677, -0.044732872396707535, 0.30709242820739746, 0.07822006195783615, -0.0231095589697361, -0.051490165293216705, -0.15278780460357666, -0.20347477495670319, 0.3044963777065277, -0.2725006639957428, -0.18908053636550903, -0.5599116683006287, 0.18862473964691162, 0.08914058655500412, -0.08100801706314087, -0.3993068337440491, 0.19367879629135132, 0.28401514887809753, 0.034713055938482285, -0.017917558550834656, 0.18368646502494812, 0.12552961707115173, -0.21818578243255615, -0.04747080057859421, 0.41537097096443176, 0.0494794026017189, -0.121647410094738, 0.047067686915397644, -0.29411086440086365 ]
https://github.com/huggingface/datasets/issues/1840
Common voice still appears to be a 6.1. Is the plan still to upgrade to 7.0?
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).
16
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). Common voice still appears to be a 6.1. Is the plan still to upgrade to 7.0?
[ -0.2122887670993805, -0.36574167013168335, -0.066814124584198, -0.25089725852012634, -0.16557568311691284, -0.14418214559555054, 0.20839092135429382, 0.5740469694137573, -0.16342318058013916, 0.18665513396263123, -0.12672379612922668, 0.12997865676879883, -0.22137951850891113, -0.054074350744485855, -0.1652478575706482, -0.17251509428024292, 0.18746069073677063, 0.09233859181404114, 0.22414018213748932, -0.29895877838134766, -0.09334681928157806, 0.19908347725868225, -0.17873771488666534, -0.11587026715278625, -0.1860632449388504, -0.10556086897850037, -0.15260054171085358, -0.24196216464042664, -0.2203153818845749, -0.11308221518993378, 0.04438792169094086, 0.4690737724304199, 0.0795973613858223, 0.5579511523246765, -0.00010465350351296365, -0.18451914191246033, 0.24185512959957123, 0.016831256449222565, -0.07247747480869293, -0.26485326886177063, -0.25154367089271545, 0.1319345235824585, -0.33412638306617737, 0.3444908857345581, -0.048145975917577744, -0.05790872871875763, 0.10701356083154678, -0.19679751992225647, 0.23415255546569824, 0.3688357472419739, 0.2583071291446686, -0.013643074780702591, 0.014282703399658203, 0.1099386215209961, -0.007754586637020111, 0.10644249618053436, -0.42487120628356934, 0.08659900724887848, 0.4412422776222229, -0.13691367208957672, -0.05640353262424469, 0.4784087836742401, 0.12746554613113403, -0.2771303951740265, -0.06901074945926666, -0.017073586583137512, 0.10576999187469482, -0.5599304437637329, 0.16290834546089172, 0.4651476740837097, 0.6900511980056763, 0.017551429569721222, -0.33665695786476135, -0.03674034774303436, 0.1048591285943985, -0.36439985036849976, 0.06822779029607773, -0.14921103417873383, -0.21666058897972107, 0.14624398946762085, -0.054746489971876144, -0.3675631880760193, -0.1766158640384674, 0.28779736161231995, -0.06189153715968132, 0.5196661949157715, -0.07167912274599075, -0.10533659160137177, 0.12865661084651947, -0.04999423399567604, -0.20747080445289612, 0.302531361579895, 0.07124394178390503, 0.2348332554101944, -0.28997597098350525, -0.31466934084892273, 0.1962273269891739, -0.5680249929428101, 0.2116846740245819, -0.32328271865844727, 0.02260889858007431, 0.11949340999126434, -0.46987050771713257, -0.01162426732480526, 0.1091330423951149, 0.1773585081100464, 0.22332090139389038, -0.2645958662033081, 0.33606770634651184, 0.01008758693933487, 0.27744317054748535, 0.25307145714759827, -0.1718144714832306, 0.08885625004768372, -0.15418024361133575, -0.04730246961116791, 0.2638063430786133, 0.009329445660114288, 0.03331449627876282, 0.180293470621109, -0.09911582618951797, -0.05839565768837929, -0.1035149097442627, 0.021081410348415375, 0.01986723765730858, 0.5997174978256226, -0.06906397640705109, 0.1571788489818573, 0.052763424813747406, -0.28747284412384033, -0.12162000685930252, -0.10655198246240616, -0.1532038301229477, 0.12629716098308563, 0.15788516402244568, -0.1246756911277771, -0.026215873658657074, 0.005218826234340668, 0.14140336215496063, 0.04674084484577179, -0.17927023768424988, 0.11191751062870026, -0.0801711231470108, 0.13505278527736664, -0.4101983308792114, 0.21981048583984375, -0.05290134251117706, 0.24631725251674652, -0.1418677568435669, 0.0512712262570858, -0.0546141155064106, -0.15612462162971497, -0.4318854808807373, 0.23396165668964386, 0.17588645219802856, -0.22637200355529785, 0.04418022930622101, 0.6501259803771973, 0.1130126565694809, -0.21182392537593842, 0.009684916585683823, -0.03610123693943024, -0.5290246605873108, -0.06327013671398163, 0.005948461592197418, -0.12613382935523987, -0.3892025947570801, 0.06390215456485748, -0.15355715155601501, 0.155935138463974, -0.08211266994476318, 0.20574238896369934, 0.09859123826026917, -0.28589287400245667, 0.004429548978805542, 0.3121829032897949, 0.5102218985557556, -0.24257983267307281, -0.3882060945034027, 0.10965199768543243, -0.1480751484632492, 0.020619161427021027, 0.14535272121429443, -0.0719219371676445, 0.0699651837348938, -0.043802469968795776, 0.3958621323108673, -0.040857162326574326, -0.26688718795776367, -0.0666537806391716, -0.24637387692928314, -0.3827999234199524, -0.03113298863172531, 0.0005519688129425049, 0.1112617701292038, -0.04454173147678375, -0.05684998258948326, -0.1794103980064392, 0.25555098056793213, -0.1259678304195404, 0.13457828760147095, -0.03679559379816055, 0.6218766570091248, -0.09168093651533127, 0.11459706723690033, -0.07543547451496124, -0.20258548855781555, 0.11282441765069962, 0.2571747899055481, 0.20609048008918762, 0.24566401541233063, -0.35471609234809875, -0.08568626642227173, -0.2127421647310257, -0.036035917699337006, 0.0545155368745327, 0.1968335509300232, 0.11362576484680176, -0.02785215526819229, -0.1105836033821106, -0.5458111763000488, 0.2714335322380066, -0.009505711495876312, -0.09642806649208069, 0.10149014741182327, 0.2550773024559021, -0.2199946939945221, -0.22097955644130707, 0.09499166160821915, 0.23147344589233398, -0.170289546251297, -0.1373857855796814, 0.05772489681839943, 0.1549638956785202, -0.31154537200927734, 0.21708062291145325, -0.007119929417967796, 0.3339132070541382, 0.17349281907081604, 0.06403908878564835, 0.16539907455444336, -0.0315970778465271, -0.14881491661071777, 0.03730592131614685, 0.23351794481277466, 0.1370459347963333, 0.6064642667770386, -0.19164884090423584, 0.08161598443984985, -0.02979031205177307, 0.14494088292121887, 0.2400355488061905, -0.04197140783071518, -0.05045631527900696, -0.1256774216890335, -0.21603716909885406, -0.08400925993919373, -0.07937178760766983, -0.5027113556861877, 0.26766446232795715, 0.8282562494277954, -0.17476871609687805, 0.21085426211357117, 0.19661548733711243, -0.03868146240711212, -0.23923064768314362, 0.09081615507602692, -0.23614293336868286, 0.06969746202230453, 0.1967337727546692, 0.1901499330997467, 0.056459568440914154, 0.004127155989408493, -0.001224718987941742, -0.09128507971763611, 0.05204599350690842, 0.05291524901986122, 0.2620076835155487, 0.14113429188728333, 0.20899246633052826, -0.4558649957180023, -0.2906169891357422, 0.013112910091876984, 0.09217957407236099, -0.0010772794485092163, -0.14422768354415894, -0.027030985802412033, -0.06785447150468826, -0.051276132464408875, 0.026212725788354874, -0.5136847496032715, -0.2845892608165741, 0.30978161096572876, 0.5721812844276428, 0.25748342275619507, 0.29214954376220703, -0.17299634218215942, 0.36416342854499817, 0.05751962214708328, 0.09920492023229599, -0.06133120134472847, 0.13488906621932983, -0.2179659903049469, 0.19079600274562836, 0.05045023187994957, -0.5909535884857178, 0.12632200121879578, -0.07826545834541321, -0.0013552121818065643, -0.06877852231264114, -0.5928501486778259, 0.19514921307563782, -0.4950178563594818, -0.39412927627563477, -0.16767728328704834, -0.07912518084049225, -0.060699865221977234, -0.16113710403442383, -0.13438387215137482, -0.28690531849861145, -0.3333822786808014, -0.060204628854990005, -0.17036586999893188, 0.021767687052488327, -0.1130402460694313, -0.6377627849578857, -0.10404308885335922, -0.4915504455566406, 0.19896209239959717, -0.3888779580593109, 0.10016529262065887, 0.4282776713371277, -0.17603115737438202, 0.040749721229076385, -0.3048020303249359, 0.365048348903656, -0.2575840950012207, -0.18727914988994598, 0.06093695014715195, -0.010175161063671112, -0.27478843927383423, 0.1028205156326294, -0.15146607160568237, 0.37562090158462524, 0.035039134323596954, -0.19886702299118042, -0.2573619782924652, 0.018387461081147194, 0.42751026153564453, 0.0733536034822464, -0.1540134996175766, 0.5069417357444763, 0.1603863686323166, -0.21836578845977783, 0.06180419772863388, -0.041346099227666855, -0.10629081726074219, 0.7294496297836304, 0.1537770926952362, 0.1810547411441803, 0.13108785450458527, 0.21273469924926758, 1.0733983516693115, 0.2027255892753601, -0.17909610271453857, 0.14677181839942932, -0.04291045665740967, 0.20660224556922913, -0.05551297217607498, -0.12314996868371964, 0.3671613335609436, 0.15336176753044128, 0.29473739862442017, 0.3877522647380829, 0.05019235983490944, -0.17074057459831238, -0.026943661272525787, -0.02581661194562912, -0.0812547355890274, -0.22118835151195526, 0.05860522389411926, -0.22657087445259094, 0.17599405348300934, -0.015780072659254074, 0.051242828369140625, -0.21511225402355194, -0.11197680234909058, 0.20008651912212372, 0.2931000590324402, -0.08383989334106445, -0.1766510307788849, 0.240557000041008, 0.1748063862323761, -0.5188965797424316, 0.21941690146923065, 0.2672494947910309, 0.4464292526245117, -0.3007413148880005, -0.12696726620197296, -0.12719447910785675, 0.0846453458070755, 0.363614022731781, -0.3084195554256439, -0.36486658453941345, 0.2103758454322815, 0.15753428637981415, 0.14459797739982605, 0.15691842138767242, 0.04238029569387436, -0.07068001478910446, 0.1596936583518982, 0.16499504446983337, 0.1905348300933838, -0.35181114077568054, 0.1757819950580597, 0.17127904295921326, 0.07607388496398926, 0.05876994505524635, -0.12356042861938477, 0.05220150947570801, 0.11218155920505524, -0.03996435925364494, 0.009622618556022644, -0.0331994965672493, -0.2598208487033844, -0.11859769374132156, 0.42042338848114014, -0.5141319036483765, 0.26338183879852295, 0.15359997749328613, -0.30471527576446533, 0.19167426228523254, 0.06533782184123993, 0.20984041690826416, 0.029355384409427643, 0.09607329964637756, 0.10258716344833374, 0.1995939165353775, -0.3101578652858734, 0.0011851843446493149, -0.10472842305898666, 0.3541972041130066, 0.1729038655757904, 0.07926978170871735, -0.04237237200140953, -0.044919662177562714, -0.01822853460907936, -0.04884409159421921, 0.1721474826335907, 0.6034419536590576, 0.20900647342205048, -0.42545682191848755, -0.11612285673618317, 0.16204588115215302, 0.058508604764938354, -0.24886947870254517, 0.531158983707428, 0.1104375496506691, -0.1544768214225769, -0.19423732161521912, -0.4766772985458374, 0.8916537761688232, 0.06036629155278206, 0.1888040006160736, 0.25792473554611206, 0.29701924324035645, 0.057490572333335876, -0.4409133791923523, 0.30931344628334045, 0.08009757101535797, -0.2555645704269409, -0.10346728563308716, 0.24831989407539368, -0.027018267661333084, -0.153580904006958, -0.3199569880962372, 0.20826373994350433, 0.14550763368606567, 0.02719571627676487, 0.23846429586410522, 0.3351297080516815, -0.10773038864135742, -0.1969047635793686, 0.05454227328300476, 0.15828274190425873, -0.06914570927619934, 0.3690982758998871, 0.15328018367290497, -0.04753568768501282, -0.1541234701871872, -0.21845093369483948, -0.23609475791454315, 0.14248429238796234, 0.1526607871055603, -0.14717379212379456, 0.0810532197356224, 0.11080487072467804, 0.37519901990890503, 0.008407160639762878, 0.3044360876083374, -0.052257489413022995, -0.1781831681728363, -0.03915521129965782, 0.22223320603370667, 0.12407183647155762, 0.015784114599227905, -0.0009408779442310333, 0.4623652398586273, -0.22701475024223328, -0.17729677259922028, 0.2497069090604782, 0.10316440463066101, -0.15083912014961243, -0.4084334969520569, -0.3474787473678589, 0.2570711672306061, -0.05481551215052605, 0.5714719891548157, 0.3547751307487488, -0.12414921820163727, -0.10156339406967163, 0.2131149172782898, 0.20595692098140717, -0.33608493208885193, -0.06159069761633873, 0.08257247507572174, -0.08730427175760269, -0.10569269955158234, 0.3717969059944153, 0.24158905446529388, -0.20664489269256592, 0.26488298177719116, 0.05306448042392731, -0.05300399661064148, -0.3350025415420532, -0.21019387245178223, 0.16030332446098328, -0.07984316349029541, -0.2409767210483551, -0.10411040484905243, -0.28463104367256165, 0.018336057662963867, 0.49768510460853577, -0.11357855051755905, 0.07810483127832413, -0.24862423539161682, -0.042866386473178864, -0.5209847092628479, 0.14028988778591156, -0.2286861389875412, 0.18401965498924255, -0.15544342994689941, -0.08999961614608765, 0.2965920865535736, -0.01632644049823284, -0.42066243290901184, -0.27553272247314453, 0.21431481838226318, 0.13955025374889374, 0.29352331161499023, -0.2582207918167114, 0.3358680009841919, -0.03877807408571243, 0.2866652309894562, -0.2877131402492523, -0.2586769163608551, -0.2655862867832184, -0.1649056077003479, 0.069333016872406, 0.230668306350708, 0.08135343343019485, 0.2760021388530731, -0.07734066247940063, -0.4055887758731842, 0.038250647485256195, 0.26629406213760376, 0.10882031917572021, -0.027696147561073303, 0.25544214248657227, 0.09037632495164871, 0.0524221695959568, 0.4475446939468384, -0.065834641456604, 0.15552513301372528, 0.2610051929950714, -0.03226080536842346, 0.25504201650619507, 0.1423734724521637, -0.23841553926467896, -0.1911284625530243, 0.2309873402118683, -0.07611846923828125, -0.13895568251609802, 0.0850638821721077, -0.11656958609819412, -0.023299120366573334, 0.024603918194770813, 0.39449554681777954, 0.018533864989876747, -0.024693956598639488, -0.1945713460445404, 0.25530770421028137, 0.26478081941604614, -0.1274963617324829, 0.05414636805653572, 0.10512811690568924, 0.08332550525665283, 0.1037774533033371, 0.10529575496912003, 0.05259665846824646, 0.15440955758094788, 0.3211807906627655, -0.12728849053382874, -0.28823351860046387, -0.144520103931427, 0.3053933084011078, 0.10892277956008911, -0.03575054556131363, 0.100914865732193, 0.3564199209213257, -0.09451712667942047, 0.06279231607913971, 0.15149646997451782, -0.33771392703056335, 0.25573721528053284, 0.19201815128326416, 0.04709314554929733, 0.5530754923820496, 0.00023347139358520508, 0.051818184554576874, -0.015354730188846588, -0.05979626625776291, 0.13343298435211182, 0.13363125920295715, 0.36469095945358276, -0.1702013611793518, -0.19287334382534027, -0.15905188024044037, 0.11811497807502747, -0.13541945815086365, -0.11311683058738708, -0.13943903148174286, 0.010876983404159546, -0.1985514760017395, -0.18047083914279938, 0.03840191289782524, 0.013937775045633316, 0.189529687166214, 0.12653446197509766, -0.09058824181556702, -0.03303372859954834, 0.004581466317176819, -0.13597092032432556, 0.4640381336212158, 0.09384982287883759, 0.4167964458465576, -0.20726096630096436, -0.254615843296051, 0.15612146258354187, 0.17376358807086945, 0.10219945013523102, 0.05195418745279312, -0.21841979026794434, 0.20927855372428894, 0.0696602538228035, -0.1650068461894989, 0.031351666897535324, 0.1286579966545105, 0.25786247849464417, 0.30941468477249146, -0.0013532042503356934, 0.17867028713226318, -0.12272182106971741, 0.10269393026828766, -0.10694289207458496, 0.1409364640712738, -0.2622467577457428, 0.4346858859062195, -0.14355388283729553, -0.16786690056324005, -0.19900953769683838, 0.11171654611825943, -0.3643394410610199, -0.08252221345901489, 0.48291975259780884, -0.0545148141682148, -0.00988106057047844, -0.33098942041397095, 0.11416253447532654, -0.010238632559776306, 0.02732144296169281, 0.3097783625125885, 0.02913043275475502, 0.24941401183605194, 0.05047747492790222, -0.09224965423345566, 0.27796849608421326, 0.2655608355998993, 0.08545141667127609, -0.33780771493911743, -0.02666180580854416, 0.2292281836271286, 0.09925723075866699, 0.13367775082588196, -0.5254482626914978, -0.2867785394191742, -0.1640566885471344, -0.16666625440120697, 0.061367347836494446, -0.074323371052742, 0.26789411902427673, 0.10908518731594086, -0.19331210851669312, 0.1174868494272232, -0.3397676944732666, 0.07034695893526077, -0.10277323424816132, 0.04361116886138916, 0.03427392244338989, -0.18730154633522034, 0.2057308554649353, -0.03295644372701645, 0.228240504860878, -0.11447470635175705, -0.3602147400379181, -0.32659655809402466, -0.1300501674413681, -0.27748584747314453, 0.03330295532941818, -0.09590250253677368, 0.5835563540458679, -0.2233721762895584, 0.11581425368785858, -0.17974448204040527, 0.04916631802916527, 0.013908781111240387, -0.08172550797462463, -0.11513486504554749, 0.31224513053894043, 0.013957224786281586, 0.04874716326594353, 0.3081989288330078, 0.08593614399433136, -0.1385703682899475, -0.1845015287399292, -0.2345637083053589, -0.22050058841705322, 0.19701576232910156, -0.2746689021587372, -0.2541236877441406, -0.5165650844573975, 0.15041720867156982, 0.1037108525633812, -0.1272161602973938, -0.44567522406578064, 0.07482664287090302, 0.24229907989501953, 0.050120510160923004, -0.18774506449699402, 0.035666968673467636, 0.10245365649461746, -0.33173125982284546, -0.15218213200569153, 0.24907556176185608, -0.007565581705421209, -0.01949712634086609, 0.06407347321510315, -0.2511731684207916 ]
https://github.com/huggingface/datasets/issues/1840
We actually already have the code and everything ready to add Common Voice 7.0 to `datasets` but are still waiting for the common voice authors to give us the green light :-) Also gently pinging @phirework and @milupo here
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).
39
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). We actually already have the code and everything ready to add Common Voice 7.0 to `datasets` but are still waiting for the common voice authors to give us the green light :-) Also gently pinging @phirework and @milupo here
[ -0.29971566796302795, -0.3046943247318268, -0.055825307965278625, -0.25547105073928833, -0.04526466503739357, -0.12001185119152069, 0.3751794695854187, 0.4150419235229492, -0.17862603068351746, 0.24427814781665802, -0.24192851781845093, 0.24217157065868378, -0.1680072844028473, 0.04018169641494751, -0.11211696267127991, -0.20511698722839355, -0.10206679254770279, 0.18604212999343872, 0.1300927847623825, -0.12976469099521637, 0.12364047765731812, 0.04101627320051193, -0.05804012715816498, -0.055674489587545395, -0.1085093542933464, -0.15883685648441315, 0.10776021331548691, -0.1456521600484848, -0.10250058770179749, -0.09758849442005157, -0.11307170242071152, 0.31247901916503906, -0.09298186004161835, 0.5205678343772888, -0.00009792888158699498, 0.003148593008518219, 0.18074041604995728, -0.11110113561153412, -0.12104056030511856, -0.09848652780056, -0.16494083404541016, 0.1644488126039505, -0.34616735577583313, 0.17957083880901337, -0.22466392815113068, -0.19761434197425842, 0.026805521920323372, -0.17866545915603638, 0.35095804929733276, 0.3816341757774353, 0.32051557302474976, 0.15162301063537598, -0.14920593798160553, 0.07685893028974533, 0.06511544436216354, 0.09580674767494202, -0.33834603428840637, 0.020373795181512833, 0.3209685981273651, -0.11463421583175659, -0.15395504236221313, 0.5010684132575989, 0.07600513100624084, -0.20199526846408844, -0.13281553983688354, -0.053653836250305176, -0.03667701780796051, -0.3659327030181885, 0.06549690663814545, 0.49692362546920776, 0.553076446056366, -0.3023498058319092, -0.23771846294403076, -0.18838948011398315, 0.0488123744726181, -0.35512667894363403, 0.06504039466381073, -0.1347195953130722, -0.24257618188858032, 0.20611882209777832, -0.009325910359621048, -0.1270163655281067, -0.11863329261541367, 0.10618893802165985, 0.03473776578903198, 0.34043824672698975, -0.07590611279010773, -0.2928096354007721, 0.05242213234305382, -0.20725117623806, -0.1913808286190033, 0.24252071976661682, 0.1695745289325714, 0.048821821808815, -0.3529064953327179, -0.27586185932159424, 0.18326304852962494, -0.5263787508010864, 0.27689486742019653, -0.2328685075044632, 0.1848495602607727, 0.2292558252811432, -0.3539293110370636, 0.13824322819709778, -0.027669470757246017, 0.1728385090827942, 0.16787654161453247, -0.21097669005393982, 0.3850748836994171, -0.0074309371411800385, 0.10759177803993225, 0.12587988376617432, -0.02015719749033451, 0.06552755832672119, -0.15226566791534424, 0.03931604325771332, 0.09100031852722168, 0.00646943598985672, -0.18004076182842255, 0.06899449974298477, -0.09674723446369171, 0.08963312953710556, 0.08712093532085419, 0.18071185052394867, -0.015254845842719078, 0.41396385431289673, -0.05600089579820633, 0.1999535709619522, -0.09401962161064148, -0.42088428139686584, -0.11627756804227829, -0.0923728421330452, -0.08429540693759918, 0.20843084156513214, 0.23866039514541626, 0.08565880358219147, 0.15221844613552094, -0.001470658928155899, 0.16796790063381195, 0.13341280817985535, -0.006327766925096512, 0.17196577787399292, -0.09477753937244415, -0.012932902202010155, -0.0320325568318367, 0.07560840994119644, -0.04805350676178932, 0.0427488312125206, -0.10801265388727188, -0.07612648606300354, 0.059768904000520706, -0.16885390877723694, -0.4016616940498352, 0.3549239933490753, 0.1731765866279602, -0.1724219173192978, 0.08699668943881989, 0.5263696908950806, 0.1076769083738327, -0.24158525466918945, 0.09233053028583527, 0.05500153452157974, -0.43218082189559937, -0.007783245295286179, 0.12473995983600616, 0.05896326154470444, -0.34267497062683105, -0.04576927796006203, -0.18609619140625, 0.10896852612495422, -0.042712535709142685, 0.2602841258049011, -0.01314036175608635, -0.06334015727043152, -0.04106376692652702, 0.45899510383605957, 0.40438786149024963, -0.25467929244041443, -0.3047838807106018, 0.10484833270311356, -0.2691967487335205, 0.12864390015602112, 0.18818655610084534, -0.06910288333892822, 0.16707730293273926, 0.011652886867523193, 0.41610077023506165, 0.2215040773153305, -0.18788400292396545, 0.1107499748468399, -0.22330355644226074, -0.298490971326828, -0.04014351963996887, 0.21411064267158508, -0.026151098310947418, -0.06841230392456055, -0.07669948041439056, -0.10779280960559845, 0.2201777994632721, -0.34818077087402344, 0.1668970286846161, 0.06851553916931152, 0.4814201295375824, -0.016603905707597733, 0.05293488875031471, -0.20910684764385223, -0.04973836615681648, -0.01022348552942276, 0.17246967554092407, 0.22772327065467834, 0.007537800818681717, -0.4798470139503479, -0.15007130801677704, -0.2800252437591553, -0.028648268431425095, 0.13124080002307892, 0.3575529456138611, 0.24160555005073547, -0.08285180479288101, -0.01255355030298233, -0.23704051971435547, 0.23435845971107483, -0.13820739090442657, -0.08847522735595703, 0.06717422604560852, 0.07979846745729446, -0.23923708498477936, -0.20550650358200073, 0.14063116908073425, 0.19572758674621582, -0.25764212012290955, -0.04807552695274353, 0.030394218862056732, 0.2433696836233139, -0.36237582564353943, 0.28444623947143555, -0.022163722664117813, 0.41258129477500916, 0.1862626075744629, -0.15956330299377441, 0.0844377726316452, 0.10952755808830261, -0.0840640664100647, 0.016177110373973846, 0.2523655295372009, 0.19081300497055054, 0.5376530289649963, -0.2533799111843109, 0.13193105161190033, -0.10342133790254593, 0.26279211044311523, -0.042613063007593155, -0.12287510931491852, -0.01588837057352066, -0.03111390769481659, -0.1692359894514084, -0.05824041739106178, -0.16658958792686462, -0.5551196336746216, 0.23947015404701233, 0.7250707149505615, -0.11009568721055984, 0.38901886343955994, 0.1089487224817276, -0.250404417514801, -0.07978498190641403, 0.08650956302881241, -0.26611706614494324, 0.07594180107116699, 0.3093790113925934, 0.15345491468906403, -0.04171324521303177, -0.06537120789289474, -0.07876521348953247, 0.041186943650245667, 0.0013616755604743958, -0.13187028467655182, 0.43820053339004517, 0.24913634359836578, -0.015311941504478455, -0.5578550100326538, -0.2528485059738159, -0.028710735961794853, 0.040927767753601074, -0.17721760272979736, -0.08160519599914551, -0.15436948835849762, -0.26309388875961304, 0.02551872655749321, 0.19560180604457855, -0.16737346351146698, -0.0786171704530716, 0.48465466499328613, 0.5129981637001038, -0.03509242832660675, 0.3236542046070099, -0.028257448226213455, 0.37849509716033936, 0.12355120480060577, 0.027698149904608727, 0.012827649712562561, -0.07802882045507431, -0.15553753077983856, 0.27793610095977783, 0.12666592001914978, -0.3119519352912903, 0.2351815402507782, -0.002089172601699829, 0.06213878467679024, -0.044333167374134064, -0.44502735137939453, 0.2288288176059723, -0.3427721858024597, -0.2699200212955475, -0.13954724371433258, -0.029059842228889465, 0.013344839215278625, -0.3807517886161804, -0.061795108020305634, -0.23167264461517334, -0.2783702611923218, -0.0046561844646930695, -0.16267985105514526, 0.015925303101539612, -0.2922070324420929, -0.4726032614707947, -0.11958731710910797, -0.6256836652755737, 0.13067971169948578, -0.3599589467048645, 0.05591806396842003, 0.3191875219345093, -0.1926981657743454, 0.0843615010380745, -0.1834624856710434, 0.4459070861339569, -0.28444594144821167, -0.15730834007263184, 0.21229304373264313, -0.22178050875663757, -0.317395955324173, -0.13776780664920807, -0.17523524165153503, 0.2940688729286194, 0.002401847392320633, -0.1533207893371582, -0.2817249298095703, -0.047955743968486786, 0.33749082684516907, 0.055738843977451324, -0.07586069405078888, 0.2566205561161041, 0.2396879941225052, -0.23039984703063965, -0.11628155410289764, -0.06565811485052109, 0.018641769886016846, 0.434854656457901, 0.034120410680770874, 0.09006427228450775, 0.0945613756775856, 0.09004035592079163, 0.8501757979393005, 0.05129588395357132, -0.2068038433790207, 0.23886215686798096, -0.15805400907993317, 0.1691264659166336, -0.020701803267002106, -0.07976115494966507, 0.30669358372688293, 0.16924065351486206, 0.2857573628425598, 0.5571876168251038, -0.003032790496945381, -0.24079629778862, 0.04774197190999985, -0.03872198984026909, -0.20875173807144165, -0.27245861291885376, 0.09859291464090347, -0.1472076177597046, 0.11653268337249756, -0.07868725061416626, -0.00468936562538147, -0.20306050777435303, -0.05897751823067665, 0.3436565101146698, 0.08125454187393188, -0.13240092992782593, -0.23718175292015076, 0.1683824062347412, 0.08996371924877167, -0.2981192171573639, 0.07885012030601501, 0.2562001645565033, 0.2399553507566452, -0.31809312105178833, -0.22060833871364594, -0.18004970252513885, 0.1004643589258194, 0.34377536177635193, -0.3214937448501587, -0.22590835392475128, 0.07514835894107819, 0.2448108196258545, 0.1232517659664154, 0.27634555101394653, -0.10416222363710403, -0.1844748705625534, 0.0670108050107956, 0.13404855132102966, -0.10016243159770966, -0.058388058096170425, -0.07580551505088806, 0.2246694564819336, -0.005072593688964844, 0.07728566229343414, 0.00676475465297699, -0.09900610148906708, -0.11737346649169922, 0.06079757213592529, 0.09678856283426285, 0.059324175119400024, -0.12115760892629623, -0.12769287824630737, 0.3467397689819336, -0.2848493158817291, 0.36174365878105164, 0.3076643645763397, -0.14250212907791138, 0.162686288356781, 0.18423998355865479, 0.10029971599578857, 0.14527393877506256, 0.00425383448600769, 0.06457961350679398, 0.228348046541214, -0.20379313826560974, -0.08994033932685852, -0.11868597567081451, 0.28055620193481445, 0.08260195702314377, 0.18412527441978455, 0.11855034530162811, -0.07479946315288544, 0.07176584005355835, -0.09839925169944763, 0.2625659108161926, 0.33546963334083557, 0.28115564584732056, -0.2562235891819, -0.1626986265182495, 0.08164738118648529, 0.03892049938440323, -0.12120741605758667, 0.3290005028247833, 0.009077955037355423, -0.3214946389198303, 0.05187506601214409, -0.41350695490837097, 0.8734883069992065, 0.11820364743471146, 0.16585427522659302, 0.2880883812904358, 0.3296068608760834, 0.1211908757686615, -0.5304722189903259, 0.2512734830379486, 0.09352721273899078, -0.3310863673686981, -0.0035098642110824585, 0.23646894097328186, -0.17941369116306305, -0.042155541479587555, -0.4575067162513733, 0.044497888535261154, 0.04473724961280823, 0.06620118021965027, 0.0987989753484726, 0.29960864782333374, -0.06140460819005966, -0.43621763586997986, -0.1417505294084549, 0.24839168787002563, 0.009746412746608257, 0.10724247992038727, 0.21100300550460815, -0.19633091986179352, -0.11092820763587952, -0.07881686091423035, -0.23880355060100555, 0.2313351333141327, 0.0022812075912952423, -0.11416959762573242, -0.06710857152938843, 0.14859673380851746, 0.33399179577827454, 0.028273390606045723, 0.3576347827911377, 0.06990166008472443, -0.20115461945533752, 0.04235270991921425, 0.30109164118766785, 0.17129318416118622, -0.08379341661930084, 0.09617866575717926, 0.3134433925151825, -0.23488646745681763, -0.14203070104122162, 0.22192509472370148, 0.20127646625041962, -0.1527891606092453, -0.29556354880332947, -0.3494426906108856, 0.1604577749967575, -0.010901890695095062, 0.48168036341667175, 0.2843148112297058, -0.15672895312309265, -0.15844950079917908, 0.2777904272079468, 0.058378253132104874, -0.3829334080219269, 0.02894549071788788, 0.10790354013442993, 0.04317609965801239, -0.10537693649530411, 0.14489133656024933, 0.22920836508274078, -0.02601231262087822, 0.26670175790786743, 0.11512124538421631, -0.11374898254871368, -0.4014357924461365, -0.3265208601951599, 0.03070130944252014, -0.11722717434167862, -0.1619434654712677, -0.022930799052119255, -0.41959816217422485, -0.07664096355438232, 0.3390906751155853, -0.10046584904193878, 0.17244063317775726, -0.16064682602882385, -0.009042896330356598, -0.464718222618103, 0.1315523386001587, -0.0029690691735595465, 0.23992767930030823, -0.14960968494415283, 0.08006633818149567, 0.01694474369287491, -0.04222921282052994, -0.5291252732276917, -0.3476744294166565, 0.005188256502151489, 0.19998067617416382, 0.23538288474082947, -0.27072522044181824, 0.35468021035194397, 0.031789179891347885, 0.36082345247268677, -0.05835464596748352, -0.06829513609409332, -0.3831416070461273, -0.18555063009262085, 0.06341841071844101, 0.16237644851207733, 0.0016677789390087128, 0.2594166696071625, 0.06961516290903091, -0.2615791857242584, -0.054792046546936035, 0.29912394285202026, 0.062156982719898224, -0.004029326140880585, 0.16791167855262756, 0.01590491645038128, 0.020131079480051994, 0.27208998799324036, -0.1253768354654312, 0.14988288283348083, 0.2000844031572342, -0.02535424940288067, 0.11441956460475922, 0.005128342658281326, -0.24579894542694092, -0.021125050261616707, 0.2162981778383255, 0.14891764521598816, 0.03172259032726288, 0.08072809129953384, 0.01250475738197565, -0.09130943566560745, 0.15279008448123932, 0.40574461221694946, -0.11531105637550354, -0.12311282753944397, -0.07281246036291122, 0.2878711521625519, 0.420513778924942, -0.2193210870027542, 0.03224765509366989, 0.08154051005840302, -0.2297160029411316, 0.37222135066986084, 0.1429053694009781, -0.07427601516246796, 0.1604626178741455, 0.19531457126140594, -0.10313768684864044, -0.2982240617275238, -0.1626126915216446, 0.11772764474153519, 0.14278213679790497, -0.06401824951171875, -0.05685145780444145, 0.14282676577568054, -0.052200671285390854, 0.26436397433280945, 0.21216046810150146, -0.27081263065338135, 0.20164251327514648, 0.15183739364147186, -0.026048149913549423, 0.42118892073631287, 0.04464180767536163, 0.0957881510257721, -0.033016473054885864, 0.028223050758242607, 0.1989225149154663, 0.1124914139509201, 0.34050971269607544, -0.14601899683475494, -0.2215297967195511, -0.05720427632331848, 0.24997977912425995, -0.10187627375125885, -0.11445307731628418, -0.23917284607887268, 0.004808276891708374, -0.2547999620437622, -0.17902196943759918, 0.20052368938922882, 0.11038876324892044, 0.021963633596897125, 0.0760757178068161, -0.05749941244721413, -0.04079876467585564, -0.03319341689348221, 0.048136815428733826, 0.41914716362953186, -0.009545572102069855, 0.2558453679084778, -0.0977187529206276, -0.25260335206985474, 0.1425727903842926, 0.2597690522670746, 0.14400960505008698, -0.025275621563196182, -0.19358369708061218, 0.3831194043159485, -0.01962616667151451, -0.10652212053537369, -0.1297435313463211, 0.10216772556304932, 0.31449466943740845, 0.15381821990013123, 0.11006410419940948, 0.26439839601516724, -0.29233282804489136, -0.09077209234237671, -0.0146024189889431, -0.029433881863951683, -0.10853450000286102, 0.23070888221263885, -0.0005776239559054375, -0.09028041362762451, -0.3135187029838562, -0.1286616027355194, -0.48686638474464417, -0.012316267937421799, 0.4563109278678894, -0.008552022278308868, 0.06905379146337509, -0.31434008479118347, 0.17187060415744781, -0.059387724846601486, 0.1441730409860611, 0.27630510926246643, 0.03710293024778366, 0.29935216903686523, 0.05358785390853882, -0.2600458860397339, 0.29267099499702454, 0.1629614531993866, 0.00875081866979599, -0.3524026870727539, -0.03554004430770874, 0.38412949442863464, 0.06879289448261261, 0.017770379781723022, -0.4300268888473511, -0.19687286019325256, -0.13866594433784485, -0.23033662140369415, 0.019821688532829285, -0.1094498261809349, 0.14219845831394196, 0.19352978467941284, -0.31542664766311646, 0.06368975341320038, -0.1702122539281845, 0.25849759578704834, -0.0560174398124218, 0.07551394402980804, -0.056364018470048904, -0.3320428431034088, 0.15612387657165527, -0.08694431185722351, 0.20712493360042572, -0.3067258298397064, -0.2618136703968048, -0.07608132809400558, -0.18702439963817596, -0.32791805267333984, -0.12218558043241501, 0.07976756989955902, 0.5333513617515564, -0.02397056668996811, 0.11191491782665253, -0.20322567224502563, 0.12783661484718323, 0.11220255494117737, -0.12691181898117065, -0.05481768399477005, 0.31380489468574524, 0.016367167234420776, -0.03812255337834358, 0.07360775768756866, 0.11643095314502716, -0.1875264197587967, -0.07984015345573425, -0.1147957518696785, -0.43371427059173584, 0.30684006214141846, -0.30319052934646606, -0.24839618802070618, -0.2672502100467682, 0.3024706244468689, 0.07330252230167389, -0.020948272198438644, -0.38311299681663513, 0.14030630886554718, 0.18507827818393707, -0.0008837813511490822, -0.1147686243057251, 0.19726215302944183, 0.10644350945949554, -0.23777003586292267, -0.09218137711286545, 0.2557845413684845, 0.0863930806517601, -0.03704458847641945, 0.07369072735309601, -0.30414795875549316 ]
https://github.com/huggingface/datasets/issues/1838
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
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).
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.34317755699157715, 0.07050642371177673, -0.06830796599388123, 0.13331200182437897, 0.06836714595556259, -0.02041972428560257, 0.035358212888240814, 0.3795068860054016, -0.429474413394928, 0.27444133162498474, -0.2579484283924103, 0.35040077567100525, -0.20843690633773804, -0.09178784489631653, 0.226974219083786, -0.3618195950984955, -0.14128342270851135, 0.19737178087234497, -0.1658695638179779, -0.18006160855293274, 0.04707293212413788, 0.12849180400371552, -0.05396541953086853, -0.4520362615585327, -0.2660464644432068, -0.08072801679372787, -0.11426276713609695, 0.02599850296974182, -0.1803574115037918, -0.03263796865940094, -0.010999996215105057, 0.10458816587924957, 0.002043329179286957, 0.5920300483703613, -0.0001060044378391467, 0.07620120048522949, 0.25634047389030457, -0.19704192876815796, -0.12616616487503052, -0.09200386703014374, 0.22391337156295776, -0.1876973807811737, -0.4069092869758606, 0.016464203596115112, -0.2588905990123749, -0.3076373338699341, 0.08345384895801544, -0.005160711705684662, 0.20929141342639923, 0.3986492156982422, 0.23539158701896667, 0.5247441530227661, 0.34597110748291016, -0.13761942088603973, 0.261565625667572, 0.05995733663439751, -0.18796268105506897, -0.006951281800866127, 0.12805762887001038, 0.16609898209571838, 0.09799426794052124, 0.3711439371109009, -0.06103813648223877, -0.13150623440742493, -0.09253812581300735, 0.0455801822245121, -0.3500027656555176, -0.23853135108947754, 0.0007924223318696022, 0.5430952310562134, 0.6054990887641907, -0.013903830200433731, -0.18671271204948425, -0.13106654584407806, 0.06369850784540176, -0.43263304233551025, 0.08349032700061798, 0.1428719460964203, -0.23880332708358765, 0.13386069238185883, 0.149444118142128, -0.11929818987846375, -0.3330070972442627, 0.43022117018699646, 0.1375623345375061, 0.21578603982925415, -0.1452152281999588, -0.09252551198005676, 0.15935936570167542, -0.17506542801856995, -0.22677884995937347, 0.13491928577423096, 0.08575931191444397, 0.03088868036866188, -0.299776166677475, -0.18996062874794006, 0.04823562130331993, -0.3286363184452057, 0.34310102462768555, -0.10682912170886993, 0.03705830127000809, 0.0968601256608963, -0.19721385836601257, -0.09674470126628876, -0.143196240067482, 0.12444402277469635, -0.19614481925964355, 0.0562930554151535, 0.026355203241109848, -0.07687958329916, -0.03396447375416756, 0.04442818462848663, -0.18014410138130188, 0.005402080714702606, -0.19894415140151978, -0.17564886808395386, 0.00560326874256134, 0.028463132679462433, 0.07304073870182037, 0.025574199855327606, -0.1170153096318245, -0.007727805525064468, -0.05212632566690445, 0.26151710748672485, -0.07376178354024887, 0.19352996349334717, 0.06409405171871185, 0.17936450242996216, -0.06680986285209656, -0.22734352946281433, -0.24117843806743622, 0.20276829600334167, 0.008669719099998474, 0.18342310190200806, 0.2094157487154007, -0.1675248146057129, 0.44419002532958984, -0.07171022891998291, 0.30502957105636597, 0.19252538681030273, 0.2671247720718384, -0.09309667348861694, 0.12177012860774994, 0.32773351669311523, 0.08676183223724365, 0.13704493641853333, -0.018653618171811104, -0.1039518192410469, -0.09375473856925964, 0.1236061379313469, -0.04260704293847084, -0.18356281518936157, -0.3241640031337738, 0.246804878115654, 0.047235675156116486, -0.17240400612354279, -0.26655247807502747, 0.4495431184768677, 0.025436606258153915, 0.011575184762477875, -0.01336241140961647, 0.09123288094997406, -0.46286922693252563, 0.008845023810863495, 0.1388835906982422, 0.06605449318885803, -0.18564285337924957, 0.07948100566864014, -0.009876623749732971, 0.2739852964878082, 0.3011512756347656, 0.33966299891471863, -0.11635079234838486, 0.14940667152404785, -0.05226787179708481, 0.3731701970100403, 0.3246428966522217, -0.54502934217453, -0.45335853099823, 0.10476977378129959, -0.30691981315612793, 0.051934823393821716, 0.25197088718414307, 0.14997035264968872, 0.37376075983047485, -0.08304561674594879, 0.4227798879146576, 0.20344509184360504, 0.011057989671826363, -0.13203388452529907, -0.3299339711666107, -0.210819810628891, 0.07213861495256424, 0.23344427347183228, -0.04651118442416191, -0.14304691553115845, -0.18277734518051147, 0.5555552840232849, 0.21206729114055634, -0.1718606948852539, 0.11728549003601074, 0.32813775539398193, 0.05916036665439606, 0.058818019926548004, -0.017208822071552277, -0.2287878543138504, -0.07493392378091812, -0.12331171333789825, 0.20619267225265503, 0.5123472213745117, 0.30073437094688416, -0.2830672860145569, -0.11932745575904846, -0.2881748378276825, -0.00589354895055294, -0.004929465241730213, 0.24349281191825867, 0.19549748301506042, 0.1445726752281189, 0.05927799642086029, -0.175258070230484, 0.20670801401138306, -0.3404853940010071, 0.08654344081878662, -0.37774649262428284, 0.14741367101669312, -0.07588468492031097, -0.2832171320915222, 0.32211029529571533, 0.07952506840229034, -0.06625178456306458, -0.2212485373020172, 0.11549009382724762, 0.134041428565979, -0.23289307951927185, 0.20997211337089539, -0.06790398806333542, 0.2508222162723541, 0.24302393198013306, -0.20847591757774353, -0.04382776468992233, 0.3286622166633606, -0.037620965391397476, -0.13054589927196503, -0.04505252093076706, -0.05071919411420822, 0.26231521368026733, -0.24464012682437897, -0.018198251724243164, -0.03206654638051987, 0.3046455383300781, -0.08504397422075272, -0.14130446314811707, -0.19665594398975372, 0.29577434062957764, 0.21944637596607208, -0.12822556495666504, -0.006285074166953564, -0.48039329051971436, 0.22966010868549347, 0.34153276681900024, -0.168043315410614, 0.1300330013036728, 0.25494635105133057, -0.28825172781944275, -0.031942497938871384, -0.04856301471590996, -0.1839369237422943, 0.2958204448223114, 0.3423232138156891, 0.18629884719848633, -0.010988021269440651, 0.032456640154123306, -0.2777964174747467, 0.15960970520973206, -0.022955656051635742, 0.01705869659781456, 0.39795392751693726, 0.26679933071136475, 0.10276130586862564, -0.451393187046051, -0.010057955980300903, 0.049609385430812836, 0.2514970004558563, -0.11098431795835495, -0.23173581063747406, -0.2771233320236206, -0.21047309041023254, -0.1024400144815445, -0.13423973321914673, 0.005529431626200676, -0.04016633331775665, 0.2574996054172516, 0.3070296347141266, -0.1106540709733963, 0.1858118325471878, 0.17109082639217377, 0.03871959447860718, 0.15629582107067108, -0.11126285791397095, 0.02104663848876953, 0.001996077597141266, -0.14980803430080414, 0.1764422357082367, 0.13085249066352844, 0.10329797863960266, 0.3310486972332001, -0.056796327233314514, 0.005552031099796295, -0.16061687469482422, -0.5656260848045349, 0.27930670976638794, -0.3847056031227112, 0.08757568895816803, -0.03390280529856682, 0.24602878093719482, 0.15054303407669067, -0.4598917067050934, 0.02922658994793892, 0.08525534719228745, -0.2532883286476135, -0.04718957841396332, -0.18322806060314178, -0.10326271504163742, -0.1788063645362854, -0.4804842472076416, -0.1146157905459404, -0.5522738695144653, 0.19624122977256775, 0.06530629098415375, 0.06348361819982529, 0.4290141463279724, -0.0963236540555954, 0.17652574181556702, 0.06469801068305969, 0.15739408135414124, -0.38181185722351074, -0.29103246331214905, 0.5326829552650452, -0.37730076909065247, -0.423897922039032, -0.09341228008270264, -0.11861880123615265, 0.10722166299819946, -0.001267995685338974, -0.3916935324668884, -0.33132562041282654, -0.1392495185136795, -0.049127247184515, -0.05119295418262482, 0.02050507627427578, 0.2427380383014679, -0.1608286052942276, -0.21024814248085022, -0.1863904595375061, 0.007603198289871216, 0.16238608956336975, 0.17662803828716278, 0.06794147193431854, -0.10427726805210114, 0.1803443431854248, -0.027317646890878677, 0.23209945857524872, 0.3803941011428833, -0.130820631980896, 0.23891809582710266, -0.12932851910591125, 0.20535758137702942, -0.21617405116558075, -0.15011879801750183, 0.3080953359603882, 0.2239319086074829, 0.10043440759181976, 0.4423481822013855, 0.08397021889686584, -0.006821667775511742, 0.04870608448982239, -0.2918667197227478, -0.04601353034377098, -0.2875134348869324, 0.20974338054656982, 0.33042845129966736, 0.09423620998859406, -0.039319779723882675, -0.13844047486782074, -0.25836652517318726, -0.3234784007072449, 0.1980765163898468, 0.23724935948848724, -0.11271842569112778, -0.07326541841030121, -0.48056262731552124, 0.3063942790031433, -0.6605842113494873, 0.04691345989704132, 0.1685170978307724, 0.23971766233444214, -0.2350107729434967, -0.05481242388486862, -0.0903000682592392, 0.03486194089055061, 0.5300663113594055, -0.23909640312194824, -0.11947612464427948, 0.1587282419204712, 0.18214745819568634, -0.16536341607570648, 0.3114033043384552, -0.22986739873886108, -0.22696031630039215, 0.29780420660972595, 0.473563015460968, -0.3214167356491089, 0.006511401385068893, 0.35847947001457214, 0.35828694701194763, 0.07073579728603363, -0.03159729391336441, -0.16296571493148804, -0.5779342651367188, -0.16531479358673096, -0.10914187133312225, 0.22320222854614258, 0.2961622476577759, 0.2642086148262024, -0.2336869239807129, 0.23931556940078735, -0.1497083306312561, 0.3835008442401886, -0.12889239192008972, 0.1693980097770691, 0.4644761383533478, 0.19346454739570618, -0.026081107556819916, -0.0012998050078749657, 0.16904832422733307, 0.18431273102760315, 0.1255096048116684, -0.3187142610549927, 0.09650685638189316, -0.41570767760276794, 0.0775485560297966, 0.11776824295520782, -0.008136674761772156, 0.21318380534648895, -0.31962060928344727, 0.33372098207473755, -0.2375830113887787, 0.48724713921546936, 0.3090243935585022, 0.03804701939225197, -0.3609592914581299, -0.22621449828147888, 0.39784494042396545, 0.020064301788806915, 0.16308721899986267, 0.6163818836212158, 0.17523804306983948, -0.25172141194343567, 0.20078608393669128, -0.11263874173164368, 1.0684711933135986, 0.004505757242441177, 0.14938168227672577, 0.4984112083911896, 0.1519501507282257, 0.45577511191368103, -0.4085037112236023, 0.09112882614135742, 0.3247399628162384, -0.2284526228904724, 0.04704029858112335, 0.13970398902893066, -0.1672050952911377, -0.08585071563720703, -0.49164247512817383, -0.06979768723249435, -0.020287856459617615, -0.09104689955711365, 0.030360564589500427, 0.5705029368400574, 0.052748359739780426, -0.4545190930366516, -0.40494176745414734, 0.23123303055763245, 0.232930526137352, 0.11132939159870148, 0.1414175033569336, -0.16985774040222168, -0.23187771439552307, -0.07954058051109314, -0.39217767119407654, -0.008545629680156708, -0.15243911743164062, -0.103565514087677, -0.07071611285209656, -0.3387397527694702, 0.14035196602344513, 0.20513466000556946, 0.4466010630130768, 0.06534972041845322, -0.2453504502773285, 0.1592051386833191, -0.35439109802246094, -0.20519283413887024, 0.020993158221244812, -0.17987671494483948, 0.36633479595184326, -0.3109210431575775, 0.033989131450653076, 0.2256440371274948, 0.10664087533950806, -0.22489286959171295, -0.1531497687101364, -0.28632012009620667, -0.11657154560089111, -0.12289627641439438, 0.04175005853176117, 0.43275946378707886, -0.2238215208053589, -0.14104948937892914, 0.20169000327587128, -0.00934184342622757, -0.3379736840724945, -0.07021510601043701, 0.18146753311157227, -0.16633744537830353, -0.013168658129870892, 0.24019291996955872, 0.33086109161376953, -0.04178974777460098, 0.467146635055542, 0.27511435747146606, -0.1293351650238037, -0.24958345293998718, -0.22516688704490662, -0.06196700036525726, -0.293313592672348, 0.023881632834672928, 0.142777681350708, 0.02414095401763916, 0.052079811692237854, 0.5436134338378906, 0.007055545691400766, -0.10380816459655762, -0.17917416989803314, 0.017618097364902496, -0.4704025983810425, 0.06027327477931976, -0.13826453685760498, 0.11040689051151276, -0.07395456731319427, 0.49508562684059143, -0.0599418543279171, 0.20715542137622833, -0.4044065475463867, 0.02805258333683014, -0.10699137300252914, 0.188123419880867, 0.32106813788414, -0.153108149766922, 0.37616240978240967, -0.009805094450712204, 0.1706487238407135, 0.092927947640419, -0.18388980627059937, -0.253386914730072, -0.23445075750350952, 0.06262025982141495, 0.1027790755033493, -0.08437427878379822, 0.0830773115158081, -0.1179245188832283, -0.28848975896835327, -0.030962888151407242, 0.33035317063331604, 0.07960712909698486, -0.063919797539711, -0.008284129202365875, 0.01026682835072279, -0.021512601524591446, 0.13275302946567535, -0.038554802536964417, 0.12752452492713928, 0.2622136175632477, 0.08459940552711487, -0.026937589049339294, 0.07923467457294464, -0.1881307065486908, -0.11152218282222748, 0.21778720617294312, 0.1796780526638031, -0.22911182045936584, 0.23723678290843964, -0.11429501324892044, -0.09210067242383957, 0.15452684462070465, 0.17131337523460388, -0.11870225518941879, -0.19748632609844208, 0.0427708774805069, 0.28520461916923523, 0.2801288068294525, -0.3212324380874634, -0.024203412234783173, 0.12203735113143921, -0.04266020655632019, 0.2153821587562561, 0.0679902508854866, 0.024606764316558838, 0.08513125777244568, 0.08556441962718964, 0.06167902424931526, 0.05120758339762688, 0.02909908816218376, 0.10722185671329498, 0.0947461947798729, 0.05217742174863815, 0.013673266395926476, -0.0881626233458519, -0.023683764040470123, 0.14385844767093658, -0.0494966097176075, -0.04202956706285477, 0.4759683310985565, 0.0604071281850338, 0.020889095962047577, 0.15288780629634857, -0.08183442056179047, -0.17961212992668152, 0.2707374095916748, 0.14823465049266815, 0.3688293993473053, -0.01021004468202591, 0.5753254294395447, 0.078044593334198, -0.08323488384485245, -0.03231965750455856, 0.3308321535587311, -0.030084121972322464, -0.10516037046909332, -0.2205190360546112, -0.08473937958478928, -0.17597568035125732, -0.0009996071457862854, 0.176751047372818, -0.0995975062251091, -0.361855149269104, 0.20245307683944702, -0.17533238232135773, -0.010282259434461594, -0.11822593212127686, 0.03620130568742752, 0.02175101637840271, -0.14540699124336243, 0.3191005289554596, 0.17872218787670135, -0.15709799528121948, 0.09542533755302429, 0.3117290735244751, 0.3932821750640869, -0.03461785241961479, -0.03258455917239189, 0.37844017148017883, -0.007103953510522842, -0.04266844689846039, -0.10957032442092896, 0.365269273519516, 0.30005478858947754, -0.1450001448392868, 0.2046089768409729, 0.17622649669647217, -0.31389909982681274, -0.010108131915330887, 0.01981935277581215, -0.09884345531463623, -0.21416065096855164, -0.1133592277765274, -0.04545047879219055, 0.027653753757476807, -0.42618682980537415, -0.2730330228805542, -0.4859865605831146, 0.26975974440574646, 0.4382813572883606, -0.1422920674085617, 0.05457941070199013, -0.08690141141414642, 0.13180813193321228, -0.3137733042240143, 0.3943660259246826, 0.3168160319328308, 0.13923540711402893, 0.09830613434314728, -0.45399829745292664, -0.44401711225509644, 0.33148854970932007, -0.19362470507621765, -0.30716368556022644, -0.169974222779274, 0.2537255883216858, 0.47976261377334595, 0.2120731621980667, -0.05764912813901901, -0.6558501720428467, -0.11153382807970047, 0.020235247910022736, -0.3238794207572937, 0.21110139787197113, -0.16958685219287872, 0.1898113489151001, 0.10442270338535309, -0.1229846253991127, -0.0006069382652640343, 0.02849738299846649, 0.1451641023159027, -0.4149312674999237, 0.2897213101387024, -0.20879872143268585, 0.012734372168779373, 0.1909814178943634, -0.07229439914226532, 0.27293092012405396, -0.3162320852279663, -0.13068923354148865, -0.13382723927497864, 0.13076424598693848, -0.24909231066703796, -0.2017727792263031, 0.15915128588676453, 0.37788480520248413, -0.12942156195640564, 0.2802940607070923, -0.10988205671310425, 0.31183940172195435, 0.011589303612709045, -0.027020610868930817, -0.3153155744075775, 0.27752184867858887, -0.10674046725034714, -0.10656590759754181, 0.12288746237754822, 0.49377864599227905, -0.033255115151405334, -0.0316832959651947, -0.2956220507621765, -0.5551958084106445, 0.4337227940559387, -0.5333992838859558, -0.2663988471031189, 0.10709187388420105, 0.036070581525564194, 0.1670573353767395, -0.011262151412665844, -0.7686284780502319, 0.208308607339859, 0.23062188923358917, 0.2212303727865219, -0.18435119092464447, 0.3145616054534912, 0.0685674250125885, -0.057285793125629425, -0.03148658201098442, 0.10106682032346725, 0.13174912333488464, -0.23075082898139954, -0.12340862303972244, -0.30932408571243286 ]
https://github.com/huggingface/datasets/issues/1837
@patrickvonplaten I'd like to take this, if nobody has already done it. I have added datasets before through the datasets sprint, but I feel rusty on the details, so I'll look at the guide as well as similar audio PRs (#1878 in particular comes to mind). If there is any detail I should be aware of please, let me know! Otherwise, I'll try to write up a PR in the coming days.
Add VCTK
## Adding a Dataset - **Name:** *VCTK* - **Description:** *This CSTR VCTK Corpus includes speech data uttered by 110 English speakers with various accents. Each speaker reads out about 400 sentences, which were selected from a newspaper, the rainbow passage and an elicitation paragraph used for the speech accent archive.* - **Paper:** Homepage: https://datashare.ed.ac.uk/handle/10283/3443 - **Data:** https://datashare.ed.ac.uk/handle/10283/3443 - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/vctk 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).
72
Add VCTK ## Adding a Dataset - **Name:** *VCTK* - **Description:** *This CSTR VCTK Corpus includes speech data uttered by 110 English speakers with various accents. Each speaker reads out about 400 sentences, which were selected from a newspaper, the rainbow passage and an elicitation paragraph used for the speech accent archive.* - **Paper:** Homepage: https://datashare.ed.ac.uk/handle/10283/3443 - **Data:** https://datashare.ed.ac.uk/handle/10283/3443 - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/vctk 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 I'd like to take this, if nobody has already done it. I have added datasets before through the datasets sprint, but I feel rusty on the details, so I'll look at the guide as well as similar audio PRs (#1878 in particular comes to mind). If there is any detail I should be aware of please, let me know! Otherwise, I'll try to write up a PR in the coming days.
[ -0.32403188943862915, -0.1614680290222168, -0.08462531119585037, -0.1376853734254837, 0.013386670500040054, -0.16477972269058228, 0.2992485761642456, 0.1571180820465088, -0.3928883373737335, 0.3696942627429962, -0.15356674790382385, 0.20890873670578003, -0.16260890662670135, 0.09880436211824417, 0.18489551544189453, -0.44375261664390564, -0.09217719733715057, 0.16083011031150818, 0.011819800361990929, -0.15695157647132874, 0.16521242260932922, 0.031898461282253265, -0.17243841290473938, -0.16202528774738312, -0.09930720925331116, -0.23039774596691132, -0.046798188239336014, -0.13307803869247437, 0.027149520814418793, -0.06371479481458664, -0.12949617207050323, 0.19291004538536072, -0.021573562175035477, 0.39187562465667725, -0.0001008929029922001, -0.07452695071697235, 0.06646882742643356, -0.22299858927726746, -0.07298583537340164, 0.2104097604751587, 0.0933309942483902, 0.024964310228824615, -0.3809393048286438, -0.1146353930234909, -0.27492043375968933, -0.044236455112695694, -0.08821366727352142, -0.07902538031339645, 0.2854572832584381, 0.5214914679527283, 0.28068655729293823, 0.3199213743209839, 0.010572925209999084, 0.0191396065056324, 0.2294827103614807, 0.13291072845458984, -0.20771491527557373, -0.15228912234306335, 0.2335393875837326, 0.26277562975883484, -0.16177138686180115, 0.3836030960083008, -0.05772349238395691, -0.013985688798129559, -0.04873138666152954, 0.0029512345790863037, -0.30044010281562805, -0.2239903062582016, 0.041704390197992325, 0.5147066116333008, 0.6199712157249451, -0.1641312688589096, -0.23348113894462585, -0.18683403730392456, 0.04387672245502472, -0.5415114164352417, -0.05519215017557144, -0.09334605187177658, -0.3210928738117218, 0.17979750037193298, -0.08450394868850708, 0.016265124082565308, -0.16809380054473877, 0.07838145643472672, 0.16208335757255554, -0.15729588270187378, -0.10678950697183609, -0.14168621599674225, 0.07473208755254745, -0.16445401310920715, -0.14526185393333435, 0.10530054569244385, 0.15557262301445007, 0.11843432486057281, -0.48570218682289124, -0.2536987066268921, 0.27244648337364197, -0.2773660123348236, 0.15784156322479248, 0.05346206948161125, 0.05823856219649315, 0.2336740493774414, -0.4048553705215454, 0.13304510712623596, -0.07940353453159332, 0.1152251809835434, -0.11607316136360168, -0.13400332629680634, 0.15784943103790283, -0.3744256794452667, -0.06588481366634369, 0.05937932804226875, -0.018779059872031212, -0.09325407445430756, -0.06394527107477188, 0.05081554502248764, -0.2572847604751587, -0.08559107035398483, -0.16773995757102966, 0.14646273851394653, 0.07019908726215363, 0.1232912614941597, -0.09429781138896942, 0.18566282093524933, 0.16590899229049683, 0.3768751323223114, -0.012271389365196228, 0.2360280454158783, -0.10371416807174683, -0.3146480619907379, -0.17192471027374268, 0.22066634893417358, 0.021523550152778625, 0.05493827164173126, 0.21104401350021362, -0.04573991149663925, 0.20686852931976318, 0.05101761221885681, 0.22526226937770844, 0.05206230282783508, -0.08324772864580154, 0.11232833564281464, 0.15633457899093628, -0.0009106742218136787, 0.010617837309837341, 0.002790294587612152, -0.1640014499425888, 0.03173542767763138, -0.19169165194034576, -0.011677058413624763, 0.11022427678108215, -0.17231661081314087, -0.38091161847114563, 0.2576805055141449, -0.054759539663791656, -0.18660134077072144, -0.2976416051387787, 0.7335055470466614, 0.04204393923282623, -0.24592742323875427, 0.02158282697200775, 0.0343448743224144, -0.3365768790245056, -0.04487774148583412, 0.23245446383953094, 0.13440173864364624, -0.6248862147331238, 0.053410738706588745, -0.12384635210037231, 0.06810928136110306, 0.10271339118480682, 0.45256510376930237, -0.08207337558269501, 0.19402411580085754, -0.08953016996383667, 0.24788448214530945, 0.057570360600948334, -0.37124359607696533, -0.1117030680179596, 0.16798344254493713, -0.2668701708316803, 0.01369166374206543, 0.08594194054603577, -0.08420881628990173, 0.4507216513156891, -0.07846161723136902, -0.020888712257146835, 0.28190115094184875, -0.25174951553344727, 0.1646272838115692, -0.21881137788295746, -0.2511422336101532, 0.010491503402590752, 0.11422987282276154, -0.004704439081251621, -0.08055400848388672, -0.1560574322938919, 0.08827725052833557, 0.0834592878818512, -0.2658669352531433, 0.25279635190963745, 0.1937551349401474, 0.25714385509490967, 0.02316075749695301, -0.04844212159514427, -0.31549084186553955, 0.07342847436666489, -0.1679035723209381, 0.43297141790390015, 0.4364003539085388, 0.13139495253562927, -0.35970908403396606, -0.06922440975904465, -0.22749212384223938, 0.13642096519470215, -0.09935708343982697, 0.2601417303085327, 0.14673233032226562, 0.08145485073328018, 0.11367252469062805, -0.17184145748615265, 0.1387823522090912, -0.05342560261487961, -0.16631469130516052, -0.0599246472120285, 0.11367510259151459, 0.03477763384580612, -0.20818117260932922, 0.1605876386165619, 0.39467236399650574, -0.2061517834663391, -0.02982725203037262, -0.015677500516176224, 0.23259933292865753, -0.27058106660842896, 0.3275775909423828, -0.14920589327812195, 0.20035122334957123, 0.2093285620212555, -0.42861926555633545, -0.002420795150101185, -0.12760388851165771, 0.05354293808341026, -0.06343240290880203, 0.0035370131954550743, 0.18674373626708984, 0.41077375411987305, -0.06400758773088455, -0.010599754750728607, -0.07035161554813385, 0.21533870697021484, 0.024320736527442932, -0.01917175203561783, 0.10917726159095764, 0.07942172884941101, 0.06526155769824982, 0.17942237854003906, -0.2364199310541153, -0.472917377948761, 0.37959176301956177, 0.3142712712287903, -0.18049746751785278, 0.09431782364845276, 0.1606261134147644, -0.2235158383846283, -0.015122424811124802, 0.06373269855976105, -0.2973964214324951, 0.13251715898513794, 0.31112009286880493, 0.155188649892807, -0.22118452191352844, -0.04586806148290634, -0.16272976994514465, 0.14562439918518066, -0.00035087764263153076, -0.19491778314113617, 0.41298043727874756, 0.22704187035560608, 0.06201177462935448, -0.6808937191963196, -0.1994006484746933, 0.0934031531214714, 0.12761558592319489, -0.16781699657440186, -0.08603430539369583, -0.18147233128547668, -0.1740485280752182, -0.010895989835262299, -0.02581895887851715, 0.19295063614845276, 0.01893983781337738, 0.30283403396606445, 0.31055498123168945, -0.31379324197769165, 0.2301902025938034, 0.2489597201347351, 0.4097987413406372, 0.11319117248058319, -0.06431280821561813, 0.0017287284135818481, -0.2542605996131897, -0.0634838417172432, 0.2787269353866577, 0.12131617963314056, 0.19123992323875427, 0.20875154435634613, 0.1764536201953888, 0.17488202452659607, -0.13738903403282166, -0.4145963490009308, 0.2387492060661316, -0.34132134914398193, 0.00797194056212902, -0.06940233707427979, 0.09787601232528687, -0.17181396484375, -0.7790619134902954, -0.21792437136173248, -0.13832245767116547, -0.2500552535057068, 0.15279167890548706, -0.17259421944618225, -0.13609007000923157, -0.2244190275669098, -0.539903461933136, -0.18581081926822662, -0.5183106660842896, 0.189385324716568, -0.13504479825496674, 0.10599833726882935, 0.09524664282798767, 0.009659260511398315, 0.2330259531736374, 0.14134034514427185, 0.11319322884082794, -0.3452678322792053, -0.15867312252521515, 0.22280658781528473, -0.397021621465683, -0.2901292145252228, -0.2215195894241333, -0.23647600412368774, 0.05200309678912163, -0.14291365444660187, -0.3049090504646301, -0.13906845450401306, -0.09872439503669739, 0.3421887755393982, 0.10998719930648804, 0.07388009130954742, 0.2752639651298523, 0.00859127938747406, -0.19460223615169525, -0.1261664181947708, -0.05276111513376236, 0.15621817111968994, 0.25934162735939026, 0.06691370904445648, 0.06946045905351639, 0.19323831796646118, 0.0688919723033905, 0.5097749829292297, 0.16943471133708954, -0.2316507250070572, 0.2302495688199997, -0.1244802251458168, 0.19208569824695587, -0.20087960362434387, -0.03450515866279602, 0.5408467650413513, 0.0635756403207779, 0.020471230149269104, 0.5182234644889832, 0.05821068584918976, -0.30422061681747437, 0.0017093941569328308, 0.03372294455766678, -0.26522302627563477, -0.39247554540634155, 0.16845397651195526, -0.21085478365421295, 0.1546366959810257, -0.06526438891887665, -0.012474067509174347, -0.26464974880218506, -0.10057279467582703, 0.07500341534614563, -0.011882491409778595, 0.003765501081943512, -0.15769438445568085, -0.3396487534046173, 0.22662585973739624, -0.43085309863090515, 0.031249631196260452, 0.17531023919582367, 0.2793825566768646, -0.3082766532897949, -0.0112161785364151, -0.1384623497724533, 0.17524731159210205, 0.3599705696105957, -0.5391638875007629, -0.06724388897418976, 0.06380043923854828, 0.33710813522338867, 0.06658224016427994, 0.17026346921920776, -0.37159860134124756, -0.3208576738834381, 0.05950036272406578, 0.11213348805904388, -0.21730631589889526, 0.1404171586036682, 0.28938090801239014, 0.30824440717697144, 0.08996395766735077, 0.032868891954422, 0.1051105335354805, -0.3371209502220154, -0.13958436250686646, 0.343635231256485, 0.30853235721588135, 0.14006151258945465, -0.1322256177663803, 0.025633856654167175, 0.2318645566701889, 0.004588782787322998, 0.41773366928100586, 0.10099385678768158, 0.11951115727424622, 0.3565436601638794, 0.09851287305355072, 0.046338170766830444, -0.20836879312992096, -0.09203288704156876, 0.08864632248878479, 0.1474287360906601, -0.2144457995891571, 0.11698505282402039, -0.3561486601829529, 0.3259083926677704, 0.2984234392642975, 0.15522994101047516, 0.2170279175043106, -0.2153768241405487, 0.07604989409446716, -0.07445885241031647, 0.38063979148864746, 0.06042604148387909, 0.2939714193344116, -0.07671946287155151, -0.1314910352230072, 0.3155534863471985, -0.08427482843399048, -0.15118105709552765, 0.13096898794174194, 0.08931861817836761, -0.4070754647254944, 0.6459387540817261, -0.18758894503116608, 0.9356837868690491, 0.2464073896408081, -0.03185287117958069, 0.29545700550079346, 0.22328492999076843, 0.36991459131240845, -0.4203752279281616, -0.016772236675024033, 0.05776955187320709, -0.3852388262748718, -0.027050893753767014, 0.08929765969514847, -0.23307761549949646, 0.25865086913108826, -0.3790284991264343, -0.10400234162807465, 0.14934951066970825, 0.1874764859676361, 0.2370477020740509, 0.35778993368148804, 0.12262320518493652, -0.5201830863952637, -0.14614495635032654, 0.3254733085632324, -0.01878545433282852, 0.03697299584746361, 0.23994827270507812, -0.20437392592430115, -0.062048524618148804, -0.10755526274442673, -0.5926947593688965, -0.02142912521958351, -0.15346120297908783, 0.07790857553482056, -0.07988041639328003, -0.251520037651062, 0.30181586742401123, 0.2722022235393524, 0.46138712763786316, 0.26000985503196716, -0.26781511306762695, 0.1303076446056366, 0.3591098487377167, 0.09011002629995346, 0.10987280309200287, -0.020350079983472824, 0.4024013876914978, -0.15143540501594543, -0.2956778109073639, 0.28831496834754944, 0.02748250961303711, -0.2770429849624634, 0.0556216835975647, -0.27682867646217346, 0.0639810711145401, -0.03299619257450104, -0.022888392210006714, 0.37161991000175476, -0.2446906864643097, -0.17803528904914856, 0.20618918538093567, 0.006644157692790031, -0.3690774142742157, 0.2683565616607666, 0.14370417594909668, 0.04756587743759155, -0.02868781052529812, 0.05999515950679779, 0.02081311121582985, -0.14119431376457214, 0.16934654116630554, 0.31540340185165405, -0.21713103353977203, -0.3483686149120331, -0.07281515002250671, -0.026281243190169334, -0.28645336627960205, -0.040397461503744125, 0.04268312826752663, -0.22660565376281738, 0.014927159994840622, 0.3680563271045685, 0.04995490238070488, -0.000022172927856445312, -0.29471179842948914, -0.09635978192090988, -0.38240110874176025, 0.1863562911748886, -0.043593987822532654, 0.33746734261512756, -0.03454333171248436, 0.4095412492752075, -0.06229785457253456, 0.09833467751741409, -0.481291264295578, -0.11458618938922882, -0.029344316571950912, 0.2720745801925659, 0.1739053875207901, -0.2836869955062866, 0.2618156671524048, -0.19468221068382263, 0.20665821433067322, 0.17918486893177032, -0.199945867061615, -0.3258765637874603, -0.2124686986207962, 0.07324632257223129, 0.08419004827737808, -0.11587677896022797, 0.17614977061748505, 0.09838680177927017, -0.2472107708454132, -0.06028042733669281, 0.3939669132232666, 0.016286112368106842, -0.15142099559307098, 0.2642356753349304, -0.2465287744998932, 0.18292294442653656, 0.1478661298751831, -0.17670343816280365, 0.21473394334316254, 0.2623591423034668, 0.14240029454231262, 0.01025595422834158, 0.0822276920080185, -0.15453973412513733, 0.021259166300296783, 0.3134595453739166, 0.14638718962669373, 0.011639237403869629, 0.00929342769086361, -0.013515902683138847, -0.037211280316114426, 0.17159079015254974, 0.319022536277771, 0.011893167160451412, -0.09382317960262299, -0.146246999502182, 0.32652539014816284, 0.3756386637687683, -0.2768609821796417, 0.1263042390346527, -0.020017769187688828, -0.08806625008583069, 0.37890517711639404, 0.10033930838108063, 0.18969500064849854, -0.14689557254314423, 0.2079222947359085, 0.01866808533668518, 0.1588844358921051, -0.4060121178627014, -0.01718456670641899, 0.263442724943161, -0.012259729206562042, -0.01353173516690731, -0.07852090895175934, -0.028850875794887543, 0.145847350358963, 0.18613509833812714, -0.12152855098247528, -0.019349144771695137, 0.04821208864450455, -0.0641295313835144, 0.23726946115493774, -0.0555243045091629, 0.1639496386051178, 0.11759107559919357, -0.078541100025177, 0.40787580609321594, 0.16960448026657104, 0.6201820969581604, -0.11097685992717743, -0.24111269414424896, -0.21268266439437866, 0.24667632579803467, -0.10451996326446533, -0.18580298125743866, -0.1618872880935669, -0.020242102444171906, -0.24880757927894592, -0.11953987926244736, 0.020765341818332672, 0.013765091076493263, 0.11634252965450287, 0.07479475438594818, 0.03547942638397217, -0.2429138720035553, 0.05883099138736725, -0.1936531662940979, 0.3665280044078827, -0.06467209756374359, 0.4387083649635315, 0.1211591362953186, -0.11065390706062317, 0.22842514514923096, 0.25029227137565613, 0.1995282769203186, -0.10677812993526459, -0.2228986620903015, 0.35076257586479187, -0.2664097845554352, -0.07360626012086868, 0.04908733069896698, 0.26398006081581116, 0.08535145223140717, 0.1057012528181076, 0.3539842963218689, 0.2145097702741623, -0.25586679577827454, 0.0036080568097531796, 0.3678492605686188, -0.17509125173091888, -0.2077943980693817, -0.09801585972309113, 0.08915230631828308, 0.03971816599369049, -0.36903899908065796, -0.2461255043745041, -0.2237328290939331, -0.10096417367458344, 0.22537533938884735, -0.2162390649318695, 0.0541403703391552, 0.007854234427213669, 0.15526077151298523, -0.19202837347984314, 0.3436279594898224, 0.3881380558013916, 0.10461647063493729, 0.0448429174721241, -0.13784591853618622, -0.47307565808296204, 0.07702496647834778, 0.1505531221628189, -0.18919971585273743, -0.09796340763568878, 0.22948601841926575, 0.4665675461292267, 0.32718712091445923, -0.3333703875541687, -0.29673072695732117, -0.41195935010910034, 0.20996028184890747, -0.43122127652168274, 0.18671081960201263, -0.11919774115085602, 0.31087055802345276, 0.0913490504026413, -0.2991562485694885, 0.01099938154220581, 0.24116206169128418, 0.1995534896850586, -0.13679450750350952, 0.08876296877861023, -0.07524596154689789, -0.0529208667576313, 0.03558667376637459, 0.0062055643647909164, 0.47716084122657776, -0.25323545932769775, 0.07039979845285416, -0.09335249662399292, -0.02789863385260105, -0.35662633180618286, -0.00135728158056736, 0.20549537241458893, 0.6137755513191223, 0.08595085889101028, 0.08205212652683258, 0.11898567527532578, 0.2242790311574936, 0.3528605103492737, -0.09949073940515518, -0.37016043066978455, 0.3534597158432007, -0.16589555144309998, 0.07226380705833435, 0.028660651296377182, 0.25180473923683167, -0.10304519534111023, 0.10264918953180313, -0.19638091325759888, -0.6933979988098145, 0.30109041929244995, -0.2763129472732544, -0.2035839706659317, 0.021480359137058258, 0.30841386318206787, 0.47724130749702454, -0.07833320647478104, -0.5625443458557129, 0.014045193791389465, 0.07139018177986145, -0.036460407078266144, -0.17863404750823975, 0.312208354473114, -0.050923436880111694, -0.145734965801239, -0.08060295879840851, 0.35422614216804504, 0.12933304905891418, -0.12293508648872375, -0.1891508251428604, -0.42903804779052734 ]
https://github.com/huggingface/datasets/issues/1837
That sounds great @jaketae - let me know if you need any help i.e. feel free to ping me on a first PR :-)
Add VCTK
## Adding a Dataset - **Name:** *VCTK* - **Description:** *This CSTR VCTK Corpus includes speech data uttered by 110 English speakers with various accents. Each speaker reads out about 400 sentences, which were selected from a newspaper, the rainbow passage and an elicitation paragraph used for the speech accent archive.* - **Paper:** Homepage: https://datashare.ed.ac.uk/handle/10283/3443 - **Data:** https://datashare.ed.ac.uk/handle/10283/3443 - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/vctk 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).
24
Add VCTK ## Adding a Dataset - **Name:** *VCTK* - **Description:** *This CSTR VCTK Corpus includes speech data uttered by 110 English speakers with various accents. Each speaker reads out about 400 sentences, which were selected from a newspaper, the rainbow passage and an elicitation paragraph used for the speech accent archive.* - **Paper:** Homepage: https://datashare.ed.ac.uk/handle/10283/3443 - **Data:** https://datashare.ed.ac.uk/handle/10283/3443 - **Motivation:** Important speech dataset - **TFDatasets Implementation**: https://www.tensorflow.org/datasets/catalog/vctk 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 sounds great @jaketae - let me know if you need any help i.e. feel free to ping me on a first PR :-)
[ -0.31359177827835083, -0.2029014676809311, -0.1356343924999237, -0.09008047729730606, -0.09441155195236206, -0.17342624068260193, 0.39514774084091187, 0.24535641074180603, -0.31276005506515503, 0.27071651816368103, -0.10963602364063263, 0.11686690151691437, -0.11426609754562378, 0.1300078183412552, 0.11526274681091309, -0.3554118573665619, -0.16473351418972015, 0.16061674058437347, -0.10795719921588898, -0.1504993438720703, 0.26098141074180603, 0.018786964938044548, -0.040727585554122925, -0.11909517645835876, -0.08603395521640778, -0.17446231842041016, -0.013266671448946, -0.18201062083244324, 0.10017994046211243, 0.049846481531858444, -0.18141046166419983, 0.16220009326934814, -0.06376030296087265, 0.24163131415843964, -0.00010027129610534757, 0.03586968779563904, 0.01987721398472786, -0.24180501699447632, -0.0944005697965622, 0.1208236813545227, 0.19920513033866882, 0.07405264675617218, -0.24533876776695251, -0.17613662779331207, -0.3554415702819824, 0.09689551591873169, -0.039794862270355225, -0.0500369593501091, 0.37169086933135986, 0.5023972392082214, 0.30557841062545776, 0.2836964428424835, -0.09111560881137848, 0.057359274476766586, 0.23097074031829834, 0.15835972130298615, -0.19940398633480072, -0.19832296669483185, 0.18938203155994415, 0.21777872741222382, -0.2660371959209442, 0.42281875014305115, -0.08625176548957825, -0.07377837598323822, -0.1338099241256714, 0.03064688667654991, -0.11968910694122314, -0.17188291251659393, -0.009095906279981136, 0.47644639015197754, 0.4801933169364929, -0.04935312271118164, -0.1768515408039093, -0.1964566856622696, 0.01435023918747902, -0.31323403120040894, -0.1130322813987732, -0.09838944673538208, -0.31305256485939026, 0.2490040510892868, 0.030621126294136047, -0.04272932559251785, -0.213936448097229, 0.13052232563495636, 0.07629446685314178, 0.011998102068901062, -0.10094456374645233, -0.17056486010551453, -0.02242172509431839, -0.1672099232673645, -0.12549777328968048, 0.1463167816400528, 0.1824587881565094, 0.07580683380365372, -0.42779436707496643, -0.2661473751068115, 0.18966999650001526, -0.3929664194583893, 0.20418177545070648, 0.09770378470420837, 0.18332594633102417, 0.27590271830558777, -0.3698583245277405, 0.1319359689950943, -0.01960904896259308, 0.152890145778656, -0.05006996542215347, -0.20432956516742706, 0.15817900002002716, -0.377809077501297, -0.18658402562141418, 0.08826650679111481, -0.07695746421813965, -0.05693500116467476, -0.03365383669734001, 0.05074315890669823, -0.2774156928062439, -0.018969349563121796, -0.18283289670944214, 0.12280198931694031, 0.09191767126321793, 0.1462727189064026, -0.06712538003921509, 0.25028669834136963, 0.12145587056875229, 0.37503474950790405, 0.031614892184734344, 0.1339319497346878, -0.06979075819253922, -0.39580264687538147, -0.21318210661411285, 0.18560364842414856, 0.0026723667979240417, 0.0385291650891304, 0.17136336863040924, -0.10633663088083267, 0.18465420603752136, 0.03504904359579086, 0.1882571578025818, 0.05710114538669586, -0.11366717517375946, -0.00711185485124588, 0.21160167455673218, -0.0650099515914917, 0.034201622009277344, -0.05943412333726883, -0.05518927052617073, 0.04714757204055786, -0.15131691098213196, -0.026590704917907715, 0.031236032024025917, -0.10044900327920914, -0.46051421761512756, 0.30124837160110474, 0.01772521436214447, -0.25990036129951477, -0.2623463571071625, 0.7171257734298706, 0.06734450161457062, -0.14630742371082306, 0.032335102558135986, 0.15125417709350586, -0.21006663143634796, -0.05087143927812576, 0.17407822608947754, 0.15841008722782135, -0.540280282497406, 0.02178255468606949, -0.12550139427185059, 0.09864870458841324, 0.09812244772911072, 0.4815715253353119, -0.07884399592876434, 0.17467837035655975, -0.11467592418193817, 0.31278669834136963, 0.02879689261317253, -0.3075055480003357, -0.0431632325053215, 0.20028705894947052, -0.24276097118854523, 0.006872296333312988, 0.12430457770824432, -0.07090236991643906, 0.4216408133506775, -0.022607408463954926, -0.08715829253196716, 0.31325945258140564, -0.17383112013339996, 0.1811167448759079, -0.15735867619514465, -0.33552634716033936, 0.01802212931215763, 0.12433844804763794, 0.00422996561974287, -0.0968971699476242, -0.151252880692482, 0.06551825255155563, 0.14478692412376404, -0.3025968372821808, 0.22673672437667847, 0.12334656715393066, 0.17227429151535034, 0.09515798091888428, 0.0036674588918685913, -0.27293121814727783, 0.032972659915685654, -0.2434874325990677, 0.41551661491394043, 0.3565230965614319, 0.08914638310670853, -0.40215474367141724, -0.07867083698511124, -0.2524617314338684, 0.24313274025917053, -0.02730054222047329, 0.33755362033843994, 0.08018435537815094, 0.07822370529174805, 0.0992870032787323, -0.1672990769147873, 0.21285176277160645, -0.2080102264881134, -0.17005786299705505, 0.026537366211414337, 0.17865416407585144, -0.000796144362539053, -0.19912907481193542, 0.11899279057979584, 0.30261075496673584, -0.2216370403766632, -0.08143816888332367, 0.04126530885696411, 0.12820470333099365, -0.3350171446800232, 0.30802616477012634, -0.12547487020492554, 0.20345446467399597, 0.06776294857263565, -0.3715628981590271, -0.08257012814283371, -0.001124037429690361, -0.012245707213878632, -0.07296885550022125, 0.0861821323633194, 0.17860129475593567, 0.45980966091156006, -0.04772855341434479, 0.02404192090034485, -0.08101724833250046, 0.24506962299346924, -0.07246799767017365, 0.040999025106430054, -0.056967802345752716, 0.13677431643009186, 0.03543168306350708, 0.12985652685165405, -0.2070426195859909, -0.48389220237731934, 0.37116390466690063, 0.3321950137615204, -0.021550487726926804, 0.22175060212612152, 0.21453875303268433, -0.24331960082054138, 0.004167579114437103, 0.02596292458474636, -0.34409621357917786, 0.04923650994896889, 0.2859393060207367, 0.14242571592330933, -0.19852615892887115, 0.04951862990856171, -0.18197539448738098, 0.18921726942062378, -0.11141012609004974, -0.14858998358249664, 0.38329845666885376, 0.16674727201461792, 0.030106883496046066, -0.6629035472869873, -0.16878946125507355, -0.005433082580566406, 0.038700446486473083, -0.14218269288539886, 0.04904539883136749, -0.16512157022953033, -0.2114197313785553, 0.03288618475198746, 0.004718080163002014, 0.20117425918579102, 0.0653204470872879, 0.314389169216156, 0.2804604172706604, -0.34851956367492676, 0.1220623329281807, 0.2489374727010727, 0.37009963393211365, 0.18557575345039368, -0.0652962327003479, -0.07482737302780151, -0.3271682560443878, -0.01514437049627304, 0.3038368821144104, 0.0531487800180912, 0.11881247162818909, 0.19460853934288025, 0.033627793192863464, 0.16825026273727417, -0.12189780175685883, -0.37071746587753296, 0.24349278211593628, -0.34476804733276367, -0.03246033936738968, -0.03459862992167473, 0.1605588048696518, -0.2532390356063843, -0.6958919763565063, -0.2130846083164215, -0.15392455458641052, -0.29126110672950745, 0.07790662348270416, -0.09105394780635834, -0.11121886968612671, -0.2269645780324936, -0.5343694686889648, -0.1877427101135254, -0.47457870841026306, 0.12276741862297058, -0.11891541630029678, 0.16045711934566498, 0.14027395844459534, -0.013530958443880081, 0.24423623085021973, 0.0641837865114212, 0.23749235272407532, -0.35777491331100464, -0.10211953520774841, 0.21890895068645477, -0.4256824851036072, -0.29754722118377686, -0.26308244466781616, -0.27188926935195923, 0.12808182835578918, -0.19411450624465942, -0.3128374516963959, -0.06688786298036575, -0.10419101268053055, 0.2720159888267517, 0.028967153280973434, 0.01434476487338543, 0.2745601236820221, -0.06831531226634979, -0.23909175395965576, -0.1120453029870987, 0.06252460181713104, 0.23465898633003235, 0.2279709130525589, -0.07341594994068146, 0.048014286905527115, 0.125296488404274, 0.0702235996723175, 0.43199193477630615, 0.0898922011256218, -0.22711056470870972, 0.2910238802433014, -0.11846798658370972, 0.0951235368847847, -0.15221743285655975, -0.05858645215630531, 0.44330093264579773, 0.092023566365242, 0.028627008199691772, 0.5834928154945374, 0.0006577838212251663, -0.3572385907173157, -0.028043512254953384, -0.0758245512843132, -0.33860376477241516, -0.4225779175758362, 0.2280067652463913, -0.23048244416713715, 0.14434906840324402, -0.11304335296154022, -0.033963173627853394, -0.2176453173160553, -0.12872938811779022, 0.16177590191364288, 0.04230118170380592, -0.04230243340134621, -0.24364042282104492, -0.21295255422592163, 0.09287522733211517, -0.329299658536911, 0.08342482149600983, 0.2284993976354599, 0.12968555092811584, -0.3030813932418823, -0.021350733935832977, -0.12254518270492554, 0.14148646593093872, 0.3529275059700012, -0.3968215584754944, -0.10041902214288712, 0.03687229007482529, 0.20228761434555054, 0.0186740905046463, 0.22715649008750916, -0.2876046895980835, -0.3612655997276306, 0.10548058152198792, 0.13828469812870026, -0.30431461334228516, 0.11706387996673584, 0.24826785922050476, 0.27767980098724365, 0.020438820123672485, -0.05069529637694359, 0.1264333873987198, -0.22744399309158325, -0.09634338319301605, 0.2787601947784424, 0.28676268458366394, 0.10535160452127457, -0.030710332095623016, -0.02975897490978241, 0.12091346830129623, -0.04171507805585861, 0.3841803967952728, 0.16418471932411194, 0.06530927121639252, 0.29809513688087463, 0.018140636384487152, -0.02665913663804531, -0.07623229920864105, -0.2125672549009323, 0.09041917324066162, 0.23879900574684143, -0.13721662759780884, -0.0479959100484848, -0.3527508080005646, 0.3051827847957611, 0.1989980936050415, 0.0893634557723999, 0.29389381408691406, -0.2808287441730499, 0.0002920776605606079, -0.040726542472839355, 0.3377617597579956, 0.023879677057266235, 0.36018168926239014, -0.0704166516661644, -0.151983380317688, 0.2793177366256714, -0.10214827954769135, -0.09845951199531555, 0.08744173496961594, 0.060287002474069595, -0.4435400068759918, 0.5891786217689514, -0.15431621670722961, 0.9089157581329346, 0.21896985173225403, 0.0170860905200243, 0.25763583183288574, 0.2845868766307831, 0.36369040608406067, -0.28790923953056335, -0.03001643903553486, -0.020288504660129547, -0.3567585349082947, -0.034753575921058655, 0.160272479057312, -0.20410993695259094, 0.313128799200058, -0.4511929750442505, -0.1482900232076645, 0.025102436542510986, 0.19135090708732605, 0.16694781184196472, 0.3226735591888428, 0.11311260610818863, -0.5255576372146606, -0.17320869863033295, 0.3198128640651703, -0.03180580586194992, 0.014851156622171402, 0.18074434995651245, -0.17164504528045654, -0.06966550648212433, -0.06451894342899323, -0.5459277033805847, -0.010036814957857132, -0.1937236338853836, 0.04141220077872276, -0.08679758012294769, -0.19172163307666779, 0.26148754358291626, 0.20964492857456207, 0.5084465146064758, 0.2131526917219162, -0.18731285631656647, 0.061126772314310074, 0.37046465277671814, -0.0005318596959114075, 0.10795240104198456, 0.031178440898656845, 0.4211050271987915, -0.161596417427063, -0.2571648359298706, 0.3356388211250305, 0.10222708433866501, -0.3018266260623932, 0.016407042741775513, -0.20703783631324768, 0.026334170252084732, -0.07421129196882248, -0.047995783388614655, 0.39408671855926514, -0.29428642988204956, -0.1266002506017685, 0.24836412072181702, 0.06365399062633514, -0.2801579236984253, 0.23407290875911713, 0.214524507522583, 0.01638670265674591, 0.004316478967666626, 0.05062255635857582, 0.14710733294487, -0.11797959357500076, 0.17858204245567322, 0.310927152633667, -0.2453882098197937, -0.3903980255126953, -0.1337333619594574, -0.0372016504406929, -0.2979812026023865, 0.004086479544639587, 0.03272414579987526, -0.29139280319213867, -0.01423705369234085, 0.3977641761302948, 0.052775006741285324, 0.09631618857383728, -0.2699151635169983, -0.059430427849292755, -0.37765249609947205, 0.15262922644615173, -0.050014425069093704, 0.22758159041404724, 0.10176576673984528, 0.31049397587776184, -0.10884179174900055, 0.07757563889026642, -0.5076881051063538, -0.15577320754528046, -0.09807389974594116, 0.2690622806549072, 0.14999157190322876, -0.2598511278629303, 0.32129812240600586, -0.12100213021039963, 0.27757343649864197, 0.2111947238445282, -0.13814261555671692, -0.3977201282978058, -0.22860978543758392, 0.04259822517633438, 0.07852408289909363, -0.0564250648021698, 0.19786885380744934, 0.0970894992351532, -0.15229013562202454, -0.059474121779203415, 0.3948984742164612, 0.026705004274845123, -0.06405235826969147, 0.27575114369392395, -0.20312240719795227, 0.14293250441551208, 0.039166972041130066, -0.17971985042095184, 0.19957956671714783, 0.3040080666542053, 0.042110271751880646, -0.023622190579771996, 0.052310895174741745, -0.15997299551963806, 0.015615727752447128, 0.2785511910915375, 0.1591428816318512, 0.09117339551448822, 0.03334172070026398, 0.011888794600963593, -0.10418454557657242, 0.16926293075084686, 0.2614818811416626, -0.07039406895637512, -0.07439284026622772, -0.07250581681728363, 0.33817043900489807, 0.4178316295146942, -0.29701530933380127, 0.21863503754138947, -0.028761006891727448, -0.12670475244522095, 0.445568323135376, 0.18585719168186188, 0.09130555391311646, -0.17364059388637543, 0.23639869689941406, -0.0006351768970489502, 0.055627547204494476, -0.28833943605422974, -0.06279456615447998, 0.29784032702445984, 0.0494900643825531, -0.08087316155433655, -0.08899033814668655, 0.010366678237915039, 0.1753256767988205, 0.1409883201122284, -0.06307661533355713, -0.03073117509484291, 0.1002279669046402, 0.0743015706539154, 0.2203669399023056, 0.1439199298620224, 0.14918193221092224, 0.17895057797431946, -0.07416032254695892, 0.42789724469184875, 0.10565650463104248, 0.5779935717582703, 0.03773673251271248, -0.24221593141555786, -0.13452428579330444, 0.28461378812789917, -0.14348268508911133, -0.13900889456272125, -0.2051222324371338, 0.007897727191448212, -0.2735423445701599, -0.17610731720924377, 0.09806600958108902, -0.03381776437163353, 0.042220186442136765, 0.1669009029865265, 0.09473522007465363, -0.162767231464386, 0.05959730222821236, -0.19496163725852966, 0.43108072876930237, -0.08275459706783295, 0.4186505079269409, 0.08474458754062653, -0.051648616790771484, 0.20591460168361664, 0.301166296005249, 0.12842515110969543, -0.07320868968963623, -0.18969111144542694, 0.34813418984413147, -0.3077971041202545, -0.09783254563808441, -0.03591867536306381, 0.19711390137672424, 0.13579940795898438, 0.07809849828481674, 0.350654274225235, 0.25265684723854065, -0.31120890378952026, 0.006893348880112171, 0.33364203572273254, -0.1412949562072754, -0.17269562184810638, -0.13459555804729462, 0.18310639262199402, 0.07954014837741852, -0.43023282289505005, -0.26783785223960876, -0.34920284152030945, -0.09843385219573975, 0.19776180386543274, -0.2554282546043396, 0.05898817628622055, -0.024462342262268066, 0.1720590591430664, -0.15964524447917938, 0.3929547965526581, 0.28372716903686523, 0.14505255222320557, 0.11311198770999908, -0.18266263604164124, -0.30593979358673096, 0.11123090982437134, 0.13255275785923004, -0.16819210350513458, -0.10267488658428192, 0.2417829930782318, 0.43343037366867065, 0.36085566878318787, -0.25984758138656616, -0.31306517124176025, -0.42218756675720215, 0.14063486456871033, -0.39727720618247986, 0.20493420958518982, -0.19430477917194366, 0.30619099736213684, 0.12390653043985367, -0.2440885454416275, -0.003342999145388603, 0.18472960591316223, 0.24054519832134247, -0.12634408473968506, 0.05591811239719391, -0.0376945361495018, -0.02318757027387619, 0.0744561180472374, -0.08755502104759216, 0.4160724878311157, -0.2985226511955261, 0.1273748278617859, -0.018521610647439957, -0.09088116139173508, -0.41275933384895325, 0.09186875820159912, 0.28574082255363464, 0.48480546474456787, 0.08880864828824997, 0.09007637202739716, 0.14291417598724365, 0.22588826715946198, 0.35208946466445923, -0.13153648376464844, -0.20651015639305115, 0.3613702654838562, -0.10262146592140198, 0.0066003501415252686, -0.09532548487186432, 0.3508928418159485, -0.1021089032292366, 0.015100948512554169, -0.11702287197113037, -0.7033883929252625, 0.20561231672763824, -0.32499629259109497, -0.2951778173446655, 0.11375835537910461, 0.2534714341163635, 0.4059821367263794, -0.03704332560300827, -0.48261889815330505, 0.019770890474319458, 0.0927819311618805, -0.015729760751128197, -0.07632353156805038, 0.22840246558189392, 0.08689910173416138, -0.11178465932607651, -0.11073802411556244, 0.29597795009613037, 0.16668325662612915, -0.048903804272413254, -0.25996488332748413, -0.4588920772075653 ]
https://github.com/huggingface/datasets/issues/1835
Hey @patrickvonplaten, I have managed to download the zip on [here]( http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/download.html) and successfully uploaded all the files on a hugging face dataset: https://huggingface.co/datasets/ksbai123/Chime4 However I am getting this error when trying to use the dataset viewer: ![Screenshot 2023-12-27 at 18 40 59](https://github.com/huggingface/datasets/assets/35923560/a5a9ed3d-8dbd-41c4-b83a-4e80728b1450) Can you take a look and let me know if I have missed any files please
Add CHiME4 dataset
## Adding a Dataset - **Name:** Chime4 - **Description:** Chime4 is a dataset for automatic speech recognition. It is especially useful for evaluating models in a noisy environment and for multi-channel ASR - **Paper:** Dataset comes from a channel: http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/ . Results paper: - **Data:** http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/download.html - **Motivation:** So far there are very little datasets for speech in `datasets`. Only `lbirispeech_asr` so far. 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).
59
Add CHiME4 dataset ## Adding a Dataset - **Name:** Chime4 - **Description:** Chime4 is a dataset for automatic speech recognition. It is especially useful for evaluating models in a noisy environment and for multi-channel ASR - **Paper:** Dataset comes from a channel: http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/ . Results paper: - **Data:** http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/download.html - **Motivation:** So far there are very little datasets for speech in `datasets`. Only `lbirispeech_asr` so far. 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 @patrickvonplaten, I have managed to download the zip on [here]( http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/download.html) and successfully uploaded all the files on a hugging face dataset: https://huggingface.co/datasets/ksbai123/Chime4 However I am getting this error when trying to use the dataset viewer: ![Screenshot 2023-12-27 at 18 40 59](https://github.com/huggingface/datasets/assets/35923560/a5a9ed3d-8dbd-41c4-b83a-4e80728b1450) Can you take a look and let me know if I have missed any files please
[ -0.3119266629219055, -0.13228090107440948, -0.04796850308775902, 0.2699020802974701, 0.26339641213417053, 0.31428059935569763, 0.007615229580551386, 0.24308975040912628, 0.1159840077161789, 0.29122933745384216, -0.2229536920785904, -0.08760358393192291, -0.4207729697227478, 0.3496352434158325, 0.03793966397643089, -0.2134736180305481, -0.015758663415908813, 0.14367084205150604, 0.11318108439445496, -0.04364167898893356, -0.11352629959583282, 0.3465287387371063, 0.034856006503105164, 0.014005683362483978, -0.35702240467071533, -0.2578824758529663, -0.09577900916337967, 0.012060929089784622, -0.37215983867645264, -0.4136473834514618, 0.10544667392969131, 0.020216548815369606, 0.13378198444843292, 0.5812034010887146, -0.00011168149649165571, -0.00036659836769104004, 0.3452832102775574, -0.016200680285692215, -0.3210603892803192, -0.32199060916900635, 0.0032370388507843018, -0.23890084028244019, -0.043394941836595535, 0.15055042505264282, -0.1978333294391632, -0.1606634259223938, 0.27222520112991333, -0.4404947757720947, 0.22688928246498108, 0.45268571376800537, 0.22544172406196594, 0.23824752867221832, 0.24102333188056946, -0.3716108500957489, 0.13071024417877197, 0.10830521583557129, -0.0781937837600708, 0.1306966245174408, 0.08581776916980743, 0.23773330450057983, -0.08202346414327621, 0.28475919365882874, 0.14843961596488953, -0.09458199143409729, 0.3206191658973694, -0.0341644212603569, -0.2219393253326416, -0.27461469173431396, 0.01534021832048893, 0.19545623660087585, 0.5969693064689636, -0.1718403846025467, -0.22160600125789642, -0.3247281014919281, 0.1013331338763237, -0.24383530020713806, 0.2414948046207428, 0.11297118663787842, -0.17695146799087524, 0.15024498105049133, -0.24733929336071014, -0.16286222636699677, -0.1254645437002182, 0.2819214463233948, 0.09315647184848785, -0.1765778660774231, -0.231188103556633, 0.03629102185368538, 0.25923800468444824, -0.23561279475688934, 0.043898627161979675, 0.0982741117477417, 0.03019653633236885, 0.20169085264205933, -0.25894877314567566, 0.002626359462738037, 0.14000335335731506, 0.3466738760471344, 0.053387679159641266, -0.04703069105744362, -0.2940135896205902, -0.08896803855895996, -0.14670182764530182, 0.06559021770954132, 0.12839685380458832, 0.19874507188796997, 0.15726545453071594, -0.15560081601142883, 0.17389485239982605, 0.3504585027694702, 0.22439627349376678, -0.1351613700389862, -0.06989780068397522, -0.25906258821487427, -0.25671499967575073, -0.23025792837142944, 0.24795177578926086, -0.10871352255344391, -0.3544612526893616, 0.13317252695560455, -0.06410622596740723, -0.12105917185544968, 0.18392309546470642, 0.4411725699901581, 0.15152020752429962, -0.13630253076553345, 0.17164228856563568, 0.17817288637161255, 0.017935849726200104, -0.44055938720703125, -0.19650669395923615, 0.19213524460792542, -0.12449634820222855, 0.018787968903779984, 0.24327117204666138, -0.23814016580581665, 0.21320892870426178, -0.21516524255275726, 0.5628032088279724, 0.19751207530498505, -0.21164575219154358, -0.0529232881963253, -0.21021464467048645, 0.2439318597316742, 0.1660936027765274, 0.25600218772888184, 0.025099726393818855, -0.09476714581251144, -0.05096814036369324, -0.15186931192874908, 0.14704647660255432, -0.13017992675304413, -0.2247278243303299, 0.15838521718978882, -0.3537118136882782, -0.09619055688381195, -0.3049853444099426, 0.2762681841850281, -0.08873637020587921, -0.32587265968322754, -0.05612572655081749, -0.03180612623691559, -0.3951071500778198, -0.1389283388853073, 0.254010409116745, 0.5785956978797913, -0.1954765021800995, -0.15019921958446503, -0.07934103161096573, -0.20853760838508606, -0.09724976122379303, 0.28402113914489746, -0.11288677155971527, 0.08573205024003983, -0.3350715935230255, 0.23012125492095947, 0.1933709681034088, -0.35349082946777344, -0.5367318987846375, 0.14666399359703064, -0.17902681231498718, 0.1921960413455963, 0.06683135032653809, 0.06622932851314545, -0.030479347333312035, -0.02582780458033085, 0.04954732209444046, -0.11928293853998184, 0.04986456036567688, -0.14158296585083008, -0.20819737017154694, -0.25984761118888855, 0.27152931690216064, 0.3765079379081726, -0.0028831702657043934, -0.0083661749958992, 0.2657615542411804, -0.1580982804298401, 0.06334829330444336, -0.19983802735805511, 0.2323186844587326, -0.009671182371675968, 0.37855255603790283, 0.22021184861660004, -0.0019331201910972595, -0.2540706396102905, -0.4103822708129883, 0.12746283411979675, 0.045622095465660095, 0.19928380846977234, -0.0859154760837555, 0.044894278049468994, -0.13720647990703583, -0.13188433647155762, -0.31372252106666565, -0.04759763553738594, 0.13458243012428284, 0.20627671480178833, -0.013863198459148407, -0.04184863716363907, -0.22708553075790405, 0.5659123659133911, -0.0802176296710968, 0.17156840860843658, -0.28661972284317017, 0.2665819823741913, -0.18442636728286743, -0.10425563156604767, 0.23298156261444092, 0.1356370449066162, 0.19450950622558594, -0.056953065097332, -0.007924625650048256, 0.42641186714172363, -0.10299481451511383, 0.22096148133277893, 0.06525543332099915, -0.010445892810821533, 0.17471112310886383, -0.5851085186004639, 0.11152436584234238, 0.14941833913326263, -0.0005745775997638702, 0.04422542452812195, -0.05558514967560768, -0.023668579757213593, 0.1250985860824585, -0.03549966216087341, 0.023335710167884827, 0.2163073867559433, 0.25715529918670654, 0.11393128335475922, -0.07253747433423996, -0.006307102739810944, 0.45174145698547363, -0.15737800300121307, 0.39592763781547546, -0.2558273673057556, -0.3772469162940979, -0.10328520834445953, 0.14561080932617188, -0.10791395604610443, -0.015920549631118774, 0.23783300817012787, -0.15570178627967834, -0.022709432989358902, -0.04177434742450714, 0.1373608112335205, 0.17513972520828247, 0.23177550733089447, -0.15125849843025208, 0.22717653214931488, 0.010926928371191025, -0.050491515547037125, 0.0496119000017643, 0.18940068781375885, 0.004031296819448471, 0.27054643630981445, 0.08800991624593735, -0.08979897201061249, -0.3804919421672821, -0.1166217029094696, -0.04450232535600662, 0.2736304998397827, -0.4368264675140381, -0.309809148311615, 0.09699130803346634, -0.24321267008781433, 0.0037686601281166077, -0.025944624096155167, -0.25779134035110474, -0.21719248592853546, -0.03731304407119751, -0.04789876192808151, 0.03263840079307556, -0.007275104522705078, -0.21300123631954193, 0.3327556252479553, -0.05452889949083328, 0.07833515107631683, -0.22479361295700073, 0.12457481026649475, -0.2055746614933014, 0.08617986738681793, 0.3603847622871399, 0.21904614567756653, 0.3208606243133545, -0.21356293559074402, 0.38992539048194885, -0.42191779613494873, -0.3704259395599365, 0.14942567050457, -0.24730242788791656, 0.6341571807861328, 0.3712688684463501, 0.06381632387638092, -0.28586363792419434, -0.4522765874862671, 0.2120823860168457, -0.14762943983078003, -0.24428531527519226, -0.12766830623149872, -0.030398603528738022, -0.15911170840263367, 0.036829873919487, -0.22541308403015137, -0.19441695511341095, -0.4948132038116455, 0.5265610814094543, -0.015169322490692139, 0.05108053609728813, 0.2298635095357895, 0.001618809998035431, 0.4140703082084656, -0.10997465997934341, 0.07943692058324814, -0.28969189524650574, -0.44629794359207153, 0.46154260635375977, -0.2538742125034332, -0.35628294944763184, 0.23805910348892212, 0.12779782712459564, 0.18641109764575958, -0.07395616918802261, -0.33742761611938477, -0.0017229951918125153, -0.16528895497322083, 0.13896457850933075, 0.14462199807167053, -0.1310843825340271, 0.38643476366996765, -0.09229592978954315, 0.012706302106380463, -0.19388774037361145, -0.3519999384880066, 0.1733080893754959, 0.12441010773181915, 0.24412421882152557, -0.2811899483203888, 0.26409924030303955, -0.019110865890979767, 0.3876616060733795, 0.33113402128219604, -0.09162957966327667, 0.3324517607688904, 0.02342691458761692, 0.43219587206840515, -0.06760229170322418, -0.47761157155036926, 0.22459723055362701, -0.10661806166172028, -0.05892172455787659, 0.32218509912490845, -0.011440133675932884, 0.0056471750140190125, -0.3114231824874878, -0.17094865441322327, -0.3418881893157959, -0.1391717791557312, -0.18854297697544098, 0.19165468215942383, 0.1468724012374878, -0.0637841671705246, -0.05212577059864998, 0.008727721869945526, -0.22235259413719177, 0.3237069547176361, 0.501846969127655, 0.1316632777452469, 0.08855131268501282, -0.654490053653717, -0.12183430790901184, -0.3889943063259125, 0.45253416895866394, 0.049450866878032684, 0.16687631607055664, -0.1823495626449585, -0.06092103570699692, 0.041061706840991974, 0.017432354390621185, 0.6345933675765991, -0.27632543444633484, -0.26778289675712585, -0.01735255867242813, 0.2518269419670105, -0.10233122110366821, 0.13640084862709045, -0.16088874638080597, -0.02977035939693451, -0.005713408812880516, 0.2827160954475403, -0.1400110274553299, -0.010199330747127533, 0.18496571481227875, 0.10656742751598358, 0.08094853162765503, -0.16082584857940674, -0.15240883827209473, -0.32495248317718506, -0.20756378769874573, -0.12838123738765717, 0.03571952134370804, 0.2410011887550354, 0.13902133703231812, 0.24608324468135834, 0.1497383564710617, -0.05641286075115204, 0.5007350444793701, -0.001417309045791626, 0.34726017713546753, 0.2790212631225586, 0.2738037109375, 0.7657772898674011, 0.09384435415267944, 0.41714051365852356, 0.5336331725120544, -0.21721239387989044, -0.5801576972007751, 0.1865665763616562, 0.06673337519168854, 0.3362427353858948, 0.247870534658432, 0.0330997072160244, -0.12441451847553253, 0.0724996030330658, 0.17252255976200104, -0.010185100138187408, 0.30255192518234253, 0.31178584694862366, 0.011301983147859573, -0.16894695162773132, -0.32311129570007324, 0.27699732780456543, -0.15204793214797974, 0.0229557603597641, 0.16883566975593567, 0.4376380443572998, -0.09005048871040344, 0.053980421274900436, -0.03500271961092949, 0.961814284324646, -0.11233697831630707, 0.046835388988256454, 0.3171720504760742, -0.26856812834739685, 0.19694483280181885, -0.3190535306930542, 0.16685035824775696, -0.013677597045898438, -0.15721118450164795, -0.10722313821315765, -0.07293317466974258, 0.26146942377090454, -0.06535746157169342, -0.29326939582824707, 0.08538556098937988, -0.031037740409374237, -0.022281335666775703, 0.04278472810983658, 0.3272002339363098, -0.253659188747406, -0.2421872913837433, -0.21752047538757324, 0.17229822278022766, -0.08936752378940582, 0.2671867907047272, 0.02629566192626953, -0.09780386835336685, -0.16494111716747284, -0.3497896194458008, -0.25250619649887085, -0.01640699803829193, -0.3362780511379242, -0.24616378545761108, 0.04756220430135727, -0.1399671882390976, 0.7050906419754028, 0.4605463445186615, 0.29226380586624146, 0.08168616890907288, -0.3075282573699951, 0.23501279950141907, 0.0246029794216156, -0.15891462564468384, -0.08123564720153809, -0.10714080929756165, 0.21131177246570587, -0.04199783876538277, -0.09405343234539032, 0.2799619734287262, 0.00764760747551918, -0.1718260645866394, -0.3571356236934662, -0.050597384572029114, -0.20709261298179626, -0.5399723052978516, -0.11138921231031418, -0.12498192489147186, 0.13062025606632233, -0.1888328641653061, 0.10948529094457626, 0.26885420083999634, -0.2226908802986145, -0.3081793189048767, 0.17550763487815857, -0.13080443441867828, 0.08090586960315704, 0.2716749906539917, -0.13195329904556274, -0.4728541374206543, 0.6605610847473145, 0.2023690640926361, -0.3572244942188263, -0.157006174325943, -0.12207163870334625, 0.3417246639728546, -0.26123905181884766, 0.004660964012145996, -0.050108689814805984, 0.04634861648082733, -0.09219920635223389, 0.33722788095474243, 0.14124824106693268, -0.13084688782691956, 0.2639400362968445, -0.32028329372406006, -0.43748927116394043, 0.3502415716648102, -0.09300249814987183, 0.28696882724761963, 0.015194609761238098, 0.1365428864955902, 0.20520520210266113, -0.044929228723049164, -0.3179471492767334, 0.20868322253227234, -0.11757926642894745, 0.04544449597597122, 0.36434289813041687, -0.23744739592075348, 0.3045584261417389, -0.13902327418327332, 0.10650309920310974, 0.09700636565685272, -0.39402562379837036, -0.11965472251176834, -0.0020930618047714233, 0.11724952608346939, 0.06004611402750015, -0.14158974587917328, 0.31179913878440857, 0.010386906564235687, -0.06664822995662689, 0.027906998991966248, -0.09492620080709457, 0.19988536834716797, -0.1535181701183319, -0.15772020816802979, 0.1631578952074051, -0.26096776127815247, 0.06287188827991486, -0.05182333663105965, 0.16506549715995789, 0.02349092625081539, 0.11579737067222595, 0.04833182319998741, -0.03414512798190117, 0.015926644206047058, 0.4207889139652252, 0.32276451587677, 0.2854723334312439, 0.017962414771318436, 0.1734049916267395, -0.3838648498058319, -0.019223816692829132, 0.305858850479126, 0.302634596824646, 0.10523892194032669, -0.3324379324913025, 0.08247052878141403, 0.3578035533428192, 0.16786986589431763, -0.36067354679107666, 0.06467439234256744, 0.2608335316181183, -0.1318407654762268, 0.115020252764225, -0.04109150171279907, 0.2641547918319702, 0.07218116521835327, -0.06652770936489105, 0.051834918558597565, 0.2063135951757431, -0.004241598770022392, 0.2464141696691513, 0.4596637487411499, -0.23024104535579681, -0.06456270068883896, 0.2932809889316559, 0.19423934817314148, 0.04342988505959511, 0.5873585343360901, -0.44691896438598633, 0.2656037211418152, -0.2454892247915268, 0.2192590832710266, 0.10263517498970032, -0.4976246654987335, 0.1174083948135376, 0.2529952824115753, -0.08425486087799072, 0.13747844099998474, -0.1643713414669037, 0.732264518737793, -0.02581786923110485, 0.04315663501620293, -0.035664498805999756, 0.22380678355693817, -0.11281348764896393, -0.036394935101270676, 0.0728939026594162, -0.33137691020965576, -0.43027520179748535, -0.07824970036745071, 0.054099828004837036, -0.2889734208583832, 0.16878871619701385, 0.08970575034618378, -0.1101904809474945, 0.03520391881465912, -0.20427601039409637, 0.11425487697124481, 0.0028584040701389313, -0.31428906321525574, 0.2714292109012604, 0.25018396973609924, -0.2302338033914566, 0.36040592193603516, 0.3603849411010742, 0.4714697301387787, 0.010501407086849213, -0.13194122910499573, 0.30521294474601746, -0.02851882576942444, -0.08358865976333618, 0.14041770994663239, 0.28294262290000916, 0.27877277135849, 0.30359238386154175, 0.35098010301589966, 0.06813071668148041, -0.16865313053131104, -0.14108766615390778, -0.13915015757083893, 0.25618860125541687, -0.47526443004608154, 0.00964479148387909, -0.4066725969314575, -0.041216135025024414, -0.4085591435432434, -0.24573035538196564, -0.46857887506484985, 0.011002689599990845, 0.25804293155670166, -0.1737596094608307, -0.0372636616230011, -0.049103859812021255, 0.0697723925113678, 0.03347622603178024, 0.27744361758232117, 0.5939763784408569, 0.22555074095726013, -0.23406675457954407, -0.4944998323917389, -0.7815811634063721, 0.06333427131175995, 0.02344273030757904, 0.08442453294992447, -0.15355171263217926, 0.008033528923988342, 0.27942052483558655, -0.059886302798986435, 0.31034019589424133, 0.02227586880326271, -0.13577741384506226, -0.008580967783927917, 0.0959138572216034, 0.017859365791082382, 0.1770613193511963, 0.11703634262084961, 0.0738336443901062, -0.04291599616408348, 0.05130352824926376, 0.24276968836784363, -0.009832225739955902, -0.13470305502414703, 0.25412222743034363, -0.42924964427948, -0.6103617548942566, 0.2311718761920929, 0.03606346249580383, 0.7028794884681702, -0.17711839079856873, -0.155053049325943, -0.18143850564956665, -0.18091817200183868, -0.1472325325012207, 0.16236862540245056, 0.13259929418563843, 0.6855694055557251, -0.14995059370994568, -0.05214717984199524, -0.258136123418808, 0.1825380027294159, 0.10692152380943298, -0.031798772513866425, -0.524581789970398, 0.19856476783752441, -0.4134176969528198, 0.05802014097571373, 0.24311098456382751, 0.18154464662075043, 0.03269393742084503, -0.049196451902389526, -0.285343736410141, -0.33011654019355774, 0.6223593950271606, -0.5937336683273315, -0.23092849552631378, -0.20233838260173798, 0.08926818519830704, 0.2777903079986572, -0.1830107718706131, -0.7285789251327515, -0.02205859124660492, 0.2613421678543091, 0.06683112680912018, -0.03376501426100731, 0.2657730281352997, -0.14734074473381042, -0.17932821810245514, 0.05348474532365799, 0.43913567066192627, 0.30811217427253723, -0.08384879678487778, 0.1571568101644516, -0.3364485800266266 ]
https://github.com/huggingface/datasets/issues/1835
Hi @KossaiSbai, Thanks for your contribution. As the issue is not strictly related to the `datasets` library, but to the specific implementation of the CHiME4 dataset, I have opened an issue in the Discussion tab of the dataset: https://huggingface.co/datasets/ksbai123/Chime4/discussions/2 Let's continue the discussion there!
Add CHiME4 dataset
## Adding a Dataset - **Name:** Chime4 - **Description:** Chime4 is a dataset for automatic speech recognition. It is especially useful for evaluating models in a noisy environment and for multi-channel ASR - **Paper:** Dataset comes from a channel: http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/ . Results paper: - **Data:** http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/download.html - **Motivation:** So far there are very little datasets for speech in `datasets`. Only `lbirispeech_asr` so far. 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).
44
Add CHiME4 dataset ## Adding a Dataset - **Name:** Chime4 - **Description:** Chime4 is a dataset for automatic speech recognition. It is especially useful for evaluating models in a noisy environment and for multi-channel ASR - **Paper:** Dataset comes from a channel: http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/ . Results paper: - **Data:** http://spandh.dcs.shef.ac.uk/chime_challenge/CHiME4/download.html - **Motivation:** So far there are very little datasets for speech in `datasets`. Only `lbirispeech_asr` so far. 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 @KossaiSbai, Thanks for your contribution. As the issue is not strictly related to the `datasets` library, but to the specific implementation of the CHiME4 dataset, I have opened an issue in the Discussion tab of the dataset: https://huggingface.co/datasets/ksbai123/Chime4/discussions/2 Let's continue the discussion there!
[ -0.2892351448535919, -0.005948901176452637, -0.05206141620874405, 0.17032203078269958, 0.12225435674190521, 0.0576973482966423, 0.24907854199409485, 0.029373936355113983, -0.032087165862321854, 0.30227893590927124, -0.20700398087501526, 0.17952507734298706, -0.3181535005569458, 0.16968882083892822, 0.06506484746932983, 0.08358107507228851, -0.06571926921606064, 0.10337182879447937, 0.15290217101573944, -0.0029285773634910583, -0.07256977260112762, 0.19426941871643066, -0.12188991159200668, 0.05446823686361313, -0.31929489970207214, -0.30548301339149475, 0.12204571813344955, -0.1463214010000229, -0.26345065236091614, -0.3970944881439209, 0.14942310750484467, 0.11757207661867142, -0.1678611785173416, 0.5507081747055054, -0.00010046709212474525, -0.043549515306949615, 0.29384660720825195, 0.057070404291152954, -0.4130712151527405, -0.16513797640800476, 0.010717511177062988, -0.0049380287528038025, -0.09927360713481903, 0.13545545935630798, -0.19187791645526886, 0.0070328861474990845, 0.07649582624435425, -0.2820597290992737, 0.10451686382293701, 0.39547282457351685, 0.31377458572387695, 0.16453254222869873, -0.05045472830533981, -0.16526392102241516, 0.12549829483032227, 0.10699429363012314, -0.09450048208236694, 0.11288130283355713, 0.2503420412540436, 0.19600136578083038, -0.28533077239990234, 0.3234076499938965, 0.20082306861877441, -0.08775337040424347, 0.13786211609840393, -0.14790591597557068, -0.26839473843574524, -0.05098126083612442, 0.049926042556762695, 0.2997960150241852, 0.4356068968772888, -0.30058911442756653, -0.33079349994659424, -0.35491442680358887, 0.15357017517089844, -0.360544353723526, 0.1956252157688141, -0.013384001329541206, -0.18161603808403015, 0.21794888377189636, -0.045609984546899796, -0.13455557823181152, -0.0003240332007408142, 0.1508718729019165, 0.08614606410264969, 0.07397277653217316, -0.2152944654226303, -0.041795019060373306, 0.056240711361169815, -0.27996164560317993, 0.11782772094011307, 0.13223539292812347, 0.013606468215584755, 0.08104637265205383, -0.37576791644096375, 0.001866266131401062, 0.2726767957210541, 0.250793993473053, 0.2582743763923645, -0.19090741872787476, -0.13002750277519226, 0.15401935577392578, -0.03200634568929672, 0.04251447319984436, 0.16880981624126434, 0.1784132719039917, 0.17602574825286865, -0.30445560812950134, 0.3827526569366455, 0.3132666349411011, 0.08168452233076096, -0.03055480122566223, 0.01621052622795105, -0.07704004645347595, -0.07966713607311249, -0.19491936266422272, 0.21744781732559204, -0.10522482544183731, -0.48472556471824646, 0.21410062909126282, -0.12494190037250519, -0.05249394476413727, 0.21576061844825745, 0.34418368339538574, 0.23325426876544952, 0.0244302935898304, 0.14758703112602234, 0.05498315766453743, -0.024930130690336227, -0.35231953859329224, -0.27230289578437805, 0.09156963229179382, -0.18358665704727173, 0.17108803987503052, 0.11151114851236343, 0.10672461986541748, 0.3085346817970276, -0.06427641212940216, 0.6038284301757812, 0.1716320663690567, -0.20235218107700348, -0.04183945804834366, -0.17634379863739014, 0.14462637901306152, -0.05472451448440552, 0.24680787324905396, -0.23863737285137177, 0.06792082637548447, -0.08857066929340363, -0.16709408164024353, 0.18305137753486633, -0.07195217907428741, -0.1892506182193756, 0.2946586310863495, -0.1755491942167282, -0.05800444260239601, -0.3083677887916565, 0.40255361795425415, 0.06737042218446732, -0.26545900106430054, 0.05275508016347885, -0.11583447456359863, -0.43348437547683716, -0.12292227149009705, 0.11480390280485153, 0.3998832404613495, -0.09706935286521912, -0.12678036093711853, 0.04367353767156601, -0.04094914719462395, -0.0839661955833435, 0.40652796626091003, -0.3093327283859253, 0.054591402411460876, -0.18337368965148926, 0.2783415913581848, 0.1318662464618683, -0.21625187993049622, -0.5740476250648499, -0.09006789326667786, -0.1687980443239212, 0.23258501291275024, 0.043120577931404114, -0.03642100468277931, -0.033849313855171204, 0.017550289630889893, 0.30386751890182495, 0.08252260833978653, 0.013821335509419441, -0.06628213077783585, -0.23371806740760803, -0.32150670886039734, 0.21260982751846313, 0.2141990065574646, -0.07821304351091385, -0.04203985258936882, 0.10455140471458435, -0.051111284643411636, 0.1352909803390503, -0.2726832330226898, 0.22430537641048431, 0.11138416826725006, 0.4814256429672241, 0.09378872811794281, 0.08229668438434601, -0.43106815218925476, -0.22900648415088654, 0.10678760707378387, 0.027479492127895355, 0.3358505368232727, -0.06501822173595428, -0.14805027842521667, -0.09611978381872177, -0.06682363152503967, -0.17985406517982483, -0.1615094244480133, 0.2851907014846802, 0.28415921330451965, -0.12456461787223816, -0.07740537822246552, -0.16173134744167328, 0.6100721955299377, -0.32759082317352295, -0.01563267782330513, -0.19121159613132477, 0.14436939358711243, -0.14451593160629272, -0.34842658042907715, 0.2082929164171219, 0.3473471403121948, 0.050268933176994324, 0.016157932579517365, 0.021811388432979584, 0.48691418766975403, -0.12647505104541779, 0.16920284926891327, -0.12033209949731827, 0.007743515074253082, 0.06829169392585754, -0.419671893119812, 0.07575049251317978, 0.17931146919727325, 0.014593318104743958, 0.13848084211349487, 0.04282185435295105, 0.06722342222929001, 0.27525797486305237, -0.11246740072965622, 0.17197851836681366, 0.06740671396255493, 0.3529174029827118, 0.04077168554067612, -0.1620740443468094, 0.008591137826442719, 0.2672275900840759, -0.19537827372550964, 0.3479654788970947, -0.025294089689850807, -0.43308693170547485, 0.07454472780227661, 0.32389476895332336, 0.04826325923204422, 0.2533508539199829, 0.23321500420570374, -0.26428383588790894, -0.21676340699195862, -0.013329969719052315, 0.057142965495586395, 0.1548425555229187, 0.29180726408958435, -0.007950397208333015, -0.0245869942009449, -0.07267186045646667, -0.03768451511859894, 0.07251963764429092, 0.151644766330719, -0.05175856128334999, 0.2833676040172577, 0.3333438038825989, -0.10449425876140594, -0.5292511582374573, -0.21464335918426514, -0.13321609795093536, 0.2396649420261383, -0.4235321283340454, -0.2587357759475708, -0.07769954949617386, -0.013670161366462708, 0.001748703420162201, -0.017049415037035942, -0.08174853026866913, -0.09604741632938385, 0.1514519453048706, -0.07955367863178253, -0.059537164866924286, 0.09260936826467514, -0.23186354339122772, 0.18505041301250458, -0.049629226326942444, 0.18110544979572296, -0.16174539923667908, 0.029730089008808136, -0.2545030415058136, 0.15634329617023468, 0.061499614268541336, 0.28555864095687866, 0.2835638225078583, -0.04086916893720627, 0.18123330175876617, -0.2572568655014038, -0.4415321946144104, 0.22001227736473083, -0.1414940357208252, 0.6672654747962952, 0.3127511143684387, -0.04937412589788437, -0.3119926154613495, -0.4321053624153137, 0.009859979152679443, -0.258586585521698, -0.30407553911209106, 0.04605758935213089, -0.10031455755233765, -0.04222765937447548, -0.08664612472057343, -0.47684288024902344, -0.08785824477672577, -0.5306157469749451, 0.39510878920555115, -0.2460532784461975, 0.009605547413229942, 0.3549324870109558, -0.039521604776382446, 0.2887788712978363, -0.22240819036960602, 0.2636880576610565, -0.4081035852432251, -0.2882215976715088, 0.34934642910957336, -0.22798119485378265, -0.28053808212280273, -0.09115354716777802, 0.0011946707963943481, 0.14432530105113983, 0.06681347638368607, -0.2123110592365265, -0.08542400598526001, -0.16416479647159576, 0.20612996816635132, 0.06537339091300964, -0.11639454215765, 0.3643490672111511, -0.01139785349369049, -0.16768205165863037, -0.2892068326473236, -0.44904446601867676, 0.2349047213792801, 0.26826679706573486, 0.06595806777477264, -0.18852373957633972, 0.2711670398712158, 0.08033357560634613, 0.4226545989513397, 0.15113919973373413, -0.18958355486392975, 0.3389454483985901, 0.09656691551208496, 0.41916006803512573, -0.08451652526855469, -0.2901884913444519, 0.3283103406429291, 0.028581582009792328, -0.05743497610092163, 0.41420823335647583, 0.0030930954962968826, -0.1014663502573967, -0.054205819964408875, -0.21076570451259613, -0.24905729293823242, -0.24568778276443481, -0.13351145386695862, 0.19437523186206818, 0.2993963360786438, -0.0309666208922863, -0.06245574727654457, 0.027256730943918228, -0.1116870641708374, 0.19510550796985626, 0.22567428648471832, 0.013262677937746048, -0.12465990334749222, -0.7161920070648193, 0.09124356508255005, -0.3009832799434662, 0.1974213421344757, 0.1687108874320984, 0.44443219900131226, -0.1484878659248352, -0.19966629147529602, -0.001188863068819046, -0.026644866913557053, 0.34400177001953125, -0.25301849842071533, -0.15427401661872864, 0.11717204749584198, 0.46750402450561523, -0.06939960271120071, 0.2106146514415741, -0.1758730113506317, -0.002014297991991043, 0.16532692313194275, 0.18975859880447388, -0.273245632648468, -0.1314302235841751, 0.12214618921279907, 0.22097009420394897, 0.08102887868881226, -0.022199824452400208, -0.15629030764102936, -0.3650926351547241, -0.11188974976539612, 0.04050065204501152, 0.08556117862462997, 0.20386981964111328, 0.24983727931976318, 0.0801507756114006, 0.24454449117183685, -0.127807155251503, 0.505111575126648, 0.0664939358830452, 0.33367472887039185, 0.2671447992324829, 0.3212318420410156, 0.3630101978778839, 0.11308024823665619, 0.4276011884212494, 0.41878965497016907, -0.2744813561439514, -0.45982977747917175, 0.161800354719162, 0.013374090194702148, 0.36059141159057617, 0.315030962228775, -0.10856721550226212, 0.1293405145406723, -0.07985460013151169, 0.057267237454652786, 0.02830209583044052, 0.29918432235717773, 0.2346017062664032, 0.0017639026045799255, -0.02329467050731182, -0.2699076533317566, 0.15985974669456482, -0.16000474989414215, -0.20589855313301086, 0.14340108633041382, 0.36009448766708374, -0.2692800462245941, 0.16472254693508148, -0.02608010545372963, 0.9418551325798035, 0.027411021292209625, 0.0797589048743248, 0.29210034012794495, -0.27517762780189514, 0.04996776208281517, -0.2145412117242813, 0.07481548190116882, -0.002389855682849884, -0.06752219796180725, 0.027025647461414337, 0.005038298666477203, 0.14540016651153564, 0.04106299579143524, -0.2011454850435257, 0.03230362758040428, -0.03688112646341324, -0.01776176691055298, 0.10181619226932526, 0.29973042011260986, -0.35356220602989197, -0.3357357978820801, -0.2991710603237152, 0.2568056881427765, -0.0820007249712944, -0.04605140537023544, 0.1370711326599121, -0.07412861287593842, -0.05008918419480324, -0.3400542140007019, -0.2517462372779846, -0.0468943826854229, -0.3792056441307068, -0.2879680097103119, 0.14444389939308167, -0.16669225692749023, 0.562748372554779, 0.19309678673744202, 0.2877616584300995, 0.07372084259986877, -0.22446265816688538, 0.2827262878417969, 0.08123891055583954, 0.03584599122405052, -0.023633869364857674, -0.02835482358932495, 0.3789633512496948, -0.016673464328050613, -0.06598252803087234, 0.1529504805803299, 0.08565163612365723, -0.26576128602027893, -0.3798134922981262, -0.09021979570388794, -0.09867945313453674, -0.5603537559509277, 0.09986473619937897, -0.0331684872508049, 0.22738000750541687, -0.4402604103088379, 0.2262668013572693, 0.3459671139717102, -0.23460274934768677, -0.0645427480340004, 0.11597774922847748, -0.09423387050628662, -0.06005130335688591, 0.23628666996955872, 0.04123876243829727, -0.33671051263809204, 0.4956270456314087, 0.20313003659248352, -0.3671569526195526, -0.32957661151885986, -0.2212129831314087, 0.27228879928588867, -0.1247897818684578, 0.09805814176797867, -0.07843123376369476, -0.1750226616859436, -0.0633377805352211, 0.35572549700737, -0.03305531293153763, -0.06472043693065643, -0.012929193675518036, -0.2273985892534256, -0.4146200716495514, 0.38820403814315796, -0.0377015620470047, 0.2686516046524048, 0.01422794908285141, 0.11295027285814285, -0.042275264859199524, -0.03067309968173504, -0.481728732585907, 0.035047195851802826, -0.19633421301841736, 0.17788578569889069, 0.23804673552513123, -0.29196107387542725, 0.31849226355552673, -0.021134812384843826, 0.25301393866539, 0.001344822347164154, -0.20113366842269897, -0.25201499462127686, -0.10247959941625595, 0.06298437714576721, -0.0224472489207983, 0.09634213894605637, 0.2826743721961975, -0.040027834475040436, -0.13139855861663818, -0.06239160895347595, 0.19708791375160217, 0.29411423206329346, -0.14908649027347565, -0.07372958958148956, 0.02655981108546257, -0.08286422491073608, 0.21617391705513, -0.17520958185195923, -0.02784496545791626, -0.16487917304039001, 0.09454058110713959, 0.09689013659954071, -0.04441957548260689, -0.06410612165927887, 0.3314597010612488, 0.2715051472187042, 0.21505919098854065, 0.07437470555305481, 0.010849792510271072, -0.2460092008113861, -0.1883646547794342, 0.4619292914867401, 0.26175957918167114, 0.1533718705177307, -0.2612859010696411, -0.07727675139904022, 0.35252973437309265, 0.31874197721481323, -0.3053908348083496, 0.006507370620965958, 0.1077059954404831, -0.29720059037208557, 0.2818179130554199, 0.04259974882006645, 0.2950614392757416, 0.012945979833602905, -0.002300132066011429, 0.03426532819867134, 0.024420704692602158, -0.13283170759677887, -0.023037699982523918, 0.4026142954826355, -0.16626346111297607, -0.0722123384475708, 0.40789127349853516, 0.12455953657627106, 0.2671024799346924, 0.5929347276687622, -0.16307109594345093, 0.4780932664871216, -0.06987443566322327, 0.15634408593177795, 0.19259729981422424, -0.2829456925392151, 0.09969455003738403, 0.1857253611087799, 0.06517975777387619, 0.13152268528938293, -0.15213431417942047, 0.6812044382095337, -0.046179380267858505, 0.1424030363559723, 0.035250671207904816, -0.001815306255593896, -0.3415127098560333, -0.24737730622291565, 0.018489986658096313, -0.3275254964828491, -0.31740427017211914, -0.18984335660934448, -0.03483256697654724, -0.007858645170927048, 0.18822044134140015, -0.10519722104072571, -0.11607357859611511, -0.17463843524456024, -0.15624266862869263, 0.05255409702658653, 0.008581787347793579, -0.23034247756004333, 0.2520369291305542, 0.009749732911586761, -0.1907052844762802, 0.18843364715576172, 0.4827318787574768, 0.25751423835754395, 0.043663740158081055, -0.15013624727725983, 0.19361302256584167, 0.040173694491386414, -0.08517822623252869, -0.1490074098110199, 0.3263624310493469, 0.282596230506897, 0.36041873693466187, 0.25887832045555115, 0.16301091015338898, -0.2898982763290405, -0.17006754875183105, -0.059541359543800354, 0.04356534034013748, -0.38667815923690796, 0.13314472138881683, -0.25336188077926636, 0.010498352348804474, -0.2568517029285431, -0.21141856908798218, -0.2743648290634155, -0.040190909057855606, 0.3367500901222229, -0.13016046583652496, -0.0696762278676033, -0.22599753737449646, 0.1681467741727829, -0.04023496061563492, 0.24284780025482178, 0.3185918927192688, 0.072146937251091, 0.049597274512052536, -0.27369022369384766, -0.685565173625946, 0.10469239205121994, 0.11165404319763184, 0.04409770667552948, -0.23640023171901703, 0.16078922152519226, 0.2878492474555969, -0.068142369389534, 0.22044514119625092, -0.10585200786590576, -0.18464605510234833, -0.08451453596353531, -0.05533170700073242, 0.02740001492202282, 0.09321695566177368, 0.06372762471437454, 0.1678393930196762, -0.14092612266540527, -0.1505042314529419, 0.24000829458236694, 0.1040087640285492, -0.2113986313343048, 0.04643084853887558, -0.19171544909477234, -0.40520179271698, 0.3923739492893219, 0.05209767073392868, 0.4164203405380249, -0.25285768508911133, -0.17142686247825623, -0.23826062679290771, -0.23728817701339722, -0.08018282055854797, 0.0713367611169815, -0.020090794190764427, 0.6606491208076477, -0.10228420048952103, -0.03987594693899155, -0.14528563618659973, 0.14516723155975342, 0.13053826987743378, -0.13778813183307648, -0.38731321692466736, 0.3630407750606537, -0.3476963937282562, 0.008856687694787979, 0.07190088927745819, 0.2584175169467926, -0.07916419208049774, -0.125227153301239, -0.2290584146976471, -0.49292001128196716, 0.5188231468200684, -0.4785960018634796, -0.3505416214466095, -0.2704888880252838, 0.33717602491378784, 0.2447727471590042, -0.2455226629972458, -0.7863674163818359, -0.01511557400226593, 0.2578781247138977, 0.21959738433361053, -0.1387769728899002, 0.2734759747982025, -0.02545929327607155, -0.1813153326511383, 0.0024837031960487366, 0.4807615876197815, 0.24124082922935486, -0.08345328271389008, 0.1263299286365509, -0.31921201944351196 ]
https://github.com/huggingface/datasets/issues/1831
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}}
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 ?
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.1392955183982849, -0.09699509292840958, -0.05754382535815239, 0.5315553545951843, 0.1806541383266449, -0.07769391685724258, 0.1291479468345642, -0.06849315762519836, 0.13074764609336853, 0.12636716663837433, -0.401090145111084, 0.19039885699748993, -0.071718230843544, 0.5283395051956177, 0.16424010694026947, -0.06509847939014435, -0.11068345606327057, 0.14757832884788513, -0.09337642043828964, -0.07304359972476959, -0.3944443464279175, 0.28272077441215515, -0.3126271963119507, 0.1286267638206482, -0.1304442137479782, 0.005231836810708046, -0.03755917772650719, 0.28819411993026733, -0.4633621275424957, -0.27664661407470703, 0.35594162344932556, 0.22831159830093384, 0.41031020879745483, 0.25496214628219604, -0.00012279485235922039, 0.04534419625997543, 0.29476693272590637, -0.3216657340526581, -0.5304580926895142, -0.3504640758037567, -0.6374024748802185, -0.006607472896575928, -0.08765877783298492, -0.3026112914085388, 0.07270068675279617, -0.044414542615413666, -0.07044870406389236, -0.23771992325782776, 0.11797051876783371, 0.10204313695430756, 0.07890825718641281, 0.2801704406738281, -0.02580481767654419, 0.043284669518470764, 0.2848971486091614, 0.2803591787815094, 0.052538059651851654, 0.10770314186811447, -0.0747685581445694, 0.401195228099823, 0.25058242678642273, 0.31001582741737366, 0.13770854473114014, 0.15744735300540924, 0.5022884011268616, 0.3205777108669281, -0.27263113856315613, -0.3046388626098633, 0.10461346805095673, 0.19351641833782196, 0.4040810763835907, -0.3673970401287079, -0.5436566472053528, -0.3483603000640869, -0.16833701729774475, -0.592606782913208, 0.03220401704311371, 0.14673790335655212, -0.36455395817756653, 0.306946337223053, -0.5524963736534119, -0.4242555499076843, -0.10692381113767624, -0.029514074325561523, -0.19636332988739014, 0.3718149662017822, -0.3595741093158722, 0.06532461941242218, 0.07806898653507233, 0.42947447299957275, 0.19982296228408813, -0.2933292090892792, -0.017640694975852966, 0.27592208981513977, -0.17268028855323792, -0.08907750248908997, -0.021097905933856964, 0.3046436607837677, 0.191677987575531, -0.003178805112838745, -0.11859041452407837, -0.19603228569030762, 0.06447885185480118, 0.09115460515022278, 0.3602830469608307, 0.13484084606170654, 0.12200529128313065, 0.2712997794151306, 0.2210538685321808, 0.15820351243019104, 0.16287444531917572, -0.2994873523712158, -0.0399511381983757, -0.04997048154473305, -0.3093298673629761, 0.16166263818740845, 0.07092633098363876, -0.1226646825671196, -0.1993662267923355, -0.21416188776493073, -0.10704226046800613, -0.29236286878585815, 0.32213541865348816, 0.40481826663017273, -0.11206217110157013, 0.07313172519207001, -0.019703015685081482, 0.048481933772563934, 0.13255004584789276, -0.21030433475971222, -0.1068650335073471, -0.14259138703346252, -0.142452210187912, 0.13092109560966492, -0.27598103880882263, -0.0752524808049202, 0.38062652945518494, 0.052351340651512146, 0.015530180186033249, 0.007027372717857361, 0.020547837018966675, -0.1392773985862732, 0.20368976891040802, 0.15111365914344788, -0.013135865330696106, 0.30025792121887207, -0.15822604298591614, -0.3350560963153839, -0.1950608640909195, -0.0940047949552536, -0.36492815613746643, -0.4216025173664093, 0.01582501269876957, 0.025518067181110382, -0.22532303631305695, 0.10368648171424866, -0.30645686388015747, -0.02583644539117813, 0.10352830588817596, 0.3552073836326599, 0.07360413670539856, -0.041304394602775574, -0.46223658323287964, -0.26651185750961304, 0.44003647565841675, 0.48189735412597656, -0.24818378686904907, -0.14288951456546783, 0.048859838396310806, -0.3707982301712036, 0.11049720644950867, 0.024711336940526962, -0.39377546310424805, 0.5463495850563049, -0.4110983908176422, -0.1288505345582962, 0.4111630916595459, -0.42053475975990295, -0.2743719518184662, 0.559400200843811, 0.11898893117904663, -0.0040633827447891235, 0.3508143126964569, -0.0029530413448810577, 0.25213292241096497, -0.08631325513124466, -0.11830626428127289, 0.5005719661712646, 0.1785057932138443, -0.11542889475822449, -0.015046827495098114, -0.19980934262275696, -0.1504228413105011, -0.10768337547779083, -0.13249853253364563, 0.25103265047073364, 0.0363786444067955, -0.09306114912033081, 0.5309390425682068, -0.1145966425538063, 0.1999671459197998, 0.3154316842556, 0.02656884491443634, 0.24618780612945557, -0.0191207155585289, 0.029234647750854492, -0.6519914865493774, 0.1660541296005249, -0.35801923274993896, -0.24228990077972412, -0.3038729429244995, -0.346874862909317, -0.33599698543548584, 0.15263792872428894, -0.29515451192855835, -0.3711603879928589, -0.05847178027033806, 0.16493071615695953, 0.49272871017456055, -0.03350144624710083, -0.30862516164779663, 0.5376635789871216, -0.07711275666952133, 0.1103711947798729, -0.1524743139743805, 0.021506592631340027, 0.10994812101125717, 0.18408337235450745, -0.06649649143218994, 0.1019265204668045, 0.10839830338954926, -0.18854932487010956, 0.059881579130887985, 0.5309789776802063, 0.2396334409713745, 0.18183323740959167, 0.15408749878406525, 0.029220998287200928, 0.24965761601924896, 0.12449222803115845, -0.07289407402276993, -0.21970556676387787, 0.21307384967803955, 0.20210950076580048, 0.09575827419757843, 0.41944390535354614, 0.003916298039257526, 0.27706849575042725, 0.13969877362251282, -0.07814787328243256, 0.13789662718772888, -0.061810094863176346, 0.155404195189476, -0.1600990742444992, -0.17537154257297516, 0.20472829043865204, 0.36872929334640503, 0.13241852819919586, -0.2014482617378235, 0.19544461369514465, 0.36350011825561523, -0.08196792751550674, -0.2479621320962906, 0.01651739329099655, -0.29281240701675415, -0.04030068218708038, 0.020246347412467003, 0.7880974411964417, 0.4842379093170166, 0.009911347180604935, 0.1930084079504013, 0.0817183181643486, 0.28972792625427246, -0.13008099794387817, 0.4044666886329651, 0.1461007446050644, -0.0709933191537857, -0.03355226293206215, -0.4765409529209137, -0.173686683177948, 0.1612807959318161, -0.0182555690407753, 0.15604206919670105, 0.13740870356559753, -0.3770771026611328, 0.12285425513982773, -0.2453245222568512, -0.35932284593582153, -0.2825254201889038, -0.1824907660484314, 0.07965711504220963, -0.1788533627986908, -0.30236494541168213, -0.09605240821838379, -0.08657418191432953, -0.19618545472621918, -0.02849113941192627, 0.0078611820936203, -0.2690335512161255, 0.03462634235620499, -0.17259129881858826, -0.18462271988391876, -0.13051161170005798, -0.07384438067674637, 0.16627778112888336, 0.03421022370457649, 0.0837579071521759, -0.47064343094825745, 0.06891767680644989, -0.16951458156108856, 0.1759641021490097, 0.32473456859588623, 0.0570174977183342, 0.1776963323354721, 0.3906324505805969, 0.14288663864135742, -0.14175990223884583, 0.02283579856157303, -0.07063505053520203, 0.10466829687356949, -0.14422424137592316, -0.3927353024482727, 0.1336808204650879, 0.06083892285823822, -0.10030259191989899, -0.1797952800989151, -0.701849639415741, -0.09427101910114288, 0.14840064942836761, -0.11413587629795074, 0.22856274247169495, -0.06347543746232986, -0.18335969746112823, 0.11429019272327423, -0.2739400863647461, 0.049795880913734436, -0.23460836708545685, -0.787110447883606, 0.28944066166877747, -0.34768369793891907, -0.2662127614021301, -0.04405415803194046, -0.09772485494613647, 0.198401540517807, 0.015491575002670288, -0.25377559661865234, -0.031741101294755936, -0.22029536962509155, 0.17114542424678802, 0.10691213607788086, 0.3687536120414734, 0.012761708348989487, -0.10263659060001373, 0.13000407814979553, -0.19757024943828583, -0.06178312003612518, 0.18270811438560486, -0.3824942708015442, 0.3085659146308899, 0.382421612739563, -0.03352155536413193, 0.17485301196575165, 0.7821303009986877, 0.24443963170051575, -0.13550704717636108, 0.18098464608192444, -0.07585601508617401, 0.41017425060272217, 0.28398191928863525, -0.218622624874115, -0.04893269017338753, -0.033905334770679474, -0.10784873366355896, 0.1440034955739975, 0.06047000363469124, 0.18966364860534668, -0.3165881037712097, -0.11236945539712906, -0.15005287528038025, -0.15170496702194214, -0.12551580369472504, 0.5231509208679199, 0.1893754005432129, 0.06159978359937668, 0.19744493067264557, -0.006582722067832947, 0.09127940237522125, 0.06185680627822876, 0.4306040108203888, 0.3460769057273865, 0.1975971907377243, -0.1960720717906952, -0.0857730284333229, -0.20449215173721313, 0.11648894846439362, 0.2858870029449463, -0.11611214280128479, 0.17969238758087158, 0.12008336931467056, 0.17902839183807373, 0.11770565062761307, 0.6446797251701355, 0.022620579227805138, -0.04019533842802048, -0.12750913202762604, -0.31012171506881714, -0.07607913017272949, 0.12807278335094452, -0.15003271400928497, 0.0737534910440445, 0.42132195830345154, 0.16378790140151978, -0.4036840796470642, -0.382534384727478, 0.07454083859920502, 0.13523416221141815, -0.28817299008369446, -0.14954403042793274, -0.1488923281431198, -0.20912852883338928, -0.17887020111083984, -0.23087625205516815, 0.12962743639945984, 0.12780612707138062, 0.034697532653808594, 0.0025442689657211304, 0.05059590935707092, 0.11937018483877182, 0.0030732229351997375, 0.0747290775179863, 0.3675098121166229, -0.056199122220277786, -0.10574138909578323, 0.3754265606403351, 0.33935120701789856, 0.16903753578662872, 0.4490528404712677, -0.32888859510421753, -0.18515238165855408, -0.06483682245016098, 0.09757120907306671, 0.6481597423553467, 0.14968255162239075, -0.4898110330104828, 0.04934891685843468, 0.03485456854104996, -0.14900583028793335, -0.3897598683834076, 0.24325260519981384, 0.2638329267501831, 0.0071812160313129425, -0.09935548901557922, -0.719007670879364, 0.4855560064315796, -0.007340047508478165, -0.22853600978851318, 0.16060718894004822, 0.08337990194559097, -0.3551582396030426, -0.13822773098945618, 0.03491981327533722, 0.8198546171188354, 0.13426728546619415, 0.08225316554307938, 0.10077789425849915, -0.48302793502807617, 0.588996946811676, -0.060216423124074936, -0.17315927147865295, -0.2225250005722046, 0.022235006093978882, -0.15202143788337708, -0.28602349758148193, 0.07052211463451385, -0.07608025521039963, -0.10988272726535797, 0.3645530343055725, -0.098301962018013, 0.049823567271232605, 0.04359542578458786, 0.5104307532310486, -0.08311734348535538, -0.1409684270620346, 0.07536762952804565, -0.08400043845176697, 0.19180843234062195, 0.48000627756118774, -0.1140032485127449, -0.43102553486824036, -0.25505712628364563, 0.07956970483064651, -0.06545095145702362, -0.1017836257815361, -0.4333568513393402, 0.03022412210702896, 0.013373808935284615, -0.3217693865299225, -0.037124741822481155, 0.660851001739502, 0.27904990315437317, 0.016436750069260597, -0.21993312239646912, 0.06367024779319763, -0.0920162945985794, 0.12733684480190277, 0.25037142634391785, 0.12391111254692078, -0.057639725506305695, -0.053483836352825165, -0.1629350334405899, 0.15574397146701813, -0.005832113325595856, -0.18104791641235352, 0.1748497486114502, -0.10168595612049103, 0.21251989901065826, -0.2507414221763611, -0.056115832179784775, -0.01082097738981247, 0.06260691583156586, -0.06816107779741287, -0.0006633969023823738, 0.24378272891044617, -0.3698796033859253, 0.07067304104566574, -0.27986425161361694, -0.42271170020103455, -0.19077232480049133, 0.36060404777526855, -0.07194371521472931, 0.07881803065538406, 0.26847001910209656, -0.10255088657140732, -0.2249784767627716, -0.030909981578588486, 0.28865671157836914, -0.1091570258140564, -0.3159404993057251, 0.265970379114151, 0.3049023151397705, 0.17883829772472382, -0.40569886565208435, 0.2560829520225525, 0.0011080782860517502, -0.2817424535751343, -0.22229371964931488, -0.499305784702301, -0.20701855421066284, 0.1097564771771431, -0.29584842920303345, 0.15518760681152344, -0.012737676501274109, 0.1706501841545105, 0.10408910363912582, 0.028385085985064507, -0.1955249309539795, 0.015760309994220734, -0.0842282772064209, -0.10643355548381805, 0.33751025795936584, 0.09713034331798553, 0.24823929369449615, -0.003077615052461624, -0.058960143476724625, -0.03900989145040512, -0.09004674851894379, -0.03145599737763405, -0.22686392068862915, 0.1887500137090683, -0.08398475497961044, -0.20173028111457825, 0.08763141185045242, -0.06170916184782982, -0.0786992758512497, 0.059081997722387314, 0.2508062422275543, 0.26612281799316406, 0.12934371829032898, 0.39786550402641296, -0.05771531164646149, -0.0034345127642154694, -0.5778409242630005, 0.33550652861595154, 0.06922291219234467, 0.4035034477710724, -0.07793064415454865, 0.44594818353652954, -0.38490843772888184, -0.1046706810593605, 0.12545213103294373, -0.12114693224430084, 0.012670798227190971, -0.08861857652664185, 0.43485671281814575, -0.04359528794884682, 0.10812580585479736, 0.11747144162654877, 0.23705285787582397, 0.23825415968894958, -0.08969901502132416, 0.029673293232917786, 0.1940101981163025, -0.027352221310138702, -0.008573219180107117, 0.02392585575580597, -0.13703066110610962, -0.04063611850142479, 0.024102486670017242, 0.34813013672828674, 0.3333755135536194, 0.038560256361961365, -0.07780655473470688, -0.2710225582122803, 0.4011264443397522, 0.4406712055206299, 0.04602128267288208, 0.5709133148193359, 0.12831375002861023, 0.362793505191803, 0.21173736453056335, 0.6090319752693176, 0.15640608966350555, 0.3393491208553314, -0.2610030174255371, -0.008980023674666882, -0.08740995824337006, 0.24500714242458344, 0.31073063611984253, -0.4485320448875427, 0.17224164307117462, 0.20228812098503113, -0.22620441019535065, 0.02192589081823826, -0.2994125783443451, 0.5222717523574829, -0.15515993535518646, 0.13281409442424774, -0.10601039230823517, 0.4710695743560791, 0.045752134174108505, -0.288492351770401, -0.17623358964920044, -0.18811608850955963, -0.1317504346370697, 0.15237343311309814, -0.046134889125823975, -0.4370724558830261, 0.13623392581939697, -0.14644524455070496, 0.042722657322883606, 0.018353473395109177, 0.053093139082193375, 0.10409653186798096, 0.02159525640308857, -0.21229584515094757, 0.19153675436973572, -0.04165638983249664, 0.29096686840057373, 0.32884734869003296, 0.2829504609107971, 0.06739644706249237, 0.3388291597366333, 0.1462305188179016, -0.21369433403015137, 0.22142766416072845, -0.06889881193637848, -0.08749043941497803, 0.02493903413414955, -0.2010527402162552, -0.07470401376485825, 0.4496799111366272, -0.010302778333425522, -0.022859206423163414, -0.30539190769195557, 0.14118342101573944, 0.31311967968940735, -0.014103017747402191, 0.5945337414741516, -0.02593035250902176, 0.06706374883651733, 0.09257025271654129, 0.061027027666568756, -0.46179038286209106, 0.06957081705331802, 0.27481934428215027, -0.2647775709629059, 0.21410831809043884, -0.0019737035036087036, 0.012139223515987396, -0.024173220619559288, 0.37117040157318115, 0.20920707285404205, 0.33825889229774475, -0.42826130986213684, -0.2127804458141327, -0.4922037124633789, -0.23410657048225403, 0.34327560663223267, -0.24099776148796082, -0.06145244836807251, 0.3055993914604187, -0.22224193811416626, 0.244061678647995, -0.042408280074596405, 0.27618181705474854, -0.009667489677667618, 0.0954618975520134, -0.050473183393478394, -0.1580982208251953, -0.37761905789375305, 0.14843475818634033, 0.11209835112094879, -0.22211304306983948, 0.33929961919784546, -0.21881866455078125, -0.11058719456195831, -0.0895141065120697, 0.23480744659900665, 0.16858822107315063, -0.22783903777599335, 0.17039327323436737, -0.017974883317947388, 0.149161696434021, -0.060574788600206375, 0.03191544860601425, 0.2514956295490265, 0.2419128715991974, -0.29681527614593506, -0.008200665935873985, -0.14755026996135712, -0.13395027816295624, -0.32015272974967957, 0.020958373323082924, -0.4668424427509308, 0.3759159445762634, 0.3198997378349304, 0.00025117024779319763, -0.04862499609589577, -0.02421039715409279, -0.4064568877220154, 0.03823642060160637, 0.5310789942741394, 0.1629973202943802, -0.27170929312705994, 0.06989607959985733, -0.21878427267074585, -0.057816602289676666, 0.5587487816810608, -0.26715973019599915, 0.12109895050525665, 0.04035012051463127, 0.22793208062648773, 0.33333319425582886, -0.0913676992058754, -0.5478302240371704, 0.2801438570022583, 0.5396886467933655, -0.08369576185941696, 0.03364688158035278, 0.2122831642627716, 0.0887802243232727, -0.0016805529594421387, -0.12197508662939072, 0.47519877552986145, 0.15408171713352203, -0.3386334776878357, 0.0972762331366539, -0.029898066073656082 ]
https://github.com/huggingface/datasets/issues/1831
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 ?
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 ?
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.1346980631351471, -0.02914176881313324, -0.05659553408622742, 0.5307532548904419, 0.11883687973022461, -0.1144695058465004, 0.10200826823711395, -0.008243681862950325, 0.04150839149951935, 0.08339448273181915, -0.419790655374527, 0.20728333294391632, -0.1245637834072113, 0.5449790358543396, 0.17082010209560394, -0.09607569128274918, -0.09937658905982971, 0.12215816974639893, -0.10155972838401794, -0.06752236187458038, -0.3862852454185486, 0.29641371965408325, -0.29332202672958374, 0.17002184689044952, -0.12043614685535431, -0.043713003396987915, -0.03890809044241905, 0.31079649925231934, -0.4215297996997833, -0.28550514578819275, 0.2851448357105255, 0.21042391657829285, 0.3897266387939453, 0.2601921856403351, -0.00012526335194706917, 0.033956244587898254, 0.2576276361942291, -0.33769452571868896, -0.52913898229599, -0.30453166365623474, -0.6149902939796448, -0.018427342176437378, -0.07356946170330048, -0.2560708224773407, 0.14287276566028595, -0.0621146485209465, -0.08166893571615219, -0.19801455736160278, 0.02480270341038704, 0.025718972086906433, 0.05692709982395172, 0.3073020577430725, -0.07054951786994934, 0.07332025468349457, 0.2743450403213501, 0.28895047307014465, 0.006941661238670349, 0.10659930109977722, -0.00943627581000328, 0.3097071647644043, 0.19094246625900269, 0.31418442726135254, 0.19176331162452698, 0.11618407070636749, 0.4544147849082947, 0.35118773579597473, -0.36054521799087524, -0.3333881199359894, 0.001901344396173954, 0.24149344861507416, 0.3311741352081299, -0.349956214427948, -0.6002610921859741, -0.4451580047607422, -0.14475929737091064, -0.5862124562263489, 0.0866650938987732, 0.14513513445854187, -0.4294039011001587, 0.2783699929714203, -0.5737091898918152, -0.47020575404167175, -0.10782234370708466, -0.06307518482208252, -0.12459015846252441, 0.3833274841308594, -0.302112340927124, 0.036608971655368805, 0.12226182967424393, 0.36653822660446167, 0.18311020731925964, -0.20400570333003998, 0.0064977481961250305, 0.26284337043762207, -0.12736007571220398, -0.09684769064188004, -0.06920848786830902, 0.28003737330436707, 0.17934627830982208, 0.0004259273409843445, -0.09320232272148132, -0.2625409960746765, -0.022447936236858368, 0.036778777837753296, 0.3256849944591522, 0.08879469335079193, 0.05881543457508087, 0.2508299946784973, 0.2419351041316986, 0.1852351874113083, 0.22617405652999878, -0.2565542459487915, -0.07564902305603027, -0.09280361235141754, -0.3982130289077759, 0.16897962987422943, 0.02306530624628067, -0.08815587311983109, -0.2564200162887573, -0.2584714889526367, -0.1173209547996521, -0.31539469957351685, 0.3284134268760681, 0.36319535970687866, -0.1064462959766388, 0.09189985692501068, -0.021864287555217743, 0.03000975027680397, 0.13420382142066956, -0.25130680203437805, -0.0602545365691185, -0.13667738437652588, -0.1498391479253769, 0.15868625044822693, -0.23554366827011108, -0.07405243813991547, 0.3717947006225586, 0.04171253740787506, 0.03030465543270111, 0.09196323901414871, -0.0051720961928367615, -0.10271080583333969, 0.19871656596660614, 0.11280201375484467, 0.031949788331985474, 0.29062438011169434, -0.20867422223091125, -0.28544172644615173, -0.2164020836353302, -0.12387555837631226, -0.2959265112876892, -0.42389631271362305, 0.010931799188256264, -0.026596177369356155, -0.149695485830307, 0.13803397119045258, -0.24266235530376434, 0.006302095018327236, 0.06413619220256805, 0.3371737599372864, 0.021132048219442368, 0.006673315539956093, -0.43593838810920715, -0.2875217795372009, 0.4370478391647339, 0.4985264539718628, -0.27902328968048096, -0.1094859316945076, 0.09182998538017273, -0.3653407096862793, 0.04100407660007477, 0.08937104791402817, -0.37694108486175537, 0.5260190367698669, -0.42559584975242615, -0.15583093464374542, 0.4934951066970825, -0.4139980375766754, -0.28344881534576416, 0.5482251048088074, 0.08194085955619812, -0.011938869953155518, 0.394603967666626, -0.0027308426797389984, 0.2809687554836273, -0.09966296702623367, -0.061367109417915344, 0.5419443249702454, 0.12379872053861618, -0.11095331609249115, -0.03870921954512596, -0.28574511408805847, -0.11888673156499863, -0.09950889647006989, -0.14010363817214966, 0.20854182541370392, 0.06305137276649475, -0.14875757694244385, 0.5694387555122375, -0.06485390663146973, 0.20241838693618774, 0.3641734719276428, 0.016142267733812332, 0.2217394858598709, -0.03974902629852295, 0.03275752067565918, -0.6237201690673828, 0.1450575888156891, -0.29158857464790344, -0.2566766142845154, -0.34643110632896423, -0.36925381422042847, -0.28351086378097534, 0.13590414822101593, -0.22058546543121338, -0.3565537929534912, -0.08133784681558609, 0.1932130753993988, 0.4799256920814514, -0.03777727112174034, -0.32691729068756104, 0.5276399850845337, -0.026415430009365082, 0.10044458508491516, -0.15842214226722717, 0.039596378803253174, 0.15314552187919617, 0.15687549114227295, -0.028587862849235535, 0.11564341932535172, 0.11600137501955032, -0.203123539686203, 0.08793842047452927, 0.4732972979545593, 0.16672149300575256, 0.2244892567396164, 0.24886727333068848, 0.08665212988853455, 0.2675856351852417, 0.18159954249858856, -0.050038088113069534, -0.2840552031993866, 0.11663912981748581, 0.2693530321121216, 0.02175389602780342, 0.40507811307907104, -0.040229689329862595, 0.2749064862728119, 0.2071460634469986, -0.05860762670636177, 0.13754750788211823, -0.04612448066473007, 0.19098567962646484, -0.1717650294303894, -0.1450583040714264, 0.19571895897388458, 0.3370576500892639, 0.1461302638053894, -0.28319114446640015, 0.29675161838531494, 0.43354523181915283, -0.04222530126571655, -0.2803868353366852, 0.007216327358037233, -0.2794591188430786, -0.014330223202705383, 0.04629690945148468, 0.7960910797119141, 0.44385379552841187, 0.023025479167699814, 0.1914229393005371, 0.030060304328799248, 0.2835537791252136, -0.08163890987634659, 0.3543809652328491, 0.13280902802944183, -0.08093498647212982, -0.01962604559957981, -0.45423778891563416, -0.16633334755897522, 0.1930839568376541, -0.0439954474568367, 0.184514582157135, 0.17200568318367004, -0.3527049720287323, 0.07898013293743134, -0.24307875335216522, -0.39655792713165283, -0.2474396526813507, -0.18865597248077393, 0.034291647374629974, -0.178860604763031, -0.21458888053894043, -0.04657599702477455, -0.13735559582710266, -0.15257233381271362, -0.07528030872344971, -0.02308855950832367, -0.2846536636352539, 0.05192702263593674, -0.17617055773735046, -0.10791447758674622, -0.08718299865722656, -0.07350145280361176, 0.20064511895179749, 0.008561357855796814, 0.0978713259100914, -0.46970677375793457, 0.0869956836104393, -0.24512475728988647, 0.18683668971061707, 0.3407444357872009, 0.0611882358789444, 0.16299442946910858, 0.38500896096229553, 0.15439987182617188, -0.12841176986694336, -0.035544782876968384, -0.10438890010118484, 0.11080184578895569, -0.1283792406320572, -0.4418494403362274, 0.12645569443702698, 0.07320304214954376, -0.0949317216873169, -0.20785003900527954, -0.7182447910308838, -0.10018788278102875, 0.22224068641662598, -0.14307637512683868, 0.25215500593185425, -0.16815929114818573, -0.223976731300354, 0.042441725730895996, -0.32859665155410767, 0.051288917660713196, -0.1883377730846405, -0.7643768787384033, 0.28375840187072754, -0.36135074496269226, -0.24173176288604736, -0.06835389137268066, -0.13624049723148346, 0.15212543308734894, 0.05783779174089432, -0.19926750659942627, -0.01713690534234047, -0.1693497598171234, 0.21995311975479126, 0.11566829681396484, 0.3086595833301544, 0.03569295257329941, -0.03096248209476471, 0.15848571062088013, -0.15024802088737488, -0.04655187204480171, 0.2151978462934494, -0.3422459661960602, 0.3589675724506378, 0.39475059509277344, -0.042575933039188385, 0.2158913016319275, 0.7951546311378479, 0.22893396019935608, -0.11305048316717148, 0.15162011981010437, -0.10193890333175659, 0.39062029123306274, 0.3349590301513672, -0.2302665412425995, -0.048087745904922485, 0.012357674539089203, -0.039953313767910004, 0.13240396976470947, 0.09985440969467163, 0.22798949480056763, -0.2753508687019348, -0.12350308895111084, -0.17704373598098755, -0.18521147966384888, -0.07103418558835983, 0.5313082933425903, 0.18158641457557678, 0.07378417998552322, 0.2022852748632431, -0.028092190623283386, 0.0728430300951004, 0.060588538646698, 0.4210447371006012, 0.4186694025993347, 0.19214850664138794, -0.13437268137931824, -0.03966255486011505, -0.18153099715709686, 0.05332361161708832, 0.3352303206920624, -0.15678542852401733, 0.14729933440685272, 0.07376247644424438, 0.17967009544372559, 0.11913654208183289, 0.7116187810897827, 0.02388935722410679, -0.06984446942806244, -0.14316189289093018, -0.2801818251609802, -0.07078799605369568, 0.11492659151554108, -0.09573567658662796, 0.024242494255304337, 0.474697083234787, 0.23597532510757446, -0.39264583587646484, -0.39261236786842346, 0.12823887169361115, 0.16977325081825256, -0.2994645833969116, -0.11545486748218536, -0.1036771684885025, -0.17778202891349792, -0.19071567058563232, -0.22257089614868164, 0.10763420909643173, 0.06300905346870422, -0.005876991897821426, -0.006822153925895691, 0.10048270225524902, 0.09173174202442169, 0.014331880956888199, 0.16325582563877106, 0.4221811890602112, -0.039736296981573105, -0.01886819675564766, 0.4088663160800934, 0.39366868138313293, 0.18982872366905212, 0.47660645842552185, -0.42842838168144226, -0.17425838112831116, -0.04230852425098419, 0.049196645617485046, 0.6706677079200745, 0.2639821171760559, -0.4991541802883148, 0.04119335114955902, -0.02937605045735836, -0.12053024768829346, -0.3901124596595764, 0.22277644276618958, 0.2994392514228821, -0.0055162422358989716, -0.16258244216442108, -0.6853825449943542, 0.44797414541244507, -0.042115382850170135, -0.27546194195747375, 0.18759998679161072, 0.05262813717126846, -0.31348130106925964, -0.1579352468252182, -0.042969390749931335, 0.8905714154243469, 0.10916870832443237, 0.13263890147209167, 0.09643574804067612, -0.41279923915863037, 0.6062420606613159, -0.09399186819791794, -0.12761755287647247, -0.2241678684949875, -0.008478417992591858, -0.15411004424095154, -0.2611883282661438, -0.018129684031009674, -0.06391395628452301, -0.042785998433828354, 0.39585062861442566, -0.06760354340076447, 0.03168453648686409, 0.029226653277873993, 0.49772730469703674, -0.04417434707283974, -0.17076475918293, 0.044824499636888504, -0.11758793890476227, 0.2282165139913559, 0.4401252865791321, -0.07899510115385056, -0.49897176027297974, -0.3009529113769531, 0.11471712589263916, -0.05454954504966736, -0.07100511342287064, -0.44792425632476807, 0.028698164969682693, 0.035388074815273285, -0.3340222239494324, -0.08539856225252151, 0.6262850761413574, 0.2829655706882477, -0.0037523303180933, -0.17672710120677948, 0.07250647991895676, -0.05784885957837105, 0.07569582015275955, 0.2738869786262512, 0.15861156582832336, -0.07887596637010574, -0.038561899214982986, -0.17388410866260529, 0.08792580664157867, -0.038208723068237305, -0.19048067927360535, 0.11078599095344543, -0.12930932641029358, 0.2101067304611206, -0.24702920019626617, -0.0184246227145195, -0.01584341749548912, 0.08169466257095337, -0.06744753569364548, -0.018776865676045418, 0.28362932801246643, -0.3048091232776642, 0.06305450201034546, -0.28209710121154785, -0.3546583652496338, -0.17880259454250336, 0.3114255666732788, -0.11399571597576141, 0.056083276867866516, 0.23824256658554077, -0.12300054728984833, -0.28120821714401245, 0.003259904682636261, 0.2775328755378723, -0.1380118727684021, -0.36784833669662476, 0.27832648158073425, 0.30439478158950806, 0.15695591270923615, -0.3993867337703705, 0.25589054822921753, 0.05127770081162453, -0.31155097484588623, -0.23245209455490112, -0.4871129095554352, -0.22405081987380981, 0.19306263327598572, -0.31251585483551025, 0.1029733270406723, -0.06957226991653442, 0.11959891021251678, 0.07090198993682861, -0.022924121469259262, -0.17744699120521545, 0.011233791708946228, -0.051606323570013046, -0.14223812520503998, 0.35806435346603394, 0.10301191359758377, 0.3002462089061737, 0.028435681015253067, -0.06409255415201187, -0.07926242053508759, -0.032540954649448395, 0.0026256516575813293, -0.2550613284111023, 0.19151541590690613, -0.12907299399375916, -0.21191906929016113, 0.08967743813991547, -0.10739101469516754, -0.07285258173942566, 0.038683563470840454, 0.23451340198516846, 0.26771795749664307, 0.1994190812110901, 0.3762882947921753, -0.05581182241439819, -0.07181105762720108, -0.5359953045845032, 0.42927324771881104, 0.06651413440704346, 0.48075681924819946, -0.11214009672403336, 0.48398464918136597, -0.41241735219955444, -0.09120722115039825, 0.17447242140769958, -0.13535603880882263, -0.04912792891263962, -0.051689404994249344, 0.41210344433784485, 0.016532335430383682, 0.10322771221399307, 0.12271815538406372, 0.24864575266838074, 0.2484259009361267, -0.05891391634941101, 0.07339587807655334, 0.25887587666511536, -0.056736454367637634, -0.0575203001499176, 0.0019685737788677216, -0.12957724928855896, -0.01492462120950222, 0.04100982844829559, 0.34637847542762756, 0.3314772844314575, -0.01627328246831894, 0.0078020039945840836, -0.28438448905944824, 0.3758382201194763, 0.447637140750885, 0.009860266000032425, 0.6277902126312256, 0.15138502418994904, 0.3864414393901825, 0.19796493649482727, 0.613241970539093, 0.1873980611562729, 0.3135608732700348, -0.2671072483062744, -0.09850096702575684, -0.1000676155090332, 0.22155137360095978, 0.3323749601840973, -0.44877564907073975, 0.13228294253349304, 0.15278315544128418, -0.17467248439788818, 0.026917697861790657, -0.2832134962081909, 0.5812450647354126, -0.13071861863136292, 0.11581812798976898, -0.12242185324430466, 0.49584320187568665, 0.07821401953697205, -0.24743913114070892, -0.09647449851036072, -0.23816066980361938, -0.12135523557662964, 0.20788227021694183, -0.06114914268255234, -0.45058149099349976, 0.10272710025310516, -0.0796876773238182, 0.15198500454425812, 0.023210294544696808, 0.07237258553504944, 0.13939087092876434, 0.08828836679458618, -0.1974719762802124, 0.16374240815639496, -0.018808428198099136, 0.29371166229248047, 0.33347898721694946, 0.2842666506767273, 0.04944983124732971, 0.30337145924568176, 0.17448702454566956, -0.2400018870830536, 0.24576710164546967, -0.012386288493871689, -0.08532543480396271, -0.028378188610076904, -0.13752985000610352, -0.07904163002967834, 0.43828731775283813, -0.03689010441303253, -0.005012497305870056, -0.2990783751010895, 0.10531610250473022, 0.2747851312160492, 0.050746478140354156, 0.5575400590896606, -0.05248192325234413, 0.03603043407201767, 0.1257704496383667, -0.005042798817157745, -0.456218957901001, 0.05324752256274223, 0.2740339934825897, -0.2587764263153076, 0.21180543303489685, 0.02172045037150383, -0.00014550983905792236, 0.02389521896839142, 0.2618885338306427, 0.1903119832277298, 0.3403911292552948, -0.34252873063087463, -0.24394381046295166, -0.5069080591201782, -0.20153161883354187, 0.36208319664001465, -0.2535529136657715, -0.1272851973772049, 0.2939572334289551, -0.223521888256073, 0.2132791429758072, 0.05101342499256134, 0.28685861825942993, -0.0318668894469738, 0.14226943254470825, -0.11172649264335632, -0.17621107399463654, -0.3298962116241455, 0.1201423928141594, 0.10102642327547073, -0.19565460085868835, 0.31695568561553955, -0.17721013724803925, -0.1324804574251175, -0.10152013599872589, 0.24131782352924347, 0.14228425920009613, -0.1664539873600006, 0.11815930902957916, -0.022762533277273178, 0.09941692650318146, -0.07370850443840027, -0.06118110939860344, 0.18476837873458862, 0.16328153014183044, -0.297165185213089, 0.003246719017624855, -0.14494416117668152, -0.16464130580425262, -0.3252429962158203, 0.05198277160525322, -0.5005985498428345, 0.3418353796005249, 0.2640050947666168, 0.045313458889722824, -0.04865696281194687, -0.04134329408407211, -0.319669246673584, 0.05022890865802765, 0.5476945042610168, 0.11396383494138718, -0.295331209897995, 0.0001211315393447876, -0.17929981648921967, -0.004662856459617615, 0.5082623362541199, -0.268980473279953, 0.14560794830322266, 0.07433155179023743, 0.18205368518829346, 0.3494507372379303, -0.04596957936882973, -0.5170996785163879, 0.22811579704284668, 0.5126157999038696, -0.07096613943576813, 0.13376274704933167, 0.17367446422576904, 0.044692497700452805, -0.020274348556995392, -0.11745487153530121, 0.467048317193985, 0.17937414348125458, -0.38254982233047485, 0.12299386411905289, -0.0028741657733917236 ]
https://github.com/huggingface/datasets/issues/1831
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.
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 ?
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.1199875921010971, -0.10072723031044006, -0.044122617691755295, 0.5240065455436707, 0.043897759169340134, -0.1413998007774353, 0.11834052950143814, 0.017049528658390045, 0.011314891278743744, 0.1344253420829773, -0.34619325399398804, 0.1511436402797699, -0.13548901677131653, 0.5920692682266235, 0.1894121915102005, -0.037962883710861206, -0.0841844230890274, 0.12170065939426422, -0.10777195543050766, -0.08790089190006256, -0.3565676808357239, 0.2822727859020233, -0.26870304346084595, 0.165711909532547, -0.19466668367385864, -0.024846702814102173, -0.018101178109645844, 0.31912776827812195, -0.47272542119026184, -0.27376285195350647, 0.3005143404006958, 0.21283245086669922, 0.40053457021713257, 0.17420735955238342, -0.00012492024688981473, 0.03750215470790863, 0.27286145091056824, -0.34029078483581543, -0.5269051790237427, -0.26960575580596924, -0.6916821002960205, -0.008249368518590927, -0.05797344818711281, -0.2070537507534027, 0.15472511947155, 0.011263549327850342, -0.05310063809156418, -0.13250058889389038, 0.0858321487903595, 0.1186290830373764, 0.05185846984386444, 0.36971497535705566, -0.0970061793923378, 0.06019389256834984, 0.31833165884017944, 0.2908326983451843, 0.007793426513671875, 0.12664365768432617, -0.0761735737323761, 0.34059378504753113, 0.10568804293870926, 0.3024417757987976, 0.22258260846138, 0.10281112790107727, 0.4406280815601349, 0.33734890818595886, -0.37812402844429016, -0.27691176533699036, 0.03730981424450874, 0.24233078956604004, 0.3537123203277588, -0.28128406405448914, -0.5841249227523804, -0.40834587812423706, -0.11912554502487183, -0.46854299306869507, 0.10807722061872482, 0.12144530564546585, -0.4281236529350281, 0.3086465299129486, -0.5675061345100403, -0.47802525758743286, -0.16583962738513947, -0.08521473407745361, -0.13754968345165253, 0.31644052267074585, -0.2775338590145111, 0.06630583107471466, 0.07925626635551453, 0.38436272740364075, 0.2701303958892822, -0.22812286019325256, -0.021869555115699768, 0.2174348533153534, -0.10736098885536194, -0.1102789118885994, -0.051224078983068466, 0.29540055990219116, 0.177695631980896, 0.01952328532934189, -0.12462595105171204, -0.2577974498271942, -0.06223907694220543, 0.03449665755033493, 0.34081292152404785, 0.0334264300763607, 0.13010329008102417, 0.24120962619781494, 0.2612248659133911, 0.17661093175411224, 0.16608862578868866, -0.2614009976387024, -0.11514902114868164, -0.06749788671731949, -0.3462032377719879, 0.1671789288520813, 0.01852302998304367, -0.11034354567527771, -0.1785896122455597, -0.239181250333786, -0.027965180575847626, -0.349695086479187, 0.3141704797744751, 0.357330322265625, -0.1220673993229866, 0.04270710051059723, -0.1295645534992218, -0.0033858446404337883, 0.10850491374731064, -0.3434869349002838, -0.057591695338487625, -0.20418402552604675, -0.1811356395483017, 0.11465445905923843, -0.246775820851326, -0.11905968189239502, 0.3445103168487549, 0.03687793016433716, 0.004490615800023079, 0.05116695165634155, -0.02122906595468521, -0.05542508140206337, 0.2633838951587677, 0.11531323939561844, 0.022503629326820374, 0.24984031915664673, -0.17231909930706024, -0.259572297334671, -0.1941959261894226, -0.14013412594795227, -0.32650983333587646, -0.46929240226745605, -0.0550040528178215, -0.036522164940834045, -0.13976438343524933, 0.08825553953647614, -0.20459231734275818, -0.035949163138866425, -0.0043264105916023254, 0.2903861403465271, 0.015333835035562515, 0.03687494620680809, -0.43757402896881104, -0.26140737533569336, 0.415071964263916, 0.5498956441879272, -0.26407575607299805, -0.12488243728876114, 0.16261422634124756, -0.4113043546676636, 0.005507420748472214, 0.08511444926261902, -0.37622180581092834, 0.44812554121017456, -0.3954286575317383, -0.1491192728281021, 0.42845410108566284, -0.3486131727695465, -0.28353258967399597, 0.5134192109107971, 0.06857332587242126, -0.009267203509807587, 0.42270907759666443, 0.0049935802817344666, 0.3071332573890686, -0.08315420150756836, -0.07494831085205078, 0.5160322189331055, 0.11158940196037292, -0.11258518695831299, -0.014631763100624084, -0.2521877586841583, -0.15627333521842957, -0.0869763195514679, -0.09833897650241852, 0.2540660500526428, 0.1340302973985672, -0.1878974437713623, 0.5806201696395874, -0.09069579839706421, 0.20480431616306305, 0.28495773673057556, 0.06661269068717957, 0.14460641145706177, -0.04341571405529976, 0.059239692986011505, -0.6398257613182068, 0.20616894960403442, -0.27134817838668823, -0.24023765325546265, -0.3789282441139221, -0.33210277557373047, -0.289672315120697, 0.13957738876342773, -0.22517240047454834, -0.31429895758628845, -0.08741068840026855, 0.14751505851745605, 0.47253382205963135, 0.042308032512664795, -0.31488367915153503, 0.5093698501586914, -0.08090424537658691, 0.1222967728972435, -0.16393783688545227, 0.05523411184549332, 0.16159483790397644, 0.1928497552871704, -0.007558204233646393, 0.09639053046703339, 0.11788386851549149, -0.15112119913101196, 0.03786955028772354, 0.42458027601242065, 0.12220405042171478, 0.25142133235931396, 0.3347152769565582, 0.05761627107858658, 0.2651589810848236, 0.14589811861515045, -0.005686557851731777, -0.27408984303474426, 0.07453292608261108, 0.21045291423797607, 0.03841380029916763, 0.4083472788333893, -0.01985139586031437, 0.2785649299621582, 0.16968096792697906, -0.008431024849414825, 0.10390033572912216, -0.03080224245786667, 0.1452541947364807, -0.16566228866577148, -0.17338252067565918, 0.1735546588897705, 0.3252805471420288, 0.09082680195569992, -0.24939432740211487, 0.26925066113471985, 0.46805503964424133, -0.06802865862846375, -0.3477776348590851, 0.11484141647815704, -0.2691212296485901, -0.05571654438972473, 0.12462800741195679, 0.8814340233802795, 0.40175318717956543, 0.012344054877758026, 0.23615050315856934, 0.071854367852211, 0.2702476978302002, -0.0683172419667244, 0.3649236261844635, 0.08198621869087219, -0.0913178101181984, -0.014956548810005188, -0.4808924198150635, -0.19156648218631744, 0.15246930718421936, -0.022606298327445984, 0.18273842334747314, 0.16122902929782867, -0.36833900213241577, 0.03308267891407013, -0.2861871123313904, -0.3713715374469757, -0.22214767336845398, -0.14414876699447632, -0.0842055082321167, -0.1802140325307846, -0.23560185730457306, -0.09176868200302124, -0.15674926340579987, -0.2011982947587967, -0.1180165708065033, 0.02902109920978546, -0.22266259789466858, 0.06880488991737366, -0.19168023765087128, -0.15537065267562866, -0.09857524931430817, -0.0907021015882492, 0.1838148981332779, -0.039756424725055695, 0.0875818207859993, -0.49639564752578735, 0.14699390530586243, -0.30516454577445984, 0.20475806295871735, 0.3494756519794464, 0.03369264304637909, 0.17684942483901978, 0.4060949981212616, 0.2000524401664734, -0.06655342131853104, 0.0030449964106082916, -0.10940255969762802, 0.09116238355636597, -0.10930467396974564, -0.3894088864326477, 0.1404077708721161, 0.09432380646467209, -0.0475684255361557, -0.22936862707138062, -0.6929691433906555, -0.04163169860839844, 0.24087679386138916, -0.19812214374542236, 0.27621591091156006, -0.10551394522190094, -0.13781726360321045, 0.03868164122104645, -0.4083721339702606, -0.013105621561408043, -0.18604832887649536, -0.8774709701538086, 0.27538079023361206, -0.3544986844062805, -0.23037950694561005, -0.05392995849251747, -0.0597018226981163, 0.17877158522605896, 0.0648876428604126, -0.2197255641222, -0.015143569558858871, -0.11512724310159683, 0.27846041321754456, 0.12762686610221863, 0.29276517033576965, 0.051894281059503555, -0.05665308237075806, 0.16488270461559296, -0.15887103974819183, -0.05074498802423477, 0.23709148168563843, -0.3477137088775635, 0.3656216561794281, 0.40611711144447327, -0.013174084015190601, 0.2261141836643219, 0.7650014162063599, 0.18526563048362732, -0.07836544513702393, 0.1470414698123932, -0.1283288300037384, 0.33871251344680786, 0.3169538974761963, -0.19098258018493652, -0.04542657732963562, -0.07151749730110168, -0.0789538323879242, 0.17518243193626404, 0.12322472035884857, 0.23929069936275482, -0.29068470001220703, -0.21207232773303986, -0.16550013422966003, -0.18593136966228485, -0.11481428146362305, 0.5175089836120605, 0.16060081124305725, 0.11399213969707489, 0.2111281454563141, -0.11490878462791443, 0.046660516411066055, 0.09160721302032471, 0.37275490164756775, 0.4440423250198364, 0.18545643985271454, -0.13312003016471863, 0.017286375164985657, -0.22045938670635223, 0.08725796639919281, 0.33342406153678894, -0.13853062689304352, 0.15635474026203156, 0.05649617314338684, 0.19492864608764648, 0.14949369430541992, 0.7233953475952148, -0.010727129876613617, -0.031936973333358765, -0.21975448727607727, -0.2569630742073059, -0.026556409895420074, 0.12340199947357178, -0.0482272133231163, 0.033976417034864426, 0.45495468378067017, 0.24888482689857483, -0.359749972820282, -0.3623926043510437, 0.15460406243801117, 0.1162097305059433, -0.2746764123439789, -0.11467662453651428, -0.08331224322319031, -0.08994108438491821, -0.1801084280014038, -0.2004745602607727, 0.05396813154220581, 0.056837230920791626, -0.031086977571249008, -0.026908181607723236, 0.1527349352836609, 0.142888605594635, -0.033535316586494446, 0.1749981939792633, 0.3482396900653839, -0.06587325036525726, -0.023458804935216904, 0.44822320342063904, 0.44150128960609436, 0.17504246532917023, 0.45152220129966736, -0.3798855245113373, -0.19042952358722687, -0.09102202951908112, 0.015267111361026764, 0.667197585105896, 0.2702573537826538, -0.45986419916152954, 0.02533746138215065, 0.09219133853912354, -0.09705977141857147, -0.4243960678577423, 0.20113836228847504, 0.2834625244140625, -0.025295665487647057, -0.19498097896575928, -0.6230820417404175, 0.49084994196891785, -0.11231470108032227, -0.24026447534561157, 0.18117572367191315, 0.12887156009674072, -0.3148920238018036, -0.16431444883346558, -0.005882415920495987, 0.8531176447868347, 0.12055127322673798, 0.15518617630004883, 0.11117956042289734, -0.4877263307571411, 0.5681889057159424, -0.1102224588394165, -0.15492777526378632, -0.2622862756252289, -0.013986162841320038, -0.20053544640541077, -0.23488278687000275, -0.007567295804619789, -0.05353880673646927, 0.0036478564143180847, 0.37709853053092957, 0.008833348751068115, 0.09624005854129791, 0.019093520939350128, 0.514458179473877, -0.057441651821136475, -0.15685731172561646, 0.10193230211734772, -0.11203650385141373, 0.20220674574375153, 0.4311731159687042, -0.061142828315496445, -0.5024576783180237, -0.2511904239654541, 0.08234622329473495, -0.036788731813430786, -0.057554539293050766, -0.4359019100666046, -0.06462830305099487, 0.1010863333940506, -0.3668345808982849, -0.10168228298425674, 0.5698292255401611, 0.24791869521141052, 0.021380973979830742, -0.21063567698001862, 0.10941620171070099, -0.09360891580581665, 0.1404229998588562, 0.24287199974060059, 0.11148884892463684, -0.07985829561948776, -0.0651344582438469, -0.20686399936676025, 0.07147260755300522, -0.03932735323905945, -0.2618878483772278, 0.12173977494239807, -0.1065540611743927, 0.15921738743782043, -0.26591843366622925, -0.02382325753569603, -0.06511790305376053, 0.06637174636125565, -0.08321759849786758, -0.019866596907377243, 0.22813260555267334, -0.285693883895874, 0.03718695044517517, -0.2354150265455246, -0.3530791103839874, -0.17049480974674225, 0.36650025844573975, -0.18454313278198242, 0.036988645792007446, 0.2687326967716217, -0.09281840920448303, -0.2668078541755676, 0.0150240957736969, 0.30829352140426636, -0.10778370499610901, -0.3853510320186615, 0.24817784130573273, 0.2917559742927551, 0.19743044674396515, -0.4033752977848053, 0.23622757196426392, 0.017540082335472107, -0.25718823075294495, -0.18180343508720398, -0.4481990337371826, -0.22016090154647827, 0.13894522190093994, -0.35900646448135376, 0.11877046525478363, -0.05643179267644882, 0.10305401682853699, 0.0875072255730629, -0.060907796025276184, -0.17758116126060486, 0.02925124019384384, -0.031663037836551666, -0.17088033258914948, 0.30032309889793396, 0.12318679690361023, 0.3215070068836212, 0.030465129762887955, -0.07578656077384949, -0.037502698600292206, -0.023897016420960426, 0.012370873242616653, -0.26746538281440735, 0.20465369522571564, -0.11779144406318665, -0.17218804359436035, 0.09889867901802063, -0.06692861020565033, -0.10826973617076874, 0.11157229542732239, 0.2172594666481018, 0.2519301772117615, 0.17155484855175018, 0.4327414631843567, -0.057805951684713364, -0.07814119756221771, -0.5655526518821716, 0.4370853900909424, 0.07442410290241241, 0.5529673099517822, -0.14224323630332947, 0.49687063694000244, -0.4778571128845215, -0.059820979833602905, 0.17091146111488342, -0.06790514290332794, -0.03516176715493202, -0.092473104596138, 0.4812840223312378, 0.027164340019226074, 0.08242626488208771, 0.1139088124036789, 0.2881809175014496, 0.2134973108768463, -0.055994920432567596, -0.022076979279518127, 0.2925490438938141, -0.06583487242460251, -0.02433805540204048, -0.006055545061826706, -0.11527695506811142, -0.05155150592327118, -0.0074524953961372375, 0.26729297637939453, 0.31705957651138306, -0.057474128901958466, 0.036660946905612946, -0.28357547521591187, 0.30315884947776794, 0.4111514985561371, 0.01609174907207489, 0.6047905087471008, 0.13519763946533203, 0.3596574664115906, 0.20577168464660645, 0.5650693774223328, 0.14625151455402374, 0.346920907497406, -0.27325934171676636, -0.10610971599817276, -0.0679321140050888, 0.2807178795337677, 0.33053067326545715, -0.4702316224575043, 0.14464445412158966, 0.11347955465316772, -0.22966578602790833, 0.0006696786731481552, -0.2954064607620239, 0.6380748152732849, -0.04820727929472923, 0.14276909828186035, -0.18980589509010315, 0.5034022927284241, 0.09230224788188934, -0.26701974868774414, -0.13571560382843018, -0.260368287563324, -0.16468767821788788, 0.2709102928638458, -0.06806735694408417, -0.42041531205177307, 0.0985170304775238, -0.0504767931997776, 0.17679451406002045, 0.02801373228430748, 0.02872830256819725, 0.06619734317064285, 0.09504926949739456, -0.2267216145992279, 0.10044620931148529, 0.016168106347322464, 0.292477011680603, 0.41725343465805054, 0.2327011376619339, 0.03231668099761009, 0.25832608342170715, 0.2004224956035614, -0.2206254005432129, 0.24011048674583435, -0.018181290477514267, -0.0658186599612236, 0.027500726282596588, -0.12936444580554962, 0.01381973922252655, 0.4370177090167999, -0.04640933871269226, 0.02112331986427307, -0.29373911023139954, 0.04024308919906616, 0.2716836929321289, -0.013460986316204071, 0.48851171135902405, 0.01118897832930088, 0.021814927458763123, 0.07291251420974731, 0.014839667826890945, -0.4192558526992798, 0.07811848819255829, 0.31700605154037476, -0.2312471568584442, 0.18613585829734802, -0.009423982352018356, -0.004024282097816467, -0.06532410532236099, 0.352585107088089, 0.22034204006195068, 0.3803896903991699, -0.3470630645751953, -0.2478015273809433, -0.451430082321167, -0.21482454240322113, 0.3679116368293762, -0.22358116507530212, -0.08212587237358093, 0.2524750530719757, -0.2352212816476822, 0.1795068085193634, 0.014575865119695663, 0.2517455518245697, -0.051586829125881195, 0.1812436878681183, -0.07469566911458969, -0.1761792004108429, -0.35985249280929565, 0.12858018279075623, 0.08890808373689651, -0.1742636263370514, 0.35840854048728943, -0.117886483669281, -0.16735364496707916, -0.097177654504776, 0.23763641715049744, 0.17410032451152802, -0.23551857471466064, 0.1722305566072464, 0.0413748174905777, 0.13445356488227844, -0.06455408036708832, -0.05570964515209198, 0.12124668061733246, 0.16739848256111145, -0.32418811321258545, -0.038896020501852036, -0.15373903512954712, -0.13084349036216736, -0.19898837804794312, 0.039429184049367905, -0.5205610394477844, 0.3817766010761261, 0.24143970012664795, 0.09032510221004486, -0.05928155407309532, -0.056486617773771286, -0.295854389667511, 0.011628128588199615, 0.5659478902816772, 0.13104936480522156, -0.24987751245498657, 0.023048900067806244, -0.1982487291097641, 0.017298653721809387, 0.5022479891777039, -0.3008304238319397, 0.1593635082244873, 0.06078764796257019, 0.22316545248031616, 0.34167471528053284, -0.10279931873083115, -0.5669336318969727, 0.20016920566558838, 0.5056931972503662, -0.11717228591442108, 0.15273985266685486, 0.16592049598693848, 0.14244505763053894, 0.028700590133666992, -0.10235875844955444, 0.5085360407829285, 0.19500486552715302, -0.4277586042881012, 0.131469264626503, -0.02523338794708252 ]
https://github.com/huggingface/datasets/issues/1831
Once #1846 will be merged, the paths to the raw downloaded files will be accessible as: ```python builder_instance.dl_manager.downloaded_paths ```
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 ?
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.2227526158094406, -0.07279019057750702, -0.07953457534313202, 0.5368559956550598, 0.11309169232845306, -0.07173097878694534, 0.11943285167217255, -0.04083794355392456, 0.03015834093093872, 0.12580606341362, -0.37297308444976807, 0.190369114279747, -0.1131502166390419, 0.6030974388122559, 0.14625483751296997, -0.049461957067251205, -0.052851781249046326, 0.19315485656261444, -0.0936017781496048, -0.04381422698497772, -0.41981419920921326, 0.30987536907196045, -0.3674634099006653, 0.111643947660923, -0.18325726687908173, 0.0009521022439002991, 0.004194222390651703, 0.28491339087486267, -0.48559221625328064, -0.259787917137146, 0.2608337700366974, 0.20130380988121033, 0.40079522132873535, 0.24474161863327026, -0.0001246907195309177, 0.04527227580547333, 0.29022160172462463, -0.33600687980651855, -0.4938015937805176, -0.2695343792438507, -0.6499730348587036, 0.008085474371910095, -0.07448244094848633, -0.1832292377948761, 0.0880003571510315, -0.0940372571349144, -0.08865812420845032, -0.11867281794548035, 0.12164264172315598, 0.09114255756139755, 0.06241077184677124, 0.3518901467323303, -0.021356754004955292, 0.024473410099744797, 0.22501757740974426, 0.25220435857772827, 0.05808313935995102, 0.0618891678750515, -0.02526574581861496, 0.3873560428619385, 0.19038015604019165, 0.28158360719680786, 0.23300665616989136, 0.11517633497714996, 0.4400796890258789, 0.27466413378715515, -0.284964382648468, -0.34415191411972046, 0.06462676078081131, 0.18970751762390137, 0.34174060821533203, -0.3277813196182251, -0.48005053400993347, -0.35111328959465027, -0.12979787588119507, -0.5806759595870972, 0.06381969898939133, 0.12261495739221573, -0.4566832482814789, 0.27881255745887756, -0.5162332653999329, -0.5137310028076172, -0.13608522713184357, -0.09485380351543427, -0.23399052023887634, 0.4693613648414612, -0.3634059727191925, 0.033923108130693436, 0.07878893613815308, 0.4059506952762604, 0.25238990783691406, -0.19821131229400635, -0.0329442173242569, 0.2363317459821701, -0.1470576673746109, -0.14512929320335388, -0.12419693171977997, 0.24373243749141693, 0.18728864192962646, -0.010250594466924667, -0.15922869741916656, -0.250805139541626, 0.06323204934597015, 0.041423190385103226, 0.3790724575519562, 0.048365455120801926, 0.07307474315166473, 0.25804373621940613, 0.25100216269493103, 0.1209765374660492, 0.14411355555057526, -0.23359093070030212, -0.09296739101409912, -0.06286230683326721, -0.3814370632171631, 0.1422060877084732, 0.02510109543800354, -0.054440148174762726, -0.2750726640224457, -0.21448850631713867, -0.08977008610963821, -0.32153260707855225, 0.3057873845100403, 0.3743992745876312, -0.10193632543087006, 0.02205672487616539, -0.04234626144170761, 0.01586483046412468, 0.12650996446609497, -0.32918819785118103, -0.08459599316120148, -0.23305124044418335, -0.15517155826091766, 0.03512362390756607, -0.28792691230773926, -0.10389535129070282, 0.4116898775100708, 0.10918489098548889, 0.014077484607696533, 0.0599600225687027, 0.013430334627628326, -0.07171891629695892, 0.1696663349866867, 0.1859179586172104, 0.049051448702812195, 0.214847132563591, -0.19173645973205566, -0.2592780590057373, -0.1738080382347107, -0.07483004033565521, -0.32270151376724243, -0.4281929135322571, -0.12090114504098892, 0.008147821761667728, -0.1694132387638092, 0.1197640597820282, -0.21290671825408936, 0.028026018291711807, 0.1235993504524231, 0.2871412932872772, 0.0152980275452137, -0.011190321296453476, -0.42825621366500854, -0.25140130519866943, 0.3835567235946655, 0.4348742961883545, -0.22151345014572144, -0.123000867664814, 0.09401215612888336, -0.4314323663711548, 0.06299223750829697, 0.047817107290029526, -0.3582913279533386, 0.5085851550102234, -0.4254651367664337, -0.18228061497211456, 0.5232155919075012, -0.3267563283443451, -0.24765780568122864, 0.5593613386154175, 0.11161330342292786, -0.09789643436670303, 0.4094046652317047, -0.030503353103995323, 0.28242915868759155, -0.0730033591389656, -0.0714549720287323, 0.531920313835144, 0.1348211020231247, -0.11838622391223907, 0.03075004369020462, -0.24293044209480286, -0.1591518372297287, -0.11991337686777115, -0.11367365717887878, 0.252461314201355, 0.073894202709198, -0.13675996661186218, 0.52605801820755, -0.04977167025208473, 0.2035023272037506, 0.33507758378982544, -0.0111465435475111, 0.1369570791721344, 0.017329271882772446, -0.015498951077461243, -0.6657514572143555, 0.0838523656129837, -0.29744774103164673, -0.25763317942619324, -0.26900914311408997, -0.35591280460357666, -0.3377186059951782, 0.17514684796333313, -0.2877255082130432, -0.3327607810497284, -0.07928210496902466, 0.0922701433300972, 0.4710850715637207, -0.025878243148326874, -0.39520925283432007, 0.5251182317733765, -0.04188048094511032, 0.1615414023399353, -0.08880358934402466, -0.004625685513019562, 0.14276078343391418, 0.13986748456954956, 0.0007157400250434875, 0.1126953512430191, 0.08031406998634338, -0.1782865673303604, 0.0629311129450798, 0.4662191569805145, 0.15163101255893707, 0.19590692222118378, 0.17180235683918, 0.009357467293739319, 0.2583298683166504, 0.18170449137687683, -0.05108672380447388, -0.22975504398345947, 0.09710270166397095, 0.21278895437717438, 0.05651412159204483, 0.3524629473686218, 0.022317957133054733, 0.25957316160202026, 0.16509483754634857, -0.06907421350479126, 0.14723096787929535, -0.0168985053896904, 0.19596022367477417, -0.22397664189338684, -0.1486387848854065, 0.20687595009803772, 0.3971291482448578, 0.15361742675304413, -0.27143073081970215, 0.19678932428359985, 0.42086493968963623, -0.06795476377010345, -0.2724224925041199, 0.03422778099775314, -0.3187577724456787, -0.03334938362240791, 0.05665662884712219, 0.7819697856903076, 0.48301878571510315, 0.019000254571437836, 0.19432687759399414, 0.08965281397104263, 0.2920682728290558, -0.12521125376224518, 0.40044769644737244, 0.12244515120983124, -0.032063961029052734, 0.07603972405195236, -0.4785556495189667, -0.20692084729671478, 0.14022958278656006, 0.02876850962638855, 0.2454361617565155, 0.15550051629543304, -0.3239542245864868, 0.053590789437294006, -0.23969292640686035, -0.3992614448070526, -0.2819198668003082, -0.14867433905601501, -0.01599113829433918, -0.1645132303237915, -0.2436564415693283, -0.05742441490292549, -0.09815318882465363, -0.16977077722549438, -0.04883815720677376, 0.005650818347930908, -0.2327386736869812, 0.07420604676008224, -0.1707393378019333, -0.09411317110061646, -0.10392570495605469, -0.06432077288627625, 0.17746780812740326, -0.022661402821540833, 0.08940001577138901, -0.4694090187549591, 0.12176191061735153, -0.1666531264781952, 0.18321509659290314, 0.35408130288124084, 0.08138008415699005, 0.1517675668001175, 0.44314995408058167, 0.12896819412708282, -0.020490631461143494, 0.006859004497528076, -0.12509968876838684, 0.12453636527061462, -0.1264801025390625, -0.47169363498687744, 0.10300378501415253, 0.09852886199951172, -0.08310382068157196, -0.20642974972724915, -0.7116599678993225, -0.09922633320093155, 0.12189556658267975, -0.10455456376075745, 0.21853278577327728, -0.13338735699653625, -0.1711411476135254, 0.017439506947994232, -0.2863849699497223, -0.0070470161736011505, -0.22023749351501465, -0.7402295470237732, 0.20953796803951263, -0.373506635427475, -0.20580549538135529, -0.05531502887606621, -0.12005689740180969, 0.21114575862884521, -0.008677829056978226, -0.16509731113910675, 0.05140520632266998, -0.1619436889886856, 0.1768592894077301, 0.08311157673597336, 0.37623995542526245, -0.03478062152862549, -0.049743492156267166, 0.16115695238113403, -0.193586528301239, -0.00183897465467453, 0.18269237875938416, -0.39158037304878235, 0.36621883511543274, 0.3890746831893921, -0.024342821910977364, 0.12294895946979523, 0.756113588809967, 0.28647154569625854, -0.1502741575241089, 0.17534314095973969, -0.13640351593494415, 0.42529746890068054, 0.2925865054130554, -0.177347332239151, -0.04888772591948509, 0.07276716828346252, -0.06939896196126938, 0.1823142021894455, 0.09213345497846603, 0.2284848690032959, -0.26282399892807007, -0.16670836508274078, -0.11210228502750397, -0.13025981187820435, -0.14206147193908691, 0.5496483445167542, 0.1925712376832962, 0.09298780560493469, 0.19020426273345947, -0.0035491064190864563, 0.06130817532539368, 0.021014966070652008, 0.4095698595046997, 0.3880937397480011, 0.16189886629581451, -0.06720627099275589, -0.07496092468500137, -0.2247972935438156, 0.07422184944152832, 0.2897365689277649, -0.17739002406597137, 0.17768840491771698, 0.09866636991500854, 0.20313811302185059, 0.11854331195354462, 0.702144980430603, -0.018074501305818558, -0.09241688251495361, -0.1328486204147339, -0.21924248337745667, -0.011309310793876648, 0.10380339622497559, -0.1278325319290161, 0.10782995820045471, 0.5110149383544922, 0.2077200710773468, -0.37211498618125916, -0.43815624713897705, 0.21518316864967346, 0.10949426889419556, -0.28120657801628113, -0.18378368020057678, -0.15446847677230835, -0.10781959444284439, -0.22265467047691345, -0.20919275283813477, 0.1499243676662445, 0.0881495326757431, -0.005703568458557129, -0.05667861923575401, 0.08265120536088943, 0.08418206870555878, -0.008677590638399124, 0.1462733894586563, 0.36093419790267944, -0.012085951864719391, -0.07332877814769745, 0.35743528604507446, 0.39060696959495544, 0.19430416822433472, 0.46372753381729126, -0.3728155791759491, -0.17683105170726776, -0.026509815827012062, 0.05314048007130623, 0.7556014060974121, 0.17636647820472717, -0.4882670044898987, 0.060123540461063385, -0.011634323745965958, -0.07556846737861633, -0.37209802865982056, 0.24221529066562653, 0.2992217540740967, 0.03219931572675705, -0.18011042475700378, -0.6387314796447754, 0.48006942868232727, -0.052098870277404785, -0.2018403857946396, 0.16663075983524323, 0.0069740526378154755, -0.3069557249546051, -0.14859816431999207, -0.0105794258415699, 0.7889219522476196, 0.16144756972789764, 0.11219978332519531, 0.085786372423172, -0.4110885560512543, 0.5621547698974609, -0.12681834399700165, -0.1707640141248703, -0.296733021736145, 0.05377396196126938, -0.14208100736141205, -0.26154249906539917, 0.04876992851495743, -0.09641462564468384, -0.08357017487287521, 0.3538786768913269, -0.10315550118684769, 0.07831219583749771, 0.035116471350193024, 0.5478224158287048, -0.09284039586782455, -0.10320314764976501, 0.09889635443687439, -0.11135631799697876, 0.257515549659729, 0.4692693054676056, -0.12615543603897095, -0.4839957654476166, -0.1835496872663498, 0.10571330040693283, -0.051383182406425476, -0.09796957671642303, -0.43277567625045776, -0.01700066775083542, 0.09261523187160492, -0.35371679067611694, 0.012873291969299316, 0.6208475828170776, 0.2836615741252899, 0.023147908970713615, -0.16483402252197266, 0.06734515726566315, -0.049520473927259445, 0.07690145075321198, 0.24807751178741455, 0.2085043489933014, -0.06990449130535126, -0.0784725546836853, -0.15814857184886932, 0.1368759721517563, 0.010730251669883728, -0.2063123732805252, 0.08965514600276947, -0.10356545448303223, 0.18163548409938812, -0.3317040801048279, -0.03476075455546379, -0.04171853885054588, 0.06684242188930511, -0.06872762739658356, -0.010937929153442383, 0.22277042269706726, -0.3475804328918457, 0.062142834067344666, -0.2775215804576874, -0.38756680488586426, -0.19291788339614868, 0.2877930998802185, -0.05374052748084068, 0.06001019477844238, 0.22071324288845062, -0.0982341319322586, -0.20244860649108887, -0.039891570806503296, 0.3363056480884552, -0.10708613693714142, -0.2793477177619934, 0.3372610807418823, 0.32251667976379395, 0.09401217103004456, -0.3637562394142151, 0.31484171748161316, -0.04051169380545616, -0.23936599493026733, -0.24529176950454712, -0.48228904604911804, -0.2695068418979645, 0.12329353392124176, -0.3319843113422394, 0.12494021654129028, -0.0620177760720253, 0.19582867622375488, 0.06519705802202225, -0.024379415437579155, -0.1795799881219864, 0.009098012000322342, -0.036262597888708115, -0.14892932772636414, 0.30708643794059753, 0.09862367808818817, 0.2730361223220825, 0.09484009444713593, -0.07222159206867218, -0.020914409309625626, -0.07238614559173584, -0.010793182998895645, -0.22540083527565002, 0.18569417297840118, -0.128886416554451, -0.1764187216758728, 0.11621861159801483, -0.07215716689825058, -0.17466065287590027, 0.12631060183048248, 0.2937784790992737, 0.157710999250412, 0.1738809198141098, 0.3827465772628784, -0.07631302624940872, -0.05025677755475044, -0.5465726256370544, 0.35602065920829773, 0.09666065871715546, 0.4793522357940674, -0.1747327297925949, 0.48573756217956543, -0.4541739821434021, -0.044782400131225586, 0.1853281706571579, -0.12383133172988892, 0.004904836416244507, -0.11672254651784897, 0.4232526421546936, -0.021385494619607925, 0.1024014800786972, 0.10843208432197571, 0.29477638006210327, 0.25231844186782837, -0.10781154036521912, 0.0440974235534668, 0.19664372503757477, -0.045934855937957764, -0.05867652967572212, -0.002026427537202835, -0.11702337861061096, -0.00769946351647377, 0.021397113800048828, 0.32239705324172974, 0.33948713541030884, 0.015130683779716492, -0.011926505714654922, -0.24167700111865997, 0.33748337626457214, 0.4738019108772278, 0.030713967978954315, 0.6178556680679321, 0.15476630628108978, 0.3950327932834625, 0.23197095096111298, 0.6090508103370667, 0.1564682275056839, 0.3764050006866455, -0.2511894702911377, -0.09264004230499268, -0.07205328345298767, 0.20948272943496704, 0.37991660833358765, -0.4324008524417877, 0.18410496413707733, 0.18723849952220917, -0.21922454237937927, 0.028991078957915306, -0.24777069687843323, 0.5808359980583191, -0.1430683135986328, 0.11189001798629761, -0.17776131629943848, 0.4941425621509552, -0.006395775359123945, -0.2583305239677429, -0.14018647372722626, -0.2041163146495819, -0.091349296271801, 0.21706077456474304, -0.06414353102445602, -0.44200295209884644, 0.025470515713095665, -0.10101301223039627, 0.12053143233060837, 0.050895653665065765, 0.07091330736875534, 0.0971238762140274, 0.01959305629134178, -0.21969807147979736, 0.20893076062202454, -0.0922001451253891, 0.3163806200027466, 0.37090829014778137, 0.2975154221057892, 0.09741908311843872, 0.31268996000289917, 0.1595858484506607, -0.28444409370422363, 0.20181600749492645, -0.04754765331745148, -0.09056152403354645, 0.00617387518286705, -0.12108670175075531, 0.005841536447405815, 0.41826125979423523, -0.04614228010177612, -0.020062029361724854, -0.36481422185897827, 0.16890071332454681, 0.25127846002578735, 0.000059369951486587524, 0.5455229878425598, -0.05355183407664299, 0.008328534662723541, 0.08692608773708344, -0.01725105568766594, -0.4771108627319336, 0.06027127429842949, 0.3029375672340393, -0.2579321265220642, 0.20564207434654236, 0.004927400499582291, -0.002101397141814232, -0.06428772211074829, 0.3228243291378021, 0.13366462290287018, 0.35694313049316406, -0.3690539300441742, -0.2826678156852722, -0.4720335602760315, -0.15786117315292358, 0.39023610949516296, -0.21691752970218658, -0.08853770792484283, 0.26076239347457886, -0.25578224658966064, 0.22716833651065826, 0.03406869247555733, 0.322641521692276, 0.010752372443675995, 0.14977368712425232, -0.06564119458198547, -0.16148225963115692, -0.39753860235214233, 0.1098097637295723, 0.11434312164783478, -0.19394135475158691, 0.36256128549575806, -0.22834378480911255, -0.13993693888187408, -0.11161026358604431, 0.24869950115680695, 0.20834419131278992, -0.20494204759597778, 0.1192518100142479, -0.03922015801072121, 0.15622857213020325, -0.06644000113010406, 0.016616366803646088, 0.23282256722450256, 0.20918896794319153, -0.3784233331680298, -0.0006283801048994064, -0.10048705339431763, -0.19409312307834625, -0.3043053448200226, 0.046580079942941666, -0.46160706877708435, 0.3110297918319702, 0.29014965891838074, 0.06870885193347931, -0.056968193501234055, -0.03966732323169708, -0.3614218831062317, 0.05343606695532799, 0.5975096225738525, 0.17920121550559998, -0.29545673727989197, -0.0016950219869613647, -0.20202884078025818, 0.01810538023710251, 0.4721163511276245, -0.2760741710662842, 0.09747058153152466, -0.03954833000898361, 0.1857445389032364, 0.3565402328968048, -0.12932823598384857, -0.5400489568710327, 0.24399422109127045, 0.5118324160575867, -0.12002455443143845, 0.10014575719833374, 0.24151121079921722, 0.1531035304069519, -0.016218893229961395, -0.09920120239257812, 0.5105971097946167, 0.2011978179216385, -0.4127674698829651, 0.13263247907161713, -0.01480942964553833 ]
https://github.com/huggingface/datasets/issues/1830
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) ```
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
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
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
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.
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
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 ?
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
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 ```
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
@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
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
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.
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
@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
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1830
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!
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.
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.40404707193374634, -0.013007253408432007, -0.10247048735618591, 0.10342950373888016, 0.14530548453330994, -0.12255377322435379, 0.2550543248653412, 0.1890886425971985, 0.13067764043807983, -0.006502337753772736, -0.05422341078519821, 0.4988860785961151, -0.1724810153245926, -0.27275973558425903, -0.13204310834407806, 0.06504292786121368, 0.21975912153720856, 0.02241680398583412, 0.24164527654647827, -0.03428660333156586, -0.12187295407056808, 0.10230185091495514, -0.17672587931156158, 0.24139946699142456, -0.3152630627155304, -0.07799311727285385, 0.08123112469911575, -0.20963335037231445, -0.0027565602213144302, -0.5689613819122314, -0.20842966437339783, 0.1581248641014099, 0.020942874252796173, 0.5331247448921204, -0.00011487367009976879, 0.04034263640642166, -0.02916356548666954, 0.2731473743915558, 0.13471756875514984, 0.044361647218465805, 0.352954626083374, -0.19428542256355286, -0.1685834378004074, -0.22576646506786346, -0.054170966148376465, -0.28086331486701965, -0.022122424095869064, -0.22417744994163513, 0.06830805540084839, 0.03004174679517746, 0.160858616232872, 0.11519496887922287, -0.3964318633079529, -0.059515781700611115, -0.002458753064274788, -0.10422508418560028, -0.0991547703742981, 0.014027174562215805, 0.0713295117020607, -0.2551870048046112, -0.21165631711483002, 0.19490496814250946, -0.21304331719875336, -0.14781394600868225, 0.26872318983078003, 0.2163695991039276, 0.03461219370365143, -0.24252457916736603, 0.1680866926908493, 0.23163500428199768, 0.06701069325208664, -0.02721294015645981, -0.01712474785745144, -0.33507925271987915, -0.37069129943847656, -0.028482362627983093, 0.14612269401550293, -0.4334976077079773, -0.12065152078866959, -0.08960281312465668, -0.41406553983688354, 0.20377357304096222, 0.26424264907836914, -0.12239369750022888, -0.20393073558807373, 0.4352441728115082, 0.09542809426784515, 0.1497344821691513, 0.10415232181549072, -0.09975197911262512, -0.28079164028167725, -0.2643777132034302, -0.159576877951622, 0.3733043372631073, -0.34158724546432495, -0.17395517230033875, 0.26929545402526855, -0.3091347813606262, -0.14078864455223083, 0.11428016424179077, -0.1424313485622406, 0.1946651041507721, 0.20834103226661682, -0.0471198633313179, 0.06630702316761017, 0.24600385129451752, 0.038447730243206024, 0.17384615540504456, 0.02969067543745041, -0.48029255867004395, -0.31605029106140137, -0.09036097675561905, -0.18887566030025482, 0.020214155316352844, 0.3458717465400696, -0.24245844781398773, -0.23708049952983856, -0.07258351147174835, -0.02059635892510414, -0.1713072806596756, -0.379944384098053, -0.09833750128746033, 0.0658610463142395, 0.18545477092266083, 0.05874725803732872, 0.06103793531656265, -0.3647981286048889, -0.20216676592826843, -0.09283144772052765, -0.0767260491847992, -0.12862767279148102, -0.17200061678886414, -0.10449179261922836, 0.2542572319507599, -0.18827319145202637, 0.0913056805729866, 0.26017510890960693, 0.07899506390094757, -0.115376316010952, 0.2103087157011032, 0.21960462629795074, -0.3643229901790619, 0.10472831130027771, -0.11305426806211472, 0.0748009979724884, 0.43602684140205383, -0.0055074505507946014, 0.0017841681838035583, -0.25952863693237305, 0.208275705575943, -0.2649085521697998, -0.2264888882637024, 0.2413855642080307, 0.11915985494852066, -0.08314196765422821, -0.12216087430715561, -0.49422961473464966, 0.43854546546936035, 0.25392240285873413, -0.11635347455739975, -0.07491360604763031, -0.18091319501399994, -0.5298195481300354, -0.21674227714538574, 0.26792478561401367, -0.01877184957265854, -0.0722128301858902, -0.19377979636192322, 0.34180399775505066, 0.19217181205749512, 0.31035104393959045, 0.6430556774139404, -0.38648244738578796, 0.795337438583374, -0.1250499188899994, 0.7483617663383484, 0.2579939067363739, -0.24770551919937134, -0.37781792879104614, 0.11663860827684402, -0.17846861481666565, 0.27222108840942383, -0.2818516492843628, -0.12006295472383499, 0.7026373147964478, -0.22527892887592316, 0.34198442101478577, 0.10614442825317383, 0.24699541926383972, 0.3040958642959595, -0.24837340414524078, -0.049190208315849304, 0.5504583120346069, -0.0802224650979042, -0.22425301373004913, -0.1509813368320465, -0.15340663492679596, 0.1111333966255188, -0.03155453875660896, -0.12037337571382523, -0.15540917217731476, 0.061732251197099686, 0.015111531130969524, 0.027055582031607628, -0.0637359544634819, 0.21922633051872253, 0.1471123844385147, 0.21719439327716827, 0.07411704957485199, 0.06839262694120407, 0.42903071641921997, -0.006116926670074463, 0.10551651567220688, -0.06455070525407791, -0.1504325568675995, -0.1419280469417572, 0.17265279591083527, 0.1282205581665039, 0.06789848208427429, 0.08919252455234528, 0.23117263615131378, -0.10698013007640839, 0.015444062650203705, 0.1270231008529663, 0.44377684593200684, -0.30414214730262756, 0.14068709313869476, -0.16028915345668793, -0.10612247884273529, -0.19360347092151642, 0.14087411761283875, 0.10873239487409592, -0.18346571922302246, 0.16243255138397217, 0.12479077279567719, 0.30946677923202515, -0.17306998372077942, 0.20741257071495056, 0.11455950140953064, 0.2654835879802704, 0.04486151039600372, 0.11170492321252823, 0.016418147832155228, -0.16180086135864258, -0.10114361345767975, 0.24875223636627197, 0.7665550112724304, 0.293423593044281, -0.09813111275434494, -0.191850483417511, -0.007449835538864136, 0.2052229344844818, 0.12546001374721527, 0.09028595685958862, -0.01721390150487423, 0.3012901246547699, 0.42470449209213257, 0.17126712203025818, 0.3508588671684265, 0.474333792924881, 0.526760458946228, -0.12619896233081818, -0.21092341840267181, 0.11692462116479874, -0.3413846790790558, -0.43900275230407715, -0.03245596960186958, -0.4132480323314667, 0.16794641315937042, 0.10433089733123779, 0.22383280098438263, -0.16898347437381744, -0.013875024393200874, 0.002553090453147888, 0.2727619707584381, 0.23192822933197021, -0.006252683699131012, -0.03470803424715996, 0.1677316129207611, 0.2354772686958313, -0.32783612608909607, -0.16834315657615662, -0.017744340002536774, 0.24668407440185547, -0.02020304650068283, -0.08809299021959305, 0.0660284236073494, 0.17903855443000793, 0.48365598917007446, -0.07303333282470703, 0.04388021305203438, -0.23364847898483276, -0.08682680130004883, 0.01128638070076704, 0.07300630956888199, 0.14293426275253296, 0.20160552859306335, 0.04160474240779877, 0.0553792342543602, -0.13247625529766083, -0.032636016607284546, -0.2036226987838745, -0.36904436349868774, 0.06732723861932755, 0.04781566932797432, -0.10531248152256012, 0.3012901842594147, 0.1895497739315033, -0.0706469789147377, -0.028473835438489914, -0.45728904008865356, 0.0877390056848526, -0.18031136691570282, 0.009878119453787804, -0.10766486823558807, -0.1534433811903, -0.19836828112602234, 0.040003128349781036, 0.11686030775308609, -0.2781749367713928, -0.26165178418159485, -0.3224225342273712, -0.1180727630853653, -0.1744086891412735, 0.14054444432258606, -0.020054001361131668, 0.051142618060112, -0.03127995505928993, 0.12229983508586884, 0.10087113827466965, 0.1293455958366394, -0.24915258586406708, -0.16720840334892273, 0.1939767450094223, -0.05200430750846863, -0.012172015383839607, -0.33352261781692505, -0.24970504641532898, 0.3890589475631714, -0.06996982544660568, -0.014193405397236347, -0.21413685381412506, 0.09421387314796448, 0.16697987914085388, 0.13987219333648682, -0.24602243304252625, 0.2176395207643509, -0.3044709265232086, 0.2614799439907074, 0.03844328597187996, -0.21672214567661285, 0.3941025733947754, 0.2282126098871231, -0.12224376946687698, 0.16977068781852722, -0.24780595302581787, 0.16913460195064545, -0.05900345370173454, -0.23506419360637665, 0.07231338322162628, 0.4840385913848877, 0.24679610133171082, 0.6211674213409424, 0.04898206889629364, -0.013337739743292332, -0.00010478310286998749, -0.31132763624191284, -0.1315820962190628, -0.43118923902511597, -0.07551366090774536, 0.20715616643428802, -0.09913639724254608, 0.02574463188648224, 0.48657670617103577, -0.08505579829216003, -0.3330845236778259, 0.22217001020908356, -0.17344292998313904, 0.049076177179813385, -0.19993913173675537, 0.12732824683189392, -0.09477370977401733, 0.05930577591061592, 0.0013977736234664917, 0.40461039543151855, -0.5339139699935913, -0.149103045463562, 0.23746716976165771, -0.2787158191204071, 0.2525823414325714, -0.2517901062965393, -0.9455533027648926, 0.35129258036613464, -0.8524879813194275, 0.09497625380754471, 0.01654767245054245, 0.22760215401649475, 0.04750770330429077, -0.02706170827150345, 0.11630135029554367, -0.03245142847299576, 0.16581344604492188, -0.053808681666851044, -0.08455519378185272, 0.23704960942268372, -0.5604739189147949, -0.11725758761167526, -0.1456516832113266, -0.07878537476062775, 0.1936265379190445, 0.5949998497962952, 0.7412643432617188, -0.09443075954914093, -0.286277174949646, -0.3504447937011719, -0.047906700521707535, 0.06967755407094955, 0.03928471729159355, -0.013842090964317322, -0.1023692786693573, -0.18080128729343414, 0.010817788541316986, 0.10237511992454529, 0.18226704001426697, 0.13342010974884033, -0.15410946309566498, -0.08755310624837875, 0.15052033960819244, 0.3036973774433136, 0.27780190110206604, 0.24230670928955078, -0.0387682169675827, 0.3437797427177429, 0.3173718750476837, 0.10557390749454498, -0.11109760403633118, -0.1575465351343155, 0.2181520313024521, -0.36953040957450867, 0.090022511780262, 0.099871926009655, 0.06710714101791382, 0.16950535774230957, -0.03232521191239357, 0.213826522231102, -0.2696319818496704, 0.3467107117176056, -0.1918303370475769, 0.39901161193847656, 0.5268699526786804, 0.13443557918071747, -0.5008947849273682, -0.30269864201545715, 0.07103800773620605, 0.52780681848526, -0.2671489119529724, 0.436906635761261, -0.4802767336368561, -0.4048759937286377, 0.47864583134651184, 0.26225048303604126, 0.5893497467041016, -0.00019746366888284683, 0.2131253182888031, 0.24673739075660706, 0.28208720684051514, 0.1871795654296875, -0.4422439634799957, -0.12834984064102173, -0.23518280684947968, 0.21898221969604492, 0.043299831449985504, -0.07354788482189178, 0.06810373812913895, 0.2392941117286682, -0.11905807256698608, -0.07074693590402603, 0.13437454402446747, 0.8829227685928345, -0.013043448328971863, 0.30273374915122986, 0.4876134693622589, -0.39955630898475647, 0.3429584503173828, 0.13938818871974945, 0.22414234280586243, 0.06270557641983032, 0.0940345898270607, 0.0973554402589798, -0.06829360127449036, -0.15507197380065918, -0.24992883205413818, -0.20255868136882782, -0.5686981678009033, 0.2977934181690216, -0.20471429824829102, 0.030800729990005493, 0.07980072498321533, 0.14483767747879028, 0.0416584275662899, 0.24064284563064575, 0.006632724776864052, 0.28856712579727173, 0.21322724223136902, 0.3364417850971222, 0.2534502446651459, -0.5096052885055542, -0.1977289468050003, -0.009806595742702484, -0.01524360477924347, 0.16441360116004944, -0.2644810080528259, -0.318532258272171, -0.642041802406311, -0.0458640456199646, 0.30404889583587646, -0.3656051456928253, 0.019044864922761917, 0.10112269222736359, -0.07926486432552338, -0.19805800914764404, 0.08064142614603043, -0.15343183279037476, 0.08537700772285461, 0.40806400775909424, -0.0744125247001648, -0.2806636691093445, 0.01849413849413395, 0.30225053429603577, 0.12154649198055267, -0.2107042670249939, 0.4307018518447876, -0.4703119695186615, -0.26293569803237915, -0.10358729958534241, 0.21543633937835693, 0.13631464540958405, 0.11987586319446564, 0.0926351249217987, -0.13185390830039978, -0.18322807550430298, 0.09514603018760681, 0.26415491104125977, -0.12749525904655457, -0.10990755259990692, -0.17242029309272766, -0.018341287970542908, -0.30604347586631775, -0.010590527206659317, -0.05993136763572693, 0.0916232168674469, 0.09735381603240967, 0.1349281668663025, -0.3185406029224396, 0.16975031793117523, -0.25776830315589905, -0.12103084474802017, 0.12591221928596497, 0.15388119220733643, -0.20141099393367767, -0.15866515040397644, 0.12080907076597214, 0.041162263602018356, 0.09976742416620255, 0.2575886845588684, 0.03509625792503357, -0.22869469225406647, -0.0834934264421463, 0.14248982071876526, 0.0466303676366806, -0.3604578375816345, 0.06594078242778778, 0.13582049310207367, -0.08454769849777222, -0.5128018260002136, 0.2053452581167221, 0.1716240644454956, 0.01377703808248043, -0.42633479833602905, 0.1967775523662567, -0.0045443344861269, -0.006976887583732605, 0.15401512384414673, -0.0409204438328743, 0.01958860084414482, 0.1093841940164566, 0.2167300283908844, 0.12089190632104874, -0.20395350456237793, 0.04365463927388191, 0.2604887783527374, 0.3350318968296051, 0.17188452184200287, 0.011980364099144936, -0.026032935827970505, -0.06329478323459625, 0.16377714276313782, -0.16997955739498138, 0.21267777681350708, -0.22457031905651093, -0.44308942556381226, 0.2065381407737732, 0.14772041141986847, 0.06794995814561844, -0.2368670403957367, 0.41122549772262573, -0.26984089612960815, 0.1705465018749237, 0.05370616167783737, 0.22349083423614502, 0.25585708022117615, -0.2167448103427887, -0.1678137481212616, 0.4580502212047577, -0.18563030660152435, 0.09275653213262558, 0.11852136254310608, -0.04643740877509117, 0.01436573639512062, 0.3236365020275116, 0.08962979912757874, 0.13182920217514038, 0.4207833707332611, 0.20650142431259155, 0.25704389810562134, 0.23929332196712494, 0.37313562631607056, -0.1887238323688507, -0.23241490125656128, -0.05791854485869408, 0.48354023694992065, -0.33757856488227844, 0.14522509276866913, -0.0031016096472740173, -0.009071946144104004, 0.015063907951116562, -0.5577238202095032, -0.03618982806801796, 0.380855917930603, -0.37380117177963257, -0.2634640336036682, -0.1039745882153511, 0.000050574541091918945, -0.04441492259502411, 0.3579731285572052, -0.13069286942481995, -0.04405171424150467, -0.32288843393325806, -0.10856394469738007, -0.07013581693172455, 0.11163010448217392, -0.2539829909801483, -0.23453035950660706, 0.21848873794078827, -0.2175602912902832, 0.23406215012073517, -0.42404213547706604, 0.1349429488182068, -0.05566538870334625, 0.37406396865844727, 0.37340229749679565, 0.2763727605342865, -0.13791421055793762, 0.06044147163629532, -0.07821498066186905, 0.09102974832057953, 0.03761162608861923, 0.14116165041923523, -0.07311573624610901, -0.321268767118454, 0.13426528871059418, 0.004114259034395218, -0.17982745170593262, -0.3566519320011139, 0.03298262506723404, -0.10908166319131851, 0.19662688672542572, 0.22091282904148102, 0.05098529905080795, -0.1480567455291748, 0.11666062474250793, 0.06280167400836945, 0.0814494639635086, -0.1601274609565735, 0.1489977389574051, 0.07930724322795868, 0.1826460212469101, -0.08430449664592743, 0.0706104040145874, 0.037876103073358536, 0.41893815994262695, 0.02741481363773346, -0.11204211413860321, -0.37865307927131653, -0.3307705819606781, -0.3441818952560425, -0.08834494650363922, -0.19330361485481262, 0.13737988471984863, -0.0022712014615535736, 0.09053783863782883, 0.17605742812156677, 0.1948625147342682, 0.20748455822467804, 0.12348522245883942, -0.20832648873329163, -0.09985010325908661, -0.28510695695877075, 0.4816952049732208, -0.17266541719436646, 0.03965532034635544, 0.0064430832862854, -0.3506653904914856, 0.4216938018798828, 0.016046203672885895, 0.13119342923164368, -0.1760375201702118, 0.052330389618873596, -0.021239563822746277, 0.0931963175535202, 0.6377807259559631, 0.1688714474439621, 0.06171925365924835, -0.034678492695093155, 0.162149116396904, 0.15414553880691528, 0.18101774156093597, -0.22026008367538452, 0.06765672564506531, -0.015729214996099472, -0.0018752217292785645, 0.05821560323238373, 0.0275883749127388, -0.07953552901744843, -0.11201326549053192, 0.1741836816072464, -0.0966244488954544, -0.22798731923103333, -0.09358859062194824, 0.007985159754753113, 0.12249402701854706, -0.2413400113582611, 0.3319845199584961, 0.07341551780700684, 0.20806635916233063, -0.39738762378692627, -0.061451300978660583, 0.4318277835845947, -0.6654881238937378, -0.12014953792095184, -0.269309401512146, -0.011783301830291748, 0.3286213278770447, 0.17322076857089996, -0.10575175285339355, -0.2817881107330322, 0.5291826725006104, 0.027850739657878876, -0.2813951373100281, 0.3174489140510559, -0.0696159154176712, -0.007653847336769104, -0.033732686191797256, 0.38657310605049133, -0.2410537302494049, -0.18339768052101135, -0.07387258857488632, -0.044958993792533875 ]
https://github.com/huggingface/datasets/issues/1827
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).
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
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.17268459498882294, -0.28359857201576233, -0.1183968186378479, 0.2190786898136139, 0.33219730854034424, 0.09173083305358887, 0.5707205533981323, 0.1317174732685089, 0.1204756647348404, 0.06700468808412552, 0.071387879550457, -0.0857144445180893, -0.09656007587909698, 0.21161910891532898, 0.272509902715683, 0.23096764087677002, 0.002583347260951996, 0.06900054216384888, 0.05912138521671295, -0.028456851840019226, -0.04024362191557884, -0.07282198220491409, -0.012369461357593536, -0.3621988892555237, -0.427435040473938, -0.09350601583719254, -0.1793471723794937, 0.057145047932863235, -0.15365564823150635, -0.2890399992465973, 0.18861523270606995, 0.2540030777454376, 0.27082502841949463, 0.11724096536636353, -0.00012036380940116942, -0.012450546026229858, 0.3828081786632538, -0.14356467127799988, -0.32065027952194214, 0.1220705658197403, -0.09934461861848831, 0.115769162774086, 0.10642117261886597, -0.17253564298152924, -0.07603509724140167, 0.4242570400238037, 0.1247473657131195, -0.31896698474884033, 0.47578826546669006, -0.08197110891342163, 0.045612260699272156, -0.06935011595487595, -0.31946200132369995, 0.03073766455054283, 0.21068814396858215, 0.1520228385925293, -0.042888909578323364, -0.0413791760802269, 0.3662906885147095, -0.11797456443309784, -0.10223178565502167, 0.30622148513793945, -0.0025014951825141907, 0.004144584760069847, 0.2204098254442215, -0.015438780188560486, 0.060090504586696625, -0.4758676588535309, -0.023906579241156578, 0.15862888097763062, 0.5854741930961609, 0.06450121849775314, -0.3178861737251282, -0.390341192483902, 0.019840821623802185, -0.35728222131729126, 0.08624988049268723, 0.3821426033973694, -0.3288043439388275, 0.09323202073574066, -0.5378328561782837, -0.4087219834327698, -0.22085756063461304, -0.11402484774589539, -0.0902026891708374, -0.29125767946243286, 0.0688989907503128, -0.07242840528488159, 0.08587724715471268, 0.2078731805086136, 0.6285197734832764, -0.11197685450315475, -0.11090601980686188, 0.4937472939491272, -0.27213919162750244, -0.2085573971271515, -0.48641616106033325, -0.19672361016273499, -0.005781203508377075, -0.18262852728366852, 0.2753625214099884, 0.17976480722427368, -0.19198700785636902, 0.06215919554233551, 0.35620689392089844, 0.027307257056236267, 0.16531139612197876, -0.031149640679359436, 0.006468107458204031, -0.2958642244338989, -0.23737871646881104, -0.0634203851222992, -0.404585063457489, 0.13686062395572662, -0.11525291949510574, -0.26815319061279297, -0.4467124044895172, -0.250643789768219, 0.25451910495758057, -0.25272271037101746, 0.1836286038160324, -0.04034850001335144, -0.23139795660972595, 0.3127173185348511, -0.028800103813409805, 0.008306514471769333, 0.2975398898124695, -0.1674128770828247, -0.07752915471792221, -0.25401681661605835, -0.04786098748445511, -0.018181683495640755, -0.2493307739496231, 0.13302014768123627, 0.20429164171218872, 0.0589195191860199, 0.11790342628955841, -0.13133296370506287, 0.004141367971897125, 0.027039751410484314, -0.00030086934566497803, -0.3179267346858978, 0.3636931777000427, 0.2754964828491211, -0.015098363161087036, -0.29168906807899475, 0.031247634440660477, 0.3335390090942383, -0.020160377025604248, 0.5988050699234009, -0.2974318861961365, -0.08271956443786621, 0.3635721802711487, 0.011818296276032925, -0.02962346002459526, -0.2398855835199356, -0.26265355944633484, 0.4184546172618866, 0.24895638227462769, 0.0859437882900238, 0.20360776782035828, 0.07725602388381958, -0.2851470708847046, -0.021287085488438606, 0.11057540774345398, 0.35016071796417236, -0.40268710255622864, -0.3087044060230255, 0.27947914600372314, 0.022266950458288193, -0.1220831349492073, -0.009187264367938042, -0.24881675839424133, 0.3373202085494995, 0.011671610176563263, 0.037483230233192444, 0.11233188956975937, -0.2921568751335144, -0.02361532300710678, 0.43552273511886597, 0.0490386039018631, -0.031964510679244995, -0.009076077491044998, 0.42695948481559753, 0.10203215479850769, 0.17151939868927002, 0.29595279693603516, 0.7635226845741272, 0.053849123418331146, 0.0748613104224205, -0.19585014879703522, -0.34140750765800476, -0.23952433466911316, 0.3621116876602173, 0.24150383472442627, 0.25891444087028503, 0.25173360109329224, 0.02731119841337204, 0.08375117182731628, -0.22633981704711914, -0.01701340638101101, 0.1305217444896698, -0.03172525390982628, 0.16698282957077026, -0.041658349335193634, 0.2819933295249939, -0.4686066210269928, 0.28284111618995667, -0.18402740359306335, -0.04597244784235954, 0.10989713668823242, -0.009528033435344696, 0.3888607323169708, -0.2076936662197113, 0.09937570244073868, 0.1737113744020462, -0.0955861359834671, -0.21280908584594727, -0.09971557557582855, -0.00996766984462738, -0.4909347891807556, 0.8521470427513123, -0.47588247060775757, 0.2114950269460678, -0.10445418953895569, 0.10741632431745529, 0.44919344782829285, -0.10812100768089294, -0.19637925922870636, -0.1719341278076172, -0.2991923987865448, 0.018172428011894226, 0.006165362894535065, 0.4675191044807434, 0.13238665461540222, 0.25394827127456665, -0.09844785183668137, 0.10485775768756866, 0.2965153157711029, 0.0731378048658371, 0.20040591061115265, -0.38389676809310913, 0.0407693013548851, -0.1957341432571411, -0.40626442432403564, 0.6067578792572021, 0.060874368995428085, 0.19549041986465454, 0.2967914640903473, -0.23054596781730652, -0.012098878622055054, -0.16540762782096863, -0.08601284772157669, 0.11904311180114746, 0.007978416979312897, 0.1060783788561821, 0.5033367872238159, -0.031371161341667175, -0.18199340999126434, -0.22418776154518127, -0.039342839270830154, -0.0225382000207901, -0.10109449923038483, 0.15623870491981506, -0.03337474912405014, -0.0968439131975174, 0.040310248732566833, -0.03764916956424713, 0.3064708411693573, 0.08656845986843109, -0.008804678916931152, 0.14406366646289825, 0.21520544588565826, -0.07109846919775009, 0.10037822276353836, -0.02568623796105385, 0.40024733543395996, 0.0196016076952219, 0.06685222685337067, 0.05421987175941467, -0.41418910026550293, 0.37610703706741333, 0.2402523159980774, -0.206813782453537, -0.11946476250886917, 0.024952195584774017, 0.18020236492156982, -0.28773391246795654, 0.05112965777516365, 0.0785604789853096, -0.26793840527534485, 0.24478644132614136, 0.06267392635345459, -0.03547302260994911, 0.23127055168151855, -0.1007864773273468, -0.050556279718875885, 1.0589146614074707, -0.07787014544010162, 0.03969043493270874, -0.19332686066627502, -0.07249782234430313, 0.21993020176887512, 0.017728198319673538, 0.18433427810668945, -0.11261359602212906, 0.2349986881017685, 0.1298399418592453, -0.1127244234085083, 0.25635722279548645, -0.10569734871387482, 0.18943943083286285, 0.2193922996520996, 0.1237749457359314, -0.3309442400932312, -0.008498787879943848, -0.2049752175807953, 0.04210560768842697, -0.19719788432121277, -0.40817907452583313, -0.2879915237426758, -0.47515374422073364, 0.37789562344551086, 0.11208751797676086, -0.167158305644989, 0.02509601041674614, -0.41679808497428894, -0.040169164538383484, 0.20773977041244507, 0.3384678065776825, 0.1406715363264084, 0.3773108124732971, 0.020809277892112732, -0.18069954216480255, -0.15928637981414795, -0.1036745235323906, -0.20291851460933685, -0.6760940551757812, -0.09393911063671112, -0.14167237281799316, -0.19505105912685394, -0.035687148571014404, 0.09361977875232697, 0.03620528429746628, 0.6651351451873779, -0.873555600643158, -0.05319930613040924, 0.026228023692965508, -0.12403920292854309, -0.20428384840488434, -0.07866031676530838, 0.13737057149410248, -0.2599743902683258, -0.010377243161201477, -0.049746669828891754, 0.22463801503181458, 0.1929004192352295, 0.03367336094379425, 0.07339996099472046, 0.2787473201751709, 0.03189986199140549, 0.12253234535455704, 0.8831714987754822, -0.37121936678886414, -0.06594167649745941, 0.2678947150707245, 0.1573871523141861, 0.3801432251930237, -0.23865139484405518, 0.2636004686355591, -0.1346943974494934, -0.16586048901081085, -0.19585424661636353, 0.15652436017990112, 0.08727435767650604, -0.5369455218315125, -0.4127475917339325, 0.4158637225627899, -0.12845945358276367, 0.11699149757623672, 0.20796814560890198, -0.32253503799438477, 0.2557947039604187, 0.02679602801799774, 0.02145005762577057, -0.19682110846042633, -0.2115890383720398, 0.019126221537590027, -0.057658594101667404, 0.6054167747497559, -0.21143518388271332, -0.12408982962369919, 0.3219367563724518, -0.2747209966182709, 0.007873479276895523, 0.030629869550466537, 0.21628230810165405, -0.029861442744731903, -0.19581617414951324, 0.3248187303543091, -0.01494821161031723, 0.6353760957717896, -0.17680640518665314, 0.000897757476195693, 0.06563218683004379, -0.46181800961494446, 0.06653042137622833, 0.019755609333515167, -0.06427287310361862, -0.11485996097326279, 0.046699970960617065, 0.26469212770462036, 0.13517533242702484, -0.11731965839862823, -0.0877336710691452, -0.26651933789253235, -0.3192571997642517, -0.39631396532058716, -0.07010556012392044, 0.16051602363586426, -0.21273007988929749, 0.08174222707748413, 0.1631471812725067, -0.04086923599243164, -0.2503909766674042, -0.02838422730565071, -0.3545406460762024, 0.42479267716407776, -0.13198286294937134, -0.24785664677619934, -0.055451128631830215, 0.2683359980583191, 0.18440528213977814, 0.23861318826675415, 0.1415828913450241, -0.015264899469912052, 0.20344385504722595, -0.20241059362888336, 0.08007865399122238, -0.15074090659618378, -0.12962383031845093, 0.24927611649036407, 0.6636559963226318, 0.28606733679771423, -0.030302539467811584, 0.15060536563396454, -0.11893009394407272, -0.2937455177307129, 0.1309516578912735, 0.031346291303634644, -0.292935311794281, -0.1620035320520401, -0.5915787816047668, 0.6851972341537476, 0.2224942147731781, 0.023062407970428467, 0.35443273186683655, -0.5506948232650757, -0.3202623128890991, 0.29008597135543823, 0.33680400252342224, 0.9200335144996643, -0.37645721435546875, 0.5159752368927002, -0.2994265854358673, 0.3096638321876526, 0.0008136071264743805, -0.3276219367980957, 0.2093079686164856, -0.3369629383087158, -0.2832552194595337, -0.14732089638710022, -0.1753266155719757, -0.11738258600234985, 0.3771114647388458, 0.12502050399780273, -0.07226391136646271, 0.11685268580913544, 0.01818283647298813, 0.05480805039405823, -0.09467684477567673, 0.06083996593952179, -0.40459221601486206, -0.06368744373321533, 0.06485368311405182, 0.2162376046180725, 0.2144349366426468, -0.2849908471107483, 0.054853297770023346, 0.17310559749603271, -0.13516059517860413, 0.00261475145816803, 0.06200803816318512, -0.27333641052246094, 0.0041460320353507996, -0.2019818127155304, -0.2839856743812561, -0.35011357069015503, 0.14865118265151978, 0.30035340785980225, -0.15882499516010284, 0.04286918789148331, 0.21379916369915009, 0.23113498091697693, 0.10839098691940308, -0.04475346952676773, -0.004500795155763626, 0.38017988204956055, -0.0869496762752533, 0.13718488812446594, 0.13905373215675354, -0.24541202187538147, -0.5426345467567444, -0.018865689635276794, 0.10415840148925781, 0.21035151183605194, -0.012463167309761047, -0.21622978150844574, 0.27610963582992554, 0.09403061866760254, 0.09879973530769348, 0.07368762791156769, 0.2683964669704437, -0.19851751625537872, 0.345164954662323, 0.08301778882741928, -0.18664312362670898, 0.04977920651435852, 0.650213360786438, 0.17492641508579254, -0.44052278995513916, 0.17861242592334747, 0.11505493521690369, -0.08829078078269958, -0.07991153746843338, 0.016612976789474487, 0.23431430757045746, -0.2239985466003418, 0.09348879009485245, 0.07933057099580765, 0.16056157648563385, -0.08549226820468903, 0.20371440052986145, 0.09905613958835602, -0.05569400638341904, -0.1945217251777649, -0.238864004611969, -0.3176461458206177, 0.166285902261734, -0.13898904621601105, 0.3290903866291046, 0.1582852005958557, -0.23707786202430725, 0.2533074617385864, 0.1814439296722412, -0.22731485962867737, 0.19668570160865784, 0.11325331032276154, 0.2126762568950653, -0.02041734755039215, 0.12598100304603577, -0.12172235548496246, -0.07827270030975342, -0.060833197087049484, 0.09267491102218628, 0.001312505453824997, -0.18895958364009857, 0.0894673764705658, 0.2597551643848419, 0.10290330648422241, -0.06154315173625946, -0.06418666988611221, -0.24945811927318573, -0.2111486941576004, -0.010368956252932549, 0.29524943232536316, 0.08706134557723999, -0.1629936695098877, -0.16167479753494263, 0.2854119539260864, 0.5793207287788391, -0.16937638819217682, 0.44713032245635986, 0.012473560869693756, 0.3442241847515106, 0.08855248987674713, -0.030132994055747986, -0.23653069138526917, 0.10988974571228027, 0.2594616413116455, -0.09177006781101227, 0.24938055872917175, 0.01709594391286373, 0.18777844309806824, -0.4105764627456665, 0.1509672850370407, -0.15718036890029907, 0.18544811010360718, 0.2735784649848938, -0.4995345175266266, 0.06431488692760468, 0.31178969144821167, 0.14442315697669983, 0.06996848434209824, -0.19013020396232605, -0.10925282537937164, -0.36218246817588806, -0.16494981944561005, 0.28041183948516846, 0.558488130569458, 0.0302952378988266, 0.00034365057945251465, 0.04399288445711136, 0.3751170039176941, -0.4146690368652344, 0.07821588963270187, 0.4015357494354248, -0.04632870480418205, 0.04907798394560814, 0.08587318658828735, 0.5185031294822693, -0.012563511729240417, 0.17871835827827454, 0.015060899779200554, 0.2180614471435547, 0.04585371911525726, 0.09361004829406738, -0.2677708566188812, -0.4308395981788635, 0.05870276317000389, 0.6751397848129272, -0.07135006785392761, 0.4519226551055908, -0.3695741891860962, -0.05584660917520523, -0.016970885917544365, -0.2555283308029175, -0.1590130478143692, 0.1286563277244568, -0.13278821110725403, 0.07607774436473846, -0.10523507744073868, -0.12485131621360779, -0.14457029104232788, 0.4197896718978882, -0.10075654834508896, -0.14252786338329315, 0.2564864754676819, 0.26178500056266785, 0.013030920177698135, 0.19899895787239075, -0.10125094652175903, 0.09684305638074875, 0.2134019136428833, -0.2731972336769104, 0.22596947848796844, -0.44112110137939453, 0.1773984432220459, 0.48344674706459045, 0.34734639525413513, -0.08138144761323929, 0.31859326362609863, -0.10274158418178558, 0.09607727825641632, 0.09671790152788162, 0.0691893920302391, -0.025633282959461212, 0.31932225823402405, 0.358823299407959, 0.06351222097873688, 0.10424644500017166, 0.025396864861249924, -0.07524606585502625, 0.4104229509830475, -0.01057165302336216, -0.030715426430106163, -0.36591869592666626, 0.14151602983474731, 0.29782119393348694, -0.12302538752555847, 0.00026184599846601486, 0.006375208497047424, -0.39584842324256897, 0.08554162830114365, 0.2274097055196762, -0.49578166007995605, 0.005138695240020752, 0.4473087191581726, 0.01617775857448578, -0.20252400636672974, 0.5034618377685547, 0.36430251598358154, 0.11371441930532455, -0.277365118265152, -0.28588443994522095, -0.3451358675956726, 0.0241381973028183, 0.04382430762052536, 0.16584926843643188, -0.00622563436627388, 0.23465560376644135, 0.1811322271823883, 0.15546178817749023, -0.1374712884426117, -0.47723329067230225, -0.10181502997875214, 0.14823321998119354, -0.33471497893333435, 0.22804033756256104, 0.17978441715240479, 0.4630298614501953, -0.2251702845096588, -0.22883088886737823, 0.1836901307106018, 0.14242294430732727, -0.20466628670692444, 0.3740406036376953, -0.08746258169412613, 0.006389975547790527, 0.07313825190067291, 0.40849098563194275, -0.46534547209739685, 0.3128400444984436, 0.017308153212070465, 0.007558465003967285, -0.11583659052848816, -0.3511054217815399, -0.268594890832901, -0.1359153836965561, 0.11389234662055969, 0.002850070595741272, -0.2171606868505478, -0.07924672961235046, -0.017818298190832138, -0.25899842381477356, -0.08528286218643188, -0.12338609248399734, -0.14467553794384003, -0.49792009592056274, -0.08093102276325226, -0.03835207223892212, 0.20501211285591125, 0.33650121092796326, -0.043185338377952576, -0.24619802832603455, -0.34404247999191284, -0.002183355391025543, 0.30992060899734497, -0.4316573143005371, 0.008486442267894745, -0.22643747925758362, 0.03243264928460121, -0.008222546428442001, 0.1528891921043396, -0.4410760998725891, 0.16892731189727783, 0.29952433705329895, -0.11882078647613525, -0.046424273401498795, 0.3388529419898987, 0.1388070434331894, -0.04593591392040253, -0.11660783737897873, 0.2619567811489105, 0.011112820357084274, -0.09114633500576019, -0.6637377142906189, -0.4207080006599426 ]
https://github.com/huggingface/datasets/issues/1827
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 ?
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
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.28694289922714233, -0.3630419969558716, -0.149533212184906, 0.2731826603412628, 0.41436249017715454, 0.17094239592552185, 0.4223020076751709, 0.12925870716571808, 0.18513968586921692, 0.08023849129676819, 0.1216423436999321, -0.06799083948135376, -0.2427966445684433, 0.19639967381954193, 0.18935050070285797, 0.23707525432109833, -0.006563976407051086, 0.1383550465106964, -0.18601323664188385, 0.06679479032754898, -0.009469538927078247, -0.2281019240617752, -0.13453221321105957, -0.3600883185863495, -0.3519831895828247, -0.17887051403522491, -0.20610129833221436, -0.08167461305856705, -0.06644178926944733, -0.18078762292861938, 0.03830114006996155, 0.14545801281929016, 0.26616305112838745, 0.2168920338153839, -0.00011344832455506548, 0.026361793279647827, 0.18785741925239563, -0.1615200638771057, -0.4358331561088562, 0.19280442595481873, -0.08492658287286758, 0.05344430357217789, 0.1489461064338684, -0.2591666579246521, -0.0432945154607296, 0.2636416256427765, 0.18210366368293762, -0.39387598633766174, 0.3936268091201782, -0.05979277938604355, 0.12879469990730286, -0.03129427880048752, -0.3372349441051483, 0.011578265577554703, 0.04960635304450989, 0.13176457583904266, 0.07075534760951996, 0.07038223743438721, 0.2710401713848114, -0.05997800827026367, -0.17537912726402283, 0.30196860432624817, 0.004044286906719208, 0.04812077060341835, 0.3422016203403473, 0.053604207932949066, 0.07542860507965088, -0.3361240327358246, -0.03241610527038574, 0.08975651860237122, 0.5630342960357666, -0.03474554792046547, -0.15533070266246796, -0.3663960099220276, 0.11465176939964294, -0.26986923813819885, -0.06252691894769669, 0.48933327198028564, -0.46591079235076904, 0.04075366258621216, -0.5683213472366333, -0.42560911178588867, -0.2526450455188751, -0.043652474880218506, -0.036721184849739075, -0.47359973192214966, 0.13232970237731934, 0.007984865456819534, 0.13946107029914856, 0.1308271735906601, 0.3437524437904358, -0.23167648911476135, -0.04601702094078064, 0.4015500843524933, -0.2577868700027466, -0.09600304812192917, -0.6005839109420776, -0.2998296916484833, 0.038334980607032776, -0.2760589122772217, 0.17476347088813782, 0.15818025171756744, -0.09513493627309799, 0.10614091157913208, 0.33470743894577026, -0.019386276602745056, 0.024412326514720917, 0.0254783034324646, -0.00010360777378082275, -0.2759266793727875, -0.26440393924713135, -0.057874731719493866, -0.45958688855171204, 0.09499305486679077, 0.03319156914949417, -0.39430055022239685, -0.46618977189064026, 0.008762508630752563, 0.17176860570907593, -0.28183940052986145, 0.04121190309524536, -0.013791479170322418, -0.24358904361724854, 0.2964886724948883, 0.01398235559463501, -0.048142243176698685, 0.4604892432689667, -0.28620555996894836, -0.12497999519109726, -0.2746882438659668, -0.06371986865997314, 0.0656900703907013, -0.30600816011428833, 0.26460644602775574, 0.1331711858510971, 0.153142511844635, 0.06672926992177963, -0.1371394395828247, -0.06699921190738678, 0.036404818296432495, 0.019987910985946655, -0.3356122374534607, 0.20591898262500763, 0.15517540276050568, -0.11780655384063721, -0.2792702913284302, -0.038168925791978836, 0.31183749437332153, 0.006095752120018005, 0.5027796626091003, -0.2631540298461914, -0.0698121190071106, 0.4293094575405121, 0.08178216218948364, 0.08337365835905075, -0.154633030295372, -0.6008709669113159, 0.3655920624732971, 0.13699594140052795, 0.13334199786186218, 0.07057682424783707, -0.007777128368616104, -0.37634697556495667, 0.005117256194353104, 0.2648201286792755, 0.3271279036998749, -0.3991861939430237, -0.356690913438797, 0.4185031056404114, -0.015825370326638222, -0.139163076877594, 0.10627986490726471, -0.30863243341445923, 0.41885116696357727, 0.030043214559555054, -0.10012228786945343, 0.0982154905796051, -0.21437394618988037, -0.05439330264925957, 0.35336294770240784, 0.015860289335250854, -0.10139267146587372, 0.024709414690732956, 0.5722171664237976, 0.09385707974433899, 0.2492918223142624, 0.32915231585502625, 0.706339955329895, 0.14415526390075684, 0.1200050637125969, -0.12684354186058044, -0.26030898094177246, -0.32104286551475525, 0.36839598417282104, 0.1643717885017395, 0.16850149631500244, 0.08416356146335602, 0.01945478469133377, 0.23472082614898682, -0.2200763076543808, 0.059916310012340546, 0.21519003808498383, -0.05182686075568199, 0.1326138824224472, -0.1009773463010788, 0.2299596220254898, -0.4385000467300415, 0.2532021999359131, 0.04446619749069214, 0.08210547268390656, 0.11397481709718704, -0.005487702786922455, 0.3631187975406647, -0.2487814873456955, 0.15078216791152954, 0.20113441348075867, -0.044428545981645584, -0.310113787651062, -0.22520385682582855, -0.022929079830646515, -0.4112914204597473, 0.6960086226463318, -0.4796498715877533, 0.21734461188316345, -0.14163553714752197, 0.098938949406147, 0.5003315210342407, -0.08495961129665375, -0.0852530375123024, -0.2335910201072693, -0.4635135531425476, 0.03531327471137047, 0.06894426047801971, 0.38180872797966003, 0.14071403443813324, 0.17824435234069824, 0.03169861063361168, 0.04924403131008148, 0.18138310313224792, 0.026835843920707703, 0.18267704546451569, -0.3104829788208008, 0.16193073987960815, -0.15216407179832458, -0.35861074924468994, 0.418077290058136, 0.09458073228597641, 0.2759920358657837, 0.30868181586265564, -0.15235543251037598, 0.014111332595348358, -0.14440223574638367, -0.0534745417535305, 0.10241526365280151, 0.04386735334992409, 0.22685855627059937, 0.4621651768684387, 0.17079564929008484, -0.2648865580558777, -0.34579747915267944, 0.05040164291858673, -0.11201976984739304, -0.04329166188836098, 0.22490325570106506, -0.126993328332901, 0.03646290302276611, 0.032979562878608704, -0.09820642322301865, 0.23399290442466736, 0.20311316847801208, -0.012015286833047867, 0.17038142681121826, 0.21888208389282227, 0.00952494889497757, 0.08827759325504303, 0.06223796308040619, 0.4783916473388672, -0.19561535120010376, -0.07802632451057434, -0.02967437356710434, -0.26409339904785156, 0.25081148743629456, 0.14174886047840118, -0.17269419133663177, -0.1391681432723999, -0.024239327758550644, 0.004701763391494751, -0.3065868616104126, -0.09982530772686005, 0.3313086926937103, -0.18500544130802155, 0.3601144552230835, -0.012678422965109348, 0.022499950602650642, 0.1696312129497528, 0.007144622504711151, -0.09758950769901276, 0.909457802772522, -0.04696468263864517, -0.21003678441047668, -0.02117346227169037, -0.07366973161697388, -0.0035658155102282763, 0.03430726379156113, 0.34309491515159607, -0.04839305579662323, 0.37043237686157227, 0.1406489461660385, -0.17756620049476624, 0.1492757797241211, 0.22401586174964905, 0.15290701389312744, 0.2234521061182022, -0.016787627711892128, -0.390662282705307, 0.10242050886154175, -0.2542729377746582, 0.04778469726443291, -0.08781872689723969, -0.33875811100006104, -0.2243400663137436, -0.3469248414039612, 0.3597925305366516, 0.09800861030817032, -0.03539789468050003, -0.007407255470752716, -0.44342029094696045, -0.09584645926952362, 0.14048102498054504, 0.19948379695415497, 0.10518985986709595, 0.38411909341812134, 0.16945387423038483, -0.14200448989868164, -0.13634076714515686, -0.025812139734625816, 0.05465678870677948, -0.4763892889022827, -0.08985581248998642, 0.04922333359718323, -0.17513293027877808, -0.09486021101474762, 0.040258243680000305, 0.018546681851148605, 0.8389363288879395, -0.829077422618866, 0.13934719562530518, -0.03793076425790787, -0.21410629153251648, -0.2819702625274658, 0.05184929817914963, 0.03995521366596222, -0.23879221081733704, -0.09567388892173767, 0.04730713367462158, 0.3101843595504761, 0.1588173806667328, -0.10290873050689697, 0.03734653815627098, 0.29887887835502625, 0.14543674886226654, 0.14734362065792084, 0.7117274403572083, -0.21235299110412598, -0.16627296805381775, 0.18378570675849915, -0.055709466338157654, 0.288381427526474, -0.13273271918296814, 0.23194266855716705, -0.1628265678882599, -0.20905116200447083, -0.2608184516429901, 0.1789027452468872, 0.06650002300739288, -0.3049505650997162, -0.42267197370529175, 0.24039438366889954, -0.08135394752025604, -0.032050129026174545, 0.3473740816116333, -0.37403956055641174, 0.3303472697734833, -0.0016485974192619324, -0.03341148793697357, -0.0969611257314682, -0.23574945330619812, -0.005357515066862106, -0.10438431799411774, 0.41437482833862305, -0.2544369399547577, -0.2346523106098175, 0.41728898882865906, -0.2592051029205322, 0.06299110502004623, -0.09616237878799438, 0.1816754937171936, 0.07276856899261475, -0.14022588729858398, 0.2659955620765686, 0.14215384423732758, 0.5721114873886108, 0.08010733127593994, -0.12905661761760712, 0.04823548346757889, -0.4424249529838562, -0.22158955037593842, 0.0046012625098228455, -0.13777856528759003, -0.09473973512649536, -0.060291267931461334, 0.3573642075061798, -0.03401651233434677, -0.24305549263954163, -0.022322610020637512, -0.021873634308576584, -0.40672165155410767, -0.35912278294563293, -0.17929598689079285, 0.14779448509216309, -0.08135522156953812, 0.07000035047531128, 0.1895979344844818, 0.016089674085378647, 0.04673277586698532, -0.15479439496994019, -0.3114152252674103, 0.35882362723350525, 0.03492792695760727, -0.2902466356754303, 0.012869928032159805, 0.27836713194847107, 0.29723256826400757, 0.15600897371768951, 0.1676650494337082, 0.28240731358528137, 0.21150867640972137, -0.28072595596313477, 0.030746571719646454, -0.1402091085910797, -0.0448334738612175, 0.38987499475479126, 0.4764642119407654, 0.22142115235328674, 0.06385524570941925, 0.14612999558448792, 0.018974103033542633, -0.5502628087997437, 0.17621435225009918, 0.09592753648757935, -0.19318224489688873, -0.21836303174495697, -0.667481541633606, 0.7044337391853333, 0.22654752433300018, 0.030439361929893494, 0.3714710474014282, -0.4017285108566284, -0.3358765244483948, 0.15638379752635956, 0.31377869844436646, 0.7594899535179138, -0.5083619952201843, 0.586245596408844, -0.2089073657989502, 0.3120793104171753, -0.043206557631492615, -0.2429618537425995, 0.28590014576911926, -0.27826988697052, -0.21864768862724304, -0.057367391884326935, -0.22832879424095154, -0.13765662908554077, 0.4003312587738037, 0.18752190470695496, 0.08054176717996597, 0.11485223472118378, 0.05122510716319084, -0.021650725975632668, -0.04269794747233391, 0.004944154992699623, -0.36372286081314087, -0.07007932662963867, 0.12937968969345093, 0.20278272032737732, 0.06890872120857239, -0.22743754088878632, 0.13182781636714935, 0.056933507323265076, -0.0522894524037838, 0.10776971280574799, -0.09697994589805603, -0.3252197504043579, 0.05660377815365791, -0.28044477105140686, -0.15793941915035248, -0.21293722093105316, 0.20187872648239136, -0.012654472142457962, -0.1298568844795227, 0.10946139693260193, 0.1635955572128296, 0.034853771328926086, 0.2512393891811371, -0.04552047699689865, -0.02143905684351921, 0.3898709714412689, -0.021895695477724075, 0.029210790991783142, 0.12995539605617523, -0.21889223158359528, -0.36782705783843994, -0.003580063581466675, 0.09045598655939102, 0.19482840597629547, -0.06765912473201752, -0.18209198117256165, 0.17361806333065033, 0.2327827364206314, 0.2063484936952591, 0.10961265116930008, 0.18801279366016388, -0.14462828636169434, 0.4939878284931183, 0.20863094925880432, -0.23867036402225494, 0.08959724009037018, 0.4949345290660858, 0.13674400746822357, -0.30335259437561035, 0.21609073877334595, -0.041457198560237885, -0.11339699476957321, -0.13513562083244324, 0.2718050479888916, 0.48319903016090393, -0.03814815729856491, 0.1606021672487259, 0.15192033350467682, 0.22683563828468323, -0.07941754907369614, 0.11807943880558014, 0.0783066526055336, -0.16718661785125732, -0.11440300941467285, -0.10364362597465515, -0.40506017208099365, 0.282017320394516, 0.11861968785524368, 0.3430781662464142, 0.18113172054290771, -0.2666763663291931, 0.18191468715667725, 0.11198373138904572, -0.2680925726890564, 0.19365236163139343, 0.086563840508461, 0.28394269943237305, -0.11367995291948318, 0.15993092954158783, -0.020743468776345253, -0.05522532761096954, 0.05292744189500809, 0.0634661316871643, 0.0021789297461509705, -0.21078696846961975, 0.13710904121398926, 0.20344427227973938, -0.0163175817579031, 0.00046944618225097656, -0.007761836051940918, -0.4162227213382721, -0.14936459064483643, -0.1376376897096634, 0.1833474040031433, 0.16611333191394806, -0.0933714210987091, -0.15469765663146973, 0.3541570007801056, 0.44255372881889343, -0.20507535338401794, 0.4429436922073364, -0.11981622129678726, 0.39136672019958496, 0.19334128499031067, -0.07820095121860504, 0.016595210880041122, 0.06737546622753143, -0.002389378845691681, -0.011415477842092514, 0.35751381516456604, -0.11862763017416, -0.013995679095387459, -0.3259766399860382, 0.16052556037902832, -0.11867523193359375, 0.2884550988674164, 0.3929074704647064, -0.529521644115448, 0.02107185870409012, 0.28827595710754395, 0.21992605924606323, 0.04133821278810501, -0.09991464018821716, 0.0013913363218307495, -0.3731640577316284, -0.08231756091117859, 0.28868967294692993, 0.24442683160305023, 0.057341888546943665, -0.29475870728492737, -0.14558027684688568, 0.27157601714134216, -0.26064255833625793, -0.06185077503323555, 0.25371211767196655, 0.10173870623111725, -0.08804017305374146, -0.06677734106779099, 0.5002999305725098, 0.09944858402013779, 0.29234951734542847, -0.10785781592130661, 0.3313668370246887, -0.07803268730640411, 0.067384272813797, -0.3112194538116455, -0.3604115843772888, 0.01175377145409584, 0.6964070796966553, -0.060391612350940704, 0.1763443797826767, -0.36291736364364624, 0.12456980347633362, 0.11411869525909424, -0.37014836072921753, -0.05495148524641991, -0.02520056441426277, -0.12517514824867249, 0.21373988687992096, -0.16836941242218018, -0.13923883438110352, -0.1488053798675537, 0.425766259431839, -0.02148248441517353, -0.3161218464374542, 0.18419554829597473, 0.34282755851745605, 0.06291233003139496, 0.23395584523677826, -0.05586497485637665, 0.19779692590236664, 0.09299895912408829, -0.29295533895492554, -0.0018578208982944489, -0.3005572557449341, 0.2502622902393341, 0.4217052459716797, 0.3071511387825012, -0.08880893886089325, 0.23050835728645325, -0.009830184280872345, 0.06922753900289536, 0.1632234752178192, 0.06193406134843826, -0.13808384537696838, 0.11379855126142502, 0.3265503942966461, 0.2447982132434845, 0.13475391268730164, 0.07641127705574036, -0.10886001586914062, 0.24045318365097046, 0.002971014939248562, -0.17576095461845398, -0.4388478994369507, 0.06525689363479614, 0.2699502110481262, -0.1519254893064499, -0.06846979260444641, 0.018650712445378304, -0.2436135858297348, 0.04554256796836853, 0.3752802014350891, -0.5222755074501038, -0.017956990748643875, 0.48555517196655273, 0.05309909209609032, -0.21870997548103333, 0.5302194952964783, 0.10262799263000488, 0.23203156888484955, -0.3197323679924011, -0.31639987230300903, -0.39110344648361206, -0.08139067143201828, -0.18390709161758423, 0.12528064846992493, -0.05810213461518288, 0.1672067642211914, 0.2231079488992691, 0.11559290438890457, -0.11437355726957321, -0.44812852144241333, -0.1608467400074005, 0.2227235734462738, -0.31374526023864746, 0.0800439864397049, 0.021004021167755127, 0.4221847653388977, -0.1229950487613678, -0.31178992986679077, 0.0642925426363945, -0.13461008667945862, -0.15305578708648682, 0.376238614320755, 0.07298469543457031, -0.0030934959650039673, 0.20043952763080597, 0.46007391810417175, -0.47801047563552856, 0.31596773862838745, 0.06746640801429749, 0.01631152629852295, 0.019363481551408768, -0.15928301215171814, -0.2847013473510742, 0.0015846509486436844, 0.16155898571014404, -0.03722624480724335, -0.27628007531166077, -0.06114177033305168, -0.03205954283475876, -0.19486914575099945, -0.06415911018848419, -0.20056083798408508, -0.12244905531406403, -0.406617671251297, 0.058739498257637024, 0.05160714313387871, 0.10415368527173996, 0.3399558365345001, -0.14399981498718262, -0.2960093915462494, -0.340969979763031, 0.043104253709316254, 0.3233138918876648, -0.47501492500305176, 0.019058890640735626, -0.24956941604614258, 0.1382080316543579, -0.06141994521021843, 0.1678856909275055, -0.35136541724205017, 0.11777697503566742, 0.42200133204460144, -0.061620015650987625, -0.1031266450881958, 0.3565874695777893, 0.22949650883674622, -0.028625614941120148, -0.058488987386226654, 0.258951336145401, -0.276631236076355, -0.15498241782188416, -0.6072600483894348, -0.4248475432395935 ]
https://github.com/huggingface/datasets/issues/1825
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 !
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??
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.26444724202156067, 0.07049381732940674, 0.009130742400884628, 0.12959197163581848, 0.30825161933898926, 0.008051164448261261, 0.29017943143844604, 0.3717777132987976, -0.2807387709617615, -0.01817227154970169, -0.04882364720106125, 0.1473781317472458, -0.23607197403907776, 0.010885447263717651, 0.03960997611284256, 0.028868574649095535, 0.21957659721374512, 0.20255084335803986, 0.14690309762954712, 0.06441640853881836, -0.042197175323963165, -0.24234098196029663, -0.2289884090423584, -0.013289082795381546, -0.43021661043167114, -0.2289028763771057, -0.13010072708129883, -0.29405853152275085, -0.35773563385009766, -0.40371763706207275, -0.032917894423007965, 0.1460275650024414, 0.4799691140651703, 0.43304431438446045, -0.0001187578309327364, -0.1787714958190918, 0.15742605924606323, 0.03883761167526245, -0.09152194857597351, 0.06572224944829941, 0.2080897092819214, -0.34047022461891174, -0.1510675847530365, -0.2540649175643921, 0.1679101288318634, -0.1874021589756012, 0.012640796601772308, -0.12231744080781937, 0.25587213039398193, -0.022112198173999786, 0.106958769261837, 0.14781588315963745, -0.11758340150117874, 0.11759297549724579, 0.2055497169494629, -0.0257248654961586, -0.06717491149902344, -0.04616890102624893, 0.3811224400997162, -0.07647914439439774, -0.187481090426445, 0.30042564868927, -0.18419191241264343, -0.05763630568981171, 0.39200296998023987, -0.00498056598007679, -0.13022887706756592, -0.34289970993995667, 0.23368728160858154, 0.2656778395175934, 0.3912028670310974, -0.34159982204437256, -0.2912169098854065, -0.47518390417099, -0.14429765939712524, -0.1671047955751419, -0.11603960394859314, 0.13336831331253052, 0.10114255547523499, 0.132764995098114, -0.534375786781311, -0.3300270438194275, -0.09421838074922562, 0.2805027961730957, -0.1244555339217186, 0.2533673048019409, -0.030992330983281136, 0.06172184646129608, 0.06749533116817474, -0.30112752318382263, 0.1197616308927536, -0.37826794385910034, 0.12519654631614685, 0.4119560122489929, -0.21033047139644623, -0.19670386612415314, -0.16205838322639465, -0.13196811079978943, 0.4441080689430237, -0.2146407663822174, -0.3352546989917755, 0.07517313212156296, -0.24771632254123688, -0.029886651784181595, 0.2738420367240906, 0.20107150077819824, -0.1895848512649536, 0.3804611265659332, 0.14127089083194733, -0.25119784474372864, -0.07609823346138, -0.11683156341314316, -0.5041649341583252, 0.002323288470506668, 0.24237079918384552, -0.3414869010448456, -0.2537664473056793, -0.01092219352722168, 0.032196491956710815, 0.093767911195755, -0.3200734555721283, 0.20490387082099915, 0.15705987811088562, 0.2677532434463501, -0.1823854148387909, 0.11825528740882874, -0.25048109889030457, 0.15300099551677704, -0.12956203520298004, 0.013684581965208054, -0.034892696887254715, -0.08092093467712402, -0.3118555545806885, 0.0885426327586174, 0.1323876529932022, 0.036930881440639496, 0.14835476875305176, -0.031159479171037674, 0.08308334648609161, 0.11995306611061096, 0.2286500185728073, -0.34310781955718994, 0.06969004124403, 0.08816827833652496, -0.05514238774776459, 0.36145642399787903, -0.24263668060302734, 0.05438561737537384, -0.24211594462394714, 0.3458733558654785, -0.3575131893157959, -0.36333370208740234, 0.11500589549541473, 0.09564811736345291, -0.21243897080421448, -0.01923294924199581, -0.4771777391433716, 0.31245309114456177, 0.4131704866886139, 0.03535114973783493, 0.030805228278040886, -0.22334979474544525, -0.28915396332740784, -0.11198942363262177, 0.2520444393157959, 0.2172582894563675, -0.3746161460876465, -0.046259477734565735, -0.006077658385038376, 0.2774542570114136, 0.3547433912754059, 0.7049418687820435, -0.23442350327968597, 0.4682484567165375, -0.02171757072210312, 0.5970690846443176, 0.1308767944574356, -0.01203075796365738, -0.5504749417304993, 0.3064104914665222, 0.13611164689064026, -0.0626278817653656, -0.04742387309670448, 0.048703111708164215, 0.5649157762527466, -0.12646430730819702, 0.24218979477882385, 0.34772807359695435, -0.10757092386484146, 0.239723801612854, -0.2524235248565674, -0.38945937156677246, 0.2543739676475525, 0.21268390119075775, 0.23134230077266693, -0.40735793113708496, -0.10765349864959717, 0.5631250739097595, 0.1074656993150711, -0.23449833691120148, 0.35120147466659546, 0.06945983320474625, 0.1932828426361084, 0.13677911460399628, -0.024493401870131493, -0.19177453219890594, -0.11334885656833649, 0.13876038789749146, 0.12848547101020813, -0.03402411937713623, -0.017769433557987213, -0.36493438482284546, 0.19883565604686737, -0.05589393153786659, -0.045173075050115585, 0.0023123640567064285, -0.008750665932893753, -0.2987191677093506, -0.052314892411231995, 0.04505595564842224, -0.12357934564352036, -0.2520163059234619, -0.14391595125198364, 0.11906331777572632, -0.051043346524238586, 0.06535010039806366, 0.06423982232809067, -0.08796558529138565, -0.08188041299581528, 0.28816547989845276, -0.10196037590503693, -0.10989183932542801, -0.04301973432302475, 0.11550303548574448, 0.17926353216171265, -0.17297494411468506, -0.19897758960723877, 0.6291497945785522, 0.33137246966362, -0.052777472883462906, 0.2620899975299835, 0.057949844747781754, 0.08748482912778854, -0.10105206072330475, -0.06087547168135643, 0.19801300764083862, 0.1038435846567154, 0.18098673224449158, 0.03713355213403702, -0.23675866425037384, 0.1842658519744873, -0.023145802319049835, 0.05771434307098389, -0.06250027567148209, 0.06317685544490814, 0.1399935781955719, 0.40712085366249084, 0.34435132145881653, -0.09917433559894562, -0.12267906963825226, 0.34568914771080017, -0.2547418475151062, 0.09445610642433167, 0.36925938725471497, -0.42707666754722595, -0.37023934721946716, 0.05606043338775635, -0.2841130495071411, 0.07367710024118423, 0.12155957520008087, 0.0545075461268425, -0.07435297220945358, 0.33218395709991455, 0.004992838948965073, 0.2567670941352844, 0.17685097455978394, 0.0905410647392273, 0.059909023344516754, 0.15247997641563416, 0.24765890836715698, -0.08318095654249191, -0.14849814772605896, 0.22646871209144592, 0.281206876039505, -0.06415338814258575, 0.016554243862628937, -0.17820437252521515, -0.14787794649600983, 0.007127765566110611, -0.09211371839046478, -0.1096903532743454, 0.05295081436634064, 0.14981670677661896, -0.050359632819890976, -0.005036897957324982, 0.20966419577598572, 0.056078821420669556, 0.3908669054508209, 0.08884280920028687, -0.27630120515823364, 0.08699607104063034, -0.08992394059896469, -0.3656364977359772, -0.019391288980841637, 0.2563132047653198, -0.3312308192253113, 0.29557597637176514, 0.12390599399805069, 0.11114867031574249, -0.3529425263404846, -0.5111263990402222, 0.055365920066833496, -0.08075926452875137, 0.043021366000175476, 0.0051291510462760925, 0.011936597526073456, -0.34706705808639526, 0.04509084299206734, -0.08295769989490509, -0.22048455476760864, -0.04867934435606003, 0.03778471797704697, -0.14889073371887207, -0.19098487496376038, 0.09911945462226868, -0.11782622337341309, -0.2849355638027191, -0.14071616530418396, 0.1821797639131546, -0.1708400547504425, 0.14434735476970673, 0.02159683033823967, 0.058514304459095, 0.03980749845504761, -0.09085308015346527, -0.21655994653701782, 0.03961147367954254, -0.3456558585166931, 0.4540538787841797, 0.05377599969506264, -0.1599426120519638, -0.07391569018363953, -0.059862762689590454, -0.04376187175512314, 0.30119773745536804, -0.45208656787872314, 0.2026534378528595, -0.29432469606399536, 0.23227405548095703, -0.06257255375385284, 0.11540932208299637, 0.06283064931631088, 0.022955093532800674, 0.053267545998096466, 0.08547349274158478, -0.14024557173252106, -0.19865499436855316, -0.04424649477005005, 0.19662529230117798, 0.04582739621400833, 0.1926075667142868, 0.3319132924079895, 0.8323061466217041, 0.06499779224395752, -0.12241359055042267, 0.23460212349891663, 0.17437554895877838, 0.1243969053030014, -0.33458343148231506, -0.16107594966888428, 0.146851047873497, -0.04459620267152786, -0.11654684692621231, 0.5374456644058228, 0.13780423998832703, -0.15283197164535522, 0.35038942098617554, -0.3317059874534607, -0.08019091188907623, -0.1775427907705307, 0.36473408341407776, -0.29595619440078735, 0.2762160897254944, 0.00023584067821502686, -0.06912104785442352, -0.22575853765010834, -0.37200555205345154, 0.0028131306171417236, -0.010875917971134186, 0.0650562196969986, 0.11884612590074539, -0.3358928859233856, 0.13555851578712463, -0.5341355204582214, 0.18953418731689453, 0.04122302681207657, 0.2819492518901825, 0.1803765743970871, 0.12404525279998779, 0.15111956000328064, 0.12659849226474762, 0.5065212249755859, -0.02549108862876892, -0.1990227848291397, -0.12216593325138092, -0.23442697525024414, -0.07705133408308029, 0.030061885714530945, -0.2233586609363556, 0.10623452812433243, 0.4797859191894531, 0.6534512639045715, -0.3339408040046692, -0.2007189393043518, -0.3113005459308624, 0.43226468563079834, -0.029231205582618713, -0.13366490602493286, 0.028419971466064453, -0.031657665967941284, -0.5678436160087585, 0.22335897386074066, 0.16545221209526062, 0.33977121114730835, 0.24088168144226074, -0.10902077704668045, -0.2026442140340805, -0.013412848114967346, 0.2838232219219208, 0.08371666818857193, 0.1670539230108261, 0.00030503049492836, 0.29882633686065674, -0.04172634333372116, 0.0744476318359375, 0.43153253197669983, -0.02930540218949318, -0.22439882159233093, -0.41435369849205017, -0.025246040895581245, 0.04621606320142746, 0.5054762363433838, 0.09847696125507355, -0.03852420672774315, 0.2553431987762451, -0.125978484749794, 0.2532567083835602, -0.28882184624671936, 0.574215292930603, 0.2188749462366104, 0.09654414653778076, -0.7376466393470764, -0.5411158800125122, 0.09038905799388885, 0.22932541370391846, -0.0981861799955368, 0.17401084303855896, -0.15329599380493164, -0.3754504323005676, 0.5328887104988098, 0.2531071901321411, 0.906961977481842, -0.39941561222076416, 0.42454993724823, -0.27230462431907654, 0.44917166233062744, 0.5515663027763367, -0.549383282661438, 0.029903780668973923, -0.32762855291366577, 0.09712740778923035, 0.10513236373662949, 0.02854607254266739, -0.0868094339966774, 0.27664297819137573, -0.0814039334654808, 0.2470187544822693, 0.09727692604064941, 0.35551977157592773, -0.12672308087348938, 0.497690886259079, 0.13011325895786285, -0.5027884244918823, -0.10418887436389923, 0.07388817518949509, -0.0947314202785492, -0.0715886652469635, -0.17668434977531433, 0.056697845458984375, 0.07302065193653107, -0.06757335364818573, -0.2201564908027649, -0.18968051671981812, -0.18577609956264496, 0.22027376294136047, -0.0419982448220253, 0.03032626211643219, 0.46121007204055786, -0.00110715813934803, 0.22444668412208557, 0.5506526231765747, -0.150945782661438, 0.11743365228176117, -0.17306219041347504, -0.017646167427301407, 0.08735492825508118, -0.24222300946712494, 0.10323154926300049, 0.0627397745847702, 0.19973808526992798, -0.19907471537590027, 0.0809134840965271, -0.054282452911138535, -0.31793656945228577, -0.11110501736402512, 0.6560409665107727, -0.3565066456794739, -0.166111558675766, -0.14406493306159973, -0.09685412049293518, 0.0061933621764183044, 0.056519150733947754, 0.10022585093975067, -0.045259974896907806, 0.37521401047706604, 0.03471536561846733, -0.2648661434650421, -0.07267160713672638, 0.0646326020359993, 0.05073125287890434, -0.05246533825993538, 0.5686108469963074, 0.03181639313697815, -0.2139262557029724, -0.14696192741394043, 0.3851611912250519, 0.28085219860076904, -0.14800386130809784, 0.11072193831205368, 0.1490309089422226, 0.04353716969490051, -0.11767817288637161, 0.18388329446315765, 0.16708719730377197, -0.3886720836162567, -0.05992580205202103, -0.14765623211860657, -0.45008036494255066, 0.11747156083583832, -0.02761165052652359, 0.22049805521965027, 0.13440528512001038, 0.22062766551971436, -0.16937467455863953, 0.052947305142879486, -0.21384823322296143, 0.31049710512161255, 0.007993772625923157, 0.30192744731903076, -0.3741823136806488, 0.004355379845947027, -0.16413035988807678, -0.09826669096946716, -0.09766396880149841, 0.22376605868339539, 0.031072307378053665, -0.191596120595932, -0.25367236137390137, 0.1974971443414688, 0.2984793782234192, -0.30401816964149475, 0.09827293455600739, -0.2110513597726822, -0.07528093457221985, -0.4249736964702606, 0.23534372448921204, 0.15221241116523743, 0.01806868240237236, -0.1894288808107376, 0.24785791337490082, -0.19596458971500397, -0.25265687704086304, 0.1285889446735382, 0.033772215247154236, 0.19779779016971588, 0.0746602863073349, 0.2385917752981186, 0.348638653755188, -0.148400217294693, -0.013297025114297867, 0.1799263209104538, 0.6943490505218506, -0.06668710708618164, 0.06683795154094696, -0.08382631838321686, 0.14753809571266174, 0.33515167236328125, 0.00897185504436493, 0.3940820097923279, -0.21362829208374023, -0.38609981536865234, 0.6833882927894592, 0.17242275178432465, -0.06021645665168762, -0.18806925415992737, -0.028869934380054474, -0.1790679544210434, -0.16561827063560486, 0.11210130155086517, 0.1801542341709137, 0.2911601662635803, -0.44189098477363586, -0.09856736660003662, 0.3846248984336853, 0.18575096130371094, 0.025836121290922165, 0.46753162145614624, 0.06536737084388733, -0.06930752098560333, 0.33000266551971436, 0.30513423681259155, 0.22508060932159424, 0.46627673506736755, -0.06656500697135925, 0.47180813550949097, 0.06670628488063812, 0.12534081935882568, -0.13439986109733582, -0.39104700088500977, -0.23684856295585632, 0.4256221055984497, 0.19484761357307434, 0.037342216819524765, -0.21400339901447296, 0.2732306122779846, 0.25746387243270874, -0.23213434219360352, -0.050520628690719604, 0.30975794792175293, -0.2751246392726898, -0.16672904789447784, -0.05871614068746567, -0.05018020421266556, 0.03087608516216278, 0.2555803060531616, -0.28148695826530457, -0.28131383657455444, 0.10185810923576355, 0.06146479770541191, 0.0013054385781288147, -0.2767418622970581, 0.20927707850933075, 0.09694567322731018, 0.0506160743534565, -0.2989828288555145, 0.2383567988872528, -0.361427366733551, 0.03960729017853737, -0.2037046104669571, 0.26524704694747925, 0.31675025820732117, 0.42235270142555237, -0.1601736843585968, 0.04025157913565636, -0.19014863669872284, 0.14614912867546082, -0.12595197558403015, 0.38947436213493347, 0.07511899620294571, 0.13779419660568237, 0.10004685819149017, -0.06780226528644562, -0.06970400363206863, -0.1074378564953804, 0.04383202642202377, -0.3280682861804962, -0.02212841436266899, 0.07595285028219223, 0.23820215463638306, -0.2457772195339203, -0.03236117213964462, 0.0971808135509491, -0.3176352381706238, 0.18555282056331635, 0.8031601905822754, -0.30247604846954346, 0.1586751639842987, -0.16049562394618988, 0.048063766211271286, -0.16160276532173157, 0.4464980661869049, 0.4236750602722168, -0.0030973749235272408, -0.5891640782356262, -0.0724819004535675, -0.391068696975708, 0.13305039703845978, -0.40938952565193176, 0.29878246784210205, -0.004731427878141403, 0.03670498728752136, -0.13461318612098694, 0.09450170397758484, -0.2672285735607147, 0.1531136929988861, -0.4629124402999878, 0.08518148958683014, -0.04769041761755943, 0.2911084294319153, -0.19003912806510925, 0.20476825535297394, -0.0044685229659080505, -0.37019795179367065, 0.3627031147480011, -0.19432276487350464, -0.13296808302402496, -0.19116318225860596, 0.29689735174179077, 0.17882747948169708, -0.14119437336921692, 0.4452568292617798, 0.17506316304206848, 0.1358046531677246, 0.06078308820724487, 0.2444520890712738, -0.00743602029979229, 0.07304564118385315, -0.24771511554718018, 0.08837005496025085, -0.020742833614349365, -0.044711239635944366, -0.22212770581245422, 0.1344272494316101, -0.15061335265636444, -0.13173292577266693, -0.006913788616657257, -0.15708398818969727, -0.22716207802295685, -0.013232830911874771, -0.1807030588388443, 0.14783713221549988, -0.08150564879179001, 0.4159240126609802, -0.13484624028205872, -0.015056811273097992, -0.2692968547344208, -0.28275012969970703, 0.2788335084915161, -0.674614429473877, -0.4008939266204834, -0.14819100499153137, -0.05688737332820892, 0.539703369140625, -0.10906939208507538, -0.603036642074585, 0.10402260720729828, 0.4999958872795105, 0.10653480887413025, -0.4595339298248291, 0.10347150266170502, -0.011322826147079468, 0.017821379005908966, -0.19560088217258453, 0.546609103679657, -0.19429515302181244, -0.23766304552555084, 0.07500356435775757, -0.2591937184333801 ]
https://github.com/huggingface/datasets/issues/1825
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.
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??
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.46780580282211304, 0.16560781002044678, 0.03042350709438324, 0.13930322229862213, 0.36984407901763916, -0.07995732128620148, 0.13434481620788574, 0.42008835077285767, -0.433859258890152, -0.10870693624019623, 0.10512010008096695, 0.09787501394748688, -0.25969329476356506, 0.16173481941223145, 0.13775816559791565, 0.007173517718911171, 0.28806787729263306, 0.17738309502601624, -0.025608215481042862, 0.1219857856631279, -0.0683431327342987, -0.12772157788276672, -0.2867692708969116, -0.0004004649817943573, -0.5252419710159302, -0.2634720504283905, -0.017437927424907684, -0.24359533190727234, -0.44486358761787415, -0.32489776611328125, -0.1924746036529541, 0.13646671175956726, 0.4324246644973755, 0.5125051140785217, -0.00012559664901345968, -0.2210252583026886, 0.24720445275306702, -0.038425102829933167, -0.28759098052978516, -0.03947480022907257, 0.29305386543273926, -0.35776975750923157, -0.19684505462646484, -0.2132427990436554, 0.19382841885089874, -0.374519020318985, -0.04146990925073624, -0.10995006561279297, 0.11619135737419128, 0.21617966890335083, 0.08588823676109314, 0.054130710661411285, 0.07016627490520477, 0.039516884833574295, 0.16454878449440002, -0.0014555510133504868, -0.10422684997320175, -0.022879786789417267, 0.45387253165245056, 0.06549268960952759, -0.1268366277217865, 0.13993977010250092, -0.12165355682373047, -0.021264109760522842, 0.4577084183692932, -0.07397288084030151, -0.2455073893070221, -0.21502581238746643, 0.17155712842941284, 0.2889244258403778, 0.5197038650512695, -0.48640042543411255, -0.3977510631084442, -0.5967862606048584, -0.16936269402503967, -0.2333570122718811, -0.005126073956489563, 0.10508575290441513, 0.06447771191596985, 0.195461243391037, -0.5726388692855835, -0.4743475914001465, -0.11595533043146133, 0.3932581841945648, -0.2551799714565277, 0.11431346833705902, -0.12854233384132385, 0.09376812726259232, 0.1853441596031189, -0.14512088894844055, 0.13376514613628387, -0.2565792202949524, 0.02105710655450821, 0.18751436471939087, -0.33442431688308716, -0.12710785865783691, -0.16220182180404663, -0.021164357662200928, 0.40647733211517334, 0.09461940824985504, -0.43267470598220825, 0.065000519156456, -0.13599944114685059, -0.008353061974048615, 0.25431734323501587, 0.4710547626018524, -0.2227853238582611, 0.2742273211479187, 0.22378581762313843, -0.2196388989686966, 0.012065447866916656, -0.08008427917957306, -0.47909900546073914, -0.1735171377658844, 0.0792803019285202, -0.3584182858467102, -0.1200914978981018, -0.14532782137393951, -0.03969460353255272, -0.0014618821442127228, -0.14044231176376343, 0.197950080037117, 0.1161109060049057, 0.13200213015079498, -0.0579986609518528, 0.18027843534946442, -0.10723204910755157, 0.23549368977546692, -0.1325279027223587, -0.20003533363342285, 0.0021077394485473633, -0.020392712205648422, -0.2910282015800476, 0.13602858781814575, 0.16175632178783417, -0.000959642231464386, 0.08485113084316254, -0.10976213216781616, 0.0947212278842926, 0.11956322938203812, 0.14495909214019775, -0.32303759455680847, 0.00037100911140441895, 0.16922926902770996, -0.12798205018043518, 0.40774402022361755, -0.1729891449213028, -0.04691499471664429, -0.2752201557159424, 0.3672422766685486, -0.29812467098236084, -0.39047175645828247, -0.06154897063970566, 0.07274138927459717, -0.4090558886528015, -0.04889203980565071, -0.5169221758842468, 0.41313645243644714, 0.4666954278945923, 0.0010683760046958923, 0.022855836898088455, -0.20465268194675446, -0.16118942201137543, -0.009332245215773582, 0.17031721770763397, 0.19399476051330566, -0.6206804513931274, -0.07363895326852798, -0.024232301861047745, 0.15784211456775665, 0.23997454345226288, 0.651237428188324, -0.14100691676139832, 0.34027013182640076, -0.0592869408428669, 0.35957106947898865, 0.2331758290529251, 0.1929221749305725, -0.5321207046508789, 0.2934280037879944, -0.03347253054380417, -0.22859667241573334, -0.018056746572256088, 0.04281316697597504, 0.3913394510746002, -0.11936917901039124, 0.028269371017813683, 0.42067357897758484, -0.06168325990438461, 0.11342151463031769, -0.22826790809631348, -0.3263329863548279, 0.19324234127998352, 0.21309876441955566, 0.20064182579517365, -0.14208413660526276, 0.04381776228547096, 0.4546663761138916, 0.03793848678469658, -0.15148407220840454, 0.4403601884841919, 0.09199373424053192, 0.2172999382019043, 0.15100648999214172, 0.05949949100613594, -0.25207623839378357, 0.17664572596549988, 0.039071425795555115, 0.16512084007263184, -0.08735659718513489, -0.03598730266094208, -0.21747726202011108, 0.0089028999209404, -0.02213451638817787, 0.031889528036117554, 0.07268080860376358, -0.12673237919807434, -0.1551419347524643, -0.007907383143901825, 0.17408505082130432, -0.16081878542900085, -0.11975688487291336, -0.23613181710243225, 0.07244332134723663, -0.17394565045833588, 0.07099834829568863, 0.09377054125070572, -0.17033758759498596, 0.0002910718321800232, 0.17705956101417542, -0.11854235827922821, -0.15476395189762115, -0.06339094042778015, 0.22321833670139313, -0.03438650071620941, -0.1681157797574997, -0.3214414715766907, 0.6541765332221985, 0.27077969908714294, -0.06255311518907547, 0.24109700322151184, -0.07508713006973267, 0.04166268929839134, -0.10140608251094818, -0.026259340345859528, 0.1974639892578125, 0.031803544610738754, 0.17128238081932068, 0.040797121822834015, -0.21162790060043335, 0.09120512008666992, -0.06580441445112228, 0.1283012330532074, -0.009218737483024597, 0.19616493582725525, 0.028207752853631973, 0.35267090797424316, 0.25810155272483826, -0.08915096521377563, -0.14411120116710663, 0.5428148508071899, -0.25621381402015686, 0.25797900557518005, 0.4638548791408539, -0.4305691123008728, -0.32196760177612305, 0.07507839798927307, -0.109926737844944, 0.27087169885635376, 0.18141242861747742, 0.03849417716264725, -0.0050507476553320885, 0.29580020904541016, -0.05855882912874222, 0.22698216140270233, 0.129266619682312, 0.23125368356704712, 0.16550153493881226, 0.1857071816921234, 0.1758006513118744, -0.16525503993034363, -0.18095962703227997, 0.23470252752304077, 0.32320210337638855, -0.19560569524765015, 0.0806347131729126, -0.20886996388435364, -0.19413667917251587, -0.09871247410774231, 0.14547893404960632, -0.13879430294036865, 0.005288049578666687, 0.06361033022403717, -0.09177783131599426, 0.1439724862575531, 0.14538758993148804, 0.11625148355960846, 0.391038179397583, 0.08752451837062836, -0.30438095331192017, 0.11529747396707535, -0.05897245556116104, -0.43237969279289246, -0.035122063010931015, 0.27948087453842163, -0.42646172642707825, 0.2161746472120285, 0.1520199179649353, 0.07639753818511963, -0.2842859625816345, -0.5105539560317993, 0.01531058456748724, 0.01866617240011692, 0.21454863250255585, -0.09795698523521423, 0.020444339141249657, -0.10421653836965561, 0.13048847019672394, -0.03224637731909752, -0.15894533693790436, -0.102821946144104, 0.09857457876205444, -0.18153467774391174, -0.2435969114303589, 0.1276797652244568, -0.16389767825603485, -0.2868719696998596, -0.21018826961517334, 0.28098130226135254, -0.14801931381225586, 0.0006390493363142014, 0.136113703250885, 0.15327823162078857, -0.022164586931467056, 0.006242450326681137, -0.07602442055940628, 0.11993279308080673, -0.21263262629508972, 0.5063884258270264, 0.15516893565654755, -0.2401784360408783, -0.11682377755641937, 0.08238290250301361, -0.1706952601671219, 0.40466073155403137, -0.4827154576778412, 0.29011744260787964, -0.31741487979888916, 0.1822001338005066, -0.07470142841339111, 0.1196025013923645, 0.1363300234079361, -0.06622198224067688, 0.0911952555179596, 0.07438668608665466, -0.256607323884964, -0.26442751288414, -0.034830182790756226, 0.3190366327762604, -0.053887683898210526, 0.3580654561519623, 0.5046020150184631, 0.5707181096076965, -0.12840068340301514, -0.20259663462638855, 0.3022204637527466, 0.05813729017972946, 0.1859382688999176, -0.3812962770462036, -0.20784874260425568, 0.3076786994934082, -0.11307834088802338, -0.15002360939979553, 0.40429502725601196, 0.07336345314979553, -0.12560603022575378, 0.18221333622932434, -0.28580671548843384, -0.07704276591539383, 0.0022835135459899902, 0.18168047070503235, -0.25549110770225525, 0.19497032463550568, -0.033225711435079575, -0.14733374118804932, -0.05527249723672867, -0.35438209772109985, 0.006502576172351837, 0.08548595011234283, -0.039881061762571335, 0.2780981659889221, -0.5231354236602783, 0.1445460021495819, -0.31722959876060486, 0.183958038687706, -0.11983801424503326, 0.3176470100879669, 0.08934785425662994, 0.044334545731544495, 0.17285118997097015, -0.002982277423143387, 0.6573578715324402, 0.16149909794330597, -0.22439192235469818, -0.08020683377981186, -0.18498924374580383, -0.2815258204936981, 0.030736610293388367, -0.1564117968082428, 0.25268009305000305, 0.39690709114074707, 0.4458353817462921, -0.2846609354019165, -0.08748731017112732, -0.15630772709846497, 0.5995659828186035, -0.028743110597133636, -0.20907971262931824, 0.00972643494606018, -0.19376099109649658, -0.6171144247055054, 0.14112357795238495, 0.11847513169050217, 0.3723031282424927, 0.05132480710744858, -0.017696425318717957, -0.16072286665439606, -0.148768350481987, 0.33148080110549927, -0.021237898617982864, 0.10765698552131653, -0.0759272575378418, 0.2275630682706833, -0.11483122408390045, 0.1661519855260849, 0.5096879601478577, -0.0112086720764637, 0.1589720994234085, -0.20576156675815582, 0.01603059098124504, 0.08608070760965347, 0.422865629196167, -0.01824682205915451, -0.1591089814901352, 0.2727680504322052, -0.1592998504638672, 0.3351096212863922, -0.25171247124671936, 0.49939024448394775, 0.142431378364563, 0.02477545663714409, -0.785049319267273, -0.4419436454772949, 0.3065381944179535, 0.18344895541667938, -0.0020833462476730347, 0.23322130739688873, -0.08983416855335236, -0.3548891246318817, 0.2965231239795685, 0.12644562125205994, 0.934272825717926, -0.3664010167121887, 0.29557856917381287, -0.31445080041885376, 0.32174110412597656, 0.5618304014205933, -0.6394960880279541, -0.010873692110180855, -0.37641188502311707, 0.05191272124648094, 0.08551431447267532, -0.05422366410493851, 0.13348592817783356, 0.401187539100647, -0.10392463952302933, 0.24858404695987701, 0.09214799106121063, 0.05296653136610985, -0.028064247220754623, 0.602486252784729, -0.11246152967214584, -0.3547428846359253, -0.1395692378282547, 0.030256081372499466, -0.19786155223846436, -0.01763351820409298, -0.15019871294498444, 0.12685184180736542, -0.04800302907824516, 0.08815234899520874, -0.3702215254306793, -0.0857851579785347, -0.07622463256120682, 0.13093313574790955, -0.07100684940814972, -0.15860587358474731, 0.5522639155387878, -0.024385716766119003, 0.2939377725124359, 0.4906291365623474, -0.15993241965770721, 0.1951514482498169, -0.3952568471431732, 0.007242999970912933, 0.2270340621471405, -0.25355321168899536, 0.17695258557796478, -0.0029716044664382935, 0.046728283166885376, -0.22745749354362488, 0.12152780592441559, -0.014460161328315735, -0.18631495535373688, -0.14066019654273987, 0.5457143783569336, -0.2815808653831482, -0.15258657932281494, -0.1081250011920929, 0.07396701723337173, -0.0937485471367836, 0.01249137707054615, 0.16467249393463135, -0.020394379273056984, 0.36885425448417664, -0.06504645943641663, -0.26758506894111633, -0.16352330148220062, 0.2240000069141388, 0.03834878280758858, -0.04823402315378189, 0.5090434551239014, 0.19990229606628418, -0.19953152537345886, -0.0959964245557785, 0.39149385690689087, 0.2192796915769577, -0.2844051420688629, 0.22491046786308289, 0.10755274444818497, -0.018357321619987488, -0.11179152131080627, 0.09261620044708252, 0.11750765144824982, -0.44312548637390137, -0.06794364750385284, -0.2272985428571701, -0.3753504753112793, 0.13258692622184753, -0.031681522727012634, 0.11350198090076447, 0.06224861741065979, 0.12035685777664185, 0.00039653480052948, 0.11205773055553436, -0.1463400274515152, 0.194309800863266, 0.09179742634296417, 0.27835431694984436, -0.15627220273017883, 0.04785850644111633, -0.2649524509906769, -0.09077437222003937, -0.15316453576087952, 0.10011471062898636, 0.14193087816238403, -0.13766121864318848, -0.2068958431482315, 0.2038152813911438, 0.2516917884349823, -0.26251184940338135, 0.14885608851909637, -0.29415249824523926, -0.13338994979858398, -0.3269462585449219, 0.21888989210128784, 0.2685701847076416, -0.010176587849855423, -0.055301234126091, 0.2593252658843994, -0.3359718322753906, -0.2528075575828552, 0.05860506743192673, -0.032653555274009705, 0.11974723637104034, 0.1532149314880371, 0.3857434391975403, 0.5578309297561646, -0.09740790724754333, -0.39662644267082214, 0.2364945113658905, 0.4823635518550873, -0.10040202736854553, 0.1028595119714737, -0.24522359669208527, 0.11800242960453033, 0.32102492451667786, 0.15047430992126465, 0.484167218208313, -0.18217656016349792, -0.388813316822052, 0.5509514212608337, 0.09332086145877838, -0.10552016645669937, -0.19484348595142365, 0.062090083956718445, -0.14723354578018188, -0.23549416661262512, 0.13202238082885742, 0.2544417381286621, 0.17404747009277344, -0.43538767099380493, -0.05542340129613876, 0.5197489261627197, 0.20017902553081512, 0.040267881006002426, 0.4844230115413666, 0.1650189906358719, -0.05635237693786621, 0.3396511971950531, 0.25915300846099854, 0.25225427746772766, 0.5600365996360779, -0.01564982533454895, 0.5746822953224182, 0.2159358412027359, 0.22912414371967316, -0.17783412337303162, -0.4864785969257355, -0.12721295654773712, 0.35177135467529297, 0.21829476952552795, -0.08247843384742737, -0.21620647609233856, 0.28776440024375916, 0.3367443084716797, -0.12255998700857162, -0.035728659480810165, 0.16637727618217468, -0.19160009920597076, -0.12165120244026184, -0.14636388421058655, -0.1660090982913971, -0.013038821518421173, 0.23122845590114594, -0.27122175693511963, -0.3700607717037201, 0.06008128449320793, 0.032027993351221085, -0.10579898208379745, -0.4628713130950928, 0.43355777859687805, 0.06493474543094635, 0.02410636842250824, -0.27389174699783325, 0.29260003566741943, -0.21642786264419556, 0.07362716645002365, 0.04154432192444801, 0.2999279201030731, 0.44721555709838867, 0.46387046575546265, -0.05967117100954056, 0.010904531925916672, -0.24108590185642242, 0.02453715354204178, -0.14396530389785767, 0.46249932050704956, 0.0349775068461895, 0.27128326892852783, 0.13451753556728363, -0.06336186826229095, -0.03244641050696373, 0.005066858604550362, 0.10227213054895401, -0.3170354664325714, -0.15145394206047058, 0.03702864050865173, 0.15356045961380005, -0.3451305627822876, -0.12387406826019287, 0.18215569853782654, -0.2598913908004761, 0.017143599689006805, 0.9408841133117676, -0.34574073553085327, 0.05357059836387634, -0.19018535315990448, 0.010261684656143188, -0.111601322889328, 0.4436599910259247, 0.45705682039260864, 0.07641817629337311, -0.338785856962204, -0.07781894505023956, -0.3848975896835327, 0.2020057588815689, -0.29152897000312805, 0.2598513066768646, 0.0068151503801345825, 0.09227901697158813, -0.0870104730129242, 0.05216922238469124, -0.27723944187164307, 0.33178919553756714, -0.3469391465187073, 0.07125809788703918, -0.07661096006631851, 0.012941155582666397, -0.11799180507659912, 0.24222703278064728, -0.11845365166664124, -0.36552679538726807, 0.34416431188583374, -0.16349086165428162, -0.16255274415016174, -0.22175154089927673, 0.23441913723945618, 0.18637026846408844, -0.12410478293895721, 0.5211454629898071, 0.1639930158853531, 0.2844228148460388, 0.0696415901184082, 0.38149696588516235, -0.06578005850315094, 0.02962709218263626, -0.3679364323616028, 0.2523973286151886, -0.041301097720861435, 0.02065432071685791, -0.21223591268062592, 0.14735925197601318, -0.045980919152498245, 0.05473928526043892, -0.06017376109957695, -0.025084061548113823, -0.21112418174743652, -0.057581666857004166, -0.1792096644639969, 0.14226442575454712, 0.08487868309020996, 0.28731560707092285, -0.05609569326043129, 0.008837893605232239, -0.3809772729873657, -0.2963833808898926, 0.28298473358154297, -0.41466936469078064, -0.39064937829971313, -0.1051531434059143, -0.026661530137062073, 0.5343506336212158, -0.2405610978603363, -0.5345795154571533, 0.05040240287780762, 0.5844873189926147, 0.05054645240306854, -0.32976680994033813, 0.3089815676212311, -0.23216477036476135, 0.01018853485584259, -0.14436937868595123, 0.5861435532569885, -0.16087178885936737, -0.27098315954208374, 0.008573837578296661, -0.10084086656570435 ]
https://github.com/huggingface/datasets/issues/1825
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
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??
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.4051038920879364, 0.1390959471464157, 0.015502996742725372, 0.29045370221138, 0.2991151213645935, 0.00742734968662262, 0.07476863265037537, 0.3566736578941345, -0.3289951682090759, -0.06482821702957153, 0.051100365817546844, 0.060472242534160614, -0.24908997118473053, 0.17772653698921204, 0.04438076168298721, 0.08899577707052231, 0.18884645402431488, 0.15917366743087769, 0.11262932419776917, 0.13407990336418152, 0.03617873042821884, -0.12296707183122635, -0.23187343776226044, 0.023854399099946022, -0.5338656902313232, -0.24752677977085114, -0.0014843791723251343, -0.20429463684558868, -0.45359301567077637, -0.31684985756874084, -0.1865612268447876, 0.1878172904253006, 0.5089609026908875, 0.4989699423313141, -0.00012417540710885078, -0.27661049365997314, 0.22809627652168274, -0.0018143728375434875, -0.24883946776390076, 0.037592753767967224, 0.4174691438674927, -0.29631298780441284, -0.20885905623435974, -0.1917598992586136, 0.16334354877471924, -0.284540057182312, -0.024078331887722015, -0.08121002465486526, 0.10663773864507675, 0.07948306202888489, 0.07767821103334427, 0.08917633444070816, 0.03276262432336807, 0.16114415228366852, 0.143072247505188, 0.04208860546350479, -0.0692555233836174, 0.06855075061321259, 0.4472157657146454, 0.04107590764760971, -0.16497424244880676, 0.1808106005191803, -0.1345977485179901, -0.0035428181290626526, 0.32526034116744995, -0.08419676125049591, -0.11486650258302689, -0.18453797698020935, 0.22418881952762604, 0.27488353848457336, 0.5318579077720642, -0.44143882393836975, -0.2680336534976959, -0.535689651966095, -0.1947641372680664, -0.2997778058052063, -0.03668531775474548, 0.18115976452827454, -0.022188615053892136, 0.20495672523975372, -0.4301464855670929, -0.4338747262954712, -0.13849756121635437, 0.3633367419242859, -0.21565955877304077, 0.13450020551681519, -0.1368912160396576, 0.11149576306343079, 0.18070536851882935, -0.2048988938331604, 0.10033532232046127, -0.3374048173427582, 0.012752527371048927, 0.19206076860427856, -0.38827255368232727, -0.13607099652290344, -0.1989930123090744, -0.013485852628946304, 0.471878319978714, -0.027269139885902405, -0.4255782663822174, 0.15663106739521027, -0.12290292978286743, 0.021191898733377457, 0.3621504306793213, 0.21507862210273743, -0.10231052339076996, 0.25367456674575806, 0.18844683468341827, -0.169537752866745, -0.05735347792506218, -0.07312099635601044, -0.5236893892288208, -0.07493668049573898, 0.10816706717014313, -0.47717177867889404, -0.2528765797615051, -0.19711968302726746, -0.06836757808923721, 0.09076160937547684, -0.19434718787670135, 0.262751042842865, 0.18459169566631317, 0.16678284108638763, -0.09955079853534698, 0.0795411691069603, -0.20992359519004822, 0.19640308618545532, -0.1286839097738266, -0.19921286404132843, 0.006611429154872894, -0.08781031519174576, -0.26280519366264343, 0.16388070583343506, 0.16365200281143188, -0.0238196924328804, 0.10449344664812088, -0.05774974822998047, 0.08453474938869476, -0.0026519596576690674, 0.14633458852767944, -0.3493958115577698, -0.07232379168272018, 0.09370648115873337, -0.04088345542550087, 0.37093019485473633, -0.23784099519252777, 0.03609691560268402, -0.2047560214996338, 0.37893441319465637, -0.2517654001712799, -0.3602265417575836, -0.058721959590911865, 0.07226807624101639, -0.3575673997402191, 0.028874892741441727, -0.5238499045372009, 0.3691045939922333, 0.4520553946495056, 0.08413469046354294, 0.010002557188272476, -0.10789711773395538, -0.22906821966171265, -0.015236061066389084, 0.16613280773162842, 0.15570834279060364, -0.6027981042861938, 0.037512898445129395, -0.07486957311630249, 0.10127325356006622, 0.3304007649421692, 0.7473347783088684, -0.15704345703125, 0.3759782612323761, -0.10283800959587097, 0.4475921392440796, 0.14349298179149628, 0.1725682020187378, -0.5138145089149475, 0.4206913411617279, 0.004510268568992615, -0.14456060528755188, -0.00639638677239418, 0.09623114764690399, 0.3777559995651245, -0.1191314160823822, 0.19352884590625763, 0.331550657749176, -0.0646061971783638, 0.0937098041176796, -0.3203212320804596, -0.3219233751296997, 0.13492849469184875, 0.3081052899360657, 0.19015991687774658, -0.2884482741355896, -0.016041722148656845, 0.33375945687294006, 0.15090537071228027, -0.1702376753091812, 0.37060779333114624, 0.13143931329250336, 0.2265494018793106, 0.1637721210718155, -0.0087411068379879, -0.2258753925561905, 0.1498989760875702, 0.06362492591142654, 0.11208906769752502, -0.1439845860004425, -0.04222229868173599, -0.2829776406288147, 0.12736570835113525, -0.025516614317893982, 0.005588519852608442, 0.11121488362550735, -0.09919925034046173, -0.21857698261737823, -0.09508106857538223, 0.13622888922691345, -0.06907092034816742, -0.11327489465475082, -0.33143606781959534, 0.12929323315620422, -0.10116457939147949, 0.031282708048820496, 0.03718040883541107, -0.1410599648952484, 0.036589115858078, 0.2281329184770584, -0.13172565400600433, -0.1346912384033203, 0.0014944076538085938, 0.18875165283679962, 0.015665791928768158, -0.24015134572982788, -0.25950655341148376, 0.5918121337890625, 0.24000954627990723, 0.020716682076454163, 0.24852949380874634, -0.04437514394521713, 0.04712842404842377, -0.11076042056083679, 0.055844515562057495, 0.28619274497032166, 0.08672510832548141, 0.12396765500307083, 0.004620514810085297, -0.2903570830821991, 0.08347099274396896, -0.033014968037605286, 0.19676309823989868, 0.026462294161319733, 0.2717001140117645, 0.06838230788707733, 0.3077641427516937, 0.31821513175964355, -0.15976817905902863, -0.1507178544998169, 0.3479210436344147, -0.32448866963386536, 0.19424955546855927, 0.44233348965644836, -0.4264601469039917, -0.32973819971084595, 0.08587680011987686, -0.23977437615394592, 0.13288253545761108, 0.1559307724237442, 0.052438873797655106, -0.049758270382881165, 0.36608901619911194, -0.07127729803323746, 0.16526192426681519, 0.13844367861747742, 0.129876047372818, 0.20317436754703522, 0.12044160068035126, 0.13029755651950836, -0.17254222929477692, -0.06471644341945648, 0.1956179440021515, 0.35402026772499084, -0.15271180868148804, 0.05291900038719177, -0.21625879406929016, -0.3077141344547272, -0.011039897799491882, 0.18976090848445892, -0.18026071786880493, 0.04592642933130264, 0.12236082553863525, 0.016413211822509766, 0.12563546001911163, 0.05564939230680466, 0.16185644268989563, 0.36331555247306824, 0.03365226089954376, -0.3247654438018799, 0.16995754837989807, -0.09471037983894348, -0.4917178153991699, -0.03546639904379845, 0.34355294704437256, -0.3346315026283264, 0.29986056685447693, 0.21900688111782074, 0.050254277884960175, -0.3155393600463867, -0.46219250559806824, 0.017577283084392548, 0.1138879805803299, 0.22941634058952332, -0.15052837133407593, 0.041552841663360596, -0.19998545944690704, 0.16224730014801025, -0.08434544503688812, -0.12780778110027313, -0.08050268888473511, 0.07361485064029694, -0.1590748131275177, -0.2185302972793579, 0.11135243624448776, -0.0300942063331604, -0.27081599831581116, -0.18253645300865173, 0.22401386499404907, -0.17105451226234436, 0.08794856071472168, 0.0159660205245018, 0.08310569822788239, -0.014134988188743591, -0.062002189457416534, -0.1454128921031952, 0.029804594814777374, -0.3128144145011902, 0.4159112274646759, 0.20498353242874146, -0.21091662347316742, -0.056101877242326736, 0.12676206231117249, -0.07173310220241547, 0.3511764705181122, -0.5438869595527649, 0.30584773421287537, -0.19194237887859344, 0.19673532247543335, -0.10464274883270264, 0.04409994184970856, 0.01903788559138775, -0.15518584847450256, 0.1073557585477829, 0.12181063741445541, -0.2267124503850937, -0.23918792605400085, -0.15586872398853302, 0.3402343690395355, -0.044881775975227356, 0.3125683069229126, 0.42549896240234375, 0.5209855437278748, -0.09033887088298798, -0.1613205075263977, 0.3123971223831177, 0.15995657444000244, 0.20839306712150574, -0.3067106306552887, -0.10908101499080658, 0.2963907718658447, -0.06463748216629028, -0.14985255897045135, 0.497577428817749, 0.1420864462852478, -0.12623803317546844, 0.24445685744285583, -0.3252071142196655, -0.0537726953625679, -0.07124823331832886, 0.20296069979667664, -0.2755318582057953, 0.2106805145740509, -0.021330460906028748, -0.17582762241363525, -0.046852171421051025, -0.37331950664520264, -0.04102310165762901, 0.1587289273738861, -0.03837671875953674, 0.2196473777294159, -0.5036864280700684, 0.22417357563972473, -0.350696861743927, 0.17271292209625244, -0.10084086656570435, 0.3289101719856262, 0.11931756138801575, 0.19234716892242432, 0.2529752850532532, 0.029597032815217972, 0.5905703902244568, 0.12860654294490814, -0.1712750643491745, -0.1472328156232834, -0.10647470504045486, -0.1970110535621643, 0.04407018423080444, -0.10640459507703781, 0.287122905254364, 0.4626607596874237, 0.46783140301704407, -0.3716438114643097, -0.15101951360702515, -0.2931528687477112, 0.5599130988121033, -0.011181160807609558, -0.32347509264945984, -0.021163977682590485, -0.140132337808609, -0.5439133048057556, 0.17722147703170776, 0.15547236800193787, 0.3789794445037842, 0.10985545068979263, -0.07489820569753647, -0.12852157652378082, -0.058399684727191925, 0.3375990390777588, -0.03861748427152634, 0.13933530449867249, -0.16152268648147583, 0.23511537909507751, -0.2048269510269165, 0.16065551340579987, 0.5302137136459351, -0.023548388853669167, 0.13114410638809204, -0.27052217721939087, 0.015060286968946457, 0.04802810773253441, 0.40643200278282166, 0.014354482293128967, -0.13174881041049957, 0.3606284260749817, -0.2724704444408417, 0.27471619844436646, -0.18692347407341003, 0.5377908945083618, 0.13218790292739868, 0.07611138373613358, -0.8546543121337891, -0.31340768933296204, 0.23895573616027832, 0.20963776111602783, -0.020394235849380493, 0.24075116217136383, -0.16545677185058594, -0.289640873670578, 0.29820331931114197, 0.09519623219966888, 0.8781994581222534, -0.4335549771785736, 0.3147646188735962, -0.37940558791160583, 0.34143969416618347, 0.5416302680969238, -0.6066262722015381, -0.0487491600215435, -0.40830957889556885, 0.16152529418468475, 0.1442633420228958, 0.0018784180283546448, 0.03313259780406952, 0.42432519793510437, 0.04191815108060837, 0.2461099922657013, 0.11470809578895569, 0.14268305897712708, 0.023164130747318268, 0.6419767141342163, -0.04071575403213501, -0.3181241452693939, -0.13954025506973267, 0.03970978409051895, -0.2120800018310547, -0.044990841299295425, -0.22483862936496735, 0.08114147186279297, 0.06334994733333588, 0.04676533490419388, -0.29771965742111206, -0.15693694353103638, -0.10680265724658966, 0.10426018387079239, -0.03312548249959946, -0.10952721536159515, 0.5250964760780334, -0.09116746485233307, 0.2498137354850769, 0.525962233543396, -0.18305909633636475, 0.13045728206634521, -0.34579911828041077, -0.12371501326560974, 0.1785329282283783, -0.24796056747436523, 0.023517845198512077, -0.020760342478752136, 0.056646883487701416, -0.27097612619400024, 0.1404961347579956, -0.06107695773243904, -0.1720450222492218, -0.09256410598754883, 0.5309395790100098, -0.22463631629943848, -0.18552422523498535, -0.20130395889282227, 0.006535045802593231, -0.05889098346233368, 0.014047954231500626, 0.2020161896944046, -0.09097383916378021, 0.33386996388435364, -0.0031673191115260124, -0.234091654419899, -0.15266458690166473, 0.14350013434886932, 0.06476645171642303, -0.049458879977464676, 0.4163266718387604, 0.20877906680107117, -0.16092418134212494, -0.13654373586177826, 0.36902323365211487, 0.20423384010791779, -0.1333564966917038, 0.1669919192790985, 0.21570056676864624, 0.03367412090301514, -0.053423069417476654, 0.03140038996934891, 0.1624215841293335, -0.47701773047447205, -0.021520689129829407, -0.20940722525119781, -0.4017367959022522, 0.06507448852062225, -0.06594134122133255, 0.14008675515651703, 0.0986139103770256, 0.1832350492477417, -0.12139753997325897, 0.07742320746183395, -0.14260414242744446, 0.3031952679157257, 0.07172489166259766, 0.2567867934703827, -0.20120811462402344, 0.06698084622621536, -0.2717161178588867, -0.07348726689815521, -0.13678400218486786, 0.18100377917289734, 0.08619274199008942, -0.1584145724773407, -0.13021209836006165, 0.20533613860607147, 0.2879723906517029, -0.30351030826568604, 0.19582168757915497, -0.29232320189476013, -0.15716369450092316, -0.28668227791786194, 0.2603015601634979, 0.25278860330581665, 0.019002549350261688, -0.2047923505306244, 0.24754935503005981, -0.18352052569389343, -0.30078256130218506, 0.10867144167423248, -0.06953898072242737, 0.1680460423231125, 0.1572904884815216, 0.30607345700263977, 0.5086449384689331, -0.12639273703098297, -0.24611781537532806, 0.2235289365053177, 0.5379694700241089, -0.1390589028596878, 0.04690062254667282, -0.22401776909828186, 0.056261807680130005, 0.34317055344581604, 0.12553422152996063, 0.4919007420539856, -0.17949813604354858, -0.43911272287368774, 0.5194435715675354, 0.11382937431335449, -0.06278423964977264, -0.18756000697612762, 0.010320857167243958, -0.20737208425998688, -0.2274606078863144, 0.1133364588022232, 0.2939916253089905, 0.23187173902988434, -0.4301711320877075, -0.10731435567140579, 0.44822901487350464, 0.22217699885368347, -0.032012052834033966, 0.3989514708518982, 0.20362043380737305, -0.07288038730621338, 0.3351423144340515, 0.30686336755752563, 0.21985895931720734, 0.5268707871437073, -0.058177873492240906, 0.4922594428062439, 0.16629135608673096, 0.21167345345020294, -0.22725427150726318, -0.5121081471443176, -0.21156567335128784, 0.49707573652267456, 0.24008196592330933, -0.12194657325744629, -0.2991296648979187, 0.2617679536342621, 0.2839813530445099, -0.16225898265838623, -0.01326664537191391, 0.10907070338726044, -0.27224692702293396, -0.12889592349529266, -0.16766737401485443, -0.1421465277671814, 0.0024206191301345825, 0.23541298508644104, -0.2957063317298889, -0.362026572227478, -0.10987360775470734, -0.017090152949094772, -0.13449257612228394, -0.47297602891921997, 0.3292235732078552, 0.1380203366279602, -0.0384659580886364, -0.23978514969348907, 0.3410393297672272, -0.2583078145980835, 0.06377312541007996, 0.008056411519646645, 0.1592170149087906, 0.38005363941192627, 0.40693628787994385, -0.04493974894285202, -0.0394807830452919, -0.25517264008522034, 0.12697970867156982, -0.15809090435504913, 0.4713907837867737, 0.12552356719970703, 0.24458181858062744, 0.2040172964334488, -0.07577486336231232, -0.02736065723001957, 0.02250528521835804, 0.15251576900482178, -0.3925791382789612, -0.13442547619342804, -0.02899717167019844, 0.12522810697555542, -0.3083191514015198, -0.18178465962409973, 0.12923595309257507, -0.2639215588569641, 0.02680828422307968, 0.9157549738883972, -0.3334181606769562, 0.08087249100208282, -0.16991126537322998, 0.02576303854584694, -0.2719905376434326, 0.46416759490966797, 0.4530327618122101, 0.09592951834201813, -0.4936908483505249, -0.10087107121944427, -0.4239509105682373, 0.2393168956041336, -0.4164298176765442, 0.2648037075996399, -0.032267726957798004, 0.09654994308948517, -0.03685048967599869, 0.08344249427318573, -0.351362943649292, 0.40763533115386963, -0.3663596510887146, 0.029120534658432007, -0.12372274696826935, 0.11585698276758194, -0.1410599946975708, 0.1594541370868683, -0.11524525284767151, -0.40631866455078125, 0.3437700867652893, -0.2157745510339737, -0.16884452104568481, -0.13410747051239014, 0.28024357557296753, 0.13607695698738098, -0.15173664689064026, 0.460001677274704, 0.14068852365016937, 0.23416851460933685, 0.1425187736749649, 0.2970138192176819, -0.0326542966067791, 0.1505415290594101, -0.3552686274051666, 0.18383550643920898, 0.027948938310146332, -0.0022604018449783325, -0.13716727495193481, 0.23128561675548553, -0.04707902669906616, 0.038046944886446, -0.0372091569006443, -0.08088601380586624, -0.13271364569664001, -0.07464055716991425, -0.11984372138977051, 0.15993377566337585, 0.04166347533464432, 0.3343161940574646, -0.03879183530807495, -0.03744672238826752, -0.33851534128189087, -0.22728492319583893, 0.2538479268550873, -0.4144100844860077, -0.2750648856163025, -0.14067989587783813, 0.04054665192961693, 0.6282325983047485, -0.23903198540210724, -0.5446507930755615, 0.08365842700004578, 0.5542651414871216, 0.09899674355983734, -0.2914942502975464, 0.2658553719520569, -0.18755732476711273, 0.06111489236354828, -0.12373568117618561, 0.48273900151252747, -0.13630366325378418, -0.2857729196548462, 0.07829359173774719, -0.17736926674842834 ]
https://github.com/huggingface/datasets/issues/1825
For information: it's now available in `datasets` 1.3.0. The 2.0 is reserved for even cooler features ;)
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??
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.43452155590057373, 0.13323625922203064, 0.011771582067012787, 0.2648242712020874, 0.2677347660064697, 0.020276039838790894, 0.0753503292798996, 0.36074554920196533, -0.31799179315567017, -0.062206149101257324, 0.035968124866485596, 0.05125759541988373, -0.25497323274612427, 0.18891122937202454, 0.05212651193141937, 0.08395841717720032, 0.18551839888095856, 0.17251873016357422, 0.11441211402416229, 0.15796078741550446, 0.02277914434671402, -0.14855384826660156, -0.2536756098270416, 0.0014493651688098907, -0.5004293322563171, -0.24694126844406128, 0.001542404294013977, -0.21716412901878357, -0.4491962790489197, -0.34040194749832153, -0.17681467533111572, 0.19938594102859497, 0.5116477012634277, 0.46272706985473633, -0.00012381772103253752, -0.2813292145729065, 0.24677586555480957, 0.0012898743152618408, -0.2723436951637268, 0.04475114494562149, 0.38767820596694946, -0.3245377540588379, -0.2008228749036789, -0.17496062815189362, 0.16089855134487152, -0.28470537066459656, 0.014890363439917564, -0.06997869908809662, 0.09651978313922882, 0.049421437084674835, 0.07792706787586212, 0.09297937154769897, 0.01871781051158905, 0.1376076191663742, 0.1242062896490097, 0.03466147184371948, -0.08224699646234512, 0.05376781150698662, 0.45054006576538086, 0.04975254833698273, -0.1552141159772873, 0.17508156597614288, -0.11661221086978912, 0.009522605687379837, 0.3391449749469757, -0.1126096248626709, -0.14051228761672974, -0.18841177225112915, 0.22548817098140717, 0.29838594794273376, 0.5142068266868591, -0.42721492052078247, -0.2893555164337158, -0.5464209914207458, -0.20440945029258728, -0.3196328282356262, -0.06693083047866821, 0.17825457453727722, -0.013110779225826263, 0.20420575141906738, -0.45582014322280884, -0.4421232342720032, -0.11685530841350555, 0.36538997292518616, -0.23501424491405487, 0.14881300926208496, -0.13685068488121033, 0.11416954547166824, 0.16591519117355347, -0.21794483065605164, 0.11262667179107666, -0.32883456349372864, 0.021910035982728004, 0.19511134922504425, -0.3774072527885437, -0.1529267579317093, -0.20385834574699402, -0.03593636676669121, 0.482255756855011, -0.016551608219742775, -0.4332740008831024, 0.15300944447517395, -0.13893166184425354, 0.0294941496104002, 0.3459944427013397, 0.20498155057430267, -0.10331003367900848, 0.2640489935874939, 0.19828692078590393, -0.1752963364124298, -0.043412208557128906, -0.07846419513225555, -0.5217922925949097, -0.058336298912763596, 0.11536960303783417, -0.46767252683639526, -0.2794630825519562, -0.17098140716552734, -0.0768824964761734, 0.08939963579177856, -0.16610532999038696, 0.3055480122566223, 0.1728392392396927, 0.15236110985279083, -0.10397748649120331, 0.08599191159009933, -0.2191547304391861, 0.1837836354970932, -0.09745962917804718, -0.1802394986152649, 0.002247702330350876, -0.10831540822982788, -0.23472751677036285, 0.1755828857421875, 0.15312016010284424, -0.043589938431978226, 0.13021132349967957, -0.057646434754133224, 0.0576004758477211, 0.012180306017398834, 0.16979381442070007, -0.34265387058258057, -0.07270124554634094, 0.1154426783323288, -0.023889202624559402, 0.36638879776000977, -0.24787449836730957, 0.0542965903878212, -0.20580603182315826, 0.35457873344421387, -0.23993489146232605, -0.3611767590045929, -0.04575732350349426, 0.07190512865781784, -0.3407800495624542, 0.020672215148806572, -0.5490442514419556, 0.37618330121040344, 0.4263474941253662, 0.09058410674333572, 0.011854097247123718, -0.1186688095331192, -0.24796128273010254, -0.01610141061246395, 0.17220447957515717, 0.1334885060787201, -0.5778155326843262, 0.03660765290260315, -0.06813963502645493, 0.11241012811660767, 0.3034367561340332, 0.7545219659805298, -0.1512487232685089, 0.33041486144065857, -0.09166672825813293, 0.4423210918903351, 0.1452018916606903, 0.15989528596401215, -0.513421356678009, 0.4223717749118805, 0.03712140768766403, -0.16403041779994965, -0.012878593057394028, 0.10754251480102539, 0.3807857632637024, -0.1396206170320511, 0.1872461438179016, 0.334022581577301, -0.06456455588340759, 0.08486167341470718, -0.2775017023086548, -0.3438345193862915, 0.13026292622089386, 0.2880871295928955, 0.19698753952980042, -0.28107553720474243, -0.009794101119041443, 0.3730163276195526, 0.13292354345321655, -0.15533673763275146, 0.3648219406604767, 0.13450956344604492, 0.1909361183643341, 0.1730596274137497, -0.03488422930240631, -0.23714971542358398, 0.14837926626205444, 0.07402975112199783, 0.10630177706480026, -0.1766887605190277, -0.009156916290521622, -0.3077901601791382, 0.14404985308647156, -0.024383485317230225, 0.031187398359179497, 0.11032751202583313, -0.10445211827754974, -0.21971605718135834, -0.08545064181089401, 0.13519927859306335, -0.10436393320560455, -0.11915742605924606, -0.31985414028167725, 0.13553962111473083, -0.08921603113412857, -0.0005723163485527039, 0.06296595931053162, -0.13610735535621643, 0.04119139164686203, 0.2246113121509552, -0.14764681458473206, -0.131358802318573, 0.021907988935709, 0.18725994229316711, 0.01833174377679825, -0.23570480942726135, -0.2702257037162781, 0.5758531093597412, 0.22755156457424164, 0.04800458252429962, 0.20993463695049286, -0.03094213828444481, 0.035299044102430344, -0.09204379469156265, 0.047042544931173325, 0.2821452021598816, 0.10142017900943756, 0.11709016561508179, 0.03496096283197403, -0.28047633171081543, 0.1036202609539032, -0.02234601229429245, 0.1937521994113922, 0.006490811705589294, 0.2591930329799652, 0.07922004163265228, 0.31568270921707153, 0.3179975152015686, -0.1806909590959549, -0.17457497119903564, 0.35814228653907776, -0.32104170322418213, 0.2150851935148239, 0.425073504447937, -0.4366926848888397, -0.33829617500305176, 0.07257706671953201, -0.2350001484155655, 0.10562288761138916, 0.14274242520332336, 0.073113352060318, -0.042808741331100464, 0.3631475865840912, -0.05253169313073158, 0.17528818547725677, 0.13171403110027313, 0.13527783751487732, 0.20914426445960999, 0.12576264142990112, 0.1298953890800476, -0.15941238403320312, -0.06409821659326553, 0.19195488095283508, 0.33669841289520264, -0.10904058814048767, 0.05083700269460678, -0.20874211192131042, -0.3060903549194336, 0.000451408326625824, 0.21167930960655212, -0.16400383412837982, 0.0426931232213974, 0.1251249760389328, 0.04372842237353325, 0.13064943253993988, 0.0544443354010582, 0.12639166414737701, 0.3693225681781769, 0.050385408103466034, -0.3098162114620209, 0.1500757336616516, -0.05457894131541252, -0.4672505557537079, -0.03708331659436226, 0.31120800971984863, -0.3574155867099762, 0.2815755009651184, 0.2022112011909485, 0.05865032225847244, -0.31880804896354675, -0.44765570759773254, 0.021460654214024544, 0.13178689777851105, 0.20777224004268646, -0.14104513823986053, 0.0467340350151062, -0.19140011072158813, 0.16354796290397644, -0.10141420364379883, -0.10611077398061752, -0.07872825860977173, 0.06497257202863693, -0.16451776027679443, -0.19779635965824127, 0.12057195603847504, -0.0024963393807411194, -0.2704377770423889, -0.1932477355003357, 0.22426453232765198, -0.15646974742412567, 0.07225589454174042, 0.027616918087005615, 0.06438305228948593, -0.025846585631370544, -0.05708755925297737, -0.14012742042541504, 0.05124284699559212, -0.31306231021881104, 0.42596203088760376, 0.20224495232105255, -0.19765309989452362, -0.07767071574926376, 0.11611921340227127, -0.09129872918128967, 0.35886356234550476, -0.5269434452056885, 0.31146782636642456, -0.19906236231327057, 0.19106915593147278, -0.08568798005580902, 0.01771102286875248, 0.009399056434631348, -0.1782577931880951, 0.1044141948223114, 0.12522301077842712, -0.21862563490867615, -0.2550847828388214, -0.15666556358337402, 0.3327915370464325, -0.03448318690061569, 0.3154124319553375, 0.4613993465900421, 0.5344963073730469, -0.07024227827787399, -0.1545262634754181, 0.3131117820739746, 0.17344363033771515, 0.2241770625114441, -0.3325263559818268, -0.08601224422454834, 0.26620936393737793, -0.06262479722499847, -0.11468569189310074, 0.47546839714050293, 0.1411808729171753, -0.11461587995290756, 0.2510150074958801, -0.3503868281841278, -0.02483171969652176, -0.06109951436519623, 0.1744011491537094, -0.30042940378189087, 0.2343147099018097, -0.023420345038175583, -0.17322444915771484, -0.02752038463950157, -0.38127946853637695, -0.058009542524814606, 0.17669035494327545, -0.029821299016475677, 0.2385101318359375, -0.4791231155395508, 0.2534344792366028, -0.3464238941669464, 0.17052152752876282, -0.10046221315860748, 0.36179816722869873, 0.13577841222286224, 0.18635407090187073, 0.219988614320755, 0.02147527039051056, 0.5436986684799194, 0.12410273402929306, -0.1632370948791504, -0.1701992303133011, -0.12547118961811066, -0.2008715271949768, 0.05124937742948532, -0.10644678771495819, 0.29165759682655334, 0.4566517472267151, 0.47875282168388367, -0.3634491562843323, -0.1394796371459961, -0.2989521622657776, 0.5648919939994812, -0.011686041951179504, -0.29516637325286865, -0.011685945093631744, -0.1437801867723465, -0.5237723588943481, 0.19012629985809326, 0.1533016562461853, 0.37185144424438477, 0.1237616091966629, -0.09318923205137253, -0.18312735855579376, -0.09198477864265442, 0.3282530903816223, -0.03005710244178772, 0.09135591238737106, -0.14282017946243286, 0.23360426723957062, -0.2097424864768982, 0.14488472044467926, 0.5053815245628357, -0.038529518991708755, 0.14477765560150146, -0.28992539644241333, 0.005515439435839653, 0.06989873945713043, 0.3870849013328552, -0.031457506120204926, -0.14350995421409607, 0.3864057660102844, -0.2510172426700592, 0.259846568107605, -0.1936827301979065, 0.5484659075737, 0.12828786671161652, 0.055166684091091156, -0.8614720702171326, -0.33652254939079285, 0.2391016185283661, 0.22780555486679077, -0.01845362037420273, 0.2278815060853958, -0.1837543398141861, -0.29246824979782104, 0.27645331621170044, 0.10327228903770447, 0.8179162740707397, -0.4555813670158386, 0.32440921664237976, -0.4055628776550293, 0.3411642909049988, 0.5398197770118713, -0.5751263499259949, -0.03653475642204285, -0.39814186096191406, 0.13558658957481384, 0.12986670434474945, 0.006697230041027069, 0.040274396538734436, 0.41504010558128357, 0.07179714739322662, 0.2767040729522705, 0.11566305160522461, 0.13288946449756622, 0.008333664387464523, 0.6496938467025757, -0.07788623124361038, -0.310295432806015, -0.13483671844005585, 0.037005119025707245, -0.19221597909927368, -0.05056219547986984, -0.22435377538204193, 0.10704071819782257, 0.11517395079135895, 0.060799553990364075, -0.3009156286716461, -0.17050382494926453, -0.11337646842002869, 0.12184165418148041, -0.03183344006538391, -0.10877356678247452, 0.506159245967865, -0.08415372669696808, 0.24614238739013672, 0.5565770864486694, -0.17381878197193146, 0.12752704322338104, -0.35884031653404236, -0.1274368166923523, 0.17475087940692902, -0.24997270107269287, 0.02644394524395466, -0.01694580167531967, 0.09738633036613464, -0.263616681098938, 0.15352264046669006, -0.07091625034809113, -0.16016614437103271, -0.0865982174873352, 0.5369493961334229, -0.20563620328903198, -0.1871611475944519, -0.21344858407974243, 0.012141019105911255, -0.06266726553440094, 0.010258128866553307, 0.19152608513832092, -0.05729339271783829, 0.2991555333137512, -0.013397332280874252, -0.2419014722108841, -0.1446451097726822, 0.1430329978466034, 0.0640016719698906, -0.04269024729728699, 0.4207985997200012, 0.18296441435813904, -0.14779099822044373, -0.12789633870124817, 0.3998599648475647, 0.20367801189422607, -0.10331863909959793, 0.1846524178981781, 0.20323514938354492, 0.029057413339614868, -0.060144245624542236, 0.04956674948334694, 0.13748660683631897, -0.49854689836502075, -0.052676524966955185, -0.21401891112327576, -0.39603471755981445, 0.06683506071567535, -0.06651578843593597, 0.14781910181045532, 0.11989755928516388, 0.15610471367835999, -0.14838992059230804, 0.07023181766271591, -0.13346250355243683, 0.30909425020217896, 0.07083000242710114, 0.26126953959465027, -0.20052966475486755, 0.08245054632425308, -0.2894151508808136, -0.05958535149693489, -0.1407785415649414, 0.17343154549598694, 0.09071250259876251, -0.15062794089317322, -0.15724071860313416, 0.20405656099319458, 0.3015046715736389, -0.28974971175193787, 0.19620433449745178, -0.2798904776573181, -0.17210492491722107, -0.3013719618320465, 0.2562596797943115, 0.2545866072177887, 0.024784652516245842, -0.20373812317848206, 0.21781229972839355, -0.18802477419376373, -0.31080546975135803, 0.1195627748966217, -0.06318444013595581, 0.14131680130958557, 0.14139431715011597, 0.3235110640525818, 0.5331248044967651, -0.11390061676502228, -0.2503628432750702, 0.2166420817375183, 0.541187584400177, -0.16252431273460388, 0.04645382985472679, -0.19850394129753113, 0.05624870955944061, 0.3416447043418884, 0.12089964002370834, 0.4793931841850281, -0.16099387407302856, -0.4485670328140259, 0.5291867256164551, 0.10181179642677307, -0.05792202800512314, -0.18641111254692078, -0.02048405259847641, -0.18862313032150269, -0.21632878482341766, 0.10320506244897842, 0.2899167835712433, 0.25100380182266235, -0.43758970499038696, -0.12486474961042404, 0.43206050992012024, 0.23991383612155914, -0.024066252633929253, 0.42109957337379456, 0.23112696409225464, -0.09215418994426727, 0.3365710973739624, 0.323238730430603, 0.24094735085964203, 0.5528321266174316, -0.04776841029524803, 0.5267719626426697, 0.1754157692193985, 0.19595372676849365, -0.19602790474891663, -0.5036008954048157, -0.22269847989082336, 0.4708331227302551, 0.22832979261875153, -0.11092418432235718, -0.3145102560520172, 0.22952482104301453, 0.2637503743171692, -0.14775149524211884, -0.019117895513772964, 0.1155165284872055, -0.2704107165336609, -0.1847076416015625, -0.1443491280078888, -0.13648121058940887, 0.026638224720954895, 0.2635382413864136, -0.2816627621650696, -0.35918548703193665, -0.10414080321788788, -0.03355038911104202, -0.08909569680690765, -0.45429086685180664, 0.37713417410850525, 0.1530846804380417, -0.030549127608537674, -0.2375962734222412, 0.3415530323982239, -0.2511644959449768, 0.06855784356594086, 0.013933343812823296, 0.16420722007751465, 0.3705231547355652, 0.37426573038101196, -0.04299549013376236, -0.04347296804189682, -0.26299652457237244, 0.12463115900754929, -0.1643611043691635, 0.46313542127609253, 0.1134568601846695, 0.24559639394283295, 0.2111252099275589, -0.07804746925830841, -0.015468977391719818, 0.014794988557696342, 0.1294233500957489, -0.4031859040260315, -0.16285467147827148, -0.013906359672546387, 0.12175969779491425, -0.2851450443267822, -0.15758617222309113, 0.17192664742469788, -0.2431895136833191, 0.006563641130924225, 0.9193088412284851, -0.3252095580101013, 0.08081894367933273, -0.1628735065460205, 0.02491200715303421, -0.28392091393470764, 0.4645770788192749, 0.45191797614097595, 0.0823252946138382, -0.44553661346435547, -0.09147707372903824, -0.4034668207168579, 0.2238801121711731, -0.4040195941925049, 0.2532672882080078, -0.044952087104320526, 0.10310905426740646, -0.05480359122157097, 0.08098070323467255, -0.36580246686935425, 0.4317953586578369, -0.35664284229278564, 0.02010687068104744, -0.0732472836971283, 0.09479262679815292, -0.13407115638256073, 0.1532261222600937, -0.11740776896476746, -0.4135875999927521, 0.33539122343063354, -0.2376115620136261, -0.16863930225372314, -0.1295074224472046, 0.2847559452056885, 0.15210774540901184, -0.17142164707183838, 0.4486645758152008, 0.1417049616575241, 0.21210086345672607, 0.1436331868171692, 0.2874577045440674, -0.023393265902996063, 0.17063534259796143, -0.34893345832824707, 0.17795781791210175, 0.005574619397521019, -0.01664998009800911, -0.1431228518486023, 0.24266256392002106, -0.018613899126648903, 0.046975038945674896, -0.06034804508090019, -0.09169244766235352, -0.12637141346931458, -0.0789710059762001, -0.15178313851356506, 0.15401984751224518, 0.057665567845106125, 0.3408266305923462, -0.048266083002090454, -0.06254730373620987, -0.310564786195755, -0.23422278463840485, 0.2298223227262497, -0.4213120937347412, -0.26480987668037415, -0.18015658855438232, 0.015433330088853836, 0.6642017364501953, -0.2201961874961853, -0.5252723693847656, 0.1011432409286499, 0.5639668107032776, 0.09118098765611649, -0.3091644048690796, 0.2561299204826355, -0.18193306028842926, 0.06292561441659927, -0.13536041975021362, 0.4806589186191559, -0.14935454726219177, -0.295160174369812, 0.05394330620765686, -0.16822898387908936 ]
https://github.com/huggingface/datasets/issues/1825
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.
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??
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.40281546115875244, 0.07713928818702698, 0.008600369095802307, 0.3193155527114868, 0.3035770058631897, 0.02334935963153839, 0.030155975371599197, 0.3559311628341675, -0.2499680072069168, -0.0241905078291893, 0.038890957832336426, 0.10702252388000488, -0.2629808783531189, 0.11885133385658264, 0.034716181457042694, 0.10915109515190125, 0.21070373058319092, 0.17219853401184082, 0.10670348256826401, 0.1461048424243927, 0.00336359441280365, -0.07689866423606873, -0.23595575988292694, -0.04422425106167793, -0.4917673170566559, -0.2467965930700302, -0.005254581570625305, -0.22569045424461365, -0.4161321818828583, -0.3108104467391968, -0.1463020145893097, 0.20579242706298828, 0.49007904529571533, 0.49806466698646545, -0.0001231332862516865, -0.2699459493160248, 0.23637264966964722, 0.01864403486251831, -0.31871944665908813, 0.05088967829942703, 0.4693198800086975, -0.35776811838150024, -0.20286044478416443, -0.20813387632369995, 0.16594181954860687, -0.21710318326950073, -0.0014260690659284592, -0.11831563711166382, 0.10756479203701019, 0.054120730608701706, 0.09700208157300949, 0.13032439351081848, 0.010550595819950104, 0.1590498834848404, 0.10155459493398666, 0.09348209947347641, -0.09404987096786499, 0.059626076370477676, 0.4631814956665039, 0.08984310925006866, -0.167684406042099, 0.2201167643070221, -0.15350931882858276, 0.02760009840130806, 0.36304566264152527, -0.08729967474937439, -0.09161600470542908, -0.1663147211074829, 0.27466922998428345, 0.25929516553878784, 0.5688687562942505, -0.44131630659103394, -0.26121512055397034, -0.5455197095870972, -0.221926748752594, -0.2722453474998474, 0.00441841222345829, 0.16777002811431885, -0.03759216517210007, 0.19156508147716522, -0.44124993681907654, -0.47121065855026245, -0.08853129297494888, 0.3492918610572815, -0.21838794648647308, 0.07992902398109436, -0.1663343906402588, 0.1026662290096283, 0.23827151954174042, -0.24183708429336548, 0.1028122827410698, -0.3338504433631897, 0.002266282681375742, 0.16445784270763397, -0.3736107051372528, -0.14782509207725525, -0.21424871683120728, -0.05769333988428116, 0.4252461791038513, 0.0029208287596702576, -0.4150719940662384, 0.14445200562477112, -0.1237989068031311, 0.03630910813808441, 0.35160741209983826, 0.2578931748867035, -0.0990971028804779, 0.2503683865070343, 0.1979779601097107, -0.17370405793190002, -0.016000568866729736, -0.11054885387420654, -0.5208443999290466, -0.06629979610443115, 0.13767209649085999, -0.5249606966972351, -0.2645239233970642, -0.17633409798145294, -0.08627146482467651, 0.07800432294607162, -0.09804980456829071, 0.2459832727909088, 0.1834302544593811, 0.18184736371040344, -0.07344220578670502, 0.12008434534072876, -0.18787601590156555, 0.1694709211587906, -0.12261725217103958, -0.167670339345932, 0.00435682013630867, -0.10667048394680023, -0.22870589792728424, 0.11159475147724152, 0.17005795240402222, -0.012980107218027115, 0.1193297728896141, -0.06049346178770065, 0.03899754583835602, 0.009637519717216492, 0.14253592491149902, -0.3770749270915985, -0.07477988302707672, 0.12505829334259033, -0.016247466206550598, 0.38194137811660767, -0.24520105123519897, 0.04385776072740555, -0.2310597449541092, 0.3684508800506592, -0.27148109674453735, -0.37216031551361084, -0.11704079061746597, 0.0728529766201973, -0.3259706497192383, -0.005312731489539146, -0.6098568439483643, 0.359302818775177, 0.4154553711414337, 0.08783816546201706, -0.05402831733226776, -0.10275442898273468, -0.24953706562519073, -0.05129546299576759, 0.16333839297294617, 0.15368369221687317, -0.5558544993400574, 0.04240511357784271, -0.10500572621822357, 0.13812591135501862, 0.34486815333366394, 0.7818450331687927, -0.15406905114650726, 0.3443174958229065, -0.08373143523931503, 0.382989764213562, 0.13972508907318115, 0.08650299906730652, -0.5390253067016602, 0.4260478913784027, 0.08055613934993744, -0.14693006873130798, 0.016578461974859238, 0.10894718766212463, 0.3508238196372986, -0.14016282558441162, 0.15494249761104584, 0.319736510515213, -0.016822706907987595, 0.09553824365139008, -0.3492802083492279, -0.3166877031326294, 0.12138757109642029, 0.3060804009437561, 0.16664302349090576, -0.33644238114356995, -0.02673766389489174, 0.3738554120063782, 0.15008357167243958, -0.1257287561893463, 0.34512990713119507, 0.16953247785568237, 0.24980488419532776, 0.17972345650196075, -0.0031749606132507324, -0.21268677711486816, 0.12864899635314941, 0.090798020362854, 0.16976360976696014, -0.19139979779720306, -0.027545344084501266, -0.2772669196128845, 0.14925870299339294, -0.016702383756637573, 0.01964505761861801, 0.10863052308559418, -0.08331730961799622, -0.2104954719543457, -0.05781923234462738, 0.13697221875190735, -0.06656859815120697, -0.1515645980834961, -0.31480008363723755, 0.1400071382522583, -0.06456680595874786, 0.023590087890625, 0.052429839968681335, -0.11672335863113403, 0.018334954977035522, 0.2091658115386963, -0.1672682911157608, -0.13639484345912933, 0.012123260647058487, 0.19489829242229462, 0.015176966786384583, -0.21381136775016785, -0.1999003142118454, 0.5545607805252075, 0.23319673538208008, 0.05911564826965332, 0.2807888686656952, -0.0021754633635282516, 0.053806040436029434, -0.09840872883796692, 0.003217238001525402, 0.21292592585086823, 0.08226248621940613, 0.1509801149368286, -0.012264907360076904, -0.262198805809021, 0.12468257546424866, 0.018197350203990936, 0.23002654314041138, 0.017934538424015045, 0.2678828239440918, 0.06905902922153473, 0.32527977228164673, 0.31911078095436096, -0.14394941926002502, -0.1528826653957367, 0.3700922727584839, -0.31329619884490967, 0.2127896249294281, 0.47236037254333496, -0.40988293290138245, -0.3531782627105713, 0.07248298078775406, -0.17159435153007507, 0.14189422130584717, 0.15436439216136932, 0.05799075961112976, -0.09248887747526169, 0.38677674531936646, -0.04526635631918907, 0.20552030205726624, 0.13963505625724792, 0.11169091612100601, 0.17768071591854095, 0.13021109998226166, 0.11578646302223206, -0.16113120317459106, -0.06543867290019989, 0.1719737946987152, 0.3680223524570465, -0.11275463551282883, 0.03966639190912247, -0.20157140493392944, -0.27627766132354736, 0.011957623064517975, 0.22388724982738495, -0.15219783782958984, 0.012701869010925293, 0.09252229332923889, 0.04160195216536522, 0.1437937617301941, 0.07407309859991074, 0.2089528888463974, 0.329238623380661, 0.008559927344322205, -0.3077062964439392, 0.11535976082086563, -0.03285842761397362, -0.4963884651660919, -0.02830898016691208, 0.36304226517677307, -0.3414939045906067, 0.2948131859302521, 0.15391525626182556, 0.07663299888372421, -0.32043948769569397, -0.40332990884780884, -0.013397159054875374, 0.1026635468006134, 0.22246168553829193, -0.15168166160583496, 0.07971441745758057, -0.2505562901496887, 0.18064479529857635, -0.06579837203025818, -0.13778670132160187, -0.05744471028447151, 0.06796113401651382, -0.15129750967025757, -0.2519557476043701, 0.09811607003211975, -0.018010057508945465, -0.3014727532863617, -0.17827481031417847, 0.2398395836353302, -0.15044349431991577, 0.1131775826215744, 0.014203853905200958, 0.07040718197822571, -0.0160822831094265, -0.057249072939157486, -0.132959246635437, 0.03183533996343613, -0.35836154222488403, 0.4102060794830322, 0.25234490633010864, -0.17545533180236816, -0.0017286613583564758, 0.15104319155216217, -0.0866941586136818, 0.2985328435897827, -0.5361639857292175, 0.24823245406150818, -0.2271319031715393, 0.17070111632347107, -0.09893687069416046, 0.09395375847816467, 0.008523274213075638, -0.14089956879615784, 0.11263752728700638, 0.13575229048728943, -0.2377643883228302, -0.24940383434295654, -0.12992748618125916, 0.3253560960292816, -0.03926337882876396, 0.318812757730484, 0.5074322819709778, 0.47770148515701294, -0.07447481155395508, -0.11316321045160294, 0.30970513820648193, 0.18411235511302948, 0.2432105541229248, -0.32359132170677185, -0.113764688372612, 0.2541651725769043, -0.07053756713867188, -0.13443484902381897, 0.45632204413414, 0.18187296390533447, -0.10354918241500854, 0.25948566198349, -0.3549363613128662, -0.04149327799677849, -0.05831584334373474, 0.20229175686836243, -0.24576199054718018, 0.20871034264564514, -0.016627267003059387, -0.16092127561569214, -0.0318123996257782, -0.3627416491508484, -0.054764293134212494, 0.16779319941997528, -0.011003505438566208, 0.22179310023784637, -0.4764859974384308, 0.23940038681030273, -0.39927247166633606, 0.1984272301197052, -0.1730271279811859, 0.30660802125930786, 0.14190658926963806, 0.21146948635578156, 0.25955232977867126, 0.017400257289409637, 0.5492842793464661, 0.15288732945919037, -0.1475338339805603, -0.16989746689796448, -0.14218769967556, -0.2579244077205658, 0.05508577078580856, -0.15058642625808716, 0.279994398355484, 0.43575966358184814, 0.5038670897483826, -0.36474186182022095, -0.20128607749938965, -0.3397356867790222, 0.5800451040267944, -0.04805648326873779, -0.29071611166000366, -0.026797115802764893, -0.21803730726242065, -0.5310128927230835, 0.17500202357769012, 0.1872735172510147, 0.36732184886932373, 0.1741112768650055, -0.05827900767326355, -0.1614658087491989, -0.07038922607898712, 0.3420441746711731, -0.046439576894044876, 0.18441590666770935, -0.19685137271881104, 0.233506977558136, -0.2128453552722931, 0.11891037225723267, 0.5117977857589722, -0.04240651801228523, 0.0731494128704071, -0.20603540539741516, -0.003742668777704239, 0.05004347488284111, 0.37260109186172485, -0.03304813802242279, -0.1493566334247589, 0.3144879639148712, -0.2959532141685486, 0.27986788749694824, -0.21720963716506958, 0.4888462424278259, 0.15721482038497925, 0.09786783158779144, -0.7616375684738159, -0.3631925880908966, 0.23610113561153412, 0.24650457501411438, -0.02223297953605652, 0.1951892077922821, -0.1537141501903534, -0.2862217128276825, 0.300418496131897, 0.11055554449558258, 0.8260045051574707, -0.4686465561389923, 0.2963402569293976, -0.3631173372268677, 0.3105924427509308, 0.5010316371917725, -0.6091920733451843, -0.03217862546443939, -0.396359920501709, 0.13955478370189667, 0.1546204686164856, 0.008651502430438995, 0.04584356024861336, 0.4068329632282257, 0.039877697825431824, 0.3078385591506958, 0.1045459657907486, 0.09896837919950485, -0.013291571289300919, 0.6598162651062012, -0.10081672668457031, -0.3176690936088562, -0.15282286703586578, 0.060333412140607834, -0.22921478748321533, -0.04829302802681923, -0.1904262900352478, 0.09848131239414215, 0.11047643423080444, 0.04459412395954132, -0.3024245500564575, -0.21831145882606506, -0.10782280564308167, 0.1403215378522873, -0.030980108305811882, -0.09606662392616272, 0.4986240863800049, -0.002138216979801655, 0.20628230273723602, 0.5608214139938354, -0.16030253469944, 0.15735551714897156, -0.3864063620567322, -0.08734707534313202, 0.1849469244480133, -0.19999848306179047, -0.041052259504795074, -0.05678873509168625, 0.09583780169487, -0.3077462911605835, 0.11384434998035431, -0.06882578134536743, -0.15528975427150726, -0.08213967829942703, 0.49450650811195374, -0.17613711953163147, -0.23967044055461884, -0.2425159215927124, -0.023989595472812653, -0.0590677484869957, 0.02639520913362503, 0.23462152481079102, -0.07679513096809387, 0.3747394382953644, -0.03021993301808834, -0.22053459286689758, -0.12492296099662781, 0.13245955109596252, 0.08724074810743332, -0.0343003086745739, 0.4078710377216339, 0.14042717218399048, -0.1649450659751892, -0.15308353304862976, 0.40820324420928955, 0.12470782548189163, -0.12890104949474335, 0.21056771278381348, 0.23442423343658447, 0.008898556232452393, -0.05016089603304863, 0.003025699406862259, 0.17521528899669647, -0.5009047389030457, -0.09188423305749893, -0.18051621317863464, -0.398769348859787, 0.0736570656299591, -0.04599377140402794, 0.13565412163734436, 0.1200379878282547, 0.06123793125152588, -0.13960281014442444, 0.06080188602209091, -0.15730944275856018, 0.3485962450504303, 0.07973521202802658, 0.23960131406784058, -0.22430455684661865, 0.039843857288360596, -0.21724189817905426, -0.09722714126110077, -0.1267705112695694, 0.1385209709405899, 0.09394018352031708, -0.16506722569465637, -0.14138789474964142, 0.18792332708835602, 0.2528235912322998, -0.2673342823982239, 0.18794673681259155, -0.2861520051956177, -0.1580534130334854, -0.3490872383117676, 0.2193032056093216, 0.25477004051208496, 0.022253654897212982, -0.18584145605564117, 0.21628275513648987, -0.2088620960712433, -0.28591209650039673, 0.11250486969947815, -0.06780451536178589, 0.13099396228790283, 0.14808163046836853, 0.31666699051856995, 0.5489240884780884, -0.13662733137607574, -0.298054039478302, 0.1985020637512207, 0.5358871817588806, -0.119768887758255, 0.03472744673490524, -0.2065894454717636, 0.05749785900115967, 0.37481948733329773, 0.10818853974342346, 0.48121583461761475, -0.16833359003067017, -0.4468154311180115, 0.4947701096534729, 0.12897442281246185, -0.05712668597698212, -0.24768884479999542, 0.0029822997748851776, -0.18063509464263916, -0.2533293068408966, 0.08099425584077835, 0.3137276768684387, 0.2014208436012268, -0.40668419003486633, -0.10126451402902603, 0.5237575173377991, 0.16533219814300537, 0.002921607345342636, 0.42724448442459106, 0.2243708074092865, -0.11267411708831787, 0.3166331350803375, 0.2939412593841553, 0.23376871645450592, 0.5904651284217834, -0.07540108263492584, 0.5070324540138245, 0.21955788135528564, 0.1999550461769104, -0.2541433274745941, -0.4688103199005127, -0.21258790791034698, 0.460796982049942, 0.2010648399591446, -0.10692369937896729, -0.3281904458999634, 0.23881028592586517, 0.22325390577316284, -0.16921043395996094, -0.05010668933391571, 0.07953310757875443, -0.2972473204135895, -0.19670164585113525, -0.049773674458265305, -0.09385383129119873, 0.03154897689819336, 0.23995476961135864, -0.29300060868263245, -0.39100298285484314, -0.14380507171154022, -0.009444888681173325, -0.10312777757644653, -0.3992474675178528, 0.34581202268600464, 0.137922003865242, -0.03306059166789055, -0.2205665409564972, 0.32623207569122314, -0.24200531840324402, 0.07786637544631958, -0.030384104698896408, 0.14177578687667847, 0.39251792430877686, 0.3610639274120331, -0.042269013822078705, -0.048545386642217636, -0.2711451053619385, 0.14921970665454865, -0.18286743760108948, 0.464248925447464, 0.06104428321123123, 0.27577877044677734, 0.1816597431898117, -0.05596305429935455, -0.033735353499650955, -0.0268851425498724, 0.1235693022608757, -0.3364807069301605, -0.1484849601984024, -0.02171562984585762, 0.08024151623249054, -0.2911401093006134, -0.14841939508914948, 0.14952844381332397, -0.24760892987251282, -0.03564908728003502, 0.8947808146476746, -0.29397374391555786, 0.07426169514656067, -0.1504417210817337, 0.03623662889003754, -0.2652699947357178, 0.4319397807121277, 0.4181508421897888, 0.004570972640067339, -0.47419100999832153, -0.09209895879030228, -0.4654785990715027, 0.15547938644886017, -0.3860725164413452, 0.2582818269729614, -0.0038844123482704163, 0.10885901004076004, -0.0433049350976944, 0.041787777096033096, -0.35366830229759216, 0.40794211626052856, -0.338326632976532, -0.012624291703104973, -0.11600954085588455, 0.13264402747154236, -0.13048584759235382, 0.1457921415567398, -0.0697082132101059, -0.4247710108757019, 0.3027364909648895, -0.2206452488899231, -0.16164472699165344, -0.1389223039150238, 0.32901251316070557, 0.13594737648963928, -0.08470788598060608, 0.43300381302833557, 0.14649052917957306, 0.19335025548934937, 0.14409290254116058, 0.230001300573349, -0.010187633335590363, 0.16640819609165192, -0.30353105068206787, 0.16409704089164734, 0.01350916177034378, 0.03175099194049835, -0.18384870886802673, 0.2569763660430908, -0.037000514566898346, 0.0674787163734436, -0.06181789189577103, -0.07447811961174011, -0.11719734966754913, -0.0723750963807106, -0.10054861754179001, 0.15523482859134674, 0.06508864462375641, 0.3275764584541321, -0.0324823372066021, -0.059436455368995667, -0.3826100826263428, -0.220842182636261, 0.2281024158000946, -0.361630380153656, -0.29142558574676514, -0.15027350187301636, 0.04207558184862137, 0.6636847853660583, -0.19472196698188782, -0.5574445724487305, 0.0941896140575409, 0.536716639995575, 0.0990346223115921, -0.317939817905426, 0.27287930250167847, -0.177984356880188, 0.057639047503471375, -0.08851718157529831, 0.5082889199256897, -0.15836939215660095, -0.30042916536331177, 0.06396470963954926, -0.15440627932548523 ]
https://github.com/huggingface/datasets/issues/1821
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) ```
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!)
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.10873319953680038, -0.4190311133861542, 0.007515575736761093, 0.28152039647102356, 0.18453599512577057, 0.16356313228607178, 0.14092247188091278, 0.39342939853668213, 0.22628797590732574, 0.28828567266464233, 0.2727557420730591, -0.21747496724128723, -0.05892085283994675, -0.27146828174591064, -0.24078460037708282, -0.16196812689304352, 0.08607447147369385, 0.12357845902442932, 0.25673866271972656, -0.04077265039086342, -0.043557602912187576, 0.17293210327625275, 0.11452478170394897, 0.25118139386177063, -0.48974305391311646, -0.27691584825515747, -0.3172523081302643, 0.3817557394504547, 0.2166702151298523, -0.5677112340927124, 0.00015079975128173828, 0.03105754405260086, 0.10030349344015121, 0.5251940488815308, -0.0001157861843239516, -0.15041741728782654, 0.15018650889396667, 0.027187928557395935, -0.37788453698158264, -0.1116749569773674, -0.18566597998142242, -0.6877267956733704, -0.02415631338953972, -0.28132927417755127, 0.3580896258354187, -0.03667083755135536, 0.24455241858959198, -0.1590946614742279, 0.3761559724807739, 0.3548000454902649, 0.09479549527168274, -0.16531223058700562, 0.2582826614379883, -0.002304449677467346, 0.34243839979171753, 0.14315485954284668, 0.0669533833861351, 0.2645777463912964, 0.31794992089271545, -0.42845284938812256, -0.225796639919281, 0.06724680960178375, -0.21005982160568237, 0.06048877537250519, 0.07222598046064377, 0.05477672070264816, 0.3765808045864105, -0.1714562326669693, -0.22164040803909302, 0.4012444019317627, 0.20462444424629211, -0.14465129375457764, -0.5563564300537109, -0.66395503282547, 0.18680211901664734, -0.2990667521953583, -0.09561105817556381, 0.3052094876766205, -0.22465680539608002, 0.11646805703639984, 0.34119895100593567, -0.1564715951681137, -0.36960166692733765, -0.06565016508102417, -0.09434444457292557, -0.177451029419899, 0.11633316427469254, -0.06657242774963379, 0.07953937351703644, -0.03010188229382038, -0.22959169745445251, -0.02440139465034008, -0.14052434265613556, -0.06595660001039505, -0.5154399275779724, -0.06112400442361832, 0.13987287878990173, -0.5946625471115112, 0.23441921174526215, -0.38725048303604126, 0.34230881929397583, 0.12680786848068237, -0.08760901540517807, 0.3240606486797333, 0.36730435490608215, -0.18026472628116608, 0.04465121775865555, -0.07358909398317337, 0.4588174819946289, 0.09755606949329376, -0.1286381334066391, -0.1786257028579712, 0.05804815888404846, -0.28653398156166077, 0.013182997703552246, 0.49159038066864014, 0.09726940095424652, -0.24222683906555176, -0.5625765323638916, 0.1740458756685257, -0.29982316493988037, -0.12949979305267334, -0.10190744698047638, 0.3863111734390259, -0.14914025366306305, 0.2941473424434662, -0.07184125483036041, 0.07430750131607056, 0.10585813969373703, -0.3490167260169983, 0.01900273561477661, 0.09550651907920837, -0.1309894174337387, 0.1971977949142456, -0.10667920112609863, 0.04265318810939789, -0.10532786697149277, 0.21252813935279846, 0.16128835082054138, -0.19581270217895508, -0.02666647359728813, -0.4223656952381134, -0.01230444386601448, 0.13475501537322998, 0.036086954176425934, 0.27871736884117126, 0.11800740659236908, -0.19979184865951538, -0.015529796481132507, 0.039092108607292175, -0.5052163600921631, -0.40552639961242676, -0.1516357809305191, -0.019063785672187805, 0.22585995495319366, 0.20260772109031677, -0.11845967173576355, 0.2543495297431946, -0.06530114263296127, -0.11490369588136673, -0.09611795842647552, -0.11684927344322205, 0.2591303586959839, -0.31468474864959717, 0.07447244226932526, 0.5779362320899963, -0.3668699264526367, 0.2835260033607483, -0.1532493233680725, 0.007167777046561241, 0.30141010880470276, 0.5016703605651855, -0.22135013341903687, 0.3920571506023407, -0.30437546968460083, 0.2214909791946411, 0.021441787481307983, -0.24103949964046478, 0.06961275637149811, 0.5922532081604004, -0.09950782358646393, 0.3384658992290497, 0.4496503174304962, -0.054826028645038605, 0.0299319326877594, -0.13199815154075623, 0.2314150035381317, 0.10583344101905823, -0.2101561576128006, 0.11930987238883972, -0.13838668167591095, -0.01648828014731407, 0.05864030122756958, -0.08800451457500458, -0.04579292610287666, -0.16987165808677673, 0.3214455544948578, -0.1717798113822937, 0.683605432510376, -0.2008429616689682, -0.1986035853624344, 0.32708054780960083, 0.3706166446208954, 0.18016862869262695, -0.3365704417228699, 0.10813925415277481, -0.1433931291103363, -0.056293874979019165, -0.09564492106437683, -0.04063081368803978, -0.3002384901046753, -0.38443127274513245, 0.04820869490504265, -0.18805542588233948, 0.11391645669937134, 0.04213692247867584, 0.0909382551908493, 0.11649559438228607, -0.2879984974861145, -0.11917243897914886, 0.12674427032470703, 0.4215731620788574, -0.33113399147987366, 0.220910906791687, 0.2074856162071228, 0.040895603597164154, -0.12848132848739624, -0.09508053958415985, 0.1966291069984436, 0.010517454706132412, 0.3892309367656708, -0.23856616020202637, -0.045390620827674866, 0.43327048420906067, 0.08576720952987671, -0.06951301544904709, -0.00584443099796772, 0.008136622607707977, 0.1619238257408142, 0.1554267704486847, -0.20694279670715332, -0.10828907787799835, -0.20729751884937286, 0.015207506716251373, -0.16005076467990875, 0.15278282761573792, 0.18033874034881592, 0.18122181296348572, 0.13556089997291565, 0.060134224593639374, 0.19992083311080933, 0.08419647812843323, 0.2385476529598236, -0.018100224435329437, 0.040956247597932816, -0.1881004273891449, -0.12259627878665924, -0.08142070472240448, -0.5105940103530884, -0.06674090027809143, 0.39190441370010376, -0.035976655781269073, 0.10422845929861069, 0.3644503951072693, 0.2609385550022125, 0.045089706778526306, 0.4243874251842499, 0.20095965266227722, 0.3029172122478485, 0.273749977350235, -0.16683393716812134, -0.12214676290750504, -0.24034662544727325, -0.053033046424388885, 0.15583324432373047, 0.2600557208061218, -0.07535210996866226, 0.2811387777328491, -0.09132425487041473, 0.173060342669487, -0.0010683313012123108, -0.5670700073242188, -0.00495784729719162, 0.193350687623024, -0.41359275579452515, 0.11676108092069626, -0.3286731243133545, -0.45252344012260437, -0.36855241656303406, 0.014199301600456238, -0.10776205360889435, -0.28839215636253357, -0.008144229650497437, 0.10772179067134857, -0.17181754112243652, -0.08190196752548218, 0.02991596609354019, 0.16885577142238617, 0.03493165224790573, 0.25622525811195374, -0.0761333629488945, 0.10026314854621887, -0.11777229607105255, -0.13308385014533997, 0.3697408437728882, -0.1396034210920334, 0.005186114460229874, -0.009829331189393997, -0.23862604796886444, -0.3681986629962921, 0.08678485453128815, 0.019447002559900284, -0.026784824207425117, -0.11940738558769226, 0.2449994683265686, 0.39231500029563904, -0.12224206328392029, -0.584896981716156, 0.12954473495483398, 0.011956475675106049, 0.018837980926036835, 0.016407400369644165, 0.15677399933338165, 0.043900687247514725, -0.034585464745759964, -0.12335440516471863, -0.1896684765815735, -0.4294610619544983, 0.13023166358470917, -0.4879536032676697, 0.3233158588409424, 0.2519037127494812, 0.22060805559158325, 0.11078831553459167, -0.05915515124797821, 0.3506515920162201, 0.2963024079799652, -0.26895618438720703, 0.10747797787189484, -0.1403616964817047, -0.12888199090957642, 0.012332417070865631, 0.05996996909379959, -0.167121022939682, 0.15417203307151794, -0.4859212040901184, -0.27442222833633423, -0.07205959409475327, -0.08106901496648788, -0.17908163368701935, 0.04217713326215744, -0.0532374270260334, 0.042529720813035965, -0.13845427334308624, 0.15401281416416168, -0.05461447685956955, -0.08606193959712982, 0.08191991597414017, 0.551102340221405, -0.1832885444164276, 0.3804513216018677, 0.2542593777179718, 0.4371029734611511, 0.07995836436748505, 0.23485305905342102, 0.34830474853515625, 0.15146814286708832, 0.22430773079395294, 0.41641613841056824, -0.08178775757551193, 0.06724727153778076, -0.41606101393699646, -0.14379380643367767, 0.06334789842367172, -0.06927479058504105, 0.035493992269039154, 0.08474911749362946, -0.15078416466712952, -0.32049959897994995, -0.4465427100658417, 0.26432621479034424, -0.33874279260635376, 0.09583429247140884, -0.19782677292823792, -0.22514508664608002, 0.1519884169101715, 0.18213523924350739, 0.19942782819271088, 0.36297914385795593, 0.45808306336402893, -0.032093483954668045, 0.4049341678619385, -0.47842931747436523, -0.22039394080638885, 0.275881826877594, 0.12890440225601196, 0.41577255725860596, -0.22989380359649658, 0.22357085347175598, -0.13019952178001404, 0.01882139965891838, 0.8039573431015015, -0.2620459496974945, -0.3299179971218109, -0.015431158244609833, 0.06815458089113235, 0.13365016877651215, -0.15782807767391205, -0.1799953132867813, 0.44553178548812866, 0.2653977870941162, 0.3116166591644287, -0.41774940490722656, -0.2524327039718628, -0.05843264237046242, 0.4364771246910095, -0.018525250256061554, 0.04299111291766167, -0.09980333596467972, 0.010229319334030151, -0.2890791893005371, 0.23860618472099304, 0.29251572489738464, -0.013691652566194534, -0.016936492174863815, -0.20780235528945923, -0.007667543366551399, -0.047965578734874725, 0.43197983503341675, 0.10462173819541931, 0.12748302519321442, -0.32370442152023315, -0.08900447189807892, -0.05136389285326004, 0.4259844720363617, 0.8350527286529541, 0.25688278675079346, -0.44638097286224365, -0.4004334509372711, -0.0267007015645504, -0.11829213798046112, 0.6949507594108582, 0.5460373163223267, 0.0011483542621135712, 0.3498133718967438, -0.2061714231967926, 0.16298118233680725, -0.0017580203711986542, 0.2405010312795639, 0.44198518991470337, 0.2451387643814087, -0.5271654725074768, -0.2777048945426941, -0.014318987727165222, 0.2728559374809265, -0.1527777910232544, 0.24881960451602936, 0.2822422683238983, -0.34827640652656555, 0.4481821358203888, -0.21800479292869568, 0.9202815294265747, -0.10810009390115738, 0.1769842803478241, -0.23346635699272156, -0.23552832007408142, 0.45406508445739746, -0.41268491744995117, 0.24603791534900665, -0.34920209646224976, -0.4742130637168884, -0.11003243923187256, 0.0365058109164238, 0.3672526776790619, 0.3979194462299347, -0.09535648673772812, 0.4710981249809265, -0.07685740292072296, -0.05947067588567734, -0.13572975993156433, 0.49521103501319885, -0.0808083787560463, -0.20989173650741577, -0.4640026390552521, -0.034216202795505524, 0.057756178081035614, -0.1429523527622223, -0.07747560739517212, -0.2687585949897766, 0.15364950895309448, -0.32021892070770264, -0.5534127354621887, -0.27389538288116455, -0.12386664748191833, 0.05200587958097458, -0.10654720664024353, -0.289020299911499, 0.24391451478004456, 0.06017633154988289, 0.017092451453208923, 0.2996911406517029, 0.07487815618515015, 0.02500232681632042, -0.15568913519382477, 0.008695106953382492, -0.26617467403411865, -0.25341325998306274, 0.4243946373462677, 0.26382818818092346, -0.1476568877696991, 0.3652544319629669, -0.19351448118686676, -0.32347702980041504, 0.1794547140598297, 0.04007159173488617, 0.0007882276549935341, 0.1152523010969162, -0.038194864988327026, -0.23170989751815796, -0.2358817309141159, -0.2420247197151184, 0.08617550879716873, 0.2091706246137619, -0.18112358450889587, 0.37413489818573, -0.08255685865879059, -0.20047453045845032, -0.05258234590291977, -0.07871099561452866, -0.42789122462272644, -0.09174103289842606, 0.24468477070331573, -0.0592813603579998, -0.19561366736888885, -0.12462031841278076, 0.09444601833820343, 0.14893652498722076, -0.04569929838180542, 0.15690842270851135, -0.038928329944610596, 0.07424245774745941, 0.014025606215000153, -0.13127478957176208, 0.46645766496658325, 0.1307406723499298, -0.23548658192157745, -0.3894788920879364, -0.30471643805503845, -0.0004169270396232605, 0.031252309679985046, 0.38605403900146484, 0.07687927782535553, 0.16960196197032928, -0.02214217185974121, 0.21605800092220306, -0.20958402752876282, -0.18603865802288055, -0.15281474590301514, -0.05405336618423462, -0.19071707129478455, 0.2986855208873749, 0.05571870133280754, -0.046552255749702454, 0.07030832022428513, 0.25210344791412354, 0.36892008781433105, -0.04730335250496864, -0.033648718148469925, 0.15817716717720032, -0.029782157391309738, 0.19150081276893616, 0.20680589973926544, -0.25736820697784424, 0.25549548864364624, -0.2544526755809784, -0.006264440715312958, 0.2262757122516632, 0.0535784587264061, 0.11881792545318604, 0.0879487618803978, 0.023585425689816475, -0.18652650713920593, 0.008752686902880669, -0.115378737449646, 0.29382234811782837, 0.3038097023963928, 0.1885800063610077, -0.19784660637378693, -0.07137951254844666, 0.1604602336883545, 0.20744962990283966, -0.12342974543571472, -0.07355014234781265, 0.11112808436155319, 0.12114875018596649, -0.4866569936275482, 0.3509528338909149, 0.26371246576309204, 0.10894230753183365, -0.0653703585267067, 0.09641320258378983, 0.35620442032814026, 0.08542028814554214, -0.03531411290168762, -0.14071309566497803, 0.04877091944217682, -0.35521212220191956, -0.0006580948829650879, 0.26934951543807983, 0.26580333709716797, -0.18562614917755127, -0.1421915590763092, -0.09039455652236938, 0.3831520080566406, 0.1608847677707672, 0.01135227456688881, 0.3325921297073364, 0.048410192131996155, 0.015184200368821621, 0.16161131858825684, -0.08125489950180054, 0.42152974009513855, 0.394368052482605, -0.10595391690731049, -0.13367290794849396, 0.04228025674819946, -0.2566129267215729, -0.2990853190422058, -0.3335379958152771, 0.33337345719337463, 0.12329977750778198, -0.20083367824554443, -0.20570805668830872, 0.1558203548192978, 0.5819082260131836, -0.3255528509616852, -0.1698462963104248, 0.09324292838573456, 0.015196837484836578, -0.12968727946281433, 0.1355939358472824, 0.2539345622062683, 0.11881363391876221, -0.1187753900885582, -0.3039394021034241, 0.16714784502983093, -0.1479540914297104, 0.12355801463127136, -0.011367037892341614, 0.2726222574710846, -0.042906854301691055, -0.12989535927772522, 0.1385737657546997, 0.5868183374404907, -0.2482188642024994, -0.11099553108215332, 0.2599122226238251, -0.12284112721681595, 0.0991814061999321, -0.19525490701198578, 0.6805848479270935, 0.39618730545043945, 0.20241472125053406, -0.2139310985803604, -0.21393325924873352, 0.14381468296051025, 0.08802475035190582, -0.21176160871982574, -0.2278226912021637, -0.17335687577724457, 0.2931331992149353, 0.059640273451805115, -0.06008307263255119, 0.17216193675994873, 0.22668114304542542, 0.04937624931335449, -0.10900706052780151, -0.07340185344219208, 0.05932822823524475, -0.24056287109851837, -0.13252554833889008, -0.17903949320316315, -0.27290797233581543, -0.21470631659030914, 0.460315465927124, -0.28891927003860474, 0.18286123871803284, 0.19954681396484375, 0.06629995256662369, 0.1559034287929535, 0.05911213532090187, 0.44755247235298157, 0.22441042959690094, -0.41791415214538574, 0.08790388703346252, -0.8058602809906006, -0.19655460119247437, -0.13321319222450256, 0.035320788621902466, 0.10432504117488861, 0.07072752714157104, -0.11795946955680847, -0.10679027438163757, 0.34421980381011963, 0.031441498547792435, 0.17978498339653015, 0.28147512674331665, -0.44111454486846924, -0.18659232556819916, -0.2060503363609314, -0.041842982172966, -0.07269036769866943, -0.030798323452472687, 0.29070478677749634, 0.31992554664611816, 0.012296229600906372, -0.19264507293701172, 0.0879676416516304, -0.015740077942609787, 0.12236711382865906, 0.17414164543151855, 0.015471769496798515, 0.49010586738586426, -0.2843930721282959, -0.2433406412601471, 0.17567352950572968, 0.052633270621299744, -0.24112875759601593, 0.22133241593837738, 0.09033149480819702, 0.246890127658844, -0.09079703688621521, -0.31451529264450073, -0.29641851782798767, 0.35457277297973633, 0.16742321848869324, -0.157546728849411, -0.2645469903945923, 0.42590200901031494, 0.007689647376537323, -0.03806700557470322, -0.011122696101665497, -0.017595011740922928, 0.006038040854036808, 0.15183410048484802, -0.2819747030735016, -0.33542221784591675, 0.3631480932235718, 0.1472550928592682, -0.02156182751059532, -0.2779443860054016, 0.5018216371536255, -0.12645547091960907, 0.4052014946937561, -0.3974803686141968, -0.3426753878593445, 0.3026511073112488, 0.24519960582256317, -0.5436034202575684, -0.13637854158878326, 0.04925963655114174, 0.07480686902999878, -0.01605083793401718, 0.1413261741399765, 0.1578427106142044, -0.2588275372982025, 0.2586653232574463, -0.1373971402645111 ]
https://github.com/huggingface/datasets/issues/1818
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
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?
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.08766539394855499, -0.3096541166305542, -0.07478266209363937, 0.2496919482946396, 0.31518059968948364, 0.08913866430521011, 0.31492334604263306, 0.2885439693927765, -0.1467544436454773, 0.05681474506855011, -0.046975962817668915, 0.35534000396728516, 0.062465522438287735, -0.07246075570583344, -0.0074792467057704926, -0.35710352659225464, -0.14428120851516724, 0.08389352262020111, -0.047547414898872375, -0.1543698012828827, -0.25298768281936646, 0.02572534792125225, -0.18746858835220337, 0.2330837845802307, -0.2529924213886261, -0.20668888092041016, -0.08689699321985245, 0.11692912876605988, 0.025729041546583176, -0.48411962389945984, 0.11799386888742447, -0.3125515282154083, 0.05555202066898346, 0.5283834934234619, -0.00011544358858373016, 0.12221095710992813, 0.09451070427894592, 0.021576181054115295, -0.13214080035686493, -0.04985930770635605, -0.06749662011861801, -0.23689004778862, 0.24508418142795563, -0.3710688352584839, -0.10751596838235855, -0.3912546932697296, 0.007588960230350494, -0.20665797591209412, 0.570297122001648, 0.5039223432540894, 0.14577557146549225, 0.5681713819503784, 0.05152297019958496, 0.078559011220932, 0.26676440238952637, 0.17733728885650635, -0.20646792650222778, 0.28981977701187134, 0.2549915909767151, -0.40056610107421875, 0.040011245757341385, -0.08254630118608475, -0.001752115786075592, 0.07805216312408447, 0.09075337648391724, 0.12722349166870117, -0.13591451942920685, -0.3480367064476013, -0.16557395458221436, 0.35392382740974426, 0.31009817123413086, 0.07070337235927582, -0.2927103042602539, -0.227076917886734, -0.20156271755695343, -0.029326867312192917, 0.13472774624824524, 0.16665300726890564, -0.3210849165916443, 0.17754437029361725, -0.300603449344635, 0.05512087792158127, -0.45351722836494446, 0.5489294528961182, 0.08651230484247208, 0.5155923962593079, 0.08303873240947723, 0.30913081765174866, -0.04582281410694122, 0.013397851958870888, -0.008977917954325676, -0.08434447646141052, 0.01711554266512394, 0.1844492256641388, -0.19636718928813934, -0.15443864464759827, 0.11466332525014877, -0.4060583710670471, 0.16018955409526825, 0.067657470703125, 0.1546434760093689, -0.08788278698921204, -0.16994374990463257, 0.311652272939682, -0.002595106139779091, 0.1281774491071701, -0.057819630950689316, 0.331880658864975, 0.37099549174308777, 0.09120504558086395, -0.18298716843128204, 0.15579615533351898, 0.10856477916240692, -0.14456555247306824, 0.04197561740875244, -0.05999722704291344, 0.492986261844635, 0.05111020803451538, 0.08754824846982956, -0.015991335734725, -0.5868582725524902, -0.03328040987253189, 0.19560997188091278, 0.3493119776248932, -0.34224367141723633, 0.08275370299816132, 0.012364298105239868, -0.0544692762196064, -0.31630709767341614, 0.06910534203052521, -0.24259650707244873, 0.24825695157051086, 0.08045151084661484, -0.05912531912326813, 0.16601550579071045, 0.06363049149513245, 0.47911110520362854, -0.16734464466571808, -0.03491033986210823, -0.04158720746636391, 0.5842090845108032, -0.3233095407485962, 0.1414041519165039, 0.23451262712478638, -0.27180206775665283, 0.06876190751791, 0.2806975841522217, 0.10376138985157013, -0.10808008164167404, 0.02014664001762867, -0.24520298838615417, -0.4628191590309143, -0.04149545729160309, 0.2253667116165161, 0.04435087740421295, -0.1087397038936615, 0.009492270648479462, -0.16324162483215332, 0.4137928783893585, -0.3300025761127472, 0.052400413900613785, -0.21230220794677734, -0.21794608235359192, -0.16497817635536194, 0.22939404845237732, 0.3468136191368103, -0.25868362188339233, 0.07982537150382996, 0.2683030962944031, -0.0013030283153057098, 0.22669929265975952, 0.4093843698501587, -0.5121424794197083, 0.47438448667526245, -0.3170551657676697, 0.14155517518520355, 0.5460799932479858, -0.4671509265899658, -0.23845791816711426, 0.5044530034065247, -0.25109589099884033, -0.07115340232849121, 0.04356537014245987, 0.2766905128955841, 0.11966798454523087, 0.0741797611117363, 0.42460888624191284, 0.3509928584098816, -0.2929825782775879, 0.1134742870926857, -0.2766138017177582, -0.20692406594753265, 0.007274726405739784, 0.07853071391582489, 0.06227388605475426, 0.01142481341958046, 0.16178001463413239, 0.03380406275391579, 0.2731344699859619, -0.061928607523441315, 0.1070542186498642, 0.33530959486961365, 0.07649347931146622, -0.09136443585157394, 0.030290525406599045, -0.02159814164042473, -0.205333411693573, 0.22619999945163727, -0.03073986992239952, 0.24253997206687927, -0.26736700534820557, -0.020219970494508743, -0.3861396610736847, 0.06388650089502335, -0.30795007944107056, 0.08516516536474228, 0.061803266406059265, 0.27120712399482727, 0.17252349853515625, 0.15658752620220184, 0.042503610253334045, -0.027529995888471603, -0.2579175531864166, 0.10618157684803009, -0.37787678837776184, 0.2617047429084778, -0.059981971979141235, -0.037934958934783936, -0.09198188781738281, -0.12873025238513947, 0.1428045928478241, -0.26893237233161926, -0.277167409658432, 0.19434475898742676, 0.019040778279304504, 0.16451320052146912, 0.018344208598136902, 0.03859611600637436, 0.0624706894159317, -0.16642333567142487, 0.02123137377202511, 0.09464211016893387, 0.11480796337127686, -0.18700453639030457, -0.1732775866985321, 0.2998907268047333, 0.21567869186401367, 0.32944580912590027, 0.11822676658630371, -0.12584063410758972, 0.24935786426067352, 0.07178177684545517, -0.018965911120176315, -0.010247580707073212, 0.0795535147190094, 0.041208941489458084, 0.11366824805736542, -0.09222078323364258, -0.25745606422424316, 0.06026174873113632, 0.4460494816303253, -0.17017629742622375, 0.04501541703939438, 0.06969207525253296, 0.3061298131942749, -0.10950241982936859, 0.17633716762065887, 0.15495440363883972, 0.6341341733932495, 0.20858074724674225, 0.16215673089027405, 0.15114957094192505, -0.13489747047424316, -0.2292599380016327, 0.06441284716129303, -0.02668008953332901, 0.24730569124221802, 0.3175880014896393, 0.3057263195514679, 0.02431808039546013, -0.4263644814491272, -0.27759480476379395, 0.11619959771633148, 0.3775263726711273, -0.2742405831813812, 0.23515641689300537, -0.10331964492797852, -0.1564786583185196, -0.04775114357471466, 0.03942152112722397, -0.2301473617553711, -0.42150047421455383, 0.058336418122053146, 0.21585343778133392, -0.07317082583904266, 0.27568453550338745, -0.00930725783109665, 0.020146682858467102, 0.3500887453556061, -0.4383782744407654, -0.10649320483207703, -0.1761186420917511, -0.3641543984413147, 0.025293953716754913, 0.15249986946582794, -0.09636375308036804, 0.41775181889533997, -0.04992430657148361, -0.4756879210472107, -0.18726226687431335, -0.2943216860294342, 0.011948289349675179, -0.06520654261112213, 0.2479960173368454, 0.15092609822750092, 0.35157039761543274, -0.01744592934846878, -0.19181953370571136, 0.42213138937950134, -0.08986780047416687, -0.12389780580997467, -0.026795346289873123, 0.024070926010608673, 0.14929285645484924, -0.030747391283512115, -0.6379076242446899, -0.40483906865119934, -0.4066762328147888, 0.2181980162858963, 0.046619608998298645, 0.27751868963241577, 0.08495434373617172, 0.03581540286540985, 0.35972148180007935, 0.11121677607297897, 0.12764006853103638, -0.053861647844314575, -0.3271385431289673, 0.2574606239795685, -0.26531413197517395, -0.26336669921875, -0.014294564723968506, -0.11728806793689728, 0.08856616914272308, 0.05010063573718071, -0.5194665193557739, -0.445358008146286, -0.27872878313064575, 0.2407435178756714, -0.27769285440444946, -0.11705265194177628, 0.29610031843185425, -0.17033258080482483, -0.10821854323148727, -0.006474673748016357, -0.044476743787527084, 0.3415369391441345, 0.2659061849117279, 0.1737861931324005, 0.06144862622022629, 0.7596714496612549, -0.03324682638049126, 0.5413732528686523, 0.029680177569389343, 0.035277869552373886, 0.4892273545265198, -0.28296947479248047, -0.01747860573232174, -0.07797811180353165, -0.2684920132160187, 0.080182284116745, 0.1409262716770172, -0.2075183093547821, -0.09336581826210022, 0.16155613958835602, -0.12253094464540482, -0.24050945043563843, -0.23043271899223328, -0.28888338804244995, -0.23357385396957397, 0.009727181866765022, -0.14655093848705292, 0.2895326614379883, -0.02224709466099739, 0.06599269062280655, -0.14311710000038147, -0.0516236238181591, -0.14666830003261566, 0.0693066269159317, -0.016799256205558777, -0.1624402105808258, -0.681338906288147, -0.1749105155467987, -0.5136030912399292, 0.2706354856491089, 0.15675663948059082, 0.5439186692237854, -0.2641368806362152, -0.06843844801187515, 0.26119381189346313, -0.141559436917305, 0.8109995722770691, -0.24084344506263733, 0.10524104535579681, 0.02506931871175766, 0.1355769783258438, -0.34288546442985535, 0.005817808210849762, -0.0008368641138076782, 0.2688811421394348, 0.24819384515285492, 0.5743730664253235, -0.12800559401512146, -0.28656458854675293, 0.20697149634361267, 0.2740257680416107, -0.23582284152507782, -0.07624011486768723, -0.2177332639694214, -0.6896693706512451, -0.19684530794620514, 0.08326977491378784, -0.05471555516123772, 0.20279988646507263, 0.09243067353963852, -0.4169502854347229, 0.09523051977157593, 0.16640590131282806, -0.05235813558101654, 0.07994837313890457, -0.11084625124931335, 0.015889398753643036, 0.11482343077659607, -0.2471916675567627, 0.2845291197299957, 0.24503912031650543, 0.35222336649894714, -0.1490686982870102, -0.26303571462631226, 0.14364787936210632, 0.12382056564092636, 0.33185529708862305, 0.29476234316825867, -0.021246999502182007, 0.1408843994140625, 0.15999849140644073, 0.3401942849159241, -0.08283539116382599, 0.3873806893825531, 0.5323925018310547, -0.1223369687795639, -0.20315790176391602, -0.5039528608322144, 0.13323844969272614, -0.04718872159719467, -0.06368653476238251, 0.21920284628868103, -0.2862209379673004, -0.277203232049942, 0.37920844554901123, 0.13955414295196533, 0.9921343326568604, -0.01130622811615467, 0.25580769777297974, 0.6406011581420898, -0.06649698317050934, 0.6649609804153442, -0.26461684703826904, 0.25802749395370483, -0.3804025650024414, 0.04297581687569618, -0.10547623038291931, -0.2358800172805786, 0.028509529307484627, 0.09443704783916473, -0.16494795680046082, 0.14919567108154297, -0.11728370934724808, 0.19598537683486938, -0.14634239673614502, 0.5414190888404846, 0.07562819123268127, -0.05984791740775108, -0.5874491930007935, 0.10640959441661835, -0.026102837175130844, 0.09858386218547821, -0.026835447177290916, -0.10816867649555206, 0.020030394196510315, -0.37317460775375366, 0.157433420419693, 0.09438207745552063, -0.2812209725379944, 0.5121894478797913, -0.185930073261261, -0.07586899399757385, -0.015601426362991333, 0.30762606859207153, 0.03486613929271698, -0.000025063753128051758, -0.1064448356628418, 0.03628099709749222, -0.11306795477867126, 0.13087041676044464, -0.10063132643699646, -0.009530697017908096, 0.15473714470863342, -0.11632049083709717, -0.4218948185443878, 0.47187477350234985, -0.3494649827480316, -0.3757625222206116, -0.0709017664194107, 0.1223006546497345, -0.05952382832765579, -0.440990149974823, -0.10296247899532318, -0.14436525106430054, -0.2691299021244049, -0.20036685466766357, 0.0858176201581955, 0.019527383148670197, -0.3188181221485138, 0.32040175795555115, 0.017751023173332214, -0.31536176800727844, -0.02157437801361084, 0.4522782266139984, 0.11651380360126495, 0.22168444097042084, 0.7525091767311096, 0.1699734330177307, 0.02495867758989334, -0.3292614221572876, 0.461276113986969, -0.01803075149655342, -0.2892800271511078, 0.1046874076128006, 0.24820449948310852, 0.25183236598968506, 0.06370866298675537, 0.2772769331932068, 0.2292511910200119, 0.13892196118831635, 0.003696329891681671, -0.39163774251937866, -0.470388263463974, 0.16922543942928314, 0.07654447853565216, 0.2141619324684143, 0.23961518704891205, 0.24989137053489685, -0.18938761949539185, 0.20432370901107788, -0.2954697608947754, 0.05616215616464615, -0.5371047854423523, 0.18564799427986145, -0.03754283860325813, -0.11557091027498245, 0.37837064266204834, 0.06216641888022423, 0.14014524221420288, -0.021300749853253365, -0.3744773268699646, -0.16643716394901276, -0.050524160265922546, 0.1663370430469513, 0.07185038179159164, -0.18647374212741852, -0.4386376142501831, -0.5062548518180847, -0.018147984519600868, 0.09656578302383423, 0.053542450070381165, 0.018847331404685974, -0.08118037134408951, 0.017581786960363388, 0.014158550649881363, 0.12208893895149231, 0.08415950834751129, 0.04726794734597206, -0.1538114845752716, -0.015742864459753036, 0.23016875982284546, 0.07726152241230011, 0.1983971744775772, -0.18857812881469727, -0.06746074557304382, 0.019765915349125862, 0.0356261320412159, -0.17739537358283997, 0.29266899824142456, -0.28478705883026123, -0.27422797679901123, -0.07488144189119339, 0.22426068782806396, 0.39459145069122314, -0.1961330771446228, 0.028379589319229126, 0.19520439207553864, 0.20808649063110352, -0.18331977725028992, -0.29206109046936035, 0.4560915529727936, -0.20194527506828308, 0.1378970891237259, 0.11032263934612274, -0.21274229884147644, 0.08947019279003143, -0.2245318591594696, 0.20336729288101196, 0.23412296175956726, 0.022326041013002396, 0.03718796744942665, 0.3005514442920685, -0.29899847507476807, -0.08281221985816956, 0.14745646715164185, 0.12709501385688782, 0.3212958872318268, 0.0047758654691278934, -0.0055457428097724915, 0.043327897787094116, -0.3767879009246826, 0.3542628288269043, -0.08602550625801086, -0.4847980737686157, 0.05125271528959274, -0.16885995864868164, -0.29889029264450073, -0.1300307810306549, -0.023750878870487213, 0.48198384046554565, -0.23673959076404572, -0.18818017840385437, -0.19951507449150085, 0.3600149154663086, -0.10282432287931442, -0.19554190337657928, -0.22951582074165344, -0.28582027554512024, 0.1354684978723526, -0.1978505253791809, 0.1609135866165161, 0.01904505304992199, -0.06508709490299225, 0.08947278559207916, 0.038386985659599304, -0.20192472636699677, -0.02014569193124771, 0.06120367348194122, 0.06400670111179352, -0.3245762288570404, 0.19497360289096832, 0.24837011098861694, -0.060703836381435394, -0.4171530306339264, 0.010687289759516716, 0.3459569215774536, 0.42399683594703674, -0.021845370531082153, 0.3124998211860657, -0.09471084177494049, -0.1583963930606842, -0.005541112273931503, 0.11348319053649902, 0.23380835354328156, -0.03643757849931717, 0.35148701071739197, 0.09335281699895859, -0.14810220897197723, 0.29367807507514954, -0.02371964603662491, 0.15342921018600464, -0.2211737334728241, 0.5093348026275635, 0.012240877375006676, -0.29287606477737427, 0.0004255902022123337, 0.02110513672232628, -0.41690754890441895, 0.10075093060731888, 0.4297306537628174, -0.13441947102546692, 0.32207828760147095, -0.09887444972991943, 0.050060395151376724, -0.39507243037223816, 0.6884118914604187, 0.23328419029712677, 0.10674825310707092, -0.34255415201187134, 0.0008538961410522461, -0.34072449803352356, 0.028350431472063065, -0.4788583815097809, -0.024035636335611343, 0.07403437793254852, 0.10040059685707092, 0.0750100165605545, -0.046059899032115936, -0.12703317403793335, 0.003035321831703186, 0.021855756640434265, 0.11331182718276978, -0.28766173124313354, -0.2759696841239929, -0.004359867423772812, 0.23545292019844055, -0.018737521022558212, -0.4727282226085663, 0.21635453402996063, -0.2600305676460266, -0.030725546181201935, -0.2679130733013153, -0.04846247285604477, 0.20219287276268005, -0.05791554972529411, 0.43436840176582336, 0.34962931275367737, 0.42952772974967957, 0.07208868116140366, -0.06065124645829201, 0.04394756257534027, -0.4789814054965973, 0.045921508222818375, -0.004792332649230957, 0.15769237279891968, 0.5942355394363403, -0.1884741187095642, -0.018071584403514862, -0.3390835225582123, 0.17296256124973297, -0.12381942570209503, -0.3846409320831299, 0.32375937700271606, -0.05246181786060333, 0.026146337389945984, 0.06591495871543884, 0.10016454756259918, 0.1330549418926239, 0.08198663592338562, 0.029797673225402832, -0.2536601722240448, -0.21632108092308044, 0.72347092628479, -0.3179052472114563, -0.16672785580158234, -0.04373547062277794, 0.1857222318649292, 0.09779825806617737, 0.004967821761965752, -0.15862928330898285, -0.08039940893650055, 0.6721760034561157, 0.08620885014533997, -0.3109280467033386, 0.49042582511901855, 0.15787369012832642, 0.031034737825393677, 0.07256963849067688, -0.0335417203605175, -0.19044151902198792, -0.2747124135494232, -0.040226951241493225, -0.3100721836090088 ]
https://github.com/huggingface/datasets/issues/1817
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"] ) ```
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!
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.15500248968601227, -0.07036425173282623, -0.008634660392999649, 0.17082905769348145, 0.2552531659603119, 0.036447592079639435, 0.503602147102356, 0.5221668481826782, -0.5246614813804626, 0.010454531759023666, 0.3807770609855652, 0.23190657794475555, 0.07488162815570831, -0.17450794577598572, 0.12614017724990845, -0.28864800930023193, 0.014182224869728088, 0.24775856733322144, -0.013882078230381012, 0.19445446133613586, -0.06766729056835175, 0.3307291269302368, -0.32954198122024536, 0.27167001366615295, -0.3865053057670593, -0.09225190430879593, -0.14227241277694702, -0.1698894500732422, -0.1691986322402954, -0.5931814312934875, 0.08280917257070541, -0.22855816781520844, 0.04780536890029907, 0.2794107496738434, -0.00012362876441329718, -0.11682946979999542, 0.40770065784454346, -0.1066744476556778, 0.07015299797058105, -0.004473701119422913, 0.042280539870262146, -0.23613804578781128, 0.016513459384441376, -0.2340283840894699, 0.09126788377761841, -0.5475608706474304, -0.29207900166511536, 0.2607314884662628, 0.283521443605423, 0.35895466804504395, 0.12578487396240234, -0.04489469528198242, 0.17904017865657806, -0.041285980492830276, 0.5702492594718933, 0.053609609603881836, 0.005534037947654724, 0.1160501092672348, 0.14587756991386414, -0.20139409601688385, 0.05344143137335777, 0.21442976593971252, -0.2680257558822632, -0.1032516211271286, 0.05808591842651367, -0.003926694393157959, 0.05653175711631775, -0.20237252116203308, 0.21053391695022583, 0.158890962600708, 0.30374640226364136, -0.37804779410362244, -0.04834974557161331, -0.2628532350063324, 0.1766873598098755, -0.3986361622810364, -0.08855199068784714, -0.06064775586128235, -0.1943921595811844, 0.18830226361751556, -0.10215354710817337, 0.17451447248458862, -0.25740519165992737, 0.09383945912122726, 0.0956302136182785, 0.2773377001285553, 0.15872618556022644, 0.2896914482116699, -0.0706556886434555, -0.1704554557800293, 0.036509741097688675, 0.13478600978851318, -0.22401577234268188, 0.2108975648880005, -0.23298907279968262, -0.035356201231479645, -0.12983733415603638, -0.22154980897903442, 0.42445045709609985, -0.1432875245809555, 0.2827804982662201, -0.1606893539428711, 0.7112699747085571, -0.11864614486694336, -0.08554714918136597, 0.4598974883556366, 0.2372586727142334, 0.20678263902664185, -0.12706269323825836, -0.38636404275894165, 0.29139819741249084, 0.14709290862083435, -0.2602185010910034, -0.6117146611213684, 0.2757362723350525, 0.16794931888580322, 0.06177954375743866, 0.18029749393463135, -0.1971886307001114, 0.4800279140472412, -0.4964815378189087, -0.025122221559286118, -0.15307636559009552, 0.055349837988615036, 0.07967455685138702, 0.06377266347408295, -0.002288542687892914, 0.073752760887146, 0.06430427730083466, -0.2553144693374634, -0.102769635617733, 0.21397598087787628, -0.39104264974594116, 0.060149289667606354, 0.10804904997348785, 0.0560680627822876, 0.30172020196914673, 0.062357936054468155, 0.0746019259095192, 0.06350325793027878, -0.010166436433792114, -0.07176165282726288, 0.2443726509809494, 0.2771904170513153, -0.11861322820186615, 0.18284979462623596, 0.20385386049747467, -0.14459437131881714, -0.301787406206131, 0.29600319266319275, -0.327039897441864, -0.3279034495353699, -0.10855674743652344, 0.06317923218011856, 0.10623541474342346, 0.10535772144794464, -0.21858516335487366, 0.15095119178295135, 0.6920494437217712, -0.0988645851612091, 0.18233290314674377, -0.42581355571746826, 0.198024719953537, -0.31236034631729126, 0.1485883891582489, 0.1613924205303192, -0.5673120617866516, 0.12170487642288208, 0.3949623703956604, 0.37337741255760193, 0.33287549018859863, 0.38136205077171326, -0.08317968249320984, 0.503974199295044, -0.09069918841123581, 0.7552222013473511, 0.3342808485031128, -0.08883864432573318, -0.21657656133174896, 0.3936944901943207, -0.06433066725730896, -0.2323003113269806, 0.029561722651124, -0.23195868730545044, 0.21288298070430756, -0.00967758521437645, 0.15474799275398254, -0.10163933783769608, -0.10747255384922028, -0.002956375479698181, -0.28879812359809875, -0.13460376858711243, 0.10846579074859619, -0.06870780140161514, -0.10767444968223572, -0.2563623785972595, -0.26088395714759827, -0.4103669226169586, 0.11535453796386719, -0.16352830827236176, 0.3597877621650696, 0.3475106954574585, 0.01962907426059246, 0.026715347543358803, 0.32917821407318115, 0.09509410709142685, -0.17817027866840363, -0.02359030395746231, 0.04429149627685547, -0.03495902195572853, -0.22016607224941254, -0.3523423969745636, -0.2672821581363678, 0.19900187849998474, 0.03817811608314514, 0.1776503026485443, 0.009346619248390198, -0.22651202976703644, 0.18354922533035278, -0.16336190700531006, -0.03364957869052887, -0.2718362808227539, 0.05084291100502014, 0.09642186015844345, -0.18220995366573334, -0.12170242518186569, -0.17315873503684998, -0.4061907231807709, 0.09974949806928635, -0.0075104720890522, 0.2952216565608978, -0.053782932460308075, 0.01435469463467598, 0.31272637844085693, 0.13114239275455475, -0.3347697854042053, -0.39543116092681885, 0.20271660387516022, -0.08284159004688263, -0.19415318965911865, -0.19109749794006348, -0.10592591762542725, -0.030231989920139313, -0.08676452189683914, 0.11341725289821625, 0.31142476201057434, 0.0878983587026596, 0.3004992604255676, -0.20775625109672546, -0.031966276466846466, 0.06307540088891983, 0.06867686659097672, -0.23480093479156494, 0.010070189833641052, 0.07786354422569275, -0.04759645089507103, 0.13263742625713348, 0.002354651689529419, -0.3153676390647888, 0.17286178469657898, 0.17700517177581787, 0.015508562326431274, -0.06378613412380219, 0.198692187666893, -0.08011652529239655, -0.014726366847753525, 0.11548662185668945, -0.19700926542282104, 0.10119027644395828, 0.16590401530265808, -0.024778082966804504, -0.05473555624485016, -0.20633812248706818, -0.19612514972686768, 0.22627604007720947, 0.07361007481813431, 0.20353451371192932, 0.5516644716262817, 0.05265579745173454, 0.1273687481880188, 0.05016893893480301, -0.09347464889287949, 0.2298327535390854, 0.3550691604614258, -0.362188458442688, 0.19337987899780273, -0.25266045331954956, 0.019631467759609222, -0.005975503474473953, -0.6114000082015991, 0.17197847366333008, -0.030618656426668167, 0.045791007578372955, -0.12918297946453094, -0.16222232580184937, 0.38534507155418396, 0.18198764324188232, 0.18498295545578003, 0.5495920777320862, -0.1675557792186737, -0.1204284280538559, -0.23683393001556396, -0.18436197936534882, -0.0954640805721283, 0.21327590942382812, -0.15062953531742096, -0.021239660680294037, 0.10779527574777603, -0.11745637655258179, -0.22424885630607605, -0.5022532939910889, 0.31190600991249084, -0.3466985821723938, -0.11216411739587784, 0.4024563133716583, 0.12236733734607697, -0.26336511969566345, -0.22805380821228027, 0.05544241890311241, 0.22995485365390778, -0.27980759739875793, 0.3484916090965271, -0.08963628113269806, -0.2746523916721344, -0.15062205493450165, -0.16973622143268585, 0.1745993047952652, -0.19145438075065613, 0.17723368108272552, -0.1534639298915863, 0.1468401849269867, 0.06374935805797577, 0.46530717611312866, 0.03690589591860771, -0.006935719400644302, 0.04242860525846481, 0.05745479464530945, 0.21053172647953033, 0.434368759393692, -0.27662956714630127, -0.25733837485313416, 0.08655894547700882, -0.17284052073955536, 0.3282192051410675, 0.2733301520347595, -0.36438506841659546, 0.16171014308929443, -0.06859344989061356, 0.09364133328199387, -0.35788694024086, 0.05903303623199463, 0.46051716804504395, 0.1466497778892517, 0.0051058754324913025, -0.11419662088155746, 0.03463297337293625, 0.3736734390258789, -0.27014946937561035, 0.05511266738176346, 0.055253416299819946, 0.6357031464576721, -0.0250454843044281, 0.7274157404899597, 0.2814566195011139, -0.11978274583816528, 0.10136110335588455, -0.24909067153930664, -0.12020954489707947, -0.23989681899547577, 0.1625429391860962, -0.23184891045093536, -0.09498415887355804, 0.036953166127204895, 0.36881089210510254, -0.2972481846809387, -0.3330017626285553, 0.22101491689682007, 0.19252271950244904, -0.21420693397521973, -0.07208166271448135, 0.31969138979911804, 0.036059558391571045, 0.3239010274410248, -0.041919417679309845, 0.07907899469137192, -0.19290325045585632, -0.033354997634887695, 0.049535270780324936, -0.3764073848724365, 0.03256973624229431, 0.0649055689573288, -0.23177362978458405, -0.4118337631225586, -0.622668981552124, 0.36847952008247375, 0.30646470189094543, 0.46939751505851746, 0.10163989663124084, -0.3109787702560425, -0.0006429553031921387, -0.27705302834510803, 0.5176244974136353, -0.14390969276428223, -0.3334733545780182, 0.36439770460128784, 0.12546733021736145, -0.42009657621383667, -0.3367703855037689, -0.052721548825502396, 0.14556732773780823, 0.37678438425064087, 0.136275976896286, -0.5397257208824158, -0.031867727637290955, 0.3549749255180359, -0.02612064965069294, -0.012667372822761536, -0.14694397151470184, -0.2477855384349823, -0.3502267599105835, -0.20203393697738647, -0.016632065176963806, 0.6145428419113159, 0.39961227774620056, -0.012564074248075485, -0.004970736801624298, -0.05476671829819679, -0.2995447516441345, 0.09771391749382019, 0.009557373821735382, 0.3902047574520111, 0.0011866800487041473, 0.22085794806480408, -0.22350050508975983, 0.3756488263607025, 0.38192591071128845, 0.11470927298069, 0.15078695118427277, -0.23865926265716553, 0.24952761828899384, -0.2736164927482605, 0.4812789559364319, 0.2760547995567322, -0.22334256768226624, 0.2875675559043884, -0.44452163577079773, 0.27942830324172974, -0.07923947274684906, 0.1409677416086197, 0.39659199118614197, -0.1731869876384735, -0.3562678098678589, -0.13050240278244019, 0.2430723011493683, 0.0210249125957489, -0.026337571442127228, 0.45672327280044556, 0.06739532202482224, -0.37015995383262634, 0.3138677477836609, 0.26219525933265686, 1.1447813510894775, 0.31669503450393677, 0.24962100386619568, 0.37336406111717224, 0.08351313322782516, 0.006209235638380051, 0.07697054743766785, 0.1055411547422409, -0.5544156432151794, -0.005171032622456551, 0.009370990097522736, -0.16759222745895386, -0.013809703290462494, 0.20139777660369873, -0.33294135332107544, -0.12819728255271912, -0.3151688873767853, 0.17098331451416016, -0.13209474086761475, 0.14282244443893433, -0.005934493616223335, -0.08728046715259552, 0.2379438579082489, -0.02084694616496563, -0.013102397322654724, -0.3700394630432129, -0.16520938277244568, -0.06918284296989441, -0.3673367500305176, -0.3569473624229431, -0.4112289249897003, -0.07522556185722351, -0.22506007552146912, 0.03915158286690712, 0.11218860745429993, -0.2581789493560791, 0.17978958785533905, 0.026250796392560005, 0.20695309340953827, 0.16528260707855225, -0.19846244156360626, 0.008550617843866348, 0.04433024302124977, -0.2909439206123352, -0.15844130516052246, -0.14099475741386414, 0.12209349870681763, -0.01719971001148224, 0.05257624387741089, 0.18505822122097015, 0.042504288256168365, 0.06949755549430847, -0.30313554406166077, -0.162769615650177, 0.2704518139362335, -0.49078258872032166, -0.09217585623264313, 0.030488524585962296, 0.002967923879623413, -0.15656360983848572, -0.006744475103914738, 0.04925365000963211, -0.2209218144416809, 0.2321985960006714, -0.15297019481658936, -0.25710368156433105, 0.060137975960969925, 0.07232607901096344, 0.002334313467144966, -0.03118855506181717, 0.607306718826294, 0.31597083806991577, -0.15894770622253418, -0.10699211061000824, 0.16370879113674164, 0.5035053491592407, -0.660677969455719, 0.07491801679134369, -0.18850912153720856, 0.05945853888988495, 0.05098605155944824, 0.5169561505317688, 0.27171790599823, 0.3059379756450653, 0.12162274122238159, -0.07537849247455597, -0.29982730746269226, 0.20282691717147827, 0.2588070333003998, 0.3612178564071655, -0.2054404616355896, 0.09837406128644943, -0.16207988560199738, 0.11595068126916885, -0.18939848244190216, -0.0878787562251091, -0.05775117874145508, 0.18769553303718567, -0.10303559899330139, -0.018280619755387306, -0.2642346918582916, 0.051464229822158813, -0.0315391980111599, 0.3885490596294403, -0.010244375094771385, -0.10277919471263885, -0.23010624945163727, 0.15278956294059753, 0.06817753612995148, -0.05340906232595444, 0.27421876788139343, -0.14489546418190002, -0.2985359728336334, -0.14501379430294037, 0.013672463595867157, -0.05358169600367546, -0.021078694611787796, -0.024211060255765915, 0.4298158884048462, 0.06469067186117172, -0.08738460391759872, 0.027694441378116608, 0.002244161441922188, 0.14534765481948853, 0.11469218134880066, 0.2281082272529602, 0.09583738446235657, 0.026214271783828735, 0.13615307211875916, 0.3351013660430908, 0.05278424918651581, -0.35522934794425964, 0.13390138745307922, -0.4393783509731293, -0.1296577751636505, -0.05780782550573349, 0.24754181504249573, 0.3009122610092163, -0.3606336712837219, -0.13288021087646484, 0.45031577348709106, 0.15354754030704498, -0.2865346670150757, -0.1164165809750557, -0.18298640847206116, 0.06416592001914978, -0.1379847377538681, 0.20083925127983093, 0.10944774001836777, -0.06060650944709778, -0.22025498747825623, 0.17374366521835327, 0.3542887270450592, 0.12318747490644455, -0.39585885405540466, 0.31942182779312134, -0.18592071533203125, 0.12398733198642731, 0.31632721424102783, 0.2035692036151886, 0.26219886541366577, 0.02975662238895893, -0.11876843869686127, 0.24514785408973694, 0.2678401470184326, 0.09121359884738922, -0.23933446407318115, -0.203165203332901, -0.07244397699832916, 0.2762995958328247, 0.08838208764791489, 0.002818484790623188, 0.17907540500164032, 0.3353700637817383, 0.4524991512298584, -0.22892464697360992, 0.027890324592590332, 0.359019935131073, -0.19493868947029114, -0.06601496040821075, -0.7122879028320312, 0.08242876827716827, -0.21800410747528076, -0.17494872212409973, -0.10234598815441132, 0.07373085618019104, 0.4343532621860504, 0.09640053659677505, -0.09047450125217438, -0.19873857498168945, 0.07072805613279343, -0.006839258596301079, 0.09450677037239075, -0.32315343618392944, 0.4119291305541992, 0.1004951000213623, -0.2849642038345337, -0.11378177255392075, 0.32789134979248047, 0.6728410124778748, 0.4071212410926819, -0.1261105090379715, -0.3004501760005951, -0.28806644678115845, 0.10282044857740402, 0.1032605767250061, 0.3540622293949127, 0.33592185378074646, 0.1313994824886322, 0.2158365249633789, -0.09179364144802094, -0.0349794365465641, -0.09275177121162415, 0.3317198157310486, -0.0684671401977539, 0.24881990253925323, -0.05473353713750839, -0.15731662511825562, -0.41110196709632874, -0.0005268054082989693, 0.20151059329509735, -0.5054792165756226, 0.22050994634628296, 0.5505582094192505, 0.18040814995765686, 0.15158933401107788, -0.09970292448997498, 0.03228022903203964, -0.0781509205698967, 0.4440884292125702, 0.3804037272930145, 0.10107222199440002, -0.3919534385204315, -0.3986082077026367, -0.24106977880001068, 0.13712988793849945, -0.43732452392578125, -0.13120025396347046, 0.26528221368789673, 0.16910476982593536, 0.24063590168952942, 0.01958012580871582, 0.11670427769422531, 0.16670900583267212, -0.3454827666282654, 0.582003116607666, -0.27659401297569275, 0.21085748076438904, 0.1482132077217102, 0.08658056706190109, 0.027279675006866455, -0.19826969504356384, 0.42662614583969116, -0.015099987387657166, -0.010772734880447388, -0.36559396982192993, 0.02691412717103958, 0.17973896861076355, 0.21648143231868744, 0.2508494555950165, 0.07890123128890991, 0.2836628556251526, -0.011375553905963898, 0.1057761162519455, -0.30026647448539734, -0.15188471972942352, -0.177440345287323, 0.30010464787483215, 0.09607413411140442, 0.03666052222251892, -0.18523302674293518, -0.2117047905921936, 0.034273792058229446, -0.11691835522651672, -0.07807724177837372, -0.06073380261659622, -0.34190332889556885, 0.13006752729415894, -0.20002588629722595, 0.18688860535621643, -0.03549553453922272, 0.11377894878387451, 0.10589636117219925, 0.20668384432792664, -0.32722949981689453, -0.6539340019226074, 0.7069846987724304, -0.48533135652542114, -0.497139573097229, -0.023249855265021324, -0.006309010088443756, 0.3170478045940399, 0.11487729847431183, -0.13928788900375366, -0.17479029297828674, 0.27450138330459595, 0.11197087168693542, -0.5378227233886719, 0.3033052980899811, -0.0773032009601593, 0.045005522668361664, -0.17533773183822632, 0.23361092805862427, 0.08318252861499786, -0.22448396682739258, -0.4705747067928314, -0.6530275344848633 ]
https://github.com/huggingface/datasets/issues/1811
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 :)
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
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.021659351885318756, -0.2712218165397644, 0.018145859241485596, 0.1329573392868042, 0.37121713161468506, 0.31665003299713135, 0.6164795160293579, -0.4762446880340576, 0.19942548871040344, 0.2660483121871948, -0.21772588789463043, 0.1535528302192688, -0.2759884297847748, 0.3479330539703369, 0.10803243517875671, -0.12047627568244934, 0.17809626460075378, -0.21740120649337769, 0.02560100145637989, -0.03326740860939026, -0.22154130041599274, 0.007429657503962517, -0.23462557792663574, -0.2840360999107361, -0.6864250898361206, -0.2522577941417694, -0.3487628698348999, -0.16003713011741638, -0.2611854374408722, -0.6842921376228333, 0.17423465847969055, 0.3276166319847107, -0.17997977137565613, 0.4868170917034149, -0.00011896974319824949, 0.0539395809173584, 0.006015059072524309, -0.02701384946703911, -0.13157574832439423, -0.08840851485729218, 0.03389526903629303, -0.09976547956466675, -0.02308107726275921, -0.1876842975616455, -0.020591087639331818, -0.3216594159603119, -0.047854483127593994, -0.26782935857772827, 0.26227903366088867, 0.17089800536632538, 0.1447005569934845, -0.12118266522884369, 0.3119577467441559, -0.1777845323085785, -0.034004319459199905, 0.20135089755058289, -0.12939773499965668, 0.15727460384368896, 0.13255606591701508, -0.1618610918521881, 0.48101070523262024, 0.2527093291282654, -0.004529908299446106, -0.18835029006004333, 0.412849485874176, -0.040781229734420776, -0.14796847105026245, -0.5755074620246887, 0.1524926722049713, 0.30970701575279236, 0.6528838872909546, -0.037697188556194305, -0.6485277414321899, -0.14410211145877838, 0.3986092209815979, -0.16047388315200806, -0.14034275710582733, 0.010431893169879913, -0.003859780728816986, -0.23750069737434387, -0.3692447245121002, -0.04988132417201996, -0.2118251472711563, 0.27643609046936035, 0.33317089080810547, 0.35761478543281555, 0.052268508821725845, 0.35098788142204285, 0.27029722929000854, -0.05738396942615509, -0.025262560695409775, -0.10565510392189026, 0.04515513777732849, 0.2221505045890808, -0.2898244261741638, 0.17264717817306519, -0.0475979745388031, 0.13915175199508667, 0.14510317146778107, -0.10272146016359329, 0.0525573194026947, -0.32326778769493103, -0.21171917021274567, 0.11969348788261414, 0.10273295640945435, -0.019669484347105026, -0.002272792160511017, 0.4025927186012268, -0.03666432574391365, -0.027458494529128075, 0.11020973324775696, -0.23520302772521973, -0.06834416091442108, -0.12961049377918243, 0.3619586229324341, 0.18700268864631653, -0.1424219161272049, 0.11664649844169617, 0.046224288642406464, -0.15703243017196655, -0.06115318834781647, -0.032275665551424026, 0.35671934485435486, 0.30968940258026123, 0.23467789590358734, 0.013894829899072647, 0.10588473081588745, 0.4291902184486389, 0.10788162052631378, 0.05489731207489967, -0.14953789114952087, 0.354349821805954, -0.14015693962574005, 0.02180037647485733, 0.2909841537475586, 0.001412825658917427, 0.1271664798259735, 0.3206977844238281, 0.2556932866573334, -0.1487237960100174, 0.04745350033044815, -0.22020015120506287, 0.19376131892204285, 0.356991171836853, -0.02558562159538269, 0.214591383934021, -0.04567829146981239, -0.3797813951969147, -0.11004045605659485, 0.045266278088092804, -0.3311830759048462, -0.02578026056289673, -0.05222553759813309, 0.06997715681791306, 0.19530832767486572, -0.09171955287456512, -0.47711658477783203, 0.20146815478801727, 0.12351572513580322, 0.03392074257135391, -0.07022537291049957, -0.20455607771873474, -0.2669658064842224, -0.2525109648704529, 0.2751823663711548, 0.40117284655570984, -0.25755470991134644, -0.20916640758514404, -0.11507066339254379, 0.16939035058021545, -0.2034938633441925, 0.21283665299415588, -0.2620733082294464, 0.44873788952827454, -0.09403069317340851, 0.06289300322532654, 0.04267448931932449, -0.8922805786132812, -0.06668316572904587, -0.01475762203335762, 0.08666021376848221, -0.12850342690944672, 0.16140687465667725, 0.3256179094314575, 0.1087987944483757, 0.02897936850786209, 0.14260272681713104, 0.11376029998064041, -0.1924501657485962, -0.048209451138973236, 0.17883750796318054, 0.15658637881278992, -0.1048271507024765, 0.30700188875198364, 0.21028423309326172, -0.21032510697841644, 0.15642189979553223, -0.15666604042053223, -0.016031712293624878, -0.1635686457157135, 0.12073873728513718, 0.3795166015625, 0.20923751592636108, -0.049986932426691055, 0.03132329136133194, 0.038003742694854736, -0.43501946330070496, 0.43391579389572144, 0.29557955265045166, 0.3049955666065216, -0.1049286350607872, -0.17570528388023376, -0.01160966232419014, 0.06134917587041855, -0.48529016971588135, -0.11461763828992844, 0.06567404419183731, 0.2741548418998718, -0.09148105978965759, -0.05996118485927582, 0.02059580385684967, 0.13930071890354156, 0.4397171437740326, 0.16319391131401062, 0.0898364782333374, 0.03510994464159012, -0.12541352212429047, 0.03179708123207092, -0.09822768718004227, 0.01795107126235962, 0.4089217483997345, -0.06327378749847412, 0.0348854698240757, 0.4561131000518799, 0.18558011949062347, -0.3028663992881775, -0.15818503499031067, 0.06319393217563629, 0.4092924892902374, -0.27605390548706055, -0.29409414529800415, -0.20073994994163513, 0.23204241693019867, -0.34117281436920166, -0.15501423180103302, 0.07752656936645508, -0.3345644772052765, 0.2867107093334198, -0.006310977041721344, 0.1957472860813141, 0.13473176956176758, 0.10282231122255325, -0.11359097808599472, -0.20674923062324524, 0.03791912645101547, -0.1822335124015808, -0.02283547818660736, -0.23546521365642548, 0.041387543082237244, 0.06557133793830872, 0.025815393775701523, 0.0400971844792366, -0.06107025966048241, -0.053584691137075424, 0.02865634672343731, 0.24310702085494995, 0.15603086352348328, 0.5032748579978943, 0.28921520709991455, 0.26657992601394653, -0.16509190201759338, -0.20136283338069916, -0.2896961569786072, 0.05789398401975632, 0.10029488801956177, -0.08127140998840332, 0.18571864068508148, 0.198581263422966, 0.18826797604560852, 0.03348071873188019, -0.22378291189670563, -0.4800539016723633, 0.36849457025527954, 0.13112442195415497, -0.291178822517395, 0.01369977742433548, -0.30546122789382935, -0.20973104238510132, -0.04781842231750488, -0.2719690799713135, -0.03293955698609352, -0.2731933295726776, 0.10028473287820816, 0.23038284480571747, 0.11108873784542084, 0.21874015033245087, 0.05057302117347717, 0.2245626151561737, -0.25333917140960693, 0.07365339249372482, -0.02900417149066925, -0.10451284050941467, -0.0029994393698871136, -0.026557335630059242, 0.3638055622577667, -0.3310752511024475, 0.5024328827857971, 0.08928532153367996, -0.14291128516197205, -0.20491644740104675, -0.43616873025894165, 0.027746492996811867, -0.17077139019966125, 0.2560727298259735, 0.07926906645298004, -0.0453789122402668, -0.12055346369743347, -0.25282835960388184, 0.32315513491630554, 0.14333033561706543, -0.06718286871910095, -0.02225995436310768, -0.20926526188850403, -0.31817683577537537, -0.3291820287704468, -0.001901436597108841, -0.2415914535522461, -0.031334858387708664, 0.17833960056304932, 0.003908991813659668, -0.06209786981344223, 0.6229841709136963, 0.14219778776168823, -0.32693585753440857, 0.11143839359283447, 0.10879180580377579, -0.020463252440094948, -0.3791361451148987, 0.23079249262809753, -0.3280830681324005, -0.24581606686115265, 0.11127553880214691, -0.2078544944524765, 0.4561769962310791, -0.023629838600754738, -0.07424129545688629, -0.051670052111148834, 0.060044147074222565, 0.02504337579011917, -0.024221276864409447, 0.22140401601791382, 0.12332730740308762, 0.12238182127475739, 0.0012233592569828033, -0.2397068589925766, -0.43327173590660095, 0.3612811267375946, -0.2303786426782608, 0.23025211691856384, -0.3453044295310974, 0.2405831664800644, 0.0744776725769043, 0.24530360102653503, 0.008090399205684662, 0.041551314294338226, 0.43801403045654297, -0.2188452035188675, 0.38248780369758606, -0.19673559069633484, -0.5095449090003967, 0.2663564383983612, 0.006804302334785461, 0.07467492669820786, -0.05643102899193764, 0.0025119148194789886, -0.15345603227615356, -0.1369742751121521, 0.45966070890426636, -0.29824891686439514, -0.07141511887311935, -0.13954377174377441, -0.06140081211924553, 0.1793227344751358, -0.1286800652742386, -0.23860053718090057, -0.4252118468284607, -0.0979250818490982, -0.31684303283691406, 0.08370554447174072, 0.030057227239012718, -0.08361320197582245, -0.5794289112091064, -0.2799661159515381, -0.20954006910324097, 0.09627488255500793, 0.20156045258045197, 0.1998215913772583, -0.250143826007843, 0.30737340450286865, 0.04232455790042877, 0.07501121610403061, 0.6299780607223511, -0.5078379511833191, -0.20720894634723663, 0.40640243887901306, 0.08233516663312912, -0.44201475381851196, -0.3596886992454529, -0.0637630745768547, 0.2939630448818207, 0.05987950786948204, 0.3375256061553955, -0.3172758221626282, 0.17529742419719696, 0.14427751302719116, 0.029072880744934082, -0.11574714630842209, -0.26024991273880005, -0.16506999731063843, -0.3463681936264038, -0.25429317355155945, 0.038758307695388794, 0.2610558271408081, 0.22202497720718384, 0.07561084628105164, 0.055787503719329834, 0.04519950598478317, 0.047186896204948425, 0.10670962929725647, -0.0073394775390625, 0.08915962278842926, 0.5999582409858704, 0.35219109058380127, 0.04424943029880524, -0.22389429807662964, 0.5654516220092773, 0.4997175633907318, -0.34988999366760254, -0.27769193053245544, -0.06960766762495041, -0.24923557043075562, 0.24174894392490387, -0.07404205203056335, 0.24509017169475555, 0.207423135638237, 0.2566077709197998, 0.03266419097781181, 0.016942866146564484, 0.1901455521583557, 0.5320222973823547, -0.03386431187391281, -0.5876461863517761, -0.3630560338497162, 0.18822401762008667, 0.08403719961643219, -0.09250730276107788, 0.3905678689479828, 0.03558913990855217, -0.3100588023662567, 0.20690235495567322, 0.15201634168624878, 0.7129697203636169, -0.5040871500968933, 0.20063814520835876, -0.12810644507408142, -0.05140715092420578, 0.6691423654556274, 0.025914855301380157, 0.10605491697788239, -0.16509149968624115, -0.24148482084274292, 0.10752055048942566, 0.06314416974782944, 0.053046029061079025, 0.3399398922920227, -0.14769235253334045, 0.10400806367397308, -0.1996169090270996, 0.14421409368515015, -0.22863879799842834, 0.094278484582901, 0.24139097332954407, -0.3566119968891144, 0.315528005361557, 0.11481234431266785, -0.03792544826865196, -0.22128260135650635, 0.014740344136953354, -0.01314564235508442, -0.04855415225028992, -0.2762643098831177, -0.45603471994400024, -0.1082490086555481, -0.32643526792526245, 0.3514830768108368, -0.05456650257110596, -0.08294712752103806, 0.09229113161563873, 0.3642334043979645, 0.6377286314964294, -0.08701801300048828, -0.012160292826592922, 0.1931256353855133, -0.007270939648151398, -0.18534106016159058, -0.4156341552734375, -0.25839436054229736, 0.15830542147159576, -0.09677444398403168, -0.34915444254875183, 0.0630330964922905, 0.0483211874961853, -0.2924520671367645, -0.17371752858161926, 0.111241415143013, -0.13384488224983215, 0.08430713415145874, 0.01945260539650917, 0.26588818430900574, 0.22531501948833466, -0.31937748193740845, 0.030435558408498764, 0.05226844176650047, -0.09751630574464798, 0.3346412479877472, -0.15794473886489868, 0.02924339473247528, -0.0027380241081118584, 0.3327621519565582, 0.02855128049850464, 0.22656330466270447, 0.41726309061050415, -0.01953839510679245, 0.04415026307106018, -0.07076342403888702, -0.07859756052494049, 0.28072303533554077, -0.3569044768810272, -0.021592024713754654, 0.45095112919807434, 0.06820926070213318, -0.008282262831926346, 0.40703779458999634, 0.0060865432024002075, 0.10329742729663849, 0.0879296362400055, -0.1227889284491539, -0.414031982421875, 0.05718006193637848, -0.4007033407688141, 0.27875620126724243, -0.040793534368276596, 0.44720420241355896, 0.17551115155220032, 0.41073426604270935, -0.20101779699325562, -0.060904018580913544, -0.2943558692932129, -0.004119149409234524, 0.4779885411262512, 0.055954769253730774, -0.13621267676353455, 0.08659324049949646, 0.10840275138616562, -0.18534599244594574, 0.17125312983989716, -0.031115051358938217, -0.1749439537525177, 0.12467294931411743, 0.25140705704689026, 0.17497852444648743, 0.013920687139034271, -0.4309506416320801, -0.1583898961544037, -0.11432009935379028, 0.2133871614933014, 0.26294732093811035, -0.09498719871044159, 0.31221356987953186, -0.49647632241249084, 0.003802310675382614, 0.023873426020145416, 0.14402861893177032, 0.04208506643772125, -0.06075948104262352, 0.3293672204017639, 0.07902494817972183, 0.12721140682697296, -0.1499330848455429, -0.3488268256187439, 0.04825381189584732, -0.4432694911956787, -0.12889963388442993, 0.0841795802116394, -0.3632188141345978, 0.44646361470222473, 0.2567119598388672, 0.23998981714248657, -0.12176261842250824, -0.2593410015106201, 0.4296591877937317, 0.08480138331651688, 0.0733722373843193, -0.21977819502353668, -0.41962775588035583, -0.008431052789092064, 0.023885000497102737, 0.14136646687984467, 0.2538612484931946, 0.21975401043891907, -0.08435654640197754, 0.017036564648151398, -0.12056660652160645, 0.05921269953250885, 0.0718337744474411, 0.11950477957725525, 0.12819775938987732, -0.07267651706933975, 0.08376415073871613, 0.28198376297950745, 0.23153644800186157, 0.06006699055433273, 0.19486665725708008, -0.07223793864250183, 0.30282747745513916, -0.17646785080432892, -0.07571440935134888, 0.2405509203672409, -0.3558899760246277, 0.4976217448711395, -0.18132248520851135, -0.006575506180524826, -0.04458735138177872, -0.09601648896932602, 0.20089185237884521, -0.21102137863636017, -0.38870492577552795, -0.2711661756038666, 0.32183364033699036, -0.13058611750602722, -0.10666058957576752, -0.1825622171163559, -0.10564552247524261, -0.056314535439014435, -0.05844908580183983, 0.06906411051750183, -0.19143593311309814, 0.31670522689819336, -0.1098628044128418, -0.15673771500587463, -0.1262352615594864, -0.4305461347103119, 0.46188420057296753, 0.2834605276584625, -0.2831435203552246, 0.2036372721195221, 0.35410934686660767, -0.44104570150375366, 0.1897423416376114, 0.332236111164093, 0.6006937026977539, 0.21953122317790985, 0.2928980886936188, 0.08387786895036697, -0.176064133644104, -0.10788989067077637, 0.17421334981918335, 0.04964360594749451, 0.44178348779678345, -0.06862741708755493, 0.13694509863853455, 0.006778337061405182, -0.08323471248149872, 0.2980150878429413, 0.18124185502529144, 0.3393850326538086, -0.016795247793197632, -0.375031977891922, -0.03410717099905014, -0.1780613362789154, -0.07630066573619843, 0.35836493968963623, -0.32155641913414, -0.06960903108119965, 0.2845405042171478, -0.08040578663349152, 0.01434168592095375, -0.34084364771842957, 0.018478665500879288, 0.17676839232444763, 0.4923864006996155, 0.18729549646377563, 0.16532890498638153, -0.23729455471038818, -0.1239614486694336, -0.5642415285110474, -0.20429754257202148, -0.3196798861026764, -0.233751580119133, -0.05779338628053665, -0.09947467595338821, 0.36410772800445557, -0.2035190314054489, 0.6210822463035583, -0.2856462895870209, 0.3848314881324768, 0.3869747519493103, -0.2538062334060669, 0.06577040255069733, 0.20190131664276123, 0.07720483839511871, 0.03969933092594147, -0.158198282122612, -0.08727139234542847, 0.03688551113009453, 0.0007560029625892639, -0.10404171794652939, 0.16268564760684967, -0.20129108428955078, -0.22074469923973083, 0.19883358478546143, 0.07631008327007294, 0.8045892715454102, -0.0558604821562767, 0.06465603411197662, -0.14962026476860046, -0.05606178194284439, -0.10255482792854309, 0.06812097877264023, 0.42821547389030457, 0.5867262482643127, -0.2910676896572113, -0.06611712276935577, -0.06739909946918488, -0.01619964838027954, -0.09806112200021744, -0.047592103481292725, -0.2880604863166809, 0.31860673427581787, -0.01915210485458374, 0.005598679184913635, 0.2622625231742859, 0.22147619724273682, -0.05654279142618179, 0.04059825837612152, -0.026139169931411743, -0.3694876432418823, 0.5187728404998779, -0.19146986305713654, -0.13480877876281738, -0.17388787865638733, 0.013972997665405273, 0.050774432718753815, 0.10487358272075653, -0.3421272039413452, 0.12844222784042358, 0.2554289698600769, 0.07507655769586563, -0.7180347442626953, 0.4141140282154083, -0.215064138174057, -0.05440468713641167, 0.08227577805519104, 0.006114998832345009, -0.1176430955529213, 0.0204470157623291, -0.13533318042755127, -0.10601924359798431 ]
https://github.com/huggingface/datasets/issues/1811
Thanks @yjernite @lhoestq The template for new dataset makes it slightly confusing. I suppose the comment suggesting its update can be removed.
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
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.021659351885318756, -0.2712218165397644, 0.018145859241485596, 0.1329573392868042, 0.37121713161468506, 0.31665003299713135, 0.6164795160293579, -0.4762446880340576, 0.19942548871040344, 0.2660483121871948, -0.21772588789463043, 0.1535528302192688, -0.2759884297847748, 0.3479330539703369, 0.10803243517875671, -0.12047627568244934, 0.17809626460075378, -0.21740120649337769, 0.02560100145637989, -0.03326740860939026, -0.22154130041599274, 0.007429657503962517, -0.23462557792663574, -0.2840360999107361, -0.6864250898361206, -0.2522577941417694, -0.3487628698348999, -0.16003713011741638, -0.2611854374408722, -0.6842921376228333, 0.17423465847969055, 0.3276166319847107, -0.17997977137565613, 0.4868170917034149, -0.00011896974319824949, 0.0539395809173584, 0.006015059072524309, -0.02701384946703911, -0.13157574832439423, -0.08840851485729218, 0.03389526903629303, -0.09976547956466675, -0.02308107726275921, -0.1876842975616455, -0.020591087639331818, -0.3216594159603119, -0.047854483127593994, -0.26782935857772827, 0.26227903366088867, 0.17089800536632538, 0.1447005569934845, -0.12118266522884369, 0.3119577467441559, -0.1777845323085785, -0.034004319459199905, 0.20135089755058289, -0.12939773499965668, 0.15727460384368896, 0.13255606591701508, -0.1618610918521881, 0.48101070523262024, 0.2527093291282654, -0.004529908299446106, -0.18835029006004333, 0.412849485874176, -0.040781229734420776, -0.14796847105026245, -0.5755074620246887, 0.1524926722049713, 0.30970701575279236, 0.6528838872909546, -0.037697188556194305, -0.6485277414321899, -0.14410211145877838, 0.3986092209815979, -0.16047388315200806, -0.14034275710582733, 0.010431893169879913, -0.003859780728816986, -0.23750069737434387, -0.3692447245121002, -0.04988132417201996, -0.2118251472711563, 0.27643609046936035, 0.33317089080810547, 0.35761478543281555, 0.052268508821725845, 0.35098788142204285, 0.27029722929000854, -0.05738396942615509, -0.025262560695409775, -0.10565510392189026, 0.04515513777732849, 0.2221505045890808, -0.2898244261741638, 0.17264717817306519, -0.0475979745388031, 0.13915175199508667, 0.14510317146778107, -0.10272146016359329, 0.0525573194026947, -0.32326778769493103, -0.21171917021274567, 0.11969348788261414, 0.10273295640945435, -0.019669484347105026, -0.002272792160511017, 0.4025927186012268, -0.03666432574391365, -0.027458494529128075, 0.11020973324775696, -0.23520302772521973, -0.06834416091442108, -0.12961049377918243, 0.3619586229324341, 0.18700268864631653, -0.1424219161272049, 0.11664649844169617, 0.046224288642406464, -0.15703243017196655, -0.06115318834781647, -0.032275665551424026, 0.35671934485435486, 0.30968940258026123, 0.23467789590358734, 0.013894829899072647, 0.10588473081588745, 0.4291902184486389, 0.10788162052631378, 0.05489731207489967, -0.14953789114952087, 0.354349821805954, -0.14015693962574005, 0.02180037647485733, 0.2909841537475586, 0.001412825658917427, 0.1271664798259735, 0.3206977844238281, 0.2556932866573334, -0.1487237960100174, 0.04745350033044815, -0.22020015120506287, 0.19376131892204285, 0.356991171836853, -0.02558562159538269, 0.214591383934021, -0.04567829146981239, -0.3797813951969147, -0.11004045605659485, 0.045266278088092804, -0.3311830759048462, -0.02578026056289673, -0.05222553759813309, 0.06997715681791306, 0.19530832767486572, -0.09171955287456512, -0.47711658477783203, 0.20146815478801727, 0.12351572513580322, 0.03392074257135391, -0.07022537291049957, -0.20455607771873474, -0.2669658064842224, -0.2525109648704529, 0.2751823663711548, 0.40117284655570984, -0.25755470991134644, -0.20916640758514404, -0.11507066339254379, 0.16939035058021545, -0.2034938633441925, 0.21283665299415588, -0.2620733082294464, 0.44873788952827454, -0.09403069317340851, 0.06289300322532654, 0.04267448931932449, -0.8922805786132812, -0.06668316572904587, -0.01475762203335762, 0.08666021376848221, -0.12850342690944672, 0.16140687465667725, 0.3256179094314575, 0.1087987944483757, 0.02897936850786209, 0.14260272681713104, 0.11376029998064041, -0.1924501657485962, -0.048209451138973236, 0.17883750796318054, 0.15658637881278992, -0.1048271507024765, 0.30700188875198364, 0.21028423309326172, -0.21032510697841644, 0.15642189979553223, -0.15666604042053223, -0.016031712293624878, -0.1635686457157135, 0.12073873728513718, 0.3795166015625, 0.20923751592636108, -0.049986932426691055, 0.03132329136133194, 0.038003742694854736, -0.43501946330070496, 0.43391579389572144, 0.29557955265045166, 0.3049955666065216, -0.1049286350607872, -0.17570528388023376, -0.01160966232419014, 0.06134917587041855, -0.48529016971588135, -0.11461763828992844, 0.06567404419183731, 0.2741548418998718, -0.09148105978965759, -0.05996118485927582, 0.02059580385684967, 0.13930071890354156, 0.4397171437740326, 0.16319391131401062, 0.0898364782333374, 0.03510994464159012, -0.12541352212429047, 0.03179708123207092, -0.09822768718004227, 0.01795107126235962, 0.4089217483997345, -0.06327378749847412, 0.0348854698240757, 0.4561131000518799, 0.18558011949062347, -0.3028663992881775, -0.15818503499031067, 0.06319393217563629, 0.4092924892902374, -0.27605390548706055, -0.29409414529800415, -0.20073994994163513, 0.23204241693019867, -0.34117281436920166, -0.15501423180103302, 0.07752656936645508, -0.3345644772052765, 0.2867107093334198, -0.006310977041721344, 0.1957472860813141, 0.13473176956176758, 0.10282231122255325, -0.11359097808599472, -0.20674923062324524, 0.03791912645101547, -0.1822335124015808, -0.02283547818660736, -0.23546521365642548, 0.041387543082237244, 0.06557133793830872, 0.025815393775701523, 0.0400971844792366, -0.06107025966048241, -0.053584691137075424, 0.02865634672343731, 0.24310702085494995, 0.15603086352348328, 0.5032748579978943, 0.28921520709991455, 0.26657992601394653, -0.16509190201759338, -0.20136283338069916, -0.2896961569786072, 0.05789398401975632, 0.10029488801956177, -0.08127140998840332, 0.18571864068508148, 0.198581263422966, 0.18826797604560852, 0.03348071873188019, -0.22378291189670563, -0.4800539016723633, 0.36849457025527954, 0.13112442195415497, -0.291178822517395, 0.01369977742433548, -0.30546122789382935, -0.20973104238510132, -0.04781842231750488, -0.2719690799713135, -0.03293955698609352, -0.2731933295726776, 0.10028473287820816, 0.23038284480571747, 0.11108873784542084, 0.21874015033245087, 0.05057302117347717, 0.2245626151561737, -0.25333917140960693, 0.07365339249372482, -0.02900417149066925, -0.10451284050941467, -0.0029994393698871136, -0.026557335630059242, 0.3638055622577667, -0.3310752511024475, 0.5024328827857971, 0.08928532153367996, -0.14291128516197205, -0.20491644740104675, -0.43616873025894165, 0.027746492996811867, -0.17077139019966125, 0.2560727298259735, 0.07926906645298004, -0.0453789122402668, -0.12055346369743347, -0.25282835960388184, 0.32315513491630554, 0.14333033561706543, -0.06718286871910095, -0.02225995436310768, -0.20926526188850403, -0.31817683577537537, -0.3291820287704468, -0.001901436597108841, -0.2415914535522461, -0.031334858387708664, 0.17833960056304932, 0.003908991813659668, -0.06209786981344223, 0.6229841709136963, 0.14219778776168823, -0.32693585753440857, 0.11143839359283447, 0.10879180580377579, -0.020463252440094948, -0.3791361451148987, 0.23079249262809753, -0.3280830681324005, -0.24581606686115265, 0.11127553880214691, -0.2078544944524765, 0.4561769962310791, -0.023629838600754738, -0.07424129545688629, -0.051670052111148834, 0.060044147074222565, 0.02504337579011917, -0.024221276864409447, 0.22140401601791382, 0.12332730740308762, 0.12238182127475739, 0.0012233592569828033, -0.2397068589925766, -0.43327173590660095, 0.3612811267375946, -0.2303786426782608, 0.23025211691856384, -0.3453044295310974, 0.2405831664800644, 0.0744776725769043, 0.24530360102653503, 0.008090399205684662, 0.041551314294338226, 0.43801403045654297, -0.2188452035188675, 0.38248780369758606, -0.19673559069633484, -0.5095449090003967, 0.2663564383983612, 0.006804302334785461, 0.07467492669820786, -0.05643102899193764, 0.0025119148194789886, -0.15345603227615356, -0.1369742751121521, 0.45966070890426636, -0.29824891686439514, -0.07141511887311935, -0.13954377174377441, -0.06140081211924553, 0.1793227344751358, -0.1286800652742386, -0.23860053718090057, -0.4252118468284607, -0.0979250818490982, -0.31684303283691406, 0.08370554447174072, 0.030057227239012718, -0.08361320197582245, -0.5794289112091064, -0.2799661159515381, -0.20954006910324097, 0.09627488255500793, 0.20156045258045197, 0.1998215913772583, -0.250143826007843, 0.30737340450286865, 0.04232455790042877, 0.07501121610403061, 0.6299780607223511, -0.5078379511833191, -0.20720894634723663, 0.40640243887901306, 0.08233516663312912, -0.44201475381851196, -0.3596886992454529, -0.0637630745768547, 0.2939630448818207, 0.05987950786948204, 0.3375256061553955, -0.3172758221626282, 0.17529742419719696, 0.14427751302719116, 0.029072880744934082, -0.11574714630842209, -0.26024991273880005, -0.16506999731063843, -0.3463681936264038, -0.25429317355155945, 0.038758307695388794, 0.2610558271408081, 0.22202497720718384, 0.07561084628105164, 0.055787503719329834, 0.04519950598478317, 0.047186896204948425, 0.10670962929725647, -0.0073394775390625, 0.08915962278842926, 0.5999582409858704, 0.35219109058380127, 0.04424943029880524, -0.22389429807662964, 0.5654516220092773, 0.4997175633907318, -0.34988999366760254, -0.27769193053245544, -0.06960766762495041, -0.24923557043075562, 0.24174894392490387, -0.07404205203056335, 0.24509017169475555, 0.207423135638237, 0.2566077709197998, 0.03266419097781181, 0.016942866146564484, 0.1901455521583557, 0.5320222973823547, -0.03386431187391281, -0.5876461863517761, -0.3630560338497162, 0.18822401762008667, 0.08403719961643219, -0.09250730276107788, 0.3905678689479828, 0.03558913990855217, -0.3100588023662567, 0.20690235495567322, 0.15201634168624878, 0.7129697203636169, -0.5040871500968933, 0.20063814520835876, -0.12810644507408142, -0.05140715092420578, 0.6691423654556274, 0.025914855301380157, 0.10605491697788239, -0.16509149968624115, -0.24148482084274292, 0.10752055048942566, 0.06314416974782944, 0.053046029061079025, 0.3399398922920227, -0.14769235253334045, 0.10400806367397308, -0.1996169090270996, 0.14421409368515015, -0.22863879799842834, 0.094278484582901, 0.24139097332954407, -0.3566119968891144, 0.315528005361557, 0.11481234431266785, -0.03792544826865196, -0.22128260135650635, 0.014740344136953354, -0.01314564235508442, -0.04855415225028992, -0.2762643098831177, -0.45603471994400024, -0.1082490086555481, -0.32643526792526245, 0.3514830768108368, -0.05456650257110596, -0.08294712752103806, 0.09229113161563873, 0.3642334043979645, 0.6377286314964294, -0.08701801300048828, -0.012160292826592922, 0.1931256353855133, -0.007270939648151398, -0.18534106016159058, -0.4156341552734375, -0.25839436054229736, 0.15830542147159576, -0.09677444398403168, -0.34915444254875183, 0.0630330964922905, 0.0483211874961853, -0.2924520671367645, -0.17371752858161926, 0.111241415143013, -0.13384488224983215, 0.08430713415145874, 0.01945260539650917, 0.26588818430900574, 0.22531501948833466, -0.31937748193740845, 0.030435558408498764, 0.05226844176650047, -0.09751630574464798, 0.3346412479877472, -0.15794473886489868, 0.02924339473247528, -0.0027380241081118584, 0.3327621519565582, 0.02855128049850464, 0.22656330466270447, 0.41726309061050415, -0.01953839510679245, 0.04415026307106018, -0.07076342403888702, -0.07859756052494049, 0.28072303533554077, -0.3569044768810272, -0.021592024713754654, 0.45095112919807434, 0.06820926070213318, -0.008282262831926346, 0.40703779458999634, 0.0060865432024002075, 0.10329742729663849, 0.0879296362400055, -0.1227889284491539, -0.414031982421875, 0.05718006193637848, -0.4007033407688141, 0.27875620126724243, -0.040793534368276596, 0.44720420241355896, 0.17551115155220032, 0.41073426604270935, -0.20101779699325562, -0.060904018580913544, -0.2943558692932129, -0.004119149409234524, 0.4779885411262512, 0.055954769253730774, -0.13621267676353455, 0.08659324049949646, 0.10840275138616562, -0.18534599244594574, 0.17125312983989716, -0.031115051358938217, -0.1749439537525177, 0.12467294931411743, 0.25140705704689026, 0.17497852444648743, 0.013920687139034271, -0.4309506416320801, -0.1583898961544037, -0.11432009935379028, 0.2133871614933014, 0.26294732093811035, -0.09498719871044159, 0.31221356987953186, -0.49647632241249084, 0.003802310675382614, 0.023873426020145416, 0.14402861893177032, 0.04208506643772125, -0.06075948104262352, 0.3293672204017639, 0.07902494817972183, 0.12721140682697296, -0.1499330848455429, -0.3488268256187439, 0.04825381189584732, -0.4432694911956787, -0.12889963388442993, 0.0841795802116394, -0.3632188141345978, 0.44646361470222473, 0.2567119598388672, 0.23998981714248657, -0.12176261842250824, -0.2593410015106201, 0.4296591877937317, 0.08480138331651688, 0.0733722373843193, -0.21977819502353668, -0.41962775588035583, -0.008431052789092064, 0.023885000497102737, 0.14136646687984467, 0.2538612484931946, 0.21975401043891907, -0.08435654640197754, 0.017036564648151398, -0.12056660652160645, 0.05921269953250885, 0.0718337744474411, 0.11950477957725525, 0.12819775938987732, -0.07267651706933975, 0.08376415073871613, 0.28198376297950745, 0.23153644800186157, 0.06006699055433273, 0.19486665725708008, -0.07223793864250183, 0.30282747745513916, -0.17646785080432892, -0.07571440935134888, 0.2405509203672409, -0.3558899760246277, 0.4976217448711395, -0.18132248520851135, -0.006575506180524826, -0.04458735138177872, -0.09601648896932602, 0.20089185237884521, -0.21102137863636017, -0.38870492577552795, -0.2711661756038666, 0.32183364033699036, -0.13058611750602722, -0.10666058957576752, -0.1825622171163559, -0.10564552247524261, -0.056314535439014435, -0.05844908580183983, 0.06906411051750183, -0.19143593311309814, 0.31670522689819336, -0.1098628044128418, -0.15673771500587463, -0.1262352615594864, -0.4305461347103119, 0.46188420057296753, 0.2834605276584625, -0.2831435203552246, 0.2036372721195221, 0.35410934686660767, -0.44104570150375366, 0.1897423416376114, 0.332236111164093, 0.6006937026977539, 0.21953122317790985, 0.2928980886936188, 0.08387786895036697, -0.176064133644104, -0.10788989067077637, 0.17421334981918335, 0.04964360594749451, 0.44178348779678345, -0.06862741708755493, 0.13694509863853455, 0.006778337061405182, -0.08323471248149872, 0.2980150878429413, 0.18124185502529144, 0.3393850326538086, -0.016795247793197632, -0.375031977891922, -0.03410717099905014, -0.1780613362789154, -0.07630066573619843, 0.35836493968963623, -0.32155641913414, -0.06960903108119965, 0.2845405042171478, -0.08040578663349152, 0.01434168592095375, -0.34084364771842957, 0.018478665500879288, 0.17676839232444763, 0.4923864006996155, 0.18729549646377563, 0.16532890498638153, -0.23729455471038818, -0.1239614486694336, -0.5642415285110474, -0.20429754257202148, -0.3196798861026764, -0.233751580119133, -0.05779338628053665, -0.09947467595338821, 0.36410772800445557, -0.2035190314054489, 0.6210822463035583, -0.2856462895870209, 0.3848314881324768, 0.3869747519493103, -0.2538062334060669, 0.06577040255069733, 0.20190131664276123, 0.07720483839511871, 0.03969933092594147, -0.158198282122612, -0.08727139234542847, 0.03688551113009453, 0.0007560029625892639, -0.10404171794652939, 0.16268564760684967, -0.20129108428955078, -0.22074469923973083, 0.19883358478546143, 0.07631008327007294, 0.8045892715454102, -0.0558604821562767, 0.06465603411197662, -0.14962026476860046, -0.05606178194284439, -0.10255482792854309, 0.06812097877264023, 0.42821547389030457, 0.5867262482643127, -0.2910676896572113, -0.06611712276935577, -0.06739909946918488, -0.01619964838027954, -0.09806112200021744, -0.047592103481292725, -0.2880604863166809, 0.31860673427581787, -0.01915210485458374, 0.005598679184913635, 0.2622625231742859, 0.22147619724273682, -0.05654279142618179, 0.04059825837612152, -0.026139169931411743, -0.3694876432418823, 0.5187728404998779, -0.19146986305713654, -0.13480877876281738, -0.17388787865638733, 0.013972997665405273, 0.050774432718753815, 0.10487358272075653, -0.3421272039413452, 0.12844222784042358, 0.2554289698600769, 0.07507655769586563, -0.7180347442626953, 0.4141140282154083, -0.215064138174057, -0.05440468713641167, 0.08227577805519104, 0.006114998832345009, -0.1176430955529213, 0.0204470157623291, -0.13533318042755127, -0.10601924359798431 ]
https://github.com/huggingface/datasets/issues/1810
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
## 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.2504214942455292, 0.15920677781105042, -0.14461427927017212, 0.04864085838198662, 0.10480573773384094, 0.2664600610733032, 0.44498905539512634, -0.07321250438690186, -0.08323481678962708, -0.22534553706645966, -0.023049721494317055, -0.28218504786491394, -0.5021378993988037, 0.2475009560585022, 0.015648551285266876, -0.12452074885368347, 0.03239075839519501, 0.03152326121926308, -0.18466132879257202, -0.055614084005355835, -0.03909807279706001, -0.1718229353427887, 0.18335726857185364, -0.2621171176433563, -0.5729024410247803, -0.07941265404224396, -0.2922708988189697, 0.27430254220962524, -0.17467020452022552, -0.47573035955429077, 0.03421207517385483, 0.36687225103378296, 0.14253583550453186, 0.5114075541496277, -0.00011803745292127132, 0.06132882088422775, -0.08145633339881897, -0.1974322646856308, 0.04601333290338516, 0.09798083454370499, 0.07889632880687714, -0.5317853689193726, -0.12052416801452637, -0.2593846321105957, 0.14250248670578003, -0.49977388978004456, 0.20766711235046387, -0.050546228885650635, 0.6721634268760681, -0.00051836296916008, 0.14034059643745422, -0.16781386733055115, 0.22367733716964722, -0.0295418668538332, 0.030244216322898865, 0.7310444116592407, -0.053511492908000946, -0.24489344656467438, 0.08506911993026733, 0.10538918524980545, 0.24147558212280273, 0.2661070227622986, -0.18244555592536926, 0.09815925359725952, 0.4686676859855652, -0.14950555562973022, -0.0850302129983902, -0.3651394844055176, 0.06925472617149353, 0.3533003330230713, 0.31580907106399536, -0.11577391624450684, -0.28308945894241333, -0.4789532423019409, -0.05198710784316063, 0.04707508534193039, -0.09738154709339142, 0.2933703660964966, -0.002428237348794937, -0.00836253259330988, -0.407870888710022, -0.1113789975643158, -0.39084911346435547, 0.4031020998954773, -0.012804567813873291, -0.111374631524086, 0.044160716235637665, 0.3313262164592743, -0.04704213887453079, -0.317680299282074, -0.050353407859802246, -0.03211924806237221, 0.3344111144542694, 0.2942705750465393, 0.2471240758895874, 0.03572434186935425, -0.23383423686027527, -0.2644750773906708, 0.49435439705848694, -0.2746841311454773, -0.03651810437440872, -0.06116939336061478, -0.5127971768379211, -0.1091964989900589, 0.1728677749633789, -0.21865621209144592, -0.41338667273521423, 0.2884227931499481, 0.14234516024589539, 0.023907802999019623, -0.06801845878362656, -0.00006630830466747284, -0.17210035026073456, 0.08525985479354858, -0.020611971616744995, -0.041367337107658386, 0.2201978713274002, 0.00656939297914505, -0.22257158160209656, -0.22367046773433685, 0.10903910547494888, 0.06131160631775856, -0.07975839078426361, 0.18218769133090973, 0.09283721446990967, -0.046792320907115936, -0.06916493922472, 0.2312926948070526, 0.06429316848516464, -0.1113334447145462, -0.12132415175437927, -0.046507351100444794, -0.08350913226604462, 0.21894067525863647, 0.31733715534210205, 0.40664157271385193, 0.3729761838912964, -0.05023539438843727, 0.03614366799592972, 0.18774878978729248, 0.1703287661075592, -0.15362802147865295, 0.23974086344242096, 0.10256314277648926, 0.12395919859409332, -0.04430421069264412, -0.02590794302523136, 0.13735118508338928, -0.17836108803749084, 0.12348367273807526, -0.29652634263038635, -0.034951724112033844, -0.07875020802021027, 0.06077045202255249, -0.3073105216026306, 0.1393747329711914, -0.0952753871679306, 0.33259445428848267, 0.044599149376153946, -0.09985730797052383, 0.07982242107391357, -0.0691167414188385, -0.29161345958709717, -0.4136888086795807, 0.0731455385684967, 0.5717692971229553, -0.4198012351989746, -0.03886778652667999, -0.25980064272880554, 0.004877276718616486, -0.35147741436958313, 0.14116764068603516, -0.07384617626667023, 0.08048245310783386, -0.14229559898376465, -0.0395541712641716, 0.19716677069664001, -0.16465410590171814, -0.2917400598526001, 0.1448027491569519, 0.05037294328212738, 0.2691361606121063, 0.19973713159561157, 0.4102455973625183, 0.16798770427703857, -0.09235970675945282, -0.00399591401219368, 0.6235693693161011, -0.2270171195268631, -0.023237094283103943, 0.21677598357200623, -0.4549311697483063, 0.09008969366550446, 0.3774319291114807, 0.3031719923019409, -0.26993638277053833, 0.36620113253593445, -0.052914854139089584, 0.15973177552223206, -0.2786394953727722, 0.18431225419044495, 0.07291804254055023, 0.32805192470550537, 0.004464240744709969, 0.08127821981906891, -0.1909702718257904, -0.5832840800285339, 0.2914873957633972, -0.13016273081302643, -0.24256116151809692, -0.18905365467071533, -0.07453643530607224, -0.22265642881393433, -0.16954483091831207, -0.5431599020957947, -0.14398786425590515, 0.08096534013748169, 0.06736768782138824, 0.11733348667621613, -0.08551236987113953, -0.10755768418312073, 0.3108454942703247, 0.037763454020023346, 0.037663012742996216, 0.07593998312950134, 0.35627418756484985, 0.2526934742927551, -0.25909021496772766, -0.15503481030464172, 0.1933312565088272, -0.07706616818904877, -0.27769774198532104, 0.031058423221111298, 0.4657756984233856, 0.25330883264541626, 0.19990316033363342, -0.060282837599515915, 0.5921090841293335, 0.3864939212799072, -0.4306573271751404, 0.4246518015861511, 0.29811960458755493, 0.16764701902866364, -0.1962483823299408, -0.14481471478939056, 0.4161931276321411, -0.10860433429479599, 0.09449678659439087, -0.09016028046607971, -0.1568720042705536, 0.12085168808698654, 0.19884194433689117, -0.06973495334386826, -0.48602646589279175, -0.13755810260772705, 0.3124346435070038, -0.03528304025530815, -0.03331966698169708, 0.08166112750768661, -0.03110077977180481, 0.14440786838531494, 0.1584203988313675, 0.19508779048919678, 0.11747807264328003, -0.2045091986656189, 0.21766787767410278, 0.11602456122636795, -0.08205888420343399, 0.5058941841125488, 0.2438027560710907, -0.28843954205513, 0.18931929767131805, 0.04415493458509445, 0.07033441960811615, -0.059177279472351074, 0.07188078761100769, 0.15928564965724945, 0.18146492540836334, 0.2923966944217682, -0.09721186012029648, -0.2935050129890442, -0.36491501331329346, -0.04641035944223404, -0.1391710489988327, 0.028509125113487244, -0.21593153476715088, -0.17600329220294952, -0.07524280250072479, -0.17717298865318298, 0.061900414526462555, -0.27311259508132935, 0.3103003203868866, 0.24326792359352112, -0.08444765210151672, -0.007646061480045319, 0.09867018461227417, -0.17903846502304077, 0.4522792398929596, 0.1903003752231598, -0.1124391108751297, 0.20188933610916138, 0.27380871772766113, -0.17222458124160767, 0.023475177586078644, 0.3414861857891083, 0.018095005303621292, 0.3103944957256317, -0.20857484638690948, 0.2875606417655945, -0.30167970061302185, -0.5269961953163147, -0.017756203189492226, -0.127862811088562, 0.4184364378452301, 0.1583189219236374, 0.05698109790682793, 0.1466147005558014, -0.04908907040953636, 0.25459393858909607, 0.08397013694047928, -0.1261509209871292, -0.35798507928848267, -0.31245583295822144, -0.11762815713882446, 0.08763346076011658, 0.18753908574581146, -0.2937674820423126, -0.24343569576740265, 0.46452879905700684, 0.5125320553779602, 0.14236046373844147, 0.21529147028923035, 0.5227333903312683, -0.15631847083568573, 0.16883763670921326, 0.21147948503494263, -0.06237348914146423, -0.08160445839166641, 0.48246437311172485, -0.26179197430610657, -0.27874913811683655, -0.0011843815445899963, -0.20051716268062592, -0.21265098452568054, 0.363459974527359, -0.48711395263671875, -0.17809510231018066, -0.12022534757852554, 0.18780475854873657, 0.032054271548986435, -0.026077929884195328, 0.0824708640575409, -0.028169304132461548, 0.11324001848697662, -0.06632231175899506, -0.09983215481042862, 0.07641297578811646, 0.39128267765045166, 0.22112597525119781, 0.08915479481220245, -0.036058250814676285, 0.28342753648757935, 0.49735361337661743, 0.05044228583574295, -0.07786977291107178, 0.4475952982902527, 0.05929042398929596, 0.26283687353134155, -0.0026230216026306152, -0.3571559190750122, 0.39983034133911133, 0.19781798124313354, -0.18149051070213318, 0.14136768877506256, 0.12341256439685822, 0.014040008187294006, 0.0465475395321846, 0.38465824723243713, -0.1950741410255432, -0.15019452571868896, 0.24250036478042603, 0.03565594181418419, 0.20805995166301727, -0.22315369546413422, -0.27749180793762207, -0.7103011012077332, -0.21365171670913696, 0.06083667650818825, 0.2419239729642868, -0.20638947188854218, 0.26614171266555786, -0.6109218001365662, -0.04515949636697769, 0.1607518345117569, 0.32348525524139404, 0.16102203726768494, 0.06865720450878143, -0.12070079147815704, -0.07368887215852737, -0.04315875470638275, 0.02905147522687912, 0.7224553227424622, 0.018489593639969826, -0.32724738121032715, -0.02010193094611168, 0.23693546652793884, -0.3815585970878601, -0.2712816596031189, 0.1092841625213623, -0.08269654959440231, -0.14916695654392242, 0.6568530797958374, -0.25731420516967773, 0.05127118527889252, 0.2450479120016098, 0.32196515798568726, -0.1487639844417572, -0.22229599952697754, -0.09374204277992249, -0.3714405298233032, -0.4741394519805908, -0.13255059719085693, 0.17940039932727814, 0.05633481591939926, 0.17608603835105896, -0.4480547606945038, -0.0918845683336258, -0.19439686834812164, 0.16497766971588135, 0.10580141842365265, 0.09518802165985107, 0.26128342747688293, -0.03457219526171684, 0.17564089596271515, -0.1584342122077942, 0.25752073526382446, 0.3741611838340759, 0.04391329735517502, -0.14284750819206238, 0.09494675695896149, -0.1685841977596283, 0.1172892153263092, 0.45974940061569214, 0.23443074524402618, -0.20630531013011932, 0.026582930237054825, -0.07735497504472733, -0.18097224831581116, 0.4501095712184906, 0.14126944541931152, -0.2658029794692993, -0.02445492334663868, -0.5977190136909485, 0.19395682215690613, 0.16257216036319733, 0.03873369097709656, 0.08333469182252884, -0.1662769466638565, -0.2910216152667999, 0.3688756227493286, 0.4148889482021332, 0.8890543580055237, -0.10047601908445358, 0.369014710187912, -0.17448189854621887, 0.18722888827323914, 0.029185354709625244, -0.212709441781044, -0.2151515781879425, 0.10230711102485657, 0.016673434525728226, -0.1287180483341217, -0.06179960444569588, 0.30941444635391235, 0.21820476651191711, 0.10825924575328827, 0.03700733929872513, 0.13059209287166595, 0.1451580822467804, -0.08333693444728851, 0.19099970161914825, -0.29103031754493713, -0.37544748187065125, -0.022443655878305435, 0.07180938124656677, 0.002582258079200983, -0.09750570356845856, -0.10283675044775009, -0.17508845031261444, -0.12858465313911438, -0.06246460974216461, -0.31393948197364807, -0.4170058071613312, -0.6177829504013062, 0.31160151958465576, 0.09591513127088547, -0.1583428531885147, -0.04774285852909088, 0.4364585876464844, 0.2387741208076477, -0.021669143810868263, -0.09991747885942459, 0.18134817481040955, 0.13933324813842773, 0.01590748131275177, -0.3843265473842621, -0.47229257225990295, 0.3890897333621979, -0.009745493531227112, -0.08839865028858185, 0.040819182991981506, 0.18522237241268158, -0.06226181983947754, -0.6213223338127136, -0.10099479556083679, 0.35109347105026245, -0.23717324435710907, -0.3729328513145447, -0.04603896290063858, 0.08459382504224777, -0.03515109792351723, 0.04821191355586052, 0.13556747138500214, 0.051329534500837326, 0.25932809710502625, 0.29257726669311523, -0.13466012477874756, 0.014493903145194054, 0.053760454058647156, 0.14155316352844238, -0.2485700398683548, 0.39792096614837646, 0.01911255717277527, 0.20508775115013123, -0.10097244381904602, 0.40040338039398193, 0.24642258882522583, -0.22755567729473114, 0.03011195734143257, 0.05588780716061592, -0.09230811893939972, -0.30109143257141113, 0.1867818385362625, 0.30475109815597534, 0.11234495043754578, 0.17866761982440948, -0.4206002354621887, -0.3385639190673828, 0.33001744747161865, -0.044872723519802094, 0.3595157563686371, -0.09591759741306305, 0.24532660841941833, -0.18964990973472595, 0.20754940807819366, -0.2435893416404724, 0.2797915041446686, 0.03421717882156372, 0.016574092209339142, 0.013361163437366486, -0.08646790683269501, -0.31291884183883667, 0.18691399693489075, 0.05483042448759079, -0.008456222712993622, -0.45453912019729614, -0.08198501169681549, -0.17281277477741241, 0.21637600660324097, 0.15082499384880066, -0.11864736676216125, 0.04615922272205353, -0.3085322976112366, -0.07927829027175903, -0.07713247835636139, 0.19939665496349335, -0.12106655538082123, -0.3016907274723053, -0.02121073380112648, -0.28179731965065, -0.021043963730335236, -0.005085662007331848, 0.19183027744293213, 0.005568193271756172, 0.09474680572748184, 0.46471402049064636, 0.46122685074806213, -0.08992022275924683, -0.07057556509971619, 0.11594335734844208, 0.2631658911705017, 0.13210703432559967, 0.013043200597167015, 0.27116626501083374, -0.21147914230823517, 0.1537313610315323, 0.1622491180896759, 0.02161484956741333, 0.30075377225875854, -0.3699856400489807, 0.10904912650585175, 0.20090718567371368, 0.12139381468296051, -0.21298468112945557, 0.1097908616065979, 0.43378913402557373, -0.08722604066133499, 0.10159391164779663, 0.37155479192733765, 0.39166563749313354, 0.26339876651763916, -0.29220739006996155, 0.10288506746292114, 0.2551812529563904, 0.002237161621451378, 0.048315033316612244, 0.18768706917762756, -0.30269116163253784, 0.06904105097055435, 0.17461851239204407, 0.44493281841278076, 0.23872146010398865, 0.5049598217010498, -0.3436601161956787, 0.4133916199207306, 0.11043873429298401, -0.16530723869800568, 0.2926424741744995, -0.514285147190094, 0.23347994685173035, 0.32206839323043823, 0.10034456849098206, 0.44056931138038635, -0.14115196466445923, 0.14298753440380096, -0.08434790372848511, -0.38232171535491943, -0.1536344587802887, 0.18174947798252106, 0.2389146238565445, -0.12872643768787384, -0.39738699793815613, -0.329561710357666, -0.5255420207977295, -0.05138743296265602, -0.03211187198758125, -0.5779093503952026, 0.141555517911911, -0.12354660034179688, -0.11330259591341019, -0.3197178244590759, 0.05320008844137192, 0.264100581407547, 0.021433081477880478, -0.3121997117996216, 0.23554611206054688, 0.4401599168777466, -0.0962107926607132, 0.24488374590873718, -0.06199214607477188, 0.2725958526134491, 0.1712174415588379, -0.24646782875061035, 0.23772425949573517, -0.102248914539814, -0.2724086344242096, -0.15460048615932465, 0.10530979186296463, 0.054573871195316315, 0.3160351812839508, 0.10644251108169556, 0.06424545496702194, -0.10340508073568344, -0.21141423285007477, -0.14230789244174957, -0.08979226648807526, -0.49519479274749756, -0.14465084671974182, -0.19385957717895508, -0.19583001732826233, -0.064740389585495, 0.05668458715081215, -0.43922799825668335, -0.6049893498420715, 0.4906966984272003, -0.5163569450378418, 0.2248382866382599, -0.02968990057706833, 0.009239494800567627, -0.42171767354011536, 0.052084680646657944, 0.3018874228000641, -0.014310376718640327, 0.034555576741695404, -0.044739484786987305, -0.38409021496772766, 0.1674560308456421, -0.27836886048316956, -0.2578514516353607, -0.053967952728271484, 0.2680947184562683, 0.2295307219028473, 0.02085704356431961, 0.3160775303840637, -0.1001032292842865, 0.08733168244361877, 0.26177719235420227, -0.2485552430152893, 0.07133519649505615, 0.14627932012081146, 0.5599986910820007, 0.03469090908765793, -0.09364433586597443, 0.040839895606040955, 0.0030867867171764374, -0.022030070424079895, -0.11761981248855591, -0.1751278042793274, 0.055097222328186035, -0.33709466457366943, 0.3505983352661133, 0.0402446910738945, 0.18812690675258636, -0.04771542549133301, -0.05683891102671623, -0.3671641945838928, 0.14204898476600647, -0.02024882286787033, -0.010038575157523155, 0.15439389646053314, 0.7235085964202881, -0.3094785809516907, 0.22609281539916992, -0.04209533706307411, 0.3157183825969696, 0.039789021015167236, -0.3485494554042816, -0.08143901079893112, 0.31769320368766785, -0.29029589891433716, 0.04746684432029724, 0.11364393681287766, 0.23301950097084045, -0.03862786665558815, -0.13953742384910583, 0.3328942656517029, -0.35733556747436523, 0.43613481521606445, -0.13755854964256287, -0.4307519793510437, 0.01363448053598404, -0.07080948352813721, 0.09605804085731506, 0.4268594980239868, -0.27911317348480225, 0.21985837817192078, 0.3455355167388916, 0.07001513242721558, -0.05147965997457504, 0.32743605971336365, -0.009830988943576813, -0.4515475630760193, -0.0036137402057647705, 0.13038238883018494, -0.3480067551136017, -0.21299885213375092, -0.016292087733745575, -0.3059488832950592 ]
https://github.com/huggingface/datasets/issues/1808
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) ```
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
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.2575986385345459, -0.07314234972000122, 0.12428130209445953, 0.4906323254108429, 0.29741957783699036, -0.1625238060951233, 0.34967240691185, 0.04431069642305374, 0.02589743211865425, -0.15335598587989807, 0.3309135437011719, -0.414704293012619, 0.2707337737083435, 0.264776349067688, -0.16611334681510925, 0.07186806946992874, -0.004648752510547638, 0.011518599465489388, 0.14982753992080688, -0.15415059030056, -0.05089318007230759, 0.2294982671737671, -0.02567332610487938, -0.038947563618421555, -0.3820805549621582, -0.23500265181064606, -0.13195855915546417, -0.29512593150138855, -0.21151132881641388, -0.08702301979064941, 0.058286286890506744, 0.14218948781490326, 0.06199146434664726, -0.00011743597860913724, -0.09034629166126251, 0.059274472296237946, -0.1883005052804947, -0.41857877373695374, -0.11924339830875397, -0.25726479291915894, -0.4672526717185974, 0.28265380859375, -0.3885616660118103, 0.05723237991333008, -0.500099778175354, 0.16721433401107788, -0.35908734798431396, 0.48386165499687195, 0.27061188220977783, 0.21179383993148804, -0.1439216136932373, 0.30980145931243896, 0.2972797155380249, 0.05245058983564377, 0.6159294247627258, -0.3162022531032562, 0.15443041920661926, -0.07570001482963562, 0.0732605829834938, 0.35592618584632874, -0.1744702160358429, -0.15455253422260284, -0.3159639239311218, 0.37561848759651184, 0.07825951278209686, -0.215406596660614, -0.029377833008766174, -0.03793231397867203, 0.2223852276802063, 0.7566882967948914, -0.7057833075523376, -0.5702958106994629, -0.01489267498254776, 0.03621924668550491, -0.0766562670469284, -0.14431822299957275, 0.5130928158760071, 0.026253197342157364, 0.2297065556049347, -0.16999368369579315, -0.585319459438324, -0.36619338393211365, 0.07046407461166382, 0.38599520921707153, -0.1131257712841034, -0.1840333193540573, -0.04029805585741997, 0.05155812203884125, 0.016425715759396553, 0.3137092590332031, -0.17655430734157562, -0.0960148274898529, 0.1227472797036171, -0.15096120536327362, -0.2741805911064148, -0.5675678849220276, -0.2052544802427292, 0.010116465389728546, 0.08443127572536469, 0.46114665269851685, -0.047581855207681656, -0.0811261385679245, 0.09407602995634079, 0.37668830156326294, 0.08812323212623596, 0.18818989396095276, 0.07472652941942215, 0.18091711401939392, -0.24707898497581482, 0.09403707087039948, -0.2720763683319092, 0.018891960382461548, 0.16254034638404846, 0.4624991714954376, -0.08689770847558975, 0.04546743631362915, -0.2265893518924713, -0.04947948083281517, 0.01830539107322693, -0.17806950211524963, 0.12943309545516968, -0.33265361189842224, 0.15975861251354218, 0.02462797984480858, 0.12520723044872284, 0.1071004867553711, 0.23881006240844727, 0.12956194579601288, -0.015088863670825958, 0.18516510725021362, 0.18894028663635254, 0.042117051780223846, 0.16805608570575714, -0.09943780303001404, 0.022375136613845825, 0.048801079392433167, -0.07980747520923615, 0.07429307699203491, -0.4312080144882202, 0.3465844392776489, -0.1666998267173767, 0.23003709316253662, 0.2840813398361206, 0.1565832495689392, 0.0880090668797493, -0.041888948529958725, -0.5203968286514282, -0.2893022894859314, 0.2648201584815979, 0.009672396816313267, -0.11031536012887955, -0.33929479122161865, 0.05165698751807213, -0.10476000607013702, -0.1274159997701645, -0.7118955850601196, 0.05073925107717514, 0.04601425677537918, 0.02644626796245575, 0.14817988872528076, -0.040107280015945435, -0.10918621718883514, -0.5510830879211426, 0.10952248424291611, 0.02859696000814438, -0.5763203501701355, 0.17012983560562134, 0.07070359587669373, -0.026981821283698082, 0.07936139404773712, 0.29449793696403503, 0.15841998159885406, 0.39407363533973694, 0.05672250688076019, 0.16138309240341187, 0.31681182980537415, -0.11426994204521179, -0.03393808379769325, 0.3281465172767639, 0.15363317728042603, 0.052790939807891846, -0.26352405548095703, 0.490013062953949, 0.40485841035842896, 0.011045917868614197, -0.1125626415014267, 0.05335689336061478, 0.14341944456100464, 0.01676192134618759, -0.1362844556570053, -0.37387794256210327, 0.15738476812839508, 0.035961829125881195, -0.3810764253139496, -0.09024526178836823, 0.3390372395515442, -0.00262460857629776, 0.3020038604736328, -0.2979598939418793, 0.2616698145866394, 0.5488733649253845, 0.32985931634902954, 0.08925001323223114, -0.18692848086357117, -0.2176181823015213, -0.2303953319787979, -0.1483854055404663, 0.47374242544174194, -0.16877420246601105, -0.15784138441085815, -0.34113985300064087, 0.14174491167068481, 0.07172607630491257, -0.1318061798810959, 0.2105410248041153, 0.06463661789894104, -0.24721282720565796, -0.17376458644866943, 0.15702299773693085, -0.22539681196212769, 0.3347906172275543, -0.03151584416627884, 0.11028361320495605, -0.2123127579689026, 0.14147843420505524, -0.004306303337216377, -0.2985953688621521, 0.12394653260707855, 0.009376175701618195, 0.007699764333665371, 0.007159728556871414, -0.03974444419145584, 0.3718756437301636, 0.17178921401500702, 0.05482460558414459, 0.06784714013338089, 0.5374656915664673, 0.06926622986793518, -0.21767210960388184, 0.138190358877182, 0.20481786131858826, 0.2182481437921524, -0.032897256314754486, -0.6860601305961609, 0.5157960057258606, 0.012228081002831459, 0.009676732122898102, -0.02344398945569992, 0.2769927680492401, 0.1521538943052292, 0.19615618884563446, -0.13982704281806946, 0.05764554440975189, 0.00915838684886694, 0.06272868812084198, -0.10906095057725906, -0.22863246500492096, -0.46773386001586914, 0.0491141676902771, 0.5178413391113281, -0.30799463391304016, 0.5596216917037964, 0.02452021837234497, -0.06745164096355438, -0.11978598684072495, 0.13917365670204163, 0.16943351924419403, 0.09880831837654114, 0.013121429830789566, 0.008405518718063831, -0.015211222693324089, -0.1322946846485138, 0.07931970059871674, 0.1636236608028412, -0.17590577900409698, 0.21895387768745422, -0.19260907173156738, -0.08800476789474487, -0.1375407874584198, -0.2838563919067383, 0.2554500699043274, -0.17440977692604065, 0.028631286695599556, -0.23443667590618134, 0.0963483601808548, -0.1480448842048645, 0.06909088790416718, -0.08030091226100922, 0.08357946574687958, -0.1047162264585495, -0.2666876018047333, -0.36073845624923706, 0.1366753876209259, 0.10168346762657166, -0.1860566884279251, -0.06872880458831787, 0.21813324093818665, -0.12240736186504364, -0.029222456738352776, -0.24006599187850952, -0.07898522913455963, 0.05282978713512421, 0.003224436193704605, 0.16773322224617004, 0.23583421111106873, 0.45951327681541443, -0.18646183609962463, 0.31399819254875183, -0.32453638315200806, 0.042570456862449646, -0.23527681827545166, -0.07330790162086487, 0.29685139656066895, -0.038501519709825516, 0.3675040900707245, -0.40578198432922363, 0.05541188642382622, -0.05781841278076172, 0.06804969906806946, -0.12023746967315674, 0.06705824285745621, 0.13109013438224792, -0.14533434808254242, 0.0033633634448051453, 0.13583597540855408, -0.33154812455177307, -0.09188087284564972, 0.5880926847457886, -0.021284379065036774, 0.08518442511558533, -0.20150093734264374, 0.1822722852230072, 0.03901977464556694, -0.059449344873428345, -0.11347148567438126, 0.1022590920329094, -0.47992050647735596, 0.3875846862792969, -0.24509549140930176, -0.39184829592704773, 0.21735215187072754, 0.38047051429748535, -0.11913833022117615, -0.06054957956075668, -0.13908424973487854, 0.010835245251655579, -0.14336495101451874, -0.17000550031661987, -0.05383850634098053, 0.18139280378818512, 0.016865786164999008, 0.2060142159461975, 0.1637834906578064, 0.06419970095157623, -0.21679553389549255, 0.12245231121778488, 0.31778883934020996, 0.0929097980260849, -0.05203299969434738, 0.3663928210735321, 0.08037328720092773, -0.01821029931306839, 0.35917341709136963, 0.24719330668449402, 0.22780419886112213, -0.04869777336716652, 0.4381062686443329, -0.12486719340085983, 0.029269598424434662, 0.040879085659980774, -0.3164154589176178, -0.18999141454696655, -0.10230906307697296, 0.16913117468357086, 0.0362689271569252, 0.2131180763244629, -0.008910946547985077, -0.25116729736328125, -0.2523018419742584, 0.2345302850008011, -0.24229401350021362, 0.026563338935375214, -0.11783237010240555, 0.11001663655042648, -0.017566315829753876, -0.17180460691452026, 0.08063399791717529, 0.3837936520576477, 0.2663041949272156, 0.0322684571146965, -0.5151157379150391, -0.2940560579299927, -0.5803806781768799, 0.09987446665763855, -0.02959655039012432, 0.36184588074684143, 0.10228120535612106, 0.18120712041854858, 0.21470467746257782, -0.11195090413093567, 0.39091452956199646, -0.1343432366847992, -0.2980667054653168, 0.05613366514444351, 0.1621568500995636, -0.367140531539917, 0.23486101627349854, -0.04735125973820686, 0.2741597294807434, -0.2787133753299713, 0.31915926933288574, -0.1746150255203247, -0.12061123549938202, -0.22882138192653656, 0.36689209938049316, -0.44817596673965454, -0.12007684260606766, 0.08216908574104309, -0.42181074619293213, -0.18237285315990448, -0.30531710386276245, 0.15132227540016174, -0.19544941186904907, 0.006747648119926453, -0.12214992940425873, -0.3344157934188843, 0.07021068036556244, 0.18667080998420715, -0.2903485894203186, 0.224308043718338, -0.011988230049610138, -0.1412700116634369, 0.3285464942455292, 0.30462223291397095, 0.1024215966463089, 0.3054978549480438, -0.07957606017589569, -0.3287600576877594, -0.2732934057712555, -0.16700959205627441, 0.39816340804100037, -0.0980890542268753, 0.09665177762508392, -0.03204621374607086, 0.25336769223213196, -0.2423793226480484, -0.38612234592437744, -0.12944373488426208, 0.06608128547668457, 0.14740638434886932, -0.5840482711791992, -0.6087495684623718, 0.3970063328742981, 0.11336663365364075, 0.05494116246700287, 0.01389910839498043, 0.19545121490955353, -0.1718691885471344, 0.4643930494785309, 0.36571887135505676, 0.9020739793777466, -0.6044502258300781, 0.5735938549041748, -0.03853228688240051, -0.6457206010818481, 0.27661916613578796, -0.420430064201355, -0.027324751019477844, -0.37129801511764526, 0.11743922531604767, -0.1189441978931427, -0.009326085448265076, 0.3070976138114929, 0.23280951380729675, -0.22210414707660675, 0.179843932390213, -0.1137189120054245, -0.16957417130470276, 0.08383075147867203, 0.27919620275497437, -0.12142561376094818, -0.10393795371055603, -0.1601458489894867, 0.15066233277320862, -0.17813894152641296, -0.35964688658714294, 0.08953408896923065, -0.37300896644592285, -0.061066363006830215, 0.24023130536079407, -0.2900502681732178, -0.007062040269374847, -0.1904815435409546, 0.10237224400043488, -0.34043869376182556, -0.2851460874080658, 0.16273553669452667, 0.2513297200202942, 0.2861890196800232, 0.2359696328639984, -0.034743864089250565, -0.07711797207593918, -0.22712548077106476, 0.0297580286860466, 0.04668852314352989, -0.06158513203263283, 0.1257040947675705, 0.2127915322780609, -0.03251267969608307, 0.2309785634279251, -0.04464585706591606, -0.349972665309906, 0.11076711118221283, -0.026931975036859512, -0.04270513728260994, -0.2084442675113678, -0.23698529601097107, -0.11784151196479797, -0.16806083917617798, -0.14513888955116272, 0.09682859480381012, 0.4093707203865051, 0.3144993782043457, 0.48921626806259155, -0.047016073018312454, -0.06960135698318481, 0.07398612797260284, 0.07777833938598633, 0.015166722238063812, 0.06508476287126541, 0.2172192633152008, -0.038763873279094696, -0.24382516741752625, -0.22034388780593872, 0.6501060128211975, 0.17381146550178528, 0.005395181477069855, 0.20618993043899536, -0.27360066771507263, 0.1468949019908905, -0.22252485156059265, 0.014907491393387318, 0.09251734614372253, -0.2587205767631531, -0.2671196162700653, -0.41894012689590454, -0.36769843101501465, 0.18843765556812286, 0.3738775849342346, 0.27950042486190796, 0.13001501560211182, -0.2986118793487549, -0.2512315511703491, -0.10851947218179703, -0.19672229886054993, 0.08701527118682861, -0.0538908988237381, -0.056273069232702255, 0.07873763144016266, 0.2680082321166992, 0.21682049334049225, -0.307411253452301, 0.035042040050029755, -0.051960837095975876, 0.18760322034358978, -0.09964922815561295, -0.1900952160358429, 0.1305593103170395, 0.08667390048503876, -0.1253446340560913, -0.16877883672714233, -0.45268547534942627, -0.03053632751107216, -0.15218526124954224, -0.3153102397918701, 0.3631751537322998, -0.09663810580968857, 0.30086517333984375, 0.012590956874191761, 0.13850297033786774, -0.011398032307624817, -0.03357304260134697, 0.06143816560506821, 0.3263462483882904, -0.16980846226215363, 0.05865123122930527, 0.28631389141082764, -0.041973844170570374, -0.11887621879577637, 0.12448643893003464, 0.13706384599208832, -0.12318215519189835, 0.3291628658771515, -0.12666676938533783, -0.010935269296169281, -0.07543855905532837, 0.3813682496547699, 0.3408976197242737, -0.17690367996692657, 0.22753779590129852, 0.20486772060394287, 0.07869146019220352, 0.17299894988536835, -0.13411912322044373, 0.2587118148803711, -0.060392826795578, -0.11561466008424759, 0.11736512184143066, -0.13379688560962677, 0.09443727135658264, -0.3814758062362671, -0.3169582188129425, 0.058197956532239914, -0.12183412909507751, -0.1312621384859085, 0.25193357467651367, 0.16931720077991486, -0.11544780433177948, 0.0012944452464580536, 0.25675180554389954, 0.2531088590621948, 0.6264761090278625, 0.1446097493171692, 0.11175499111413956, 0.5608851313591003, 0.1677168905735016, 0.06371598690748215, 0.056395575404167175, 0.06642906367778778, -0.15126632153987885, 0.08795724809169769, 0.36255261301994324, 0.4243086278438568, 0.010428914800286293, -0.002009868621826172, -0.22193409502506256, 0.08303747326135635, 0.13123568892478943, -0.047490138560533524, -0.07559341937303543, -0.02965131774544716, -0.05099043250083923, 0.19685643911361694, -0.10944347083568573, -0.295399010181427, -0.43549180030822754, 0.0387590192258358, 0.19480234384536743, 0.48051685094833374, 0.07810786366462708, 0.3756708800792694, 0.10520350933074951, 0.1889464557170868, -0.24505138397216797, -0.25621581077575684, -0.0034824907779693604, 0.028407659381628036, -0.3446308970451355, 0.16362544894218445, 0.2867848575115204, 0.013455022126436234, -0.11088545620441437, 0.49248334765434265, -0.10116325318813324, -0.18189755082130432, 0.1060708612203598, 0.03413999453186989, 0.16403572261333466, -0.1392960101366043, 0.3932146728038788, 0.12269218266010284, 0.10942727327346802, 0.21093983948230743, 0.02131921797990799, -0.014472246170043945, -0.0988772064447403, 0.09224556386470795, -0.018854038789868355, -0.5013271570205688, -0.12793247401714325, -0.10395403206348419, -0.12719546258449554, -0.21566425263881683, 0.5050705671310425, -0.03525161370635033, 0.11248710751533508, -0.028967715799808502, 0.04823317378759384, 0.047404833137989044, 0.3016921579837799, 0.4544299244880676, 0.0897112488746643, -0.06951838731765747, 0.030858710408210754, -0.15950718522071838, -0.15044555068016052, -0.08182276785373688, -0.060745514929294586, -0.027946826070547104, 0.09460622072219849, 0.30621111392974854, 0.3246447741985321, -0.015457771718502045, 0.35015907883644104, -0.09662270545959473, 0.4746274948120117, -0.15297368168830872, -0.10951733589172363, 0.3460100293159485, 0.3962835967540741, 0.024095535278320312, -0.4002617597579956, 0.4055837392807007, 0.24992218613624573, 0.026937715709209442, -0.34915098547935486, 0.3835625648498535, -0.30141085386276245, -0.06134544685482979, 0.3309570252895355, 0.06962765008211136, -0.06063176319003105, -0.021439600735902786, -0.275247186422348, 0.26338130235671997, 0.3521862328052521, 0.09580743312835693, 0.31773656606674194, -0.0724048763513565, 0.34168165922164917, -0.2775280773639679, 0.16189712285995483, -0.08806619048118591, -0.24325993657112122, -0.5080467462539673, -0.04262389987707138, -0.27447307109832764, 0.10404521226882935, -0.11052532494068146, -0.023446710780262947, 0.16295157372951508, 0.2395678460597992, -0.22787567973136902, 0.21462221443653107, -0.129856675863266, 0.34454524517059326, -0.06002502143383026, -0.08698365092277527, -0.24439167976379395, 0.38534098863601685, -0.126839280128479, -0.044009894132614136, -0.02517816051840782, -0.44081977009773254, -0.01544489711523056, 0.33028286695480347, -0.2197275608778, 0.010537482798099518, 0.24050921201705933, -0.007413595914840698, 0.2687164545059204, -0.003945298492908478, 0.6607910990715027, -0.008085059933364391, -0.00021007657051086426, -0.2892731726169586, -0.38080132007598877 ]
https://github.com/huggingface/datasets/issues/1808
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`.
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
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.2098383605480194, 0.049269020557403564, -0.10766678303480148, 0.06642670929431915, 0.5001395344734192, 0.23276899755001068, -0.11725999414920807, 0.3574727773666382, 0.0007520765066146851, 0.1492747664451599, -0.16769781708717346, 0.05272434651851654, -0.3711422383785248, 0.4290179908275604, 0.30483877658843994, -0.11577840149402618, 0.0749911293387413, -0.13998593389987946, 0.00922798179090023, 0.10330875217914581, -0.17319366335868835, 0.003102237358689308, 0.18567991256713867, -0.10446999967098236, -0.007599890232086182, -0.4232765734195709, -0.21671637892723083, -0.21662205457687378, -0.19343538582324982, -0.11148073524236679, -0.18560190498828888, 0.002659429796040058, 0.33075761795043945, 0.037214748561382294, -0.00011813019955297932, -0.1858898252248764, -0.023094765841960907, -0.16155067086219788, -0.37875497341156006, -0.08890392631292343, -0.2690252661705017, -0.2977554202079773, 0.0627993792295456, -0.40238282084465027, 0.09588180482387543, -0.24719013273715973, 0.40783506631851196, -0.3925504684448242, 0.2636527121067047, 0.2429075390100479, 0.1875607967376709, -0.12894347310066223, 0.20890921354293823, 0.219478040933609, 0.09189863502979279, 0.6853556036949158, -0.3673555254936218, 0.027612801641225815, 0.09163515269756317, 0.1872600018978119, 0.4378952383995056, -0.2874051332473755, -0.13160492479801178, -0.34433168172836304, 0.34398186206817627, 0.05616683512926102, -0.0894862562417984, -0.0855565071105957, -0.011304049752652645, 0.22844737768173218, 0.8819462656974792, -0.5850656628608704, -0.49658915400505066, 0.05623393505811691, -0.0367572158575058, -0.08458063751459122, -0.13274133205413818, 0.49620699882507324, 0.0031534358859062195, 0.25503817200660706, -0.30794858932495117, -0.6020656824111938, -0.43526560068130493, 0.015818873420357704, 0.4432983100414276, -0.07230427861213684, -0.18967050313949585, -0.0486626997590065, 0.06515473127365112, 0.1475459784269333, 0.39596307277679443, -0.1175905242562294, -0.15204781293869019, 0.1304977536201477, -0.11745874583721161, -0.35535162687301636, -0.6162089705467224, -0.07904236763715744, 0.05511552840471268, 0.009114447981119156, 0.35315611958503723, -0.08138978481292725, 0.07632246613502502, 0.09859158098697662, 0.40057456493377686, 0.022674787789583206, 0.3162567615509033, -0.047976408153772354, 0.18185991048812866, -0.4053881764411926, 0.11731942743062973, -0.24355465173721313, 0.009250815957784653, 0.17488601803779602, 0.4574066996574402, -0.004727384075522423, -0.07689743489027023, -0.26489967107772827, 0.0425276905298233, -0.09640330076217651, -0.07804927974939346, -0.02681538835167885, -0.48728513717651367, 0.08152145147323608, 0.019443638622760773, -0.11353631317615509, 0.07426099479198456, 0.076662078499794, -0.013612650334835052, -0.1499936580657959, 0.20752370357513428, 0.13936255872249603, 0.030904226005077362, 0.17725098133087158, -0.18247830867767334, -0.04669974744319916, -0.088751882314682, -0.07200664281845093, 0.1316603422164917, -0.3586089015007019, 0.3845710754394531, -0.2493530958890915, 0.23367935419082642, 0.05826694145798683, 0.13742171227931976, 0.13787439465522766, -0.13520585000514984, -0.5077312588691711, -0.32943713665008545, 0.20138190686702728, -0.12248314172029495, -0.1518186330795288, -0.35337501764297485, 0.04415937885642052, -0.061738815158605576, -0.234173983335495, -0.6611486673355103, 0.1238480806350708, 0.12324440479278564, -0.03813602402806282, 0.09824413806200027, -0.07325410842895508, -0.15007580816745758, -0.49550652503967285, 0.027269311249256134, -0.03620470315217972, -0.6494601964950562, 0.18830537796020508, 0.1602354496717453, -0.09220629930496216, 0.13514038920402527, 0.3854275047779083, 0.25246647000312805, 0.5349969267845154, -0.005093656480312347, 0.19084979593753815, 0.27928367257118225, 0.005563989281654358, 0.15691211819648743, 0.39731520414352417, 0.12339582294225693, -0.1115938127040863, -0.26462456583976746, 0.46247318387031555, 0.5034454464912415, -0.18585380911827087, -0.17421706020832062, 0.04870208352804184, 0.1154661551117897, -0.014758970588445663, -0.17993274331092834, -0.3490654528141022, 0.01578718237578869, -0.06640762835741043, -0.23193612694740295, -0.04392332211136818, 0.5080922245979309, 0.09981435537338257, 0.24761509895324707, -0.343550443649292, 0.3596275746822357, 0.5124642252922058, 0.3237614631652832, 0.14293542504310608, -0.2747882008552551, -0.29208534955978394, -0.2649781107902527, -0.23043586313724518, 0.35059183835983276, -0.2540546953678131, 0.2577136754989624, -0.3342513144016266, 0.28628915548324585, 0.01894785463809967, 0.052389174699783325, 0.2952236831188202, 0.019920285791158676, -0.0535011813044548, -0.1708802729845047, 0.1500767022371292, -0.33437615633010864, 0.23043325543403625, -0.04698210209608078, -0.07085799425840378, -0.18064376711845398, 0.12904301285743713, 0.006797783076763153, -0.26356518268585205, 0.07304886728525162, -0.11152084171772003, -0.007496360689401627, -0.16513732075691223, 0.025362595915794373, 0.3055085241794586, 0.07561883330345154, 0.07463575899600983, 0.1550767868757248, 0.6029987335205078, 0.029101235792040825, -0.09242930263280869, 0.06181294471025467, 0.04570773243904114, 0.08420425653457642, -0.039724864065647125, -0.7325782775878906, 0.4708711504936218, -0.029904155060648918, -0.0231567844748497, -0.03810003027319908, 0.1662544161081314, 0.039130888879299164, 0.08945842832326889, 0.031824663281440735, 0.08887950330972672, 0.14037065207958221, 0.04022305831313133, -0.26415422558784485, -0.2821544408798218, -0.4200901985168457, 0.09446664154529572, 0.6116840839385986, -0.30299124121665955, 0.48913949728012085, -0.03241098299622536, 0.16293016076087952, -0.07354935258626938, 0.15906016528606415, 0.05995368957519531, 0.16384805738925934, 0.006339363753795624, 0.15231700241565704, -0.02003282681107521, -0.10028502345085144, 0.041452039033174515, 0.1809064745903015, -0.33304113149642944, 0.1086973026394844, -0.13668453693389893, -0.27326104044914246, -0.02630801685154438, -0.2412548065185547, 0.20500800013542175, -0.15105612576007843, 0.0028074774891138077, -0.2534695267677307, -0.0020915865898132324, -0.14399456977844238, 0.06820859014987946, -0.08929262310266495, 0.2924487590789795, -0.07376144826412201, -0.2302348017692566, -0.2821517288684845, 0.22170758247375488, 0.011072061955928802, -0.2715151906013489, 0.01906723529100418, 0.39490383863449097, -0.2087050825357437, 0.13667212426662445, -0.2805609703063965, -0.010477151721715927, 0.07722179591655731, 0.0013888105750083923, 0.1501663625240326, 0.21212947368621826, 0.5001713633537292, -0.24710091948509216, 0.23440919816493988, -0.36754465103149414, -0.0073753222823143005, -0.16004711389541626, -0.00637265108525753, 0.35195931792259216, -0.10124361515045166, 0.3395305275917053, -0.4360645115375519, 0.06279638409614563, -0.15895484387874603, 0.034930527210235596, -0.06507561355829239, -0.07430532574653625, 0.13259650766849518, -0.20864054560661316, -0.0840451568365097, 0.1942923665046692, -0.36297112703323364, -0.1273270845413208, 0.5436405539512634, -0.07024633884429932, 0.10532498359680176, -0.21414732933044434, 0.07463734596967697, -0.0660376250743866, -0.1418340504169464, -0.1646411418914795, 0.07448233664035797, -0.6360769867897034, 0.2971101701259613, -0.3602564334869385, -0.46701741218566895, 0.22323714196681976, 0.5383542776107788, -0.17804035544395447, 0.07474410533905029, -0.21418114006519318, 0.105123370885849, 0.010401397943496704, -0.23555774986743927, -0.03138461709022522, 0.2207895964384079, 0.03103143721818924, 0.08491650223731995, 0.17215749621391296, 0.06226028501987457, -0.18020732700824738, 0.031777698546648026, 0.3285798132419586, 0.2549755275249481, -0.03337026759982109, 0.28227317333221436, 0.22578135132789612, 0.014583079144358635, 0.25884532928466797, 0.22266262769699097, 0.1427476406097412, 0.022168247029185295, 0.41390129923820496, -0.032783143222332, 0.002206861972808838, 0.347581684589386, -0.30319103598594666, -0.29852494597435, -0.01962074264883995, 0.07200240343809128, 0.08487682789564133, 0.1824377328157425, 0.01747193932533264, -0.0904315710067749, -0.23483429849147797, 0.32696714997291565, 0.0030283164232969284, 0.1502864509820938, -0.15569117665290833, 0.1154048964381218, -0.11324670910835266, -0.13365142047405243, 0.07677638530731201, 0.35544246435165405, 0.33676618337631226, 0.10704873502254486, -0.655295729637146, -0.23153147101402283, -0.48529890179634094, 0.19070757925510406, 0.05015794187784195, 0.21191689372062683, -0.1267171949148178, 0.17478424310684204, 0.18910092115402222, -0.020310914143919945, 0.4097023010253906, -0.24297305941581726, -0.22986263036727905, 0.039861664175987244, 0.10589225590229034, -0.18997758626937866, 0.19492575526237488, -0.030750185251235962, 0.28448066115379333, -0.07846636325120926, 0.3948439061641693, -0.12247888743877411, -0.10468125343322754, -0.18357068300247192, 0.2617666721343994, -0.45138242840766907, -0.22741207480430603, 0.214445561170578, -0.28580960631370544, -0.07936061173677444, -0.2414369285106659, 0.14105725288391113, -0.2363557368516922, -0.06839685142040253, -0.18517157435417175, -0.26650217175483704, 0.13508544862270355, 0.19192005693912506, -0.34395185112953186, -0.01014966145157814, 0.02906477078795433, -0.2233085036277771, 0.28274887800216675, 0.3313414752483368, 0.09688227623701096, 0.07089734822511673, -0.14670246839523315, -0.22907590866088867, -0.07411879301071167, -0.32463639974594116, 0.5238560438156128, -0.11080031096935272, 0.18606963753700256, -0.07084813714027405, 0.33066534996032715, -0.1715368777513504, -0.3715519905090332, -0.20418958365917206, 0.05135907232761383, 0.15175826847553253, -0.7371712327003479, -0.4786502718925476, 0.19428226351737976, 0.01698363572359085, 0.06779049336910248, -0.03196335956454277, 0.10354524850845337, -0.19543267786502838, 0.2718692719936371, 0.5431915521621704, 0.9837470054626465, -0.6078290939331055, 0.41282859444618225, -0.16372856497764587, -0.5005875825881958, 0.32842007279396057, -0.4307345151901245, 0.06277482211589813, -0.355138897895813, -0.027647648006677628, -0.10781988501548767, 0.008821263909339905, 0.2886621057987213, 0.24762605130672455, -0.2568735182285309, 0.11144576966762543, 0.04296445846557617, -0.027601761743426323, 0.00652458518743515, 0.20420300960540771, -0.08991838246583939, -0.061659786850214005, -0.004014883190393448, 0.14601436257362366, -0.1574333906173706, -0.3205995559692383, -0.02017337456345558, -0.33278268575668335, 0.1395346224308014, 0.4025576114654541, -0.20201906561851501, -0.020928043872117996, -0.14630597829818726, 0.01504475623369217, -0.3082629442214966, -0.25173863768577576, 0.16474400460720062, 0.2179534137248993, 0.534599781036377, 0.2676827907562256, -0.008250118233263493, -0.21462346613407135, -0.21675527095794678, 0.06558910012245178, -0.022092511877417564, -0.035423777997493744, 0.09397216141223907, 0.16276457905769348, -0.07310204952955246, 0.30645015835762024, 0.028808020055294037, -0.3392609655857086, 0.022816792130470276, -0.07989747077226639, -0.08475761115550995, -0.2946386933326721, -0.11909456551074982, -0.07143551111221313, -0.0903848186135292, -0.08383764326572418, 0.08259911835193634, 0.4026634693145752, 0.38686779141426086, 0.6266883611679077, -0.11384314298629761, -0.024349264800548553, -0.02649722434580326, 0.07358081638813019, 0.08624393492937088, -0.10069602727890015, 0.0623360201716423, -0.00580645352602005, -0.27792683243751526, -0.24183309078216553, 0.6459100842475891, 0.022129006683826447, -0.07292591780424118, 0.2438969910144806, -0.3161087930202484, 0.1931048184633255, -0.18959805369377136, 0.10277597606182098, 0.06201170012354851, -0.30435168743133545, -0.3431844115257263, -0.2934035062789917, -0.18220239877700806, 0.10608810186386108, 0.3513621985912323, 0.27424857020378113, 0.1964375376701355, -0.2088550180196762, -0.19808131456375122, -0.0715915858745575, -0.19461068511009216, -0.01481553539633751, -0.08516094833612442, 0.020235441625118256, 0.16422773897647858, 0.2659723162651062, 0.06908595561981201, -0.2713039815425873, -0.03214574232697487, -0.013692155480384827, 0.15241464972496033, -0.07297506183385849, -0.2203810065984726, 0.14436817169189453, 0.06520397961139679, 0.06450517475605011, -0.06267353147268295, -0.3862687945365906, 0.0028052926063537598, -0.191751167178154, -0.30201396346092224, 0.4181835651397705, -0.11121240258216858, 0.31201332807540894, 0.08233509957790375, 0.15628346800804138, -0.001833111047744751, -0.03986646980047226, 0.2709318995475769, 0.435132771730423, -0.2582455277442932, 0.10652230679988861, 0.2574399411678314, -0.03516148030757904, -0.12068551778793335, 0.14193378388881683, 0.35855725407600403, -0.005471771117299795, 0.29189005494117737, -0.1320081502199173, 0.021015435457229614, 0.08174609392881393, 0.19229243695735931, 0.22302725911140442, -0.15138371288776398, 0.20953097939491272, 0.20219716429710388, 0.08948186784982681, 0.36661627888679504, -0.09804593026638031, 0.280993789434433, -0.021984891965985298, -0.18465688824653625, 0.17474600672721863, -0.08884686231613159, 0.015418663620948792, -0.04158369451761246, -0.3821219205856323, 0.06783623993396759, -0.20531968772411346, -0.165551096200943, 0.20341645181179047, 0.12726575136184692, -0.06631617248058319, -0.029896246269345284, 0.14655262231826782, 0.2336006462574005, 0.4929717481136322, 0.20623618364334106, 0.07325655966997147, 0.49208125472068787, 0.20021863281726837, 0.082468181848526, -0.09820740669965744, 0.1632051318883896, -0.14841318130493164, 0.11884428560733795, 0.4701644778251648, 0.4780252277851105, -0.2022807002067566, -0.1375739723443985, -0.2050093710422516, 0.060681164264678955, 0.07125579565763474, -0.07335317134857178, 0.04070741683244705, -0.16872099041938782, -0.018705613911151886, 0.255547434091568, 0.01809254288673401, -0.3080136179924011, -0.32897675037384033, 0.033421680331230164, 0.23333479464054108, 0.5413272380828857, 0.14092130959033966, 0.30440008640289307, -0.007762645371258259, 0.15016183257102966, -0.22064581513404846, -0.1622951179742813, -0.1543228030204773, 0.014948265627026558, -0.3174990713596344, 0.30994662642478943, 0.17035061120986938, 0.058845993131399155, 0.0753086507320404, 0.4118940234184265, -0.1623409241437912, -0.08314130455255508, 0.09348568320274353, 0.15005458891391754, 0.07177545130252838, -0.05242382362484932, 0.4647696018218994, 0.098800890147686, 0.16525349020957947, 0.3295045495033264, 0.005908981431275606, -0.12365217506885529, -0.13417190313339233, -0.02835383266210556, 0.12664920091629028, -0.46385908126831055, -0.17279496788978577, -0.13951364159584045, -0.10489844530820847, -0.10192398726940155, 0.4397474527359009, -0.13836891949176788, 0.10569112002849579, 0.06893493235111237, 0.04510652646422386, 0.08107338845729828, 0.31070470809936523, 0.5162875056266785, 0.03133031725883484, -0.06847192347049713, 0.0654623806476593, -0.0065769776701927185, 0.025294672697782516, 0.01634918712079525, 0.09625109285116196, -0.12077182531356812, 0.13536667823791504, 0.3248269855976105, 0.3486243784427643, 0.03824624419212341, 0.15839137136936188, -0.07539157569408417, 0.543031632900238, -0.11997031420469284, -0.1642114818096161, 0.33029696345329285, 0.38950374722480774, 0.007204964756965637, -0.39098697900772095, 0.5046799778938293, 0.28372642397880554, -0.013007238507270813, -0.42211443185806274, 0.41011613607406616, -0.2834380269050598, -0.2210484892129898, 0.34152206778526306, 0.06834901124238968, -0.10183517634868622, -0.01873069256544113, -0.21336780488491058, 0.23067639768123627, 0.3925395607948303, 0.1220635399222374, 0.23812341690063477, 0.07031653821468353, 0.24180011451244354, -0.3717210292816162, 0.0908147394657135, -0.14179863035678864, -0.1396600306034088, -0.4831587076187134, 0.17793911695480347, -0.14557522535324097, -0.011170096695423126, -0.14427106082439423, -0.16531698405742645, 0.3295234143733978, 0.19535018503665924, -0.2057490199804306, 0.2056867480278015, -0.19914200901985168, 0.5085464119911194, -0.1622636467218399, -0.09353581070899963, -0.26575785875320435, 0.24928796291351318, -0.16324886679649353, -0.0005455724895000458, -0.043802615255117416, -0.36207354068756104, -0.08300650864839554, 0.38406968116760254, -0.21081168949604034, 0.10241112112998962, 0.2996651232242584, -0.0099464301019907, 0.233229398727417, 0.05986565351486206, 0.5324204564094543, 0.10187970101833344, -0.051843564957380295, -0.235111266374588, -0.3200591206550598 ]
https://github.com/huggingface/datasets/issues/1805
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.
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
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.06904204189777374, -0.38878411054611206, -0.0696357935667038, 0.24682532250881195, 0.16422626376152039, 0.02776406705379486, 0.1784280389547348, 0.05411216616630554, 0.40896546840667725, 0.5476053357124329, -0.05009919032454491, 0.4959973692893982, 0.115793377161026, -0.12733493745326996, -0.26762664318084717, 0.05151056498289108, 0.08499462902545929, 0.01342242956161499, 0.021620575338602066, -0.2425849735736847, -0.5357054471969604, -0.04840286076068878, -0.19842593371868134, 0.049338988959789276, -0.03984129801392555, 0.018033528700470924, -0.033283233642578125, 0.09544773399829865, -0.058446235954761505, -0.45392554998397827, 0.4045755863189697, 0.2576848268508911, 0.2116614580154419, -0.013423383235931396, -0.00012667453847825527, 0.06790220737457275, 0.20534712076187134, -0.02125205099582672, -0.16462276875972748, 0.08675040304660797, -0.0015753954648971558, 0.3058413863182068, 0.2944120168685913, -0.35424935817718506, -0.2179248034954071, -0.25507035851478577, -0.05045614391565323, -0.13455571234226227, 0.06806498020887375, 0.19159534573554993, 0.06709267199039459, 0.14567913115024567, -0.11307264864444733, -0.1586889922618866, 0.22158512473106384, -0.010913599282503128, -0.062061745673418045, 0.16215017437934875, 0.27198851108551025, 0.3066602945327759, 0.2544572055339813, 0.2748858630657196, -0.2460707128047943, 0.03687281161546707, -0.07259960472583771, 0.0926399976015091, 0.3378049433231354, 0.09200814366340637, 0.15567205846309662, 0.09694638103246689, 0.2498125284910202, -0.27378225326538086, -0.4702078104019165, -0.41377291083335876, -0.061396192759275436, -0.15674874186515808, -0.2627948820590973, -0.5509217381477356, -0.017236899584531784, 0.24829238653182983, 0.12546299397945404, 0.1021859273314476, -0.06395642459392548, 0.5212545990943909, 0.41186076402664185, 0.03595537319779396, 0.014423847198486328, 0.2109336107969284, 0.10664106905460358, -0.05764836072921753, 0.13660341501235962, -0.13325312733650208, -0.02836841531097889, -0.13211992383003235, -0.21314875781536102, -0.12421447783708572, 0.4846384525299072, -0.2354145050048828, 0.24505819380283356, 0.08462615311145782, -0.12905849516391754, 0.4014526605606079, 0.06914156675338745, 0.10754980146884918, 0.16151739656925201, -0.11862674355506897, -0.09838692843914032, 0.03957238048315048, -0.11711730062961578, 0.08703558146953583, -0.16784882545471191, 0.11425751447677612, 0.02689962089061737, -0.055306319147348404, -0.6315291523933411, -0.012940931133925915, 0.32059475779533386, -0.14490289986133575, -0.10143233835697174, 0.25060683488845825, -0.6014735102653503, 0.34290874004364014, 0.13187023997306824, 0.5309944748878479, 0.01459774374961853, 0.11663633584976196, 0.1949886828660965, 0.24707768857479095, -0.2960154712200165, 0.42175084352493286, -0.2266983687877655, -0.042027540504932404, 0.0346689447760582, -0.05882062762975693, -0.12180709838867188, 0.47856801748275757, 0.2849894165992737, -0.260602205991745, 0.09783109277486801, -0.07848431169986725, 0.022725969552993774, -0.11066260933876038, 0.36406949162483215, 0.19701257348060608, -0.05336471647024155, 0.07728304713964462, 0.17100822925567627, -0.09544046968221664, -0.17448991537094116, 0.11748029291629791, 0.13840073347091675, -0.10213889181613922, 0.19039292633533478, 0.07096375524997711, -0.13898637890815735, -0.1317986249923706, -0.2130446881055832, 0.12119583785533905, -0.08783569186925888, 0.23695731163024902, 0.1870572566986084, -0.18788239359855652, -0.08760306984186172, -0.14860448241233826, 0.20903944969177246, 0.5161314606666565, -0.2350451499223709, -0.07585558295249939, 0.024494152516126633, 0.19517819583415985, 0.3501955270767212, 0.2010137140750885, -0.3267982006072998, 0.2561722993850708, 0.03712506592273712, 0.23221677541732788, 0.316365122795105, -0.44901856780052185, -0.6639243364334106, -0.09019959717988968, -0.07569922506809235, 0.03977334499359131, 0.3317386209964752, 0.09758951514959335, 0.37035199999809265, 0.2930629849433899, -0.14594700932502747, 0.5172799229621887, 0.16961607336997986, 0.04346755892038345, -0.26095569133758545, -0.3448406457901001, 0.023142002522945404, 0.12701432406902313, -0.07336822152137756, 0.16323840618133545, -0.04404836148023605, -0.26762592792510986, 0.36140140891075134, -0.15033748745918274, -0.10212825983762741, 0.2690657079219818, 0.5216954946517944, 0.21598699688911438, 0.21308933198451996, -0.20326370000839233, -0.08442626148462296, 0.12828528881072998, -0.1522228866815567, 0.022889642044901848, -0.07821647822856903, -0.20904794335365295, -0.013567499816417694, 0.19774918258190155, -0.3135470449924469, -0.17404873669147491, -0.07465219497680664, 0.15297748148441315, 0.28819945454597473, -0.13186247646808624, -0.09894542396068573, 0.04934325069189072, -0.33996647596359253, 0.20498019456863403, -0.5214465856552124, 0.4270997643470764, -0.09354795515537262, -0.3137364983558655, -0.18720179796218872, 0.2583496868610382, 0.013484903611242771, -0.15099522471427917, -0.15897607803344727, 0.10670289397239685, 0.47489598393440247, -0.40636110305786133, 0.17568787932395935, -0.30792075395584106, -0.019566483795642853, -0.10988876968622208, 0.11341472715139389, 0.009081896394491196, 0.14439718425273895, 0.21565820276737213, -0.00951535627245903, 0.6227204203605652, 0.37243279814720154, 0.15079890191555023, -0.07652706652879715, 0.18914712965488434, 0.14738106727600098, -0.15917298197746277, -0.05282888188958168, -0.5078773498535156, -0.18280771374702454, 0.3740830421447754, 0.11359721422195435, 0.02833005227148533, -0.44087740778923035, 0.4054226875305176, 0.24011719226837158, 0.06032417714595795, -0.11842770874500275, 0.1541837453842163, -0.05681433901190758, -0.036747001111507416, 0.02928936667740345, -0.21392619609832764, 0.1052958071231842, 0.3675740361213684, -0.2779196500778198, -0.32087332010269165, 0.008761953562498093, -0.04218846186995506, 0.06506191939115524, 0.3736089766025543, -0.042365580797195435, -0.2475411593914032, 0.09350930154323578, -0.005427774041891098, -0.384071946144104, -0.3060504198074341, -0.03811904042959213, 0.07016546279191971, -0.11144262552261353, 0.17439046502113342, -0.3749515414237976, -0.14921367168426514, 0.08720822632312775, -0.4578385353088379, 0.19163072109222412, -0.09812281280755997, 0.17391997575759888, 0.22585803270339966, -0.23704314231872559, 0.44666588306427, 0.11919769644737244, 0.15984603762626648, 0.05297709256410599, -0.19985905289649963, -0.12007644027471542, -0.17553335428237915, -0.45761698484420776, -0.09228958189487457, -0.2286258488893509, 0.4021475315093994, 0.1773945540189743, 0.2158045470714569, -0.09752148389816284, -0.2927092909812927, 0.02110198140144348, 0.028738247230648994, 0.14060774445533752, 0.20209214091300964, 0.18797054886817932, 0.04679875448346138, -0.23935043811798096, -0.11357033252716064, 0.07079410552978516, 0.16612978279590607, -0.20331275463104248, -0.1762377917766571, -0.04304216429591179, -0.08146379142999649, 0.10186292231082916, -0.2113613784313202, -0.2890198826789856, -0.22593720257282257, 0.15159554779529572, 0.09191511571407318, 0.10955369472503662, 0.02182074263691902, 0.3725823163986206, 0.055136557668447495, -0.20809872448444366, -0.10801424086093903, -0.2729108929634094, 0.009455487132072449, -0.07352668046951294, -0.04149963706731796, -0.28617703914642334, -0.5065015554428101, -0.3398021459579468, -0.23709461092948914, 0.19563668966293335, -0.2353994995355606, -0.3361148536205292, -0.34408310055732727, 0.15928970277309418, 0.15567146241664886, 0.14096148312091827, 0.3760395646095276, 0.22478219866752625, -0.08757441490888596, -0.1666591614484787, -0.30555322766304016, 0.44457370042800903, 0.14000239968299866, 0.08830024302005768, 0.10773350298404694, 0.40671756863594055, -0.18408243358135223, 0.527717113494873, 0.12478591501712799, -0.5209575891494751, 0.3717173933982849, -0.014029781334102154, 0.01587248407304287, -0.06754101067781448, -0.2851007878780365, 0.16566412150859833, 0.19252705574035645, -0.1816554069519043, 0.16265100240707397, -0.19840171933174133, 0.059168942272663116, 0.33942562341690063, 0.31978708505630493, -0.3819197416305542, -0.27683568000793457, -0.053733356297016144, -0.15951964259147644, -0.3160978853702545, 0.02526766061782837, 0.33398371934890747, -0.5367691516876221, 0.23682574927806854, 0.08284598588943481, 0.14890621602535248, 0.18797741830348969, -0.05669824033975601, -0.07691194117069244, -0.10680775344371796, -0.35940659046173096, 0.41494905948638916, 0.014454323798418045, 0.24012374877929688, 0.08461464941501617, -0.034012503921985626, 0.343458890914917, 0.06843210011720657, 0.957190215587616, -0.061479002237319946, -0.023951876908540726, 0.39764392375946045, -0.22147291898727417, -0.3634818494319916, 0.025664374232292175, -0.17715497314929962, 0.07975783944129944, 0.10192939639091492, 0.22994297742843628, -0.16012851893901825, -0.3377131223678589, 0.026532288640737534, 0.016738925129175186, -0.12575574219226837, 0.03941553831100464, -0.07083538174629211, -0.4167459309101105, -0.46632903814315796, 0.11469471454620361, -0.020214129239320755, 0.1422993540763855, 0.09586632251739502, -0.21130239963531494, -0.5041609406471252, -0.11018235236406326, -0.1364937722682953, 0.1517462134361267, 0.39362430572509766, 0.14543461799621582, 0.13112390041351318, 0.14259329438209534, 0.3486030101776123, 0.623842716217041, 0.22571799159049988, -0.07521788775920868, -0.21511903405189514, -0.006214385852217674, 0.1642845869064331, 0.09455615282058716, 0.42806726694107056, -0.0638238713145256, 0.4363096058368683, -0.04150792211294174, 0.12463448941707611, 0.006139606237411499, 0.22276628017425537, 0.22624808549880981, 0.21135637164115906, 0.05645135045051575, -0.4379889965057373, 0.5630466938018799, 0.021087095141410828, -0.17949147522449493, 0.3136001527309418, 0.16185033321380615, -0.25788795948028564, 1.0739575624465942, 0.22333034873008728, 1.0657089948654175, -0.0835496187210083, 0.22637884318828583, 0.19865421950817108, 0.06445498764514923, 0.4328969419002533, 0.12280547618865967, 0.1599917709827423, -0.3314410448074341, 0.25742366909980774, 0.007882833480834961, -0.3100056052207947, 0.14131999015808105, 0.2411958873271942, -0.08309206366539001, -0.09476310014724731, -0.21930031478405, -0.2675541937351227, -0.06948556005954742, 0.039206475019454956, 0.36478522419929504, -0.3496558964252472, -0.30845803022384644, -0.0315425768494606, 0.28542202711105347, 0.29282695055007935, 0.24883171916007996, -0.14911368489265442, -0.47247737646102905, -0.18387633562088013, -0.21596002578735352, 0.005299732089042664, -0.27755746245384216, 0.2701742947101593, 0.17104214429855347, -0.30572521686553955, -0.16933850944042206, 0.23805932700634003, 0.18919870257377625, -0.14772003889083862, -0.17465557157993317, 0.11698243021965027, 0.15543565154075623, -0.09744922816753387, -0.00898444652557373, -0.27513909339904785, 0.3801999092102051, 0.15564481914043427, -0.3932550847530365, 0.015331734903156757, 0.1589362621307373, -0.4387567639350891, -0.09044498205184937, -0.08017128705978394, -0.23098576068878174, -0.27916818857192993, -0.3515007197856903, -0.06574220955371857, -0.1390073001384735, -0.42861878871917725, -0.021883223205804825, 0.013056917116045952, -0.2057514488697052, 0.41522473096847534, -0.12011454254388809, -0.3386862277984619, -0.1725047379732132, 0.5766258239746094, 0.20496201515197754, 0.09537575393915176, 0.4988761246204376, 0.20451730489730835, -0.14762631058692932, -0.18616244196891785, -0.46980613470077515, 0.42440879344940186, 0.07368402928113937, 0.3030473291873932, -0.0764295905828476, -0.31452038884162903, -0.10987786948680878, -0.010932257398962975, 0.03224926069378853, -0.1338237076997757, -0.5415476560592651, -0.22277206182479858, -0.5453009009361267, 0.19932734966278076, 0.018919333815574646, 0.4727432429790497, -0.20540347695350647, 0.5167484283447266, -0.5072892904281616, -0.27561524510383606, -0.16703450679779053, -0.022107161581516266, -0.4664252996444702, 0.02347254753112793, -0.33027219772338867, -0.16918927431106567, 0.07720759510993958, 0.05150279402732849, 0.032448798418045044, -0.05112193897366524, -0.06588997691869736, -0.10555413365364075, -0.15735962986946106, 0.18042705953121185, 0.09316836297512054, -0.19175319373607635, -0.12359671294689178, -0.041864488273859024, -0.14710673689842224, -0.17900077998638153, 0.1822984665632248, 0.2753230333328247, -0.06500349938869476, 0.17344696819782257, 0.046439871191978455, 0.09533573687076569, 0.25194844603538513, 0.09385277330875397, -0.02966155856847763, 0.3096497058868408, 0.0970650315284729, 0.11753438413143158, -0.1214083880186081, -0.031148038804531097, -0.06392914801836014, 0.02335570752620697, -0.001580357551574707, -0.0470108687877655, -0.0850183367729187, -0.034483835101127625, -0.3594439923763275, 0.328960120677948, 0.2795446217060089, 0.5147303342819214, 0.08545233309268951, -0.23992270231246948, 0.24238961935043335, 0.04633194953203201, -0.211993008852005, -0.22850263118743896, 0.3535672724246979, -0.2673206627368927, 0.23388245701789856, 0.21015876531600952, -0.09037135541439056, 0.19812944531440735, -0.3148197531700134, -0.05228164792060852, 0.20384782552719116, 0.35052067041397095, 0.14751893281936646, 0.20917682349681854, 0.13170981407165527, 0.051564037799835205, 0.13663309812545776, 0.4851374924182892, 0.7115125060081482, 0.5667839050292969, -0.01098206639289856, 0.6284353733062744, -0.23398196697235107, 0.038772404193878174, 0.033012695610523224, -0.5802499055862427, 0.5933228135108948, 0.08162210881710052, -0.016070343554019928, 0.05523376539349556, 0.06653371453285217, 0.1697082817554474, 0.12200531363487244, -0.24251681566238403, -0.07678061723709106, 0.2856154143810272, -0.22198599576950073, -0.523971438407898, -0.16376423835754395, 0.013442456722259521, 0.054909735918045044, -0.10308404266834259, -0.004145816434174776, -0.2838755249977112, 0.18222734332084656, -0.18517766892910004, -0.24036207795143127, -0.2812502682209015, -0.2857099771499634, -0.0640089213848114, 0.13659054040908813, -0.07531282305717468, -0.10241110622882843, -0.10063650459051132, -0.14163710176944733, -0.11631670594215393, 0.05885455012321472, 0.09470435976982117, 0.14169101417064667, -0.5192406177520752, -0.037828776985406876, -0.05737346410751343, -0.1766136884689331, -0.20650923252105713, 0.023323405534029007, -0.163797527551651, -0.02126414142549038, 0.19774095714092255, -0.006110547110438347, -0.07587380707263947, -0.3445659279823303, 0.23219694197177887, 0.3549710810184479, 0.03815554454922676, 0.09397205710411072, 0.06182682886719704, 0.07818394899368286, 0.08916810154914856, -0.09187095612287521, -0.2969633638858795, -0.09764531254768372, 0.33265405893325806, -0.0406775064766407, 0.19271862506866455, 0.16474983096122742, 0.0005436763167381287, -0.24791690707206726, 0.3903944790363312, 0.392421692609787, 0.3247528076171875, -0.21644793450832367, 0.34763115644454956, -0.036235012114048004, 0.21040849387645721, -0.0479443296790123, -0.3185999095439911, 0.3779135048389435, 0.18474683165550232, 0.04281497001647949, -0.0657225102186203, 0.014569494873285294, 0.3071998655796051, 0.32817861437797546, 0.6772940754890442, -0.270236611366272, -0.18753354251384735, -0.3799324035644531, 0.04308684170246124, 0.28654080629348755, -0.30736368894577026, -0.07781101763248444, 0.04722675681114197, -0.1265610158443451, -0.3398207128047943, -0.007095113396644592, 0.10334604978561401, -0.1698276251554489, 0.2588123083114624, 0.31623727083206177, 0.1465732306241989, -0.07439786195755005, -0.12184998393058777, -0.12944085896015167, -0.2518589496612549, -0.2222987711429596, -0.2623870372772217, -0.17957556247711182, 0.1798289716243744, -0.09648359566926956, -0.09733559191226959, -0.16712667047977448, 0.017644613981246948, 0.39912039041519165, -0.20932772755622864, -0.16689252853393555, 0.3177429139614105, -0.23154467344284058, 0.05972205102443695, 0.04466308653354645, 0.22182321548461914, -0.005771815776824951, 0.4940703511238098, -0.28556913137435913, -0.07852380722761154, 0.78602135181427, -0.3918513059616089, -0.022845592349767685, -0.20928439497947693, 0.24637696146965027, -0.0842902809381485, -0.16694524884223938, -0.23458349704742432, 0.008381962776184082, 0.2062712162733078, 0.001896081492304802, -0.30338728427886963, 0.06009999290108681, 0.4667137563228607, -0.07100804150104523, -0.14606031775474548, 0.393997460603714, 0.19481468200683594, 0.1731727421283722, 0.11242543905973434, -0.20699867606163025 ]
https://github.com/huggingface/datasets/issues/1805
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!
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
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.06904204189777374, -0.38878411054611206, -0.0696357935667038, 0.24682532250881195, 0.16422626376152039, 0.02776406705379486, 0.1784280389547348, 0.05411216616630554, 0.40896546840667725, 0.5476053357124329, -0.05009919032454491, 0.4959973692893982, 0.115793377161026, -0.12733493745326996, -0.26762664318084717, 0.05151056498289108, 0.08499462902545929, 0.01342242956161499, 0.021620575338602066, -0.2425849735736847, -0.5357054471969604, -0.04840286076068878, -0.19842593371868134, 0.049338988959789276, -0.03984129801392555, 0.018033528700470924, -0.033283233642578125, 0.09544773399829865, -0.058446235954761505, -0.45392554998397827, 0.4045755863189697, 0.2576848268508911, 0.2116614580154419, -0.013423383235931396, -0.00012667453847825527, 0.06790220737457275, 0.20534712076187134, -0.02125205099582672, -0.16462276875972748, 0.08675040304660797, -0.0015753954648971558, 0.3058413863182068, 0.2944120168685913, -0.35424935817718506, -0.2179248034954071, -0.25507035851478577, -0.05045614391565323, -0.13455571234226227, 0.06806498020887375, 0.19159534573554993, 0.06709267199039459, 0.14567913115024567, -0.11307264864444733, -0.1586889922618866, 0.22158512473106384, -0.010913599282503128, -0.062061745673418045, 0.16215017437934875, 0.27198851108551025, 0.3066602945327759, 0.2544572055339813, 0.2748858630657196, -0.2460707128047943, 0.03687281161546707, -0.07259960472583771, 0.0926399976015091, 0.3378049433231354, 0.09200814366340637, 0.15567205846309662, 0.09694638103246689, 0.2498125284910202, -0.27378225326538086, -0.4702078104019165, -0.41377291083335876, -0.061396192759275436, -0.15674874186515808, -0.2627948820590973, -0.5509217381477356, -0.017236899584531784, 0.24829238653182983, 0.12546299397945404, 0.1021859273314476, -0.06395642459392548, 0.5212545990943909, 0.41186076402664185, 0.03595537319779396, 0.014423847198486328, 0.2109336107969284, 0.10664106905460358, -0.05764836072921753, 0.13660341501235962, -0.13325312733650208, -0.02836841531097889, -0.13211992383003235, -0.21314875781536102, -0.12421447783708572, 0.4846384525299072, -0.2354145050048828, 0.24505819380283356, 0.08462615311145782, -0.12905849516391754, 0.4014526605606079, 0.06914156675338745, 0.10754980146884918, 0.16151739656925201, -0.11862674355506897, -0.09838692843914032, 0.03957238048315048, -0.11711730062961578, 0.08703558146953583, -0.16784882545471191, 0.11425751447677612, 0.02689962089061737, -0.055306319147348404, -0.6315291523933411, -0.012940931133925915, 0.32059475779533386, -0.14490289986133575, -0.10143233835697174, 0.25060683488845825, -0.6014735102653503, 0.34290874004364014, 0.13187023997306824, 0.5309944748878479, 0.01459774374961853, 0.11663633584976196, 0.1949886828660965, 0.24707768857479095, -0.2960154712200165, 0.42175084352493286, -0.2266983687877655, -0.042027540504932404, 0.0346689447760582, -0.05882062762975693, -0.12180709838867188, 0.47856801748275757, 0.2849894165992737, -0.260602205991745, 0.09783109277486801, -0.07848431169986725, 0.022725969552993774, -0.11066260933876038, 0.36406949162483215, 0.19701257348060608, -0.05336471647024155, 0.07728304713964462, 0.17100822925567627, -0.09544046968221664, -0.17448991537094116, 0.11748029291629791, 0.13840073347091675, -0.10213889181613922, 0.19039292633533478, 0.07096375524997711, -0.13898637890815735, -0.1317986249923706, -0.2130446881055832, 0.12119583785533905, -0.08783569186925888, 0.23695731163024902, 0.1870572566986084, -0.18788239359855652, -0.08760306984186172, -0.14860448241233826, 0.20903944969177246, 0.5161314606666565, -0.2350451499223709, -0.07585558295249939, 0.024494152516126633, 0.19517819583415985, 0.3501955270767212, 0.2010137140750885, -0.3267982006072998, 0.2561722993850708, 0.03712506592273712, 0.23221677541732788, 0.316365122795105, -0.44901856780052185, -0.6639243364334106, -0.09019959717988968, -0.07569922506809235, 0.03977334499359131, 0.3317386209964752, 0.09758951514959335, 0.37035199999809265, 0.2930629849433899, -0.14594700932502747, 0.5172799229621887, 0.16961607336997986, 0.04346755892038345, -0.26095569133758545, -0.3448406457901001, 0.023142002522945404, 0.12701432406902313, -0.07336822152137756, 0.16323840618133545, -0.04404836148023605, -0.26762592792510986, 0.36140140891075134, -0.15033748745918274, -0.10212825983762741, 0.2690657079219818, 0.5216954946517944, 0.21598699688911438, 0.21308933198451996, -0.20326370000839233, -0.08442626148462296, 0.12828528881072998, -0.1522228866815567, 0.022889642044901848, -0.07821647822856903, -0.20904794335365295, -0.013567499816417694, 0.19774918258190155, -0.3135470449924469, -0.17404873669147491, -0.07465219497680664, 0.15297748148441315, 0.28819945454597473, -0.13186247646808624, -0.09894542396068573, 0.04934325069189072, -0.33996647596359253, 0.20498019456863403, -0.5214465856552124, 0.4270997643470764, -0.09354795515537262, -0.3137364983558655, -0.18720179796218872, 0.2583496868610382, 0.013484903611242771, -0.15099522471427917, -0.15897607803344727, 0.10670289397239685, 0.47489598393440247, -0.40636110305786133, 0.17568787932395935, -0.30792075395584106, -0.019566483795642853, -0.10988876968622208, 0.11341472715139389, 0.009081896394491196, 0.14439718425273895, 0.21565820276737213, -0.00951535627245903, 0.6227204203605652, 0.37243279814720154, 0.15079890191555023, -0.07652706652879715, 0.18914712965488434, 0.14738106727600098, -0.15917298197746277, -0.05282888188958168, -0.5078773498535156, -0.18280771374702454, 0.3740830421447754, 0.11359721422195435, 0.02833005227148533, -0.44087740778923035, 0.4054226875305176, 0.24011719226837158, 0.06032417714595795, -0.11842770874500275, 0.1541837453842163, -0.05681433901190758, -0.036747001111507416, 0.02928936667740345, -0.21392619609832764, 0.1052958071231842, 0.3675740361213684, -0.2779196500778198, -0.32087332010269165, 0.008761953562498093, -0.04218846186995506, 0.06506191939115524, 0.3736089766025543, -0.042365580797195435, -0.2475411593914032, 0.09350930154323578, -0.005427774041891098, -0.384071946144104, -0.3060504198074341, -0.03811904042959213, 0.07016546279191971, -0.11144262552261353, 0.17439046502113342, -0.3749515414237976, -0.14921367168426514, 0.08720822632312775, -0.4578385353088379, 0.19163072109222412, -0.09812281280755997, 0.17391997575759888, 0.22585803270339966, -0.23704314231872559, 0.44666588306427, 0.11919769644737244, 0.15984603762626648, 0.05297709256410599, -0.19985905289649963, -0.12007644027471542, -0.17553335428237915, -0.45761698484420776, -0.09228958189487457, -0.2286258488893509, 0.4021475315093994, 0.1773945540189743, 0.2158045470714569, -0.09752148389816284, -0.2927092909812927, 0.02110198140144348, 0.028738247230648994, 0.14060774445533752, 0.20209214091300964, 0.18797054886817932, 0.04679875448346138, -0.23935043811798096, -0.11357033252716064, 0.07079410552978516, 0.16612978279590607, -0.20331275463104248, -0.1762377917766571, -0.04304216429591179, -0.08146379142999649, 0.10186292231082916, -0.2113613784313202, -0.2890198826789856, -0.22593720257282257, 0.15159554779529572, 0.09191511571407318, 0.10955369472503662, 0.02182074263691902, 0.3725823163986206, 0.055136557668447495, -0.20809872448444366, -0.10801424086093903, -0.2729108929634094, 0.009455487132072449, -0.07352668046951294, -0.04149963706731796, -0.28617703914642334, -0.5065015554428101, -0.3398021459579468, -0.23709461092948914, 0.19563668966293335, -0.2353994995355606, -0.3361148536205292, -0.34408310055732727, 0.15928970277309418, 0.15567146241664886, 0.14096148312091827, 0.3760395646095276, 0.22478219866752625, -0.08757441490888596, -0.1666591614484787, -0.30555322766304016, 0.44457370042800903, 0.14000239968299866, 0.08830024302005768, 0.10773350298404694, 0.40671756863594055, -0.18408243358135223, 0.527717113494873, 0.12478591501712799, -0.5209575891494751, 0.3717173933982849, -0.014029781334102154, 0.01587248407304287, -0.06754101067781448, -0.2851007878780365, 0.16566412150859833, 0.19252705574035645, -0.1816554069519043, 0.16265100240707397, -0.19840171933174133, 0.059168942272663116, 0.33942562341690063, 0.31978708505630493, -0.3819197416305542, -0.27683568000793457, -0.053733356297016144, -0.15951964259147644, -0.3160978853702545, 0.02526766061782837, 0.33398371934890747, -0.5367691516876221, 0.23682574927806854, 0.08284598588943481, 0.14890621602535248, 0.18797741830348969, -0.05669824033975601, -0.07691194117069244, -0.10680775344371796, -0.35940659046173096, 0.41494905948638916, 0.014454323798418045, 0.24012374877929688, 0.08461464941501617, -0.034012503921985626, 0.343458890914917, 0.06843210011720657, 0.957190215587616, -0.061479002237319946, -0.023951876908540726, 0.39764392375946045, -0.22147291898727417, -0.3634818494319916, 0.025664374232292175, -0.17715497314929962, 0.07975783944129944, 0.10192939639091492, 0.22994297742843628, -0.16012851893901825, -0.3377131223678589, 0.026532288640737534, 0.016738925129175186, -0.12575574219226837, 0.03941553831100464, -0.07083538174629211, -0.4167459309101105, -0.46632903814315796, 0.11469471454620361, -0.020214129239320755, 0.1422993540763855, 0.09586632251739502, -0.21130239963531494, -0.5041609406471252, -0.11018235236406326, -0.1364937722682953, 0.1517462134361267, 0.39362430572509766, 0.14543461799621582, 0.13112390041351318, 0.14259329438209534, 0.3486030101776123, 0.623842716217041, 0.22571799159049988, -0.07521788775920868, -0.21511903405189514, -0.006214385852217674, 0.1642845869064331, 0.09455615282058716, 0.42806726694107056, -0.0638238713145256, 0.4363096058368683, -0.04150792211294174, 0.12463448941707611, 0.006139606237411499, 0.22276628017425537, 0.22624808549880981, 0.21135637164115906, 0.05645135045051575, -0.4379889965057373, 0.5630466938018799, 0.021087095141410828, -0.17949147522449493, 0.3136001527309418, 0.16185033321380615, -0.25788795948028564, 1.0739575624465942, 0.22333034873008728, 1.0657089948654175, -0.0835496187210083, 0.22637884318828583, 0.19865421950817108, 0.06445498764514923, 0.4328969419002533, 0.12280547618865967, 0.1599917709827423, -0.3314410448074341, 0.25742366909980774, 0.007882833480834961, -0.3100056052207947, 0.14131999015808105, 0.2411958873271942, -0.08309206366539001, -0.09476310014724731, -0.21930031478405, -0.2675541937351227, -0.06948556005954742, 0.039206475019454956, 0.36478522419929504, -0.3496558964252472, -0.30845803022384644, -0.0315425768494606, 0.28542202711105347, 0.29282695055007935, 0.24883171916007996, -0.14911368489265442, -0.47247737646102905, -0.18387633562088013, -0.21596002578735352, 0.005299732089042664, -0.27755746245384216, 0.2701742947101593, 0.17104214429855347, -0.30572521686553955, -0.16933850944042206, 0.23805932700634003, 0.18919870257377625, -0.14772003889083862, -0.17465557157993317, 0.11698243021965027, 0.15543565154075623, -0.09744922816753387, -0.00898444652557373, -0.27513909339904785, 0.3801999092102051, 0.15564481914043427, -0.3932550847530365, 0.015331734903156757, 0.1589362621307373, -0.4387567639350891, -0.09044498205184937, -0.08017128705978394, -0.23098576068878174, -0.27916818857192993, -0.3515007197856903, -0.06574220955371857, -0.1390073001384735, -0.42861878871917725, -0.021883223205804825, 0.013056917116045952, -0.2057514488697052, 0.41522473096847534, -0.12011454254388809, -0.3386862277984619, -0.1725047379732132, 0.5766258239746094, 0.20496201515197754, 0.09537575393915176, 0.4988761246204376, 0.20451730489730835, -0.14762631058692932, -0.18616244196891785, -0.46980613470077515, 0.42440879344940186, 0.07368402928113937, 0.3030473291873932, -0.0764295905828476, -0.31452038884162903, -0.10987786948680878, -0.010932257398962975, 0.03224926069378853, -0.1338237076997757, -0.5415476560592651, -0.22277206182479858, -0.5453009009361267, 0.19932734966278076, 0.018919333815574646, 0.4727432429790497, -0.20540347695350647, 0.5167484283447266, -0.5072892904281616, -0.27561524510383606, -0.16703450679779053, -0.022107161581516266, -0.4664252996444702, 0.02347254753112793, -0.33027219772338867, -0.16918927431106567, 0.07720759510993958, 0.05150279402732849, 0.032448798418045044, -0.05112193897366524, -0.06588997691869736, -0.10555413365364075, -0.15735962986946106, 0.18042705953121185, 0.09316836297512054, -0.19175319373607635, -0.12359671294689178, -0.041864488273859024, -0.14710673689842224, -0.17900077998638153, 0.1822984665632248, 0.2753230333328247, -0.06500349938869476, 0.17344696819782257, 0.046439871191978455, 0.09533573687076569, 0.25194844603538513, 0.09385277330875397, -0.02966155856847763, 0.3096497058868408, 0.0970650315284729, 0.11753438413143158, -0.1214083880186081, -0.031148038804531097, -0.06392914801836014, 0.02335570752620697, -0.001580357551574707, -0.0470108687877655, -0.0850183367729187, -0.034483835101127625, -0.3594439923763275, 0.328960120677948, 0.2795446217060089, 0.5147303342819214, 0.08545233309268951, -0.23992270231246948, 0.24238961935043335, 0.04633194953203201, -0.211993008852005, -0.22850263118743896, 0.3535672724246979, -0.2673206627368927, 0.23388245701789856, 0.21015876531600952, -0.09037135541439056, 0.19812944531440735, -0.3148197531700134, -0.05228164792060852, 0.20384782552719116, 0.35052067041397095, 0.14751893281936646, 0.20917682349681854, 0.13170981407165527, 0.051564037799835205, 0.13663309812545776, 0.4851374924182892, 0.7115125060081482, 0.5667839050292969, -0.01098206639289856, 0.6284353733062744, -0.23398196697235107, 0.038772404193878174, 0.033012695610523224, -0.5802499055862427, 0.5933228135108948, 0.08162210881710052, -0.016070343554019928, 0.05523376539349556, 0.06653371453285217, 0.1697082817554474, 0.12200531363487244, -0.24251681566238403, -0.07678061723709106, 0.2856154143810272, -0.22198599576950073, -0.523971438407898, -0.16376423835754395, 0.013442456722259521, 0.054909735918045044, -0.10308404266834259, -0.004145816434174776, -0.2838755249977112, 0.18222734332084656, -0.18517766892910004, -0.24036207795143127, -0.2812502682209015, -0.2857099771499634, -0.0640089213848114, 0.13659054040908813, -0.07531282305717468, -0.10241110622882843, -0.10063650459051132, -0.14163710176944733, -0.11631670594215393, 0.05885455012321472, 0.09470435976982117, 0.14169101417064667, -0.5192406177520752, -0.037828776985406876, -0.05737346410751343, -0.1766136884689331, -0.20650923252105713, 0.023323405534029007, -0.163797527551651, -0.02126414142549038, 0.19774095714092255, -0.006110547110438347, -0.07587380707263947, -0.3445659279823303, 0.23219694197177887, 0.3549710810184479, 0.03815554454922676, 0.09397205710411072, 0.06182682886719704, 0.07818394899368286, 0.08916810154914856, -0.09187095612287521, -0.2969633638858795, -0.09764531254768372, 0.33265405893325806, -0.0406775064766407, 0.19271862506866455, 0.16474983096122742, 0.0005436763167381287, -0.24791690707206726, 0.3903944790363312, 0.392421692609787, 0.3247528076171875, -0.21644793450832367, 0.34763115644454956, -0.036235012114048004, 0.21040849387645721, -0.0479443296790123, -0.3185999095439911, 0.3779135048389435, 0.18474683165550232, 0.04281497001647949, -0.0657225102186203, 0.014569494873285294, 0.3071998655796051, 0.32817861437797546, 0.6772940754890442, -0.270236611366272, -0.18753354251384735, -0.3799324035644531, 0.04308684170246124, 0.28654080629348755, -0.30736368894577026, -0.07781101763248444, 0.04722675681114197, -0.1265610158443451, -0.3398207128047943, -0.007095113396644592, 0.10334604978561401, -0.1698276251554489, 0.2588123083114624, 0.31623727083206177, 0.1465732306241989, -0.07439786195755005, -0.12184998393058777, -0.12944085896015167, -0.2518589496612549, -0.2222987711429596, -0.2623870372772217, -0.17957556247711182, 0.1798289716243744, -0.09648359566926956, -0.09733559191226959, -0.16712667047977448, 0.017644613981246948, 0.39912039041519165, -0.20932772755622864, -0.16689252853393555, 0.3177429139614105, -0.23154467344284058, 0.05972205102443695, 0.04466308653354645, 0.22182321548461914, -0.005771815776824951, 0.4940703511238098, -0.28556913137435913, -0.07852380722761154, 0.78602135181427, -0.3918513059616089, -0.022845592349767685, -0.20928439497947693, 0.24637696146965027, -0.0842902809381485, -0.16694524884223938, -0.23458349704742432, 0.008381962776184082, 0.2062712162733078, 0.001896081492304802, -0.30338728427886963, 0.06009999290108681, 0.4667137563228607, -0.07100804150104523, -0.14606031775474548, 0.393997460603714, 0.19481468200683594, 0.1731727421283722, 0.11242543905973434, -0.20699867606163025 ]
https://github.com/huggingface/datasets/issues/1803
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?
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.
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.4054940938949585, 0.05864456295967102, -0.07997146993875504, 0.13153260946273804, -0.07969397306442261, -0.1776915192604065, 0.24417473375797272, 0.4918093979358673, -0.2313987761735916, 0.1801937222480774, 0.08149372041225433, 0.055089276283979416, 0.12508581578731537, -0.10075682401657104, 0.13072563707828522, -0.2734067142009735, 0.08074153959751129, 0.12484587728977203, -0.075132355093956, -0.0345287099480629, 0.024030029773712158, -0.19028708338737488, -0.3486270308494568, 0.01847013272345066, -0.06632713973522186, -0.22407229244709015, -0.23070652782917023, 0.10720628499984741, -0.16585059463977814, -0.41739481687545776, -0.05953609570860863, -0.15281875431537628, 0.2299298793077469, 0.42703065276145935, -0.0001130733362515457, 0.016405045986175537, 0.22793085873126984, 0.08941761404275894, -0.19974707067012787, 0.18293386697769165, 0.17480778694152832, -0.2838543653488159, 0.08687463402748108, -0.4097665250301361, -0.047153912484645844, -0.29719820618629456, 0.09342809021472931, 0.018900558352470398, -0.04125330224633217, 0.30897608399391174, 0.14036434888839722, 0.5131548047065735, -0.19170431792736053, -0.13366317749023438, 0.6230674386024475, 0.2051520049571991, -0.35063010454177856, 0.5299631357192993, 0.5806369781494141, -0.048799797892570496, -0.3053150773048401, 0.13614043593406677, -0.08144412189722061, 0.27014103531837463, 0.03702244907617569, 0.19797302782535553, -0.11280506104230881, 0.1795916110277176, 0.1238103061914444, 0.40888869762420654, 0.3083905279636383, -0.0893915444612503, -0.3148863911628723, -0.29201847314834595, -0.05692819133400917, -0.23329341411590576, 0.02030758373439312, 0.3264191448688507, -0.2583793103694916, 0.27134203910827637, -0.31377601623535156, 0.15477809309959412, -0.10565085709095001, 0.17955169081687927, -0.15115892887115479, -0.06861568987369537, 0.11505076289176941, 0.1985105276107788, 0.09379588067531586, 0.013312960043549538, 0.15119320154190063, -0.16962134838104248, 0.028405994176864624, -0.05211064592003822, -0.28830450773239136, -0.08815469592809677, 0.15566349029541016, 0.17557862401008606, 0.2685055136680603, 0.1593102216720581, 0.4223208725452423, 0.11828382313251495, 0.26519376039505005, 0.09436211735010147, 0.045135658234357834, -0.009021654725074768, -0.2695648968219757, -0.0009783506393432617, 0.3478800356388092, 0.27530014514923096, -0.29451650381088257, 0.020877810195088387, -0.23832109570503235, -0.18445411324501038, 0.18156294524669647, -0.19732964038848877, -0.02745353803038597, -0.13371670246124268, 0.004323095083236694, -0.08730469644069672, -0.34211423993110657, -0.12782281637191772, -0.02655736729502678, 0.4784686267375946, -0.18346554040908813, -0.026571981608867645, -0.21266698837280273, 0.1222238689661026, -0.33534276485443115, -0.2540249526500702, -0.12431260943412781, -0.18833565711975098, -0.16008014976978302, 0.2303076684474945, 0.10979539155960083, 0.05609757453203201, 0.302073210477829, 0.05854004621505737, -0.1985151469707489, 0.2419624626636505, 0.3923713266849518, -0.18086576461791992, 0.10445626080036163, 0.01975482888519764, 0.01125546544790268, 0.06353192776441574, -0.16374002397060394, 0.24476408958435059, -0.3910898268222809, 0.19727033376693726, -0.19535666704177856, -0.338478147983551, 0.030639303848147392, 0.09199307858943939, -0.10569539666175842, -0.09976009279489517, -0.2270810753107071, 0.2462453544139862, -0.06942219287157059, -0.19974610209465027, -0.07743752002716064, -0.09419365972280502, 0.04029016196727753, -0.1531328707933426, 0.14130035042762756, 0.07762721180915833, -0.2506592869758606, 0.2018509954214096, -0.045186564326286316, 0.39703473448753357, 0.2543901205062866, 0.5308362245559692, -0.5031033754348755, 0.16236108541488647, -0.13277870416641235, 0.2966160178184509, 0.23202365636825562, -0.028132125735282898, -0.6667609214782715, 0.4973527789115906, -0.004258513450622559, 0.024189144372940063, 0.27248430252075195, 0.16171233355998993, 0.35167819261550903, 0.10784820467233658, -0.049062397330999374, 0.38371169567108154, 0.1839478760957718, 0.22793084383010864, -0.34009963274002075, -0.23031026124954224, -0.048727307468652725, 0.34797465801239014, -0.32447317242622375, -0.15712136030197144, 0.3112511932849884, -0.36459723114967346, 0.4906599819660187, -0.2065640389919281, -0.18362651765346527, 0.25097835063934326, 0.08702370524406433, -0.27774563431739807, 0.11834870278835297, 0.0964876115322113, 0.08594359457492828, 0.2421765774488449, -0.18948686122894287, -0.01846477761864662, 0.045090243220329285, -0.18880867958068848, -0.07221528887748718, 0.06196320801973343, -0.055260129272937775, -0.04738536477088928, -0.044897157698869705, -0.09183019399642944, 0.3306875228881836, -0.0035314634442329407, 0.16473346948623657, -0.16320596635341644, -0.26933732628822327, -0.009445738047361374, -0.26261866092681885, 0.07929285615682602, 0.09506836533546448, -0.12131043523550034, 0.009306341409683228, -0.24925285577774048, -0.08842380344867706, -0.0017328672111034393, -0.15193742513656616, 0.32752764225006104, 0.15022897720336914, 0.15024754405021667, 0.22353094816207886, 0.15224775671958923, 0.14195677638053894, -0.08493118733167648, 0.38797393441200256, 0.2968662679195404, 0.07531556487083435, 0.03652622550725937, -0.40534746646881104, 0.526332437992096, 0.39331290125846863, 0.3160548508167267, 0.2904031276702881, -0.3733907639980316, 0.16444456577301025, 0.0483798086643219, 0.11050234735012054, 0.4106385409832001, 0.2937985360622406, 0.2421559989452362, 0.548956036567688, 0.166325643658638, -0.31619733572006226, 0.11558254808187485, 0.450613796710968, -0.24960139393806458, 0.018042195588350296, 0.18730460107326508, -0.4217131733894348, -0.18561717867851257, 0.370215505361557, -0.15096884965896606, 0.32658034563064575, 0.3312530815601349, 0.16064447164535522, -0.12395542860031128, 0.027443118393421173, -0.2904406785964966, 0.26255032420158386, 0.0967947393655777, 0.14140835404396057, -0.22010822594165802, 0.4368430972099304, -0.09200608730316162, -0.24601098895072937, -0.3815978765487671, -0.03920785337686539, 0.19213199615478516, -0.12640109658241272, 0.30729907751083374, -0.09829853475093842, 0.05361895263195038, -0.032451070845127106, 0.13080066442489624, 0.07907237112522125, -0.08653545379638672, 0.04503849893808365, 0.19354094564914703, -0.18121035397052765, -0.1583382487297058, -0.055191729217767715, 0.22789530456066132, 0.2617880702018738, -0.2087613344192505, -0.0017744898796081543, -0.07168751209974289, -0.39838725328445435, 0.08031324297189713, 0.2775998115539551, 0.1493917554616928, 0.1450456827878952, -0.0469181053340435, -0.1854480654001236, -0.280173659324646, -0.31523823738098145, -0.0065732188522815704, 0.07990669459104538, 0.2866183817386627, -0.07090012729167938, 0.07639463990926743, -0.32445216178894043, -0.14476652443408966, 0.06370997428894043, -0.23291009664535522, -0.15132573246955872, 0.27600738406181335, -0.18074747920036316, 0.000898558646440506, 0.08878333866596222, -0.3163755536079407, -0.16730783879756927, -0.30017703771591187, 0.37843096256256104, 0.1727607697248459, 0.2083454430103302, 0.10755547136068344, 0.39434322714805603, 0.12237115204334259, 0.00965990498661995, 0.1228189617395401, 0.0379166305065155, -0.4149513840675354, 0.5190877914428711, -0.180263489484787, -0.45006418228149414, -0.48882174491882324, -0.24293066561222076, -0.16414900124073029, 0.4524992108345032, -0.534160852432251, -0.031146923080086708, -0.5311311483383179, 0.4127759337425232, 0.12354008108377457, 0.1021672785282135, 0.04960320144891739, -0.21315744519233704, -0.20895560085773468, 0.12922966480255127, 0.08261812478303909, -0.006418973207473755, -0.08785082399845123, 0.20213787257671356, -0.06152098625898361, 0.03371128812432289, -0.009868673980236053, 0.7692421674728394, 0.06894424557685852, -0.012904832139611244, 0.26353582739830017, -0.09490304440259933, 0.051906734704971313, -0.16474498808383942, 0.14588753879070282, 0.09050367772579193, -0.2608802020549774, -0.2699279189109802, 0.41838985681533813, 0.1641470193862915, -0.30802443623542786, 0.05913431942462921, -0.1851300299167633, -0.09765905141830444, -0.2781837582588196, 0.2541964054107666, 0.15882444381713867, 0.1743985265493393, 0.0698607787489891, 0.39265814423561096, -0.30189985036849976, -0.1359270215034485, 0.07070934027433395, -0.2578144371509552, 0.020172564312815666, -0.11698392778635025, -0.33734142780303955, -0.059715524315834045, -0.684593677520752, 0.20213936269283295, -0.0698041245341301, 0.03913911432027817, 0.2540457546710968, -0.3021755814552307, 0.23480461537837982, -0.0662640780210495, 0.5487116575241089, 0.19057194888591766, -0.19964374601840973, -0.11521849036216736, -0.23250070214271545, -0.4247892498970032, -0.1554235816001892, -0.49562570452690125, 0.113651804625988, -0.0005397573113441467, 0.334581196308136, -0.318556010723114, 0.11183620989322662, 0.000060381367802619934, 0.3112284541130066, 0.19164946675300598, -0.044278714805841446, -0.16765466332435608, -0.28234076499938965, -0.13252341747283936, 0.16237783432006836, -0.19951492547988892, 0.05044974759221077, -0.2694345712661743, -0.16961055994033813, -0.14726221561431885, 0.17729300260543823, 0.11682005226612091, 0.4819425046443939, 0.2846929728984833, -0.43825626373291016, 0.3633345365524292, 0.027224842458963394, 0.1518048346042633, 0.38281965255737305, 0.40001970529556274, 0.32248812913894653, -0.12357763946056366, 0.19988875091075897, 0.10222898423671722, 0.07479636371135712, 0.5333120226860046, -0.0012651607394218445, 0.19727268815040588, 0.06110765412449837, 0.276302307844162, -0.05644891411066055, 0.08236731588840485, 0.3274202048778534, -0.08233849704265594, -0.06249725818634033, -0.31682926416397095, 0.7024028301239014, 0.09989868104457855, 0.008582919836044312, 0.23552846908569336, -0.19018761813640594, 0.13044288754463196, 0.30139464139938354, -0.10220655053853989, 0.9143373966217041, -0.12508787214756012, 0.25259774923324585, 0.34947288036346436, 0.06673092395067215, 0.00759023055434227, -0.09591745585203171, 0.151015967130661, -0.3135033845901489, -0.23164904117584229, 0.17610545456409454, -0.28050342202186584, 0.08492065221071243, 0.21285945177078247, -0.1312742531299591, 0.08628807961940765, -0.05373183637857437, 0.1990431845188141, -0.2258603870868683, 0.2392510175704956, -0.2529601752758026, -0.05109217017889023, -0.435342013835907, 0.02882123365998268, 0.0972890630364418, -0.06465181708335876, 0.08860595524311066, -0.1453692615032196, -0.5541806221008301, 0.010253369808197021, -0.09387701749801636, 0.03891480714082718, -0.23558057844638824, 0.16329805552959442, 0.059375833719968796, -0.4771614670753479, -0.08425341546535492, 0.12125421315431595, -0.495369017124176, 0.07895465195178986, -0.24581198394298553, 0.4174093008041382, 0.043545518070459366, 0.23015864193439484, 0.5308091044425964, -0.333053857088089, -0.008719781413674355, -0.029218945652246475, -0.21656785905361176, 0.24954107403755188, -0.15398955345153809, -0.2520102858543396, 0.025285527110099792, 0.14373153448104858, 0.36118176579475403, -0.16750174760818481, -0.27764660120010376, -0.12400450557470322, -0.4408736228942871, -0.24312680959701538, 0.08413777500391006, -0.042737048119306564, 0.08555841445922852, 0.23147641122341156, 0.31746914982795715, -0.3549930453300476, -0.224287211894989, 0.37099969387054443, 0.09431266039609909, 0.26032060384750366, 0.31308743357658386, 0.08809579908847809, -0.21637561917304993, -0.12743732333183289, 0.296552836894989, 0.4111422896385193, -0.47571057081222534, 0.0690818727016449, 0.01395130529999733, 0.12462696433067322, 0.24617977440357208, 0.01820954866707325, 0.07419741898775101, -0.256989985704422, -0.33867913484573364, -0.06908684968948364, 0.009944088757038116, 0.3278675675392151, 0.12076158821582794, 0.1357959806919098, 0.057691365480422974, -0.014596538618206978, -0.3653217554092407, 0.014248741790652275, -0.2701687514781952, 0.13908955454826355, -0.02432282269001007, 0.18286322057247162, -0.4315895736217499, 0.017409343272447586, 0.0081375353038311, 0.14316518604755402, 0.10916231572628021, 0.10638165473937988, -0.12343858182430267, -0.21664753556251526, 0.02918551117181778, 0.1290723830461502, -0.13618794083595276, -0.2797192335128784, 0.23944330215454102, -0.20630711317062378, -0.050865914672613144, -0.37586551904678345, 0.14212389290332794, -0.1364208459854126, -0.031660452485084534, -0.4254382848739624, 0.25964319705963135, -0.16920316219329834, -0.3019404411315918, 0.31808605790138245, -0.4044681489467621, 0.1779983788728714, 0.060763563960790634, 0.1787562072277069, 0.0040055811405181885, -0.15592528879642487, 0.07209151983261108, 0.20296679437160492, 0.16482017934322357, 0.13967834413051605, 0.37972956895828247, -0.026212111115455627, -0.09722794592380524, -0.10738977789878845, 0.33126676082611084, 0.3493911027908325, 0.03802952915430069, -0.13879138231277466, 0.17579036951065063, 0.22563579678535461, -0.32513684034347534, -0.2828208804130554, -0.12963713705539703, -0.2570057809352875, 0.24188928306102753, 0.009579375386238098, 0.20937605202198029, 0.16702228784561157, -0.0789555162191391, -0.20689696073532104, 0.09864384680986404, 0.5504124164581299, -0.14517512917518616, 0.6776703000068665, 0.3272513151168823, -0.1993042528629303, 0.27027958631515503, 0.0020871590822935104, 0.34591439366340637, 0.3618882894515991, -0.11960311233997345, 0.5368242263793945, 0.23207470774650574, 0.24495373666286469, -0.13396739959716797, -0.30904948711395264, 0.13521097600460052, -0.0015175119042396545, -0.013643421232700348, 0.1391918659210205, 0.06212905794382095, 0.44904184341430664, 0.005227904766798019, 0.07710172235965729, -0.3266301155090332, -0.12674950063228607, 0.02904418110847473, -0.08261699974536896, -0.0433855764567852, -0.11773966997861862, -0.07485134899616241, 0.10686877369880676, -0.37246665358543396, -0.13124383985996246, 0.36482328176498413, 0.033845026046037674, 0.18120884895324707, -0.44460800290107727, 0.2035413384437561, -0.1569175124168396, 0.2180987447500229, -0.2398339807987213, 0.174761101603508, 0.050084859132766724, -0.06679385900497437, 0.07139241695404053, 0.10168372094631195, 0.36794617772102356, 0.18524248898029327, -0.1066010370850563, -0.17309299111366272, -0.05663961172103882, -0.038505710661411285, -0.013906925916671753, -0.08696991205215454, 0.0414152666926384, -0.09860052168369293, 0.301762193441391, 0.030814234167337418, -0.15572114288806915, -0.1387580931186676, -0.022854994982481003, -0.2242792546749115, -0.3263447880744934, -0.34533119201660156, -0.20069779455661774, -0.3282325267791748, -0.12952478229999542, -0.18956825137138367, -0.253643274307251, 0.18352043628692627, 0.22793465852737427, -0.31333184242248535, -0.06755881011486053, 0.0006710700690746307, 0.08450055122375488, -0.5105260610580444, 0.6805172562599182, 0.4650323688983917, 0.5556752681732178, -0.3209068179130554, -0.11604464799165726, -0.43565458059310913, 0.06292089819908142, -0.6595265865325928, -0.049787916243076324, 0.294271320104599, 0.3931100368499756, 0.15166911482810974, 0.21537812054157257, 0.16460803151130676, 0.13592593371868134, -0.19167497754096985, 0.32111263275146484, -0.5305005311965942, -0.0809497982263565, -0.027506832033395767, 0.01697666011750698, -0.21761494874954224, -0.6412060260772705, 0.4145413935184479, -0.43625134229660034, 0.019619330763816833, -0.17954003810882568, -0.18055468797683716, 0.3991861343383789, 0.22178198397159576, 0.5155704617500305, 0.002279980108141899, 0.14304029941558838, 0.024066925048828125, -0.18110495805740356, -0.19200293719768524, -0.037632450461387634, 0.08614134043455124, 0.17627297341823578, -0.09164813160896301, 0.08704812079668045, 0.1293836236000061, -0.1807277351617813, 0.09440821409225464, 0.6064494252204895, -0.10337403416633606, 0.0085010826587677, 0.11393550038337708, -0.1410081833600998, -0.20042473077774048, 0.11038777232170105, -0.18586505949497223, -0.033898547291755676, -0.09858192503452301, -0.23733089864253998, -0.15887244045734406, -0.19998502731323242, 0.42357516288757324, -0.45981618762016296, 0.057305991649627686, -0.1773606836795807, 0.2722938060760498, 0.24975675344467163, 0.3505440056324005, -0.19628772139549255, 0.02973112463951111, 0.31973597407341003, 0.0932118371129036, -0.04314689338207245, 0.23114605247974396, 0.15142738819122314, 0.11452259123325348, -0.07493734359741211, 0.3918386399745941, -0.3036594092845917, -0.3066389858722687, -0.22938819229602814, -0.3594549894332886 ]
https://github.com/huggingface/datasets/issues/1803
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
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.
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.4054940938949585, 0.05864456295967102, -0.07997146993875504, 0.13153260946273804, -0.07969397306442261, -0.1776915192604065, 0.24417473375797272, 0.4918093979358673, -0.2313987761735916, 0.1801937222480774, 0.08149372041225433, 0.055089276283979416, 0.12508581578731537, -0.10075682401657104, 0.13072563707828522, -0.2734067142009735, 0.08074153959751129, 0.12484587728977203, -0.075132355093956, -0.0345287099480629, 0.024030029773712158, -0.19028708338737488, -0.3486270308494568, 0.01847013272345066, -0.06632713973522186, -0.22407229244709015, -0.23070652782917023, 0.10720628499984741, -0.16585059463977814, -0.41739481687545776, -0.05953609570860863, -0.15281875431537628, 0.2299298793077469, 0.42703065276145935, -0.0001130733362515457, 0.016405045986175537, 0.22793085873126984, 0.08941761404275894, -0.19974707067012787, 0.18293386697769165, 0.17480778694152832, -0.2838543653488159, 0.08687463402748108, -0.4097665250301361, -0.047153912484645844, -0.29719820618629456, 0.09342809021472931, 0.018900558352470398, -0.04125330224633217, 0.30897608399391174, 0.14036434888839722, 0.5131548047065735, -0.19170431792736053, -0.13366317749023438, 0.6230674386024475, 0.2051520049571991, -0.35063010454177856, 0.5299631357192993, 0.5806369781494141, -0.048799797892570496, -0.3053150773048401, 0.13614043593406677, -0.08144412189722061, 0.27014103531837463, 0.03702244907617569, 0.19797302782535553, -0.11280506104230881, 0.1795916110277176, 0.1238103061914444, 0.40888869762420654, 0.3083905279636383, -0.0893915444612503, -0.3148863911628723, -0.29201847314834595, -0.05692819133400917, -0.23329341411590576, 0.02030758373439312, 0.3264191448688507, -0.2583793103694916, 0.27134203910827637, -0.31377601623535156, 0.15477809309959412, -0.10565085709095001, 0.17955169081687927, -0.15115892887115479, -0.06861568987369537, 0.11505076289176941, 0.1985105276107788, 0.09379588067531586, 0.013312960043549538, 0.15119320154190063, -0.16962134838104248, 0.028405994176864624, -0.05211064592003822, -0.28830450773239136, -0.08815469592809677, 0.15566349029541016, 0.17557862401008606, 0.2685055136680603, 0.1593102216720581, 0.4223208725452423, 0.11828382313251495, 0.26519376039505005, 0.09436211735010147, 0.045135658234357834, -0.009021654725074768, -0.2695648968219757, -0.0009783506393432617, 0.3478800356388092, 0.27530014514923096, -0.29451650381088257, 0.020877810195088387, -0.23832109570503235, -0.18445411324501038, 0.18156294524669647, -0.19732964038848877, -0.02745353803038597, -0.13371670246124268, 0.004323095083236694, -0.08730469644069672, -0.34211423993110657, -0.12782281637191772, -0.02655736729502678, 0.4784686267375946, -0.18346554040908813, -0.026571981608867645, -0.21266698837280273, 0.1222238689661026, -0.33534276485443115, -0.2540249526500702, -0.12431260943412781, -0.18833565711975098, -0.16008014976978302, 0.2303076684474945, 0.10979539155960083, 0.05609757453203201, 0.302073210477829, 0.05854004621505737, -0.1985151469707489, 0.2419624626636505, 0.3923713266849518, -0.18086576461791992, 0.10445626080036163, 0.01975482888519764, 0.01125546544790268, 0.06353192776441574, -0.16374002397060394, 0.24476408958435059, -0.3910898268222809, 0.19727033376693726, -0.19535666704177856, -0.338478147983551, 0.030639303848147392, 0.09199307858943939, -0.10569539666175842, -0.09976009279489517, -0.2270810753107071, 0.2462453544139862, -0.06942219287157059, -0.19974610209465027, -0.07743752002716064, -0.09419365972280502, 0.04029016196727753, -0.1531328707933426, 0.14130035042762756, 0.07762721180915833, -0.2506592869758606, 0.2018509954214096, -0.045186564326286316, 0.39703473448753357, 0.2543901205062866, 0.5308362245559692, -0.5031033754348755, 0.16236108541488647, -0.13277870416641235, 0.2966160178184509, 0.23202365636825562, -0.028132125735282898, -0.6667609214782715, 0.4973527789115906, -0.004258513450622559, 0.024189144372940063, 0.27248430252075195, 0.16171233355998993, 0.35167819261550903, 0.10784820467233658, -0.049062397330999374, 0.38371169567108154, 0.1839478760957718, 0.22793084383010864, -0.34009963274002075, -0.23031026124954224, -0.048727307468652725, 0.34797465801239014, -0.32447317242622375, -0.15712136030197144, 0.3112511932849884, -0.36459723114967346, 0.4906599819660187, -0.2065640389919281, -0.18362651765346527, 0.25097835063934326, 0.08702370524406433, -0.27774563431739807, 0.11834870278835297, 0.0964876115322113, 0.08594359457492828, 0.2421765774488449, -0.18948686122894287, -0.01846477761864662, 0.045090243220329285, -0.18880867958068848, -0.07221528887748718, 0.06196320801973343, -0.055260129272937775, -0.04738536477088928, -0.044897157698869705, -0.09183019399642944, 0.3306875228881836, -0.0035314634442329407, 0.16473346948623657, -0.16320596635341644, -0.26933732628822327, -0.009445738047361374, -0.26261866092681885, 0.07929285615682602, 0.09506836533546448, -0.12131043523550034, 0.009306341409683228, -0.24925285577774048, -0.08842380344867706, -0.0017328672111034393, -0.15193742513656616, 0.32752764225006104, 0.15022897720336914, 0.15024754405021667, 0.22353094816207886, 0.15224775671958923, 0.14195677638053894, -0.08493118733167648, 0.38797393441200256, 0.2968662679195404, 0.07531556487083435, 0.03652622550725937, -0.40534746646881104, 0.526332437992096, 0.39331290125846863, 0.3160548508167267, 0.2904031276702881, -0.3733907639980316, 0.16444456577301025, 0.0483798086643219, 0.11050234735012054, 0.4106385409832001, 0.2937985360622406, 0.2421559989452362, 0.548956036567688, 0.166325643658638, -0.31619733572006226, 0.11558254808187485, 0.450613796710968, -0.24960139393806458, 0.018042195588350296, 0.18730460107326508, -0.4217131733894348, -0.18561717867851257, 0.370215505361557, -0.15096884965896606, 0.32658034563064575, 0.3312530815601349, 0.16064447164535522, -0.12395542860031128, 0.027443118393421173, -0.2904406785964966, 0.26255032420158386, 0.0967947393655777, 0.14140835404396057, -0.22010822594165802, 0.4368430972099304, -0.09200608730316162, -0.24601098895072937, -0.3815978765487671, -0.03920785337686539, 0.19213199615478516, -0.12640109658241272, 0.30729907751083374, -0.09829853475093842, 0.05361895263195038, -0.032451070845127106, 0.13080066442489624, 0.07907237112522125, -0.08653545379638672, 0.04503849893808365, 0.19354094564914703, -0.18121035397052765, -0.1583382487297058, -0.055191729217767715, 0.22789530456066132, 0.2617880702018738, -0.2087613344192505, -0.0017744898796081543, -0.07168751209974289, -0.39838725328445435, 0.08031324297189713, 0.2775998115539551, 0.1493917554616928, 0.1450456827878952, -0.0469181053340435, -0.1854480654001236, -0.280173659324646, -0.31523823738098145, -0.0065732188522815704, 0.07990669459104538, 0.2866183817386627, -0.07090012729167938, 0.07639463990926743, -0.32445216178894043, -0.14476652443408966, 0.06370997428894043, -0.23291009664535522, -0.15132573246955872, 0.27600738406181335, -0.18074747920036316, 0.000898558646440506, 0.08878333866596222, -0.3163755536079407, -0.16730783879756927, -0.30017703771591187, 0.37843096256256104, 0.1727607697248459, 0.2083454430103302, 0.10755547136068344, 0.39434322714805603, 0.12237115204334259, 0.00965990498661995, 0.1228189617395401, 0.0379166305065155, -0.4149513840675354, 0.5190877914428711, -0.180263489484787, -0.45006418228149414, -0.48882174491882324, -0.24293066561222076, -0.16414900124073029, 0.4524992108345032, -0.534160852432251, -0.031146923080086708, -0.5311311483383179, 0.4127759337425232, 0.12354008108377457, 0.1021672785282135, 0.04960320144891739, -0.21315744519233704, -0.20895560085773468, 0.12922966480255127, 0.08261812478303909, -0.006418973207473755, -0.08785082399845123, 0.20213787257671356, -0.06152098625898361, 0.03371128812432289, -0.009868673980236053, 0.7692421674728394, 0.06894424557685852, -0.012904832139611244, 0.26353582739830017, -0.09490304440259933, 0.051906734704971313, -0.16474498808383942, 0.14588753879070282, 0.09050367772579193, -0.2608802020549774, -0.2699279189109802, 0.41838985681533813, 0.1641470193862915, -0.30802443623542786, 0.05913431942462921, -0.1851300299167633, -0.09765905141830444, -0.2781837582588196, 0.2541964054107666, 0.15882444381713867, 0.1743985265493393, 0.0698607787489891, 0.39265814423561096, -0.30189985036849976, -0.1359270215034485, 0.07070934027433395, -0.2578144371509552, 0.020172564312815666, -0.11698392778635025, -0.33734142780303955, -0.059715524315834045, -0.684593677520752, 0.20213936269283295, -0.0698041245341301, 0.03913911432027817, 0.2540457546710968, -0.3021755814552307, 0.23480461537837982, -0.0662640780210495, 0.5487116575241089, 0.19057194888591766, -0.19964374601840973, -0.11521849036216736, -0.23250070214271545, -0.4247892498970032, -0.1554235816001892, -0.49562570452690125, 0.113651804625988, -0.0005397573113441467, 0.334581196308136, -0.318556010723114, 0.11183620989322662, 0.000060381367802619934, 0.3112284541130066, 0.19164946675300598, -0.044278714805841446, -0.16765466332435608, -0.28234076499938965, -0.13252341747283936, 0.16237783432006836, -0.19951492547988892, 0.05044974759221077, -0.2694345712661743, -0.16961055994033813, -0.14726221561431885, 0.17729300260543823, 0.11682005226612091, 0.4819425046443939, 0.2846929728984833, -0.43825626373291016, 0.3633345365524292, 0.027224842458963394, 0.1518048346042633, 0.38281965255737305, 0.40001970529556274, 0.32248812913894653, -0.12357763946056366, 0.19988875091075897, 0.10222898423671722, 0.07479636371135712, 0.5333120226860046, -0.0012651607394218445, 0.19727268815040588, 0.06110765412449837, 0.276302307844162, -0.05644891411066055, 0.08236731588840485, 0.3274202048778534, -0.08233849704265594, -0.06249725818634033, -0.31682926416397095, 0.7024028301239014, 0.09989868104457855, 0.008582919836044312, 0.23552846908569336, -0.19018761813640594, 0.13044288754463196, 0.30139464139938354, -0.10220655053853989, 0.9143373966217041, -0.12508787214756012, 0.25259774923324585, 0.34947288036346436, 0.06673092395067215, 0.00759023055434227, -0.09591745585203171, 0.151015967130661, -0.3135033845901489, -0.23164904117584229, 0.17610545456409454, -0.28050342202186584, 0.08492065221071243, 0.21285945177078247, -0.1312742531299591, 0.08628807961940765, -0.05373183637857437, 0.1990431845188141, -0.2258603870868683, 0.2392510175704956, -0.2529601752758026, -0.05109217017889023, -0.435342013835907, 0.02882123365998268, 0.0972890630364418, -0.06465181708335876, 0.08860595524311066, -0.1453692615032196, -0.5541806221008301, 0.010253369808197021, -0.09387701749801636, 0.03891480714082718, -0.23558057844638824, 0.16329805552959442, 0.059375833719968796, -0.4771614670753479, -0.08425341546535492, 0.12125421315431595, -0.495369017124176, 0.07895465195178986, -0.24581198394298553, 0.4174093008041382, 0.043545518070459366, 0.23015864193439484, 0.5308091044425964, -0.333053857088089, -0.008719781413674355, -0.029218945652246475, -0.21656785905361176, 0.24954107403755188, -0.15398955345153809, -0.2520102858543396, 0.025285527110099792, 0.14373153448104858, 0.36118176579475403, -0.16750174760818481, -0.27764660120010376, -0.12400450557470322, -0.4408736228942871, -0.24312680959701538, 0.08413777500391006, -0.042737048119306564, 0.08555841445922852, 0.23147641122341156, 0.31746914982795715, -0.3549930453300476, -0.224287211894989, 0.37099969387054443, 0.09431266039609909, 0.26032060384750366, 0.31308743357658386, 0.08809579908847809, -0.21637561917304993, -0.12743732333183289, 0.296552836894989, 0.4111422896385193, -0.47571057081222534, 0.0690818727016449, 0.01395130529999733, 0.12462696433067322, 0.24617977440357208, 0.01820954866707325, 0.07419741898775101, -0.256989985704422, -0.33867913484573364, -0.06908684968948364, 0.009944088757038116, 0.3278675675392151, 0.12076158821582794, 0.1357959806919098, 0.057691365480422974, -0.014596538618206978, -0.3653217554092407, 0.014248741790652275, -0.2701687514781952, 0.13908955454826355, -0.02432282269001007, 0.18286322057247162, -0.4315895736217499, 0.017409343272447586, 0.0081375353038311, 0.14316518604755402, 0.10916231572628021, 0.10638165473937988, -0.12343858182430267, -0.21664753556251526, 0.02918551117181778, 0.1290723830461502, -0.13618794083595276, -0.2797192335128784, 0.23944330215454102, -0.20630711317062378, -0.050865914672613144, -0.37586551904678345, 0.14212389290332794, -0.1364208459854126, -0.031660452485084534, -0.4254382848739624, 0.25964319705963135, -0.16920316219329834, -0.3019404411315918, 0.31808605790138245, -0.4044681489467621, 0.1779983788728714, 0.060763563960790634, 0.1787562072277069, 0.0040055811405181885, -0.15592528879642487, 0.07209151983261108, 0.20296679437160492, 0.16482017934322357, 0.13967834413051605, 0.37972956895828247, -0.026212111115455627, -0.09722794592380524, -0.10738977789878845, 0.33126676082611084, 0.3493911027908325, 0.03802952915430069, -0.13879138231277466, 0.17579036951065063, 0.22563579678535461, -0.32513684034347534, -0.2828208804130554, -0.12963713705539703, -0.2570057809352875, 0.24188928306102753, 0.009579375386238098, 0.20937605202198029, 0.16702228784561157, -0.0789555162191391, -0.20689696073532104, 0.09864384680986404, 0.5504124164581299, -0.14517512917518616, 0.6776703000068665, 0.3272513151168823, -0.1993042528629303, 0.27027958631515503, 0.0020871590822935104, 0.34591439366340637, 0.3618882894515991, -0.11960311233997345, 0.5368242263793945, 0.23207470774650574, 0.24495373666286469, -0.13396739959716797, -0.30904948711395264, 0.13521097600460052, -0.0015175119042396545, -0.013643421232700348, 0.1391918659210205, 0.06212905794382095, 0.44904184341430664, 0.005227904766798019, 0.07710172235965729, -0.3266301155090332, -0.12674950063228607, 0.02904418110847473, -0.08261699974536896, -0.0433855764567852, -0.11773966997861862, -0.07485134899616241, 0.10686877369880676, -0.37246665358543396, -0.13124383985996246, 0.36482328176498413, 0.033845026046037674, 0.18120884895324707, -0.44460800290107727, 0.2035413384437561, -0.1569175124168396, 0.2180987447500229, -0.2398339807987213, 0.174761101603508, 0.050084859132766724, -0.06679385900497437, 0.07139241695404053, 0.10168372094631195, 0.36794617772102356, 0.18524248898029327, -0.1066010370850563, -0.17309299111366272, -0.05663961172103882, -0.038505710661411285, -0.013906925916671753, -0.08696991205215454, 0.0414152666926384, -0.09860052168369293, 0.301762193441391, 0.030814234167337418, -0.15572114288806915, -0.1387580931186676, -0.022854994982481003, -0.2242792546749115, -0.3263447880744934, -0.34533119201660156, -0.20069779455661774, -0.3282325267791748, -0.12952478229999542, -0.18956825137138367, -0.253643274307251, 0.18352043628692627, 0.22793465852737427, -0.31333184242248535, -0.06755881011486053, 0.0006710700690746307, 0.08450055122375488, -0.5105260610580444, 0.6805172562599182, 0.4650323688983917, 0.5556752681732178, -0.3209068179130554, -0.11604464799165726, -0.43565458059310913, 0.06292089819908142, -0.6595265865325928, -0.049787916243076324, 0.294271320104599, 0.3931100368499756, 0.15166911482810974, 0.21537812054157257, 0.16460803151130676, 0.13592593371868134, -0.19167497754096985, 0.32111263275146484, -0.5305005311965942, -0.0809497982263565, -0.027506832033395767, 0.01697666011750698, -0.21761494874954224, -0.6412060260772705, 0.4145413935184479, -0.43625134229660034, 0.019619330763816833, -0.17954003810882568, -0.18055468797683716, 0.3991861343383789, 0.22178198397159576, 0.5155704617500305, 0.002279980108141899, 0.14304029941558838, 0.024066925048828125, -0.18110495805740356, -0.19200293719768524, -0.037632450461387634, 0.08614134043455124, 0.17627297341823578, -0.09164813160896301, 0.08704812079668045, 0.1293836236000061, -0.1807277351617813, 0.09440821409225464, 0.6064494252204895, -0.10337403416633606, 0.0085010826587677, 0.11393550038337708, -0.1410081833600998, -0.20042473077774048, 0.11038777232170105, -0.18586505949497223, -0.033898547291755676, -0.09858192503452301, -0.23733089864253998, -0.15887244045734406, -0.19998502731323242, 0.42357516288757324, -0.45981618762016296, 0.057305991649627686, -0.1773606836795807, 0.2722938060760498, 0.24975675344467163, 0.3505440056324005, -0.19628772139549255, 0.02973112463951111, 0.31973597407341003, 0.0932118371129036, -0.04314689338207245, 0.23114605247974396, 0.15142738819122314, 0.11452259123325348, -0.07493734359741211, 0.3918386399745941, -0.3036594092845917, -0.3066389858722687, -0.22938819229602814, -0.3594549894332886 ]
https://github.com/huggingface/datasets/issues/1803
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.
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.
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.4054940938949585, 0.05864456295967102, -0.07997146993875504, 0.13153260946273804, -0.07969397306442261, -0.1776915192604065, 0.24417473375797272, 0.4918093979358673, -0.2313987761735916, 0.1801937222480774, 0.08149372041225433, 0.055089276283979416, 0.12508581578731537, -0.10075682401657104, 0.13072563707828522, -0.2734067142009735, 0.08074153959751129, 0.12484587728977203, -0.075132355093956, -0.0345287099480629, 0.024030029773712158, -0.19028708338737488, -0.3486270308494568, 0.01847013272345066, -0.06632713973522186, -0.22407229244709015, -0.23070652782917023, 0.10720628499984741, -0.16585059463977814, -0.41739481687545776, -0.05953609570860863, -0.15281875431537628, 0.2299298793077469, 0.42703065276145935, -0.0001130733362515457, 0.016405045986175537, 0.22793085873126984, 0.08941761404275894, -0.19974707067012787, 0.18293386697769165, 0.17480778694152832, -0.2838543653488159, 0.08687463402748108, -0.4097665250301361, -0.047153912484645844, -0.29719820618629456, 0.09342809021472931, 0.018900558352470398, -0.04125330224633217, 0.30897608399391174, 0.14036434888839722, 0.5131548047065735, -0.19170431792736053, -0.13366317749023438, 0.6230674386024475, 0.2051520049571991, -0.35063010454177856, 0.5299631357192993, 0.5806369781494141, -0.048799797892570496, -0.3053150773048401, 0.13614043593406677, -0.08144412189722061, 0.27014103531837463, 0.03702244907617569, 0.19797302782535553, -0.11280506104230881, 0.1795916110277176, 0.1238103061914444, 0.40888869762420654, 0.3083905279636383, -0.0893915444612503, -0.3148863911628723, -0.29201847314834595, -0.05692819133400917, -0.23329341411590576, 0.02030758373439312, 0.3264191448688507, -0.2583793103694916, 0.27134203910827637, -0.31377601623535156, 0.15477809309959412, -0.10565085709095001, 0.17955169081687927, -0.15115892887115479, -0.06861568987369537, 0.11505076289176941, 0.1985105276107788, 0.09379588067531586, 0.013312960043549538, 0.15119320154190063, -0.16962134838104248, 0.028405994176864624, -0.05211064592003822, -0.28830450773239136, -0.08815469592809677, 0.15566349029541016, 0.17557862401008606, 0.2685055136680603, 0.1593102216720581, 0.4223208725452423, 0.11828382313251495, 0.26519376039505005, 0.09436211735010147, 0.045135658234357834, -0.009021654725074768, -0.2695648968219757, -0.0009783506393432617, 0.3478800356388092, 0.27530014514923096, -0.29451650381088257, 0.020877810195088387, -0.23832109570503235, -0.18445411324501038, 0.18156294524669647, -0.19732964038848877, -0.02745353803038597, -0.13371670246124268, 0.004323095083236694, -0.08730469644069672, -0.34211423993110657, -0.12782281637191772, -0.02655736729502678, 0.4784686267375946, -0.18346554040908813, -0.026571981608867645, -0.21266698837280273, 0.1222238689661026, -0.33534276485443115, -0.2540249526500702, -0.12431260943412781, -0.18833565711975098, -0.16008014976978302, 0.2303076684474945, 0.10979539155960083, 0.05609757453203201, 0.302073210477829, 0.05854004621505737, -0.1985151469707489, 0.2419624626636505, 0.3923713266849518, -0.18086576461791992, 0.10445626080036163, 0.01975482888519764, 0.01125546544790268, 0.06353192776441574, -0.16374002397060394, 0.24476408958435059, -0.3910898268222809, 0.19727033376693726, -0.19535666704177856, -0.338478147983551, 0.030639303848147392, 0.09199307858943939, -0.10569539666175842, -0.09976009279489517, -0.2270810753107071, 0.2462453544139862, -0.06942219287157059, -0.19974610209465027, -0.07743752002716064, -0.09419365972280502, 0.04029016196727753, -0.1531328707933426, 0.14130035042762756, 0.07762721180915833, -0.2506592869758606, 0.2018509954214096, -0.045186564326286316, 0.39703473448753357, 0.2543901205062866, 0.5308362245559692, -0.5031033754348755, 0.16236108541488647, -0.13277870416641235, 0.2966160178184509, 0.23202365636825562, -0.028132125735282898, -0.6667609214782715, 0.4973527789115906, -0.004258513450622559, 0.024189144372940063, 0.27248430252075195, 0.16171233355998993, 0.35167819261550903, 0.10784820467233658, -0.049062397330999374, 0.38371169567108154, 0.1839478760957718, 0.22793084383010864, -0.34009963274002075, -0.23031026124954224, -0.048727307468652725, 0.34797465801239014, -0.32447317242622375, -0.15712136030197144, 0.3112511932849884, -0.36459723114967346, 0.4906599819660187, -0.2065640389919281, -0.18362651765346527, 0.25097835063934326, 0.08702370524406433, -0.27774563431739807, 0.11834870278835297, 0.0964876115322113, 0.08594359457492828, 0.2421765774488449, -0.18948686122894287, -0.01846477761864662, 0.045090243220329285, -0.18880867958068848, -0.07221528887748718, 0.06196320801973343, -0.055260129272937775, -0.04738536477088928, -0.044897157698869705, -0.09183019399642944, 0.3306875228881836, -0.0035314634442329407, 0.16473346948623657, -0.16320596635341644, -0.26933732628822327, -0.009445738047361374, -0.26261866092681885, 0.07929285615682602, 0.09506836533546448, -0.12131043523550034, 0.009306341409683228, -0.24925285577774048, -0.08842380344867706, -0.0017328672111034393, -0.15193742513656616, 0.32752764225006104, 0.15022897720336914, 0.15024754405021667, 0.22353094816207886, 0.15224775671958923, 0.14195677638053894, -0.08493118733167648, 0.38797393441200256, 0.2968662679195404, 0.07531556487083435, 0.03652622550725937, -0.40534746646881104, 0.526332437992096, 0.39331290125846863, 0.3160548508167267, 0.2904031276702881, -0.3733907639980316, 0.16444456577301025, 0.0483798086643219, 0.11050234735012054, 0.4106385409832001, 0.2937985360622406, 0.2421559989452362, 0.548956036567688, 0.166325643658638, -0.31619733572006226, 0.11558254808187485, 0.450613796710968, -0.24960139393806458, 0.018042195588350296, 0.18730460107326508, -0.4217131733894348, -0.18561717867851257, 0.370215505361557, -0.15096884965896606, 0.32658034563064575, 0.3312530815601349, 0.16064447164535522, -0.12395542860031128, 0.027443118393421173, -0.2904406785964966, 0.26255032420158386, 0.0967947393655777, 0.14140835404396057, -0.22010822594165802, 0.4368430972099304, -0.09200608730316162, -0.24601098895072937, -0.3815978765487671, -0.03920785337686539, 0.19213199615478516, -0.12640109658241272, 0.30729907751083374, -0.09829853475093842, 0.05361895263195038, -0.032451070845127106, 0.13080066442489624, 0.07907237112522125, -0.08653545379638672, 0.04503849893808365, 0.19354094564914703, -0.18121035397052765, -0.1583382487297058, -0.055191729217767715, 0.22789530456066132, 0.2617880702018738, -0.2087613344192505, -0.0017744898796081543, -0.07168751209974289, -0.39838725328445435, 0.08031324297189713, 0.2775998115539551, 0.1493917554616928, 0.1450456827878952, -0.0469181053340435, -0.1854480654001236, -0.280173659324646, -0.31523823738098145, -0.0065732188522815704, 0.07990669459104538, 0.2866183817386627, -0.07090012729167938, 0.07639463990926743, -0.32445216178894043, -0.14476652443408966, 0.06370997428894043, -0.23291009664535522, -0.15132573246955872, 0.27600738406181335, -0.18074747920036316, 0.000898558646440506, 0.08878333866596222, -0.3163755536079407, -0.16730783879756927, -0.30017703771591187, 0.37843096256256104, 0.1727607697248459, 0.2083454430103302, 0.10755547136068344, 0.39434322714805603, 0.12237115204334259, 0.00965990498661995, 0.1228189617395401, 0.0379166305065155, -0.4149513840675354, 0.5190877914428711, -0.180263489484787, -0.45006418228149414, -0.48882174491882324, -0.24293066561222076, -0.16414900124073029, 0.4524992108345032, -0.534160852432251, -0.031146923080086708, -0.5311311483383179, 0.4127759337425232, 0.12354008108377457, 0.1021672785282135, 0.04960320144891739, -0.21315744519233704, -0.20895560085773468, 0.12922966480255127, 0.08261812478303909, -0.006418973207473755, -0.08785082399845123, 0.20213787257671356, -0.06152098625898361, 0.03371128812432289, -0.009868673980236053, 0.7692421674728394, 0.06894424557685852, -0.012904832139611244, 0.26353582739830017, -0.09490304440259933, 0.051906734704971313, -0.16474498808383942, 0.14588753879070282, 0.09050367772579193, -0.2608802020549774, -0.2699279189109802, 0.41838985681533813, 0.1641470193862915, -0.30802443623542786, 0.05913431942462921, -0.1851300299167633, -0.09765905141830444, -0.2781837582588196, 0.2541964054107666, 0.15882444381713867, 0.1743985265493393, 0.0698607787489891, 0.39265814423561096, -0.30189985036849976, -0.1359270215034485, 0.07070934027433395, -0.2578144371509552, 0.020172564312815666, -0.11698392778635025, -0.33734142780303955, -0.059715524315834045, -0.684593677520752, 0.20213936269283295, -0.0698041245341301, 0.03913911432027817, 0.2540457546710968, -0.3021755814552307, 0.23480461537837982, -0.0662640780210495, 0.5487116575241089, 0.19057194888591766, -0.19964374601840973, -0.11521849036216736, -0.23250070214271545, -0.4247892498970032, -0.1554235816001892, -0.49562570452690125, 0.113651804625988, -0.0005397573113441467, 0.334581196308136, -0.318556010723114, 0.11183620989322662, 0.000060381367802619934, 0.3112284541130066, 0.19164946675300598, -0.044278714805841446, -0.16765466332435608, -0.28234076499938965, -0.13252341747283936, 0.16237783432006836, -0.19951492547988892, 0.05044974759221077, -0.2694345712661743, -0.16961055994033813, -0.14726221561431885, 0.17729300260543823, 0.11682005226612091, 0.4819425046443939, 0.2846929728984833, -0.43825626373291016, 0.3633345365524292, 0.027224842458963394, 0.1518048346042633, 0.38281965255737305, 0.40001970529556274, 0.32248812913894653, -0.12357763946056366, 0.19988875091075897, 0.10222898423671722, 0.07479636371135712, 0.5333120226860046, -0.0012651607394218445, 0.19727268815040588, 0.06110765412449837, 0.276302307844162, -0.05644891411066055, 0.08236731588840485, 0.3274202048778534, -0.08233849704265594, -0.06249725818634033, -0.31682926416397095, 0.7024028301239014, 0.09989868104457855, 0.008582919836044312, 0.23552846908569336, -0.19018761813640594, 0.13044288754463196, 0.30139464139938354, -0.10220655053853989, 0.9143373966217041, -0.12508787214756012, 0.25259774923324585, 0.34947288036346436, 0.06673092395067215, 0.00759023055434227, -0.09591745585203171, 0.151015967130661, -0.3135033845901489, -0.23164904117584229, 0.17610545456409454, -0.28050342202186584, 0.08492065221071243, 0.21285945177078247, -0.1312742531299591, 0.08628807961940765, -0.05373183637857437, 0.1990431845188141, -0.2258603870868683, 0.2392510175704956, -0.2529601752758026, -0.05109217017889023, -0.435342013835907, 0.02882123365998268, 0.0972890630364418, -0.06465181708335876, 0.08860595524311066, -0.1453692615032196, -0.5541806221008301, 0.010253369808197021, -0.09387701749801636, 0.03891480714082718, -0.23558057844638824, 0.16329805552959442, 0.059375833719968796, -0.4771614670753479, -0.08425341546535492, 0.12125421315431595, -0.495369017124176, 0.07895465195178986, -0.24581198394298553, 0.4174093008041382, 0.043545518070459366, 0.23015864193439484, 0.5308091044425964, -0.333053857088089, -0.008719781413674355, -0.029218945652246475, -0.21656785905361176, 0.24954107403755188, -0.15398955345153809, -0.2520102858543396, 0.025285527110099792, 0.14373153448104858, 0.36118176579475403, -0.16750174760818481, -0.27764660120010376, -0.12400450557470322, -0.4408736228942871, -0.24312680959701538, 0.08413777500391006, -0.042737048119306564, 0.08555841445922852, 0.23147641122341156, 0.31746914982795715, -0.3549930453300476, -0.224287211894989, 0.37099969387054443, 0.09431266039609909, 0.26032060384750366, 0.31308743357658386, 0.08809579908847809, -0.21637561917304993, -0.12743732333183289, 0.296552836894989, 0.4111422896385193, -0.47571057081222534, 0.0690818727016449, 0.01395130529999733, 0.12462696433067322, 0.24617977440357208, 0.01820954866707325, 0.07419741898775101, -0.256989985704422, -0.33867913484573364, -0.06908684968948364, 0.009944088757038116, 0.3278675675392151, 0.12076158821582794, 0.1357959806919098, 0.057691365480422974, -0.014596538618206978, -0.3653217554092407, 0.014248741790652275, -0.2701687514781952, 0.13908955454826355, -0.02432282269001007, 0.18286322057247162, -0.4315895736217499, 0.017409343272447586, 0.0081375353038311, 0.14316518604755402, 0.10916231572628021, 0.10638165473937988, -0.12343858182430267, -0.21664753556251526, 0.02918551117181778, 0.1290723830461502, -0.13618794083595276, -0.2797192335128784, 0.23944330215454102, -0.20630711317062378, -0.050865914672613144, -0.37586551904678345, 0.14212389290332794, -0.1364208459854126, -0.031660452485084534, -0.4254382848739624, 0.25964319705963135, -0.16920316219329834, -0.3019404411315918, 0.31808605790138245, -0.4044681489467621, 0.1779983788728714, 0.060763563960790634, 0.1787562072277069, 0.0040055811405181885, -0.15592528879642487, 0.07209151983261108, 0.20296679437160492, 0.16482017934322357, 0.13967834413051605, 0.37972956895828247, -0.026212111115455627, -0.09722794592380524, -0.10738977789878845, 0.33126676082611084, 0.3493911027908325, 0.03802952915430069, -0.13879138231277466, 0.17579036951065063, 0.22563579678535461, -0.32513684034347534, -0.2828208804130554, -0.12963713705539703, -0.2570057809352875, 0.24188928306102753, 0.009579375386238098, 0.20937605202198029, 0.16702228784561157, -0.0789555162191391, -0.20689696073532104, 0.09864384680986404, 0.5504124164581299, -0.14517512917518616, 0.6776703000068665, 0.3272513151168823, -0.1993042528629303, 0.27027958631515503, 0.0020871590822935104, 0.34591439366340637, 0.3618882894515991, -0.11960311233997345, 0.5368242263793945, 0.23207470774650574, 0.24495373666286469, -0.13396739959716797, -0.30904948711395264, 0.13521097600460052, -0.0015175119042396545, -0.013643421232700348, 0.1391918659210205, 0.06212905794382095, 0.44904184341430664, 0.005227904766798019, 0.07710172235965729, -0.3266301155090332, -0.12674950063228607, 0.02904418110847473, -0.08261699974536896, -0.0433855764567852, -0.11773966997861862, -0.07485134899616241, 0.10686877369880676, -0.37246665358543396, -0.13124383985996246, 0.36482328176498413, 0.033845026046037674, 0.18120884895324707, -0.44460800290107727, 0.2035413384437561, -0.1569175124168396, 0.2180987447500229, -0.2398339807987213, 0.174761101603508, 0.050084859132766724, -0.06679385900497437, 0.07139241695404053, 0.10168372094631195, 0.36794617772102356, 0.18524248898029327, -0.1066010370850563, -0.17309299111366272, -0.05663961172103882, -0.038505710661411285, -0.013906925916671753, -0.08696991205215454, 0.0414152666926384, -0.09860052168369293, 0.301762193441391, 0.030814234167337418, -0.15572114288806915, -0.1387580931186676, -0.022854994982481003, -0.2242792546749115, -0.3263447880744934, -0.34533119201660156, -0.20069779455661774, -0.3282325267791748, -0.12952478229999542, -0.18956825137138367, -0.253643274307251, 0.18352043628692627, 0.22793465852737427, -0.31333184242248535, -0.06755881011486053, 0.0006710700690746307, 0.08450055122375488, -0.5105260610580444, 0.6805172562599182, 0.4650323688983917, 0.5556752681732178, -0.3209068179130554, -0.11604464799165726, -0.43565458059310913, 0.06292089819908142, -0.6595265865325928, -0.049787916243076324, 0.294271320104599, 0.3931100368499756, 0.15166911482810974, 0.21537812054157257, 0.16460803151130676, 0.13592593371868134, -0.19167497754096985, 0.32111263275146484, -0.5305005311965942, -0.0809497982263565, -0.027506832033395767, 0.01697666011750698, -0.21761494874954224, -0.6412060260772705, 0.4145413935184479, -0.43625134229660034, 0.019619330763816833, -0.17954003810882568, -0.18055468797683716, 0.3991861343383789, 0.22178198397159576, 0.5155704617500305, 0.002279980108141899, 0.14304029941558838, 0.024066925048828125, -0.18110495805740356, -0.19200293719768524, -0.037632450461387634, 0.08614134043455124, 0.17627297341823578, -0.09164813160896301, 0.08704812079668045, 0.1293836236000061, -0.1807277351617813, 0.09440821409225464, 0.6064494252204895, -0.10337403416633606, 0.0085010826587677, 0.11393550038337708, -0.1410081833600998, -0.20042473077774048, 0.11038777232170105, -0.18586505949497223, -0.033898547291755676, -0.09858192503452301, -0.23733089864253998, -0.15887244045734406, -0.19998502731323242, 0.42357516288757324, -0.45981618762016296, 0.057305991649627686, -0.1773606836795807, 0.2722938060760498, 0.24975675344467163, 0.3505440056324005, -0.19628772139549255, 0.02973112463951111, 0.31973597407341003, 0.0932118371129036, -0.04314689338207245, 0.23114605247974396, 0.15142738819122314, 0.11452259123325348, -0.07493734359741211, 0.3918386399745941, -0.3036594092845917, -0.3066389858722687, -0.22938819229602814, -0.3594549894332886 ]
https://github.com/huggingface/datasets/issues/1803
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.
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.
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.4054940938949585, 0.05864456295967102, -0.07997146993875504, 0.13153260946273804, -0.07969397306442261, -0.1776915192604065, 0.24417473375797272, 0.4918093979358673, -0.2313987761735916, 0.1801937222480774, 0.08149372041225433, 0.055089276283979416, 0.12508581578731537, -0.10075682401657104, 0.13072563707828522, -0.2734067142009735, 0.08074153959751129, 0.12484587728977203, -0.075132355093956, -0.0345287099480629, 0.024030029773712158, -0.19028708338737488, -0.3486270308494568, 0.01847013272345066, -0.06632713973522186, -0.22407229244709015, -0.23070652782917023, 0.10720628499984741, -0.16585059463977814, -0.41739481687545776, -0.05953609570860863, -0.15281875431537628, 0.2299298793077469, 0.42703065276145935, -0.0001130733362515457, 0.016405045986175537, 0.22793085873126984, 0.08941761404275894, -0.19974707067012787, 0.18293386697769165, 0.17480778694152832, -0.2838543653488159, 0.08687463402748108, -0.4097665250301361, -0.047153912484645844, -0.29719820618629456, 0.09342809021472931, 0.018900558352470398, -0.04125330224633217, 0.30897608399391174, 0.14036434888839722, 0.5131548047065735, -0.19170431792736053, -0.13366317749023438, 0.6230674386024475, 0.2051520049571991, -0.35063010454177856, 0.5299631357192993, 0.5806369781494141, -0.048799797892570496, -0.3053150773048401, 0.13614043593406677, -0.08144412189722061, 0.27014103531837463, 0.03702244907617569, 0.19797302782535553, -0.11280506104230881, 0.1795916110277176, 0.1238103061914444, 0.40888869762420654, 0.3083905279636383, -0.0893915444612503, -0.3148863911628723, -0.29201847314834595, -0.05692819133400917, -0.23329341411590576, 0.02030758373439312, 0.3264191448688507, -0.2583793103694916, 0.27134203910827637, -0.31377601623535156, 0.15477809309959412, -0.10565085709095001, 0.17955169081687927, -0.15115892887115479, -0.06861568987369537, 0.11505076289176941, 0.1985105276107788, 0.09379588067531586, 0.013312960043549538, 0.15119320154190063, -0.16962134838104248, 0.028405994176864624, -0.05211064592003822, -0.28830450773239136, -0.08815469592809677, 0.15566349029541016, 0.17557862401008606, 0.2685055136680603, 0.1593102216720581, 0.4223208725452423, 0.11828382313251495, 0.26519376039505005, 0.09436211735010147, 0.045135658234357834, -0.009021654725074768, -0.2695648968219757, -0.0009783506393432617, 0.3478800356388092, 0.27530014514923096, -0.29451650381088257, 0.020877810195088387, -0.23832109570503235, -0.18445411324501038, 0.18156294524669647, -0.19732964038848877, -0.02745353803038597, -0.13371670246124268, 0.004323095083236694, -0.08730469644069672, -0.34211423993110657, -0.12782281637191772, -0.02655736729502678, 0.4784686267375946, -0.18346554040908813, -0.026571981608867645, -0.21266698837280273, 0.1222238689661026, -0.33534276485443115, -0.2540249526500702, -0.12431260943412781, -0.18833565711975098, -0.16008014976978302, 0.2303076684474945, 0.10979539155960083, 0.05609757453203201, 0.302073210477829, 0.05854004621505737, -0.1985151469707489, 0.2419624626636505, 0.3923713266849518, -0.18086576461791992, 0.10445626080036163, 0.01975482888519764, 0.01125546544790268, 0.06353192776441574, -0.16374002397060394, 0.24476408958435059, -0.3910898268222809, 0.19727033376693726, -0.19535666704177856, -0.338478147983551, 0.030639303848147392, 0.09199307858943939, -0.10569539666175842, -0.09976009279489517, -0.2270810753107071, 0.2462453544139862, -0.06942219287157059, -0.19974610209465027, -0.07743752002716064, -0.09419365972280502, 0.04029016196727753, -0.1531328707933426, 0.14130035042762756, 0.07762721180915833, -0.2506592869758606, 0.2018509954214096, -0.045186564326286316, 0.39703473448753357, 0.2543901205062866, 0.5308362245559692, -0.5031033754348755, 0.16236108541488647, -0.13277870416641235, 0.2966160178184509, 0.23202365636825562, -0.028132125735282898, -0.6667609214782715, 0.4973527789115906, -0.004258513450622559, 0.024189144372940063, 0.27248430252075195, 0.16171233355998993, 0.35167819261550903, 0.10784820467233658, -0.049062397330999374, 0.38371169567108154, 0.1839478760957718, 0.22793084383010864, -0.34009963274002075, -0.23031026124954224, -0.048727307468652725, 0.34797465801239014, -0.32447317242622375, -0.15712136030197144, 0.3112511932849884, -0.36459723114967346, 0.4906599819660187, -0.2065640389919281, -0.18362651765346527, 0.25097835063934326, 0.08702370524406433, -0.27774563431739807, 0.11834870278835297, 0.0964876115322113, 0.08594359457492828, 0.2421765774488449, -0.18948686122894287, -0.01846477761864662, 0.045090243220329285, -0.18880867958068848, -0.07221528887748718, 0.06196320801973343, -0.055260129272937775, -0.04738536477088928, -0.044897157698869705, -0.09183019399642944, 0.3306875228881836, -0.0035314634442329407, 0.16473346948623657, -0.16320596635341644, -0.26933732628822327, -0.009445738047361374, -0.26261866092681885, 0.07929285615682602, 0.09506836533546448, -0.12131043523550034, 0.009306341409683228, -0.24925285577774048, -0.08842380344867706, -0.0017328672111034393, -0.15193742513656616, 0.32752764225006104, 0.15022897720336914, 0.15024754405021667, 0.22353094816207886, 0.15224775671958923, 0.14195677638053894, -0.08493118733167648, 0.38797393441200256, 0.2968662679195404, 0.07531556487083435, 0.03652622550725937, -0.40534746646881104, 0.526332437992096, 0.39331290125846863, 0.3160548508167267, 0.2904031276702881, -0.3733907639980316, 0.16444456577301025, 0.0483798086643219, 0.11050234735012054, 0.4106385409832001, 0.2937985360622406, 0.2421559989452362, 0.548956036567688, 0.166325643658638, -0.31619733572006226, 0.11558254808187485, 0.450613796710968, -0.24960139393806458, 0.018042195588350296, 0.18730460107326508, -0.4217131733894348, -0.18561717867851257, 0.370215505361557, -0.15096884965896606, 0.32658034563064575, 0.3312530815601349, 0.16064447164535522, -0.12395542860031128, 0.027443118393421173, -0.2904406785964966, 0.26255032420158386, 0.0967947393655777, 0.14140835404396057, -0.22010822594165802, 0.4368430972099304, -0.09200608730316162, -0.24601098895072937, -0.3815978765487671, -0.03920785337686539, 0.19213199615478516, -0.12640109658241272, 0.30729907751083374, -0.09829853475093842, 0.05361895263195038, -0.032451070845127106, 0.13080066442489624, 0.07907237112522125, -0.08653545379638672, 0.04503849893808365, 0.19354094564914703, -0.18121035397052765, -0.1583382487297058, -0.055191729217767715, 0.22789530456066132, 0.2617880702018738, -0.2087613344192505, -0.0017744898796081543, -0.07168751209974289, -0.39838725328445435, 0.08031324297189713, 0.2775998115539551, 0.1493917554616928, 0.1450456827878952, -0.0469181053340435, -0.1854480654001236, -0.280173659324646, -0.31523823738098145, -0.0065732188522815704, 0.07990669459104538, 0.2866183817386627, -0.07090012729167938, 0.07639463990926743, -0.32445216178894043, -0.14476652443408966, 0.06370997428894043, -0.23291009664535522, -0.15132573246955872, 0.27600738406181335, -0.18074747920036316, 0.000898558646440506, 0.08878333866596222, -0.3163755536079407, -0.16730783879756927, -0.30017703771591187, 0.37843096256256104, 0.1727607697248459, 0.2083454430103302, 0.10755547136068344, 0.39434322714805603, 0.12237115204334259, 0.00965990498661995, 0.1228189617395401, 0.0379166305065155, -0.4149513840675354, 0.5190877914428711, -0.180263489484787, -0.45006418228149414, -0.48882174491882324, -0.24293066561222076, -0.16414900124073029, 0.4524992108345032, -0.534160852432251, -0.031146923080086708, -0.5311311483383179, 0.4127759337425232, 0.12354008108377457, 0.1021672785282135, 0.04960320144891739, -0.21315744519233704, -0.20895560085773468, 0.12922966480255127, 0.08261812478303909, -0.006418973207473755, -0.08785082399845123, 0.20213787257671356, -0.06152098625898361, 0.03371128812432289, -0.009868673980236053, 0.7692421674728394, 0.06894424557685852, -0.012904832139611244, 0.26353582739830017, -0.09490304440259933, 0.051906734704971313, -0.16474498808383942, 0.14588753879070282, 0.09050367772579193, -0.2608802020549774, -0.2699279189109802, 0.41838985681533813, 0.1641470193862915, -0.30802443623542786, 0.05913431942462921, -0.1851300299167633, -0.09765905141830444, -0.2781837582588196, 0.2541964054107666, 0.15882444381713867, 0.1743985265493393, 0.0698607787489891, 0.39265814423561096, -0.30189985036849976, -0.1359270215034485, 0.07070934027433395, -0.2578144371509552, 0.020172564312815666, -0.11698392778635025, -0.33734142780303955, -0.059715524315834045, -0.684593677520752, 0.20213936269283295, -0.0698041245341301, 0.03913911432027817, 0.2540457546710968, -0.3021755814552307, 0.23480461537837982, -0.0662640780210495, 0.5487116575241089, 0.19057194888591766, -0.19964374601840973, -0.11521849036216736, -0.23250070214271545, -0.4247892498970032, -0.1554235816001892, -0.49562570452690125, 0.113651804625988, -0.0005397573113441467, 0.334581196308136, -0.318556010723114, 0.11183620989322662, 0.000060381367802619934, 0.3112284541130066, 0.19164946675300598, -0.044278714805841446, -0.16765466332435608, -0.28234076499938965, -0.13252341747283936, 0.16237783432006836, -0.19951492547988892, 0.05044974759221077, -0.2694345712661743, -0.16961055994033813, -0.14726221561431885, 0.17729300260543823, 0.11682005226612091, 0.4819425046443939, 0.2846929728984833, -0.43825626373291016, 0.3633345365524292, 0.027224842458963394, 0.1518048346042633, 0.38281965255737305, 0.40001970529556274, 0.32248812913894653, -0.12357763946056366, 0.19988875091075897, 0.10222898423671722, 0.07479636371135712, 0.5333120226860046, -0.0012651607394218445, 0.19727268815040588, 0.06110765412449837, 0.276302307844162, -0.05644891411066055, 0.08236731588840485, 0.3274202048778534, -0.08233849704265594, -0.06249725818634033, -0.31682926416397095, 0.7024028301239014, 0.09989868104457855, 0.008582919836044312, 0.23552846908569336, -0.19018761813640594, 0.13044288754463196, 0.30139464139938354, -0.10220655053853989, 0.9143373966217041, -0.12508787214756012, 0.25259774923324585, 0.34947288036346436, 0.06673092395067215, 0.00759023055434227, -0.09591745585203171, 0.151015967130661, -0.3135033845901489, -0.23164904117584229, 0.17610545456409454, -0.28050342202186584, 0.08492065221071243, 0.21285945177078247, -0.1312742531299591, 0.08628807961940765, -0.05373183637857437, 0.1990431845188141, -0.2258603870868683, 0.2392510175704956, -0.2529601752758026, -0.05109217017889023, -0.435342013835907, 0.02882123365998268, 0.0972890630364418, -0.06465181708335876, 0.08860595524311066, -0.1453692615032196, -0.5541806221008301, 0.010253369808197021, -0.09387701749801636, 0.03891480714082718, -0.23558057844638824, 0.16329805552959442, 0.059375833719968796, -0.4771614670753479, -0.08425341546535492, 0.12125421315431595, -0.495369017124176, 0.07895465195178986, -0.24581198394298553, 0.4174093008041382, 0.043545518070459366, 0.23015864193439484, 0.5308091044425964, -0.333053857088089, -0.008719781413674355, -0.029218945652246475, -0.21656785905361176, 0.24954107403755188, -0.15398955345153809, -0.2520102858543396, 0.025285527110099792, 0.14373153448104858, 0.36118176579475403, -0.16750174760818481, -0.27764660120010376, -0.12400450557470322, -0.4408736228942871, -0.24312680959701538, 0.08413777500391006, -0.042737048119306564, 0.08555841445922852, 0.23147641122341156, 0.31746914982795715, -0.3549930453300476, -0.224287211894989, 0.37099969387054443, 0.09431266039609909, 0.26032060384750366, 0.31308743357658386, 0.08809579908847809, -0.21637561917304993, -0.12743732333183289, 0.296552836894989, 0.4111422896385193, -0.47571057081222534, 0.0690818727016449, 0.01395130529999733, 0.12462696433067322, 0.24617977440357208, 0.01820954866707325, 0.07419741898775101, -0.256989985704422, -0.33867913484573364, -0.06908684968948364, 0.009944088757038116, 0.3278675675392151, 0.12076158821582794, 0.1357959806919098, 0.057691365480422974, -0.014596538618206978, -0.3653217554092407, 0.014248741790652275, -0.2701687514781952, 0.13908955454826355, -0.02432282269001007, 0.18286322057247162, -0.4315895736217499, 0.017409343272447586, 0.0081375353038311, 0.14316518604755402, 0.10916231572628021, 0.10638165473937988, -0.12343858182430267, -0.21664753556251526, 0.02918551117181778, 0.1290723830461502, -0.13618794083595276, -0.2797192335128784, 0.23944330215454102, -0.20630711317062378, -0.050865914672613144, -0.37586551904678345, 0.14212389290332794, -0.1364208459854126, -0.031660452485084534, -0.4254382848739624, 0.25964319705963135, -0.16920316219329834, -0.3019404411315918, 0.31808605790138245, -0.4044681489467621, 0.1779983788728714, 0.060763563960790634, 0.1787562072277069, 0.0040055811405181885, -0.15592528879642487, 0.07209151983261108, 0.20296679437160492, 0.16482017934322357, 0.13967834413051605, 0.37972956895828247, -0.026212111115455627, -0.09722794592380524, -0.10738977789878845, 0.33126676082611084, 0.3493911027908325, 0.03802952915430069, -0.13879138231277466, 0.17579036951065063, 0.22563579678535461, -0.32513684034347534, -0.2828208804130554, -0.12963713705539703, -0.2570057809352875, 0.24188928306102753, 0.009579375386238098, 0.20937605202198029, 0.16702228784561157, -0.0789555162191391, -0.20689696073532104, 0.09864384680986404, 0.5504124164581299, -0.14517512917518616, 0.6776703000068665, 0.3272513151168823, -0.1993042528629303, 0.27027958631515503, 0.0020871590822935104, 0.34591439366340637, 0.3618882894515991, -0.11960311233997345, 0.5368242263793945, 0.23207470774650574, 0.24495373666286469, -0.13396739959716797, -0.30904948711395264, 0.13521097600460052, -0.0015175119042396545, -0.013643421232700348, 0.1391918659210205, 0.06212905794382095, 0.44904184341430664, 0.005227904766798019, 0.07710172235965729, -0.3266301155090332, -0.12674950063228607, 0.02904418110847473, -0.08261699974536896, -0.0433855764567852, -0.11773966997861862, -0.07485134899616241, 0.10686877369880676, -0.37246665358543396, -0.13124383985996246, 0.36482328176498413, 0.033845026046037674, 0.18120884895324707, -0.44460800290107727, 0.2035413384437561, -0.1569175124168396, 0.2180987447500229, -0.2398339807987213, 0.174761101603508, 0.050084859132766724, -0.06679385900497437, 0.07139241695404053, 0.10168372094631195, 0.36794617772102356, 0.18524248898029327, -0.1066010370850563, -0.17309299111366272, -0.05663961172103882, -0.038505710661411285, -0.013906925916671753, -0.08696991205215454, 0.0414152666926384, -0.09860052168369293, 0.301762193441391, 0.030814234167337418, -0.15572114288806915, -0.1387580931186676, -0.022854994982481003, -0.2242792546749115, -0.3263447880744934, -0.34533119201660156, -0.20069779455661774, -0.3282325267791748, -0.12952478229999542, -0.18956825137138367, -0.253643274307251, 0.18352043628692627, 0.22793465852737427, -0.31333184242248535, -0.06755881011486053, 0.0006710700690746307, 0.08450055122375488, -0.5105260610580444, 0.6805172562599182, 0.4650323688983917, 0.5556752681732178, -0.3209068179130554, -0.11604464799165726, -0.43565458059310913, 0.06292089819908142, -0.6595265865325928, -0.049787916243076324, 0.294271320104599, 0.3931100368499756, 0.15166911482810974, 0.21537812054157257, 0.16460803151130676, 0.13592593371868134, -0.19167497754096985, 0.32111263275146484, -0.5305005311965942, -0.0809497982263565, -0.027506832033395767, 0.01697666011750698, -0.21761494874954224, -0.6412060260772705, 0.4145413935184479, -0.43625134229660034, 0.019619330763816833, -0.17954003810882568, -0.18055468797683716, 0.3991861343383789, 0.22178198397159576, 0.5155704617500305, 0.002279980108141899, 0.14304029941558838, 0.024066925048828125, -0.18110495805740356, -0.19200293719768524, -0.037632450461387634, 0.08614134043455124, 0.17627297341823578, -0.09164813160896301, 0.08704812079668045, 0.1293836236000061, -0.1807277351617813, 0.09440821409225464, 0.6064494252204895, -0.10337403416633606, 0.0085010826587677, 0.11393550038337708, -0.1410081833600998, -0.20042473077774048, 0.11038777232170105, -0.18586505949497223, -0.033898547291755676, -0.09858192503452301, -0.23733089864253998, -0.15887244045734406, -0.19998502731323242, 0.42357516288757324, -0.45981618762016296, 0.057305991649627686, -0.1773606836795807, 0.2722938060760498, 0.24975675344467163, 0.3505440056324005, -0.19628772139549255, 0.02973112463951111, 0.31973597407341003, 0.0932118371129036, -0.04314689338207245, 0.23114605247974396, 0.15142738819122314, 0.11452259123325348, -0.07493734359741211, 0.3918386399745941, -0.3036594092845917, -0.3066389858722687, -0.22938819229602814, -0.3594549894332886 ]
https://github.com/huggingface/datasets/issues/1803
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?
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.
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.4054940938949585, 0.05864456295967102, -0.07997146993875504, 0.13153260946273804, -0.07969397306442261, -0.1776915192604065, 0.24417473375797272, 0.4918093979358673, -0.2313987761735916, 0.1801937222480774, 0.08149372041225433, 0.055089276283979416, 0.12508581578731537, -0.10075682401657104, 0.13072563707828522, -0.2734067142009735, 0.08074153959751129, 0.12484587728977203, -0.075132355093956, -0.0345287099480629, 0.024030029773712158, -0.19028708338737488, -0.3486270308494568, 0.01847013272345066, -0.06632713973522186, -0.22407229244709015, -0.23070652782917023, 0.10720628499984741, -0.16585059463977814, -0.41739481687545776, -0.05953609570860863, -0.15281875431537628, 0.2299298793077469, 0.42703065276145935, -0.0001130733362515457, 0.016405045986175537, 0.22793085873126984, 0.08941761404275894, -0.19974707067012787, 0.18293386697769165, 0.17480778694152832, -0.2838543653488159, 0.08687463402748108, -0.4097665250301361, -0.047153912484645844, -0.29719820618629456, 0.09342809021472931, 0.018900558352470398, -0.04125330224633217, 0.30897608399391174, 0.14036434888839722, 0.5131548047065735, -0.19170431792736053, -0.13366317749023438, 0.6230674386024475, 0.2051520049571991, -0.35063010454177856, 0.5299631357192993, 0.5806369781494141, -0.048799797892570496, -0.3053150773048401, 0.13614043593406677, -0.08144412189722061, 0.27014103531837463, 0.03702244907617569, 0.19797302782535553, -0.11280506104230881, 0.1795916110277176, 0.1238103061914444, 0.40888869762420654, 0.3083905279636383, -0.0893915444612503, -0.3148863911628723, -0.29201847314834595, -0.05692819133400917, -0.23329341411590576, 0.02030758373439312, 0.3264191448688507, -0.2583793103694916, 0.27134203910827637, -0.31377601623535156, 0.15477809309959412, -0.10565085709095001, 0.17955169081687927, -0.15115892887115479, -0.06861568987369537, 0.11505076289176941, 0.1985105276107788, 0.09379588067531586, 0.013312960043549538, 0.15119320154190063, -0.16962134838104248, 0.028405994176864624, -0.05211064592003822, -0.28830450773239136, -0.08815469592809677, 0.15566349029541016, 0.17557862401008606, 0.2685055136680603, 0.1593102216720581, 0.4223208725452423, 0.11828382313251495, 0.26519376039505005, 0.09436211735010147, 0.045135658234357834, -0.009021654725074768, -0.2695648968219757, -0.0009783506393432617, 0.3478800356388092, 0.27530014514923096, -0.29451650381088257, 0.020877810195088387, -0.23832109570503235, -0.18445411324501038, 0.18156294524669647, -0.19732964038848877, -0.02745353803038597, -0.13371670246124268, 0.004323095083236694, -0.08730469644069672, -0.34211423993110657, -0.12782281637191772, -0.02655736729502678, 0.4784686267375946, -0.18346554040908813, -0.026571981608867645, -0.21266698837280273, 0.1222238689661026, -0.33534276485443115, -0.2540249526500702, -0.12431260943412781, -0.18833565711975098, -0.16008014976978302, 0.2303076684474945, 0.10979539155960083, 0.05609757453203201, 0.302073210477829, 0.05854004621505737, -0.1985151469707489, 0.2419624626636505, 0.3923713266849518, -0.18086576461791992, 0.10445626080036163, 0.01975482888519764, 0.01125546544790268, 0.06353192776441574, -0.16374002397060394, 0.24476408958435059, -0.3910898268222809, 0.19727033376693726, -0.19535666704177856, -0.338478147983551, 0.030639303848147392, 0.09199307858943939, -0.10569539666175842, -0.09976009279489517, -0.2270810753107071, 0.2462453544139862, -0.06942219287157059, -0.19974610209465027, -0.07743752002716064, -0.09419365972280502, 0.04029016196727753, -0.1531328707933426, 0.14130035042762756, 0.07762721180915833, -0.2506592869758606, 0.2018509954214096, -0.045186564326286316, 0.39703473448753357, 0.2543901205062866, 0.5308362245559692, -0.5031033754348755, 0.16236108541488647, -0.13277870416641235, 0.2966160178184509, 0.23202365636825562, -0.028132125735282898, -0.6667609214782715, 0.4973527789115906, -0.004258513450622559, 0.024189144372940063, 0.27248430252075195, 0.16171233355998993, 0.35167819261550903, 0.10784820467233658, -0.049062397330999374, 0.38371169567108154, 0.1839478760957718, 0.22793084383010864, -0.34009963274002075, -0.23031026124954224, -0.048727307468652725, 0.34797465801239014, -0.32447317242622375, -0.15712136030197144, 0.3112511932849884, -0.36459723114967346, 0.4906599819660187, -0.2065640389919281, -0.18362651765346527, 0.25097835063934326, 0.08702370524406433, -0.27774563431739807, 0.11834870278835297, 0.0964876115322113, 0.08594359457492828, 0.2421765774488449, -0.18948686122894287, -0.01846477761864662, 0.045090243220329285, -0.18880867958068848, -0.07221528887748718, 0.06196320801973343, -0.055260129272937775, -0.04738536477088928, -0.044897157698869705, -0.09183019399642944, 0.3306875228881836, -0.0035314634442329407, 0.16473346948623657, -0.16320596635341644, -0.26933732628822327, -0.009445738047361374, -0.26261866092681885, 0.07929285615682602, 0.09506836533546448, -0.12131043523550034, 0.009306341409683228, -0.24925285577774048, -0.08842380344867706, -0.0017328672111034393, -0.15193742513656616, 0.32752764225006104, 0.15022897720336914, 0.15024754405021667, 0.22353094816207886, 0.15224775671958923, 0.14195677638053894, -0.08493118733167648, 0.38797393441200256, 0.2968662679195404, 0.07531556487083435, 0.03652622550725937, -0.40534746646881104, 0.526332437992096, 0.39331290125846863, 0.3160548508167267, 0.2904031276702881, -0.3733907639980316, 0.16444456577301025, 0.0483798086643219, 0.11050234735012054, 0.4106385409832001, 0.2937985360622406, 0.2421559989452362, 0.548956036567688, 0.166325643658638, -0.31619733572006226, 0.11558254808187485, 0.450613796710968, -0.24960139393806458, 0.018042195588350296, 0.18730460107326508, -0.4217131733894348, -0.18561717867851257, 0.370215505361557, -0.15096884965896606, 0.32658034563064575, 0.3312530815601349, 0.16064447164535522, -0.12395542860031128, 0.027443118393421173, -0.2904406785964966, 0.26255032420158386, 0.0967947393655777, 0.14140835404396057, -0.22010822594165802, 0.4368430972099304, -0.09200608730316162, -0.24601098895072937, -0.3815978765487671, -0.03920785337686539, 0.19213199615478516, -0.12640109658241272, 0.30729907751083374, -0.09829853475093842, 0.05361895263195038, -0.032451070845127106, 0.13080066442489624, 0.07907237112522125, -0.08653545379638672, 0.04503849893808365, 0.19354094564914703, -0.18121035397052765, -0.1583382487297058, -0.055191729217767715, 0.22789530456066132, 0.2617880702018738, -0.2087613344192505, -0.0017744898796081543, -0.07168751209974289, -0.39838725328445435, 0.08031324297189713, 0.2775998115539551, 0.1493917554616928, 0.1450456827878952, -0.0469181053340435, -0.1854480654001236, -0.280173659324646, -0.31523823738098145, -0.0065732188522815704, 0.07990669459104538, 0.2866183817386627, -0.07090012729167938, 0.07639463990926743, -0.32445216178894043, -0.14476652443408966, 0.06370997428894043, -0.23291009664535522, -0.15132573246955872, 0.27600738406181335, -0.18074747920036316, 0.000898558646440506, 0.08878333866596222, -0.3163755536079407, -0.16730783879756927, -0.30017703771591187, 0.37843096256256104, 0.1727607697248459, 0.2083454430103302, 0.10755547136068344, 0.39434322714805603, 0.12237115204334259, 0.00965990498661995, 0.1228189617395401, 0.0379166305065155, -0.4149513840675354, 0.5190877914428711, -0.180263489484787, -0.45006418228149414, -0.48882174491882324, -0.24293066561222076, -0.16414900124073029, 0.4524992108345032, -0.534160852432251, -0.031146923080086708, -0.5311311483383179, 0.4127759337425232, 0.12354008108377457, 0.1021672785282135, 0.04960320144891739, -0.21315744519233704, -0.20895560085773468, 0.12922966480255127, 0.08261812478303909, -0.006418973207473755, -0.08785082399845123, 0.20213787257671356, -0.06152098625898361, 0.03371128812432289, -0.009868673980236053, 0.7692421674728394, 0.06894424557685852, -0.012904832139611244, 0.26353582739830017, -0.09490304440259933, 0.051906734704971313, -0.16474498808383942, 0.14588753879070282, 0.09050367772579193, -0.2608802020549774, -0.2699279189109802, 0.41838985681533813, 0.1641470193862915, -0.30802443623542786, 0.05913431942462921, -0.1851300299167633, -0.09765905141830444, -0.2781837582588196, 0.2541964054107666, 0.15882444381713867, 0.1743985265493393, 0.0698607787489891, 0.39265814423561096, -0.30189985036849976, -0.1359270215034485, 0.07070934027433395, -0.2578144371509552, 0.020172564312815666, -0.11698392778635025, -0.33734142780303955, -0.059715524315834045, -0.684593677520752, 0.20213936269283295, -0.0698041245341301, 0.03913911432027817, 0.2540457546710968, -0.3021755814552307, 0.23480461537837982, -0.0662640780210495, 0.5487116575241089, 0.19057194888591766, -0.19964374601840973, -0.11521849036216736, -0.23250070214271545, -0.4247892498970032, -0.1554235816001892, -0.49562570452690125, 0.113651804625988, -0.0005397573113441467, 0.334581196308136, -0.318556010723114, 0.11183620989322662, 0.000060381367802619934, 0.3112284541130066, 0.19164946675300598, -0.044278714805841446, -0.16765466332435608, -0.28234076499938965, -0.13252341747283936, 0.16237783432006836, -0.19951492547988892, 0.05044974759221077, -0.2694345712661743, -0.16961055994033813, -0.14726221561431885, 0.17729300260543823, 0.11682005226612091, 0.4819425046443939, 0.2846929728984833, -0.43825626373291016, 0.3633345365524292, 0.027224842458963394, 0.1518048346042633, 0.38281965255737305, 0.40001970529556274, 0.32248812913894653, -0.12357763946056366, 0.19988875091075897, 0.10222898423671722, 0.07479636371135712, 0.5333120226860046, -0.0012651607394218445, 0.19727268815040588, 0.06110765412449837, 0.276302307844162, -0.05644891411066055, 0.08236731588840485, 0.3274202048778534, -0.08233849704265594, -0.06249725818634033, -0.31682926416397095, 0.7024028301239014, 0.09989868104457855, 0.008582919836044312, 0.23552846908569336, -0.19018761813640594, 0.13044288754463196, 0.30139464139938354, -0.10220655053853989, 0.9143373966217041, -0.12508787214756012, 0.25259774923324585, 0.34947288036346436, 0.06673092395067215, 0.00759023055434227, -0.09591745585203171, 0.151015967130661, -0.3135033845901489, -0.23164904117584229, 0.17610545456409454, -0.28050342202186584, 0.08492065221071243, 0.21285945177078247, -0.1312742531299591, 0.08628807961940765, -0.05373183637857437, 0.1990431845188141, -0.2258603870868683, 0.2392510175704956, -0.2529601752758026, -0.05109217017889023, -0.435342013835907, 0.02882123365998268, 0.0972890630364418, -0.06465181708335876, 0.08860595524311066, -0.1453692615032196, -0.5541806221008301, 0.010253369808197021, -0.09387701749801636, 0.03891480714082718, -0.23558057844638824, 0.16329805552959442, 0.059375833719968796, -0.4771614670753479, -0.08425341546535492, 0.12125421315431595, -0.495369017124176, 0.07895465195178986, -0.24581198394298553, 0.4174093008041382, 0.043545518070459366, 0.23015864193439484, 0.5308091044425964, -0.333053857088089, -0.008719781413674355, -0.029218945652246475, -0.21656785905361176, 0.24954107403755188, -0.15398955345153809, -0.2520102858543396, 0.025285527110099792, 0.14373153448104858, 0.36118176579475403, -0.16750174760818481, -0.27764660120010376, -0.12400450557470322, -0.4408736228942871, -0.24312680959701538, 0.08413777500391006, -0.042737048119306564, 0.08555841445922852, 0.23147641122341156, 0.31746914982795715, -0.3549930453300476, -0.224287211894989, 0.37099969387054443, 0.09431266039609909, 0.26032060384750366, 0.31308743357658386, 0.08809579908847809, -0.21637561917304993, -0.12743732333183289, 0.296552836894989, 0.4111422896385193, -0.47571057081222534, 0.0690818727016449, 0.01395130529999733, 0.12462696433067322, 0.24617977440357208, 0.01820954866707325, 0.07419741898775101, -0.256989985704422, -0.33867913484573364, -0.06908684968948364, 0.009944088757038116, 0.3278675675392151, 0.12076158821582794, 0.1357959806919098, 0.057691365480422974, -0.014596538618206978, -0.3653217554092407, 0.014248741790652275, -0.2701687514781952, 0.13908955454826355, -0.02432282269001007, 0.18286322057247162, -0.4315895736217499, 0.017409343272447586, 0.0081375353038311, 0.14316518604755402, 0.10916231572628021, 0.10638165473937988, -0.12343858182430267, -0.21664753556251526, 0.02918551117181778, 0.1290723830461502, -0.13618794083595276, -0.2797192335128784, 0.23944330215454102, -0.20630711317062378, -0.050865914672613144, -0.37586551904678345, 0.14212389290332794, -0.1364208459854126, -0.031660452485084534, -0.4254382848739624, 0.25964319705963135, -0.16920316219329834, -0.3019404411315918, 0.31808605790138245, -0.4044681489467621, 0.1779983788728714, 0.060763563960790634, 0.1787562072277069, 0.0040055811405181885, -0.15592528879642487, 0.07209151983261108, 0.20296679437160492, 0.16482017934322357, 0.13967834413051605, 0.37972956895828247, -0.026212111115455627, -0.09722794592380524, -0.10738977789878845, 0.33126676082611084, 0.3493911027908325, 0.03802952915430069, -0.13879138231277466, 0.17579036951065063, 0.22563579678535461, -0.32513684034347534, -0.2828208804130554, -0.12963713705539703, -0.2570057809352875, 0.24188928306102753, 0.009579375386238098, 0.20937605202198029, 0.16702228784561157, -0.0789555162191391, -0.20689696073532104, 0.09864384680986404, 0.5504124164581299, -0.14517512917518616, 0.6776703000068665, 0.3272513151168823, -0.1993042528629303, 0.27027958631515503, 0.0020871590822935104, 0.34591439366340637, 0.3618882894515991, -0.11960311233997345, 0.5368242263793945, 0.23207470774650574, 0.24495373666286469, -0.13396739959716797, -0.30904948711395264, 0.13521097600460052, -0.0015175119042396545, -0.013643421232700348, 0.1391918659210205, 0.06212905794382095, 0.44904184341430664, 0.005227904766798019, 0.07710172235965729, -0.3266301155090332, -0.12674950063228607, 0.02904418110847473, -0.08261699974536896, -0.0433855764567852, -0.11773966997861862, -0.07485134899616241, 0.10686877369880676, -0.37246665358543396, -0.13124383985996246, 0.36482328176498413, 0.033845026046037674, 0.18120884895324707, -0.44460800290107727, 0.2035413384437561, -0.1569175124168396, 0.2180987447500229, -0.2398339807987213, 0.174761101603508, 0.050084859132766724, -0.06679385900497437, 0.07139241695404053, 0.10168372094631195, 0.36794617772102356, 0.18524248898029327, -0.1066010370850563, -0.17309299111366272, -0.05663961172103882, -0.038505710661411285, -0.013906925916671753, -0.08696991205215454, 0.0414152666926384, -0.09860052168369293, 0.301762193441391, 0.030814234167337418, -0.15572114288806915, -0.1387580931186676, -0.022854994982481003, -0.2242792546749115, -0.3263447880744934, -0.34533119201660156, -0.20069779455661774, -0.3282325267791748, -0.12952478229999542, -0.18956825137138367, -0.253643274307251, 0.18352043628692627, 0.22793465852737427, -0.31333184242248535, -0.06755881011486053, 0.0006710700690746307, 0.08450055122375488, -0.5105260610580444, 0.6805172562599182, 0.4650323688983917, 0.5556752681732178, -0.3209068179130554, -0.11604464799165726, -0.43565458059310913, 0.06292089819908142, -0.6595265865325928, -0.049787916243076324, 0.294271320104599, 0.3931100368499756, 0.15166911482810974, 0.21537812054157257, 0.16460803151130676, 0.13592593371868134, -0.19167497754096985, 0.32111263275146484, -0.5305005311965942, -0.0809497982263565, -0.027506832033395767, 0.01697666011750698, -0.21761494874954224, -0.6412060260772705, 0.4145413935184479, -0.43625134229660034, 0.019619330763816833, -0.17954003810882568, -0.18055468797683716, 0.3991861343383789, 0.22178198397159576, 0.5155704617500305, 0.002279980108141899, 0.14304029941558838, 0.024066925048828125, -0.18110495805740356, -0.19200293719768524, -0.037632450461387634, 0.08614134043455124, 0.17627297341823578, -0.09164813160896301, 0.08704812079668045, 0.1293836236000061, -0.1807277351617813, 0.09440821409225464, 0.6064494252204895, -0.10337403416633606, 0.0085010826587677, 0.11393550038337708, -0.1410081833600998, -0.20042473077774048, 0.11038777232170105, -0.18586505949497223, -0.033898547291755676, -0.09858192503452301, -0.23733089864253998, -0.15887244045734406, -0.19998502731323242, 0.42357516288757324, -0.45981618762016296, 0.057305991649627686, -0.1773606836795807, 0.2722938060760498, 0.24975675344467163, 0.3505440056324005, -0.19628772139549255, 0.02973112463951111, 0.31973597407341003, 0.0932118371129036, -0.04314689338207245, 0.23114605247974396, 0.15142738819122314, 0.11452259123325348, -0.07493734359741211, 0.3918386399745941, -0.3036594092845917, -0.3066389858722687, -0.22938819229602814, -0.3594549894332886 ]
https://github.com/huggingface/datasets/issues/1803
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.
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.
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.4054940938949585, 0.05864456295967102, -0.07997146993875504, 0.13153260946273804, -0.07969397306442261, -0.1776915192604065, 0.24417473375797272, 0.4918093979358673, -0.2313987761735916, 0.1801937222480774, 0.08149372041225433, 0.055089276283979416, 0.12508581578731537, -0.10075682401657104, 0.13072563707828522, -0.2734067142009735, 0.08074153959751129, 0.12484587728977203, -0.075132355093956, -0.0345287099480629, 0.024030029773712158, -0.19028708338737488, -0.3486270308494568, 0.01847013272345066, -0.06632713973522186, -0.22407229244709015, -0.23070652782917023, 0.10720628499984741, -0.16585059463977814, -0.41739481687545776, -0.05953609570860863, -0.15281875431537628, 0.2299298793077469, 0.42703065276145935, -0.0001130733362515457, 0.016405045986175537, 0.22793085873126984, 0.08941761404275894, -0.19974707067012787, 0.18293386697769165, 0.17480778694152832, -0.2838543653488159, 0.08687463402748108, -0.4097665250301361, -0.047153912484645844, -0.29719820618629456, 0.09342809021472931, 0.018900558352470398, -0.04125330224633217, 0.30897608399391174, 0.14036434888839722, 0.5131548047065735, -0.19170431792736053, -0.13366317749023438, 0.6230674386024475, 0.2051520049571991, -0.35063010454177856, 0.5299631357192993, 0.5806369781494141, -0.048799797892570496, -0.3053150773048401, 0.13614043593406677, -0.08144412189722061, 0.27014103531837463, 0.03702244907617569, 0.19797302782535553, -0.11280506104230881, 0.1795916110277176, 0.1238103061914444, 0.40888869762420654, 0.3083905279636383, -0.0893915444612503, -0.3148863911628723, -0.29201847314834595, -0.05692819133400917, -0.23329341411590576, 0.02030758373439312, 0.3264191448688507, -0.2583793103694916, 0.27134203910827637, -0.31377601623535156, 0.15477809309959412, -0.10565085709095001, 0.17955169081687927, -0.15115892887115479, -0.06861568987369537, 0.11505076289176941, 0.1985105276107788, 0.09379588067531586, 0.013312960043549538, 0.15119320154190063, -0.16962134838104248, 0.028405994176864624, -0.05211064592003822, -0.28830450773239136, -0.08815469592809677, 0.15566349029541016, 0.17557862401008606, 0.2685055136680603, 0.1593102216720581, 0.4223208725452423, 0.11828382313251495, 0.26519376039505005, 0.09436211735010147, 0.045135658234357834, -0.009021654725074768, -0.2695648968219757, -0.0009783506393432617, 0.3478800356388092, 0.27530014514923096, -0.29451650381088257, 0.020877810195088387, -0.23832109570503235, -0.18445411324501038, 0.18156294524669647, -0.19732964038848877, -0.02745353803038597, -0.13371670246124268, 0.004323095083236694, -0.08730469644069672, -0.34211423993110657, -0.12782281637191772, -0.02655736729502678, 0.4784686267375946, -0.18346554040908813, -0.026571981608867645, -0.21266698837280273, 0.1222238689661026, -0.33534276485443115, -0.2540249526500702, -0.12431260943412781, -0.18833565711975098, -0.16008014976978302, 0.2303076684474945, 0.10979539155960083, 0.05609757453203201, 0.302073210477829, 0.05854004621505737, -0.1985151469707489, 0.2419624626636505, 0.3923713266849518, -0.18086576461791992, 0.10445626080036163, 0.01975482888519764, 0.01125546544790268, 0.06353192776441574, -0.16374002397060394, 0.24476408958435059, -0.3910898268222809, 0.19727033376693726, -0.19535666704177856, -0.338478147983551, 0.030639303848147392, 0.09199307858943939, -0.10569539666175842, -0.09976009279489517, -0.2270810753107071, 0.2462453544139862, -0.06942219287157059, -0.19974610209465027, -0.07743752002716064, -0.09419365972280502, 0.04029016196727753, -0.1531328707933426, 0.14130035042762756, 0.07762721180915833, -0.2506592869758606, 0.2018509954214096, -0.045186564326286316, 0.39703473448753357, 0.2543901205062866, 0.5308362245559692, -0.5031033754348755, 0.16236108541488647, -0.13277870416641235, 0.2966160178184509, 0.23202365636825562, -0.028132125735282898, -0.6667609214782715, 0.4973527789115906, -0.004258513450622559, 0.024189144372940063, 0.27248430252075195, 0.16171233355998993, 0.35167819261550903, 0.10784820467233658, -0.049062397330999374, 0.38371169567108154, 0.1839478760957718, 0.22793084383010864, -0.34009963274002075, -0.23031026124954224, -0.048727307468652725, 0.34797465801239014, -0.32447317242622375, -0.15712136030197144, 0.3112511932849884, -0.36459723114967346, 0.4906599819660187, -0.2065640389919281, -0.18362651765346527, 0.25097835063934326, 0.08702370524406433, -0.27774563431739807, 0.11834870278835297, 0.0964876115322113, 0.08594359457492828, 0.2421765774488449, -0.18948686122894287, -0.01846477761864662, 0.045090243220329285, -0.18880867958068848, -0.07221528887748718, 0.06196320801973343, -0.055260129272937775, -0.04738536477088928, -0.044897157698869705, -0.09183019399642944, 0.3306875228881836, -0.0035314634442329407, 0.16473346948623657, -0.16320596635341644, -0.26933732628822327, -0.009445738047361374, -0.26261866092681885, 0.07929285615682602, 0.09506836533546448, -0.12131043523550034, 0.009306341409683228, -0.24925285577774048, -0.08842380344867706, -0.0017328672111034393, -0.15193742513656616, 0.32752764225006104, 0.15022897720336914, 0.15024754405021667, 0.22353094816207886, 0.15224775671958923, 0.14195677638053894, -0.08493118733167648, 0.38797393441200256, 0.2968662679195404, 0.07531556487083435, 0.03652622550725937, -0.40534746646881104, 0.526332437992096, 0.39331290125846863, 0.3160548508167267, 0.2904031276702881, -0.3733907639980316, 0.16444456577301025, 0.0483798086643219, 0.11050234735012054, 0.4106385409832001, 0.2937985360622406, 0.2421559989452362, 0.548956036567688, 0.166325643658638, -0.31619733572006226, 0.11558254808187485, 0.450613796710968, -0.24960139393806458, 0.018042195588350296, 0.18730460107326508, -0.4217131733894348, -0.18561717867851257, 0.370215505361557, -0.15096884965896606, 0.32658034563064575, 0.3312530815601349, 0.16064447164535522, -0.12395542860031128, 0.027443118393421173, -0.2904406785964966, 0.26255032420158386, 0.0967947393655777, 0.14140835404396057, -0.22010822594165802, 0.4368430972099304, -0.09200608730316162, -0.24601098895072937, -0.3815978765487671, -0.03920785337686539, 0.19213199615478516, -0.12640109658241272, 0.30729907751083374, -0.09829853475093842, 0.05361895263195038, -0.032451070845127106, 0.13080066442489624, 0.07907237112522125, -0.08653545379638672, 0.04503849893808365, 0.19354094564914703, -0.18121035397052765, -0.1583382487297058, -0.055191729217767715, 0.22789530456066132, 0.2617880702018738, -0.2087613344192505, -0.0017744898796081543, -0.07168751209974289, -0.39838725328445435, 0.08031324297189713, 0.2775998115539551, 0.1493917554616928, 0.1450456827878952, -0.0469181053340435, -0.1854480654001236, -0.280173659324646, -0.31523823738098145, -0.0065732188522815704, 0.07990669459104538, 0.2866183817386627, -0.07090012729167938, 0.07639463990926743, -0.32445216178894043, -0.14476652443408966, 0.06370997428894043, -0.23291009664535522, -0.15132573246955872, 0.27600738406181335, -0.18074747920036316, 0.000898558646440506, 0.08878333866596222, -0.3163755536079407, -0.16730783879756927, -0.30017703771591187, 0.37843096256256104, 0.1727607697248459, 0.2083454430103302, 0.10755547136068344, 0.39434322714805603, 0.12237115204334259, 0.00965990498661995, 0.1228189617395401, 0.0379166305065155, -0.4149513840675354, 0.5190877914428711, -0.180263489484787, -0.45006418228149414, -0.48882174491882324, -0.24293066561222076, -0.16414900124073029, 0.4524992108345032, -0.534160852432251, -0.031146923080086708, -0.5311311483383179, 0.4127759337425232, 0.12354008108377457, 0.1021672785282135, 0.04960320144891739, -0.21315744519233704, -0.20895560085773468, 0.12922966480255127, 0.08261812478303909, -0.006418973207473755, -0.08785082399845123, 0.20213787257671356, -0.06152098625898361, 0.03371128812432289, -0.009868673980236053, 0.7692421674728394, 0.06894424557685852, -0.012904832139611244, 0.26353582739830017, -0.09490304440259933, 0.051906734704971313, -0.16474498808383942, 0.14588753879070282, 0.09050367772579193, -0.2608802020549774, -0.2699279189109802, 0.41838985681533813, 0.1641470193862915, -0.30802443623542786, 0.05913431942462921, -0.1851300299167633, -0.09765905141830444, -0.2781837582588196, 0.2541964054107666, 0.15882444381713867, 0.1743985265493393, 0.0698607787489891, 0.39265814423561096, -0.30189985036849976, -0.1359270215034485, 0.07070934027433395, -0.2578144371509552, 0.020172564312815666, -0.11698392778635025, -0.33734142780303955, -0.059715524315834045, -0.684593677520752, 0.20213936269283295, -0.0698041245341301, 0.03913911432027817, 0.2540457546710968, -0.3021755814552307, 0.23480461537837982, -0.0662640780210495, 0.5487116575241089, 0.19057194888591766, -0.19964374601840973, -0.11521849036216736, -0.23250070214271545, -0.4247892498970032, -0.1554235816001892, -0.49562570452690125, 0.113651804625988, -0.0005397573113441467, 0.334581196308136, -0.318556010723114, 0.11183620989322662, 0.000060381367802619934, 0.3112284541130066, 0.19164946675300598, -0.044278714805841446, -0.16765466332435608, -0.28234076499938965, -0.13252341747283936, 0.16237783432006836, -0.19951492547988892, 0.05044974759221077, -0.2694345712661743, -0.16961055994033813, -0.14726221561431885, 0.17729300260543823, 0.11682005226612091, 0.4819425046443939, 0.2846929728984833, -0.43825626373291016, 0.3633345365524292, 0.027224842458963394, 0.1518048346042633, 0.38281965255737305, 0.40001970529556274, 0.32248812913894653, -0.12357763946056366, 0.19988875091075897, 0.10222898423671722, 0.07479636371135712, 0.5333120226860046, -0.0012651607394218445, 0.19727268815040588, 0.06110765412449837, 0.276302307844162, -0.05644891411066055, 0.08236731588840485, 0.3274202048778534, -0.08233849704265594, -0.06249725818634033, -0.31682926416397095, 0.7024028301239014, 0.09989868104457855, 0.008582919836044312, 0.23552846908569336, -0.19018761813640594, 0.13044288754463196, 0.30139464139938354, -0.10220655053853989, 0.9143373966217041, -0.12508787214756012, 0.25259774923324585, 0.34947288036346436, 0.06673092395067215, 0.00759023055434227, -0.09591745585203171, 0.151015967130661, -0.3135033845901489, -0.23164904117584229, 0.17610545456409454, -0.28050342202186584, 0.08492065221071243, 0.21285945177078247, -0.1312742531299591, 0.08628807961940765, -0.05373183637857437, 0.1990431845188141, -0.2258603870868683, 0.2392510175704956, -0.2529601752758026, -0.05109217017889023, -0.435342013835907, 0.02882123365998268, 0.0972890630364418, -0.06465181708335876, 0.08860595524311066, -0.1453692615032196, -0.5541806221008301, 0.010253369808197021, -0.09387701749801636, 0.03891480714082718, -0.23558057844638824, 0.16329805552959442, 0.059375833719968796, -0.4771614670753479, -0.08425341546535492, 0.12125421315431595, -0.495369017124176, 0.07895465195178986, -0.24581198394298553, 0.4174093008041382, 0.043545518070459366, 0.23015864193439484, 0.5308091044425964, -0.333053857088089, -0.008719781413674355, -0.029218945652246475, -0.21656785905361176, 0.24954107403755188, -0.15398955345153809, -0.2520102858543396, 0.025285527110099792, 0.14373153448104858, 0.36118176579475403, -0.16750174760818481, -0.27764660120010376, -0.12400450557470322, -0.4408736228942871, -0.24312680959701538, 0.08413777500391006, -0.042737048119306564, 0.08555841445922852, 0.23147641122341156, 0.31746914982795715, -0.3549930453300476, -0.224287211894989, 0.37099969387054443, 0.09431266039609909, 0.26032060384750366, 0.31308743357658386, 0.08809579908847809, -0.21637561917304993, -0.12743732333183289, 0.296552836894989, 0.4111422896385193, -0.47571057081222534, 0.0690818727016449, 0.01395130529999733, 0.12462696433067322, 0.24617977440357208, 0.01820954866707325, 0.07419741898775101, -0.256989985704422, -0.33867913484573364, -0.06908684968948364, 0.009944088757038116, 0.3278675675392151, 0.12076158821582794, 0.1357959806919098, 0.057691365480422974, -0.014596538618206978, -0.3653217554092407, 0.014248741790652275, -0.2701687514781952, 0.13908955454826355, -0.02432282269001007, 0.18286322057247162, -0.4315895736217499, 0.017409343272447586, 0.0081375353038311, 0.14316518604755402, 0.10916231572628021, 0.10638165473937988, -0.12343858182430267, -0.21664753556251526, 0.02918551117181778, 0.1290723830461502, -0.13618794083595276, -0.2797192335128784, 0.23944330215454102, -0.20630711317062378, -0.050865914672613144, -0.37586551904678345, 0.14212389290332794, -0.1364208459854126, -0.031660452485084534, -0.4254382848739624, 0.25964319705963135, -0.16920316219329834, -0.3019404411315918, 0.31808605790138245, -0.4044681489467621, 0.1779983788728714, 0.060763563960790634, 0.1787562072277069, 0.0040055811405181885, -0.15592528879642487, 0.07209151983261108, 0.20296679437160492, 0.16482017934322357, 0.13967834413051605, 0.37972956895828247, -0.026212111115455627, -0.09722794592380524, -0.10738977789878845, 0.33126676082611084, 0.3493911027908325, 0.03802952915430069, -0.13879138231277466, 0.17579036951065063, 0.22563579678535461, -0.32513684034347534, -0.2828208804130554, -0.12963713705539703, -0.2570057809352875, 0.24188928306102753, 0.009579375386238098, 0.20937605202198029, 0.16702228784561157, -0.0789555162191391, -0.20689696073532104, 0.09864384680986404, 0.5504124164581299, -0.14517512917518616, 0.6776703000068665, 0.3272513151168823, -0.1993042528629303, 0.27027958631515503, 0.0020871590822935104, 0.34591439366340637, 0.3618882894515991, -0.11960311233997345, 0.5368242263793945, 0.23207470774650574, 0.24495373666286469, -0.13396739959716797, -0.30904948711395264, 0.13521097600460052, -0.0015175119042396545, -0.013643421232700348, 0.1391918659210205, 0.06212905794382095, 0.44904184341430664, 0.005227904766798019, 0.07710172235965729, -0.3266301155090332, -0.12674950063228607, 0.02904418110847473, -0.08261699974536896, -0.0433855764567852, -0.11773966997861862, -0.07485134899616241, 0.10686877369880676, -0.37246665358543396, -0.13124383985996246, 0.36482328176498413, 0.033845026046037674, 0.18120884895324707, -0.44460800290107727, 0.2035413384437561, -0.1569175124168396, 0.2180987447500229, -0.2398339807987213, 0.174761101603508, 0.050084859132766724, -0.06679385900497437, 0.07139241695404053, 0.10168372094631195, 0.36794617772102356, 0.18524248898029327, -0.1066010370850563, -0.17309299111366272, -0.05663961172103882, -0.038505710661411285, -0.013906925916671753, -0.08696991205215454, 0.0414152666926384, -0.09860052168369293, 0.301762193441391, 0.030814234167337418, -0.15572114288806915, -0.1387580931186676, -0.022854994982481003, -0.2242792546749115, -0.3263447880744934, -0.34533119201660156, -0.20069779455661774, -0.3282325267791748, -0.12952478229999542, -0.18956825137138367, -0.253643274307251, 0.18352043628692627, 0.22793465852737427, -0.31333184242248535, -0.06755881011486053, 0.0006710700690746307, 0.08450055122375488, -0.5105260610580444, 0.6805172562599182, 0.4650323688983917, 0.5556752681732178, -0.3209068179130554, -0.11604464799165726, -0.43565458059310913, 0.06292089819908142, -0.6595265865325928, -0.049787916243076324, 0.294271320104599, 0.3931100368499756, 0.15166911482810974, 0.21537812054157257, 0.16460803151130676, 0.13592593371868134, -0.19167497754096985, 0.32111263275146484, -0.5305005311965942, -0.0809497982263565, -0.027506832033395767, 0.01697666011750698, -0.21761494874954224, -0.6412060260772705, 0.4145413935184479, -0.43625134229660034, 0.019619330763816833, -0.17954003810882568, -0.18055468797683716, 0.3991861343383789, 0.22178198397159576, 0.5155704617500305, 0.002279980108141899, 0.14304029941558838, 0.024066925048828125, -0.18110495805740356, -0.19200293719768524, -0.037632450461387634, 0.08614134043455124, 0.17627297341823578, -0.09164813160896301, 0.08704812079668045, 0.1293836236000061, -0.1807277351617813, 0.09440821409225464, 0.6064494252204895, -0.10337403416633606, 0.0085010826587677, 0.11393550038337708, -0.1410081833600998, -0.20042473077774048, 0.11038777232170105, -0.18586505949497223, -0.033898547291755676, -0.09858192503452301, -0.23733089864253998, -0.15887244045734406, -0.19998502731323242, 0.42357516288757324, -0.45981618762016296, 0.057305991649627686, -0.1773606836795807, 0.2722938060760498, 0.24975675344467163, 0.3505440056324005, -0.19628772139549255, 0.02973112463951111, 0.31973597407341003, 0.0932118371129036, -0.04314689338207245, 0.23114605247974396, 0.15142738819122314, 0.11452259123325348, -0.07493734359741211, 0.3918386399745941, -0.3036594092845917, -0.3066389858722687, -0.22938819229602814, -0.3594549894332886 ]
https://github.com/huggingface/datasets/issues/1797
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 :)
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`
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.26246824860572815, -0.4733124375343323, -0.10554549098014832, 0.17871570587158203, 0.5621635913848877, -0.1030881255865097, -0.017071833834052086, 0.22683115303516388, 0.1645880490541458, 0.2273809313774109, -0.30961042642593384, -0.00459892675280571, 0.20449578762054443, 0.443229079246521, 0.20473995804786682, -0.29173269867897034, -0.04404369741678238, -0.08420493453741074, -0.4558960497379303, 0.06750128418207169, 0.08230380713939667, 0.09755177050828934, -0.10734408348798752, 0.031204015016555786, -0.34155821800231934, -0.07554520666599274, -0.1273663192987442, 0.2207469344139099, -0.26866084337234497, -0.10705959051847458, 0.4869900941848755, 0.13938754796981812, 0.023210518062114716, 0.5769343972206116, -0.00010756489064078778, 0.11494721472263336, 0.31648486852645874, 0.0242445170879364, -0.22399982810020447, -0.33114033937454224, -0.11807028949260712, -0.029636546969413757, 0.2868143320083618, -0.07439561933279037, -0.3245803415775299, 0.05519019067287445, 0.16639845073223114, -0.22520402073860168, 0.597260594367981, 0.1780354082584381, 0.2932913601398468, 0.44544360041618347, 0.3417462408542633, -0.17413657903671265, -0.008784856647253036, -0.23596075177192688, -0.0033457502722740173, 0.4921543002128601, 0.18152695894241333, 0.04718766361474991, 0.21328400075435638, 0.23372329771518707, 0.09236080944538116, -0.11591596901416779, 0.23412519693374634, -0.13572239875793457, 0.08226132392883301, -0.3459506928920746, 0.03481417894363403, 0.3595282733440399, 0.5571646690368652, -0.1973254531621933, -0.28977879881858826, 0.04637870192527771, -0.047395143657922745, -0.15393885970115662, 0.22773337364196777, 0.07082314789295197, -0.07822446525096893, 0.1751246303319931, -0.2249847948551178, -0.21495816111564636, -0.27985963225364685, 0.25431427359580994, -0.06235994026064873, 0.023430977016687393, -0.23332378268241882, 0.12854498624801636, 0.06623903661966324, -0.13253799080848694, -0.12612952291965485, 0.1575850546360016, 0.027180742472410202, 0.17377783358097076, -0.4677261710166931, -0.026317402720451355, -0.15106354653835297, 0.2300412952899933, 0.21476125717163086, 0.14801771938800812, -0.10892793536186218, 0.1767997145652771, -0.1645570695400238, 0.23963332176208496, 0.23426996171474457, 0.09919053316116333, -0.0924917459487915, -0.08063191920518875, 0.25832676887512207, 0.259556382894516, -0.10940238833427429, -0.10852667689323425, -0.07847786694765091, -0.20594066381454468, -0.31374961137771606, -0.06203076243400574, 0.23558935523033142, -0.26444345712661743, -0.2093428075313568, 0.07773864269256592, 0.15082308650016785, -0.05324530974030495, 0.16761654615402222, 0.4941650927066803, -0.24397285282611847, 0.1843061000108719, 0.03984116017818451, 0.15106573700904846, -0.2680297791957855, -0.03731103986501694, -0.31293800473213196, 0.18063031136989594, -0.1964215636253357, -0.06155911087989807, -0.044241588562726974, -0.1772380769252777, 0.21607738733291626, -0.07855072617530823, 0.34342053532600403, -0.16401919722557068, 0.05471272021532059, -0.1044938713312149, -0.3085640072822571, 0.2629110515117645, 0.1635642945766449, -0.028210386633872986, 0.28258222341537476, -0.06075126677751541, -0.03487718105316162, -0.2365303933620453, -0.33407318592071533, -0.37413468956947327, -0.05521363765001297, 0.27547410130500793, -0.0566122904419899, -0.008533941581845284, -0.3372323215007782, 0.01828610524535179, -0.039647508412599564, 0.1264609396457672, -0.18660180270671844, -0.06320752203464508, -0.1109025701880455, -0.12567336857318878, 0.41005024313926697, 0.22694411873817444, -0.06826114654541016, -0.271158903837204, 0.335516095161438, -0.3717985451221466, 0.1890808641910553, 0.18692214787006378, -0.12689507007598877, -0.01944701373577118, -0.1061922088265419, 0.11001919209957123, 0.16555866599082947, -0.3452136516571045, -0.36844369769096375, 0.19670987129211426, -0.28387442231178284, -0.07346096634864807, 0.04290395230054855, 0.006849866360425949, 0.0907796323299408, 0.14557795226573944, 0.20330096781253815, 0.20767362415790558, -0.031841374933719635, -0.04367685690522194, -0.13373790681362152, -0.2656518518924713, 0.04277021437883377, 0.27025914192199707, 0.02277408167719841, 0.022779077291488647, 0.1320149451494217, -0.05154829099774361, 0.2843169569969177, 0.05029626935720444, 0.0927806869149208, 0.25928279757499695, 0.2045939862728119, 0.22700387239456177, 0.005305130034685135, -0.3561691641807556, 0.028229331597685814, 0.0911855399608612, 0.047184668481349945, 0.2919332683086395, -0.07912271469831467, -0.11056257039308548, -0.3629341721534729, -0.1520823985338211, -0.18350407481193542, -0.06594324111938477, 0.15368950366973877, -0.2198697328567505, 0.19731713831424713, 0.23859509825706482, -0.11917049437761307, 0.2829244136810303, -0.17955783009529114, 0.24050019681453705, -0.46979326009750366, 0.40095892548561096, -0.193750262260437, 0.00685737282037735, 0.0877898633480072, 0.09348800033330917, 0.11604515463113785, -0.2712267339229584, -0.12820425629615784, 0.4408641755580902, -0.21609434485435486, 0.31927070021629333, 0.38975223898887634, 0.0405474454164505, 0.25625741481781006, -0.45831987261772156, -0.04767119884490967, -0.09609995782375336, 0.06595966219902039, 0.05263224244117737, 0.2186976671218872, 0.20485615730285645, 0.05532166734337807, 0.13823914527893066, 0.13538740575313568, 0.19187548756599426, 0.3227008581161499, 0.060696884989738464, -0.08914488554000854, 0.07026688009500504, 0.21632346510887146, -0.19810622930526733, 0.03557487577199936, -0.19625362753868103, -0.2209891974925995, -0.005444176495075226, 0.007767470553517342, -0.019076082855463028, -0.05225035175681114, 0.07209113240242004, -0.1022573709487915, -0.0005348175764083862, 0.07294030487537384, 0.06906810402870178, 0.26635512709617615, 0.23992496728897095, -0.03783639892935753, 0.27929767966270447, 0.058001015335321426, -0.10217466950416565, 0.1855023205280304, 0.06843052804470062, 0.04495102912187576, -0.038211993873119354, -0.12117050588130951, -0.11825542151927948, -0.2871049642562866, -0.0011871010065078735, -0.22105634212493896, 0.17952169477939606, -0.24707531929016113, -0.021479777991771698, -0.09277603775262833, -0.31237727403640747, 0.06588916480541229, -0.16172559559345245, -0.27315813302993774, -0.34809574484825134, -0.05344401299953461, 0.13658088445663452, 0.033134326338768005, 0.19881203770637512, -0.3494463264942169, 0.1007373034954071, 0.15582478046417236, 0.016812125220894814, -0.11588693410158157, -0.11742141097784042, -0.12868574261665344, 0.15657830238342285, 0.009374983608722687, 0.06263308227062225, 0.3976944386959076, -0.2893912196159363, -0.1418684720993042, -0.10585374385118484, -0.23194438219070435, 0.0629834458231926, -0.10839307308197021, 0.3044181764125824, 0.27781587839126587, 0.4564884603023529, -0.08641854673624039, -0.05203505977988243, 0.6056535243988037, -0.18026763200759888, -0.027554266154766083, -0.0341370590031147, 0.022797971963882446, -0.13315340876579285, 0.1109786108136177, -0.29916948080062866, -0.5104172229766846, -0.2131533920764923, 0.1405186653137207, -0.06936845183372498, 0.10471861064434052, 0.11607091128826141, 0.006844624876976013, 0.11729807406663895, -0.18098199367523193, 0.13722474873065948, -0.30940839648246765, -0.814568042755127, 0.11365920305252075, -0.09336686879396439, -0.4647526741027832, 0.12295936048030853, 0.19538317620754242, 0.25699031352996826, 0.11918482929468155, -0.32890430092811584, -0.3935403823852539, -0.03340909257531166, 0.09856884926557541, 0.18633541464805603, 0.14093898236751556, 0.16609026491641998, -0.26639124751091003, -0.17488189041614532, -0.011950939893722534, 0.026689589023590088, -0.03687665984034538, -0.21505817770957947, 0.4406510889530182, -0.008477904833853245, 0.45177286863327026, -0.016899295151233673, 0.40307801961898804, 0.20120544731616974, 0.04665306583046913, 0.4095163345336914, -0.30878424644470215, 0.22121359407901764, -0.03562880679965019, -0.6038444638252258, 0.2042992115020752, -0.1897948980331421, 0.061830952763557434, 0.009604770690202713, 0.19673749804496765, 0.2806483209133148, -0.4943081736564636, -0.2354850322008133, -0.21834774315357208, -0.2715519368648529, -0.2354331761598587, -0.005423267837613821, 0.16089406609535217, 0.040554359555244446, -0.1433328092098236, -0.024907995015382767, -0.0667840838432312, -0.01646091416478157, 0.5720890760421753, -0.06939806044101715, 0.1114213764667511, -0.6191422939300537, 0.04223421961069107, -0.6355406641960144, 0.35626327991485596, -0.14486296474933624, 0.1651327759027481, -0.29587477445602417, 0.07922022044658661, 0.09382306039333344, -0.015076424926519394, 0.7718526721000671, 0.0018983613699674606, -0.017930587753653526, -0.11051616817712784, -0.19070206582546234, -0.2759571075439453, 0.10915130376815796, -0.008985042572021484, 0.40835052728652954, 0.49190637469291687, 0.24737125635147095, -0.34707391262054443, -0.11454866081476212, 0.08728727698326111, -0.02105606719851494, -0.24401192367076874, -0.2094927728176117, -0.3656122386455536, -0.278671532869339, -0.17742443084716797, 0.05640091747045517, -0.043728336691856384, 0.38155218958854675, 0.08103960752487183, -0.26562750339508057, 0.009109335020184517, -0.054290201514959335, 0.28260794281959534, 0.03852590546011925, 0.14477892220020294, 0.009442921727895737, 0.16918353736400604, 0.31199875473976135, 0.4208046495914459, 0.13194724917411804, 0.4850688576698303, -0.2108384072780609, -0.2717648446559906, -0.09845136106014252, 0.10138706862926483, 0.1231098398566246, 0.21838298439979553, -0.19412632286548615, 0.2023678719997406, 0.25474560260772705, 0.46015024185180664, -0.17067691683769226, 0.2522604465484619, 0.27734214067459106, 0.2792244851589203, -0.3641134202480316, -0.4865395426750183, 0.1555071473121643, -0.09173901379108429, 0.09430600702762604, 0.2631675899028778, 0.29644542932510376, -0.035594359040260315, -0.16623219847679138, -0.2842916250228882, 1.0478121042251587, -0.09567324072122574, 0.0067072962410748005, 0.19443577527999878, 0.13708478212356567, 0.45075857639312744, -0.09219498932361603, 0.14174984395503998, -0.21442274749279022, -0.29496583342552185, -0.05417994037270546, -0.1743755340576172, 0.16805723309516907, -0.23622435331344604, -0.05374285206198692, 0.3484443128108978, -0.020350344479084015, 0.029255498200654984, -0.13200370967388153, 0.26884984970092773, -0.29671362042427063, 0.012033145874738693, -0.3091318905353546, 0.2553619146347046, -0.13430121541023254, 0.4604223966598511, -0.030218293890357018, -0.15188322961330414, -0.1035429984331131, -0.33614271879196167, -0.06361280381679535, 0.11918851733207703, -0.2714743912220001, 0.10958920419216156, 0.1017431765794754, -0.22246944904327393, 0.001754067838191986, 0.11408135294914246, 0.09383375942707062, 0.07617650926113129, -0.2716825008392334, 0.20655564963817596, -0.5015841126441956, -0.15286850929260254, 0.12703904509544373, 0.11774756759405136, 0.14615829288959503, -0.2006831169128418, -0.49354252219200134, 0.11873564124107361, 0.1249827891588211, -0.19051095843315125, -0.05107319355010986, -0.13718491792678833, 0.0943688154220581, -0.4705701470375061, -0.19561345875263214, -0.3145422339439392, 0.03588900715112686, -0.19695758819580078, 0.20312947034835815, 0.1291760504245758, -0.2606882154941559, 0.09356825053691864, 0.20060062408447266, -0.11756820976734161, -0.06309349834918976, 0.5965723991394043, -0.09246259927749634, 0.0054062604904174805, 0.45780715346336365, 0.1677635759115219, -0.13801667094230652, -0.18074965476989746, -0.07790908217430115, 0.22527261078357697, -0.2601615786552429, -0.04465163126587868, 0.04424870014190674, 0.13005830347537994, -0.20830780267715454, 0.038456834852695465, 0.22608168423175812, 0.009782755747437477, 0.27548664808273315, -0.5902451276779175, -0.4207304120063782, 0.1600780189037323, 0.06967975199222565, 0.17433707416057587, 0.29525303840637207, 0.35553404688835144, 0.11888213455677032, 0.08426298201084137, -0.3726804554462433, 0.014194577932357788, -0.25795939564704895, -0.03389245271682739, 0.3824024796485901, -0.30163460969924927, 0.35035446286201477, -0.1016359031200409, 0.22284604609012604, -0.06418822705745697, -0.3282790184020996, -0.22894001007080078, -0.09840871393680573, 0.08980854600667953, -0.018325991928577423, -0.3839886486530304, -0.0003593564033508301, -0.11927641928195953, -0.06859061121940613, 0.00581938773393631, 0.12392157316207886, 0.1958065629005432, 0.02297484129667282, -0.1963895559310913, 0.07384537905454636, -0.03654142841696739, -0.09937109053134918, 0.15597844123840332, 0.1055220440030098, 0.2584666609764099, 0.03657393530011177, -0.08118265122175217, -0.10452233254909515, -0.2432992160320282, -0.27364450693130493, -0.06247363239526749, 0.2513029873371124, -0.12784650921821594, 0.26761168241500854, -0.16883014142513275, -0.07256462424993515, 0.14479628205299377, 0.5498507022857666, 0.3072589933872223, -0.2752385139465332, 0.32853201031684875, 0.15257391333580017, 0.2810034155845642, -0.24953173100948334, -0.00885683298110962, 0.2969355285167694, -0.04273393750190735, -0.08192647993564606, -0.1622229665517807, 0.07229381054639816, 0.1996445655822754, 0.02402304857969284, 0.044637732207775116, 0.5042861700057983, -0.023815926164388657, 0.17889094352722168, -0.035074565559625626, -0.05620422586798668, 0.005012495443224907, 0.15214835107326508, 0.23209914565086365, -0.058586783707141876, 0.3224659860134125, -0.3049379885196686, 0.3366064131259918, -0.29978740215301514, 0.2508378326892853, -0.1354239583015442, -0.30395543575286865, -0.14471402764320374, 0.13806158304214478, -0.26596057415008545, -0.10883785784244537, -0.25591734051704407, 0.7806468605995178, -0.3334016799926758, -0.013906391337513924, -0.22323906421661377, 0.3534819781780243, -0.07585468143224716, -0.306018203496933, -0.049138955771923065, -0.2112848311662674, -0.03292642533779144, -0.19813403487205505, 0.13099612295627594, -0.24584323167800903, 0.011171311140060425, 0.034396056085824966, -0.08026889711618423, -0.5813342332839966, -0.1702587753534317, 0.19768908619880676, 0.14569689333438873, -0.0387902669608593, 0.23392567038536072, 0.2654063105583191, 0.1201949417591095, 0.07109858095645905, 0.33459511399269104, 0.46034717559814453, 0.22856560349464417, 0.12125883996486664, 0.10230305045843124, 0.14401766657829285, -0.04388056695461273, 0.016588788479566574, 0.05831858515739441, 0.15137992799282074, 0.026812344789505005, 0.27945902943611145, 0.26096561551094055, -0.2058105170726776, 0.02528504841029644, -0.09166139364242554, 0.36474788188934326, -0.24822998046875, 0.3037286400794983, -0.16168881952762604, 0.018771469593048096, -0.41957151889801025, 0.03843976557254791, -0.7279619574546814, 0.3941762149333954, 0.14012596011161804, -0.08906733244657516, 0.16463592648506165, -0.3102860450744629, 0.1091732382774353, -0.16979198157787323, 0.5486782789230347, 0.2740633487701416, 0.2621697187423706, -0.2371130883693695, -0.18582424521446228, -0.5177456140518188, 0.17520204186439514, -0.047524530440568924, -0.28807222843170166, -0.09666701406240463, 0.04664730280637741, -0.11427570134401321, 0.0965365543961525, 0.12369881570339203, 0.0150240957736969, 0.18972206115722656, -0.0559559166431427, -0.18486575782299042, 0.05355328693985939, -0.3134872317314148, 0.1869216412305832, 0.12494689971208572, -0.13353542983531952, 0.23889219760894775, 0.14444682002067566, 0.06276915967464447, -0.037331730127334595, 0.2129228711128235, -0.2674393653869629, -0.29977554082870483, 0.24676457047462463, 0.1838712990283966, 0.5290334820747375, -0.026621103286743164, 0.06923923641443253, -0.10849389433860779, -0.4502313733100891, -0.2254646271467209, 0.09921391308307648, 0.14850667119026184, 0.13362309336662292, -0.01028984785079956, -0.2486867606639862, -0.27915239334106445, 0.4303967356681824, -0.051970548927783966, -0.3362528085708618, -0.039417997002601624, -0.06305258721113205, 0.15152594447135925, -0.0076330192387104034, 0.15659594535827637, 0.31535977125167847, -0.022659320384263992, 0.08604690432548523, -0.09898173809051514, -0.2700573801994324, 0.6556454300880432, -0.23791825771331787, -0.01302189752459526, -0.25190532207489014, 0.2108680009841919, 0.3994063436985016, -0.12138950824737549, -0.44447240233421326, 0.2536523938179016, 0.23809321224689484, 0.08833815157413483, -0.09615105390548706, 0.47888636589050293, -0.03215083107352257, 0.18700112402439117, 0.02437470853328705, 0.0740242749452591, 0.014394916594028473, -0.12682326138019562, 0.19348746538162231, -0.07435132563114166 ]
https://github.com/huggingface/datasets/issues/1796
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']) ```
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']) ```
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.27120888233184814, -0.05973125994205475, -0.11476293951272964, -0.2779480516910553, -0.17065051198005676, -0.2504288852214813, 0.17076221108436584, 0.20902463793754578, 0.2598770260810852, -0.11639678478240967, -0.08618345856666565, 0.29582667350769043, -0.05571427941322327, 0.4060816764831543, -0.18042594194412231, 0.24535825848579407, 0.13079075515270233, 0.29705721139907837, 0.19601331651210785, 0.033356957137584686, -0.022403016686439514, -0.18826773762702942, -0.29294097423553467, -0.07038816809654236, -0.009625464677810669, -0.26216521859169006, 0.18598680198192596, -0.30865153670310974, -0.2785186469554901, -0.21260270476341248, -0.01739099994301796, 0.5965907573699951, -0.018276993185281754, 0.5038158893585205, -0.00013071837020106614, -0.23383811116218567, 0.2439536452293396, 0.07246088981628418, 0.08311852812767029, 0.1498081088066101, -0.21130096912384033, -0.12860353291034698, -0.01403752714395523, -0.0004980713129043579, -0.12500673532485962, 0.002730362117290497, -0.33180007338523865, -0.22165177762508392, 0.349970281124115, 0.09446866810321808, -0.02777501940727234, -0.14122506976127625, -0.25493431091308594, 0.35211336612701416, 0.205282062292099, 0.35417452454566956, 0.14113420248031616, -0.15136970579624176, 0.5533322691917419, -0.3358144462108612, 0.05394524335861206, 0.6059807538986206, -0.4179319441318512, -0.1313287317752838, 0.21006490290164948, -0.2898600101470947, 0.05838356912136078, -0.1515578031539917, 0.28101953864097595, 0.0848345011472702, 0.13357029855251312, -0.16201630234718323, -0.29869163036346436, -0.23227447271347046, -0.08496446907520294, -0.44592857360839844, -0.014386635273694992, -0.09340515732765198, -0.257945716381073, 0.034579548984766006, -0.5128166079521179, -0.3484368920326233, 0.08615152537822723, 0.1266559511423111, -0.3261457085609436, 0.36001548171043396, -0.006306344643235207, 0.20965728163719177, 0.13119792938232422, -0.2452675700187683, 0.0699501633644104, -0.2122395932674408, 0.19134189188480377, 0.3051822781562805, -0.6571980118751526, -0.1016247421503067, -0.09628631919622421, 0.16054321825504303, -0.020917627960443497, 0.0603327713906765, -0.1847848892211914, 0.5039320588111877, 0.21575811505317688, -0.007275821641087532, 0.0003440100699663162, 0.25037726759910583, 0.12270483374595642, 0.4484063982963562, 0.28026631474494934, -0.1453334391117096, -0.29913395643234253, 0.1851135492324829, -0.07338356971740723, 0.048798393458127975, 0.08767066895961761, -0.05717826634645462, -0.3887724280357361, -0.1275838166475296, -0.3137276768684387, -0.05338950455188751, -0.2973858118057251, -0.059795912355184555, 0.6444658637046814, 0.5041765570640564, -0.11330613493919373, -0.06504242867231369, -0.07329636812210083, -0.299318790435791, -0.12936291098594666, 0.01707790419459343, 0.03234123811125755, -0.1580841839313507, -0.10481194406747818, 0.2392277717590332, 0.03781364858150482, -0.23455174267292023, -0.1911476105451584, -0.032476991415023804, -0.16869473457336426, 0.18062742054462433, 0.07120856642723083, -0.3621062636375427, 0.23726239800453186, 0.4139115512371063, -0.2685702443122864, 0.30076879262924194, 0.08421166241168976, 0.05566846579313278, -0.12655231356620789, 0.17752748727798462, -0.3156161308288574, -0.33340996503829956, 0.2214103788137436, -0.016718363389372826, -0.08474233001470566, 0.13686895370483398, -0.180580735206604, 0.4090789556503296, 0.28623321652412415, -0.2051100879907608, -0.16437026858329773, -0.1768733561038971, -0.5952666401863098, -0.1606844812631607, 0.2633839249610901, 0.22237813472747803, -0.5520039200782776, 0.05236642062664032, -0.32663053274154663, 0.2614665627479553, 0.49483051896095276, 0.35847052931785583, -0.06717225909233093, 0.2171265184879303, 0.10023853182792664, -0.07036147266626358, 0.29841548204421997, -0.07853958755731583, -0.47584962844848633, 0.5441425442695618, -0.06141562759876251, 0.01207694411277771, 0.13284365832805634, 0.1559416949748993, 0.5201342701911926, -0.24423567950725555, 0.3975711166858673, 0.3375464081764221, -0.19979195296764374, 0.07351839542388916, 0.0002535581588745117, -0.009158067405223846, 0.2259213775396347, 0.14885911345481873, -0.3431070148944855, -0.022170457988977432, -0.03213227167725563, -0.42664846777915955, 0.15245908498764038, 0.13803817331790924, -0.013879692181944847, 0.2082131803035736, 0.2469474971294403, 0.14686545729637146, 0.011497773230075836, -0.11738231778144836, -0.0029032323509454727, -0.08567948639392853, 0.08954750001430511, -0.20416195690631866, -0.2678195834159851, -0.2276494950056076, -0.26812317967414856, 0.12292587757110596, 0.07631780207157135, 0.20277509093284607, -0.14173400402069092, -0.17328065633773804, 0.19183489680290222, -0.299771249294281, -0.02454264461994171, 0.4423803985118866, -0.11993855983018875, -0.07667198777198792, 0.1876753866672516, 0.00415860116481781, 0.3773691952228546, -0.1478651762008667, 0.15586256980895996, -0.0638161450624466, 0.25662872195243835, 0.05979182943701744, -0.05122122913599014, 0.2228674441576004, 0.4853755831718445, -0.2909349799156189, -0.3249586224555969, 0.19117169082164764, 0.09072640538215637, 0.32233041524887085, 0.15947018563747406, -0.02999444119632244, 0.2172131985425949, -0.06696318089962006, -0.19752636551856995, 0.5968002676963806, -0.08427202701568604, 0.451528936624527, 0.09617099910974503, -0.053464435040950775, 0.3551803231239319, 0.25798237323760986, -0.1379966139793396, -0.22400426864624023, 0.24839183688163757, -0.016859184950590134, 0.14143170416355133, 0.191679909825325, -0.1041451171040535, 0.391427218914032, -0.006952890194952488, -0.16840720176696777, -0.05787542834877968, 0.23894593119621277, 0.17030251026153564, 0.030757486820220947, 0.18902690708637238, 0.005110852420330048, 0.11467759311199188, 0.18449705839157104, -0.14274081587791443, -0.09829253703355789, 0.08159377425909042, -0.05475815013051033, 0.25471803545951843, 0.15610086917877197, 0.30751287937164307, -0.25429782271385193, 0.35306477546691895, -0.11373266577720642, -0.17320124804973602, -0.17764975130558014, 0.20347201824188232, 0.3338277041912079, -0.21673518419265747, 0.06997524201869965, -0.37570106983184814, -0.5355604887008667, 0.22711235284805298, -0.11214953660964966, 0.22655805945396423, 0.08801214396953583, 0.2230783849954605, 0.07832895219326019, 0.17465528845787048, 0.28558650612831116, 0.19949956238269806, 0.15937216579914093, 0.16612666845321655, -0.44692113995552063, -0.1344803273677826, -0.15969398617744446, -0.07135365903377533, -0.10749667882919312, 0.26843392848968506, 0.3947562277317047, 0.3735952079296112, 0.281097948551178, 0.04898656904697418, -0.18613512814044952, -0.5580239295959473, -0.21566498279571533, -0.015102643519639969, 0.07447315752506256, 0.21748954057693481, 0.13041982054710388, -0.3905109167098999, -0.05019359290599823, 0.03611203655600548, -0.13265806436538696, -0.18093526363372803, 0.09681251645088196, -0.2643178105354309, 0.07124236226081848, 0.13258060812950134, 0.1171385645866394, -0.23426488041877747, -0.05337979644536972, -0.14802974462509155, -0.0901709496974945, 0.28900644183158875, -0.23788368701934814, 0.03847101703286171, -0.3095991611480713, -0.2900487184524536, -0.0745965763926506, 0.06270196288824081, -0.15425151586532593, 0.23613449931144714, 0.28452274203300476, -0.010331743396818638, -0.17672795057296753, -0.05455158278346062, -0.2922157943248749, 0.5495020747184753, -0.26100170612335205, 0.18067145347595215, -0.4031960964202881, -0.2862224876880646, 0.1927294135093689, 0.018468713387846947, 0.3718927800655365, -0.11541634052991867, 0.13654270768165588, -0.0016431063413619995, -0.4650852680206299, -0.16355334222316742, -0.176194429397583, 0.09633581340312958, 0.21246910095214844, 0.8827470541000366, 0.09401561319828033, 0.3070503771305084, 0.06283509731292725, -0.0016840706812217832, 0.07015171647071838, 0.24280956387519836, -0.11538015305995941, -0.2179843783378601, -0.33677178621292114, -0.20303386449813843, 0.14586567878723145, 0.06425156444311142, 0.03870958089828491, 0.1361510306596756, -0.143586665391922, -0.033963415771722794, -0.2271149605512619, -0.06579673290252686, -0.13549436628818512, 0.09426631033420563, -0.2203657329082489, 0.2903558015823364, 0.35044801235198975, -0.05557398125529289, -0.5428821444511414, -0.3475463390350342, -0.2544791102409363, 0.026341190561652184, 0.131154865026474, -0.1841549426317215, -0.6282447576522827, -0.3186335563659668, -0.3433012068271637, 0.4391598403453827, 0.18656814098358154, 0.4412318766117096, 0.17403605580329895, 0.07234427332878113, 0.19968602061271667, -0.09930054843425751, 0.7873361110687256, -0.17953631281852722, -0.00008797599002718925, 0.05325406789779663, -0.5388455986976624, -0.41954296827316284, 0.09407966583967209, -0.010187014937400818, 0.24814657866954803, 0.2991226315498352, 0.381872296333313, -0.27707934379577637, -0.3589818775653839, -0.04079626873135567, 0.12422265857458115, -0.10107170045375824, -0.19607007503509521, -0.23694497346878052, -0.21990111470222473, -0.3587258458137512, 0.2803162932395935, -0.049406394362449646, 0.21888592839241028, 0.36153507232666016, -0.31123051047325134, -0.04769408330321312, -0.1954779475927353, 0.189683735370636, 0.04932668060064316, 0.05512192100286484, 0.31213289499282837, 0.30411624908447266, -0.07975656539201736, 0.1950199007987976, 0.056564442813396454, -0.1036900132894516, -0.11272934079170227, 0.027073727920651436, -0.009185751900076866, 0.19560860097408295, 0.3815271854400635, 0.5263151526451111, -0.12463696300983429, 0.5532616972923279, 0.06299244612455368, 0.4241693913936615, 0.06780660897493362, 0.2134747952222824, -0.1809377670288086, 0.17483612895011902, -0.588636040687561, -0.7435216903686523, 0.14662803709506989, 0.4004862904548645, -0.3319709897041321, 0.5015230178833008, 0.15101365745067596, -0.06407414376735687, 0.4643267095088959, 0.07594849914312363, 0.8864939212799072, -0.3235603868961334, -0.12761442363262177, -0.05282316356897354, 0.06507770717144012, 0.3599280118942261, -0.16485778987407684, 0.11933241039514542, 0.026744410395622253, -0.36699333786964417, 0.06097925454378128, -0.09346916526556015, 0.0710562914609909, 0.08029671013355255, 0.0669526606798172, 0.35308992862701416, -0.12661071121692657, 0.0602886937558651, 0.06069260090589523, 0.2552216947078705, 0.21888840198516846, -0.3514136075973511, -0.24491918087005615, -0.07715202867984772, 0.17353379726409912, -0.14335542917251587, 0.04479429870843887, 0.04454828426241875, 0.23991546034812927, -0.30186644196510315, -0.21136121451854706, -0.512622594833374, -0.40525349974632263, -0.008172573521733284, -0.18057700991630554, -0.17667856812477112, 0.10861808806657791, -0.20584899187088013, -0.2409987449645996, 0.4316932260990143, 0.15694071352481842, 0.22497710585594177, 0.2834922969341278, 0.31691986322402954, -0.034966569393873215, -0.3678516149520874, 0.2215467095375061, -0.1324400156736374, -0.1802753359079361, 0.013107487931847572, -0.03116956539452076, -0.5412836074829102, 0.04195167124271393, 0.17445887625217438, 0.48467162251472473, 0.08538687229156494, -0.17893147468566895, 0.04059848561882973, 0.0019732490181922913, -0.23040731251239777, -0.0539916530251503, 0.06558427214622498, 0.09184353798627853, 0.6818690299987793, 0.010931056924164295, -0.3466660976409912, -0.0823410227894783, 0.2244320809841156, 0.2488315999507904, -0.10499081015586853, 0.3481358289718628, 0.17150083184242249, -0.39529258012771606, -0.1170043796300888, 0.033657386898994446, 0.25063422322273254, 0.1648852527141571, 0.14141930639743805, -0.13451412320137024, -0.23058369755744934, 0.4424912631511688, 0.0179604385048151, -0.1558721661567688, 0.016345499083399773, -0.1148773729801178, -0.6028128266334534, -0.15918725728988647, 0.08877965062856674, -0.03394591063261032, -0.2836896479129791, 0.07924920320510864, 0.1788768172264099, -0.22864001989364624, 0.4104108214378357, -0.14298850297927856, -0.10344547778367996, 0.014919012784957886, 0.19524610042572021, -0.2978612780570984, 0.355329304933548, -0.1092388927936554, -0.0254916213452816, -0.05843553692102432, 0.0818285346031189, 0.015834350138902664, -0.10956884920597076, 0.15820051729679108, 0.19926705956459045, -0.18213824927806854, -0.14827769994735718, 0.11935757100582123, -0.3192938566207886, -0.2785269021987915, -0.16671182215213776, 0.0863981768488884, -0.094542495906353, 0.013538667932152748, -0.6226955056190491, 0.0796455591917038, -0.30687856674194336, -0.030855342745780945, 0.1479804515838623, -0.06898322701454163, -0.299360990524292, 0.03934725001454353, 0.18080921471118927, 0.2547491490840912, -0.07014860212802887, 0.030570555478334427, -0.04258621856570244, 0.008794151246547699, -0.1373347043991089, 0.16092202067375183, -0.013139721006155014, -0.036173101514577866, 0.13345840573310852, 0.13396546244621277, 0.3425038158893585, 0.154282808303833, -0.21892794966697693, 0.46089398860931396, -0.08926846832036972, -0.3246287703514099, -0.16297072172164917, 0.18688128888607025, 0.13234412670135498, 0.19144973158836365, 0.15895353257656097, -0.1432943046092987, 0.4014591574668884, -0.18592742085456848, 0.1897580623626709, 0.2408553957939148, 0.033523980528116226, -0.18403296172618866, 0.3610529899597168, 0.39693450927734375, -0.11602813005447388, 0.402451753616333, 0.39455747604370117, -0.22622717916965485, 0.6142655611038208, 0.22249329090118408, 0.4195980429649353, 0.4634615480899811, 0.44516414403915405, -0.30345258116722107, -0.33808279037475586, -0.20565517246723175, 0.6224384307861328, -0.1491273045539856, -0.2401643991470337, 0.10599993169307709, -0.2050466537475586, 0.40297433733940125, -0.4408562183380127, 0.10212210565805435, 0.3491743803024292, 0.2446173131465912, -0.1234743595123291, -0.40454769134521484, 0.01681971549987793, 0.17254787683486938, -0.03653107210993767, -0.01287148054689169, -0.0016644466668367386, 0.25514987111091614, 0.01115068607032299, 0.2619933784008026, -0.3760179877281189, -0.23305009305477142, -0.11589013040065765, 0.2028701901435852, 0.023004859685897827, 0.15527501702308655, -0.2527201771736145, 0.3291517496109009, 0.3357107937335968, -0.31385138630867004, 0.17284801602363586, 0.42401066422462463, -0.02686893567442894, 0.15708507597446442, -0.3043256998062134, -0.19738763570785522, -0.015256382524967194, 0.3792417049407959, 0.15255671739578247, 0.14516718685626984, -0.06930764764547348, -0.10828810185194016, -0.03440235182642937, -0.025302421301603317, 0.2767591178417206, 0.19549357891082764, 0.08478662371635437, 0.33111709356307983, 0.2029564380645752, 0.014271095395088196, -0.03843264654278755, 0.05764307826757431, -0.11508360505104065, 0.28697046637535095, 0.2904755473136902, -0.33531829714775085, 0.16866090893745422, 0.1297985315322876, -0.005709966644644737, -0.2572617530822754, 0.11823056638240814, -0.0713958814740181, 0.3901485800743103, -0.2078109085559845, -0.33513015508651733, -0.44165825843811035, -0.3361503779888153, -0.341492623090744, -0.061320140957832336, 0.14465850591659546, 0.08709798753261566, 0.25984281301498413, 0.04115459695458412, 0.149135559797287, 0.039258167147636414, -0.2425345480442047, 0.06313156336545944, -0.18080535531044006, 0.33768269419670105, -0.16518241167068481, 0.3906685709953308, -0.07435396313667297, -0.351614385843277, 0.3682197630405426, -0.21278192102909088, -0.057848602533340454, -0.04179186373949051, 0.08142504096031189, 0.2041245996952057, 0.14511899650096893, 0.04326508194208145, -0.014580410905182362, 0.36003267765045166, 0.15218669176101685, 0.5289027690887451, -0.046016719192266464, 0.07234251499176025, -0.32643190026283264, 0.25909045338630676, 0.23960530757904053, 0.11812873929738998, -0.03280368447303772, 0.046082139015197754, 0.1615457683801651, 0.09815829992294312, -0.13290715217590332, -0.1898026317358017, -0.07656838744878769, 0.1568206548690796, 0.19637863337993622, 0.30227720737457275, -0.31972071528434753, 0.10804681479930878, 0.05589006096124649, 0.04699283093214035, -0.30587834119796753, -0.06626342236995697, 0.58443284034729, -0.5551502704620361, -0.27446261048316956, -0.3311440944671631, 0.22667032480239868, 0.40019547939300537, 0.07629965245723724, 0.05329315364360809, -0.1094825267791748, 0.10795627534389496, -0.11847670376300812, -0.31289634108543396, 0.3040601313114166, 0.019384469836950302, 0.07728257775306702, -0.21032699942588806, -0.1349586546421051, 0.01833643764257431, -0.171266108751297, -0.4492630958557129, -0.1877034306526184 ]
https://github.com/huggingface/datasets/issues/1796
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 :)
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']) ```
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.2580147981643677, -0.12244242429733276, -0.08642470836639404, -0.26014676690101624, -0.16526594758033752, -0.24569961428642273, 0.25937482714653015, 0.2613683342933655, 0.31368905305862427, -0.1532164216041565, 0.006636817008256912, 0.22178949415683746, -0.11383526772260666, 0.34814807772636414, -0.2551462948322296, 0.20768959820270538, 0.0726485550403595, 0.22438137233257294, 0.3868040442466736, 0.04858507215976715, -0.08172379434108734, -0.1438356339931488, -0.2755507826805115, -0.057454537600278854, -0.01971205696463585, -0.35116517543792725, 0.2738276422023773, -0.18856655061244965, -0.2887648940086365, -0.23911142349243164, -0.0230928435921669, 0.4542042016983032, -0.011224992573261261, 0.48933249711990356, -0.00012605979281943291, -0.3033391833305359, 0.21908006072044373, 0.09674548357725143, 0.09690752625465393, 0.13117019832134247, -0.15553733706474304, -0.034209899604320526, -0.0015715695917606354, -0.07323485612869263, -0.13809829950332642, -0.02777428925037384, -0.29388362169265747, -0.33956974744796753, 0.435800164937973, 0.07627121359109879, -0.021218057721853256, -0.16409152746200562, -0.3436225652694702, 0.39065268635749817, 0.1486465483903885, 0.35527321696281433, 0.16009530425071716, -0.13553199172019958, 0.6643034815788269, -0.39104795455932617, -0.059423092752695084, 0.5160924792289734, -0.5235148072242737, -0.09357394278049469, 0.24680228531360626, -0.28978636860847473, 0.1473235934972763, -0.2044605314731598, 0.2251318395137787, 0.1434737592935562, 0.04143538698554039, -0.1305048018693924, -0.23873373866081238, -0.31142741441726685, -0.08410193026065826, -0.4326241910457611, 0.0584406778216362, 0.05010582506656647, -0.3467150330543518, 0.01264544203877449, -0.5090165138244629, -0.24384665489196777, 0.09583842009305954, 0.12114938348531723, -0.3476196527481079, 0.32074111700057983, 0.04490488022565842, 0.14879605174064636, 0.2462177276611328, -0.19567833840847015, 0.08926033973693848, -0.2859345078468323, 0.24420511722564697, 0.3371778130531311, -0.5745360255241394, -0.14183150231838226, -0.13810531795024872, 0.1576308012008667, -0.030054695904254913, 0.08240553736686707, -0.2531948685646057, 0.4543232023715973, 0.23016558587551117, -0.0332319475710392, -0.017897922545671463, 0.2066560983657837, 0.07948039472103119, 0.507843017578125, 0.25144535303115845, -0.19509339332580566, -0.19720208644866943, 0.2502981126308441, -0.030429480597376823, 0.06417987495660782, 0.10519346594810486, -0.08083277940750122, -0.4626237154006958, -0.13824377954006195, -0.2418835163116455, -0.09404033422470093, -0.373714804649353, -0.09426406025886536, 0.634634256362915, 0.44186702370643616, -0.07835859805345535, -0.13412678241729736, -0.050899479538202286, -0.27955594658851624, -0.16679003834724426, 0.08388704061508179, 0.04138864949345589, -0.11992537975311279, -0.0650092139840126, 0.21818415820598602, 0.09966722130775452, -0.2918970584869385, -0.23062986135482788, 0.04940063878893852, -0.18718445301055908, 0.1988067924976349, 0.22591982781887054, -0.3643769323825836, 0.2283470332622528, 0.3430497646331787, -0.30888015031814575, 0.32175323367118835, 0.14757917821407318, 0.021217018365859985, -0.14084236323833466, 0.18720826506614685, -0.34728389978408813, -0.3065004348754883, 0.22150211036205292, 0.0037912530824542046, -0.15342585742473602, 0.16525375843048096, -0.10675258934497833, 0.31958475708961487, 0.23847758769989014, -0.18455296754837036, -0.20997026562690735, -0.22961902618408203, -0.5389138460159302, -0.19349172711372375, 0.2326158881187439, 0.13221505284309387, -0.5897626876831055, 0.01714739203453064, -0.31431907415390015, 0.25967130064964294, 0.5231364369392395, 0.4517054557800293, -0.07432299107313156, 0.22326073050498962, -0.014317166060209274, 0.012673914432525635, 0.2559302747249603, -0.08512703329324722, -0.41655609011650085, 0.6068710088729858, -0.05480849742889404, 0.0906556025147438, 0.17876951396465302, 0.1575143039226532, 0.5775741338729858, -0.27146846055984497, 0.48160913586616516, 0.3299989700317383, -0.21298225224018097, 0.08794603496789932, -0.030011847615242004, -0.1323310285806656, 0.14199523627758026, 0.1850210577249527, -0.35078489780426025, -0.12070661783218384, -0.04373875632882118, -0.4507981538772583, 0.21121838688850403, 0.04664434492588043, 0.03340058773756027, 0.1372990608215332, 0.2628430724143982, 0.06773799657821655, 0.0024270936846733093, -0.13197767734527588, 0.043703593313694, -0.007963888347148895, 0.026226043701171875, -0.1991894692182541, -0.28438514471054077, -0.2172749638557434, -0.2058335393667221, -0.010289676487445831, 0.050219662487506866, 0.22812655568122864, -0.12861162424087524, -0.20745611190795898, 0.1340388059616089, -0.23196439445018768, -0.018115505576133728, 0.43731391429901123, -0.11529497802257538, -0.04127942770719528, 0.14159110188484192, -0.06060786172747612, 0.3979136645793915, -0.09762398153543472, 0.1006915271282196, -0.031405553221702576, 0.3001842498779297, 0.04005573317408562, 0.04547055810689926, 0.16110248863697052, 0.48998138308525085, -0.29064661264419556, -0.28973230719566345, 0.1746489554643631, 0.11208630353212357, 0.3210209012031555, 0.15853460133075714, 0.034296270459890366, 0.18428054451942444, -0.09228832274675369, -0.29719027876853943, 0.581255316734314, -0.10305880755186081, 0.4783248007297516, 0.1044820249080658, -0.039496421813964844, 0.3194073736667633, 0.2093016505241394, -0.12256383895874023, -0.19956806302070618, 0.4308718740940094, -0.03143589571118355, 0.10057541728019714, 0.28060221672058105, -0.027756698429584503, 0.3283561170101166, -0.012749598361551762, -0.2614406645298004, -0.054649028927087784, 0.24507439136505127, 0.1661771535873413, 0.09886106848716736, 0.17660416662693024, 0.08613616228103638, 0.05341220274567604, 0.2262301743030548, -0.16107133030891418, -0.1625949889421463, 0.004000406712293625, -0.062385253608226776, 0.2874435484409332, 0.12244151532649994, 0.25217509269714355, -0.2539428770542145, 0.20112651586532593, -0.11058473587036133, -0.11660657823085785, -0.2918699383735657, 0.1945294439792633, 0.30082589387893677, -0.23019085824489594, 0.08147386461496353, -0.34327518939971924, -0.5400553345680237, 0.21443961560726166, -0.09211656451225281, 0.2033648043870926, 0.008994005620479584, 0.17775848507881165, 0.06313556432723999, 0.18228858709335327, 0.1455848664045334, 0.08921830356121063, 0.22768598794937134, 0.20949344336986542, -0.5467383861541748, -0.14838507771492004, -0.2128753513097763, -0.06161767616868019, -0.06493835896253586, 0.33959725499153137, 0.35244765877723694, 0.39188456535339355, 0.3119644522666931, -0.10203759372234344, -0.15463362634181976, -0.44521281123161316, -0.1585077941417694, -0.028689688071608543, 0.11046294122934341, 0.1032712459564209, 0.13384249806404114, -0.38729235529899597, -0.15450739860534668, -0.014792002737522125, -0.025487679988145828, -0.17846345901489258, 0.12895482778549194, -0.1389274001121521, 0.11058010905981064, 0.09654154628515244, 0.15773539245128632, -0.21082766354084015, -0.06578676402568817, -0.19223614037036896, -0.08032982796430588, 0.3034643530845642, -0.1891365647315979, -0.0917607992887497, -0.22786718606948853, -0.3064528703689575, -0.09877775609493256, 0.09396613389253616, -0.1424890011548996, 0.27684706449508667, 0.3038765788078308, -0.03706836700439453, -0.09382818639278412, -0.11728790402412415, -0.35166552662849426, 0.6226112246513367, -0.28738975524902344, 0.17801371216773987, -0.4116138517856598, -0.22540952265262604, 0.15426433086395264, 0.03248371183872223, 0.2691565155982971, -0.0742151141166687, 0.1376710832118988, 0.027318447828292847, -0.29385027289390564, -0.1813468486070633, -0.1916179656982422, 0.21256311237812042, 0.24830445647239685, 0.765182614326477, 0.1278291642665863, 0.34130293130874634, 0.19745707511901855, 0.15694104135036469, -0.019517723470926285, 0.2924416959285736, -0.15559178590774536, -0.1801239401102066, -0.3459393382072449, -0.15391987562179565, 0.14617151021957397, 0.07256476581096649, 0.03395450860261917, 0.15576718747615814, -0.16218838095664978, -0.03852696716785431, -0.14081156253814697, -0.047446154057979584, -0.22001680731773376, 0.1565881371498108, -0.21201898157596588, 0.29280808568000793, 0.2550816535949707, -0.0010022073984146118, -0.5004398226737976, -0.3563646674156189, -0.23404741287231445, 0.024572931230068207, 0.19405658543109894, -0.18265603482723236, -0.4920960068702698, -0.14265812933444977, -0.4179573655128479, 0.34048891067504883, 0.19945430755615234, 0.28224173188209534, 0.08681564778089523, 0.03656560182571411, 0.11486400663852692, 0.0004405975341796875, 0.8182598352432251, -0.14719876646995544, 0.015400251373648643, 0.1322246491909027, -0.468599408864975, -0.4602779746055603, 0.13289868831634521, -0.0798727497458458, 0.16533584892749786, 0.29584336280822754, 0.39029425382614136, -0.284740149974823, -0.3065440058708191, -0.0625821053981781, 0.1826981008052826, -0.0667349174618721, -0.2874944806098938, -0.19036950170993805, -0.21014489233493805, -0.37054795026779175, 0.2802365720272064, -0.01759175956249237, 0.2808856964111328, 0.3762196898460388, -0.3433225750923157, 0.008050540462136269, -0.26118624210357666, 0.31368884444236755, 0.013887919485569, 0.006903592497110367, 0.20610085129737854, 0.3031761944293976, 0.01934707909822464, 0.1766958236694336, 0.011615684255957603, -0.12484598159790039, -0.02958829700946808, 0.024283913895487785, 0.013628881424665451, 0.08006580173969269, 0.36168724298477173, 0.5575122237205505, -0.12028774619102478, 0.5586548447608948, 0.05338074266910553, 0.4472557306289673, -0.00338030606508255, 0.17963925004005432, -0.19857218861579895, 0.15450900793075562, -0.6475358009338379, -0.6661443710327148, 0.08213821053504944, 0.35286158323287964, -0.32092535495758057, 0.49585217237472534, 0.1206011176109314, -0.0689840093255043, 0.47953251004219055, 0.06894436478614807, 0.9122271537780762, -0.4223339259624481, -0.129320427775383, -0.0037965718656778336, 0.1887134313583374, 0.42883288860321045, -0.08921324461698532, 0.12839677929878235, 0.07898184657096863, -0.30485090613365173, 0.04422738403081894, -0.17795048654079437, 0.051138874143362045, 0.07521438598632812, 0.08464677631855011, 0.3383792042732239, -0.10615790635347366, 0.007374200038611889, 0.02754591405391693, 0.3325158655643463, 0.18984781205654144, -0.37979668378829956, -0.14620155096054077, -0.055665452033281326, 0.10842765867710114, -0.17344261705875397, 0.06300435960292816, 0.035946737974882126, 0.1965930312871933, -0.21960142254829407, -0.1999836564064026, -0.48158949613571167, -0.3552473485469818, 0.01924428716301918, -0.23226717114448547, -0.19091172516345978, 0.18244107067584991, -0.21319198608398438, -0.24398939311504364, 0.44882556796073914, 0.09178569912910461, 0.1708306521177292, 0.258038729429245, 0.29941749572753906, -0.015878871083259583, -0.46014976501464844, 0.19729945063591003, -0.12183474004268646, -0.14652210474014282, 0.05497977137565613, -0.054058101028203964, -0.5098162293434143, 0.04830820858478546, 0.2030021697282791, 0.4885254502296448, 0.009924087673425674, -0.21720543503761292, -0.025109224021434784, -0.007448568940162659, -0.16633787751197815, -0.03554890677332878, 0.15359805524349213, 0.09610957652330399, 0.6945756673812866, -0.05255793407559395, -0.31687331199645996, -0.09988166391849518, 0.10706973075866699, 0.1990886926651001, -0.21463190019130707, 0.29944416880607605, 0.18407584726810455, -0.4404842257499695, -0.10974472761154175, 0.07220162451267242, 0.24741646647453308, 0.29982107877731323, 0.15411902964115143, -0.06645044684410095, -0.21581552922725677, 0.4328503906726837, 0.028471877798438072, -0.08177244663238525, 0.03129490464925766, -0.09280141443014145, -0.5693458914756775, -0.20185819268226624, 0.11442652344703674, -0.04396851360797882, -0.21175281703472137, 0.06146896630525589, 0.1806742250919342, -0.27056464552879333, 0.3613457679748535, -0.16491307318210602, -0.07915616035461426, -0.012851260602474213, 0.21248671412467957, -0.25469934940338135, 0.2238381803035736, -0.07818344980478287, -0.007229190319776535, -0.016349678859114647, 0.07881038635969162, -0.002759251743555069, -0.13119469583034515, 0.11032810807228088, 0.18625354766845703, -0.18031960725784302, -0.29648345708847046, 0.23643650114536285, -0.35413262248039246, -0.2470616102218628, -0.21542754769325256, 0.06867681443691254, 0.004095062613487244, 0.010502609424293041, -0.6836891174316406, 0.09632189571857452, -0.4543237090110779, -0.10398361831903458, 0.1455976963043213, -0.1669250875711441, -0.2937220633029938, 0.012015379965305328, 0.21495378017425537, 0.1863132119178772, -0.014235623180866241, 0.0982927680015564, -0.03209150955080986, 0.03504138067364693, -0.09601160883903503, 0.26559147238731384, 0.027856044471263885, -0.0443389005959034, 0.1940910518169403, 0.16068825125694275, 0.31023430824279785, 0.08138524740934372, -0.16667771339416504, 0.48343873023986816, -0.05918053910136223, -0.2837422490119934, -0.20478561520576477, 0.19893474876880646, 0.17913219332695007, 0.18366177380084991, 0.14983218908309937, -0.2726894021034241, 0.3341100513935089, -0.20756737887859344, 0.10903574526309967, 0.37408924102783203, -0.0703381597995758, -0.21582700312137604, 0.39364898204803467, 0.43174099922180176, -0.214131698012352, 0.43732213973999023, 0.3448052406311035, -0.16338160634040833, 0.6248005032539368, 0.16256964206695557, 0.3235560953617096, 0.4254298806190491, 0.5249887704849243, -0.350003719329834, -0.4269682765007019, -0.08666110038757324, 0.6189132928848267, -0.23449134826660156, -0.18344572186470032, 0.09283041954040527, -0.24423816800117493, 0.2608450651168823, -0.3488544225692749, 0.1344262957572937, 0.32924172282218933, 0.18288281559944153, -0.025894178077578545, -0.34408801794052124, -0.004480630159378052, 0.2810172736644745, 0.008098095655441284, -0.04440084472298622, -0.016720928251743317, 0.1577596813440323, 0.14250129461288452, 0.29871466755867004, -0.29461362957954407, -0.19251646101474762, -0.13648055493831635, 0.22682157158851624, -0.07647588104009628, 0.05302973836660385, -0.2720610201358795, 0.29153576493263245, 0.2898280620574951, -0.36701077222824097, 0.2098894715309143, 0.40309450030326843, -0.03815539553761482, 0.14716856181621552, -0.3606918454170227, -0.18133659660816193, -0.015008039772510529, 0.40016812086105347, 0.1676851511001587, 0.15757045149803162, -0.022081635892391205, -0.0604054220020771, -0.052203141152858734, -0.1389402598142624, 0.21763882040977478, 0.07400944083929062, 0.10714496672153473, 0.302602082490921, 0.2705262303352356, 0.0071114301681518555, -0.06151878833770752, 0.05230531096458435, -0.12243086099624634, 0.3401496410369873, 0.2895960211753845, -0.26517727971076965, 0.2117101103067398, 0.23695234954357147, 0.019252929836511612, -0.22576892375946045, 0.04524758458137512, -0.04557149112224579, 0.39959996938705444, -0.25828900933265686, -0.24781125783920288, -0.42156466841697693, -0.4059765636920929, -0.40422508120536804, -0.036570362746715546, 0.14555032551288605, 0.06294712424278259, 0.2698785066604614, 0.09552572667598724, 0.04354899376630783, 0.12980768084526062, -0.2022348940372467, 0.026540756225585938, -0.13727393746376038, 0.3220696449279785, 0.05943590775132179, 0.3153897821903229, -0.10905933380126953, -0.38621991872787476, 0.47283533215522766, -0.2299932986497879, -0.030847635120153427, 0.11621369421482086, 0.04257473349571228, 0.22715431451797485, 0.08036930859088898, -0.05522625148296356, 0.06782326102256775, 0.37364766001701355, 0.1915311962366104, 0.5193093419075012, 0.000566885806620121, 0.19787032902240753, -0.25468015670776367, 0.20546957850456238, 0.2659473121166229, 0.17926278710365295, -0.10639762878417969, -0.0012781349942088127, 0.04301687330007553, 0.21058692038059235, -0.1673605740070343, -0.19143646955490112, -0.14581000804901123, 0.11354151368141174, 0.13743437826633453, 0.32326558232307434, -0.35128843784332275, 0.12733429670333862, -0.053049322217702866, 0.06735871732234955, -0.2710545063018799, -0.07727564871311188, 0.5529334545135498, -0.6079834699630737, -0.2792537212371826, -0.2729256749153137, 0.2432747781276703, 0.3418397307395935, 0.18270574510097504, 0.12420912086963654, -0.09955305606126785, 0.1359941065311432, -0.17050090432167053, -0.3291718661785126, 0.22025832533836365, -0.05089639127254486, 0.03315586596727371, -0.20446518063545227, -0.17274627089500427, 0.059047501534223557, -0.18523931503295898, -0.3525722622871399, -0.18223166465759277 ]
https://github.com/huggingface/datasets/issues/1796
Hi @lhoestq @ayubSubhaniya, If there's no progress on this one, can I try working on it? Thanks, Gunjan
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']) ```
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.22525466978549957, -0.259549081325531, -0.10918055474758148, -0.21481536328792572, -0.1230364665389061, -0.2692412734031677, 0.2215610295534134, 0.211483895778656, 0.26342982053756714, -0.12331388145685196, 0.027962036430835724, 0.09088105708360672, -0.11606806516647339, 0.40823665261268616, -0.22788983583450317, 0.15165239572525024, 0.10112833976745605, 0.2131095975637436, 0.40317168831825256, 0.03900161385536194, -0.05775678902864456, -0.08079173415899277, -0.3609124422073364, -0.029826577752828598, -0.08470673114061356, -0.2762126326560974, 0.2782403230667114, -0.24767926335334778, -0.2799648940563202, -0.1902088224887848, -0.11765582859516144, 0.43286260962486267, 0.0416845977306366, 0.5227161049842834, -0.00012857599358540028, -0.38422879576683044, 0.26863279938697815, 0.10168952494859695, 0.22517696022987366, 0.10349667072296143, -0.16966426372528076, -0.008082862943410873, -0.036719970405101776, -0.058664970099925995, -0.21726930141448975, 0.06693392992019653, -0.28964728116989136, -0.2367754578590393, 0.4300411343574524, 0.14965102076530457, -0.026995059102773666, -0.21864385902881622, -0.3358837962150574, 0.3563361167907715, 0.1525758057832718, 0.33591577410697937, 0.18690133094787598, -0.22612646222114563, 0.7080859541893005, -0.3562735617160797, 0.06964356452226639, 0.47214823961257935, -0.45605409145355225, -0.16154325008392334, 0.1487722098827362, -0.34534698724746704, 0.10968505591154099, -0.313295841217041, 0.240945503115654, 0.17692048847675323, 0.06566089391708374, -0.057109251618385315, -0.20081064105033875, -0.2538342773914337, -0.0454387441277504, -0.410320520401001, 0.020263586193323135, 0.04560115188360214, -0.3242429494857788, -0.004245269577950239, -0.5788230299949646, -0.21891272068023682, 0.0876278355717659, 0.15838980674743652, -0.38534536957740784, 0.37354594469070435, 0.032188884913921356, 0.1135239452123642, 0.19936081767082214, -0.21552959084510803, 0.007501140236854553, -0.2545442283153534, 0.28324270248413086, 0.35545361042022705, -0.6740973591804504, -0.15083371102809906, -0.15819139778614044, 0.22031518816947937, 0.011063456535339355, 0.025714963674545288, -0.3736512064933777, 0.46273452043533325, 0.2508271038532257, -0.04021117463707924, -0.05831377953290939, 0.24619965255260468, 0.06419713795185089, 0.48180076479911804, 0.2978992760181427, -0.21986077725887299, -0.29874515533447266, 0.25472623109817505, -0.05078728124499321, 0.0679054781794548, 0.0823749452829361, -0.05401530861854553, -0.5015364289283752, -0.17027941346168518, -0.27279382944107056, -0.10285604000091553, -0.41680264472961426, -0.12034748494625092, 0.6683407425880432, 0.4683460295200348, -0.10075338929891586, -0.12196360528469086, -0.12643197178840637, -0.2415730208158493, -0.16461360454559326, 0.029838059097528458, 0.027909431606531143, -0.04454030096530914, -0.06811270862817764, 0.19913506507873535, 0.08994393795728683, -0.2929748594760895, -0.1792653352022171, 0.04730180278420448, -0.18295453488826752, 0.12613540887832642, 0.23691663146018982, -0.38317883014678955, 0.13238131999969482, 0.29230350255966187, -0.28546661138534546, 0.3071512281894684, 0.08230282366275787, 0.10247662663459778, -0.11823828518390656, 0.11863155663013458, -0.3777614235877991, -0.33677178621292114, 0.24112394452095032, 0.011438743211328983, -0.11205160617828369, 0.18166597187519073, -0.07396821677684784, 0.3442539870738983, 0.3069840967655182, -0.08808573335409164, -0.22140005230903625, -0.19156880676746368, -0.5816185474395752, -0.1587521731853485, 0.20083211362361908, 0.09218934178352356, -0.4657711982727051, 0.018684878945350647, -0.2798205614089966, 0.2105334997177124, 0.5880837440490723, 0.4387434124946594, -0.03694026172161102, 0.2249874323606491, -0.043090008199214935, 0.04835185408592224, 0.21814940869808197, -0.11225992441177368, -0.34538763761520386, 0.6233468055725098, -0.03950081020593643, 0.007732383906841278, 0.18850518763065338, 0.07854847609996796, 0.5663009285926819, -0.2632851004600525, 0.5140789151191711, 0.375626802444458, -0.21532851457595825, 0.11783657968044281, -0.021842069923877716, -0.1036483570933342, 0.1589711457490921, 0.23717835545539856, -0.2816352844238281, -0.0733492523431778, -0.07037395238876343, -0.37584784626960754, 0.17476829886436462, 0.026058442890644073, 0.030903011560440063, 0.1709762066602707, 0.23619204759597778, 0.06273461878299713, 0.011159688234329224, -0.1820666790008545, 0.11841128766536713, -0.06082165613770485, -0.05043082684278488, -0.16521278023719788, -0.1754467934370041, -0.18152621388435364, -0.2594466507434845, -0.009087633341550827, 0.06414196640253067, 0.23321016132831573, -0.11634908616542816, -0.17108291387557983, 0.11995693296194077, -0.2128811627626419, 0.03899846971035004, 0.4870576858520508, -0.06616061925888062, -0.046514417976140976, 0.18282939493656158, -0.04810497909784317, 0.32801657915115356, -0.11434793472290039, 0.16947057843208313, 0.025843266397714615, 0.3714914917945862, 0.014231543987989426, 0.05710640549659729, 0.1386636197566986, 0.5027495622634888, -0.2991529703140259, -0.3137468993663788, 0.1767042875289917, 0.15423648059368134, 0.33893752098083496, 0.10944812744855881, 0.016436118632555008, 0.13025939464569092, -0.11432352662086487, -0.14936384558677673, 0.5312942266464233, -0.04048263654112816, 0.423898845911026, 0.08774232864379883, -0.09935854375362396, 0.31387144327163696, 0.17381300032138824, -0.09243715554475784, -0.2166418433189392, 0.5034922361373901, 0.013821277767419815, 0.12860292196273804, 0.244953915476799, -0.10351637005805969, 0.302204430103302, -0.04750003293156624, -0.3135298788547516, -0.059206001460552216, 0.26802894473075867, 0.19066636264324188, 0.08497260510921478, 0.14193300902843475, -0.017457135021686554, 0.03900642320513725, 0.19786201417446136, -0.18833458423614502, -0.154781311750412, 0.08239249885082245, -0.06213473901152611, 0.25871387124061584, 0.10349602997303009, 0.23531371355056763, -0.2182341367006302, 0.2533361315727234, -0.12868055701255798, -0.09802022576332092, -0.28667837381362915, 0.22841253876686096, 0.32225650548934937, -0.22808676958084106, 0.01494280993938446, -0.3553006052970886, -0.568486213684082, 0.23446181416511536, -0.10108846426010132, 0.20246931910514832, 0.0458730012178421, 0.15923115611076355, 0.04981248453259468, 0.2844613194465637, 0.11751367896795273, 0.11964291334152222, 0.20554286241531372, 0.22143185138702393, -0.46474918723106384, -0.10817768424749374, -0.13237211108207703, -0.04170764610171318, -0.05712016671895981, 0.258404940366745, 0.31421273946762085, 0.3845154941082001, 0.30649152398109436, -0.09748431295156479, -0.11312916874885559, -0.5374432802200317, -0.14814884960651398, 0.010501492768526077, 0.1324184387922287, 0.12267012894153595, 0.14524509012699127, -0.31439468264579773, -0.10357095301151276, -0.02518726885318756, 0.019689470529556274, -0.16293224692344666, 0.06624171137809753, -0.19985300302505493, 0.07678475975990295, 0.10990019142627716, 0.15672442317008972, -0.2886810302734375, -0.032366685569286346, -0.22017784416675568, -0.07116322964429855, 0.27591386437416077, -0.3124831020832062, -0.11722426116466522, -0.2404729127883911, -0.28433656692504883, -0.06305798143148422, 0.020314715802669525, -0.19988736510276794, 0.29103246331214905, 0.27405279874801636, -0.01750640943646431, -0.12823885679244995, -0.0829758569598198, -0.321739137172699, 0.540550947189331, -0.24135081470012665, 0.1424677073955536, -0.41743236780166626, -0.23396719992160797, 0.19346410036087036, -0.043374598026275635, 0.26077812910079956, -0.15838533639907837, 0.15180465579032898, 0.04610203206539154, -0.3172048330307007, -0.1860857903957367, -0.18725845217704773, 0.2764713168144226, 0.2739782929420471, 0.7350677847862244, 0.047909244894981384, 0.3134377896785736, 0.16140595078468323, 0.09781152009963989, 0.023463256657123566, 0.2742674946784973, -0.2951159179210663, -0.1754242181777954, -0.3233996331691742, -0.03748514875769615, 0.247100830078125, 0.05076548457145691, 0.07710152119398117, 0.1735537350177765, -0.15512600541114807, -0.05219157412648201, -0.2132919430732727, -0.0872248187661171, -0.14212018251419067, 0.1017121747136116, -0.16483663022518158, 0.306812047958374, 0.23450130224227905, -0.03915257751941681, -0.4587772488594055, -0.36367449164390564, -0.30147773027420044, 0.061354875564575195, 0.16938908398151398, -0.18278615176677704, -0.5065774321556091, -0.20592623949050903, -0.39188897609710693, 0.3594691753387451, 0.21593090891838074, 0.2798333764076233, 0.046231865882873535, 0.13006246089935303, 0.15299637615680695, -0.000764019787311554, 0.8587459921836853, -0.19640317559242249, 0.023683911189436913, 0.07734303921461105, -0.5784473419189453, -0.27504393458366394, 0.10980790853500366, -0.04007251560688019, 0.06500549614429474, 0.41975241899490356, 0.39368176460266113, -0.3051292896270752, -0.3487198054790497, -0.052308857440948486, 0.1268807202577591, 0.007771775126457214, -0.37496495246887207, -0.15592603385448456, -0.1641942858695984, -0.3765984773635864, 0.30392831563949585, -0.023508843034505844, 0.30301743745803833, 0.30597445368766785, -0.40379634499549866, 0.027820071205496788, -0.2339784950017929, 0.32172828912734985, -0.027287393808364868, -0.04502193257212639, 0.14393393695354462, 0.2509564459323883, -0.05576063320040703, 0.14929693937301636, -0.0016949940472841263, -0.25908181071281433, -0.030204415321350098, 0.04404890164732933, 0.0972665399312973, 0.044482916593551636, 0.3970540165901184, 0.48277485370635986, -0.16124767065048218, 0.5882351398468018, 0.05050789564847946, 0.4886029362678528, 0.011629767715930939, 0.21734537184238434, -0.09170541167259216, 0.2079637348651886, -0.6904319524765015, -0.6199188232421875, 0.05852100998163223, 0.39057284593582153, -0.3461593985557556, 0.3499729335308075, 0.02004477009177208, -0.08466550707817078, 0.44715172052383423, 0.06630124151706696, 0.9581964015960693, -0.41534188389778137, -0.21083052456378937, -0.0812215805053711, 0.25320279598236084, 0.4408658742904663, -0.1588868796825409, 0.11695464700460434, 0.06425615400075912, -0.3563612699508667, 0.03351551294326782, -0.16274727880954742, 0.03190450370311737, 0.11546245217323303, 0.059216827154159546, 0.3585589826107025, -0.09943445026874542, 0.046469200402498245, 0.02207980304956436, 0.33210641145706177, 0.30331969261169434, -0.35775014758110046, -0.19866041839122772, -0.05484038591384888, 0.10664913058280945, -0.04458622634410858, 0.015125319361686707, 0.03256542608141899, 0.2558642625808716, -0.20824366807937622, -0.19698399305343628, -0.45525577664375305, -0.34328240156173706, -0.040816809982061386, -0.18394269049167633, -0.17076733708381653, 0.2155313938856125, -0.14538536965847015, -0.14894351363182068, 0.47771820425987244, 0.039552778005599976, 0.20647133886814117, 0.231776624917984, 0.21533003449440002, -0.05684826895594597, -0.4187890589237213, 0.18551109731197357, -0.1786765158176422, -0.19589050114154816, 0.0447833389043808, -0.012955624610185623, -0.4329490661621094, -0.06321632862091064, 0.14015807211399078, 0.4846389889717102, -0.0020974092185497284, -0.24113699793815613, 0.0008221752941608429, -0.0012014135718345642, -0.17081674933433533, -0.032065268605947495, 0.14751282334327698, 0.06143243610858917, 0.7015862464904785, -0.03569875657558441, -0.27894580364227295, -0.13686349987983704, 0.12212838232517242, 0.2942486107349396, -0.27976831793785095, 0.3097616136074066, 0.23312366008758545, -0.4130249321460724, -0.10830114036798477, 0.01721833646297455, 0.16577501595020294, 0.34654760360717773, 0.07902281731367111, 0.008340410888195038, -0.2764843702316284, 0.46652334928512573, 0.04025885462760925, -0.15021765232086182, -0.00652993842959404, 0.021022476255893707, -0.6080694198608398, -0.22224020957946777, 0.013388661667704582, -0.11929814517498016, -0.23514531552791595, 0.0938158854842186, 0.24667634069919586, -0.22699761390686035, 0.40473631024360657, -0.1552990823984146, -0.11915665864944458, -0.08961297571659088, 0.20549504458904266, -0.1751524657011032, 0.17326943576335907, -0.10485672950744629, 0.08447835594415665, -0.00926053524017334, 0.0975959300994873, 0.02348875254392624, -0.11873491108417511, 0.1299326866865158, 0.1904267966747284, -0.15915754437446594, -0.2345913052558899, 0.29081180691719055, -0.2887116074562073, -0.2566341757774353, -0.15979290008544922, 0.09840308129787445, -0.017928652465343475, 0.0577174536883831, -0.6547788977622986, 0.06948281079530716, -0.4861404597759247, -0.13204853236675262, 0.11350921541452408, -0.12496855854988098, -0.3016543686389923, 0.06511405110359192, 0.19551163911819458, 0.15588852763175964, -0.03969902545213699, 0.008310582488775253, -0.0594494566321373, 0.13631999492645264, -0.09816783666610718, 0.24463722109794617, 0.0385856032371521, -0.054667554795742035, 0.23823800683021545, 0.12019611895084381, 0.1842218041419983, 0.04891207814216614, -0.1412816047668457, 0.467106431722641, -0.07224199920892715, -0.2741679549217224, -0.16410231590270996, 0.19771574437618256, 0.1868244856595993, 0.15116102993488312, 0.17902132868766785, -0.2410614937543869, 0.36293238401412964, -0.18333762884140015, 0.09980689734220505, 0.435085654258728, -0.05547860637307167, -0.22173719108104706, 0.31301113963127136, 0.43322163820266724, -0.20514056086540222, 0.44614461064338684, 0.36386993527412415, -0.21313798427581787, 0.5768558979034424, 0.18655449151992798, 0.33188655972480774, 0.3495149314403534, 0.5341727137565613, -0.2553032636642456, -0.38878539204597473, -0.11096349358558655, 0.770338773727417, -0.2449413537979126, -0.21367304027080536, 0.03339368477463722, -0.20797336101531982, 0.33490878343582153, -0.34334680438041687, 0.11322259902954102, 0.4351329505443573, 0.1481793075799942, -0.040824055671691895, -0.35700473189353943, 0.020401760935783386, 0.24827323853969574, -0.036998048424720764, 0.0036889133043587208, 0.018553784117102623, 0.16131240129470825, 0.1794336438179016, 0.27752500772476196, -0.28586238622665405, -0.22906623780727386, -0.15207010507583618, 0.1804332286119461, -0.05910801887512207, 0.1522854119539261, -0.28977981209754944, 0.25914448499679565, 0.32154008746147156, -0.35636675357818604, 0.20936161279678345, 0.4154401123523712, -0.015353396534919739, 0.10739758610725403, -0.35429152846336365, -0.15568381547927856, 0.028630100190639496, 0.4394167959690094, 0.2068331241607666, 0.21890074014663696, -0.037383824586868286, -0.06809718906879425, -0.07276400923728943, -0.07776588201522827, 0.23255646228790283, 0.06563877314329147, 0.15787619352340698, 0.2685893774032593, 0.2677967846393585, 0.05264734476804733, -0.13243457674980164, 0.06583676487207413, -0.1772332787513733, 0.39906322956085205, 0.18764761090278625, -0.2525111436843872, 0.24205005168914795, 0.2378874123096466, 0.008193675428628922, -0.24586713314056396, 0.012394420802593231, -0.08788513392210007, 0.43552008271217346, -0.2969924807548523, -0.3003428280353546, -0.3489137887954712, -0.33652761578559875, -0.3431503176689148, -0.02514548972249031, 0.09699217975139618, 0.0010713711380958557, 0.21462908387184143, 0.020398832857608795, 0.008032910525798798, 0.11676792055368423, -0.24034903943538666, 0.04445909336209297, -0.13693244755268097, 0.37497639656066895, -0.02541342005133629, 0.3593272566795349, -0.08077654242515564, -0.30886533856391907, 0.4820462167263031, -0.26555803418159485, -0.04221529886126518, 0.0557008758187294, 0.0875636413693428, 0.14831888675689697, 0.0405413955450058, -0.10824301838874817, 0.03692355751991272, 0.4210779666900635, 0.12042532116174698, 0.57259202003479, 0.05054626986384392, 0.14965921640396118, -0.22698675096035004, 0.1850089430809021, 0.32378798723220825, 0.12236407399177551, -0.03242442011833191, 0.07480818033218384, 0.08036863803863525, 0.22492942214012146, -0.1496293544769287, -0.27735695242881775, -0.09690240025520325, 0.07714787125587463, 0.15351814031600952, 0.29362788796424866, -0.24478211998939514, 0.1370539665222168, -0.03682466596364975, 0.020469024777412415, -0.24104604125022888, -0.12270808219909668, 0.5522246956825256, -0.5193553566932678, -0.25870779156684875, -0.36088377237319946, 0.2557363212108612, 0.2829856276512146, 0.20683252811431885, 0.14414387941360474, -0.042292602360248566, 0.14793162047863007, -0.12213927507400513, -0.29391545057296753, 0.3119496703147888, 0.00899536907672882, 0.009170562028884888, -0.20841550827026367, -0.26740771532058716, 0.09573684632778168, -0.1376582384109497, -0.3251844644546509, -0.14481985569000244 ]
https://github.com/huggingface/datasets/issues/1796
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
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']) ```
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.25473982095718384, -0.235118567943573, -0.10145208239555359, -0.22573454678058624, -0.14286470413208008, -0.2871682941913605, 0.27946504950523376, 0.23597803711891174, 0.31276702880859375, -0.11907678842544556, 0.06210961937904358, 0.13041609525680542, -0.12634721398353577, 0.42241108417510986, -0.24737787246704102, 0.16914786398410797, 0.09486056864261627, 0.20991948246955872, 0.3651648163795471, 0.04463483393192291, -0.049447543919086456, -0.11382687836885452, -0.33271753787994385, -0.04424373060464859, -0.04049845039844513, -0.29614385962486267, 0.2930484116077423, -0.2661840319633484, -0.2599881589412689, -0.17891888320446014, -0.08933839201927185, 0.42528754472732544, 0.0437738299369812, 0.4724213778972626, -0.00012845320452470332, -0.36400681734085083, 0.26256608963012695, 0.11318783462047577, 0.19097019731998444, 0.11359575390815735, -0.18486133217811584, -0.016356315463781357, -0.021852491423487663, -0.05935008078813553, -0.21387331187725067, 0.05300965905189514, -0.27317512035369873, -0.3023948669433594, 0.4287184774875641, 0.10061635076999664, -0.028960678726434708, -0.18324851989746094, -0.3738383650779724, 0.3723735809326172, 0.14585557579994202, 0.35618463158607483, 0.14372429251670837, -0.250230610370636, 0.6577314734458923, -0.3737891912460327, 0.04612117260694504, 0.5352954864501953, -0.4705413281917572, -0.16817805171012878, 0.19685207307338715, -0.3184742331504822, 0.1125076413154602, -0.28223681449890137, 0.22915297746658325, 0.16906680166721344, 0.014992723241448402, -0.07770930230617523, -0.21435338258743286, -0.29156407713890076, -0.06155989691615105, -0.413919597864151, 0.02528638020157814, 0.028611429035663605, -0.3154198229312897, 0.016422517597675323, -0.5580668449401855, -0.2037365436553955, 0.09655112028121948, 0.14037363231182098, -0.3547913730144501, 0.36110588908195496, 0.034612610936164856, 0.13136976957321167, 0.21422570943832397, -0.21309475600719452, 0.022694572806358337, -0.28705328702926636, 0.264845609664917, 0.36231306195259094, -0.6492137312889099, -0.1423451453447342, -0.17437763512134552, 0.17504671216011047, 0.0069197192788124084, 0.07863298058509827, -0.35297220945358276, 0.4686012864112854, 0.22201824188232422, -0.025951433926820755, -0.06266406178474426, 0.23973552882671356, 0.07409818470478058, 0.45727744698524475, 0.2873614430427551, -0.21477985382080078, -0.23667970299720764, 0.25442343950271606, -0.06849463284015656, 0.07989957928657532, 0.0800585076212883, -0.03191332891583443, -0.4939537048339844, -0.13883835077285767, -0.2648065984249115, -0.1102304607629776, -0.3951866030693054, -0.11923731863498688, 0.6373213529586792, 0.42580118775367737, -0.07958581298589706, -0.13445375859737396, -0.11968701332807541, -0.23805642127990723, -0.16519416868686676, 0.028518319129943848, 0.03243850916624069, -0.0963226780295372, -0.06951344758272171, 0.17841675877571106, 0.07810293138027191, -0.2720377445220947, -0.19776153564453125, 0.032623041421175, -0.17777135968208313, 0.17301645874977112, 0.25519442558288574, -0.3473982810974121, 0.1557762324810028, 0.30137860774993896, -0.3203011453151703, 0.3183270990848541, 0.1355058252811432, 0.09040279686450958, -0.12950032949447632, 0.14772608876228333, -0.34592774510383606, -0.31415948271751404, 0.21307609975337982, -0.0019208011217415333, -0.12040211260318756, 0.16892047226428986, -0.12101703882217407, 0.3417941927909851, 0.275141179561615, -0.10069424659013748, -0.20164507627487183, -0.191502183675766, -0.5472354888916016, -0.16208072006702423, 0.20939821004867554, 0.1171441376209259, -0.48605310916900635, -0.011903129518032074, -0.2796177268028259, 0.22333192825317383, 0.6011428833007812, 0.43440937995910645, -0.04605298861861229, 0.14724010229110718, -0.02990700677037239, 0.056431278586387634, 0.2358344942331314, -0.12276610732078552, -0.3312917947769165, 0.6238359212875366, -0.06387561559677124, 0.04009215533733368, 0.21264870464801788, 0.10533882677555084, 0.5331238508224487, -0.2556840777397156, 0.46278175711631775, 0.3944650888442993, -0.18781448900699615, 0.10910405218601227, 0.003341399133205414, -0.13125896453857422, 0.1949513852596283, 0.21790626645088196, -0.33209559321403503, -0.07579423487186432, -0.06967158615589142, -0.44811058044433594, 0.19658420979976654, 0.02322191745042801, 0.034789055585861206, 0.11894786357879639, 0.24030956625938416, 0.01632576808333397, 0.020649656653404236, -0.13577663898468018, 0.08843295276165009, -0.05111898481845856, -0.014072291553020477, -0.16710305213928223, -0.24949131906032562, -0.1959039717912674, -0.20261023938655853, -0.02241179719567299, 0.06332840770483017, 0.20253309607505798, -0.12866085767745972, -0.17705823481082916, 0.08982744067907333, -0.22923074662685394, 0.008876025676727295, 0.48075807094573975, -0.040927011519670486, -0.02778512053191662, 0.1705213487148285, -0.07462860643863678, 0.3705914616584778, -0.07825033366680145, 0.14515049755573273, 0.01699943095445633, 0.3502369523048401, 0.018662072718143463, 0.04101043939590454, 0.14074651896953583, 0.4962436854839325, -0.28919142484664917, -0.29197853803634644, 0.17777568101882935, 0.1451970338821411, 0.3355657458305359, 0.12326213717460632, 0.04533790796995163, 0.11895345151424408, -0.10184914618730545, -0.22429005801677704, 0.5475724935531616, -0.049496524035930634, 0.4638313949108124, 0.07080880552530289, -0.0753636434674263, 0.32802945375442505, 0.17197784781455994, -0.11582034826278687, -0.237923264503479, 0.46021145582199097, -0.014344388619065285, 0.13402916491031647, 0.2429945319890976, -0.08891686797142029, 0.33651113510131836, -0.07566986978054047, -0.2729932367801666, -0.06270984560251236, 0.23760029673576355, 0.17268088459968567, 0.10395443439483643, 0.189948171377182, 0.01095031201839447, 0.005682080984115601, 0.21708765625953674, -0.19800779223442078, -0.16664354503154755, 0.05119546502828598, -0.04375576972961426, 0.2654491066932678, 0.08149407804012299, 0.25965243577957153, -0.247097447514534, 0.25726795196533203, -0.13743223249912262, -0.11713091284036636, -0.3422013819217682, 0.20117974281311035, 0.27270737290382385, -0.20903515815734863, 0.0312490314245224, -0.34809333086013794, -0.5751771330833435, 0.25410568714141846, -0.08790755271911621, 0.22269296646118164, 0.07293956726789474, 0.1610175222158432, 0.04714488983154297, 0.2452380657196045, 0.14086264371871948, 0.08553217351436615, 0.22163459658622742, 0.2345062494277954, -0.5197232365608215, -0.11053159832954407, -0.15123789012432098, -0.03947294503450394, -0.057124070823192596, 0.2479061782360077, 0.31566935777664185, 0.3780960440635681, 0.3416633605957031, -0.06671060621738434, -0.11726781725883484, -0.5213432312011719, -0.15064749121665955, -0.012481212615966797, 0.11785417795181274, 0.1023150309920311, 0.14622001349925995, -0.33545762300491333, -0.1229354739189148, -0.029826033860445023, 0.04915216565132141, -0.17726722359657288, 0.07266530394554138, -0.166916161775589, 0.0829741433262825, 0.080065056681633, 0.17008854448795319, -0.23576772212982178, -0.03818002715706825, -0.20738089084625244, -0.05656290799379349, 0.27029210329055786, -0.2656605839729309, -0.07305795699357986, -0.2781134247779846, -0.2712409496307373, -0.10318776220083237, 0.036469679325819016, -0.2044026255607605, 0.2926090657711029, 0.28269943594932556, 0.01965283416211605, -0.15174536406993866, -0.0983474850654602, -0.34920534491539, 0.5780212879180908, -0.26968705654144287, 0.15842926502227783, -0.40382635593414307, -0.2313585877418518, 0.2019394338130951, -0.033444635570049286, 0.28658753633499146, -0.10350042581558228, 0.14019151031970978, 0.02750132977962494, -0.32516682147979736, -0.19499558210372925, -0.20941206812858582, 0.2677612900733948, 0.2775142192840576, 0.7451367378234863, 0.07416658848524094, 0.3454884886741638, 0.18027222156524658, 0.1070333868265152, 0.016800330951809883, 0.28163057565689087, -0.2569595277309418, -0.16913637518882751, -0.3194510042667389, -0.06220966577529907, 0.23519688844680786, 0.0858151763677597, 0.025760013610124588, 0.1553872525691986, -0.17712581157684326, -0.03890010342001915, -0.21135203540325165, -0.06669527292251587, -0.15916991233825684, 0.1071520671248436, -0.20322269201278687, 0.29082947969436646, 0.23693689703941345, -0.00895293802022934, -0.49208924174308777, -0.35263484716415405, -0.24617524445056915, 0.03383301943540573, 0.22478297352790833, -0.17753615975379944, -0.5154920816421509, -0.153670996427536, -0.3968796730041504, 0.3571224808692932, 0.21056371927261353, 0.2496906965970993, 0.07332982867956161, 0.09184079617261887, 0.13792866468429565, 0.004819855093955994, 0.8831481337547302, -0.1925908327102661, 0.04782450571656227, 0.08550690859556198, -0.538655161857605, -0.3299155831336975, 0.1213034838438034, -0.026626862585544586, 0.06275343894958496, 0.36902111768722534, 0.4005456268787384, -0.3076559007167816, -0.33612486720085144, -0.05967022106051445, 0.13100877404212952, -0.007217228412628174, -0.35391125082969666, -0.15043455362319946, -0.12875962257385254, -0.3918294310569763, 0.3001623749732971, -0.002001255750656128, 0.2927740812301636, 0.3270321488380432, -0.3938690423965454, 0.0023751500993967056, -0.2537272572517395, 0.31026753783226013, -0.017485372722148895, -0.033112507313489914, 0.15792398154735565, 0.2585357427597046, 0.009452302008867264, 0.1730179786682129, -0.036503344774246216, -0.20735542476177216, -0.022344140335917473, -0.0015391148626804352, 0.056520551443099976, 0.048267628997564316, 0.39987877011299133, 0.4951082170009613, -0.146521657705307, 0.583641767501831, 0.06940293312072754, 0.49082592129707336, -0.011303264647722244, 0.2272515445947647, -0.11869829893112183, 0.18468815088272095, -0.6643239855766296, -0.6317517757415771, 0.08982843905687332, 0.3616836369037628, -0.3592299222946167, 0.41494831442832947, 0.05390512943267822, -0.09255482256412506, 0.4846368134021759, 0.07965019345283508, 0.9722084999084473, -0.41014787554740906, -0.1564437747001648, -0.1024756208062172, 0.23483964800834656, 0.4491519629955292, -0.14523158967494965, 0.1185021698474884, 0.0526881217956543, -0.3127821683883667, 0.018768660724163055, -0.17898453772068024, 0.013135770335793495, 0.10356886684894562, 0.10156689584255219, 0.35286158323287964, -0.1354781538248062, 0.053293030709028244, 0.017389658838510513, 0.30330216884613037, 0.2745914161205292, -0.39071065187454224, -0.1281692385673523, -0.06740535795688629, 0.14843560755252838, -0.054495520889759064, 0.04174076020717621, 0.023109007626771927, 0.258668452501297, -0.2181495726108551, -0.1786283701658249, -0.4309234023094177, -0.33461979031562805, -0.029031867161393166, -0.18610940873622894, -0.2180696427822113, 0.18560868501663208, -0.14997126162052155, -0.15465107560157776, 0.4800976812839508, 0.05503123998641968, 0.18720802664756775, 0.2562004029750824, 0.2629365921020508, -0.07100899517536163, -0.43948790431022644, 0.19413138926029205, -0.14785170555114746, -0.18939849734306335, 0.03992746025323868, -0.020283561199903488, -0.4675249457359314, -0.028594359755516052, 0.16648031771183014, 0.4765828847885132, 0.016072958707809448, -0.2211516797542572, -0.009073574095964432, 0.013356789946556091, -0.1800496131181717, -0.039007242769002914, 0.16013576090335846, 0.08721053600311279, 0.6803516745567322, -0.011806477792561054, -0.2712482213973999, -0.11714622378349304, 0.13556981086730957, 0.27161312103271484, -0.25443756580352783, 0.3072369694709778, 0.20269480347633362, -0.4166204333305359, -0.11174872517585754, 0.005492687225341797, 0.22099445760250092, 0.33901455998420715, 0.11248302459716797, -0.01736328937113285, -0.2973783612251282, 0.4311400055885315, 0.03993241861462593, -0.14299394190311432, 0.022601507604122162, -0.003555797040462494, -0.6040539145469666, -0.19784703850746155, 0.04455966874957085, -0.1624220311641693, -0.22623515129089355, 0.09222389757633209, 0.23474383354187012, -0.25621750950813293, 0.3702440559864044, -0.156082421541214, -0.11458062380552292, -0.04225383698940277, 0.2249816507101059, -0.1870006024837494, 0.23972739279270172, -0.06963960826396942, 0.07817283272743225, -0.021561650559306145, 0.0846775472164154, 0.0055009908974170685, -0.12498803436756134, 0.09385671466588974, 0.19143083691596985, -0.16927286982536316, -0.26617002487182617, 0.2854490876197815, -0.3040850758552551, -0.24805623292922974, -0.20041388273239136, 0.11811630427837372, -0.03291188180446625, 0.05817032605409622, -0.6831444501876831, 0.029405318200588226, -0.4843920171260834, -0.1465281844139099, 0.08450387418270111, -0.12794747948646545, -0.3025520443916321, 0.044608596712350845, 0.17621786892414093, 0.14222590625286102, -0.02726178616285324, 0.04841391742229462, -0.06535094231367111, 0.11468803137540817, -0.06263449788093567, 0.24728915095329285, 0.043143562972545624, -0.08274555951356888, 0.21334481239318848, 0.12622646987438202, 0.17694222927093506, 0.05632558837532997, -0.15676862001419067, 0.48665255308151245, -0.06685575097799301, -0.2868571877479553, -0.19539326429367065, 0.16713011264801025, 0.20774808526039124, 0.17367301881313324, 0.1619257628917694, -0.2451898455619812, 0.3579372465610504, -0.18539345264434814, 0.0889694094657898, 0.4020831882953644, -0.08218131959438324, -0.23520851135253906, 0.3388044238090515, 0.4077503979206085, -0.22499707341194153, 0.48056378960609436, 0.34689345955848694, -0.19380001723766327, 0.6008092164993286, 0.19635318219661713, 0.32696428894996643, 0.42399364709854126, 0.5279600024223328, -0.3396153748035431, -0.3884892463684082, -0.11077961325645447, 0.7172068953514099, -0.2031838595867157, -0.18738308548927307, 0.07080601155757904, -0.2135525345802307, 0.34359654784202576, -0.32420480251312256, 0.1368948072195053, 0.3997923731803894, 0.16896100342273712, -0.06898681074380875, -0.3674277067184448, 0.015546143054962158, 0.26936429738998413, -0.025864724069833755, 0.0015563396736979485, 0.003990571014583111, 0.2068345993757248, 0.15592467784881592, 0.31891515851020813, -0.2765100300312042, -0.24059882760047913, -0.12860670685768127, 0.21349771320819855, -0.0510532520711422, 0.12598633766174316, -0.2663528323173523, 0.27943044900894165, 0.3113369345664978, -0.36934134364128113, 0.20652395486831665, 0.36977502703666687, -0.04008040577173233, 0.09776097536087036, -0.37421855330467224, -0.15692037343978882, 0.003428436815738678, 0.43610846996307373, 0.21185919642448425, 0.19151932001113892, -0.03410182148218155, -0.07337971031665802, -0.054766323417425156, -0.0629165917634964, 0.23539070785045624, 0.04978705570101738, 0.16193386912345886, 0.25952625274658203, 0.2800491154193878, 0.034871906042099, -0.12281350791454315, 0.026911506429314613, -0.1231808066368103, 0.39831867814064026, 0.23545163869857788, -0.2709558606147766, 0.2363278716802597, 0.24292194843292236, 0.007573757320642471, -0.23892876505851746, -0.013387594372034073, -0.08553566783666611, 0.41853994131088257, -0.28868067264556885, -0.2669925093650818, -0.345230370759964, -0.3425404727458954, -0.378406822681427, -0.041096895933151245, 0.09316334873437881, 0.012588366866111755, 0.2585788071155548, 0.04499028995633125, 0.029672201722860336, 0.10202294588088989, -0.19090710580348969, 0.02830497920513153, -0.13949419558048248, 0.39538535475730896, 0.009560168720781803, 0.3836019039154053, -0.05424477532505989, -0.3450881242752075, 0.48032745718955994, -0.23673701286315918, -0.042404986917972565, 0.08157503604888916, 0.08671553432941437, 0.16809502243995667, 0.028279900550842285, -0.056431666016578674, 0.03566839545965195, 0.38963353633880615, 0.1423923671245575, 0.5392436385154724, 0.02557738497853279, 0.16642770171165466, -0.2396233081817627, 0.17450851202011108, 0.32322952151298523, 0.1623239517211914, -0.056394271552562714, 0.06580308079719543, 0.0653195008635521, 0.23568236827850342, -0.1420144885778427, -0.2512161433696747, -0.10083093494176865, 0.12022756785154343, 0.11882580816745758, 0.2824156880378723, -0.30858808755874634, 0.13361462950706482, -0.0352306067943573, 0.03290581703186035, -0.22674745321273804, -0.14354930818080902, 0.5653973817825317, -0.5540590286254883, -0.3062087595462799, -0.3145028352737427, 0.2423718124628067, 0.3347375988960266, 0.19905495643615723, 0.11138519644737244, -0.058615319430828094, 0.1164708286523819, -0.1394052803516388, -0.3094704747200012, 0.27065807580947876, 0.02683544158935547, 0.020089872181415558, -0.20973189175128937, -0.22815939784049988, 0.08922487497329712, -0.13145077228546143, -0.3454655408859253, -0.17426875233650208 ]
https://github.com/huggingface/datasets/issues/1796
No update so far, we haven't worked on this yet :/ Though PyArrow is much more stable than 3 years ago so it would be a good time to dive into this
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']) ```
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']) ``` No update so far, we haven't worked on this yet :/ Though PyArrow is much more stable than 3 years ago so it would be a good time to dive into this
[ -0.23869255185127258, -0.136336088180542, -0.08516345173120499, -0.25257423520088196, -0.060326382517814636, -0.28717660903930664, 0.26554644107818604, 0.226846382021904, 0.10224667936563492, -0.10796566307544708, -0.023406727239489555, 0.13732701539993286, -0.08909493684768677, 0.31491050124168396, -0.16668342053890228, 0.08920338749885559, 0.11467801034450531, 0.2267942577600479, 0.42639124393463135, 0.039749376475811005, -0.03580445796251297, -0.13483843207359314, -0.3507393002510071, 0.03891085460782051, -0.08877728134393692, -0.2608446180820465, 0.2299269139766693, -0.20940381288528442, -0.3007732033729553, -0.22128762304782867, -0.09493373334407806, 0.42628487944602966, 0.01594080775976181, 0.45833083987236023, -0.0001308718346990645, -0.3520312011241913, 0.2921888530254364, 0.13207729160785675, 0.2127244472503662, 0.13321860134601593, -0.03197484463453293, 0.019487567245960236, 0.03640846908092499, -0.045250192284584045, -0.154609814286232, -0.07759828865528107, -0.22858396172523499, -0.07383948564529419, 0.3418337106704712, 0.09431834518909454, -0.044213078916072845, -0.1350191980600357, -0.2805033326148987, 0.41387954354286194, 0.3199860453605652, 0.2800102233886719, 0.1442355215549469, -0.08585850894451141, 0.7062016725540161, -0.4440154731273651, -0.00796433538198471, 0.40074944496154785, -0.49926939606666565, -0.187505841255188, 0.1874266266822815, -0.23343612253665924, 0.16052423417568207, -0.262298583984375, 0.1463480442762375, 0.1526300609111786, 0.06351827085018158, -0.16216740012168884, -0.19614854454994202, -0.3007770776748657, -0.03711690753698349, -0.43884265422821045, 0.011126010678708553, 0.0702863559126854, -0.39163124561309814, 0.025444546714425087, -0.5583543181419373, -0.17333075404167175, 0.05133321136236191, 0.24544033408164978, -0.4063454866409302, 0.3879701793193817, 0.14749786257743835, 0.17818304896354675, 0.21058304607868195, -0.13979411125183105, 0.07686606049537659, -0.24902115762233734, 0.28857991099357605, 0.3289716839790344, -0.6241275072097778, -0.1313704550266266, -0.1295652687549591, 0.29870301485061646, 0.08061675727367401, 0.049572791904211044, -0.3722872734069824, 0.41951367259025574, 0.31970250606536865, -0.006495291367173195, -0.047355834394693375, 0.2148982733488083, 0.03624443709850311, 0.3917604684829712, 0.33163318037986755, -0.2633100152015686, -0.25670352578163147, 0.2822831869125366, -0.025255581364035606, 0.03170515596866608, 0.19955378770828247, -0.08594471961259842, -0.44326120615005493, -0.08922211080789566, -0.23096689581871033, -0.12165556848049164, -0.5127192139625549, -0.15211161971092224, 0.6046828031539917, 0.4588865637779236, -0.09222760796546936, -0.1781555414199829, -0.19119560718536377, -0.18886631727218628, -0.19751375913619995, 0.030524522066116333, 0.035530440509319305, -0.05053692311048508, -0.08219750970602036, 0.23052482306957245, 0.08527179807424545, -0.2970154583454132, -0.16575291752815247, 0.07071158289909363, -0.1376195102930069, 0.17659546434879303, 0.19327497482299805, -0.3357515335083008, 0.11451786756515503, 0.32940495014190674, -0.2735556364059448, 0.269034743309021, 0.07912468910217285, 0.05750712752342224, -0.17579898238182068, 0.21979236602783203, -0.33683979511260986, -0.40098845958709717, 0.15280474722385406, -0.020688174292445183, -0.19865189492702484, 0.16537924110889435, -0.05932028964161873, 0.3137659430503845, 0.3267821669578552, -0.08121444284915924, -0.17524592578411102, -0.2231757938861847, -0.48835688829421997, -0.19671714305877686, 0.18187402188777924, 0.05140910670161247, -0.5497032999992371, 0.034627944231033325, -0.24546228349208832, 0.20010972023010254, 0.5986436605453491, 0.48239147663116455, -0.10825486481189728, 0.2638322114944458, 0.00077781081199646, 0.17591936886310577, 0.22923538088798523, -0.12518569827079773, -0.4098823368549347, 0.5443586707115173, -0.05938399210572243, 0.014314666390419006, 0.17608420550823212, 0.12257206439971924, 0.5300940871238708, -0.23727455735206604, 0.48461803793907166, 0.367519736289978, -0.22061361372470856, 0.15064558386802673, -0.033024419099092484, -0.12940141558647156, 0.21306627988815308, 0.27655118703842163, -0.3003237843513489, -0.11905981600284576, -0.07517579197883606, -0.4419495761394501, 0.23638829588890076, 0.0065053668804466724, -0.005918979644775391, 0.09909428656101227, 0.31235218048095703, 0.05869573354721069, 0.022890273481607437, -0.18048442900180817, 0.014661760069429874, -0.053655270487070084, -0.07947389781475067, -0.09771421551704407, -0.2935759127140045, -0.22197800874710083, -0.19426672160625458, 0.02558157593011856, 0.05961635708808899, 0.23409819602966309, -0.14029908180236816, -0.19708913564682007, 0.14664466679096222, -0.167746901512146, 0.030158191919326782, 0.34447550773620605, -0.0007427483797073364, 0.009574908763170242, 0.24186065793037415, 0.06316737085580826, 0.3211294114589691, -0.18956460058689117, 0.1499345898628235, -0.034982457756996155, 0.350400447845459, 0.03634221851825714, 0.11921586841344833, 0.18325459957122803, 0.46719932556152344, -0.28624090552330017, -0.4038025438785553, 0.1869756281375885, 0.1409251093864441, 0.29754430055618286, 0.13337010145187378, -0.037558287382125854, 0.07591864466667175, -0.10715559870004654, -0.12367115169763565, 0.5168992280960083, -0.02761726826429367, 0.38642001152038574, 0.06888309121131897, -0.13118748366832733, 0.248886376619339, 0.1311965435743332, -0.05088827386498451, -0.1130974069237709, 0.5179646015167236, 0.014203373342752457, 0.19054709374904633, 0.24836741387844086, -0.10387971252202988, 0.3544885814189911, 0.042104482650756836, -0.3960428535938263, -0.07557224482297897, 0.2557123005390167, 0.16546571254730225, 0.11016185581684113, 0.1894080936908722, -0.14376245439052582, 0.032456785440444946, 0.2547765374183655, -0.18595844507217407, -0.13510988652706146, 0.01600148156285286, -0.07358399778604507, 0.22389757633209229, 0.1070355623960495, 0.2724616527557373, -0.22689864039421082, 0.3207333981990814, -0.14106962084770203, -0.1793973445892334, -0.28727057576179504, 0.21061761677265167, 0.32384997606277466, -0.2655772268772125, 0.04692896455526352, -0.3263795077800751, -0.49954620003700256, 0.2641376256942749, -0.20528705418109894, 0.1351395696401596, 0.027549102902412415, 0.25108492374420166, 0.12516972422599792, 0.2761305272579193, 0.13712120056152344, 0.172878235578537, 0.10678337514400482, 0.22714649140834808, -0.6089709401130676, -0.1634942889213562, -0.19986557960510254, -0.07831107079982758, -0.07945561408996582, 0.26182565093040466, 0.27116549015045166, 0.3223360776901245, 0.27462875843048096, -0.12802065908908844, -0.11547178775072098, -0.5734847784042358, -0.11790032684803009, -0.07122693210840225, 0.20335356891155243, 0.1433139592409134, 0.1653132289648056, -0.3023863732814789, -0.13867917656898499, 0.027045611292123795, 0.034351155161857605, -0.20436161756515503, 0.11993539333343506, -0.22284716367721558, 0.07462847232818604, 0.0826820582151413, 0.194379061460495, -0.2560780346393585, 0.014040946960449219, -0.1633077710866928, -0.09966963529586792, 0.2862129211425781, -0.27207833528518677, -0.023396681994199753, -0.25598472356796265, -0.325651079416275, -0.1375475823879242, 0.10962614417076111, -0.16556672751903534, 0.3536052405834198, 0.31191232800483704, -0.013372676447033882, -0.17006652057170868, -0.0975443571805954, -0.4056386649608612, 0.605482816696167, -0.31125444173812866, 0.07092399895191193, -0.40240541100502014, -0.02004086971282959, 0.20580711960792542, -0.05589922517538071, 0.30694881081581116, -0.09236541390419006, 0.14975066483020782, 0.05772969126701355, -0.30521950125694275, -0.22062569856643677, -0.15506242215633392, 0.23827311396598816, 0.23497731983661652, 0.6876287460327148, 0.06286846101284027, 0.44660723209381104, 0.04063470661640167, 0.09872892498970032, 0.01980411261320114, 0.18556678295135498, -0.3022461533546448, -0.13932129740715027, -0.2771046459674835, -0.04269460588693619, 0.18252751231193542, 0.02034054696559906, 0.08145076036453247, 0.1447788029909134, -0.23239096999168396, -0.009176164865493774, -0.2365296185016632, -0.12955448031425476, -0.18434324860572815, 0.13895776867866516, -0.034118060022592545, 0.25495243072509766, 0.24183174967765808, -0.0019236281514167786, -0.4364885687828064, -0.4580378532409668, -0.2582780420780182, 0.0031228773295879364, 0.15028353035449982, -0.16001853346824646, -0.4224831461906433, -0.21395105123519897, -0.44345623254776, 0.3225761950016022, 0.2595236301422119, 0.15138961374759674, 0.09740626066923141, 0.0685134008526802, 0.2170283943414688, -0.03857770562171936, 0.9314278364181519, -0.06538233906030655, 0.07047751545906067, 0.07549877464771271, -0.49234718084335327, -0.32348161935806274, 0.03692157566547394, -0.05988014489412308, 0.03559381887316704, 0.38467076420783997, 0.3167875111103058, -0.386758953332901, -0.31322193145751953, -0.06107400357723236, 0.14833325147628784, -0.008533351123332977, -0.37845659255981445, -0.2089894413948059, -0.23131096363067627, -0.3659321367740631, 0.30183741450309753, -0.03132287412881851, 0.31293272972106934, 0.25002729892730713, -0.3522489666938782, 0.09488785266876221, -0.22303083539009094, 0.2821005880832672, 0.03796330839395523, -0.05062555521726608, 0.0664859339594841, 0.20601552724838257, -0.0670500248670578, 0.11071287095546722, 0.09139562398195267, -0.23020197451114655, 0.0526089183986187, 0.012762941420078278, 0.039899520576000214, 0.07324081659317017, 0.41604170203208923, 0.4891710877418518, -0.15335983037948608, 0.5428746342658997, 0.04876990243792534, 0.49533823132514954, 0.06653721630573273, 0.177301287651062, -0.043642062693834305, 0.1404169499874115, -0.6422475576400757, -0.4882526993751526, 0.14233706891536713, 0.3615747094154358, -0.3181920647621155, 0.3447941541671753, 0.06528150290250778, -0.04867320507764816, 0.46336817741394043, 0.07047075033187866, 1.008156180381775, -0.48887160420417786, -0.12677229940891266, 0.08543813973665237, 0.2133600115776062, 0.45140719413757324, -0.22771002352237701, 0.15553441643714905, 0.012226410210132599, -0.2606707513332367, 0.03099406510591507, -0.19680774211883545, -0.023747850209474564, 0.11904735863208771, 0.06442443281412125, 0.2891184091567993, -0.14593301713466644, 0.09688258916139603, 0.07443041354417801, 0.26014745235443115, 0.28868749737739563, -0.30040282011032104, -0.23205459117889404, -0.09730182588100433, 0.11507163941860199, -0.05222385376691818, -0.005189105868339539, 0.0004960186779499054, 0.19641393423080444, -0.2270074337720871, -0.18831130862236023, -0.4419630169868469, -0.3541319966316223, -0.08475729823112488, -0.14454180002212524, -0.2499896138906479, 0.07514965534210205, -0.13254046440124512, -0.27137699723243713, 0.34491026401519775, 0.05733440816402435, 0.20705333352088928, 0.25069454312324524, 0.20384757220745087, -0.013082846999168396, -0.4250005781650543, 0.18804165720939636, -0.17203107476234436, -0.2681776285171509, 0.08293101191520691, -0.013756215572357178, -0.4939095377922058, -0.09952472150325775, 0.18086488544940948, 0.4797082543373108, 0.005253411829471588, -0.1154676228761673, -0.05495478957891464, 0.036425381898880005, -0.1796758770942688, -0.05723316967487335, 0.07846681773662567, 0.11427895724773407, 0.6699036359786987, -0.0883125513792038, -0.2718009352684021, -0.15918493270874023, 0.1120925173163414, 0.28242942690849304, -0.13439738750457764, 0.30448752641677856, 0.2713031768798828, -0.4147965610027313, -0.058403294533491135, -0.030391797423362732, 0.19688889384269714, 0.22820286452770233, 0.0637456551194191, -0.012823928147554398, -0.15725597739219666, 0.3994709849357605, 0.05820874124765396, -0.12000550329685211, -0.0038039516657590866, -0.007921144366264343, -0.5993627309799194, -0.19427497684955597, 0.08033187687397003, 0.0029346849769353867, -0.25382840633392334, 0.14410358667373657, 0.4005674421787262, -0.1848059892654419, 0.38667064905166626, -0.1353990137577057, -0.1158340722322464, -0.060793280601501465, 0.22795064747333527, -0.26332056522369385, 0.18888545036315918, -0.07627076655626297, 0.08740921318531036, -0.016546249389648438, 0.03829456493258476, 0.024442274123430252, -0.11992038041353226, 0.11616083979606628, 0.21096675097942352, -0.17077785730361938, -0.22418764233589172, 0.3223530948162079, -0.27728888392448425, -0.18862247467041016, -0.1638208031654358, 0.16185636818408966, 0.0020359978079795837, 0.039547864347696304, -0.6340485215187073, 0.1676775962114334, -0.46579185128211975, -0.17253416776657104, 0.050692036747932434, -0.16393646597862244, -0.26094362139701843, 0.08649951219558716, 0.21820102632045746, 0.10454048216342926, 0.0012996941804885864, 0.08023352921009064, -0.05269710719585419, 0.14161115884780884, -0.11479247361421585, 0.25538504123687744, 0.016483265906572342, -0.14620405435562134, 0.056714579463005066, 0.1859891712665558, 0.23252567648887634, 0.021193332970142365, -0.16646870970726013, 0.5113072395324707, -0.08974497020244598, -0.2860429286956787, -0.20951123535633087, 0.20518390834331512, 0.1747475266456604, 0.1315619796514511, 0.171576589345932, -0.2731502652168274, 0.3412652015686035, -0.20539528131484985, 0.08072315156459808, 0.4692533016204834, 0.00951601192355156, -0.3559473156929016, 0.393643856048584, 0.37011831998825073, -0.2090747058391571, 0.4999726712703705, 0.3630605936050415, -0.1999439001083374, 0.5115029811859131, 0.1186201423406601, 0.2872956097126007, 0.22970318794250488, 0.4827400743961334, -0.2677486538887024, -0.31482580304145813, -0.1732681691646576, 0.770871639251709, -0.11176268756389618, -0.2996080815792084, 0.03236272558569908, -0.06208324059844017, 0.5124912858009338, -0.31062719225883484, 0.12229259312152863, 0.49056437611579895, 0.1726107895374298, -0.03222455829381943, -0.40794435143470764, 0.002048999071121216, 0.281412810087204, 0.015316858887672424, -0.060722317546606064, -0.11366240680217743, 0.27426886558532715, 0.20906469225883484, 0.2753150761127472, -0.3612235486507416, -0.15842700004577637, -0.1504037082195282, 0.1691810041666031, -0.06417562067508698, 0.13421393930912018, -0.2510274350643158, 0.18020273745059967, 0.29283830523490906, -0.3786078095436096, 0.2577486038208008, 0.42651867866516113, -0.058280959725379944, 0.08731456100940704, -0.3965604603290558, -0.14500749111175537, 0.004358254373073578, 0.39666876196861267, 0.24245211482048035, 0.27579596638679504, -0.03811558336019516, -0.0845954418182373, -0.07048448920249939, -0.06723347306251526, 0.2670857906341553, 0.026362694799900055, 0.17847824096679688, 0.19486522674560547, 0.2591850459575653, -0.036260075867176056, -0.06288421154022217, 0.011652044951915741, -0.12606270611286163, 0.43578043580055237, 0.19964811205863953, -0.18666619062423706, 0.21896007657051086, 0.22614829242229462, -0.005718255415558815, -0.2157389223575592, 0.03255056217312813, -0.024416275322437286, 0.5526121258735657, -0.29400497674942017, -0.25282707810401917, -0.3813408613204956, -0.2866622507572174, -0.46640390157699585, -0.06473618745803833, 0.14723294973373413, 0.03992254287004471, 0.20923009514808655, 0.1389271467924118, 0.02235276997089386, 0.11968117952346802, -0.28977170586586, 0.13415983319282532, -0.1434657871723175, 0.3709471821784973, -0.04846630245447159, 0.33653849363327026, -0.1263217329978943, -0.3083827495574951, 0.5212361812591553, -0.3481890559196472, -0.06842643767595291, -0.018086429685354233, 0.052635133266448975, 0.23708851635456085, 0.13882431387901306, -0.038501325994729996, 0.01887851022183895, 0.4219948351383209, 0.16618311405181885, 0.5769246816635132, 0.04498303681612015, 0.1822757124900818, -0.2507483959197998, 0.14334405958652496, 0.2769376337528229, 0.045958809554576874, -0.018744073808193207, 0.02463916316628456, 0.050634752959012985, 0.3336869478225708, -0.13529300689697266, -0.21982839703559875, -0.019353054463863373, 0.04595671594142914, 0.16804009675979614, 0.25239431858062744, -0.3185686469078064, 0.07045131176710129, -0.06957700848579407, 0.037626348435878754, -0.29468101263046265, -0.14711175858974457, 0.608905553817749, -0.6585712432861328, -0.2512061595916748, -0.3014681041240692, 0.18523359298706055, 0.30344757437705994, 0.186869278550148, 0.14009246230125427, -0.03293467313051224, 0.14956817030906677, -0.08834902942180634, -0.31048545241355896, 0.3264731764793396, 0.05832398310303688, 0.014992065727710724, -0.22698895633220673, -0.24365012347698212, 0.08033193647861481, -0.16145962476730347, -0.39119136333465576, -0.23922349512577057 ]
https://github.com/huggingface/datasets/issues/1796
Hi @lhoestq, thanks a lot for the update! I would like to work on this(if possible). Could you please give me some steps regarding how should I approach this? Also any references would be great!
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']) ```
35
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, thanks a lot for the update! I would like to work on this(if possible). Could you please give me some steps regarding how should I approach this? Also any references would be great!
[ -0.22325900197029114, -0.23717470467090607, -0.10137200355529785, -0.2212727665901184, -0.11815958470106125, -0.2710965573787689, 0.21705058217048645, 0.20104041695594788, 0.26321887969970703, -0.12426680326461792, 0.025943025946617126, 0.0924706757068634, -0.1344791203737259, 0.41543424129486084, -0.2242237627506256, 0.1381273865699768, 0.10219056904315948, 0.2136334776878357, 0.3949693441390991, 0.04041743278503418, -0.049921631813049316, -0.08927254378795624, -0.34927165508270264, -0.039659466594457626, -0.09973230212926865, -0.3025132417678833, 0.27104827761650085, -0.20713038742542267, -0.274700790643692, -0.17989301681518555, -0.12780053913593292, 0.4445222318172455, 0.044380851089954376, 0.5105030536651611, -0.0001285647740587592, -0.3911035656929016, 0.25040626525878906, 0.10010332614183426, 0.2429416924715042, 0.10342578589916229, -0.1704443395137787, -0.013869762420654297, -0.042238444089889526, -0.04300979524850845, -0.20512476563453674, 0.06354276835918427, -0.29698970913887024, -0.24568477272987366, 0.4417784810066223, 0.1307334303855896, -0.03153054416179657, -0.2089364230632782, -0.3342512845993042, 0.3656080663204193, 0.15819871425628662, 0.33411651849746704, 0.20022645592689514, -0.2320423573255539, 0.7129988074302673, -0.38063186407089233, 0.05728979408740997, 0.4687941074371338, -0.461202472448349, -0.16428197920322418, 0.1663936972618103, -0.34220361709594727, 0.09705197811126709, -0.31695738434791565, 0.2349790781736374, 0.1616075038909912, 0.05489891767501831, -0.05957367643713951, -0.19415590167045593, -0.2686743140220642, -0.051443543285131454, -0.4113338589668274, 0.02436930127441883, 0.027702614665031433, -0.3266727030277252, -0.005014803260564804, -0.5914181470870972, -0.22906896471977234, 0.07956309616565704, 0.15833896398544312, -0.375508189201355, 0.36914539337158203, 0.04576690122485161, 0.11625087261199951, 0.21206068992614746, -0.22090187668800354, -0.008871518075466156, -0.2438490390777588, 0.29099443554878235, 0.3610013425350189, -0.6721881628036499, -0.14676246047019958, -0.1520225703716278, 0.22741802036762238, 0.02407899498939514, 0.030429255217313766, -0.381023645401001, 0.46262744069099426, 0.22899238765239716, -0.03738648444414139, -0.04950544983148575, 0.25711801648139954, 0.04004230350255966, 0.4814765155315399, 0.29069021344184875, -0.212013378739357, -0.2946799397468567, 0.2642066776752472, -0.05563521757721901, 0.056979335844516754, 0.08105892688035965, -0.0500003844499588, -0.5000759363174438, -0.1838536262512207, -0.25226524472236633, -0.0908791795372963, -0.41272327303886414, -0.11329242587089539, 0.6803504228591919, 0.4572691023349762, -0.10427622497081757, -0.1126730889081955, -0.11579088866710663, -0.22602373361587524, -0.17231112718582153, 0.017263907939195633, 0.030713152140378952, -0.04089924320578575, -0.07129716873168945, 0.2082015872001648, 0.10328634083271027, -0.2786385416984558, -0.19713112711906433, 0.05663600564002991, -0.17915594577789307, 0.12438763678073883, 0.23319154977798462, -0.3622274696826935, 0.12579703330993652, 0.29226335883140564, -0.28041231632232666, 0.31011006236076355, 0.0963219702243805, 0.10133255273103714, -0.11202999204397202, 0.12188787013292313, -0.3566732406616211, -0.35088568925857544, 0.2273515909910202, 0.0005410658195614815, -0.1340971291065216, 0.18802855908870697, -0.06151348352432251, 0.34877151250839233, 0.3178470730781555, -0.07511811703443527, -0.22833383083343506, -0.19558201730251312, -0.5855919122695923, -0.1765994429588318, 0.2026035189628601, 0.10492353141307831, -0.4751116931438446, 0.028484150767326355, -0.2715436816215515, 0.2224821150302887, 0.5772443413734436, 0.42960163950920105, -0.03761027008295059, 0.22743025422096252, -0.011970367282629013, 0.045816242694854736, 0.1864725798368454, -0.10778996348381042, -0.3374805450439453, 0.6175451278686523, -0.05626652389764786, 0.018147818744182587, 0.18244218826293945, 0.07942813634872437, 0.556609570980072, -0.25359734892845154, 0.5140504837036133, 0.3895150423049927, -0.2238922268152237, 0.11878743022680283, -0.024155840277671814, -0.10250921547412872, 0.14632095396518707, 0.2503085732460022, -0.2873215079307556, -0.0758771002292633, -0.06891882419586182, -0.3809667229652405, 0.1631220281124115, 0.01270184013992548, 0.04202485829591751, 0.17125371098518372, 0.22232437133789062, 0.07204081118106842, 0.006682556122541428, -0.17026247084140778, 0.10508602857589722, -0.046258121728897095, -0.05374936759471893, -0.14889557659626007, -0.200391486287117, -0.17252177000045776, -0.26566407084465027, -0.024713430553674698, 0.07874269783496857, 0.24575164914131165, -0.11717243492603302, -0.18115288019180298, 0.12273260951042175, -0.22137142717838287, 0.032949402928352356, 0.4797140955924988, -0.06090295687317848, -0.04387037828564644, 0.16915851831436157, -0.059207733720541, 0.34246185421943665, -0.106392502784729, 0.17349712550640106, 0.02577918954193592, 0.3824536204338074, 0.029079485684633255, 0.05620026960968971, 0.1539984494447708, 0.5008611679077148, -0.2972557842731476, -0.3181712329387665, 0.19772781431674957, 0.15970058739185333, 0.3612353801727295, 0.1316300928592682, -0.00021596625447273254, 0.135464146733284, -0.1236891821026802, -0.15492776036262512, 0.545407235622406, -0.05355596914887428, 0.42031794786453247, 0.08233446627855301, -0.08754530549049377, 0.3095552921295166, 0.1718752682209015, -0.08621786534786224, -0.2081942856311798, 0.49907416105270386, 0.00994132086634636, 0.11851627379655838, 0.2284863144159317, -0.09181167185306549, 0.3100966215133667, -0.08005718886852264, -0.31861433386802673, -0.06417164206504822, 0.24825222790241241, 0.18123126029968262, 0.09844470024108887, 0.15864750742912292, 0.0020328760147094727, 0.039805296808481216, 0.19188834726810455, -0.18315489590168, -0.15245993435382843, 0.05796939879655838, -0.04525160416960716, 0.2482432723045349, 0.10293301939964294, 0.23499266803264618, -0.2401023954153061, 0.24593095481395721, -0.12510226666927338, -0.09440542012453079, -0.2840258479118347, 0.21946246922016144, 0.3256419599056244, -0.24402837455272675, 0.02392011135816574, -0.3518034815788269, -0.5618377923965454, 0.23673057556152344, -0.11627654731273651, 0.1907329261302948, 0.046147897839546204, 0.17311066389083862, 0.05924377590417862, 0.27298474311828613, 0.10839252173900604, 0.1252346634864807, 0.20776033401489258, 0.2171962559223175, -0.48100048303604126, -0.08595322072505951, -0.12250208109617233, -0.04257238656282425, -0.0557568222284317, 0.2693713903427124, 0.33398836851119995, 0.3847671449184418, 0.314193993806839, -0.08848399668931961, -0.10100831091403961, -0.537744402885437, -0.15898387134075165, -0.011544284410774708, 0.1384010761976242, 0.1258181929588318, 0.14135441184043884, -0.31824374198913574, -0.11008778214454651, -0.029523324221372604, 0.014933213591575623, -0.1476549208164215, 0.07105857878923416, -0.19462500512599945, 0.0687069296836853, 0.09519493579864502, 0.1588517278432846, -0.27546605467796326, -0.021644409745931625, -0.20914041996002197, -0.06342849135398865, 0.28529655933380127, -0.3094256818294525, -0.10390479862689972, -0.23306190967559814, -0.2694719433784485, -0.05918094515800476, 0.020296387374401093, -0.19948264956474304, 0.301211953163147, 0.27861976623535156, -0.015240886248648167, -0.11885972321033478, -0.08239845931529999, -0.33797597885131836, 0.5511594414710999, -0.24422775208950043, 0.13223311305046082, -0.4137601852416992, -0.2447473257780075, 0.18385149538516998, -0.02070283517241478, 0.27125248312950134, -0.14468181133270264, 0.16340769827365875, 0.029176101088523865, -0.3048812448978424, -0.1742120087146759, -0.18490833044052124, 0.28057289123535156, 0.2826191186904907, 0.7241311073303223, 0.059565894305706024, 0.3093198239803314, 0.15209637582302094, 0.1017167866230011, 0.020020227879285812, 0.2909901738166809, -0.2960294187068939, -0.1541593372821808, -0.3072352409362793, -0.055512771010398865, 0.23002253472805023, 0.03846985101699829, 0.07366227358579636, 0.19577239453792572, -0.14391237497329712, -0.05057394504547119, -0.1905570924282074, -0.08980768173933029, -0.15726524591445923, 0.12001733481884003, -0.15797843039035797, 0.3066350221633911, 0.23186466097831726, -0.04159626364707947, -0.47781282663345337, -0.3692718744277954, -0.2999546229839325, 0.05675945058465004, 0.16367574036121368, -0.1793273240327835, -0.5062666535377502, -0.19322001934051514, -0.39670711755752563, 0.36470848321914673, 0.2295345515012741, 0.26699885725975037, 0.05955727398395538, 0.114081010222435, 0.1558121144771576, 0.006710842251777649, 0.8524820804595947, -0.19201181828975677, 0.023332832381129265, 0.08289006352424622, -0.5679080486297607, -0.26043492555618286, 0.10366220772266388, -0.05059368163347244, 0.07528549432754517, 0.4103427529335022, 0.3772137761116028, -0.3134530186653137, -0.3440219759941101, -0.07112175226211548, 0.11384928971529007, 0.0017973408102989197, -0.36906754970550537, -0.140204519033432, -0.17038556933403015, -0.39785346388816833, 0.30457887053489685, -0.021894406527280807, 0.29391223192214966, 0.2943233251571655, -0.37859541177749634, 0.035483039915561676, -0.2247503101825714, 0.3301320970058441, -0.02212897688150406, -0.039541155099868774, 0.15729553997516632, 0.24578748643398285, -0.029369903728365898, 0.13507355749607086, -0.013534135185182095, -0.2445502132177353, -0.021829411387443542, 0.05948494002223015, 0.07438482344150543, 0.06040336936712265, 0.4014751613140106, 0.49845314025878906, -0.15186156332492828, 0.5802790522575378, 0.0605991929769516, 0.4708738327026367, -0.0006339550018310547, 0.220957949757576, -0.10105717927217484, 0.18817727267742157, -0.6759745478630066, -0.6206129789352417, 0.07800973951816559, 0.3929733633995056, -0.3564072251319885, 0.3524706959724426, 0.018212560564279556, -0.07921507954597473, 0.4504798650741577, 0.07719095051288605, 0.9637715220451355, -0.4372294545173645, -0.19984349608421326, -0.06991656124591827, 0.25124526023864746, 0.45949438214302063, -0.1638202667236328, 0.10896255820989609, 0.05962549149990082, -0.35019978880882263, 0.031678639352321625, -0.15637968480587006, 0.02006036601960659, 0.12833422422409058, 0.058913059532642365, 0.35977667570114136, -0.10357968509197235, 0.031733352690935135, 0.026193849742412567, 0.3191744089126587, 0.2932697832584381, -0.37820175290107727, -0.2034851312637329, -0.058616455644369125, 0.10965821892023087, -0.061376895755529404, 0.014825735241174698, 0.027500580996274948, 0.25581061840057373, -0.21309708058834076, -0.20444230735301971, -0.47727513313293457, -0.3638923764228821, -0.04886719956994057, -0.1867702156305313, -0.14381246268749237, 0.21862956881523132, -0.15262630581855774, -0.16496741771697998, 0.48021525144577026, 0.03897952288389206, 0.20178675651550293, 0.2481413334608078, 0.21521919965744019, -0.05344042927026749, -0.4122677743434906, 0.19807560741901398, -0.15808361768722534, -0.19725553691387177, 0.03468264639377594, -0.02307046577334404, -0.4387698769569397, -0.07077257335186005, 0.13002002239227295, 0.502098560333252, -0.013239573687314987, -0.23614639043807983, 0.016324641183018684, 0.014312498271465302, -0.16384415328502655, -0.03827040642499924, 0.1546011120080948, 0.06255240738391876, 0.7133429646492004, -0.05075259879231453, -0.25935235619544983, -0.13698020577430725, 0.10915553569793701, 0.28424137830734253, -0.2961222529411316, 0.29123708605766296, 0.2562030553817749, -0.40521323680877686, -0.09585502743721008, 0.0017618164420127869, 0.15058255195617676, 0.34486570954322815, 0.07075529545545578, 0.013375665992498398, -0.2865007817745209, 0.46179473400115967, 0.04407069459557533, -0.12935008108615875, 0.010184827260673046, 0.03205595910549164, -0.6088473200798035, -0.2342831939458847, 0.026758350431919098, -0.1145530417561531, -0.22400610148906708, 0.08854851126670837, 0.24160881340503693, -0.2406720519065857, 0.4181762933731079, -0.15261654555797577, -0.11680027842521667, -0.08881951123476028, 0.20306625962257385, -0.1577792763710022, 0.18535740673542023, -0.10404931008815765, 0.07843682169914246, -0.018810192123055458, 0.09550559520721436, 0.015267502516508102, -0.11423136293888092, 0.12856028974056244, 0.1938321888446808, -0.15487587451934814, -0.26065224409103394, 0.30265337228775024, -0.29945290088653564, -0.2519574761390686, -0.16185246407985687, 0.10723023116588593, -0.010806486010551453, 0.04211824759840965, -0.666425883769989, 0.07690258324146271, -0.4722609519958496, -0.12893040478229523, 0.10475514829158783, -0.12171570956707001, -0.29347652196884155, 0.07197219133377075, 0.1984250843524933, 0.1454174518585205, -0.038679659366607666, 0.024517208337783813, -0.04943542927503586, 0.14815939962863922, -0.09426440298557281, 0.24289676547050476, 0.04605226218700409, -0.07411007583141327, 0.22216345369815826, 0.12829171121120453, 0.17908704280853271, 0.0510467067360878, -0.13734912872314453, 0.4848509132862091, -0.0722208246588707, -0.26333117485046387, -0.16311103105545044, 0.18881678581237793, 0.1910991668701172, 0.14438867568969727, 0.19004563987255096, -0.22810839116573334, 0.3556233048439026, -0.207702174782753, 0.10156241059303284, 0.4256303012371063, -0.04395357519388199, -0.2359371781349182, 0.30744361877441406, 0.4016706049442291, -0.22104588150978088, 0.43855464458465576, 0.3583773970603943, -0.21036255359649658, 0.5694773197174072, 0.18778397142887115, 0.33173567056655884, 0.3427179455757141, 0.5315775871276855, -0.27162685990333557, -0.40871942043304443, -0.11573232710361481, 0.7702451348304749, -0.2143789380788803, -0.20233522355556488, 0.02345314249396324, -0.17921018600463867, 0.3402481973171234, -0.3415473997592926, 0.11711834371089935, 0.4425210654735565, 0.15986013412475586, -0.04638727009296417, -0.35912197828292847, 0.013180345296859741, 0.22818021476268768, -0.03510187566280365, -0.007809353061020374, -0.0023968052119016647, 0.18590472638607025, 0.17835107445716858, 0.29478806257247925, -0.30256134271621704, -0.2355213463306427, -0.14437736570835114, 0.19003507494926453, -0.05767093971371651, 0.15481862425804138, -0.26527127623558044, 0.25698018074035645, 0.3399113714694977, -0.3875880837440491, 0.2172873616218567, 0.4052242934703827, -0.042587265372276306, 0.10670426487922668, -0.3631226122379303, -0.14195796847343445, 0.03621383756399155, 0.4347558617591858, 0.19957894086837769, 0.20689061284065247, -0.033802762627601624, -0.078282430768013, -0.07121437788009644, -0.08118009567260742, 0.22535204887390137, 0.06579716503620148, 0.1657557487487793, 0.26832693815231323, 0.2842905521392822, 0.0591481477022171, -0.12832394242286682, 0.05114360153675079, -0.17057585716247559, 0.3852055072784424, 0.1834772527217865, -0.25592121481895447, 0.24722397327423096, 0.24674710631370544, 0.007688950747251511, -0.24888749420642853, 0.015452858060598373, -0.08182947337627411, 0.4400746524333954, -0.3028722405433655, -0.30425307154655457, -0.3508237600326538, -0.33830732107162476, -0.3466266989707947, -0.03246947005391121, 0.09991271793842316, -0.0025627613067626953, 0.21688896417617798, 0.028122369199991226, 0.008896596729755402, 0.10925063490867615, -0.24607163667678833, 0.050751470029354095, -0.13834936916828156, 0.37145647406578064, -0.017539501190185547, 0.3514021635055542, -0.08003700524568558, -0.3021312952041626, 0.47440266609191895, -0.25457942485809326, -0.04775558039546013, 0.053817346692085266, 0.08246883749961853, 0.13599035143852234, 0.037164390087127686, -0.11615461856126785, 0.04228869825601578, 0.4236674904823303, 0.12898072600364685, 0.5541149973869324, 0.029975248500704765, 0.16747629642486572, -0.2347869873046875, 0.17208218574523926, 0.3191392421722412, 0.1437343955039978, -0.04285484179854393, 0.09125100076198578, 0.07905875891447067, 0.2254433035850525, -0.13398993015289307, -0.28027474880218506, -0.10511019080877304, 0.08574502915143967, 0.1373005509376526, 0.30073198676109314, -0.25849202275276184, 0.1511920988559723, -0.0368402935564518, 0.0501788854598999, -0.24065329134464264, -0.12170539051294327, 0.5517163276672363, -0.519654393196106, -0.2707269787788391, -0.3539083003997803, 0.2505496144294739, 0.2827964723110199, 0.20325961709022522, 0.11905637383460999, -0.051122263073921204, 0.11351737380027771, -0.12751099467277527, -0.29638856649398804, 0.316010057926178, 0.010483428835868835, -0.024408161640167236, -0.2060348093509674, -0.26542195677757263, 0.08935821801424026, -0.13348916172981262, -0.32160434126853943, -0.15052682161331177 ]
https://github.com/huggingface/datasets/issues/1796
I just played a bit with it to make sure using `table.filter()` is fine, but actually it seems to create a new table **in memory** :/ This is an issue since it can quickly fill the RAM, and `datasets`'s role is to make sure you can load bigger-than-memory datasets. Therefore I don't think it's a good idea in the end to use `table.filter()` Anyway I just ran OP's code an it runs in 20ms now on my side thanks to the I/O optimizations we did. Another way to speed up `filter` is to add support pyarrow expressions though, using e.g. arrow formatting + dataset.filter (runs in 10ms on my side): ```python import pyarrow.dataset as pds import pyarrow.compute as pc expr = pc.field("flag") == True filtered = dataset.with_format("arrow").filter( lambda t: pds.dataset(t).to_table(columns={"mask": expr})[0].to_numpy(), batched=True, ).with_format(None) ```
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']) ```
134
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']) ``` I just played a bit with it to make sure using `table.filter()` is fine, but actually it seems to create a new table **in memory** :/ This is an issue since it can quickly fill the RAM, and `datasets`'s role is to make sure you can load bigger-than-memory datasets. Therefore I don't think it's a good idea in the end to use `table.filter()` Anyway I just ran OP's code an it runs in 20ms now on my side thanks to the I/O optimizations we did. Another way to speed up `filter` is to add support pyarrow expressions though, using e.g. arrow formatting + dataset.filter (runs in 10ms on my side): ```python import pyarrow.dataset as pds import pyarrow.compute as pc expr = pc.field("flag") == True filtered = dataset.with_format("arrow").filter( lambda t: pds.dataset(t).to_table(columns={"mask": expr})[0].to_numpy(), batched=True, ).with_format(None) ```
[ -0.26736944913864136, -0.1310533881187439, -0.09514777362346649, -0.22678987681865692, -0.08441470563411713, -0.2332700490951538, 0.20191867649555206, 0.2510642409324646, 0.21100370585918427, -0.16824951767921448, -0.047437313944101334, 0.2349599301815033, -0.0497024767100811, 0.3456452488899231, -0.21735826134681702, 0.16322588920593262, 0.09360617399215698, 0.2196902632713318, 0.42008689045906067, 0.084211565554142, -0.08659433573484421, -0.1647765189409256, -0.3132604658603668, 0.015203988179564476, -0.12129756808280945, -0.2894571125507355, 0.2368074357509613, -0.21521638333797455, -0.30183959007263184, -0.22839424014091492, -0.0763423964381218, 0.44351038336753845, 0.03405069559812546, 0.46199288964271545, -0.00012505035556387156, -0.31415706872940063, 0.2272423654794693, 0.1225665882229805, 0.11938551068305969, 0.1426485776901245, -0.08110689371824265, -0.009929079562425613, -0.033507339656353, -0.067059226334095, -0.13088038563728333, -0.015256403014063835, -0.28524088859558105, -0.18546776473522186, 0.3500358760356903, 0.10380946844816208, 0.003985274583101273, -0.14524319767951965, -0.343364417552948, 0.3993743658065796, 0.22762572765350342, 0.31740811467170715, 0.1493546962738037, -0.15656916797161102, 0.6654057502746582, -0.45061081647872925, -0.0340435765683651, 0.42752930521965027, -0.5438636541366577, -0.14410026371479034, 0.166997492313385, -0.23927763104438782, 0.09190304577350616, -0.2114696055650711, 0.2191116213798523, 0.12024816870689392, 0.08428356051445007, -0.18822520971298218, -0.22394780814647675, -0.29235780239105225, -0.08132380992174149, -0.4169169068336487, 0.028572242707014084, 0.02015216276049614, -0.3720859885215759, 0.01020380575209856, -0.5675947070121765, -0.18655118346214294, 0.10539451241493225, 0.17052994668483734, -0.40052559971809387, 0.325717955827713, 0.0988440215587616, 0.19008450210094452, 0.22111041843891144, -0.1979566216468811, 0.0536956861615181, -0.3202626705169678, 0.2858797311782837, 0.34264490008354187, -0.6249746084213257, -0.11255022138357162, -0.09011774510145187, 0.2304399311542511, 0.04743233323097229, 0.03081890195608139, -0.2981932759284973, 0.44936639070510864, 0.27666234970092773, -0.020000416785478592, -0.002579340711236, 0.223740816116333, 0.012014219537377357, 0.47928282618522644, 0.30642592906951904, -0.1916494071483612, -0.23058456182479858, 0.25529998540878296, -0.020541034638881683, 0.06296481192111969, 0.14414910972118378, -0.1324029415845871, -0.44878774881362915, -0.11318691074848175, -0.2842622995376587, -0.1011892631649971, -0.41376808285713196, -0.0829925686120987, 0.6460819840431213, 0.48152750730514526, -0.10557596385478973, -0.1398547887802124, -0.08919365704059601, -0.24562081694602966, -0.1833902895450592, 0.026283401995897293, 0.009533800184726715, -0.10273027420043945, -0.08292457461357117, 0.25027522444725037, 0.14457090198993683, -0.2616698741912842, -0.22495722770690918, 0.0469498373568058, -0.1859518587589264, 0.2263791710138321, 0.15790018439292908, -0.3818838596343994, 0.16235733032226562, 0.3298962712287903, -0.2944331467151642, 0.251974880695343, 0.12974929809570312, 0.034305326640605927, -0.14925430715084076, 0.223130002617836, -0.2992091178894043, -0.33566439151763916, 0.24892006814479828, 0.032281726598739624, -0.1967204064130783, 0.14479513466358185, -0.13843099772930145, 0.3888198733329773, 0.3223250210285187, -0.14290863275527954, -0.2137422412633896, -0.22605307400226593, -0.5855768322944641, -0.2159874141216278, 0.26707327365875244, 0.10033763945102692, -0.562173068523407, 0.03037748485803604, -0.2514851689338684, 0.2102356106042862, 0.548111617565155, 0.41520851850509644, -0.08898434787988663, 0.3005640506744385, -0.03299464285373688, 0.07629118859767914, 0.1908547580242157, -0.06016569584608078, -0.4215407967567444, 0.6062893867492676, -0.01412200927734375, 0.09761320799589157, 0.1390843689441681, 0.11128966510295868, 0.5630816221237183, -0.2397966980934143, 0.5061317086219788, 0.39067360758781433, -0.24499449133872986, 0.15718583762645721, -0.06052939221262932, -0.10485110431909561, 0.250667005777359, 0.2683056890964508, -0.2845788896083832, -0.08477389812469482, -0.05279723182320595, -0.3610103726387024, 0.20657062530517578, 0.03872178494930267, 0.03325092792510986, 0.11562779545783997, 0.2657339572906494, 0.06441479921340942, 0.02731730416417122, -0.22133797407150269, 0.04749966412782669, 0.0029994845390319824, -0.0190315842628479, -0.11512580513954163, -0.2548445761203766, -0.21147562563419342, -0.1949065774679184, 0.012114167213439941, 0.021025441586971283, 0.23688571155071259, -0.07085974514484406, -0.2444201111793518, 0.14075735211372375, -0.20232167840003967, 0.050269052386283875, 0.4569084048271179, -0.10070725530385971, -0.0547335147857666, 0.1879713386297226, 0.03787378966808319, 0.33826202154159546, -0.1435876190662384, 0.12374641001224518, 0.00252637080848217, 0.2958100736141205, 0.09299756586551666, 0.08149158954620361, 0.17070545256137848, 0.5021111369132996, -0.3107854127883911, -0.3596518933773041, 0.18306377530097961, 0.14986038208007812, 0.3493468463420868, 0.15449979901313782, -0.04519170522689819, 0.1623658537864685, -0.12526696920394897, -0.1836751401424408, 0.4941032826900482, -0.06682766228914261, 0.4406777620315552, 0.09598126262426376, -0.0970265120267868, 0.2834031581878662, 0.20933830738067627, -0.04159186780452728, -0.13458895683288574, 0.4462979733943939, 0.05292635038495064, 0.13065166771411896, 0.30236509442329407, -0.05229600518941879, 0.2988060414791107, -0.046927113085985184, -0.3408149778842926, -0.06801117211580276, 0.2716044485569, 0.1734684705734253, 0.03394492715597153, 0.19486390054225922, -0.0707160234451294, 0.1078009083867073, 0.2617996633052826, -0.18545016646385193, -0.1378103792667389, -0.02786041423678398, -0.03784462437033653, 0.29440873861312866, 0.16020826995372772, 0.2665880024433136, -0.2635217607021332, 0.27058449387550354, -0.13174480199813843, -0.1415354609489441, -0.27813753485679626, 0.2528949975967407, 0.35144248604774475, -0.3131691813468933, 0.06795507669448853, -0.3622577488422394, -0.564992368221283, 0.2895592153072357, -0.09327596426010132, 0.14728690683841705, 0.023045048117637634, 0.21199099719524384, 0.08653993904590607, 0.22858399152755737, 0.14701153337955475, 0.1343153417110443, 0.18524295091629028, 0.17321772873401642, -0.581524670124054, -0.1599767953157425, -0.2512102425098419, -0.10263146460056305, -0.02508663199841976, 0.29437583684921265, 0.3152296543121338, 0.3613811731338501, 0.3105262517929077, -0.09953766316175461, -0.14932659268379211, -0.5072212219238281, -0.15547725558280945, -0.09807931631803513, 0.1575525999069214, 0.1441715508699417, 0.14188966155052185, -0.3449419140815735, -0.11238793283700943, 0.02550802379846573, -0.008683256804943085, -0.21712973713874817, 0.12154980003833771, -0.21038101613521576, 0.061579629778862, 0.11830484867095947, 0.12470050156116486, -0.1992933601140976, -0.05238058418035507, -0.18230147659778595, -0.15325546264648438, 0.26590025424957275, -0.22505182027816772, -0.03589797765016556, -0.2063426971435547, -0.31086188554763794, -0.06868143379688263, 0.014717333018779755, -0.07845552265644073, 0.25502634048461914, 0.33190086483955383, -0.032992757856845856, -0.16712632775306702, -0.11456020176410675, -0.34805700182914734, 0.5932295918464661, -0.27849119901657104, 0.15279540419578552, -0.4129263162612915, -0.12897968292236328, 0.16908276081085205, -0.008200614713132381, 0.2884531617164612, -0.10442870855331421, 0.13087470829486847, 0.0514041930437088, -0.35306182503700256, -0.2370980679988861, -0.19719436764717102, 0.23730003833770752, 0.26915231347084045, 0.7437126636505127, 0.1231587827205658, 0.3249460458755493, 0.10986632853746414, 0.10538339614868164, 0.02916518971323967, 0.22508256137371063, -0.21023449301719666, -0.17191895842552185, -0.3299449682235718, -0.0805552750825882, 0.12135143578052521, 0.03109685331583023, 0.0741911306977272, 0.1282082349061966, -0.22772517800331116, -0.04887654259800911, -0.1765623688697815, -0.06352268159389496, -0.1615060567855835, 0.11605377495288849, -0.12145024538040161, 0.25617995858192444, 0.2626451253890991, -0.08002608269453049, -0.49499738216400146, -0.41869208216667175, -0.2907717525959015, 0.009372875094413757, 0.11957423388957977, -0.2049635350704193, -0.5215656161308289, -0.17791086435317993, -0.40205201506614685, 0.33566805720329285, 0.252708375453949, 0.24819828569889069, 0.08379963785409927, 0.05505339801311493, 0.14890164136886597, 0.018830999732017517, 0.8904690146446228, -0.13971294462680817, -0.010350914672017097, 0.12662552297115326, -0.5282160043716431, -0.40068960189819336, 0.09567868709564209, -0.0857607051730156, 0.10543306916952133, 0.3216364085674286, 0.3755433261394501, -0.32833772897720337, -0.30318695306777954, -0.05605766177177429, 0.14894478023052216, -0.01631215214729309, -0.38062217831611633, -0.22443020343780518, -0.19964808225631714, -0.38232365250587463, 0.27733781933784485, -0.01726468652486801, 0.30029067397117615, 0.31349432468414307, -0.3258402347564697, 0.06919974833726883, -0.20228946208953857, 0.2909852862358093, 0.027666397392749786, 0.00022176280617713928, 0.1553466022014618, 0.31888219714164734, -0.09404975175857544, 0.1464686393737793, 0.05462397634983063, -0.16912156343460083, -0.02525777742266655, 0.03352741897106171, 0.05091392993927002, 0.12301190942525864, 0.3934246301651001, 0.45900750160217285, -0.13943517208099365, 0.5495843887329102, 0.008720684796571732, 0.41304171085357666, -0.016484497115015984, 0.18030226230621338, -0.13404445350170135, 0.12831810116767883, -0.6327053308486938, -0.583695650100708, 0.13184279203414917, 0.38758140802383423, -0.32102179527282715, 0.42919379472732544, 0.04126701503992081, -0.06862828135490417, 0.44259145855903625, 0.07788689434528351, 0.8860130906105042, -0.4550672173500061, -0.13187885284423828, 0.013579696416854858, 0.19654321670532227, 0.41680073738098145, -0.18760082125663757, 0.13624611496925354, 0.04549919813871384, -0.34581658244132996, 0.08438945561647415, -0.1530352234840393, 0.0003317343071103096, 0.10984191298484802, 0.04159581661224365, 0.2904898226261139, -0.05347965657711029, 0.09652391821146011, 0.11547570675611496, 0.3170221447944641, 0.24303536117076874, -0.3615168035030365, -0.20591002702713013, -0.025784948840737343, 0.0838562548160553, -0.1475614309310913, 0.028420012444257736, 0.09686756134033203, 0.17811498045921326, -0.19723448157310486, -0.22472050786018372, -0.4527208209037781, -0.3812779188156128, 0.01704341545701027, -0.19468611478805542, -0.12824870645999908, 0.14582127332687378, -0.10897500813007355, -0.2975468933582306, 0.39444875717163086, 0.05983702838420868, 0.18788576126098633, 0.2313760370016098, 0.28529247641563416, 0.012432072311639786, -0.43406644463539124, 0.18807342648506165, -0.14253674447536469, -0.25317835807800293, 0.052609652280807495, -0.028800463303923607, -0.4741482138633728, -0.058542922139167786, 0.16392782330513, 0.4915921688079834, -0.013956580311059952, -0.1755019724369049, -0.06426180899143219, 0.04698457568883896, -0.18435850739479065, -0.0032822908833622932, 0.09662571549415588, 0.089764803647995, 0.7228677272796631, -0.06938145309686661, -0.2967395782470703, -0.15498679876327515, 0.14968177676200867, 0.24273228645324707, -0.16606846451759338, 0.2919023036956787, 0.248711496591568, -0.445311039686203, -0.07857047021389008, 0.010097891092300415, 0.2187446653842926, 0.29930633306503296, 0.0941714495420456, -0.05255205184221268, -0.225173220038414, 0.43312013149261475, 0.03279541805386543, -0.09725511074066162, -0.028846681118011475, 0.023076720535755157, -0.5408033132553101, -0.19522394239902496, 0.11671148240566254, -0.04944468289613724, -0.20017997920513153, 0.13380534946918488, 0.24999192357063293, -0.1986633837223053, 0.38815999031066895, -0.18706458806991577, -0.12370681017637253, -0.047788966447114944, 0.1967298835515976, -0.29231172800064087, 0.2100411057472229, -0.06466344743967056, 0.024249348789453506, 0.02122737467288971, 0.10611757636070251, 0.0393197163939476, -0.17120346426963806, 0.1604108363389969, 0.1817561686038971, -0.15519866347312927, -0.2704916000366211, 0.24709919095039368, -0.315064013004303, -0.23273257911205292, -0.19181759655475616, 0.14783720672130585, 0.03518032282590866, 0.014971939846873283, -0.645642101764679, 0.15435193479061127, -0.49097204208374023, -0.0950138121843338, 0.11198163032531738, -0.19342264533042908, -0.29488566517829895, 0.09055829048156738, 0.20373335480690002, 0.1629137396812439, -0.002134956419467926, 0.0708717629313469, -0.02231306955218315, 0.09218323975801468, -0.1305047869682312, 0.25998061895370483, 0.00182343740016222, -0.09004698693752289, 0.1795244812965393, 0.15065668523311615, 0.2724939286708832, 0.06777480244636536, -0.20030532777309418, 0.468244731426239, -0.0368012934923172, -0.2704916298389435, -0.20074965059757233, 0.2049722969532013, 0.14940062165260315, 0.16186851263046265, 0.173103928565979, -0.23538580536842346, 0.35766157507896423, -0.2049211859703064, 0.10378313064575195, 0.4602571725845337, -0.0029227882623672485, -0.2856369614601135, 0.3224039077758789, 0.40882837772369385, -0.18394632637500763, 0.43367552757263184, 0.367404580116272, -0.18421533703804016, 0.5177453756332397, 0.18657183647155762, 0.28834855556488037, 0.26137611269950867, 0.5402336120605469, -0.252544105052948, -0.38436639308929443, -0.1280897855758667, 0.6998940706253052, -0.2730655372142792, -0.25916627049446106, 0.010639756917953491, -0.18518881499767303, 0.3854627311229706, -0.3282250165939331, 0.10389281809329987, 0.34173765778541565, 0.13211530447006226, -0.013749215751886368, -0.3676312565803528, -0.011058121919631958, 0.24017122387886047, -0.015469849109649658, -0.056348688900470734, -0.09357797354459763, 0.18556177616119385, 0.09849444776773453, 0.2454851269721985, -0.3115262985229492, -0.13802289962768555, -0.13443325459957123, 0.14165326952934265, -0.064400315284729, 0.07483158260583878, -0.2646501660346985, 0.20362316071987152, 0.31331944465637207, -0.3521784245967865, 0.24817976355552673, 0.43393081426620483, -0.06129610538482666, 0.10441681742668152, -0.3679431080818176, -0.1493864804506302, -0.015971533954143524, 0.4172424077987671, 0.196446031332016, 0.22471767663955688, -0.0022215992212295532, -0.024623163044452667, -0.08875023573637009, -0.17054668068885803, 0.278999924659729, 0.07228381931781769, 0.1108570545911789, 0.26653051376342773, 0.26301223039627075, 0.017962917685508728, -0.032668694853782654, 0.04155014455318451, -0.14806659519672394, 0.39468449354171753, 0.2753385305404663, -0.25420960783958435, 0.21108616888523102, 0.2611851096153259, 0.027555953711271286, -0.20641237497329712, 0.04989664629101753, -0.004098341800272465, 0.42918673157691956, -0.3305600881576538, -0.24945276975631714, -0.39230674505233765, -0.3255460858345032, -0.44040361046791077, -0.03855753690004349, 0.20309901237487793, 0.050181709229946136, 0.21156945824623108, 0.11462314426898956, -0.00774037092924118, 0.11309368908405304, -0.2720257341861725, 0.027578268200159073, -0.13319328427314758, 0.28332778811454773, -0.044020816683769226, 0.319027841091156, -0.12682592868804932, -0.34915947914123535, 0.4632301330566406, -0.2388918101787567, -0.007984131574630737, -0.0032422486692667007, 0.06629672646522522, 0.23143470287322998, 0.10558397322893143, -0.0667947381734848, 0.025653069838881493, 0.4121968150138855, 0.16265305876731873, 0.5851615071296692, 0.025378134101629257, 0.17697671055793762, -0.24608036875724792, 0.1993808001279831, 0.2309022843837738, 0.06367483735084534, -0.05044758319854736, 0.01412791758775711, 0.053818508982658386, 0.25676804780960083, -0.12455064058303833, -0.19787423312664032, -0.09122184664011002, 0.032612018287181854, 0.19630774855613708, 0.2910401225090027, -0.3147174119949341, 0.09966905415058136, -0.06756903231143951, 0.11514664441347122, -0.2713523805141449, -0.12486571073532104, 0.5381883382797241, -0.6000986099243164, -0.26240164041519165, -0.2992071211338043, 0.21364055573940277, 0.2627859115600586, 0.19287696480751038, 0.10375760495662689, -0.09585800766944885, 0.18135371804237366, -0.15332376956939697, -0.320298969745636, 0.3032274842262268, -0.017008915543556213, 0.027807071805000305, -0.24287940561771393, -0.24328312277793884, 0.01696043834090233, -0.17462827265262604, -0.3283507227897644, -0.1989005208015442 ]
https://github.com/huggingface/datasets/issues/1790
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.
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?
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.1911676526069641, 0.00179387629032135, -0.004188746213912964, 0.18698346614837646, 0.27138203382492065, 0.13962078094482422, 0.42134737968444824, 0.3950366675853729, 0.22948044538497925, 0.178105890750885, 0.10769874602556229, -0.09141640365123749, 0.05334928631782532, -0.10924604535102844, 0.10173583030700684, -0.46035507321357727, 0.31238964200019836, 0.07550088316202164, -0.10318269580602646, -0.18625853955745697, -0.34736931324005127, 0.08449652045965195, -0.339460164308548, 0.20371711254119873, -0.22645100951194763, 0.1729816198348999, -0.12238016724586487, 0.07952436804771423, 0.07966948300600052, -0.3102598488330841, 0.06957715004682541, -0.2526938319206238, -0.0015346258878707886, 0.37892404198646545, -0.00011232009273953736, 0.17259344458580017, 0.49421241879463196, -0.18687507510185242, -0.352847695350647, -0.20018932223320007, -0.044073428958654404, -0.526899516582489, 0.02704489976167679, -0.4995655417442322, -0.11857332289218903, -0.320057213306427, 0.12484198808670044, -0.3306964635848999, 0.6608902215957642, 0.20979949831962585, 0.18214550614356995, 0.3544291853904724, 0.047920987010002136, -0.08674626052379608, 0.42749470472335815, 0.0936121791601181, -0.14903438091278076, -0.04196440428495407, -0.08310741931200027, 0.011951841413974762, -0.09416748583316803, 0.5700825452804565, -0.32363012433052063, -0.039385128766298294, 0.2292386293411255, -0.2227155864238739, 0.05665803328156471, -0.6094753742218018, 0.17761655151844025, 0.3224824070930481, 0.7865331172943115, -0.13517683744430542, -0.2221817970275879, -0.15308143198490143, -0.10984307527542114, 0.23514333367347717, 0.1595034897327423, 0.10914946347475052, -0.21486175060272217, 0.04631722345948219, 0.43810826539993286, -0.270696759223938, -0.1476811170578003, 0.07335235178470612, 0.13023921847343445, 0.43159765005111694, 0.07065260410308838, 0.31762781739234924, -0.054534148424863815, -0.08605657517910004, -0.1191403865814209, -0.3226897120475769, 0.2525666356086731, 0.38740968704223633, -0.11371082812547684, 0.0848221555352211, 0.10179334878921509, 0.1508980691432953, -0.03670122101902962, -0.2810485064983368, -0.19214220345020294, 0.11588098108768463, 0.10534115135669708, 0.10820621252059937, 0.12434356659650803, 0.12745732069015503, 0.3880294859409332, -0.02576291188597679, 0.33484047651290894, -0.21627123653888702, 0.10981513559818268, 0.04427044466137886, 0.029977746307849884, -0.2803066670894623, -0.3338727355003357, 0.22260119020938873, 0.3565323054790497, -0.09053720533847809, -0.05768350511789322, 0.0482545867562294, -0.45678484439849854, -0.3259342312812805, -0.22219133377075195, 0.3378889858722687, 0.13258618116378784, 0.4152708053588867, 0.13528650999069214, 0.23456475138664246, -0.2575588524341583, -0.45465245842933655, -0.032301537692546844, 0.34243547916412354, -0.4076468348503113, 0.19766409695148468, -0.04613275080919266, 0.014477662742137909, 0.21953704953193665, -0.15526323020458221, 0.1326276957988739, 0.18207885324954987, -0.0900048166513443, -0.08568301796913147, -0.04574581980705261, 0.45031505823135376, 0.06573361158370972, 0.4466487765312195, 0.2975471019744873, -0.12725046277046204, -0.2159794121980667, 0.2281532883644104, -0.27198755741119385, -0.27659887075424194, 0.18184272944927216, 0.059442177414894104, -0.3565080165863037, 0.20808491110801697, -0.010424304753541946, -0.07406717538833618, 0.048091575503349304, -0.08542288094758987, 0.20885780453681946, 0.0514473095536232, -0.027733556926250458, -0.289887011051178, -0.021410781890153885, 0.7498968243598938, -0.22692468762397766, -0.06385697424411774, -0.00972210243344307, -0.14365795254707336, -0.1310085654258728, -0.004001525230705738, -0.155661940574646, 0.28321343660354614, -0.23140276968479156, -0.021537944674491882, 0.5308305025100708, -0.5257619619369507, 0.05843610316514969, 0.19441631436347961, -0.09820329397916794, 0.21029314398765564, 0.26120537519454956, 0.002672947943210602, -0.4192948043346405, -0.21953654289245605, -0.2881304919719696, 0.050639715045690536, 0.10255032032728195, -0.024671856313943863, -0.2568201422691345, -0.008170746266841888, 0.11579747498035431, 0.15370270609855652, 0.19382649660110474, 0.07872587442398071, 0.13286511600017548, 0.48238861560821533, 0.24451589584350586, -0.19905953109264374, 0.2263820469379425, 0.4565430283546448, -0.005168607458472252, 0.10912537574768066, 0.22361361980438232, 0.06444865465164185, -0.06298328191041946, 0.2775993347167969, -0.08557908236980438, 0.40199822187423706, -0.09050660580396652, -0.10033191740512848, -0.14799287915229797, -0.08852410316467285, -0.28332003951072693, -0.30085504055023193, 0.07806908339262009, 0.035299550741910934, -0.07239391654729843, 0.33164137601852417, -0.2848317623138428, 0.4456303119659424, -0.12197214365005493, 0.050128720700740814, -0.5256509184837341, -0.027859874069690704, -0.2387654185295105, 0.14583787322044373, -0.03390074521303177, 0.07095456123352051, 0.22331731021404266, -0.19082912802696228, -0.04557252675294876, 0.14840877056121826, 0.1055573970079422, 0.11092332005500793, -0.074463851749897, -0.06246954947710037, 0.14498406648635864, -0.3980556130409241, 0.3778228759765625, 0.1355360597372055, 0.12641112506389618, -0.03470703214406967, 0.11387714743614197, 0.26366159319877625, 0.15056133270263672, 0.521603524684906, 0.0231504887342453, -0.010032087564468384, 0.04953772574663162, 0.035611867904663086, -0.34389612078666687, -0.1951042115688324, 0.20035436749458313, 0.23688314855098724, 0.29996997117996216, 0.04730070382356644, 0.11744529753923416, -0.362756609916687, 0.5069276690483093, -0.054300710558891296, 0.17574666440486908, -0.024269968271255493, -0.3246913552284241, 0.1475040316581726, 0.17114822566509247, -0.21947894990444183, 0.2410338819026947, 0.19127243757247925, -0.12601351737976074, 0.08837948739528656, 0.2026081085205078, -0.12479622662067413, 0.07009609788656235, 0.22439442574977875, 0.48521968722343445, -0.035469215363264084, -0.23863652348518372, 0.04840056970715523, -0.17712289094924927, -0.0702497586607933, -0.22585520148277283, -0.03290477395057678, -0.24750728905200958, 0.16039593517780304, -0.19560417532920837, -0.6308538913726807, -0.3146679401397705, 0.0494067519903183, -0.5606023073196411, -0.2840162217617035, -0.056385815143585205, -0.20353153347969055, -0.27679091691970825, 0.22808821499347687, 0.11788451671600342, -0.049403250217437744, 0.03039643168449402, -0.43052059412002563, -0.32630789279937744, -0.3265708386898041, -0.30222249031066895, 0.011531535536050797, 0.2494441121816635, 0.08081510663032532, 0.1863832324743271, -0.40004411339759827, 0.018786244094371796, -0.2099524736404419, -0.2723642587661743, 0.2021513283252716, -0.17233535647392273, -0.0010475758463144302, -0.01528683677315712, 0.5179563164710999, -0.056417256593704224, -0.047600582242012024, 0.4222886562347412, -0.13991674780845642, -0.19399547576904297, 0.12103023380041122, 0.14196214079856873, 0.08176286518573761, 0.04713431000709534, -0.504928469657898, -0.11541923880577087, -0.4123276472091675, -0.08730896562337875, 0.08327394723892212, 0.12980061769485474, 0.2418060302734375, 0.1741640865802765, 0.2212672233581543, 0.044037673622369766, 0.01946287974715233, 0.0029389411211013794, -0.007901124656200409, 0.2857336103916168, -0.13340240716934204, -0.35046517848968506, 0.30518943071365356, -0.1546027660369873, 0.1144622340798378, 0.11895260214805603, -0.20393267273902893, -0.14644543826580048, 0.2433491200208664, 0.07755076885223389, -0.05395008623600006, 0.3316076695919037, 0.42056453227996826, -0.13183894753456116, 0.0001819990575313568, -0.11900860071182251, -0.05432194471359253, -0.13995060324668884, -0.1769159585237503, 0.32577449083328247, 0.2829318940639496, 0.31710487604141235, -0.018583782017230988, 0.853545606136322, -0.027524467557668686, 0.46959275007247925, 0.46428048610687256, 0.1470198929309845, 0.3714671730995178, -0.411205530166626, -0.11726991087198257, -0.09161011874675751, 0.06451164186000824, -0.1340084820985794, 0.16204118728637695, -0.07902074605226517, 0.05743724852800369, -0.6090328097343445, -0.39494991302490234, -0.34043946862220764, -0.22196663916110992, 0.15752896666526794, -0.17006245255470276, 0.23052160441875458, 0.02650974690914154, 0.04172103852033615, 0.12402323633432388, 0.10183186829090118, 0.2508082389831543, 0.3875485956668854, 0.17453141510486603, 0.08806779980659485, -0.08497132360935211, -0.08758294582366943, -0.28831446170806885, 0.38719287514686584, -0.008418653160333633, 0.1123480275273323, -0.06527864933013916, -0.310508668422699, 0.08899839222431183, 0.07300671935081482, 0.4744763970375061, -0.23698201775550842, -0.21405628323554993, 0.24448280036449432, -0.00335761159658432, -0.654533326625824, -0.051857780665159225, 0.05347561836242676, 0.03396496921777725, -0.09032734483480453, 0.1465221643447876, -0.21055790781974792, -0.3132273554801941, 0.1991850733757019, 0.4235744774341583, -0.11904710531234741, -0.2092810422182083, -0.5875593423843384, -0.07095584273338318, -0.47871363162994385, -0.09497947245836258, -0.07519494742155075, -0.05425256863236427, 0.0713018923997879, 0.3650440573692322, 0.1260063350200653, -0.05561182647943497, 0.040762707591056824, -0.028509333729743958, 0.07015839219093323, -0.19877681136131287, -0.3843258023262024, 0.16298356652259827, 0.2838362455368042, -0.1293621063232422, 0.31293463706970215, -0.05458338186144829, -0.41716495156288147, -0.20309555530548096, -0.06462207436561584, 0.1295166164636612, 0.4219565987586975, 0.007473617792129517, -0.10248443484306335, 0.009375248104333878, -0.2213629186153412, 0.0771467536687851, -0.04078252986073494, 0.13671454787254333, -0.02554376609623432, -0.4656980037689209, -0.42600512504577637, 0.7275454998016357, 0.05730162560939789, -0.11025223135948181, 0.2195151001214981, 0.3865067660808563, -0.0961199700832367, 0.4131186008453369, 0.12050516903400421, 1.0968141555786133, -0.040365785360336304, 0.2054997682571411, 0.1531868875026703, 0.11459441483020782, 0.7433243989944458, -0.6203222870826721, 0.11986128985881805, -0.1833266168832779, 0.15763220191001892, -0.13223129510879517, -0.010387741029262543, 0.6084542274475098, 0.07410436123609543, 0.039093948900699615, 0.5708761811256409, 0.16390036046504974, 0.28757283091545105, -0.02958802506327629, 0.1656961590051651, -0.26345178484916687, -0.06261129677295685, -0.41146692633628845, 0.03604363650083542, -0.10833273828029633, 0.7435287833213806, -0.1365131437778473, -0.17558830976486206, -0.3005134165287018, -0.4897765517234802, -0.09957779943943024, -0.011536996811628342, -0.23933906853199005, 0.11999692022800446, -0.2641693949699402, -0.32012417912483215, -0.0009491294622421265, 0.3039798140525818, 0.3844963014125824, -0.0567823126912117, -0.23185408115386963, 0.12346726655960083, -0.1061982661485672, -0.08800490200519562, -0.2654600441455841, -0.04032517969608307, 0.44115081429481506, -0.1480443775653839, -0.16794297099113464, 0.17145250737667084, -0.4244391918182373, -0.08795701712369919, -0.10845083743333817, 0.13575837016105652, 0.5168761610984802, 0.2983569800853729, -0.18300029635429382, 0.2779880464076996, 0.027804389595985413, 0.07895012199878693, 0.1227024495601654, -0.19282956421375275, -0.06975716352462769, -0.15839970111846924, -0.2607502341270447, -0.1299845427274704, -0.07657720148563385, 0.23895825445652008, 0.20757491886615753, -0.13656146824359894, 0.29658249020576477, 0.004832461476325989, -0.21537822484970093, -0.19358545541763306, 0.2620067298412323, 0.19688069820404053, -0.1408134251832962, -0.24427802860736847, 0.11700846999883652, 0.008076250553131104, -0.2089562714099884, 0.06711898744106293, 0.06791643798351288, -0.10685098171234131, -0.0382126122713089, -0.2769324481487274, -0.23906177282333374, 0.32134878635406494, 0.010833687148988247, -0.2085028439760208, 0.03731226921081543, 0.116756871342659, 0.5416674613952637, -0.08543402701616287, -0.2512434720993042, -0.2362714409828186, 0.13386434316635132, 0.21415264904499054, 0.5877955555915833, 0.3229280710220337, 0.061596691608428955, 0.020740605890750885, 0.03534092381596565, -0.0073239123448729515, -0.30045974254608154, -0.11864404380321503, 0.04049268364906311, 0.20433087646961212, 0.1712898313999176, 0.03793118894100189, 0.21535620093345642, -0.2638363242149353, 0.2779998183250427, -0.1914844661951065, 0.048590533435344696, 0.2978196442127228, -0.1865314394235611, 0.24970892071723938, 0.12989206612110138, 0.3748374283313751, -0.31296443939208984, 0.1826842874288559, -0.24934887886047363, 0.19148650765419006, 0.22971539199352264, -0.031040862202644348, 0.372743159532547, 0.11469095945358276, -0.13606028258800507, -0.1334814876317978, -0.18407075107097626, -0.07476039975881577, -0.001825525425374508, -0.16295400261878967, 0.05076350271701813, -0.04496418312191963, 0.12636545300483704, 0.17983342707157135, -0.24564650654792786, -0.059485241770744324, 0.2569032311439514, 0.13561515510082245, -0.3840172290802002, 0.11471828818321228, 0.4462440609931946, -0.23065373301506042, -0.14445966482162476, 0.3152914047241211, 0.2557353973388672, 0.06965231895446777, 0.28648847341537476, 0.07936322689056396, 0.10909222811460495, -0.0833655446767807, 0.3604849874973297, 0.3540111780166626, 0.1339811384677887, 0.16992831230163574, 0.1193099245429039, -0.039421968162059784, 0.1235608458518982, 0.6183956861495972, -0.3597968518733978, 0.529343843460083, 0.13832907378673553, 0.2234867960214615, -0.20956766605377197, -0.17198723554611206, 0.40431925654411316, 0.3491840958595276, 0.030741523951292038, -0.06372330337762833, -0.00981154665350914, -0.015165023505687714, -0.03834507241845131, -0.0439843013882637, -0.15588468313217163, 0.15264250338077545, -0.02381017431616783, 0.184065043926239, 0.060699284076690674, -0.27567869424819946, -0.08986280858516693, -0.00426357239484787, 0.05837031826376915, -0.3857108950614929, 0.20083726942539215, 0.16577918827533722, -0.08248323202133179, -0.033578697592020035, 0.2867559790611267, -0.061028413474559784, 0.18916267156600952, -0.08924371749162674, -0.15627269446849823, 0.06129499897360802, -0.22889728844165802, 0.07492503523826599, 0.0788591057062149, 0.24769733846187592, 0.2621340751647949, -0.1203019991517067, -0.021571021527051926, -0.013732768595218658, -0.03871648386120796, 0.1328175961971283, 0.10913269221782684, -0.09452254325151443, 0.23170989751815796, 0.22262915968894958, 0.06452921032905579, -0.1721494197845459, -0.04326086863875389, 0.13900958001613617, 0.0033626407384872437, -0.418885201215744, 0.0442829430103302, -0.4233115017414093, -0.14237414300441742, -0.45994463562965393, 0.13260258734226227, -0.4896368980407715, 0.06486333906650543, 0.142006516456604, 0.21484647691249847, -0.13762158155441284, -0.3698982894420624, 0.03685402497649193, -0.15935367345809937, 0.25689369440078735, 0.35790127515792847, 0.11445191502571106, -0.2953970730304718, -0.18135419487953186, -0.6622394919395447, 0.08937080204486847, -0.3208750784397125, 0.1805422604084015, -0.1669026017189026, -0.10492536425590515, 0.2438538372516632, 0.39687126874923706, -0.013599388301372528, 0.07209505885839462, -0.08048330247402191, 0.03215024620294571, -0.3542993664741516, -0.11914975941181183, -0.09470602124929428, 0.12538547813892365, -0.132646381855011, -0.24550427496433258, 0.0859803557395935, 0.022790390998125076, -0.007010117173194885, -0.10176295787096024, -0.31878861784935, 0.49226808547973633, -0.05745812505483627, 0.5561672449111938, 0.03173592686653137, 0.3317185938358307, 0.08109623193740845, -0.15967150032520294, 0.04839254543185234, 0.04617725685238838, -0.21012146770954132, 0.27674463391304016, 0.040324948728084564, 0.2443188726902008, -0.2023215889930725, -0.1389504075050354, -0.3106030225753784, 0.5070671439170837, -0.08943011611700058, 0.08411836624145508, -0.2534947991371155, -0.08174064755439758, -0.02574947476387024, 0.16670949757099152, -0.11382915079593658, 0.031368330121040344, -0.0296892412006855, -0.15304027497768402, -0.5479573011398315, -0.05436042696237564, 0.40104246139526367, -0.6405130624771118, -0.3518930673599243, 0.04249279201030731, 0.271364688873291, -0.006868090480566025, -0.07196614891290665, -0.4508553445339203, 0.05614170432090759, 0.28682422637939453, 0.20988081395626068, 0.09258571267127991, -0.056256335228681564, -0.2399141937494278, -0.1344612091779709, -0.03988258168101311, -0.4349631369113922, -0.12768253684043884, -0.08723184466362, -0.07558001577854156, -0.39433416724205017 ]
https://github.com/huggingface/datasets/issues/1790
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. ```
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?
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.0917947068810463, 0.07459917664527893, 0.01958591490983963, 0.2518458366394043, 0.2570837736129761, 0.0409059002995491, 0.32001692056655884, 0.34807121753692627, 0.16672636568546295, 0.19595259428024292, 0.21741509437561035, 0.04889155179262161, -0.09746188670396805, -0.2695733308792114, 0.09727182984352112, -0.3023030161857605, 0.24641352891921997, 0.04087207093834877, -0.16444170475006104, -0.23304039239883423, -0.3931179940700531, 0.1340927928686142, -0.37059882283210754, 0.03509058803319931, -0.12962280213832855, 0.3397009074687958, -0.07808154076337814, 0.06381538510322571, 0.017325516790151596, -0.2700099050998688, 0.045357368886470795, -0.3246162533760071, 0.12151199579238892, 0.37393176555633545, -0.00011732041457435116, 0.13438089191913605, 0.49237722158432007, -0.26285892724990845, -0.3836725354194641, -0.2569672763347626, -0.1403348445892334, -0.44397658109664917, 0.04482901096343994, -0.4475933909416199, -0.18676090240478516, -0.26974934339523315, 0.053200863301754, -0.3586476445198059, 0.39536237716674805, 0.2671942412853241, 0.16077744960784912, 0.2647908627986908, 0.18990260362625122, -0.041800737380981445, 0.41822347044944763, 0.05589231103658676, -0.2807166576385498, 0.0011080913245677948, -0.0778784230351448, 0.10426133871078491, 0.03288450092077255, 0.3811945915222168, -0.26524919271469116, 0.03518242388963699, 0.21960830688476562, -0.29890695214271545, 0.02757691591978073, -0.5322273969650269, 0.1891089826822281, 0.16665294766426086, 0.7942330837249756, -0.3169865608215332, -0.13599488139152527, 0.013489998877048492, -0.03996698930859566, 0.08342295140028, 0.2887856662273407, 0.1149211972951889, -0.1483091413974762, -0.03958284109830856, 0.44545769691467285, -0.27584367990493774, -0.12137985229492188, 0.31046047806739807, 0.09709040820598602, 0.48009246587753296, 0.028074469417333603, 0.2852405309677124, -0.22206717729568481, -0.16098253428936005, -0.019383668899536133, -0.33052998781204224, 0.22557154297828674, 0.38685357570648193, -0.271161824464798, 0.009111188352108002, 0.030392246320843697, 0.17015308141708374, 0.00209837406873703, -0.20760643482208252, -0.2619355618953705, 0.10038135200738907, 0.16923955082893372, -0.012388572096824646, 0.08905297517776489, 0.15290004014968872, 0.3734169006347656, 0.11216697096824646, 0.2206745147705078, -0.17101119458675385, 0.0056285560131073, 0.034012552350759506, -0.05216742679476738, -0.34925252199172974, -0.3236456513404846, 0.18789446353912354, 0.3179505467414856, -0.16212905943393707, -0.0892108678817749, 0.06426440924406052, -0.6158862113952637, -0.287656307220459, -0.22659331560134888, 0.3501834273338318, 0.09443425387144089, 0.3287704586982727, 0.15277132391929626, 0.29025161266326904, -0.2045256346464157, -0.3957129120826721, -0.05425829440355301, 0.4753560721874237, -0.3645497262477875, 0.24096311628818512, 0.0873941034078598, 0.1367838829755783, 0.15063421428203583, -0.14514386653900146, -0.04528219625353813, 0.03755275160074234, -0.03712739050388336, 0.0036609843373298645, -0.12303239107131958, 0.37357139587402344, 0.13527552783489227, 0.5192133188247681, 0.22128987312316895, -0.04273615777492523, -0.09363327920436859, 0.14303237199783325, -0.18217338621616364, -0.25476372241973877, 0.04098834842443466, 0.019826579838991165, -0.3785463571548462, 0.16907313466072083, 0.04186372458934784, -0.1529211699962616, -0.019321054220199585, -0.013738758862018585, 0.17957207560539246, 0.06592218577861786, -0.07752707600593567, -0.24829337000846863, 0.19282209873199463, 0.763259768486023, -0.18378408253192902, -0.0071702152490615845, -0.03868808224797249, -0.09451743960380554, -0.1337481439113617, -0.18517404794692993, -0.010763570666313171, 0.3875405788421631, -0.2644916772842407, -0.06522265821695328, 0.6910914182662964, -0.528743326663971, -0.004834923893213272, 0.19563059508800507, -0.011186368763446808, 0.03389948606491089, 0.249282106757164, -0.10676349699497223, -0.2923359274864197, -0.17609140276908875, -0.25963497161865234, 0.0050267912447452545, 0.13042011857032776, -0.03455420210957527, -0.3318171501159668, -0.0714588612318039, 0.08761617541313171, 0.2745759189128876, 0.3723237216472626, 0.029108740389347076, 0.28891921043395996, 0.6823461651802063, 0.12769758701324463, -0.06684251129627228, 0.20654091238975525, 0.5193419456481934, -0.08715293556451797, -0.02277260646224022, 0.19583888351917267, -0.008804768323898315, -0.2356019914150238, 0.2555719017982483, -0.18814930319786072, 0.25311458110809326, 0.007553171366453171, 0.08164432644844055, -0.17201150953769684, -0.18068289756774902, -0.3440956473350525, -0.21444819867610931, 0.06553705781698227, 0.016830721870064735, 0.08827100694179535, 0.3130509555339813, -0.3127645254135132, 0.439604789018631, -0.19769258797168732, 0.013463843613862991, -0.44676539301872253, 0.08120101690292358, -0.13442391157150269, -0.0401020273566246, -0.006432294845581055, 0.09865710139274597, 0.37005650997161865, -0.22547820210456848, -0.1251109093427658, 0.13684146106243134, 0.09447123110294342, -0.011342938989400864, -0.05010329931974411, -0.11073969304561615, 0.12070191651582718, -0.3321649432182312, 0.42378929257392883, 0.1321917325258255, 0.13786643743515015, -0.10639463365077972, 0.1518634408712387, 0.08761876076459885, 0.3021602928638458, 0.43137073516845703, 0.012836061418056488, -0.03549732267856598, -0.08449773490428925, -0.0023270323872566223, -0.2098860889673233, -0.23935379087924957, 0.2860516607761383, 0.36228513717651367, 0.21265572309494019, -0.015859918668866158, 0.16495171189308167, -0.3541211485862732, 0.43650907278060913, 0.04144155979156494, 0.23511344194412231, -0.06080656871199608, -0.4502045214176178, 0.2783483564853668, 0.09841892868280411, -0.10645702481269836, 0.36708909273147583, 0.13847459852695465, -0.2372378706932068, 0.1293945461511612, 0.22790130972862244, -0.05757955461740494, 0.09220677614212036, 0.15654392540454865, 0.4523301124572754, 0.10827195644378662, -0.2713346481323242, 0.04340376332402229, -0.03823564946651459, -0.12308250367641449, -0.07804026454687119, 0.1159629374742508, -0.2822552025318146, -0.0589117631316185, -0.3727228343486786, -0.49145302176475525, -0.3270523250102997, 0.07182382047176361, -0.408890962600708, -0.23340590298175812, -0.16883479058742523, -0.12228281795978546, -0.134606271982193, 0.39309513568878174, 0.21238034963607788, -0.22704270482063293, -0.06812015175819397, -0.39594757556915283, -0.20923331379890442, -0.20326799154281616, -0.2683124244213104, -0.039097823202610016, 0.2976367473602295, 0.18953609466552734, 0.19256968796253204, -0.2675947844982147, -0.09590426087379456, -0.20994368195533752, -0.10030195116996765, 0.1910177618265152, 0.008340874686837196, -0.09948329627513885, -0.051217686384916306, 0.4569109380245209, -0.036120135337114334, 0.04972763732075691, 0.3699606657028198, -0.008483938872814178, -0.14526531100273132, 0.17774078249931335, 0.0052209049463272095, 0.15326851606369019, -0.027591422200202942, -0.5211426019668579, -0.2453729212284088, -0.39218050241470337, -0.2898658514022827, 0.22465215623378754, 0.05221725255250931, 0.013409975916147232, 0.15669216215610504, 0.15274256467819214, -0.04225955158472061, 0.06684427708387375, 0.08918528258800507, 0.09168541431427002, 0.4245995879173279, -0.14916393160820007, -0.27965688705444336, 0.34238699078559875, -0.1902860701084137, 0.028985340148210526, 0.09700746834278107, -0.17301437258720398, -0.019344594329595566, 0.3139027953147888, -0.11638442426919937, -0.06523315608501434, 0.2874521017074585, 0.5190106630325317, -0.19434981048107147, 0.09282481670379639, -0.06901873648166656, 0.008345313370227814, -0.1444004774093628, -0.24414899945259094, 0.42452171444892883, 0.29740849137306213, 0.30560773611068726, -0.04353143274784088, 0.7822398543357849, 0.010860256850719452, 0.25569722056388855, 0.42609578371047974, 0.07629942148923874, 0.26928091049194336, -0.3486822545528412, -0.04999470338225365, 0.0104915089905262, 0.2544056475162506, -0.03231656551361084, 0.11126483231782913, -0.05982520058751106, 0.07622647285461426, -0.6192238926887512, -0.36980804800987244, -0.29949918389320374, -0.2159063220024109, 0.10909871011972427, -0.2741408944129944, 0.19104227423667908, -0.048707783222198486, 0.09501083195209503, 0.12376643717288971, 0.020704805850982666, 0.21883225440979004, 0.4647520184516907, 0.0035706982016563416, 0.06393498182296753, -0.023403353989124298, -0.09221760183572769, -0.2643967866897583, 0.3273773491382599, -0.042118899524211884, 0.13581743836402893, -0.09478742629289627, -0.23619255423545837, 0.08948051929473877, 0.06319858878850937, 0.3092842996120453, -0.4035587012767792, -0.16062268614768982, 0.3869541883468628, 0.07807490974664688, -0.6535660624504089, -0.1758490800857544, 0.0604872852563858, -0.015394460409879684, -0.017503798007965088, 0.010282035917043686, -0.19332383573055267, -0.24469998478889465, 0.29499977827072144, 0.42851802706718445, -0.14231792092323303, -0.374965101480484, -0.472791850566864, 0.028187371790409088, -0.48943644762039185, -0.18839390575885773, -0.13796013593673706, 0.07885377109050751, 0.24215155839920044, 0.21841734647750854, 0.06510475277900696, -0.09244301170110703, 0.02369488589465618, -0.1127031221985817, 0.11266425251960754, -0.16072550415992737, -0.16105398535728455, -0.02550666406750679, 0.3260907828807831, -0.11863197386264801, 0.06313887238502502, 0.10467135906219482, -0.25470346212387085, -0.04993923008441925, -0.016984134912490845, 0.07064281404018402, 0.2264765053987503, -0.015143394470214844, -0.019569892436265945, -0.1449173539876938, -0.19706197082996368, 0.10597863793373108, -0.12173596024513245, 0.07832571864128113, -0.2491559386253357, -0.3910134732723236, -0.3480045199394226, 0.7426955699920654, 0.02713990956544876, -0.01596400886774063, 0.3429037630558014, 0.20170165598392487, -0.15146656334400177, 0.3397688865661621, 0.04742913320660591, 0.97968989610672, 0.0141838314011693, 0.006399917881935835, 0.02239566668868065, 0.10224828124046326, 0.8341012001037598, -0.6507050395011902, 0.06670346856117249, -0.2045770287513733, 0.22863225638866425, -0.054577335715293884, -0.08500206470489502, 0.5718110203742981, 0.11323438584804535, 0.007888086140155792, 0.6712853312492371, 0.14033670723438263, 0.4805464744567871, -0.0816388875246048, 0.2062823474407196, -0.1636158972978592, -0.03533913567662239, -0.35092616081237793, 0.018205709755420685, -0.17210306227207184, 0.8090726137161255, -0.16342878341674805, -0.09579674154520035, -0.252532035112381, -0.3281347453594208, -0.25814053416252136, 0.1180368959903717, -0.25288763642311096, 0.1364770531654358, -0.31720685958862305, -0.3505350947380066, 0.07233719527721405, 0.35978490114212036, 0.4233641028404236, 0.016625868156552315, -0.16735759377479553, 0.1833546906709671, -0.07747094333171844, -0.1585700511932373, -0.21630734205245972, 0.10754178464412689, 0.22580404579639435, -0.13343310356140137, -0.18077106773853302, 0.16909828782081604, -0.3425918519496918, -0.11935621500015259, -0.011339619755744934, 0.022790199145674706, 0.6689749360084534, 0.2682596445083618, -0.2767084240913391, 0.35537615418434143, 0.12834326922893524, 0.06931082904338837, 0.11031613498926163, -0.21177825331687927, -0.026651868596673012, 0.02782435342669487, -0.3508480489253998, -0.034171104431152344, -0.12922245264053345, 0.3872736990451813, 0.2311328500509262, -0.11304143816232681, 0.3309108018875122, 0.12514333426952362, -0.12336726486682892, -0.23322004079818726, 0.28531187772750854, 0.17195409536361694, -0.20763611793518066, -0.27527859807014465, 0.2128838747739792, 0.17036764323711395, -0.09839678555727005, 0.038664281368255615, 0.03351970762014389, -0.06630833446979523, 0.03954640030860901, -0.2681117057800293, -0.1334896683692932, 0.2705458104610443, -0.038837186992168427, -0.18977536261081696, -0.06892727315425873, 0.21415022015571594, 0.4571787118911743, -0.28151237964630127, -0.1937303990125656, -0.2539089322090149, 0.03399491310119629, 0.12561412155628204, 0.49589043855667114, 0.37533020973205566, -0.005188301205635071, 0.0660257339477539, 0.033587224781513214, -0.0018729176372289658, -0.1946711540222168, -0.10273939371109009, 0.0161387100815773, 0.2142414003610611, 0.20610548555850983, 0.16325241327285767, 0.10957039892673492, -0.44723448157310486, 0.21731925010681152, -0.15957267582416534, -0.022315900772809982, 0.25470077991485596, -0.16464313864707947, 0.28653016686439514, 0.17364731431007385, 0.3211052417755127, -0.5296331644058228, 0.21429166197776794, -0.1817488968372345, 0.34531766176223755, 0.1947265863418579, 0.017099538818001747, 0.4853263795375824, 0.138441264629364, -0.45997974276542664, -0.17733556032180786, -0.34989890456199646, -0.03127985820174217, 0.03236522525548935, -0.11729627847671509, 0.04189211130142212, -0.018613476306200027, 0.05211978405714035, 0.18345791101455688, -0.2758885622024536, -0.059130728244781494, 0.28481972217559814, 0.10280987620353699, -0.2974637746810913, 0.17540746927261353, 0.48909980058670044, -0.09819359332323074, -0.1404956579208374, 0.23337644338607788, 0.1426936835050583, -0.09167145192623138, 0.34121033549308777, 0.15486857295036316, 0.1631515622138977, -0.17873147130012512, 0.20530954003334045, 0.18409718573093414, 0.2948669493198395, 0.15759965777397156, 0.04752819985151291, -0.0538383349776268, 0.08801516890525818, 0.6539546251296997, -0.2858648896217346, 0.49249958992004395, 0.10118644684553146, 0.16773031651973724, -0.21161988377571106, -0.24161753058433533, 0.3595823645591736, 0.4214581847190857, 0.051749225705862045, -0.14439266920089722, -0.12379604578018188, -0.07737144827842712, -0.014710919931530952, -0.019691791385412216, -0.23024138808250427, 0.12901754677295685, 0.022480901330709457, 0.2884572744369507, -0.12769447267055511, -0.25308096408843994, -0.0551312193274498, 0.029763363301753998, 0.05550264194607735, -0.3724522590637207, 0.15340100228786469, 0.25482872128486633, -0.11216644942760468, -0.03394138067960739, 0.3947484493255615, 0.0025754962116479874, 0.05063061788678169, -0.10417628288269043, -0.026668233796954155, -0.00514235720038414, -0.18535631895065308, -0.06031804159283638, 0.111103855073452, 0.22661183774471283, 0.35900211334228516, -0.1547212302684784, -0.07795146107673645, 0.12682092189788818, -0.025547727942466736, 0.18806974589824677, 0.06043213978409767, -0.15555009245872498, 0.20814166963100433, 0.2435004711151123, 0.048971280455589294, -0.1524847447872162, -0.04124561324715614, 0.24149763584136963, 0.07034812867641449, -0.2723355293273926, 0.067777618765831, -0.35735541582107544, 0.03873886168003082, -0.4263153672218323, 0.2583352327346802, -0.564267635345459, 0.06936976313591003, 0.012265805155038834, 0.3249206840991974, -0.1382802128791809, -0.31965315341949463, 0.011013910174369812, -0.24328731000423431, 0.13480716943740845, 0.2248661369085312, 0.11859557777643204, -0.42630717158317566, -0.3554021716117859, -0.4867432713508606, 0.04261957108974457, -0.31286656856536865, 0.1308722198009491, -0.20519909262657166, 0.05024818331003189, 0.014670955017209053, 0.35528719425201416, 0.04617922008037567, 0.22698672115802765, -0.11860799789428711, 0.24339908361434937, -0.3425808846950531, -0.17019908130168915, -0.0914430320262909, 0.11009406298398972, -0.09119287878274918, -0.26949119567871094, -0.030606422573328018, -0.22600728273391724, -0.02429841458797455, -0.10804830491542816, -0.4202314615249634, 0.553715705871582, -0.09474755823612213, 0.5825883150100708, -0.14593416452407837, 0.30086207389831543, 0.07137660682201385, -0.13962016999721527, -0.004673711955547333, -0.010666072368621826, -0.06912503391504288, 0.15443575382232666, -0.05374806746840477, 0.22529493272304535, -0.20206210017204285, -0.017900869250297546, -0.34856876730918884, 0.451445609331131, -0.24993708729743958, 0.19212523102760315, -0.1374955177307129, 0.00634552538394928, 0.0350947380065918, 0.27501967549324036, -0.0353064239025116, -0.07540157437324524, -0.16488870978355408, 0.006583191454410553, -0.535722553730011, -0.01806957647204399, 0.272266685962677, -0.4996756911277771, -0.21721872687339783, -0.033243268728256226, 0.34547823667526245, -0.14042870700359344, -0.02622702158987522, -0.41893115639686584, 0.14732135832309723, 0.37142395973205566, 0.158014714717865, 0.13906866312026978, -0.011536246165633202, -0.15837915241718292, -0.07849091291427612, 0.03561075031757355, -0.5600674152374268, -0.164439857006073, -0.02577574923634529, -0.06941843032836914, -0.29953324794769287 ]
https://github.com/huggingface/datasets/issues/1790
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?
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?
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.08689067512750626, 0.15441207587718964, 0.03492138162255287, 0.2511790096759796, 0.35333317518234253, 0.108371302485466, 0.3212846517562866, 0.4499049782752991, 0.3734615743160248, 0.008810274302959442, 0.10232529044151306, 0.006331883370876312, -0.009907281026244164, -0.02256014570593834, -0.020793136209249496, -0.25478336215019226, 0.17211322486400604, 0.0012148432433605194, -0.21304884552955627, -0.2989025413990021, -0.38722747564315796, 0.08667441457509995, -0.327597975730896, 0.015958257019519806, -0.05216550827026367, 0.15560220181941986, -0.02797165885567665, 0.15741202235221863, 0.040106870234012604, -0.17492559552192688, 0.210382878780365, -0.12499508261680603, -0.05054492503404617, 0.3043379485607147, -0.00010792796092573553, 0.07012258470058441, 0.493463933467865, -0.21940383315086365, -0.36456650495529175, -0.4068616032600403, -0.08876658231019974, -0.34729936718940735, 0.02147623896598816, -0.41081371903419495, -0.1609841138124466, -0.16923800110816956, 0.02758484147489071, -0.42442095279693604, 0.2876332700252533, 0.2971324324607849, 0.25581470131874084, 0.37658873200416565, 0.1853017956018448, -0.0902390107512474, 0.4627016484737396, -0.25086769461631775, -0.17348513007164001, 0.15227371454238892, 0.10261600464582443, -0.013381421566009521, 0.09269466996192932, 0.4647524058818817, -0.33215999603271484, 0.1229284256696701, 0.39789068698883057, -0.21040932834148407, -0.10996594280004501, -0.5223607420921326, 0.19116832315921783, 0.2853012681007385, 0.8053056001663208, -0.3187531530857086, -0.2136244922876358, -0.0639345720410347, -0.04662157967686653, 0.09355013072490692, 0.1669069528579712, 0.19600480794906616, -0.13857080042362213, 0.013220841065049171, 0.25646743178367615, -0.277607262134552, -0.11295077949762344, 0.2547970414161682, 0.020699143409729004, 0.4345428943634033, 0.11305135488510132, 0.2906375825405121, -0.12133327126502991, -0.13098551332950592, 0.06010914221405983, -0.303820937871933, 0.17902912199497223, 0.4227382242679596, -0.3936532139778137, 0.09836743772029877, 0.07536564767360687, 0.031487803906202316, 0.20474767684936523, -0.009700345806777477, -0.17314887046813965, 0.27010977268218994, 0.17812927067279816, 0.055849626660346985, 0.1880672425031662, 0.242535799741745, 0.20485679805278778, 0.21803072094917297, 0.379183292388916, -0.09181942045688629, -0.07152055203914642, 0.021390285342931747, 0.008791588246822357, -0.30306029319763184, -0.25515472888946533, 0.20652519166469574, 0.3416900336742401, -0.2393629550933838, -0.21134647727012634, 0.16804057359695435, -0.39329978823661804, -0.19529028236865997, -0.1890358030796051, 0.4464724659919739, 0.09038296341896057, 0.3386281728744507, 0.12707583606243134, 0.3620223104953766, -0.22779813408851624, -0.43409210443496704, -0.16982506215572357, 0.28328368067741394, -0.2518642246723175, 0.10067307949066162, 0.19776651263237, 0.11700822412967682, 0.14287827908992767, -0.15129245817661285, 0.049855634570121765, 0.06723587214946747, 0.11983794718980789, 0.028212152421474457, -0.09782769531011581, 0.3394680619239807, 0.14406965672969818, 0.5026991367340088, 0.19716238975524902, -0.07732118666172028, -0.19796252250671387, 0.06902309507131577, -0.33564093708992004, -0.08760689198970795, 0.030021896585822105, 0.14548282325267792, -0.41066133975982666, 0.13924778997898102, 0.02769916132092476, -0.16095097362995148, -0.02605695277452469, -0.1307491660118103, 0.07028503715991974, -0.03363030031323433, -0.07188637554645538, -0.364168256521225, 0.19075524806976318, 0.7568349838256836, -0.11717943102121353, -0.05078832432627678, 0.14922013878822327, -0.03269767016172409, -0.03467695787549019, 0.06212087348103523, -0.01799517683684826, 0.08975503593683243, -0.26584863662719727, 0.049391523003578186, 0.5301239490509033, -0.4971589148044586, -0.3745909035205841, 0.14922332763671875, -0.13037434220314026, 0.06741425395011902, 0.19347034394741058, 0.09816576540470123, -0.22339224815368652, -0.049143750220537186, -0.07370728999376297, 0.3216210603713989, 0.12207026779651642, 0.11276964098215103, -0.3805290460586548, -0.08599138259887695, 0.20657788217067719, 0.1555686742067337, 0.21803738176822662, 0.037891700863838196, 0.24626339972019196, 0.176446333527565, 0.10074742883443832, -0.240895614027977, 0.23001700639724731, 0.4026342034339905, 0.08224526047706604, -0.076872818171978, 0.21855321526527405, -0.0472879633307457, -0.3427562713623047, 0.3855517506599426, -0.22628942131996155, 0.253264844417572, -0.12667889893054962, 0.03232765942811966, -0.2458292543888092, -0.08158500492572784, -0.39509671926498413, -0.3153589367866516, 0.13260683417320251, -0.08610452711582184, 0.17291051149368286, 0.4195103049278259, -0.09047403186559677, 0.5479967594146729, -0.08068229258060455, 0.0869767814874649, -0.38022157549858093, 0.35317426919937134, -0.15686620771884918, -0.022320929914712906, 0.08999691903591156, 0.1627473533153534, 0.2166813313961029, -0.204901322722435, -0.14718444645404816, 0.2453872710466385, 0.03161269426345825, 0.1753813624382019, 0.06560911983251572, -0.13634805381298065, 0.19812601804733276, -0.4174291491508484, 0.2811175286769867, 0.30596327781677246, 0.2019193023443222, 0.0005685612559318542, -0.02485957369208336, 0.31941407918930054, 0.27626585960388184, 0.34432709217071533, 0.10012225806713104, 0.14198146760463715, 0.17406600713729858, -0.1156531572341919, -0.11842475831508636, -0.2050986886024475, 0.3828372657299042, 0.20414596796035767, 0.264769971370697, -0.0008263327181339264, 0.05272606015205383, -0.19290247559547424, 0.4928572475910187, -0.03285304084420204, 0.3465648889541626, -0.043493062257766724, -0.4553963541984558, 0.1410558521747589, 0.07285650819540024, 0.03468438982963562, 0.33308786153793335, 0.13983377814292908, -0.16547095775604248, 0.15239587426185608, 0.15279245376586914, -0.0811331570148468, 0.07035782188177109, 0.04019787162542343, 0.2829311192035675, 0.13092078268527985, -0.03618814796209335, 0.05025781691074371, -0.1252746880054474, -0.006771549582481384, -0.20787814259529114, 0.14579956233501434, -0.2919570207595825, 0.0663338154554367, -0.31266361474990845, -0.3919147551059723, -0.18842297792434692, 0.2504110336303711, -0.47329285740852356, -0.31052666902542114, -0.14530426263809204, -0.028013989329338074, -0.19862264394760132, 0.24723786115646362, -0.0033551976084709167, -0.19253185391426086, 0.16338543593883514, -0.4583186209201813, -0.16511675715446472, -0.3762442469596863, -0.3328976631164551, 0.01730695366859436, 0.33585458993911743, 0.1337054818868637, 0.27845752239227295, -0.299774706363678, 0.051595158874988556, -0.41773661971092224, -0.272166907787323, 0.15817499160766602, -0.03463976830244064, 0.03609146177768707, 0.0005485191941261292, 0.44274866580963135, -0.004895739257335663, 0.03651120141148567, 0.351639986038208, -0.23543930053710938, -0.1929248869419098, 0.31196698546409607, 0.028266742825508118, -0.013379938900470734, 0.0411229133605957, -0.6374547481536865, -0.30700650811195374, -0.425264835357666, -0.13914892077445984, 0.0489383190870285, -0.010833723470568657, 0.051651302725076675, 0.141607865691185, -0.0006667561829090118, 0.03202228993177414, -0.00825553759932518, -0.014078078791499138, 0.1327497959136963, 0.506248950958252, -0.14567264914512634, -0.5656458139419556, 0.3194141089916229, -0.16033455729484558, 0.06243076175451279, 0.19569352269172668, -0.19556492567062378, -0.062026798725128174, 0.13756625354290009, -0.036584194749593735, 0.025997014716267586, 0.29268118739128113, 0.39390307664871216, -0.25718092918395996, 0.03821821138262749, -0.13654568791389465, 0.006215281784534454, -0.04374494403600693, -0.011489623226225376, 0.2950165569782257, 0.26453202962875366, 0.17767414450645447, -0.03647315874695778, 0.7936728000640869, 0.0073540061712265015, 0.21002481877803802, 0.48138168454170227, 0.07731859385967255, 0.2936623692512512, -0.34216246008872986, -0.19429738819599152, 0.00832950696349144, -0.002757728099822998, 0.014970287680625916, 0.18731831014156342, -0.08184604346752167, -0.13556312024593353, -0.6442768573760986, -0.3588297963142395, -0.2766452133655548, -0.322623074054718, 0.04532045125961304, -0.21602147817611694, 0.18436062335968018, 0.202399343252182, 0.09386097639799118, 0.07389885187149048, -0.10654766857624054, 0.2340160757303238, 0.2605072259902954, -0.17595398426055908, 0.09295469522476196, -0.11183243989944458, -0.17694725096225739, -0.3282274603843689, 0.4158121347427368, 0.02262384444475174, 0.20228472352027893, 0.003038160502910614, -0.23177680373191833, 0.08566898852586746, 0.01894862949848175, 0.46921661496162415, -0.3120105266571045, -0.04375842958688736, 0.12160363793373108, 0.25940942764282227, -0.5550559163093567, -0.18709564208984375, -0.032266486436128616, 0.03213003650307655, -0.04382850602269173, 0.18109233677387238, -0.25503912568092346, -0.0802217423915863, 0.0668698251247406, 0.4545518755912781, -0.08288317918777466, -0.12743183970451355, -0.43679988384246826, -0.050219953060150146, -0.5733695030212402, -0.08286383748054504, -0.09778943657875061, 0.14225760102272034, 0.09729322791099548, 0.16235505044460297, 0.09610167145729065, -0.014273613691329956, -0.03208020702004433, -0.008572392165660858, 0.34041717648506165, -0.20439964532852173, -0.03545727580785751, 0.08536729961633682, 0.17483100295066833, 0.046011783182621, 0.45670047402381897, 0.10347078740596771, -0.44930213689804077, -0.052902765572071075, -0.22394803166389465, -0.045778580009937286, 0.18973881006240845, -0.07515058666467667, -0.20411595702171326, -0.14395853877067566, -0.08549706637859344, 0.056391581892967224, -0.03051532246172428, 0.08761455118656158, -0.023653946816921234, -0.43529272079467773, -0.37299078702926636, 0.5270697474479675, -0.0330389067530632, -0.05701311677694321, 0.31100210547447205, 0.11276522278785706, -0.10708142071962357, 0.4222753345966339, 0.01874062977731228, 0.8645873665809631, -0.018870916217565536, 0.21019576489925385, 0.05828835442662239, -0.04008209705352783, 0.724864661693573, -0.5399275422096252, 0.07716352492570877, -0.27018415927886963, 0.0008101463317871094, -0.08790654689073563, -0.1371290385723114, 0.30189621448516846, 0.004613181576132774, -0.09128178656101227, 0.7011969089508057, 0.11363494396209717, 0.3072914481163025, -0.02841234765946865, 0.1268317699432373, -0.22317972779273987, 0.024750102311372757, -0.21592578291893005, 0.0936155617237091, -0.2517370879650116, 0.7930033206939697, -0.11468291282653809, -0.1685599535703659, -0.39972734451293945, -0.4847643971443176, -0.27357304096221924, 0.20679709315299988, -0.3265919089317322, 0.10576478391885757, -0.13658098876476288, -0.27553242444992065, -0.016014032065868378, 0.16851121187210083, 0.3396865427494049, 0.08356122672557831, -0.35241129994392395, 0.19915665686130524, -0.04324973747134209, -0.06335416436195374, -0.04578350856900215, 0.003071252256631851, 0.27173852920532227, -0.09677057713270187, -0.23187360167503357, 0.14853370189666748, -0.2545042037963867, -0.10193798691034317, -0.11573021858930588, 0.061088137328624725, 0.3317455053329468, 0.22472460567951202, -0.2792205810546875, 0.22462494671344757, 0.15336503088474274, -0.06302852928638458, 0.1800224632024765, -0.04943398758769035, -0.030330197885632515, -0.0032993219792842865, -0.18098194897174835, -0.24746812880039215, -0.12285294383764267, 0.5205888748168945, 0.18397372961044312, -0.24243399500846863, 0.4066537618637085, 0.17236152291297913, -0.2104174643754959, -0.24109995365142822, 0.1621389389038086, 0.1905708909034729, -0.26502251625061035, -0.14605168998241425, -0.03186183422803879, 0.09577172994613647, -0.13868801295757294, 0.16773024201393127, -0.01134686078876257, -0.10962986946105957, 0.09533706307411194, -0.44425779581069946, -0.03264101594686508, 0.18523767590522766, -0.08543461561203003, -0.10106377303600311, 0.0033142119646072388, 0.005318142473697662, 0.40322425961494446, -0.29716289043426514, -0.2888949513435364, -0.13765889406204224, -0.1059076339006424, 0.022461798042058945, 0.5605172514915466, 0.2935124933719635, 0.0023233704268932343, -0.058145564049482346, 0.09376479685306549, -0.1268182098865509, -0.19378024339675903, -0.2027929276227951, -0.01494796946644783, 0.138553187251091, 0.04348043352365494, 0.1630503088235855, 0.07036557793617249, -0.48233067989349365, 0.20216017961502075, -0.15279269218444824, 0.056792981922626495, 0.253628134727478, -0.19947442412376404, 0.17714066803455353, 0.10859008133411407, 0.18430139124393463, -0.3525303900241852, 0.2674995958805084, -0.3646935820579529, 0.17219331860542297, 0.13047978281974792, 0.06860948354005814, 0.3867247402667999, 0.15165364742279053, -0.1735510230064392, -0.17423003911972046, -0.3743778467178345, -0.04825794696807861, 0.21082128584384918, -0.14148950576782227, -0.0068628862500190735, 0.1340983808040619, 0.10623377561569214, 0.2562638521194458, -0.35032767057418823, -0.10758541524410248, 0.18367284536361694, 0.1969270557165146, -0.45551109313964844, -0.07519792765378952, 0.4037576913833618, -0.13587886095046997, -0.021496400237083435, 0.18435251712799072, 0.26367780566215515, -0.24109511077404022, 0.3059706389904022, 0.19165489077568054, 0.3945593237876892, -0.11702913790941238, 0.3011952340602875, 0.3527545928955078, 0.17799879610538483, 0.13961248099803925, -0.030412588268518448, 0.04745504632592201, 0.13538576662540436, 0.648486852645874, -0.2091657817363739, 0.4114723801612854, 0.06740231812000275, 0.1030040830373764, -0.26241937279701233, -0.30118313431739807, 0.2992067039012909, 0.22040359675884247, -0.06951697170734406, 0.02928861603140831, -0.024016037583351135, -0.0019983723759651184, 0.08604100346565247, -0.05657868832349777, -0.15854990482330322, 0.1666676253080368, 0.0012735966593027115, 0.2253454476594925, 0.017971374094486237, -0.35190123319625854, -0.07290773093700409, 0.1331724226474762, 0.03120337799191475, -0.2385890632867813, 0.22812744975090027, 0.16829454898834229, -0.12404041737318039, -0.12397287040948868, 0.3742433488368988, -0.11891986429691315, 0.013631895184516907, -0.13765592873096466, 0.025403624400496483, 0.04635363072156906, -0.15982438623905182, 0.006920862011611462, 0.16357512772083282, 0.26063019037246704, 0.34880268573760986, -0.28664711117744446, -0.023813920095562935, 0.17843398451805115, -0.06752533465623856, -0.01559925451874733, 0.09208426624536514, -0.062197890132665634, -0.05248603597283363, 0.28906068205833435, 0.11364802718162537, -0.1780465990304947, 0.09538222849369049, 0.04331313818693161, -0.03696990758180618, -0.270510733127594, -0.05337373912334442, -0.37924978137016296, 0.08717873692512512, -0.34022557735443115, 0.038981083780527115, -0.6098286509513855, -0.006096571683883667, 0.15129698812961578, 0.18959015607833862, -0.006375681608915329, -0.3605641722679138, 0.06054648011922836, -0.10734056681394577, 0.30975690484046936, 0.4319075644016266, 0.12030904740095139, -0.3997270464897156, -0.23151759803295135, -0.7111359238624573, 0.2788395881652832, -0.41060465574264526, 0.14500048756599426, -0.14957889914512634, 0.07072992622852325, 0.0984143391251564, 0.23376049101352692, 0.178688183426857, 0.32773759961128235, -0.2366156280040741, 0.1039687991142273, -0.36990174651145935, -0.30214744806289673, -0.24034422636032104, -0.001156950369477272, -0.10399751365184784, -0.3225293755531311, 0.15655456483364105, -0.13395220041275024, 0.0949149876832962, -0.14083538949489594, -0.3069469928741455, 0.3905304968357086, -0.022349026054143906, 0.5410963892936707, 0.015176719054579735, 0.43717992305755615, 0.08463115245103836, 0.01273849606513977, -0.08697568625211716, -0.08522404730319977, -0.11141940951347351, 0.1609831303358078, -0.07901851832866669, 0.059790730476379395, -0.13160021603107452, -0.1634128838777542, -0.2565716505050659, 0.4323996603488922, 0.12198106944561005, 0.1696547269821167, -0.1993856430053711, 0.06679186224937439, 0.029477126896381378, 0.16403888165950775, -0.13577353954315186, -0.04471765458583832, -0.2038329541683197, -0.03305432200431824, -0.3078814744949341, -0.26464763283729553, 0.2891610860824585, -0.42814120650291443, -0.3605464696884155, -0.0024639032781124115, 0.1914002001285553, -0.22266915440559387, 0.011238494887948036, -0.3648005723953247, 0.21677157282829285, 0.3255026042461395, 0.1010456308722496, -0.12341692298650742, -0.012208780273795128, -0.14546868205070496, -0.08819042146205902, 0.0029763132333755493, -0.30811062455177307, 0.08674120903015137, -0.12965673208236694, 0.008383221924304962, -0.229134663939476 ]
https://github.com/huggingface/datasets/issues/1790
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.
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?
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.01646202802658081, -0.1208428293466568, -0.04492597281932831, 0.1289525330066681, 0.36023736000061035, 0.01179029792547226, 0.4635162949562073, 0.39907485246658325, 0.26570284366607666, 0.2212449312210083, 0.36921608448028564, -0.0926489308476448, 0.07885448634624481, -0.050380244851112366, 0.31713199615478516, -0.34758543968200684, 0.38933971524238586, -0.10230722278356552, -0.04461556300520897, -0.28538778424263, -0.3970683217048645, 0.09727401286363602, -0.3274343013763428, 0.2043333649635315, -0.27639085054397583, 0.38344889879226685, 0.08559466898441315, 0.0011823168024420738, 0.2684018313884735, -0.07426448166370392, 0.04830539971590042, -0.311215341091156, 0.2795860469341278, 0.11835068464279175, -0.0001173795826616697, 0.15392941236495972, 0.2787110209465027, -0.37968435883522034, -0.2545410394668579, -0.3259483575820923, 0.11808206140995026, -0.5497903227806091, 0.05365769565105438, -0.41021472215652466, -0.3081613779067993, -0.3167409896850586, -0.016724394634366035, -0.36415907740592957, 0.23516474664211273, 0.22832655906677246, 0.16963797807693481, 0.21523703634738922, -0.055305033922195435, 0.046357396990060806, 0.4933220148086548, 0.06021491810679436, -0.3058099150657654, -0.018118854612112045, 0.06976068019866943, 0.07447952032089233, 0.14658404886722565, 0.642086386680603, -0.23146075010299683, -0.015231144614517689, 0.06731365621089935, -0.016785576939582825, 0.16636526584625244, -0.3263393044471741, 0.19459593296051025, 0.08995416760444641, 0.48281022906303406, -0.2662922143936157, -0.01627195253968239, 0.04100826382637024, -0.10902407765388489, -0.14964278042316437, 0.28068986535072327, 0.233503520488739, -0.21531596779823303, 0.025500990450382233, 0.4467756450176239, -0.07512158155441284, 0.01939455419778824, 0.15088242292404175, -0.0414784699678421, 0.66429603099823, 0.0698074921965599, 0.31395870447158813, -0.1830180585384369, -0.038737449795007706, -0.20581063628196716, -0.17636248469352722, 0.20240440964698792, 0.1869179606437683, -0.41222208738327026, 0.05783149600028992, 0.17306192219257355, -0.15398024022579193, -0.18829524517059326, 0.0296369269490242, -0.21980737149715424, 0.02295427769422531, 0.5886102914810181, 0.0437282994389534, -0.14924290776252747, 0.16410624980926514, 0.26415684819221497, -0.11192133277654648, 0.28921785950660706, -0.2116505205631256, -0.052946142852306366, -0.03757280856370926, -0.11767907440662384, -0.32080522179603577, -0.6114047765731812, 0.21613234281539917, 0.37995749711990356, -0.11072070896625519, -0.37585413455963135, 0.0015660859644412994, -0.7844846248626709, -0.17675526440143585, -0.0009919777512550354, 0.5293399095535278, 0.2928491532802582, 0.4186647832393646, 0.2891368269920349, 0.20366179943084717, -0.21728640794754028, -0.3478892147541046, -0.07937215268611908, 0.294508159160614, -0.34487152099609375, 0.252328485250473, 0.1170189380645752, 0.1859694868326187, 0.21217447519302368, -0.20139606297016144, -0.09950411319732666, 0.034345462918281555, 0.017721906304359436, -0.05446619167923927, 0.16901496052742004, 0.47995781898498535, 0.04840127378702164, 0.4080633521080017, 0.22577834129333496, 0.011672131717205048, -0.11727648973464966, 0.24295145273208618, -0.15485870838165283, -0.39441192150115967, -0.14688199758529663, 0.05110601335763931, -0.016756534576416016, 0.19688695669174194, 0.36287447810173035, 0.04268219321966171, 0.12288539111614227, 0.012357987463474274, 0.2530312240123749, 0.017857372760772705, -0.10541638731956482, -0.2124256193637848, 0.2507418990135193, 0.5459206104278564, -0.3039044439792633, -0.11065627634525299, 0.39615896344184875, -0.10538359731435776, -0.07860574871301651, 0.11522482335567474, -0.09785691648721695, 0.16368135809898376, -0.22835701704025269, -0.0972190797328949, 0.488037109375, -0.5070931315422058, -0.011067096143960953, 0.08041928708553314, -0.16730061173439026, -0.14546824991703033, 0.41601651906967163, -0.015810243785381317, -0.21558620035648346, -0.1384609192609787, -0.21775037050247192, 0.017940189689397812, 0.09550327062606812, -0.04261600598692894, -0.29792773723602295, -0.08484331518411636, 0.2965358793735504, 0.21431663632392883, 0.2368060052394867, -0.18624600768089294, 0.1066008061170578, 0.7018898129463196, 0.1804238259792328, -0.1468919813632965, 0.12321807444095612, 0.12063461542129517, 0.2017994523048401, -0.03149432688951492, 0.20573332905769348, 0.08167381584644318, -0.31951087713241577, 0.17783333361148834, -0.16116365790367126, 0.24504007399082184, -0.039156537503004074, 0.009676642715930939, 0.12223851680755615, -0.029620904475450516, -0.1899360567331314, -0.40911757946014404, 0.07648281753063202, 0.11828958988189697, 0.003313414752483368, 0.22170710563659668, -0.35164201259613037, 0.24913348257541656, -0.6650170683860779, 0.023083720356225967, -0.12288837879896164, 0.06531836092472076, -0.22485902905464172, -0.13932447135448456, -0.20835408568382263, 0.20416931807994843, 0.1631706804037094, -0.2657231092453003, -0.05501142144203186, -0.012419739738106728, 0.08634326606988907, -0.10194846242666245, -0.16889366507530212, 0.10010537505149841, 0.10838957875967026, -0.10808247327804565, 0.35006415843963623, 0.0759371966123581, 0.2190004140138626, 0.00023896247148513794, -0.046616245061159134, 0.19021926820278168, 0.3913540244102478, 0.40310877561569214, 0.044115662574768066, -0.08268854767084122, 0.16713513433933258, -0.06757510453462601, -0.23202428221702576, -0.21655908226966858, 0.1896585077047348, 0.3165905177593231, 0.02886296808719635, -0.03922191262245178, 0.037877678871154785, -0.10524705052375793, 0.5922948122024536, 0.12466919422149658, 0.2972472608089447, -0.07103699445724487, -0.3637952208518982, 0.17171336710453033, 0.26698705554008484, -0.1361999362707138, 0.37652069330215454, 0.1118713766336441, -0.2514682710170746, 0.07408837974071503, 0.1832258105278015, -0.19751770794391632, 0.1446843147277832, 0.09353846311569214, 0.16172625124454498, 0.10956905782222748, -0.1530916392803192, -0.004960350692272186, -0.17569805681705475, 0.01177312433719635, -0.0014163441956043243, -0.11093329638242722, -0.25943106412887573, 0.10291875153779984, -0.3478596806526184, -0.48591530323028564, -0.28133857250213623, 0.04041362553834915, -0.27853941917419434, -0.07324899733066559, -0.11603783816099167, -0.02943182736635208, -0.21870651841163635, 0.43045473098754883, 0.25712111592292786, 0.02193281054496765, -0.041165418922901154, -0.3306414484977722, -0.1026051789522171, -0.2048812359571457, -0.244960218667984, -0.003624536097049713, 0.31054913997650146, 0.17617885768413544, 0.2550486624240875, -0.34881460666656494, 0.0870179831981659, -0.10863441973924637, -0.33605527877807617, 0.14654524624347687, 0.04183664172887802, -0.23108403384685516, -0.10005493462085724, 0.18324077129364014, 0.06511813402175903, -0.023921366780996323, 0.42653197050094604, -0.12539535760879517, -0.1427244246006012, -0.0013663098216056824, -0.04989973083138466, -0.09586945176124573, -0.10203196108341217, -0.49644336104393005, -0.26457691192626953, -0.47587135434150696, -0.42599210143089294, 0.2412472665309906, 0.08109704405069351, -0.128132164478302, 0.1606527417898178, 0.2923530042171478, -0.17032113671302795, 0.03713606297969818, 0.03112097829580307, 0.2079809606075287, 0.23173168301582336, -0.00906970351934433, -0.36047008633613586, 0.4372161030769348, -0.08420414477586746, 0.03859890624880791, 0.11581738293170929, -0.2603439390659332, 0.013745859265327454, 0.29892265796661377, -0.03719806671142578, -0.000943351536989212, 0.2632433772087097, 0.7203306555747986, -0.2250906229019165, 0.012708872556686401, -0.014163069427013397, -0.32909223437309265, 0.0510527528822422, 0.007377181202173233, 0.5198999643325806, 0.16977673768997192, 0.4387988746166229, 0.0848531723022461, 0.8618531823158264, -0.08453607559204102, -0.07008413970470428, 0.3741457462310791, 0.09399005025625229, 0.2071833312511444, -0.3162723183631897, -0.0314854234457016, 0.21954822540283203, 0.0864550769329071, -0.01096343994140625, 0.18712551891803741, -0.08836066722869873, 0.17060315608978271, -0.51780104637146, -0.28986212611198425, -0.011129945516586304, -0.1790737807750702, 0.3663792312145233, -0.2854355573654175, 0.19870741665363312, 0.04103592783212662, 0.19379714131355286, 0.04690667986869812, 0.1392713338136673, 0.16392037272453308, 0.629522442817688, -0.01265692338347435, 0.013924751430749893, -0.1779281497001648, -0.12026393413543701, -0.11998067796230316, 0.21956728398799896, 0.07252345979213715, 0.21894964575767517, -0.12903039157390594, -0.4745144546031952, 0.18569889664649963, 0.034947868436574936, 0.32135605812072754, -0.035885706543922424, -0.287136048078537, 0.33163684606552124, -0.2321508526802063, -0.34970027208328247, -0.30624818801879883, -0.01896822452545166, -0.14873212575912476, -0.05708618089556694, 0.0013775844126939774, -0.031717412173748016, -0.4585868716239929, 0.37618380784988403, 0.23404213786125183, -0.25240540504455566, -0.2274867296218872, -0.42876332998275757, -0.046968087553977966, -0.5095895528793335, 0.00849008560180664, -0.1324004828929901, -0.12929800152778625, 0.026441581547260284, 0.17643950879573822, -0.06907150894403458, -0.20177024602890015, -0.05620596557855606, -0.06299366056919098, 0.0851253792643547, -0.06997102499008179, -0.2636387348175049, -0.23264721035957336, 0.71868497133255, -0.15075460076332092, -0.04024845361709595, 0.1925617754459381, -0.001810166984796524, 0.1199081689119339, -0.10798393934965134, 0.21378904581069946, 0.4486497640609741, -0.1768033802509308, 0.15943117439746857, -0.28379392623901367, -0.12071146070957184, -0.10630105435848236, -0.1808040887117386, 0.30445554852485657, -0.050913117825984955, -0.043060753494501114, -0.3201408386230469, 0.624183177947998, -0.10735584795475006, 0.0044307708740234375, 0.14718975126743317, 0.13185462355613708, -0.104412741959095, 0.3319958448410034, 0.23365822434425354, 1.0358116626739502, 0.1642739623785019, 0.13244591653347015, 0.17999523878097534, 0.10778561234474182, 0.8329392671585083, -0.598446249961853, 0.21736258268356323, -0.08510731160640717, 0.13650992512702942, -0.10828729718923569, -0.08187399804592133, 0.594586968421936, -0.006709566339850426, 0.07052989304065704, 0.37910017371177673, 0.2664603292942047, 0.6037870645523071, 0.003762863576412201, -0.10991476476192474, 0.035547979176044464, -0.1497257500886917, -0.5489437580108643, -0.016892652958631516, -0.07442852854728699, 0.7894800901412964, -0.20710138976573944, -0.11288069933652878, -0.22802552580833435, -0.36418259143829346, -0.09889551997184753, 0.04117634892463684, -0.29092487692832947, 0.18580517172813416, -0.3828188478946686, -0.32680532336235046, -0.04025771841406822, 0.14378727972507477, 0.3549683392047882, -0.08684062957763672, -0.12359413504600525, 0.04269400238990784, 0.007606592960655689, 0.000014744699001312256, -0.2081599235534668, 0.036793094128370285, 0.38472357392311096, -0.24814897775650024, -0.21969333291053772, 0.1634671986103058, -0.11093302816152573, -0.04944376274943352, 0.016012534499168396, 0.06965620815753937, 0.7141793966293335, 0.29274117946624756, -0.29677531123161316, 0.3870975971221924, 0.09807281196117401, 0.005247622728347778, 0.0951581746339798, -0.25142019987106323, -0.1515532284975052, -0.0723019540309906, -0.2172105759382248, -0.10101278126239777, -0.2248368263244629, 0.3276059925556183, 0.19994163513183594, -0.09728225320577621, 0.27123719453811646, 0.17326942086219788, -0.17410632967948914, -0.2119038999080658, 0.1623617708683014, 0.03688010573387146, -0.436989963054657, -0.2890705168247223, 0.3023829758167267, -0.17091704905033112, -0.1562231481075287, 0.17831961810588837, 0.06816046684980392, -0.186129629611969, -0.08539590984582901, -0.2221890538930893, -0.2340109944343567, 0.20988473296165466, -0.12331020087003708, -0.2150210440158844, -0.06318113207817078, 0.2806888520717621, 0.41568878293037415, -0.15370002388954163, -0.22615528106689453, -0.26287350058555603, -0.12300951778888702, 0.19280916452407837, 0.4427237808704376, 0.2965598702430725, -0.012769777327775955, 0.18954966962337494, 0.007495235651731491, -0.03800163418054581, -0.2186238318681717, -0.13121148943901062, -0.015004798769950867, 0.17656971514225006, 0.22850070893764496, 0.19599266350269318, 0.1880878210067749, -0.267689049243927, 0.08651392161846161, -0.0725879818201065, 0.09926070272922516, 0.18649692833423615, -0.08947955071926117, 0.3508022725582123, -0.030674133449792862, 0.331659734249115, -0.4477109909057617, 0.2372739613056183, -0.24995674192905426, 0.3688059151172638, 0.26763585209846497, -0.08039756119251251, 0.4092101454734802, 0.2389478087425232, -0.37461504340171814, -0.15237107872962952, -0.36454349756240845, 0.010473392903804779, -0.054627712815999985, -0.07198135554790497, -0.10211776196956635, -0.18597999215126038, -0.0245211124420166, 0.16070979833602905, -0.3545147776603699, -0.0365307480096817, 0.23273278772830963, 0.12669681012630463, -0.45439058542251587, 0.37314489483833313, 0.24276840686798096, -0.21544191241264343, -0.07727192342281342, 0.306043416261673, 0.4231768548488617, -0.0923662930727005, 0.3880968391895294, 0.17819853127002716, 0.08419928699731827, -0.2030157595872879, 0.20668673515319824, 0.361815869808197, 0.2963562607765198, 0.35980209708213806, 0.02027239464223385, 0.11203715205192566, 0.19501101970672607, 0.5736835598945618, -0.1265515238046646, 0.5901025533676147, 0.15742293000221252, 0.34954774379730225, -0.0969415232539177, -0.14905838668346405, 0.3120420277118683, 0.3322593569755554, -0.014695961028337479, -0.33035850524902344, -0.2264348417520523, -0.3042709231376648, 0.04543391242623329, -0.19499921798706055, -0.2628132402896881, 0.18080934882164001, -0.1972092092037201, 0.07938981801271439, -0.11021459102630615, -0.12406712025403976, -0.07040779292583466, 0.015701644122600555, 0.05193394050002098, -0.19517892599105835, -0.09493624418973923, 0.1215050220489502, -0.13319358229637146, 0.0533883273601532, 0.128168523311615, -0.06435716897249222, 0.030802277848124504, -0.08600587397813797, 0.0869322195649147, 0.1445927917957306, -0.1378287523984909, -0.06006035581231117, 0.08444498479366302, 0.2197665125131607, 0.4621064066886902, -0.08286936581134796, -0.025800341740250587, 0.14494040608406067, 0.003034919500350952, 0.05417691916227341, 0.15919652581214905, -0.0613807775080204, 0.2768362760543823, 0.27798891067504883, 0.05658271163702011, -0.15914995968341827, 0.12183186411857605, 0.15829569101333618, -0.0883101373910904, -0.2958940863609314, 0.23886409401893616, -0.43078893423080444, 0.05102093517780304, -0.5330100059509277, 0.22333306074142456, -0.3449477255344391, -0.0787932500243187, 0.015765774995088577, 0.10411695390939713, -0.015145167708396912, -0.2899128496646881, 0.01782914623618126, -0.2573353350162506, 0.23794496059417725, -0.06475265324115753, 0.03804592788219452, -0.2512813210487366, -0.23041903972625732, -0.3195030391216278, 0.10346752405166626, -0.25535261631011963, 0.2922729253768921, -0.272717148065567, 0.1275990903377533, 0.17636361718177795, 0.23952369391918182, -0.041303567588329315, 0.19592373073101044, 0.07572982460260391, 0.04284881800413132, -0.30695658922195435, -0.21970239281654358, -0.34014323353767395, 0.11602041870355606, -0.10838279128074646, -0.25457578897476196, -0.04245849698781967, -0.23322011530399323, -0.012937437742948532, -0.33107709884643555, -0.23161539435386658, 0.47526782751083374, 0.08147383481264114, 0.5481072664260864, -0.02755013480782509, 0.26144230365753174, 0.10081061720848083, -0.06969679892063141, -0.04002940654754639, 0.03912034258246422, -0.20417723059654236, 0.1928941160440445, 0.04229765385389328, 0.01974339783191681, -0.0921117514371872, -0.10007335990667343, -0.2449549436569214, 0.3905462324619293, -0.015144430100917816, -0.0077193863689899445, -0.10536861419677734, 0.09471176564693451, -0.08854828774929047, 0.06877824664115906, 0.22806571424007416, -0.09097296744585037, -0.14017291367053986, -0.19013676047325134, -0.4491509795188904, 0.060389675199985504, 0.283047080039978, -0.3310953974723816, -0.14125190675258636, -0.09223222732543945, 0.36147695779800415, -0.2765081822872162, 0.09676757454872131, -0.3255516290664673, 0.0648278295993805, 0.20819240808486938, 0.09999775141477585, 0.04357241094112396, 0.15688706934452057, 0.007800847291946411, -0.23779772222042084, -0.08288364112377167, -0.7149187922477722, -0.10678665339946747, -0.0013869032263755798, -0.14343690872192383, -0.4423045516014099 ]
https://github.com/huggingface/datasets/issues/1790
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.
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?
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.11173461377620697, -0.00644133985042572, 0.008771087974309921, 0.3851286768913269, 0.3766981363296509, 0.09046337753534317, 0.18669427931308746, 0.43439844250679016, 0.23802952468395233, 0.12736868858337402, 0.17051434516906738, 0.02249215543270111, -0.012138579040765762, -0.2175728976726532, 0.029377035796642303, -0.3352375626564026, 0.2749054729938507, -0.019375592470169067, -0.17039328813552856, -0.2335793524980545, -0.36291056871414185, 0.11334850639104843, -0.414878249168396, -0.10945099592208862, -0.1601736843585968, 0.19287227094173431, -0.04803190752863884, 0.09546226263046265, 0.13949444890022278, -0.34131982922554016, -0.11715221405029297, -0.10673338174819946, -0.018048644065856934, 0.306022971868515, -0.00010879553155973554, 0.0912562757730484, 0.5745629668235779, -0.1888057440519333, -0.2846513092517853, 0.040640298277139664, -0.037173084914684296, -0.49544739723205566, -0.01397499069571495, -0.47322478890419006, -0.03511328995227814, -0.2119351327419281, 0.15260182321071625, -0.37778031826019287, 0.39186593890190125, 0.14252755045890808, 0.25095605850219727, 0.26514750719070435, 0.06630788743495941, -0.007842712104320526, 0.5856631398200989, -0.09682044386863708, -0.05107361823320389, -0.11220364272594452, -0.288848340511322, -0.04989966005086899, -0.22353625297546387, 0.5995767712593079, -0.26247677206993103, 0.07026998698711395, 0.35990360379219055, -0.2300790548324585, -0.14920423924922943, -0.45211538672447205, 0.32671108841896057, 0.17152300477027893, 0.8122541904449463, -0.2932121157646179, -0.17808684706687927, -0.11612596362829208, -0.18160510063171387, 0.05674944072961807, 0.21397104859352112, 0.3344719409942627, -0.1897803694009781, -0.06125085800886154, 0.4706631600856781, -0.22750601172447205, -0.04098266363143921, 0.0693851113319397, 0.02029424160718918, 0.30312246084213257, 0.09454888105392456, 0.19883164763450623, 0.10800772905349731, -0.05909157171845436, -0.081523597240448, -0.25356927514076233, 0.056731145828962326, 0.28741729259490967, -0.3248101770877838, 0.1121489405632019, 0.11602690815925598, 0.06251722574234009, 0.12343656271696091, -0.2639255225658417, -0.29270899295806885, 0.24176034331321716, 0.26710349321365356, 0.035552456974983215, 0.22411441802978516, 0.15025846660137177, 0.02869943529367447, 0.1377190351486206, 0.5333327054977417, -0.19619891047477722, -0.18964225053787231, -0.015571647323668003, 0.0257253460586071, -0.2397146224975586, -0.08355745673179626, -0.07011474668979645, 0.1421354115009308, -0.1068672314286232, -0.0019676759839057922, 0.18007025122642517, -0.2986363470554352, -0.16593149304389954, -0.22923827171325684, 0.5317001342773438, 0.05753403529524803, 0.5937871336936951, 0.2013930231332779, 0.1262190192937851, -0.34332770109176636, -0.2992618680000305, -0.1430036872625351, 0.3405371606349945, -0.34001266956329346, 0.20809000730514526, 0.05986275523900986, 0.22097475826740265, 0.2671978771686554, -0.14406512677669525, 0.02793603390455246, -0.09875268489122391, 0.15663665533065796, -0.1712190806865692, -0.032267991453409195, 0.44706761837005615, 0.08759734779596329, 0.4486974775791168, 0.15384572744369507, -0.009893231093883514, -0.07206237316131592, 0.2632385790348053, -0.24329854547977448, -0.3493453562259674, 0.25513413548469543, 0.11737652122974396, -0.2879621386528015, 0.2902910113334656, 0.002513926476240158, -0.02848268300294876, 0.1678847074508667, -0.007985413074493408, 0.046584002673625946, -0.018021540716290474, -0.22050201892852783, -0.38306277990341187, 0.2032211720943451, 0.7963466048240662, -0.06928959488868713, 0.047790542244911194, 0.050691816955804825, -0.06628848612308502, 0.15844309329986572, 0.19491752982139587, -0.0704004317522049, 0.2086956650018692, -0.16765716671943665, -0.031692951917648315, 0.5124145150184631, -0.5858022570610046, -0.18748901784420013, 0.2188701629638672, 0.02237008512020111, 0.03302124887704849, 0.266482412815094, 0.10752348601818085, -0.1900942623615265, -0.12605804204940796, -0.06537517160177231, 0.1762629598379135, 0.15192259848117828, 0.3302555978298187, -0.5582461357116699, 0.022957295179367065, 0.0813494324684143, 0.16523736715316772, 0.326190710067749, -0.09236878156661987, -0.013221636414527893, 0.564457893371582, 0.23600563406944275, -0.27735376358032227, 0.2775588631629944, 0.44969090819358826, -0.1457100659608841, -0.02147260308265686, 0.3341240882873535, -0.017070218920707703, 0.03147759661078453, 0.28328850865364075, -0.25460293889045715, 0.23956602811813354, 0.017152367159724236, -0.1440320909023285, -0.09357480704784393, -0.00903623178601265, -0.2172042429447174, -0.3565835952758789, 0.18773189187049866, -0.03703847900032997, -0.025104917585849762, 0.2928379774093628, -0.09061112254858017, 0.3070313036441803, -0.19839031994342804, -0.0440983884036541, -0.3090111017227173, 0.05757402628660202, -0.21602950990200043, -0.009151965379714966, 0.07317280769348145, 0.09855107218027115, 0.15506292879581451, -0.03919743373990059, -0.1397494375705719, 0.20858561992645264, 0.2723042666912079, 0.0015526041388511658, 0.06436695903539658, -0.034476131200790405, 0.1558850109577179, -0.21280163526535034, 0.36464521288871765, 0.20923927426338196, 0.2507328391075134, -0.138088658452034, -0.011131281033158302, 0.12077072262763977, 0.24122250080108643, 0.380826860666275, 0.13545966148376465, -0.06676727533340454, 0.0642806887626648, 0.061338528990745544, -0.08797264844179153, -0.22833353281021118, 0.19641731679439545, 0.335674524307251, 0.09885703027248383, 0.06246265023946762, 0.043592095375061035, -0.24468372762203217, 0.5019389390945435, 0.09107011556625366, 0.1994129866361618, 0.035118620842695236, -0.5036807656288147, -0.029586397111415863, 0.12203151732683182, -0.12322154641151428, 0.2044374942779541, 0.1894410401582718, -0.008546913042664528, -0.004706628620624542, 0.3041694760322571, -0.09652562439441681, 0.2194780856370926, 0.1881992518901825, 0.37774455547332764, 0.021214764565229416, 0.005469407886266708, -0.0665690079331398, -0.10159830749034882, 0.05963920056819916, -0.11790729314088821, 0.18422222137451172, -0.1934274137020111, -0.025949183851480484, -0.28648072481155396, -0.47601962089538574, -0.1996365189552307, 0.3563886284828186, -0.3619391918182373, -0.29718878865242004, -0.07338623702526093, -0.09439842402935028, -0.2513524293899536, 0.20481818914413452, 0.17305897176265717, -0.006965190172195435, 0.0783337950706482, -0.2935420274734497, -0.15004907548427582, -0.5236818194389343, -0.2300800234079361, 0.0003818906843662262, 0.39284661412239075, 0.05052625387907028, 0.28796279430389404, -0.08200475573539734, -0.08867836743593216, -0.18842601776123047, -0.055733196437358856, 0.09716899693012238, 0.0015283133834600449, -0.07846122235059738, -0.14323341846466064, 0.4003279507160187, 0.01841060072183609, 0.08454826474189758, 0.34665247797966003, -0.11441178619861603, -0.09975749254226685, 0.17980416119098663, 0.1147884801030159, 0.13617154955863953, 0.020129874348640442, -0.40757110714912415, -0.15684866905212402, -0.5240033864974976, -0.03644996136426926, 0.13532736897468567, 0.1469872146844864, -0.04097568988800049, 0.16971886157989502, 0.07809537649154663, 0.14288046956062317, 0.14144562184810638, -0.045113176107406616, 0.10105958580970764, 0.33155637979507446, -0.1958373486995697, -0.4916897714138031, 0.26152750849723816, -0.11016404628753662, 0.07725773751735687, 0.2027612179517746, -0.36962032318115234, -0.13230502605438232, 0.04506601393222809, -0.04700050503015518, -0.02156381867825985, 0.36005696654319763, 0.40211597084999084, -0.11378487944602966, -0.09458997845649719, -0.055475179105997086, -0.05451005697250366, -0.18784010410308838, -0.31148114800453186, 0.12626855075359344, 0.17685839533805847, 0.2660350799560547, 0.12446355819702148, 0.8918671011924744, 0.06133538484573364, 0.5280163884162903, 0.409019410610199, 0.10653728246688843, 0.23704543709754944, -0.31168198585510254, -0.010068021714687347, 0.0871223509311676, -0.02129337191581726, -0.11222226917743683, 0.24116873741149902, 0.06935302168130875, -0.2553133964538574, -0.4276474714279175, -0.41602686047554016, -0.2520231008529663, -0.3027331233024597, 0.29969391226768494, -0.13159000873565674, 0.23879346251487732, 0.11501356959342957, 0.11274871975183487, -0.10543017089366913, -0.09233470261096954, 0.24371123313903809, 0.13621269166469574, 0.1016862690448761, -0.07831500470638275, 0.10506682842969894, -0.09679891914129257, -0.4224517345428467, 0.30811232328414917, -0.06701205670833588, 0.06078216806054115, 0.007972747087478638, -0.39417168498039246, 0.13605889678001404, -0.1513962298631668, 0.5284692049026489, -0.1971023827791214, -0.1498371958732605, 0.2106809914112091, -0.054568104445934296, -0.6518245935440063, -0.0845869779586792, 0.02672545611858368, 0.009511880576610565, 0.06694784760475159, -0.05282537639141083, -0.31648164987564087, -0.190703883767128, 0.1585880070924759, 0.44117745757102966, -0.1934053897857666, -0.18900272250175476, -0.5053486227989197, -0.020535774528980255, -0.5622541904449463, -0.0558287538588047, -0.1067502349615097, 0.055815473198890686, 0.1581386923789978, 0.23653651773929596, 0.12424584478139877, -0.047210607677698135, -0.041254326701164246, 0.005166742950677872, 0.32558757066726685, -0.23548805713653564, -0.10835229605436325, -0.06813447177410126, 0.12136047333478928, -0.1879371851682663, 0.22944536805152893, 0.04578911140561104, -0.18277396261692047, -0.09380209445953369, -0.07964107394218445, 0.02772482857108116, 0.3150017261505127, -0.040491968393325806, -0.04081084206700325, -0.17079703509807587, -0.11938513815402985, -0.12085063755512238, 0.0131123848259449, 0.1002243161201477, -0.1311948597431183, -0.29849642515182495, -0.48364341259002686, 0.6179903745651245, 0.09604620933532715, -0.09492892026901245, 0.4127900302410126, 0.09304606169462204, -0.20576563477516174, 0.5778881907463074, 0.1268901526927948, 0.985617995262146, -0.09800359606742859, 0.2745043933391571, 0.07980819046497345, 0.054457858204841614, 0.628154993057251, -0.798361599445343, 0.24773214757442474, -0.2950812578201294, 0.08909763395786285, 0.09155111014842987, -0.023362942039966583, 0.24113255739212036, -0.09344498813152313, 0.06975838541984558, 0.4806116819381714, 0.18044467270374298, 0.2832386791706085, -0.18689316511154175, 0.23301228880882263, -0.17425799369812012, -0.1990814357995987, -0.28565576672554016, 0.10444991290569305, -0.06556101143360138, 0.44406992197036743, -0.1535349041223526, -0.00710354745388031, -0.1861337125301361, -0.23928973078727722, -0.30466628074645996, -0.009919919073581696, -0.1477643847465515, 0.1759127676486969, -0.39438334107398987, -0.3973292410373688, -0.1162181943655014, 0.36251765489578247, 0.20089319348335266, 0.16399596631526947, -0.21892452239990234, 0.20823608338832855, -0.1592375636100769, -0.030605729669332504, -0.12270291894674301, 0.16687539219856262, 0.2763906717300415, -0.29809850454330444, -0.19438894093036652, 0.06290002167224884, -0.3802569806575775, -0.11661559343338013, -0.1380203813314438, 0.15418869256973267, 0.4423931837081909, 0.2177790105342865, -0.3047638237476349, 0.24238216876983643, -0.1472386121749878, -0.05086729675531387, 0.1976381093263626, -0.08426773548126221, -0.14814028143882751, 0.12618717551231384, -0.1883118599653244, -0.130975604057312, -0.010977517813444138, 0.39764705300331116, 0.3433176875114441, -0.0041507333517074585, 0.4232974946498871, 0.052104756236076355, -0.3017270863056183, -0.21604156494140625, 0.18238875269889832, -0.010428536683321, -0.11838285624980927, 0.026546500623226166, 0.12449362128973007, -0.030153349041938782, -0.2032163143157959, -0.03711199015378952, -0.07558976113796234, -0.14074338972568512, -0.08202356100082397, -0.26344943046569824, -0.2033623605966568, 0.22705066204071045, -0.10808224976062775, -0.10152369737625122, -0.02741779386997223, 0.04696699604392052, 0.27205389738082886, -0.050887998193502426, -0.30561673641204834, -0.17097261548042297, -0.09498029947280884, 0.20632992684841156, 0.34151116013526917, 0.23069262504577637, 0.04893555864691734, 0.10199475288391113, 0.07673776149749756, 0.1110587939620018, -0.20870280265808105, -0.2281426042318344, 0.051666006445884705, 0.15997779369354248, 0.030939746648073196, 0.017785068601369858, 0.19888058304786682, -0.39152848720550537, 0.18255338072776794, -0.3639064133167267, 0.1421438753604889, 0.10928434133529663, -0.27227258682250977, 0.22042326629161835, 0.13617736101150513, 0.27054286003112793, -0.17162875831127167, 0.24884948134422302, -0.22883422672748566, 0.3137672543525696, 0.2543604373931885, 0.037239767611026764, 0.4439244568347931, 0.009206265211105347, -0.36846911907196045, -0.1206265389919281, -0.2661694884300232, -0.06667110323905945, 0.11506111174821854, -0.10130073130130768, -0.18825292587280273, 0.07670295238494873, 0.08094531297683716, 0.2771129608154297, -0.18835178017616272, 0.0011663660407066345, 0.21101543307304382, 0.21676434576511383, -0.29843994975090027, 0.03784940019249916, 0.3729889988899231, -0.3067617118358612, -0.07391220331192017, 0.17837271094322205, 0.2772952914237976, -0.11618293821811676, 0.19651681184768677, 0.2012997418642044, 0.1917831003665924, -0.3311789631843567, 0.19139733910560608, 0.03335226699709892, 0.26249992847442627, 0.009125221520662308, -0.042548902332782745, -0.02670283243060112, 0.2035577893257141, 0.6850831508636475, -0.10945011675357819, 0.5020679831504822, 0.20983561873435974, 0.11651360988616943, -0.33937570452690125, -0.3047338128089905, 0.36270326375961304, 0.3669024705886841, -0.02260405942797661, 0.03687993064522743, -0.08350439369678497, -0.07521314918994904, 0.2278701663017273, -0.10509137809276581, -0.18978998064994812, 0.2455684095621109, -0.08777983486652374, 0.006721667945384979, 0.04934448003768921, -0.2445988655090332, 0.08703446388244629, 0.2050684690475464, 0.10637013614177704, -0.2664587199687958, 0.19616492092609406, 0.2542012631893158, -0.13885211944580078, -0.056597523391246796, 0.44791558384895325, -0.09611038863658905, 0.2970237731933594, -0.27629414200782776, -0.16550377011299133, 0.06546586751937866, -0.07992750406265259, -0.022202767431735992, 0.08610829710960388, 0.3277605175971985, 0.3482873737812042, -0.31593063473701477, -0.07673996686935425, 0.029720306396484375, -0.026905156672000885, -0.09785591065883636, 0.14721080660820007, -0.003256049007177353, 0.357638955116272, 0.1961808204650879, 0.09482055902481079, -0.22575291991233826, -0.15061041712760925, 0.2103351354598999, -0.10469389706850052, -0.28423094749450684, -0.03891751542687416, -0.1862664371728897, -0.21258044242858887, -0.32177671790122986, 0.05656580999493599, -0.4617813527584076, 0.16192883253097534, 0.08852439373731613, 0.1317562758922577, -0.11589886248111725, -0.2898353934288025, 0.08236449956893921, -0.15696309506893158, 0.32824400067329407, 0.11399069428443909, 0.12215660512447357, -0.3864791691303253, -0.2317989468574524, -0.5559619665145874, 0.14743593335151672, -0.4531601369380951, 0.10837878286838531, -0.12527067959308624, 0.28784340620040894, 0.005668148398399353, 0.19559931755065918, -0.017746686935424805, -0.031979307532310486, -0.0609000027179718, 0.20729520916938782, -0.418260782957077, -0.10437172651290894, -0.22510011494159698, -0.016175301745533943, -0.06847622990608215, -0.33245649933815, 0.08186428248882294, -0.18010741472244263, 0.08141109347343445, -0.09092731773853302, -0.32388752698898315, 0.4874148368835449, 0.07691735774278641, 0.6690848469734192, 0.03246188908815384, 0.25324392318725586, 0.03848910331726074, -0.15363255143165588, -0.1856967806816101, -0.04692189767956734, -0.14518070220947266, -0.07428158819675446, 0.027563095092773438, 0.2506351172924042, -0.2115623503923416, -0.20130236446857452, -0.2911405861377716, 0.5944092273712158, -0.17310406267642975, 0.22952991724014282, 0.0483156219124794, -0.05749097838997841, 0.16548466682434082, 0.20907823741436005, -0.10062865167856216, 0.09786582738161087, -0.14231537282466888, -0.14283812046051025, -0.5927693843841553, -0.256654292345047, 0.3185790181159973, -0.6523002982139587, -0.3354021906852722, 0.027040578424930573, 0.3586626648902893, -0.2010263204574585, -0.02477163076400757, -0.47749391198158264, 0.11348572373390198, 0.2376120537519455, 0.20942607522010803, -0.1371397227048874, -0.05000315606594086, -0.2336893379688263, -0.008302085101604462, -0.06358359009027481, -0.34901776909828186, -0.18454928696155548, -0.23707464337348938, -0.05940886214375496, -0.3310348093509674 ]
https://github.com/huggingface/datasets/issues/1790
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?
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?
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.11943495273590088, 0.11088621616363525, 0.009472917765378952, 0.429506778717041, 0.5010866522789001, 0.05407453328371048, 0.18194738030433655, 0.4008019268512726, -0.05477750673890114, 0.3162616789340973, 0.11126869171857834, 0.027088452130556107, -0.19562512636184692, -0.30971574783325195, 0.08737753331661224, -0.3430967926979065, 0.26977527141571045, -0.09609505534172058, -0.24898755550384521, -0.2321130335330963, -0.3576430082321167, 0.04213913530111313, -0.48529231548309326, -0.19316446781158447, -0.25900503993034363, 0.35341012477874756, -0.19048821926116943, 0.2451305091381073, -0.011713843792676926, -0.17570769786834717, -0.08209230750799179, -0.1067037582397461, -0.11210766434669495, 0.31313884258270264, -0.0001133347032009624, 0.10474191606044769, 0.3758174180984497, -0.27792584896087646, -0.32590779662132263, -0.19894203543663025, -0.05530824139714241, -0.30001136660575867, -0.16259533166885376, -0.3917808532714844, -0.07171814143657684, -0.2675776779651642, 0.11966459453105927, -0.3548969626426697, 0.42232730984687805, 0.20121483504772186, 0.20539647340774536, 0.22588708996772766, 0.02812933921813965, -0.016472935676574707, 0.6700218915939331, 0.0871259793639183, -0.11163745820522308, 0.06833643466234207, -0.1488499939441681, 0.009839512407779694, -0.16150085628032684, 0.5495008230209351, -0.20709601044654846, 0.07432948052883148, 0.23976658284664154, -0.23718267679214478, -0.23221375048160553, -0.3541303873062134, 0.22168952226638794, 0.17822903394699097, 0.6323610544204712, -0.34899380803108215, -0.12434747815132141, -0.16074876487255096, -0.05394705757498741, 0.14438539743423462, 0.25405874848365784, 0.18642500042915344, -0.12009187042713165, -0.12211668491363525, 0.13192647695541382, -0.1353091597557068, 0.01279255747795105, 0.20989155769348145, 0.23062193393707275, 0.4240315556526184, 0.027673639357089996, 0.2996921241283417, 0.16307218372821808, -0.1836213618516922, 0.15717223286628723, -0.24611762166023254, 0.07661977410316467, 0.35729336738586426, -0.3937426805496216, 0.03479687124490738, 0.028133109211921692, 0.0014928411692380905, 0.10850395262241364, -0.12328940629959106, -0.17551454901695251, 0.17446979880332947, 0.3144143521785736, -0.00945928506553173, 0.119968943297863, 0.40479350090026855, 0.09894305467605591, 0.2647187113761902, 0.11857636272907257, -0.18729284405708313, -0.06395585834980011, -0.043525759130716324, -0.09050017595291138, -0.4336496591567993, -0.26203450560569763, 0.21317824721336365, 0.13391827046871185, -0.03059113770723343, -0.15401014685630798, 0.056546248495578766, -0.42729902267456055, -0.16209366917610168, -0.06128634512424469, 0.48483824729919434, 0.14397314190864563, 0.5003717541694641, 0.2122718095779419, 0.14866934716701508, -0.28588926792144775, -0.26235780119895935, -0.25689029693603516, 0.45224419236183167, -0.48122063279151917, 0.19766706228256226, 0.03834050893783569, 0.2481759935617447, 0.28009337186813354, -0.17244866490364075, 0.159196674823761, 0.033420681953430176, 0.06136409938335419, -0.16648568212985992, 0.04875665530562401, 0.4103953540325165, 0.011913731694221497, 0.3502829968929291, 0.1928023099899292, 0.13934676349163055, -0.09286388754844666, 0.2679370939731598, -0.35359829664230347, -0.3601421117782593, 0.22996632754802704, 0.0713832676410675, -0.3113715946674347, 0.1920521855354309, -0.12649992108345032, -0.06472744047641754, 0.14329633116722107, 0.04464364051818848, 0.21368452906608582, -0.021093500778079033, -0.15411798655986786, -0.36666005849838257, 0.18561792373657227, 0.7775568962097168, -0.10790000110864639, -0.08556431531906128, 0.03305428475141525, -0.21807101368904114, 0.17708565294742584, 0.06840839982032776, -0.0754174068570137, 0.09663866460323334, -0.27167123556137085, 0.01515418291091919, 0.5695835947990417, -0.4580414295196533, -0.16687896847724915, -0.02214663103222847, -0.0789949893951416, 0.03652316331863403, 0.18951547145843506, 0.12573036551475525, -0.28946125507354736, -0.10471992194652557, 0.11730772256851196, 0.10430791974067688, 0.03837917000055313, 0.25669634342193604, -0.4343809485435486, -0.167671799659729, 0.06160664185881615, 0.25034669041633606, 0.282843679189682, -0.09250207245349884, 0.031143395230174065, 0.5866729021072388, 0.18896150588989258, -0.11026810109615326, 0.2881116569042206, 0.45247846841812134, -0.07264742255210876, 0.07783776521682739, 0.16384240984916687, -0.05982808768749237, -0.2577003836631775, 0.2902614176273346, -0.1085457056760788, 0.22229115664958954, 0.05075852945446968, -0.013521231710910797, -0.06831350922584534, -0.22907409071922302, -0.297770619392395, -0.2829665243625641, 0.13363365828990936, 0.028577037155628204, 0.08801804482936859, 0.15432509779930115, -0.2626296281814575, 0.38146665692329407, -0.34162572026252747, 0.029517799615859985, -0.5024130344390869, 0.250862717628479, -0.195464089512825, -0.1462162584066391, 0.030858896672725677, 0.08732551336288452, 0.19175076484680176, -0.13716088235378265, -0.1381656974554062, 0.391384094953537, 0.2522924840450287, -0.05637400597333908, -0.03764829784631729, -0.08958820253610611, 0.13251174986362457, -0.20329315960407257, 0.3407709002494812, 0.05847638472914696, 0.1820220947265625, -0.12985888123512268, 0.18488645553588867, 0.1325739622116089, 0.06251990795135498, 0.397029846906662, 0.11564680933952332, -0.06933825463056564, -0.06774844229221344, 0.14941170811653137, -0.11360831558704376, -0.3245388865470886, 0.35097888112068176, 0.3328659236431122, 0.15747085213661194, 0.08859307318925858, 0.03772963583469391, -0.2971399128437042, 0.6881406307220459, 0.1426718533039093, 0.11367611587047577, -0.05749429389834404, -0.40950143337249756, 0.06939904391765594, 0.15139466524124146, 0.034495189785957336, 0.40791821479797363, 0.13653481006622314, -0.11493952572345734, 0.14097511768341064, 0.21537944674491882, -0.09875677525997162, 0.13170254230499268, 0.2377413809299469, 0.4221460819244385, 0.0527263805270195, -0.08965785801410675, -0.011226369068026543, -0.19303596019744873, -0.17283150553703308, 0.06675316393375397, 0.15900522470474243, -0.25496917963027954, -0.12092061340808868, -0.4197220504283905, -0.5174444317817688, -0.2753363847732544, 0.14927415549755096, -0.39778876304626465, -0.24530188739299774, -0.10704860091209412, -0.07266959547996521, -0.32242900133132935, 0.319485068321228, 0.2790144681930542, -0.04906068742275238, 0.016862966120243073, -0.32352375984191895, -0.1718975156545639, -0.2900441586971283, -0.25713232159614563, 0.021614044904708862, 0.36724233627319336, 0.060844842344522476, 0.23790767788887024, -0.2665832042694092, -0.16853027045726776, -0.1087961345911026, -0.1508057862520218, 0.15115360915660858, 0.026301153004169464, -0.14425137639045715, -0.11143697798252106, 0.3510282039642334, -0.1820261925458908, -0.10188537836074829, 0.477520227432251, -0.05712628364562988, -0.21669358015060425, 0.24884924292564392, 0.1831466555595398, 0.07904988527297974, -0.10020037740468979, -0.44660115242004395, -0.12967036664485931, -0.5109670162200928, -0.07408417761325836, 0.08986364305019379, 0.09745007753372192, 0.15836626291275024, 0.26316821575164795, 0.18196117877960205, -0.12761840224266052, -0.030172983184456825, -0.11609675735235214, -0.05214136466383934, 0.272215336561203, -0.14650537073612213, -0.3368285298347473, 0.20148050785064697, -0.10447945445775986, -0.002172769047319889, 0.36334168910980225, -0.18139895796775818, -0.0972968339920044, 0.0007994379848241806, -0.28727394342422485, -0.05325176939368248, 0.3520984649658203, 0.5604920387268066, -0.15332481265068054, -0.03163337707519531, -0.03311220556497574, -0.0858616828918457, -0.12025430798530579, 0.0027142800390720367, 0.35347315669059753, 0.0590059757232666, 0.27311813831329346, 0.17359119653701782, 0.9325160980224609, -0.0268988236784935, 0.4621210992336273, 0.4056245684623718, 0.04992763698101044, 0.3116859197616577, -0.3958238959312439, -0.040550597012043, 0.24758362770080566, 0.14203901588916779, -0.07826046645641327, 0.1939636617898941, -0.011283701285719872, -0.035897985100746155, -0.5152164101600647, -0.31678563356399536, -0.21988756954669952, -0.31446340680122375, 0.35423529148101807, -0.15140795707702637, 0.009882737882435322, -0.0006801113486289978, 0.047347292304039, 0.027867630124092102, -0.06337594985961914, 0.03904247656464577, 0.2465270757675171, -0.03471320867538452, 0.04174863547086716, -0.22931890189647675, -0.1894799917936325, -0.3416490852832794, 0.2945888042449951, 0.02481892704963684, 0.17045041918754578, -0.05901758000254631, -0.34009844064712524, 0.10110706090927124, 0.07092402875423431, 0.6148955225944519, -0.2257055640220642, -0.24672649800777435, 0.286055326461792, 0.027074329555034637, -0.6423117518424988, -0.19499485194683075, -0.024250976741313934, -0.10033939778804779, -0.18188463151454926, 0.08190209418535233, -0.23440738022327423, -0.19791343808174133, 0.170203298330307, 0.3472844660282135, -0.04628252610564232, -0.18867872655391693, -0.4585425555706024, -0.035980064421892166, -0.5773241519927979, -0.13744966685771942, -0.030547548085451126, 0.0302877277135849, 0.08994841575622559, 0.3163577616214752, 0.18987473845481873, -0.19172805547714233, -0.021515358239412308, -0.11194239556789398, 0.3413628339767456, -0.10463744401931763, -0.1710594892501831, 0.10902911424636841, 0.04247034341096878, 0.030345791950821877, 0.29007333517074585, 0.1259760707616806, -0.17078730463981628, 0.04341459274291992, 0.029468491673469543, 0.05087830498814583, 0.4066845178604126, -0.07217403501272202, -0.04115518555045128, -0.04372624307870865, -0.0693143904209137, -0.020820578560233116, 0.029881011694669724, 0.1085255965590477, -0.2762962281703949, -0.20657938718795776, -0.6122492551803589, 0.6164755821228027, 0.07793918251991272, -0.007047250866889954, 0.44231194257736206, 0.19353047013282776, -0.2312547266483307, 0.5099322199821472, 0.14726655185222626, 1.1177154779434204, -0.1503801941871643, 0.2815019190311432, 0.17894843220710754, 0.13420256972312927, 0.6970813274383545, -0.6101928353309631, 0.33815598487854004, -0.19023388624191284, 0.059384677559137344, 0.049827560782432556, -0.1147463321685791, 0.3421471118927002, 0.07422658801078796, 0.05207310616970062, 0.5547212362289429, 0.09440936148166656, 0.3872455954551697, -0.3301387131214142, -0.03823185712099075, -0.4087437391281128, -0.099556103348732, -0.2862849533557892, 0.07730183750391006, -0.10735630989074707, 0.5356623530387878, -0.11050234735012054, 0.0492258220911026, -0.36787086725234985, -0.26974189281463623, -0.2712929844856262, 0.06763589382171631, -0.27522405982017517, 0.22534671425819397, -0.4388575255870819, -0.14120003581047058, -0.18352875113487244, 0.2323123812675476, 0.2649609446525574, -0.014641916379332542, -0.07793541997671127, 0.23453082144260406, 0.05452591925859451, 0.01444314420223236, -0.16124603152275085, 0.07046397030353546, 0.31992581486701965, -0.14932724833488464, -0.20230910181999207, -0.0072202011942863464, -0.25280144810676575, -0.19984042644500732, -0.2708635926246643, 0.12441851198673248, 0.5775040984153748, 0.25297144055366516, -0.3201373517513275, 0.3392539918422699, -0.043723832815885544, 0.08532026410102844, 0.1442815512418747, -0.16201114654541016, -0.06899797171354294, 0.09584449231624603, -0.31660863757133484, -0.03188910335302353, -0.04100020229816437, 0.4114471673965454, 0.3425065279006958, -0.04512639343738556, 0.3743167817592621, 0.02680385112762451, -0.16993288695812225, -0.18924590945243835, 0.18157082796096802, 0.24531254172325134, -0.20644254982471466, 0.04059774801135063, 0.05300406366586685, -0.06568664312362671, -0.11353178322315216, -0.008221223950386047, -0.03169095516204834, 0.02572903037071228, 0.0861475020647049, -0.26235756278038025, -0.2688731551170349, 0.40096983313560486, 0.02856820821762085, 0.09624410420656204, -0.1838034987449646, 0.1682518571615219, 0.2581396996974945, -0.28045400977134705, -0.2636615037918091, -0.166446715593338, -0.13792280852794647, 0.213174968957901, 0.16112416982650757, 0.2940629720687866, 0.07114817202091217, 0.026065804064273834, 0.03088425099849701, 0.170014426112175, -0.365700364112854, -0.15068936347961426, 0.02699468284845352, 0.16482576727867126, 0.18374089896678925, 0.014964316040277481, 0.16293160617351532, -0.47429096698760986, 0.13311025500297546, -0.3103110194206238, 0.14515122771263123, 0.3282078504562378, -0.1741097867488861, 0.33300960063934326, 0.3119805157184601, 0.15289124846458435, -0.12636713683605194, 0.2810012400150299, -0.20808961987495422, 0.1811096966266632, 0.2060035914182663, -0.020251616835594177, 0.37471985816955566, 0.12968945503234863, -0.409385085105896, -0.18147942423820496, -0.3265286684036255, -0.026722170412540436, -0.054051607847213745, -0.06796257197856903, -0.09414561837911606, -0.07206545770168304, 0.139107346534729, 0.30853310227394104, -0.27204155921936035, -0.14310887455940247, 0.2774803042411804, 0.16242240369319916, -0.21921725571155548, 0.07506102323532104, 0.36965835094451904, -0.07326848059892654, -0.03153062239289284, 0.16244947910308838, 0.027478240430355072, -0.04555816948413849, 0.18034958839416504, 0.19162099063396454, 0.20425155758857727, -0.27431708574295044, 0.32638123631477356, 0.12305629253387451, 0.2487042099237442, -0.036845896393060684, 0.014305377379059792, -0.04071270301938057, 0.23213975131511688, 0.6695382595062256, -0.17908640205860138, 0.587569534778595, 0.0621429942548275, 0.16204795241355896, -0.21893437206745148, -0.3987022340297699, 0.29982200264930725, 0.6812432408332825, -0.09850969910621643, 0.10046278685331345, -0.1580052226781845, -0.054007213562726974, 0.17638877034187317, -0.020428145304322243, -0.09604991972446442, 0.11243855953216553, -0.060752782970666885, 0.143369659781456, 0.021404340863227844, -0.26905298233032227, -0.18282325565814972, 0.10306163132190704, 0.08821985870599747, -0.38282516598701477, 0.3714803159236908, 0.19740144908428192, -0.18557795882225037, -0.08040989190340042, 0.3417036235332489, 0.15610963106155396, 0.07187093049287796, -0.24123334884643555, -0.10077536106109619, 0.1273663341999054, -0.15817119181156158, 0.17882013320922852, 0.11640571057796478, 0.2657679319381714, 0.41344839334487915, -0.06761674582958221, -0.08478275686502457, 0.15435470640659332, -0.018200628459453583, -0.01867450401186943, 0.17842653393745422, 0.05452977865934372, 0.13627468049526215, 0.1742996871471405, 0.08705054223537445, -0.21070607006549835, -0.15943942964076996, 0.27822980284690857, 0.08922901749610901, -0.2767750024795532, -0.03335576131939888, -0.3387450575828552, 0.02315691113471985, -0.2729215621948242, 0.09585633873939514, -0.651759147644043, 0.004634395241737366, -0.09739026427268982, 0.1509314626455307, 0.023120619356632233, -0.16432948410511017, 0.04316547513008118, -0.17165978252887726, 0.2587975859642029, 0.14339476823806763, -0.13674554228782654, -0.31922200322151184, -0.3952592611312866, -0.591094970703125, 0.011754833161830902, -0.31849873065948486, 0.33997321128845215, -0.14488108456134796, 0.29000136256217957, 0.027065781876444817, 0.18409055471420288, -0.09463372826576233, 0.06592458486557007, -0.07287287712097168, 0.16867755353450775, -0.4083978533744812, -0.18039944767951965, -0.184762105345726, 0.08446229249238968, 0.08280083537101746, -0.3851664066314697, -0.03013499826192856, -0.09416807442903519, -0.032818086445331573, -0.0980992466211319, -0.2634514570236206, 0.42844587564468384, -0.11247916519641876, 0.5186238884925842, -0.10620750486850739, 0.23814788460731506, 0.08324576169252396, -0.14082351326942444, -0.26338210701942444, -0.15760064125061035, -0.07886193692684174, -0.09406521916389465, 0.03137713298201561, 0.442989706993103, -0.29516708850860596, -0.06228998303413391, -0.3243883550167084, 0.46987032890319824, -0.2132887840270996, 0.2390979528427124, -0.1712670922279358, 0.15147218108177185, 0.14712731540203094, 0.35933366417884827, -0.1664116233587265, 0.0064464230090379715, -0.07722216844558716, -0.0631924569606781, -0.5480508804321289, -0.2193654477596283, 0.5287928581237793, -0.47885552048683167, -0.28193342685699463, -0.06068600341677666, 0.25281739234924316, -0.17673330008983612, -0.06537552177906036, -0.5018326044082642, 0.19244146347045898, 0.24566492438316345, 0.1923525184392929, -0.0027938634157180786, 0.05487573891878128, -0.22971761226654053, -0.032822467386722565, -0.04101846367120743, -0.3641456961631775, -0.20552000403404236, -0.1534765660762787, 0.17434927821159363, -0.29918956756591797 ]
https://github.com/huggingface/datasets/issues/1790
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.
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?
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.04016484320163727, 0.010121092200279236, -0.005872771143913269, 0.12934570014476776, -0.011950450018048286, 0.059670597314834595, 0.36614418029785156, 0.3480101227760315, 0.02297479659318924, 0.2797616124153137, 0.16045701503753662, 0.07360954582691193, 0.19807489216327667, -0.19536595046520233, -0.08456410467624664, -0.2648458480834961, 0.3423890471458435, -0.013062842190265656, -0.05664226412773132, -0.3558184504508972, -0.4479024410247803, 0.200083389878273, -0.5033822059631348, -0.17801415920257568, -0.1696123480796814, 0.2718341052532196, -0.14334677159786224, 0.38924261927604675, 0.18607932329177856, -0.049147725105285645, -0.04007154330611229, -0.0870492160320282, -0.08698578178882599, 0.2562697231769562, -0.00011818209895864129, 0.09909717738628387, 0.274228572845459, -0.2264609932899475, -0.235404834151268, -0.13553783297538757, -0.00016633421182632446, -0.5018970370292664, -0.09320284426212311, -0.4231705069541931, 0.023297376930713654, -0.04004700854420662, 0.03913644701242447, -0.20834939181804657, 0.584629476070404, 0.10018166899681091, 0.1030462235212326, 0.26666051149368286, 0.047695159912109375, -0.025114014744758606, 0.32002022862434387, -0.047489557415246964, -0.04051405191421509, 0.15229782462120056, -0.002084493637084961, 0.21328534185886383, -0.10750091075897217, 0.4607252776622772, -0.25584280490875244, 0.13573220372200012, -0.05863683670759201, -0.1971607208251953, -0.11754508316516876, -0.4867197573184967, 0.30783960223197937, 0.26100024580955505, 0.44056180119514465, 0.01647135242819786, -0.17538389563560486, -0.25193193554878235, -0.13309238851070404, 0.11449083685874939, 0.1225963830947876, 0.19379109144210815, 0.11230345070362091, 0.09987130761146545, 0.5713418126106262, -0.31448012590408325, 0.056326135993003845, 0.055168598890304565, 0.23268286883831024, 0.5872219204902649, 0.11059856414794922, 0.43626266717910767, 0.04448450729250908, 0.15456071496009827, 0.20640066266059875, -0.28615620732307434, 0.20104777812957764, 0.23654961585998535, -0.2430972307920456, -0.005230911076068878, -0.03738262504339218, -0.22371776401996613, -0.0731731578707695, -0.10040027648210526, -0.500781774520874, 0.24644744396209717, 0.4761478900909424, 0.17040732502937317, 0.15790477395057678, 0.18186619877815247, 0.1793932169675827, 0.21940529346466064, 0.26437586545944214, -0.26843777298927307, -0.053806599229574203, -0.02126806601881981, 0.13327383995056152, -0.37632301449775696, -0.4731951355934143, 0.2896764874458313, 0.033105723559856415, -0.1172800064086914, -0.11248290538787842, -0.23946110904216766, -0.25187939405441284, -0.3447420299053192, -0.2870918810367584, 0.2796640992164612, 0.30405163764953613, 0.5849859118461609, 0.03095395863056183, 0.2881348431110382, -0.5063955783843994, -0.19197535514831543, -0.1429307460784912, 0.1993657648563385, -0.26771843433380127, 0.16402211785316467, -0.07521165162324905, 0.14584393799304962, 0.1551927626132965, -0.1586451232433319, 0.2210361659526825, 0.03299245983362198, 0.09269221127033234, -0.022986799478530884, 0.029405858367681503, 0.4956112504005432, 0.12968160212039948, 0.3343689739704132, 0.38184991478919983, 0.04412151873111725, -0.33613720536231995, 0.2725721001625061, -0.5118632912635803, -0.498512327671051, 0.14367367327213287, 0.031097684055566788, -0.189168781042099, 0.19585920870304108, -0.018779467791318893, -0.028651945292949677, 0.2861872613430023, -0.14592863619327545, 0.2613281011581421, -0.0038731498643755913, -0.0005566179752349854, -0.3166026473045349, -0.04288928210735321, 0.6379067897796631, -0.11724413931369781, 0.008237577974796295, -0.010736308991909027, -0.10415436327457428, 0.21277880668640137, 0.19397006928920746, -0.11018969118595123, 0.07632531970739365, -0.20478513836860657, 0.021015524864196777, 0.5991591811180115, -0.5733518600463867, -0.12032777070999146, 0.08847828209400177, -0.24607142806053162, 0.10729877650737762, 0.47061434388160706, -0.009704064577817917, -0.07953646779060364, -0.22630760073661804, 0.029219506308436394, 0.16475968062877655, 0.09461160749197006, 0.10126887261867523, -0.4208422601222992, 0.02826002985239029, 0.15017074346542358, 0.16668882966041565, 0.19319921731948853, 0.1797623336315155, 0.06124087795615196, 0.11919426918029785, 0.21796400845050812, -0.03080281987786293, 0.26282426714897156, 0.2563929855823517, -0.19555993378162384, 0.24265067279338837, 0.3924931287765503, 0.23150652647018433, -0.07328273355960846, 0.28116297721862793, -0.13746869564056396, 0.34389662742614746, 0.06797938048839569, -0.14755280315876007, -0.021342847496271133, -0.41919055581092834, -0.36520135402679443, -0.5023630857467651, -0.03909618780016899, -0.0010687001049518585, 0.23209556937217712, 0.28063732385635376, -0.41118645668029785, 0.3606013059616089, -0.37012237310409546, 0.05765978991985321, -0.5175857543945312, 0.24843576550483704, -0.19542855024337769, -0.015076356008648872, -0.09020930528640747, 0.11603723466396332, -0.0062017012387514114, -0.241062194108963, -0.02787979319691658, 0.3686266839504242, 0.28989389538764954, 0.1484851837158203, 0.1862206906080246, -0.2278819978237152, 0.10582983493804932, -0.29356563091278076, 0.36050984263420105, 0.21678607165813446, 0.11436563730239868, -0.18367907404899597, 0.26246169209480286, 0.333452433347702, 0.03312292322516441, 0.4286051094532013, 0.09297388046979904, -0.05013694614171982, 0.15839740633964539, -0.001418277621269226, -0.17415949702262878, -0.19647713005542755, 0.2689027786254883, 0.21680201590061188, 0.04007329046726227, -0.08406448364257812, 0.016317658126354218, -0.12168079614639282, 0.6155572533607483, 0.0400267168879509, 0.12034127861261368, -0.002330458490177989, -0.20982804894447327, -0.007106170058250427, 0.03580433130264282, 0.04775112867355347, 0.4985297918319702, 0.16648632287979126, 0.028451107442378998, 0.09103188663721085, 0.31292039155960083, -0.22144261002540588, -0.021174699068069458, 0.14035016298294067, 0.3321324288845062, 0.2238542139530182, -0.2455611526966095, 0.03031664341688156, -0.3016817569732666, -0.10415631532669067, -0.198762446641922, 0.0637185201048851, -0.04743235185742378, -0.021309856325387955, -0.022948548197746277, -0.36249518394470215, -0.4416366517543793, 0.05586330220103264, -0.39117395877838135, -0.33720117807388306, 0.0788688212633133, -0.037728991359472275, -0.26128190755844116, 0.39614519476890564, 0.3479467034339905, -0.06494379043579102, -0.04342862591147423, -0.12671546638011932, -0.2274431437253952, -0.3022429645061493, -0.2869899868965149, -0.04144546017050743, 0.16138261556625366, 0.24411186575889587, 0.05008503794670105, -0.385780930519104, -0.16244593262672424, -0.17297592759132385, -0.13533446192741394, 0.08652043342590332, -0.058275092393159866, -0.10216720402240753, -0.1136891096830368, 0.3374115824699402, -0.04351487755775452, -0.16038073599338531, 0.36283132433891296, -0.0497334748506546, -0.19898682832717896, 0.27591148018836975, 0.10074067115783691, 0.09265610575675964, 0.06121493875980377, -0.6890729069709778, -0.39149028062820435, -0.4526818096637726, 0.028305161744356155, 0.14885465800762177, -0.002345055341720581, -0.11210142821073532, 0.14570391178131104, -0.1862114667892456, 0.04373124614357948, -0.18426856398582458, -0.14128857851028442, -0.14822477102279663, 0.18394818902015686, -0.1587507426738739, -0.3171842694282532, 0.1166822537779808, -0.17493048310279846, -0.19349949061870575, 0.13525645434856415, -0.09558430314064026, -0.005591060966253281, 0.11830677837133408, -0.2816363573074341, -0.1481216847896576, 0.6191089749336243, 0.6890796422958374, -0.16618692874908447, 0.06010664999485016, -0.02404223382472992, 0.1223902702331543, -0.0701788067817688, 0.09908051788806915, 0.3527524769306183, -0.0878823772072792, 0.05694369599223137, 0.07998264580965042, 0.8017925024032593, 0.13501876592636108, 0.6213974356651306, 0.25834110379219055, 0.13999707996845245, 0.23209509253501892, -0.48853951692581177, -0.043336108326911926, 0.1662050485610962, 0.017542764544487, -0.16707733273506165, 0.24522356688976288, 0.049352675676345825, 0.01123734936118126, -0.4611930251121521, -0.47457435727119446, -0.39808157086372375, -0.28009939193725586, 0.2716125249862671, -0.05905372276902199, 0.1806713193655014, 0.00984271615743637, -0.14355666935443878, 0.1308438926935196, 0.10814040899276733, 0.018361568450927734, 0.5039036870002747, 0.08182474970817566, 0.04982735589146614, -0.39066842198371887, -0.2206052541732788, -0.25474852323532104, 0.390403687953949, 0.10388407111167908, 0.007167283445596695, 0.21924220025539398, -0.43768131732940674, 0.17560026049613953, 0.036698319017887115, 0.7510882019996643, -0.28913769125938416, -0.2462831735610962, 0.12140457332134247, 0.07342543452978134, -0.41480469703674316, -0.2408631294965744, -0.013212524354457855, 0.0017455294728279114, -0.07532061636447906, 0.12313218414783478, -0.3026684522628784, -0.08315625786781311, 0.11617821455001831, 0.2808748483657837, -0.20459672808647156, -0.2897411286830902, -0.634830117225647, -0.19603905081748962, -0.7667273283004761, -0.10091769695281982, -0.22457386553287506, -0.026901595294475555, -0.04574229568243027, 0.24029912054538727, 0.26644667983055115, -0.1687161773443222, -0.13063748180866241, 0.04956773668527603, 0.04206915944814682, -0.2761182188987732, -0.3636624217033386, 0.10345223546028137, -0.19210518896579742, 0.23614123463630676, 0.2059917449951172, -0.025183837860822678, -0.18174520134925842, -0.06619895994663239, -0.1538836658000946, 0.25513994693756104, 0.3604367971420288, -0.0031676068902015686, 0.06693809479475021, -0.021136565133929253, -0.007020287215709686, -0.04316577687859535, -0.41923224925994873, -0.0045987386256456375, -0.07958271354436874, -0.2701922059059143, -0.5315519571304321, 0.47781094908714294, -0.10894262045621872, -0.009723454713821411, 0.22046944499015808, 0.16527971625328064, -0.07409821450710297, 0.5455201268196106, -0.03704086318612099, 1.1979776620864868, 0.06972893327474594, 0.26193171739578247, 0.020001012831926346, 0.06736749410629272, 0.8408924341201782, -0.7155608534812927, 0.3852574825286865, -0.17880868911743164, 0.07535386085510254, -0.10271571576595306, -0.09643679112195969, 0.5330147743225098, 0.15236806869506836, -0.1115497425198555, 0.6340993642807007, 0.08979800343513489, 0.11076533049345016, -0.3829466998577118, 0.04914974421262741, -0.587207019329071, -0.002017637714743614, -0.09553751349449158, -0.10176314413547516, 0.10789193212985992, 0.5783393979072571, -0.1541685312986374, 0.140535369515419, -0.412649542093277, -0.41746288537979126, -0.04357125610113144, -0.04020453616976738, 0.15634694695472717, 0.3821920156478882, -0.2015431672334671, -0.2772362232208252, -0.22755366563796997, 0.0341188982129097, 0.30324339866638184, -0.24503818154335022, 0.11956261098384857, 0.07197652012109756, 0.10278474539518356, -0.133493110537529, -0.08511862903833389, 0.02665543183684349, 0.3381583094596863, -0.16178742051124573, -0.268391489982605, -0.14185264706611633, -0.2589021921157837, -0.29961007833480835, -0.1787227988243103, 0.2115919291973114, 0.3893185555934906, 0.1588391661643982, -0.3468773365020752, 0.6813213229179382, -0.15382227301597595, -0.07830370217561722, 0.05175028741359711, -0.0718400701880455, -0.3309110999107361, 0.2146337926387787, -0.469603955745697, -0.05162615329027176, -0.14457103610038757, 0.284522145986557, 0.5598362684249878, -0.08527742326259613, 0.20965835452079773, 0.04812245815992355, -0.155947744846344, -0.14064571261405945, 0.20612892508506775, 0.06635600328445435, -0.11675544083118439, -0.00884353555738926, -0.00033662840723991394, -0.0602789968252182, -0.11833523213863373, 0.12238043546676636, 0.09609794616699219, 0.17564529180526733, -0.16875618696212769, -0.5080206990242004, 0.03600318729877472, 0.3683107793331146, 0.08854895830154419, -0.12693513929843903, -0.026704538613557816, 0.23836860060691833, 0.34662848711013794, -0.044795889407396317, -0.1975696086883545, -0.04431474581360817, -0.09915202856063843, 0.30872195959091187, 0.19738462567329407, 0.16574299335479736, 0.020200688391923904, 0.09836700558662415, -0.05061085522174835, 0.08206170797348022, -0.2794937193393707, -0.08967076241970062, 0.10345669090747833, 0.21294939517974854, 0.13012853264808655, 0.08393935859203339, 0.10401678085327148, -0.28927794098854065, 0.13517364859580994, -0.10968822985887527, 0.034300945699214935, 0.15330633521080017, -0.2824154198169708, 0.41883862018585205, 0.32412272691726685, 0.22746214270591736, -0.41576653718948364, 0.3026827275753021, -0.33775073289871216, 0.03738448768854141, 0.09537159651517868, 0.12261059135198593, 0.3036292493343353, 0.1579970419406891, -0.22146965563297272, -0.11254848539829254, -0.10136158764362335, 0.08598551899194717, 0.10198365151882172, -0.005394121631979942, 0.0509435310959816, -0.3437860608100891, 0.2998647391796112, 0.5285130143165588, -0.000493217259645462, -0.1901671439409256, 0.1603439748287201, 0.053631965070962906, -0.3772275447845459, -0.00035749003291130066, 0.6144304275512695, -0.11603935062885284, -0.02620534598827362, 0.25473737716674805, 0.2971382141113281, -0.1633603572845459, 0.12144140899181366, 0.17179664969444275, 0.307553768157959, -0.30222341418266296, 0.311413437128067, 0.2198169082403183, 0.2022480070590973, 0.10237681865692139, 0.04380086809396744, -0.059372033923864365, 0.2315729856491089, 0.4631892740726471, 0.05250595510005951, 0.7212813496589661, 0.2852931022644043, 0.17261171340942383, -0.26434949040412903, -0.3424146771430969, 0.3993781805038452, 0.4465332627296448, 0.04467707872390747, -0.0783047005534172, 0.010071568191051483, -0.13941723108291626, 0.005877967923879623, 0.1516018956899643, 0.03434105962514877, 0.2824629843235016, -0.032125286757946014, 0.13385926187038422, 0.14111125469207764, -0.26240646839141846, 0.018719881772994995, -0.07413555681705475, 0.1088448315858841, -0.07341647148132324, 0.43312591314315796, 0.1227409690618515, -0.026700638234615326, 0.12844103574752808, 0.24472801387310028, -0.2824225127696991, 0.14479103684425354, -0.07601882517337799, -0.2901902496814728, 0.244031623005867, 0.0011969618499279022, 0.16479817032814026, 0.2264443039894104, 0.22077181935310364, 0.14774510264396667, -0.18695856630802155, -0.01106623187661171, 0.11913560330867767, -0.07422327995300293, -0.040030404925346375, 0.21722453832626343, -0.08674640953540802, 0.18636463582515717, 0.04430289939045906, 0.0615515261888504, -0.13331174850463867, -0.044411491602659225, 0.18235236406326294, -0.15425840020179749, -0.1811794638633728, 0.011792052537202835, -0.1430218517780304, -0.1555946320295334, -0.19527703523635864, 0.22171778976917267, -0.4802037477493286, -0.031469665467739105, -0.03264930099248886, -0.1143595427274704, -0.17120200395584106, -0.13733837008476257, 0.002443607896566391, -0.11962556838989258, 0.22707703709602356, 0.4151249825954437, 0.0142978485673666, -0.13618804514408112, -0.3554023504257202, -0.3997883200645447, 0.18106719851493835, -0.4627879559993744, 0.1659282147884369, -0.19516734778881073, 0.3386710286140442, 0.14673447608947754, 0.3504430651664734, -0.05125422775745392, 0.1434314250946045, -0.25810331106185913, 0.2402316778898239, -0.15194176137447357, -0.16506896913051605, -0.19288767874240875, -0.0824904814362526, -0.10497875511646271, -0.34929752349853516, -0.007159862667322159, 0.21735000610351562, -0.03680524602532387, 0.0735216960310936, -0.27563565969467163, 0.5410723686218262, -0.16765910387039185, 0.35804542899131775, 0.13309137523174286, 0.25966835021972656, 0.04704859107732773, -0.08775096386671066, 0.2461748868227005, -0.055687010288238525, -0.25595396757125854, 0.18279141187667847, -0.012111509218811989, 0.2132979929447174, -0.4219231605529785, -0.08119365572929382, -0.21494060754776, 0.4899176061153412, -0.02494063228368759, 0.1334860622882843, -0.33246248960494995, 0.18766194581985474, 0.1471928358078003, 0.13258293271064758, -0.05285198241472244, 0.3269250988960266, 0.04152835160493851, -0.10884266346693039, -0.4738568365573883, -0.0035292580723762512, 0.21112529933452606, -0.40247979760169983, -0.44674021005630493, -0.0865471363067627, 0.28536197543144226, -0.14696824550628662, 0.02716248296201229, -0.4059705436229706, 0.008740827441215515, 0.26357918977737427, 0.18906942009925842, 0.05479680001735687, 0.0043813250958919525, -0.16458985209465027, -0.3674694895744324, 0.03276275098323822, -0.46557918190956116, -0.13913331925868988, -0.15702247619628906, 0.09463274478912354, -0.4148329794406891 ]
https://github.com/huggingface/datasets/issues/1790
Maybe the reshuffle step can be added only if the runner is not a DirectRunner ?
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?
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.037829525768756866, 0.05178949236869812, 0.045922502875328064, 0.16189441084861755, 0.2217683047056198, 0.04954952001571655, 0.28777068853378296, 0.30324095487594604, 0.025933735072612762, 0.17993353307247162, 0.29103487730026245, -0.0192488394677639, 0.10451503098011017, -0.023228149861097336, 0.11003194749355316, -0.37407535314559937, 0.30710288882255554, -0.037049975246191025, -0.09599152952432632, -0.2818303108215332, -0.4426356256008148, 0.10543996095657349, -0.3799927234649658, -0.1579354852437973, -0.00318845734000206, 0.2331445962190628, -0.05683603137731552, 0.26541733741760254, 0.2003733217716217, -0.14373567700386047, -0.034540191292762756, -0.20572224259376526, -0.09999716281890869, 0.3504475951194763, -0.00012388898176141083, 0.22050347924232483, 0.31992319226264954, -0.2937648892402649, -0.24197712540626526, -0.15625929832458496, 0.02312164008617401, -0.32154688239097595, -0.1388465166091919, -0.3631036579608917, -0.10166597366333008, -0.025345440953969955, 0.06650400161743164, -0.38199013471603394, 0.6048765778541565, 0.19281497597694397, 0.10985954105854034, 0.4210021495819092, -0.020772382616996765, -0.014778051525354385, 0.37875738739967346, -0.08651871979236603, -0.10000817477703094, -0.07794593274593353, -0.20107470452785492, 0.22937268018722534, -0.1714308261871338, 0.3713361620903015, -0.2388276755809784, 0.008769683539867401, 0.003212633077055216, -0.27862244844436646, -0.08512970805168152, -0.4114533066749573, 0.1897355169057846, 0.2687947154045105, 0.4893786311149597, -0.27171680331230164, -0.22487440705299377, -0.21711406111717224, 0.002334699034690857, -0.06651824712753296, 0.28096574544906616, 0.0015106983482837677, 0.06603878736495972, 0.008656954392790794, 0.511803150177002, -0.30657345056533813, 0.1025717556476593, -0.0175950825214386, -0.10903530567884445, 0.6667246222496033, 0.21839936077594757, 0.35716331005096436, -0.09042549133300781, 0.19536474347114563, 0.3329966068267822, -0.2005525827407837, 0.06528884917497635, 0.12462354451417923, -0.3468626141548157, -0.0545843280851841, 0.03734500706195831, 0.12321974337100983, -0.16774612665176392, -0.009197942912578583, -0.2472330778837204, 0.16283293068408966, 0.30502796173095703, 0.06365278363227844, 0.04054434224963188, 0.23899635672569275, 0.16418878734111786, 0.3014986217021942, 0.2608811855316162, -0.3187677562236786, 0.13403916358947754, 0.01626175455749035, 0.1202593743801117, -0.5691351890563965, -0.5156905651092529, 0.3740118443965912, 0.019028224050998688, -0.02612118422985077, -0.15887005627155304, -0.07682308554649353, -0.3505401909351349, -0.2740904688835144, -0.05332237482070923, 0.3207162618637085, 0.1593184769153595, 0.3862248659133911, 0.13747373223304749, 0.3043719232082367, -0.2998506724834442, -0.18067613244056702, -0.09333714842796326, 0.10232570767402649, -0.2912922501564026, 0.04538998752832413, -0.08077868074178696, 0.08105868846178055, 0.1793285608291626, -0.15455394983291626, 0.19758498668670654, 0.23244622349739075, -0.016183976083993912, 0.08080463111400604, -0.05131065472960472, 0.4848628640174866, 0.20389826595783234, 0.3424088954925537, 0.43028053641319275, 0.17340172827243805, -0.21731840074062347, 0.37051984667778015, -0.4540526568889618, -0.3109498620033264, 0.19284039735794067, -0.010565796867012978, -0.18691954016685486, 0.06782922893762589, -0.0408778116106987, -0.04478498175740242, 0.19605198502540588, -0.16273732483386993, 0.2673737406730652, -0.12607431411743164, -0.13564707338809967, -0.29886940121650696, 0.04025966674089432, 0.6308398842811584, -0.1694735288619995, -0.07109874486923218, 0.057862646877765656, -0.09613247215747833, 0.14747530221939087, -0.07686102390289307, -0.03195355832576752, 0.20581433176994324, -0.29016947746276855, -0.035182222723960876, 0.9126725196838379, -0.5441176891326904, 0.04659649729728699, -0.09091659635305405, -0.30124056339263916, 0.03951787203550339, 0.5204705595970154, -0.08600520342588425, -0.2685617506504059, -0.25024959444999695, -0.0669795572757721, 0.2802209258079529, 0.07109419256448746, 0.10198502242565155, -0.2831765413284302, 0.11589634418487549, 0.19969424605369568, 0.20405259728431702, 0.3477715849876404, 0.133768230676651, -0.026322487741708755, 0.30893003940582275, 0.13290010392665863, -0.04374251887202263, 0.21098987758159637, 0.38106054067611694, -0.31029361486434937, 0.09535112231969833, 0.32888704538345337, 0.13898798823356628, -0.036351628601551056, 0.2736402451992035, -0.23403365910053253, 0.12618455290794373, 0.2200854867696762, -0.08633271604776382, -0.049134574830532074, -0.35384491086006165, -0.4471889138221741, -0.17666731774806976, -0.01771540939807892, 0.04791377857327461, 0.10067405551671982, 0.2592095136642456, -0.4386265277862549, 0.35041114687919617, -0.23825867474079132, 0.1331077516078949, -0.33132776618003845, 0.37798604369163513, -0.12919026613235474, -0.009474417194724083, -0.035746462643146515, 0.1551733911037445, 0.10239425301551819, -0.26087597012519836, -0.011766411364078522, 0.38219720125198364, 0.18477830290794373, 0.0009458921849727631, 0.06612040847539902, -0.2647802233695984, 0.11083913594484329, -0.008817903697490692, 0.3106173276901245, 0.22227752208709717, -0.04233195260167122, -0.1995379626750946, 0.15823204815387726, 0.38154011964797974, -0.026356123387813568, 0.5534001588821411, 0.07675322890281677, 0.038849323987960815, 0.09333876520395279, 0.0327165350317955, -0.17534667253494263, -0.09972144663333893, 0.36746662855148315, 0.27493080496788025, 0.1782640516757965, -0.17332898080348969, -0.038780294358730316, -0.11638394743204117, 0.6952414512634277, 0.1830938309431076, 0.1338064819574356, 0.004837158601731062, -0.26904964447021484, 0.15149807929992676, -0.005978727713227272, 0.07462139427661896, 0.3360254764556885, 0.20215238630771637, 0.03812871873378754, 0.17662206292152405, 0.20830537378787994, -0.16544240713119507, 0.04272584617137909, 0.11874482780694962, 0.32860204577445984, 0.3047616183757782, -0.20406728982925415, -0.09143601357936859, -0.3562951385974884, -0.07284190505743027, -0.027283422648906708, 0.07377792149782181, -0.19989928603172302, -0.011914141476154327, -0.25388187170028687, -0.4885880649089813, -0.46479111909866333, -0.02207804284989834, -0.5278831720352173, -0.3266160488128662, 0.18994146585464478, 0.017820188775658607, -0.15341316163539886, 0.5467298626899719, 0.3333819508552551, -0.1433529257774353, -0.006054520606994629, -0.41901353001594543, -0.20953616499900818, -0.2616886794567108, -0.28979820013046265, 0.009899847209453583, 0.34420210123062134, -0.015085112303495407, 0.06477449089288712, -0.38195136189460754, -0.09016937017440796, -0.161002516746521, -0.20000424981117249, 0.05204169079661369, -0.03571859374642372, -0.3044554889202118, -0.0490274615585804, 0.38311973214149475, -0.16673317551612854, 0.02696549892425537, 0.3886786997318268, 0.12564077973365784, -0.2855384349822998, 0.21236038208007812, 0.14142121374607086, 0.09060423821210861, 0.02175409346818924, -0.5343977808952332, -0.26196321845054626, -0.4425387382507324, -0.1127430647611618, 0.3377592861652374, -0.017936445772647858, -0.21488343179225922, 0.25429779291152954, -0.1770939975976944, 0.014104072004556656, -0.2195473313331604, -0.047656476497650146, -0.01880982518196106, 0.2171596735715866, -0.08232435584068298, -0.23774707317352295, 0.14540895819664001, -0.14839500188827515, -0.04913661256432533, 0.16278314590454102, -0.1970963329076767, -0.2041374146938324, 0.23596405982971191, -0.21190032362937927, -0.1554112583398819, 0.62916100025177, 0.7919955253601074, -0.058462757617235184, 0.05166952311992645, -0.0522565133869648, -0.04507380723953247, -0.12963704764842987, -0.045717284083366394, 0.4874379336833954, -0.04429706931114197, 0.37778398394584656, -0.001631423830986023, 0.8330234885215759, -0.0795278325676918, 0.5151055455207825, 0.24860495328903198, 0.0314510241150856, 0.3576626777648926, -0.589561939239502, 0.07509745657444, 0.14008145034313202, 0.18108031153678894, -0.08090031147003174, 0.1826244443655014, 0.08488442748785019, 0.22796733677387238, -0.4252327084541321, -0.28320667147636414, -0.15904955565929413, -0.3067364990711212, 0.24245420098304749, -0.20190978050231934, 0.04920109733939171, -0.020922508090734482, -0.007637083530426025, -0.0459684357047081, 0.08376061916351318, 0.13039930164813995, 0.4588717222213745, -0.0162467323243618, 0.11490828543901443, -0.3714069128036499, -0.19826354086399078, -0.26976892352104187, 0.4062991142272949, -0.037550341337919235, 0.00898672640323639, -0.01097002625465393, -0.3440273106098175, 0.05778868868947029, 0.00957544893026352, 0.724785327911377, -0.2223728746175766, -0.215999573469162, 0.13618458807468414, 0.06583663821220398, -0.39695942401885986, -0.26715344190597534, 0.1685897409915924, 0.11046108603477478, -0.11297649145126343, -0.06032517924904823, -0.19907575845718384, 0.0028695985674858093, 0.20136311650276184, 0.350261390209198, -0.1858437955379486, -0.25657153129577637, -0.6710649132728577, -0.12834376096725464, -0.6659097075462341, 0.034569382667541504, -0.023528970777988434, -0.03808184340596199, 0.15077181160449982, 0.19703231751918793, 0.1336764246225357, -0.4105210602283478, 0.006041474640369415, -0.033990420401096344, 0.10678539425134659, -0.19639398157596588, -0.3931008577346802, 0.08387257158756256, 0.1498657613992691, 0.01192709244787693, 0.18186531960964203, 0.0489204004406929, -0.19279542565345764, -0.022461755201220512, -0.09400011599063873, 0.3057219386100769, 0.3254753351211548, -0.12109199166297913, 0.20268447697162628, -0.0988028347492218, -0.13698287308216095, 0.05811165273189545, -0.2772011458873749, 0.08250029385089874, 0.021235879510641098, -0.2918606698513031, -0.5804409384727478, 0.5959300994873047, 0.02383064478635788, -0.06113996356725693, 0.49125850200653076, 0.23905149102210999, -0.21070055663585663, 0.517857551574707, -0.11791810393333435, 1.128365397453308, -0.04163217544555664, 0.21601521968841553, 0.13657890260219574, -0.03060775250196457, 0.6529220342636108, -0.7152811884880066, 0.3328052759170532, -0.24997150897979736, 0.1918947994709015, -0.10732109844684601, -0.13814477622509003, 0.45513400435447693, 0.02307862415909767, -0.00008561462163925171, 0.6919451951980591, -0.06967148929834366, 0.22390422224998474, -0.28210654854774475, -0.11957578361034393, -0.22989583015441895, 0.014180522412061691, -0.2873300015926361, -0.1048290804028511, 0.04900210350751877, 0.5750826597213745, -0.26095038652420044, 0.1015169769525528, -0.2526405453681946, -0.3439987897872925, -0.09647484123706818, -0.053898029029369354, -0.11339941620826721, 0.10038097202777863, -0.2506747543811798, -0.3562537133693695, -0.17331886291503906, 0.19025512039661407, 0.42157554626464844, -0.10462257266044617, 0.06312751024961472, 0.20588789880275726, 0.05683811381459236, 0.0017739757895469666, -0.11256308853626251, 0.10851801931858063, 0.21837647259235382, -0.17175373435020447, -0.14449429512023926, -0.06250288337469101, -0.2645849883556366, -0.37300893664360046, -0.11241762340068817, 0.0927063375711441, 0.7888134717941284, 0.2436782866716385, -0.13666388392448425, 0.5964674949645996, 0.044772908091545105, -0.05973769724369049, 0.040212541818618774, -0.19730597734451294, -0.05209231376647949, 0.024471517652273178, -0.3202803432941437, -0.08794693648815155, -0.1904219537973404, 0.3382103443145752, 0.5054775476455688, -0.1090092882514, 0.36842846870422363, 0.0020970329642295837, -0.06416136026382446, -0.10227333009243011, 0.14131495356559753, 0.0933736264705658, -0.12114524841308594, 0.03213457763195038, 0.1755928099155426, -0.1490764021873474, -0.18306922912597656, -0.06481589376926422, 0.03597612306475639, 0.11657668650150299, -0.10929819941520691, -0.3471044898033142, 0.009777054190635681, 0.18672460317611694, 0.08180013298988342, -0.07499028742313385, -0.11928364634513855, 0.41467973589897156, 0.3110111355781555, -0.2838914692401886, -0.1570916622877121, -0.16633042693138123, 0.05614040791988373, 0.13898059725761414, 0.046808693557977676, 0.32873159646987915, -0.06591282039880753, 0.21540074050426483, 0.0019714534282684326, -0.0859810933470726, -0.20710329711437225, -0.07547002285718918, 0.05074547231197357, 0.23608209192752838, 0.1155920922756195, 0.1225413978099823, 0.2319333255290985, -0.25298821926116943, 0.11900341510772705, -0.13330717384815216, -0.04716723412275314, 0.2049921751022339, -0.17433194816112518, 0.2479427456855774, 0.4722282886505127, 0.1558712273836136, -0.45408546924591064, 0.11519920825958252, -0.2590802013874054, -0.07211919128894806, 0.017685871571302414, 0.2242809534072876, 0.25579768419265747, 0.16424739360809326, -0.32912084460258484, -0.06615433096885681, -0.007063698023557663, 0.052362702786922455, 0.017369769513607025, -0.13784460723400116, 0.010823115706443787, -0.20077942311763763, 0.2597390115261078, 0.40375471115112305, -0.11654141545295715, -0.1918816864490509, 0.23567727208137512, 0.009752266108989716, -0.614834725856781, 0.12831830978393555, 0.5827645063400269, -0.04362869635224342, 0.034231461584568024, 0.29168692231178284, 0.21844899654388428, -0.2475515604019165, 0.3061932325363159, 0.19870270788669586, 0.12658283114433289, -0.3680983781814575, 0.39580780267715454, 0.283743292093277, 0.1989346444606781, 0.17371413111686707, 0.3414802551269531, -0.18617738783359528, 0.16206440329551697, 0.6131902933120728, -0.07791149616241455, 0.5723163485527039, 0.21952277421951294, -0.05280711129307747, -0.3409300446510315, -0.3440142273902893, 0.3430028557777405, 0.4752596616744995, 0.22660869359970093, -0.20651569962501526, 0.154410719871521, -0.1298750936985016, -0.03062097728252411, -0.029771961271762848, -0.19272053241729736, 0.08748149126768112, -0.10079922527074814, 0.08343376219272614, 0.029232077300548553, -0.31538814306259155, 0.00022393465042114258, -0.032626934349536896, 0.10683992505073547, -0.07365509867668152, 0.23269681632518768, -0.011954814195632935, -0.000003982335329055786, 0.03835379332304001, 0.2689734697341919, -0.25075221061706543, 0.04485112428665161, -0.07444792240858078, -0.10200220346450806, 0.23033401370048523, -0.09827841818332672, 0.24544066190719604, 0.1394626349210739, 0.09905797243118286, 0.03198909014463425, -0.06423664093017578, -0.18911641836166382, 0.09956401586532593, 0.06980384141206741, -0.09102180600166321, 0.08977940678596497, -0.17946410179138184, 0.16522648930549622, 0.16638663411140442, 0.05414252728223801, -0.1633564829826355, 0.13568134605884552, 0.052620984613895416, -0.12101220339536667, -0.16232013702392578, 0.26070159673690796, -0.14488844573497772, -0.08553633838891983, -0.2999682128429413, 0.1323326677083969, -0.4391358494758606, -0.03618049994111061, 0.06920130550861359, 0.10969023406505585, -0.2089391052722931, -0.22507397830486298, -0.005008861422538757, 0.057738203555345535, 0.1765892505645752, 0.368608683347702, -0.15028826892375946, -0.1989365667104721, -0.2875458002090454, -0.48947104811668396, 0.15400029718875885, -0.4054340124130249, 0.218338280916214, -0.20659147202968597, 0.21825867891311646, 0.1433667242527008, 0.2793426513671875, 0.16315782070159912, -0.0037902817130088806, -0.17840860784053802, 0.11139018833637238, -0.22460679709911346, -0.15810520946979523, -0.19966092705726624, 0.09844572842121124, -0.1441679298877716, -0.36819276213645935, -0.030577898025512695, 0.04760092869400978, -0.015962909907102585, 0.023094695061445236, -0.2837209701538086, 0.5991746783256531, -0.250339150428772, 0.28830549120903015, 0.00007263012230396271, 0.21580122411251068, 0.125024676322937, -0.0017145946621894836, 0.1506820023059845, -0.12119010090827942, -0.43734118342399597, 0.11468343436717987, -0.07576572895050049, 0.2590181529521942, -0.3916989862918854, -0.15590308606624603, -0.31269872188568115, 0.42464715242385864, 0.0334186851978302, 0.35347670316696167, -0.29414090514183044, 0.2738614082336426, 0.12482069432735443, 0.24212612211704254, -0.07829488813877106, 0.24047331511974335, 0.03721174970269203, -0.04177175089716911, -0.5601402521133423, -0.09013477712869644, 0.2070988118648529, -0.48252829909324646, -0.3584975004196167, -0.04748418927192688, 0.1790841817855835, -0.06801874190568924, 0.09585601091384888, -0.4054121673107147, 0.13500258326530457, 0.306163489818573, 0.09240192919969559, 0.14012449979782104, 0.03719797357916832, -0.4364372789859772, -0.18978454172611237, -0.018178462982177734, -0.6344158053398132, -0.15100426971912384, -0.19683042168617249, 0.10207749903202057, -0.35241660475730896 ]
https://github.com/huggingface/datasets/issues/1786
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) ```
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!
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.3074783980846405, -0.04643075168132782, -0.06252643465995789, 0.4651073217391968, 0.1305699199438095, 0.20379097759723663, 0.27659621834754944, 0.580761730670929, -0.4295652508735657, 0.015045840293169022, -0.3925747275352478, 0.25409528613090515, 0.18384906649589539, 0.3340369164943695, -0.19449461996555328, -0.48501503467559814, 0.09063305705785751, 0.2447197586297989, 0.05136546120047569, -0.10601365566253662, -0.07859718054533005, 0.16368798911571503, -0.43112680315971375, -0.10090906172990799, -0.5181133151054382, -0.18123115599155426, -0.2913367748260498, 0.11261330544948578, -0.3164637088775635, 0.03343567997217178, 0.0643467903137207, 0.19152826070785522, 0.27707624435424805, 0.43183693289756775, -0.00012366005103103817, 0.02672348916530609, -0.05487009137868881, -0.25157636404037476, -0.14596685767173767, -0.09038654714822769, 0.04580196738243103, 0.09037788957357407, 0.197030171751976, -0.3328787386417389, -0.18142051994800568, -0.41635164618492126, -0.0681706964969635, 0.001548871397972107, 0.6935944557189941, 0.43428829312324524, 0.008110826835036278, -0.41641950607299805, -0.005543559789657593, 0.16472077369689941, 0.367272287607193, 0.3402591347694397, -0.022908411920070648, -0.06570938974618912, 0.1916343867778778, 0.0812230259180069, 0.08230465650558472, 0.08324430137872696, -0.015837326645851135, 0.34405088424682617, 0.003366442397236824, 0.18528282642364502, -0.20759496092796326, -0.43509453535079956, 0.020141838118433952, 0.1973954737186432, 0.6681488156318665, -0.37294602394104004, -0.1618386209011078, -0.20380935072898865, -0.13451212644577026, -0.41802552342414856, -0.07790008187294006, 0.44232070446014404, -0.1205710917711258, 0.1378149539232254, -0.23839889466762543, 0.1256263256072998, -0.24455596506595612, 0.3950926661491394, -0.06539702415466309, 0.24460077285766602, -0.0851912647485733, 0.15800733864307404, 0.14696155488491058, 0.22073106467723846, 0.17953942716121674, -0.23895010352134705, -0.19696560502052307, 0.060934387147426605, -0.33901745080947876, -0.1809934377670288, -0.4194636642932892, -0.2334727644920349, 0.26939135789871216, 0.42707961797714233, -0.18692904710769653, -0.13056036829948425, -0.1368003487586975, -0.13552649319171906, 0.5117039084434509, 0.030142206698656082, 0.2042323350906372, 0.34334251284599304, 0.0389578714966774, -0.03473509103059769, -0.2185378521680832, -0.16800150275230408, -0.13788822293281555, -0.2395496517419815, -0.07266505807638168, 0.34659141302108765, 0.29151076078414917, -0.27634119987487793, -0.10295279324054718, -0.506201446056366, -0.5687620639801025, -0.28313326835632324, 0.013206824660301208, 0.22617852687835693, 0.09553369879722595, -0.08740168809890747, -0.07268130034208298, 0.38774722814559937, -0.3162636160850525, -0.18199047446250916, 0.02310464158654213, 0.07185676693916321, -0.26173675060272217, -0.07027024030685425, 0.3142622411251068, -0.4424532353878021, 0.12382274866104126, -0.07492899149656296, 0.045228589326143265, -0.332841694355011, 0.16513845324516296, -0.39379268884658813, 0.05457942187786102, 0.20886579155921936, 0.21889673173427582, -0.06642856448888779, 0.1271423101425171, 0.14473974704742432, -0.23340454697608948, 0.10490038990974426, -0.18086671829223633, -0.08017654716968536, 0.15582720935344696, -0.019695913419127464, 0.061152853071689606, 0.13513493537902832, -0.4866172969341278, 0.2976647615432739, 0.08968128263950348, 0.1010289192199707, 0.036778636276721954, 0.15949209034442902, -0.14070719480514526, -0.08473271876573563, 0.22504684329032898, 0.13439032435417175, -0.2925605773925781, 0.08477577567100525, 0.022885657846927643, -0.28190433979034424, 0.24531680345535278, 0.11086002737283707, -0.12382316589355469, 0.5956166386604309, -0.03305141627788544, 0.08151791989803314, 0.47773343324661255, -0.7511565685272217, -0.1438724249601364, 0.37509235739707947, 0.26847198605537415, -0.26788130402565, 0.07328642904758453, -0.1370614618062973, 0.582489550113678, -0.060070984065532684, -0.1912478506565094, 0.5537317395210266, -0.27109524607658386, 0.016522705554962158, 0.0668276697397232, -0.25302475690841675, -0.08882968127727509, 0.2614719569683075, 0.01906847395002842, -0.07781284302473068, 0.22628971934318542, 0.14657831192016602, 0.3665560185909271, -0.10428103804588318, 0.30878594517707825, -0.0434688925743103, 0.24272899329662323, 0.007152264937758446, 0.17868748307228088, -0.3716314136981964, -0.2358858436346054, 0.09320811927318573, 0.006229564547538757, -0.014147654175758362, 0.07565817981958389, -0.22748440504074097, -0.20977157354354858, -0.3526073098182678, -0.37825584411621094, -0.15380701422691345, 0.004806820303201675, -0.1962912529706955, 0.2621349096298218, 0.0109238401055336, -0.28936177492141724, 0.033971309661865234, 0.0975753664970398, 0.4323086142539978, 0.04696473851799965, 0.447907954454422, 0.12554939091205597, -0.08861925452947617, 0.02992163598537445, 0.052088234573602676, 0.0634896382689476, -0.19690681993961334, -0.13044646382331848, 0.4200088679790497, 0.38734009861946106, -0.08587507158517838, -0.027635358273983, -0.2635812759399414, 0.2716655135154724, -0.23468035459518433, 0.03637754172086716, -0.013142251409590244, 0.06686270236968994, -0.2364051342010498, -0.39312025904655457, 0.15132436156272888, -0.29540103673934937, 0.2507546842098236, -0.004537269473075867, 0.13673046231269836, 0.14031529426574707, -0.266244500875473, 0.16034512221813202, 0.02535349130630493, -0.10902795195579529, -0.2627275884151459, 0.2647823691368103, -0.30215704441070557, 0.13179084658622742, -0.06272486597299576, 0.44270196557044983, -0.1344832479953766, -0.02710115537047386, 0.0019467517267912626, -0.014633186161518097, 0.34226319193840027, 0.12778466939926147, 0.43837013840675354, 0.3600810766220093, 0.1405370533466339, 0.11694587767124176, 0.11880631744861603, 0.26409366726875305, -0.03301791101694107, 0.17764809727668762, 0.147796630859375, 0.21399806439876556, 0.15537209808826447, -0.24124014377593994, -0.19303295016288757, -0.030204791575670242, -0.03563698008656502, 0.296505868434906, 0.30598872900009155, -0.08893892914056778, 0.1264163702726364, -0.23077179491519928, -0.4963013231754303, -0.33968549966812134, -0.3279793858528137, 0.12895825505256653, 0.0233277827501297, 0.03317273035645485, 0.04733103886246681, 0.29060739278793335, 0.12351138144731522, 0.18985183537006378, 0.03647930920124054, -0.07401201874017715, 0.06000019609928131, -0.06857834756374359, -0.1514948606491089, -0.13499924540519714, 0.06682686507701874, 0.3735646903514862, 0.7918115258216858, 0.23712579905986786, -0.3188595175743103, 0.010652206838130951, -0.2567155659198761, 0.07967697083950043, 0.22328943014144897, -0.3098643124103546, 0.0498286709189415, 0.1674468070268631, -0.018457528203725815, 0.00966797024011612, -0.09925641119480133, 0.12964551150798798, 0.08141347765922546, -0.19135193526744843, 0.007976263761520386, -0.04987349361181259, 0.07597805559635162, -0.09455375373363495, -0.5739894509315491, -0.14706464111804962, -0.25876569747924805, 0.4122140109539032, 0.23811370134353638, 0.1185842752456665, -0.09718519449234009, 0.08230443298816681, 0.09102898836135864, 0.0020555108785629272, 0.03155793994665146, 0.18993587791919708, -0.11195505410432816, 0.11324550211429596, -0.2350585013628006, -0.249963641166687, 0.3675469756126404, 0.1742352694272995, -0.05735667049884796, -0.07868169993162155, -0.212185338139534, 0.23354437947273254, -0.03930160030722618, -0.022711679339408875, 0.07120075076818466, 0.11508846282958984, 0.24292102456092834, -0.23191231489181519, 0.1688639223575592, -0.09023140370845795, 0.06545749306678772, 0.14910098910331726, -0.21398493647575378, 0.262665718793869, -0.13420706987380981, 0.39094898104667664, 0.020190291106700897, 0.6240468621253967, 0.4335102438926697, -0.012047533877193928, 0.03627307713031769, -0.19097521901130676, -0.3649744689464569, -0.07887175679206848, -0.2182035744190216, 0.07004999369382858, -0.11861065030097961, 0.012260235846042633, 0.42960482835769653, 0.29381340742111206, -0.021072905510663986, -0.37323349714279175, -0.32439592480659485, -0.388258695602417, -0.3626784682273865, 0.03442385047674179, -0.17257314920425415, -0.01553858071565628, -0.2830411493778229, 0.033382348716259, 0.2826632559299469, -0.1496889442205429, -0.3008393347263336, 0.28828898072242737, 0.06864500045776367, -0.026858288794755936, -0.47240978479385376, 0.0764361321926117, -0.2553849220275879, 0.37120527029037476, -0.0017330758273601532, -0.1647525429725647, -0.050185032188892365, 0.14390519261360168, 0.3047734498977661, 0.056222960352897644, 0.6318732500076294, 0.012018328532576561, -0.01755440980195999, 0.053803376853466034, -0.03951206058263779, 0.12833601236343384, 0.0321725532412529, -0.3007616400718689, 0.18020083010196686, 0.21794763207435608, 0.06965456902980804, -0.4603877067565918, -0.34809380769729614, 0.34742510318756104, 0.09050875157117844, -0.10738277435302734, -0.05422256886959076, -0.22019082307815552, -0.13840270042419434, -0.42699724435806274, -0.0372312106192112, 0.23812159895896912, 0.04705590382218361, -0.16647085547447205, -0.20256537199020386, -0.05769222974777222, -0.17894721031188965, 0.29000476002693176, 0.08320476859807968, 0.2673644423484802, -0.15050369501113892, 0.16344964504241943, 0.031985871493816376, -0.025631677359342575, 0.5261571407318115, 0.550987184047699, -0.23886339366436005, -0.6641387939453125, -0.08237253874540329, -0.2544228136539459, 0.41431742906570435, 0.018877100199460983, -0.19845888018608093, -0.05767960473895073, -0.047488145530223846, -0.049234699457883835, -0.049397990107536316, 0.050316594541072845, 0.275256872177124, -0.07992716133594513, -0.42174509167671204, -0.3295521140098572, 0.29778462648391724, -0.04904284328222275, 0.10137742757797241, 0.3222388029098511, -0.05350866541266441, -0.34482240676879883, 0.40466412901878357, 0.17551249265670776, 0.803297758102417, -0.31544381380081177, -0.0005887486040592194, -0.01634155958890915, 0.022042348980903625, 0.4005241394042969, -0.6602146029472351, 0.0886542797088623, -0.23856788873672485, -0.11239466071128845, -0.1394272744655609, -0.09394308924674988, 0.2245836853981018, 0.4019753634929657, -0.45665574073791504, 0.1663922220468521, 0.16984063386917114, -0.09225262701511383, -0.2540281116962433, 0.15800133347511292, -0.16842639446258545, -0.17707332968711853, -0.18916305899620056, -0.0005676150321960449, -0.17978304624557495, 0.12429821491241455, 0.088383749127388, -0.03293173760175705, -0.18700140714645386, -0.019758671522140503, -0.0014660656452178955, 0.080852210521698, -0.11257414519786835, -0.10865116864442825, -0.19987626373767853, -0.2284722626209259, 0.21893781423568726, 0.605916440486908, 0.22064167261123657, -0.17429423332214355, -0.12183695286512375, 0.10383462905883789, -0.09084522724151611, -0.1631281077861786, -0.09841027855873108, -0.06590024381875992, 0.17421457171440125, -0.06483818590641022, -0.3266785740852356, 0.14321628212928772, 0.1472800076007843, -0.18520964682102203, 0.24267137050628662, 0.17043280601501465, 0.10301753878593445, -0.5554346442222595, -0.00989462062716484, 0.06675393879413605, -0.09161724150180817, -0.11788159608840942, 0.01226314902305603, 0.0074493661522865295, -0.22269408404827118, 0.3630225658416748, -0.3571639358997345, -0.2547813057899475, -0.09812512993812561, -0.015484150499105453, 0.08179580420255661, -0.04315449297428131, 0.2503521740436554, 0.46101367473602295, 0.08029744029045105, -0.21306131780147552, 0.33131566643714905, -0.046894703060388565, -0.565829873085022, 0.19250912964344025, -0.0715363621711731, 0.21219496428966522, 0.20294612646102905, 0.6457029581069946, -0.12375293672084808, -0.07733052968978882, -0.10403207689523697, -0.39822128415107727, -0.18004649877548218, 0.18810705840587616, 0.0979691669344902, 0.24437108635902405, 0.10313427448272705, 0.457224577665329, 0.19461625814437866, 0.16446800529956818, -0.09129474312067032, 0.42080923914909363, 0.0160166397690773, 0.2344454526901245, -0.24411122500896454, 0.020230190828442574, 0.19394943118095398, 0.08314312994480133, -0.07264494150876999, 0.12580427527427673, -0.011015372350811958, -0.10457858443260193, -0.1326722502708435, 0.2093547284603119, 0.039248548448085785, -0.042921282351017, -0.16821250319480896, -0.20465239882469177, -0.26913702487945557, -0.20621907711029053, 0.12931346893310547, -0.0536734014749527, 0.04046174883842468, 0.38891178369522095, 0.5246460437774658, 0.05889289826154709, -0.5523725152015686, -0.08314439654350281, -0.031493209302425385, 0.017871994525194168, 0.1262950599193573, 0.10040417313575745, -0.024442726746201515, 0.005022063851356506, -0.5351826548576355, -0.04380550608038902, 0.48805946111679077, -0.04854487627744675, 0.3229615092277527, 0.012444030493497849, 0.36698198318481445, -0.17748132348060608, 0.46262291073799133, 0.37827247381210327, -0.017946386709809303, 0.19935345649719238, 0.1697978526353836, 0.05395149439573288, 0.017697706818580627, 0.18497341871261597, 0.2205454260110855, -0.000657692551612854, 0.016036540269851685, 0.4903230667114258, -0.26906508207321167, 0.1666276454925537, -0.3717581331729889, -0.042149316519498825, 0.321077823638916, 0.15426842868328094, 0.30331951379776, 0.9101153612136841, -0.05958838388323784, 0.08664822578430176, 0.12546031177043915, 0.005780566483736038, 0.08390249311923981, 0.45295482873916626, -0.06340160220861435, 0.36246174573898315, -0.28183817863464355, 0.10661739110946655, 0.20833106338977814, -0.1350649893283844, 0.1179995909333229, 0.1469714641571045, -0.16051945090293884, -0.24243828654289246, -0.06348183006048203, 0.6651055216789246, -0.06483747810125351, -0.17754468321800232, -0.26961642503738403, 0.36918264627456665, 0.2023307830095291, 0.08462613821029663, -0.32159560918807983, -0.08356308937072754, 0.2510617673397064, -0.10736385732889175, -0.19845832884311676, -0.2229514867067337, 0.066663458943367, 0.24173495173454285, 0.021623831242322922, -0.05598815530538559, 0.05584493651986122, -0.08046744763851166, 0.18269620835781097, -0.043948203325271606, 0.003715384751558304, 0.14320802688598633, -0.07180407643318176, 0.36007747054100037, 0.16030855476856232, 0.09384185075759888, 0.0030689258128404617, -0.16674986481666565, 0.019493013620376587, -0.04232070595026016, -0.0701034814119339, 0.3184692859649658, 0.2982744872570038, 0.10525552183389664, 0.41705796122550964, 0.24473446607589722, 0.04213225841522217, -0.023673545569181442, -0.13603810966014862, -0.014391632750630379, -0.03992733731865883, -0.2733762860298157, 0.38645488023757935, 0.011980084702372551, -0.09348215907812119, -0.018207846209406853, -0.05598026514053345, -0.388708233833313, -0.1473829746246338, 0.021849174052476883, -0.28041574358940125, 0.06265290081501007, -0.07459459453821182, -0.041468799114227295, -0.0644681453704834, 0.24261286854743958, -0.05617547780275345, 0.29433172941207886, -0.33160310983657837, -0.14985834062099457, -0.19634655117988586, -0.13897866010665894, -0.4514511823654175, -0.5549047589302063, -0.0720992386341095, 0.06732700765132904, 0.021477170288562775, 0.23266160488128662, 0.09269782900810242, -0.1600029319524765, 0.14979422092437744, 0.5700588822364807, -0.16297978162765503, -0.2597332000732422, -0.27906811237335205, 0.3490466773509979, -0.19561074674129486, -0.38952112197875977, 0.08401355147361755, 0.3195917010307312, -0.20473462343215942, 0.14592689275741577, -0.15143999457359314, 0.4545043706893921, 0.0031891576945781708, -0.35989925265312195, 0.06291735172271729, 0.5531312227249146, 0.23462125658988953, 0.36083200573921204, 0.16408666968345642, 0.05731343477964401, -0.07045616954565048, 0.20120030641555786, 0.11748547852039337, 0.29133230447769165, -0.3149191737174988, 0.20035746693611145, -0.10853942483663559, 0.08946090936660767, -0.00034033507108688354, -0.014992661774158478, -0.3560352623462677, 0.06523019820451736, -0.07072664797306061, 0.19268953800201416, 0.5887851119041443, 0.5346589684486389, -0.27995219826698303, -0.19009900093078613, -0.2888096868991852, -0.1398525834083557, 0.162296324968338, -0.5503793954849243, -0.19008006155490875, 0.19415229558944702, 0.04975754767656326, 0.3609685003757477, -0.05542965605854988, -0.5752096176147461, -0.002569347620010376, 0.28394415974617004, -0.15105652809143066, -0.16498145461082458, 0.2527158260345459, 0.3656671941280365, -0.13216835260391235, 0.059467166662216187, 0.05270253121852875, 0.13994044065475464, -0.25194990634918213, -0.014926441013813019, -0.23721227049827576 ]
https://github.com/huggingface/datasets/issues/1785
Hi ! What do you mean by "disk_usage(".").free` can't compute on the cluster's shared disk" exactly ? Does it return 0 ?
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?
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.07774314284324646, -0.4187168776988983, -0.084621861577034, 0.2431601732969284, -0.09701003134250641, 0.15066012740135193, 0.07053473591804504, 0.34012138843536377, 0.39623501896858215, 0.3933160901069641, 0.41839298605918884, -0.13893109560012817, -0.09125030785799026, 0.003891676664352417, -0.17395839095115662, 0.2417321801185608, -0.008229687809944153, -0.06064517796039581, 0.3455672860145569, 0.12748661637306213, -0.40572893619537354, 0.013043941929936409, 0.09445023536682129, -0.37361398339271545, -0.5426242351531982, -0.1880922168493271, -0.16628065705299377, 0.1566854566335678, 0.22696217894554138, -0.22474348545074463, 0.32210642099380493, -0.005494874436408281, -0.10113947093486786, 0.5720781683921814, -0.00011594399984460324, 0.03631226718425751, 0.1715255081653595, -0.18090516328811646, -0.4399377703666687, -0.03869570791721344, 0.2173040807247162, -0.40692245960235596, -0.22335878014564514, -0.3619658946990967, -0.010309278964996338, 0.1603570282459259, -0.05118097364902496, -0.44361239671707153, 0.17652492225170135, -0.06918404251337051, 0.16796931624412537, 0.353005051612854, -0.22030189633369446, -0.09261409938335419, -0.2659411132335663, 0.17672327160835266, -0.04691316932439804, 0.5180590748786926, 0.299262672662735, 0.07531508803367615, -0.2787303626537323, 0.2208094745874405, -0.13332533836364746, 0.16011637449264526, 0.4138146936893463, -0.13599750399589539, -0.0745275616645813, -0.184513658285141, 0.19623760879039764, -0.02686690166592598, 0.4277345538139343, -0.19503232836723328, -0.5273441672325134, -0.5711026191711426, 0.05005272850394249, -0.15977153182029724, 0.43965861201286316, 0.0364261195063591, -0.40968722105026245, 0.12267139554023743, -0.3018592894077301, -0.33726122975349426, -0.20105181634426117, -0.2099776566028595, 0.05320901423692703, 0.16412994265556335, 0.0016835257411003113, 0.08308517932891846, 0.32703283429145813, 0.017501581460237503, -0.025625677779316902, 0.026436083018779755, 0.17296084761619568, 0.2536419928073883, -0.2865466773509979, 0.015176065266132355, -0.09484104812145233, 0.21012353897094727, 0.10111895203590393, 0.21069851517677307, 0.061005692929029465, -0.11254099011421204, 0.07357295602560043, 0.25406700372695923, 0.013657931238412857, 0.246612086892128, -0.2650672197341919, -0.09788823127746582, 0.2030574381351471, -0.003046169877052307, 0.17353901267051697, -0.11331973969936371, 0.048171814531087875, -0.3508071005344391, 0.11620311439037323, -0.018088188022375107, 0.2040129005908966, -0.07148513197898865, -0.38218528032302856, 0.12724778056144714, 0.20500531792640686, 0.3049910068511963, 0.2122819423675537, 0.2848546504974365, 0.08104997128248215, 0.23997880518436432, 0.21884141862392426, 0.19945281744003296, -0.09023421257734299, -0.09682632237672806, -0.1159811019897461, -0.014707387425005436, 0.0885305255651474, 0.16931623220443726, 0.3448054790496826, 0.03677033632993698, 0.2115975022315979, -0.01790434867143631, 0.4590657353401184, -0.1054457575082779, -0.07217598706483841, -0.2352617383003235, -0.1191631555557251, 0.4233517646789551, 0.11977631598711014, 0.011757217347621918, 0.2519824504852295, 0.150050550699234, -0.15103860199451447, 0.26779085397720337, -0.3836438059806824, -0.4553595185279846, 0.04401956498622894, 0.07246271520853043, -0.35284173488616943, 0.20111888647079468, -0.40660935640335083, -0.038440167903900146, 0.30972471833229065, -0.1824396550655365, 0.10116451978683472, 0.0928386002779007, -0.3887101411819458, -0.24627092480659485, 0.13819415867328644, 0.3473312258720398, -0.1142510324716568, 0.0037162378430366516, -0.3107167184352875, 0.16215571761131287, 0.05258776992559433, 0.4145957827568054, 0.1311628520488739, 0.13864347338676453, -0.42772528529167175, 0.13801008462905884, 0.11270667612552643, -0.33084213733673096, -0.541802704334259, 0.30613037943840027, -0.17185187339782715, 0.2516017258167267, 0.5377889275550842, 0.26144638657569885, -0.016333283856511116, -0.23369163274765015, 0.23278650641441345, 0.2714538276195526, -0.2196914553642273, 0.05634518712759018, -0.3533276915550232, -0.2634563446044922, 0.027872353792190552, 0.061429329216480255, 0.3454008102416992, 0.10856457054615021, 0.010947778820991516, -0.00600283220410347, 0.1818707287311554, 0.05497981607913971, 0.2010059654712677, 0.3193238377571106, 0.3190517723560333, -0.3444592356681824, -0.07386577129364014, 0.021724648773670197, -0.5194780826568604, 0.34916234016418457, 0.19307191669940948, -0.21001507341861725, -0.06464962661266327, -0.44329512119293213, -0.2809632420539856, 0.06220775097608566, 0.24829372763633728, 0.3274295926094055, 0.04864651709794998, -0.0373881570994854, 0.24946697056293488, -0.30693525075912476, -0.05964985862374306, 0.166830375790596, -0.2572425901889801, -0.05789858475327492, 0.10287655889987946, -0.037163328379392624, -0.04239144176244736, -0.14003974199295044, 0.04944819211959839, 0.06461046636104584, 0.06502696126699448, 0.13496817648410797, -0.014334872364997864, 0.4134909212589264, -0.10637493431568146, 0.22477194666862488, -0.09035064280033112, 0.134599968791008, 0.15231360495090485, 0.35126110911369324, 0.002052171155810356, 0.17524008452892303, 0.00694698840379715, -0.16976630687713623, -0.11104390770196915, 0.20959797501564026, -0.0455700121819973, 0.2853600084781647, -0.08265846222639084, 0.06405843049287796, 0.062438443303108215, 0.05603852868080139, 0.123775415122509, -0.05928969755768776, 0.29012995958328247, -0.19665707647800446, 0.4879351854324341, 0.08131764829158783, 0.022846758365631104, -0.014420408755540848, 0.06943930685520172, 0.1592281311750412, 0.2913537323474884, 0.15650692582130432, 0.2970966398715973, -0.03452168405056, -0.0058796703815460205, 0.28174054622650146, 0.26641449332237244, 0.1560027301311493, 0.01530950702726841, -0.17531818151474, 0.04518742859363556, -0.20555856823921204, 0.05281992629170418, -0.0503012053668499, 0.15801885724067688, 0.2922106981277466, 0.006730210036039352, -0.29641708731651306, 0.09604685008525848, -0.3090457320213318, 0.21551191806793213, 0.07729803025722504, -0.2874603569507599, -0.05790742486715317, 0.055779822170734406, 0.18281863629817963, 0.0615936703979969, 0.18895941972732544, -0.4589173197746277, -0.3148480951786041, 0.17463597655296326, 0.6444197297096252, -0.2373899668455124, -0.09524264931678772, -0.37296390533447266, 0.47324106097221375, 0.07805272191762924, -0.42579421401023865, -0.026563234627246857, -0.26854658126831055, -0.10555179417133331, 0.017070885747671127, 0.32546550035476685, -0.2578275799751282, 0.3435429036617279, 0.009413644671440125, 0.07134468853473663, -0.4250701367855072, 0.15812285244464874, -0.16978785395622253, 0.026744358241558075, 0.16048882901668549, -0.1307637244462967, 0.335561603307724, -0.12210814654827118, -0.16110184788703918, 0.16005246341228485, -0.03865186870098114, -0.041747696697711945, 0.00918731838464737, 0.1570615917444229, 0.17532777786254883, -0.32326406240463257, 0.03154080733656883, -0.17938262224197388, -0.549516499042511, 0.17439034581184387, -0.18168386816978455, 0.2716464400291443, 0.10364039242267609, 0.1733865737915039, -0.10494745522737503, 0.709981381893158, -0.1731766015291214, -0.249619260430336, -0.6116569638252258, 0.2382912039756775, -0.08035755157470703, -0.02955164946615696, -0.0471709705889225, 0.029627956449985504, 0.2122027575969696, 0.42421871423721313, -0.47824162244796753, -0.400262713432312, -0.16716602444648743, 0.22946766018867493, -0.24203535914421082, -0.03215686231851578, 0.17910373210906982, -0.148654505610466, -0.07347273826599121, -0.14096423983573914, -0.028164230287075043, 0.05282926931977272, 0.009464923292398453, 0.2762107253074646, 0.2927940785884857, 0.21926237642765045, 0.32078441977500916, 0.70623779296875, -0.15945732593536377, 0.2500559091567993, 0.27551835775375366, 0.18174344301223755, 0.6162169575691223, 0.09052622318267822, -0.0536036342382431, 0.04009981080889702, 0.008074067533016205, -0.6150439381599426, 0.018974848091602325, -0.033270709216594696, 0.13807770609855652, -0.02821049839258194, -0.394974946975708, 0.07973653823137283, -0.269003689289093, 0.3064281940460205, -0.440760999917984, 0.26311492919921875, -0.2624959945678711, 0.0036534667015075684, -0.36617034673690796, -0.08880206942558289, -0.027877990156412125, 0.09572476148605347, 0.5163896083831787, 0.19937074184417725, -0.2578814625740051, -0.26609131693840027, -0.5647941827774048, 0.3253156840801239, -0.00604856014251709, 0.124461330473423, -0.3100079894065857, 0.07452917098999023, -0.08088140934705734, 0.010127313435077667, 0.7869895696640015, -0.09053656458854675, 0.21981732547283173, 0.0822388306260109, 0.025765612721443176, -0.5359349250793457, -0.010849326848983765, 0.1368561089038849, 0.38045814633369446, -0.07197001576423645, 0.4385930001735687, -0.1767694503068924, 0.12497177720069885, -0.43941813707351685, 0.36068961024284363, -0.33069199323654175, -0.24158811569213867, -0.38548025488853455, -0.38147467374801636, -0.4833007752895355, 0.44739046692848206, 0.45651665329933167, 0.25278589129447937, -0.048352550715208054, 0.32991042733192444, -0.1702633500099182, -0.014960646629333496, 0.17365172505378723, -0.007580257952213287, 0.4432085156440735, -0.13666664063930511, 0.04138927906751633, 0.10192039608955383, -0.05657856538891792, 0.42775487899780273, 0.41325846314430237, 0.109696164727211, 0.1532113254070282, 0.2755296230316162, 0.015611797571182251, 0.3339523375034332, 0.3349297046661377, -0.07208283245563507, 0.027241535484790802, 0.11594691872596741, 0.24569731950759888, -0.43921083211898804, -0.06493626534938812, -0.3937532305717468, -0.05341074615716934, -0.09026334434747696, -0.020697027444839478, 0.37267374992370605, 0.35260239243507385, 0.017791271209716797, 0.07021543383598328, 0.3179866671562195, -0.31271567940711975, 0.26070788502693176, -0.026027385145425797, 0.8725858926773071, -0.0851956456899643, 0.019044511020183563, 0.06687156856060028, 0.3008272051811218, 0.34014347195625305, -0.4726661443710327, 0.36130765080451965, 0.04408452659845352, -0.2942005395889282, 0.03258149325847626, -0.012193605303764343, -0.021077364683151245, 0.29593417048454285, -0.16884516179561615, 0.4016994833946228, -0.5068141222000122, 0.012194136157631874, -0.09541503340005875, 0.13655301928520203, -0.6846148371696472, -0.3742956817150116, -0.23896728456020355, 0.12068912386894226, -0.1377953290939331, 0.21030044555664062, -0.24510416388511658, 0.10865618288516998, 0.03371375799179077, -0.3128850758075714, -0.3662669062614441, -0.17015346884727478, 0.026717957109212875, 0.303568959236145, -0.1789853572845459, 0.023643270134925842, -0.08937280625104904, 0.13467755913734436, 0.21527810394763947, 0.30104193091392517, -0.14354650676250458, 0.10248035192489624, -0.15729200839996338, -0.05579765513539314, 0.06480616331100464, 0.0752226784825325, 0.11239765584468842, 0.001625746488571167, -0.309686541557312, 0.15746501088142395, -0.25910380482673645, -0.4899291396141052, 0.029062479734420776, -0.04381408542394638, -0.29428988695144653, -0.03387337177991867, -0.2902980446815491, -0.4566001296043396, -0.005463548004627228, -0.08768345415592194, 0.06650684028863907, 0.01917419396340847, -0.11894825845956802, 0.147635355591774, 0.02352558635175228, -0.20440948009490967, 0.11642178893089294, 0.19072356820106506, 0.17154863476753235, -0.34629976749420166, 0.3859963119029999, -0.37319862842559814, -0.08736807107925415, -0.1736939549446106, -0.1504092514514923, -0.13429835438728333, 0.09508256614208221, 0.34302544593811035, -0.0794040858745575, -0.12857958674430847, -0.24275057017803192, -0.23101280629634857, 0.6502939462661743, 0.4262385070323944, -0.14408305287361145, -0.4783766567707062, -0.3731832802295685, 0.26766467094421387, 0.08030012249946594, 0.238160640001297, -0.06412075459957123, -0.09848777949810028, 0.03060866892337799, 0.1129472553730011, -0.2559908926486969, -0.05578716844320297, -0.44073382019996643, 0.007171424105763435, 0.21178573369979858, 0.12637653946876526, 0.2143028974533081, -0.09470582008361816, -0.0827280655503273, 0.1265944093465805, -0.055757492780685425, -0.11263597756624222, 0.04496206343173981, 0.15062779188156128, 0.04691855236887932, 0.19517198204994202, 0.1735435426235199, -0.45882371068000793, 0.23763632774353027, -0.2655065059661865, 0.1753758192062378, 0.41826897859573364, -0.04548150673508644, -0.34155696630477905, 0.07465746998786926, 0.4974750876426697, -0.17092368006706238, 0.1422317922115326, 0.1285942941904068, 0.15464897453784943, -0.2296801209449768, 0.18428683280944824, 0.12514790892601013, 0.14174030721187592, 0.2366863191127777, -0.11207866668701172, 0.22014380991458893, 0.038522131741046906, -0.15457093715667725, 0.06847136467695236, -0.04480207338929176, 0.24782294034957886, 0.2652955651283264, -0.07904484868049622, -0.029399089515209198, 0.033805690705776215, 0.06988374143838882, 0.21730978786945343, -0.2394903302192688, -0.11724904179573059, 0.23962852358818054, -0.02993895299732685, 0.11975669860839844, 0.5013856291770935, 0.38761427998542786, -0.37487363815307617, 0.0745420753955841, 0.09238050132989883, 0.5648562908172607, -0.26017674803733826, 0.04130974039435387, 0.13369518518447876, 0.050606898963451385, 0.003042123280465603, 0.14900991320610046, -0.06330115348100662, 0.38915467262268066, 0.3070390224456787, -0.17135357856750488, 0.21597212553024292, 0.24081236124038696, -0.12086121737957001, -0.14976312220096588, -0.4051087200641632, 0.08635252714157104, 0.08172877132892609, 0.042583052068948746, 0.1304461508989334, -0.31927669048309326, -0.04760032892227173, -0.364190936088562, -0.19654081761837006, -0.2249184101819992, -0.11324147880077362, -0.41397520899772644, -0.010649479925632477, -0.018117234110832214, -0.0879315733909607, -0.027367331087589264, -0.12374749034643173, 0.35692521929740906, -0.3851689398288727, 0.3071933388710022, 0.009147774428129196, 0.06227520853281021, 0.29900631308555603, -0.2994193434715271, 0.4684782922267914, 0.16412928700447083, -0.3684590458869934, 0.037796273827552795, 0.2732798159122467, -0.25389429926872253, 0.29971322417259216, 0.17128659784793854, 0.6783191561698914, 0.22274662554264069, -0.09189630299806595, 0.0675157755613327, 0.03421495854854584, 0.07634920626878738, -0.3394201695919037, -0.0230131596326828, 0.06691831350326538, -0.13326230645179749, 0.1145666092634201, 0.1374945044517517, -0.09449612349271774, 0.2236461341381073, 0.011741835623979568, 0.2606368660926819, -0.2572071850299835, -0.12003523111343384, -0.17192372679710388, -0.19954951107501984, -0.13376373052597046, 0.09174983203411102, -0.25277918577194214, -0.21109427511692047, 0.35246363282203674, -0.05091577395796776, 0.18315252661705017, 0.19918882846832275, 0.06721256673336029, -0.09606651961803436, 0.27137869596481323, 0.33813104033470154, -0.500652015209198, -0.30738934874534607, 0.08907066285610199, -0.5300477743148804, 0.21790063381195068, -0.2879718244075775, -0.07918890565633774, -0.03162956237792969, 0.2162606418132782, -0.03532462939620018, -0.11000443994998932, 0.0923835039138794, -0.08695517480373383, -0.06845758855342865, -0.154449462890625, -0.2633788585662842, -0.2788788378238678, -0.08781526237726212, -0.2979598641395569, 0.2715916335582733, -0.5973244309425354, -0.047671396285295486, 0.10969916731119156, 0.0626048594713211, 0.08089579641819, -0.006934665143489838, 0.23120225965976715, 0.4421146810054779, 0.32367897033691406, -0.0014012157917022705, 0.45332133769989014, 0.06917798519134521, -0.1578180342912674, -0.35559943318367004, -0.05122726038098335, -0.1567315310239792, 0.05033554881811142, 0.1229817271232605, 0.2397245317697525, -0.6420227885246277, 0.08903694152832031, -0.23719565570354462, 0.24776996672153473, 0.06780709326267242, -0.07973376661539078, 0.09804780781269073, -0.023893598467111588, -0.3431888520717621, 0.19829508662223816, 0.23607468605041504, 0.23017707467079163, -0.06586268544197083, 0.3270433247089386, -0.1933470070362091, -0.15631502866744995, 0.4829872250556946, -0.1396927386522293, -0.3495691418647766, -0.22467713057994843, 0.4760475158691406, 0.057769447565078735, -0.040422506630420685, -0.19705069065093994, -0.08895668387413025, 0.1853538304567337, 0.07910513877868652, 0.06320025026798248, -0.17947520315647125, -0.2648896872997284, -0.2492375373840332, -0.013969480991363525, 0.20918026566505432, -0.3121146559715271, -0.3135882616043091, 0.0350731760263443, -0.20943902432918549 ]
https://github.com/huggingface/datasets/issues/1785
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) ```
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?
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.07774314284324646, -0.4187168776988983, -0.084621861577034, 0.2431601732969284, -0.09701003134250641, 0.15066012740135193, 0.07053473591804504, 0.34012138843536377, 0.39623501896858215, 0.3933160901069641, 0.41839298605918884, -0.13893109560012817, -0.09125030785799026, 0.003891676664352417, -0.17395839095115662, 0.2417321801185608, -0.008229687809944153, -0.06064517796039581, 0.3455672860145569, 0.12748661637306213, -0.40572893619537354, 0.013043941929936409, 0.09445023536682129, -0.37361398339271545, -0.5426242351531982, -0.1880922168493271, -0.16628065705299377, 0.1566854566335678, 0.22696217894554138, -0.22474348545074463, 0.32210642099380493, -0.005494874436408281, -0.10113947093486786, 0.5720781683921814, -0.00011594399984460324, 0.03631226718425751, 0.1715255081653595, -0.18090516328811646, -0.4399377703666687, -0.03869570791721344, 0.2173040807247162, -0.40692245960235596, -0.22335878014564514, -0.3619658946990967, -0.010309278964996338, 0.1603570282459259, -0.05118097364902496, -0.44361239671707153, 0.17652492225170135, -0.06918404251337051, 0.16796931624412537, 0.353005051612854, -0.22030189633369446, -0.09261409938335419, -0.2659411132335663, 0.17672327160835266, -0.04691316932439804, 0.5180590748786926, 0.299262672662735, 0.07531508803367615, -0.2787303626537323, 0.2208094745874405, -0.13332533836364746, 0.16011637449264526, 0.4138146936893463, -0.13599750399589539, -0.0745275616645813, -0.184513658285141, 0.19623760879039764, -0.02686690166592598, 0.4277345538139343, -0.19503232836723328, -0.5273441672325134, -0.5711026191711426, 0.05005272850394249, -0.15977153182029724, 0.43965861201286316, 0.0364261195063591, -0.40968722105026245, 0.12267139554023743, -0.3018592894077301, -0.33726122975349426, -0.20105181634426117, -0.2099776566028595, 0.05320901423692703, 0.16412994265556335, 0.0016835257411003113, 0.08308517932891846, 0.32703283429145813, 0.017501581460237503, -0.025625677779316902, 0.026436083018779755, 0.17296084761619568, 0.2536419928073883, -0.2865466773509979, 0.015176065266132355, -0.09484104812145233, 0.21012353897094727, 0.10111895203590393, 0.21069851517677307, 0.061005692929029465, -0.11254099011421204, 0.07357295602560043, 0.25406700372695923, 0.013657931238412857, 0.246612086892128, -0.2650672197341919, -0.09788823127746582, 0.2030574381351471, -0.003046169877052307, 0.17353901267051697, -0.11331973969936371, 0.048171814531087875, -0.3508071005344391, 0.11620311439037323, -0.018088188022375107, 0.2040129005908966, -0.07148513197898865, -0.38218528032302856, 0.12724778056144714, 0.20500531792640686, 0.3049910068511963, 0.2122819423675537, 0.2848546504974365, 0.08104997128248215, 0.23997880518436432, 0.21884141862392426, 0.19945281744003296, -0.09023421257734299, -0.09682632237672806, -0.1159811019897461, -0.014707387425005436, 0.0885305255651474, 0.16931623220443726, 0.3448054790496826, 0.03677033632993698, 0.2115975022315979, -0.01790434867143631, 0.4590657353401184, -0.1054457575082779, -0.07217598706483841, -0.2352617383003235, -0.1191631555557251, 0.4233517646789551, 0.11977631598711014, 0.011757217347621918, 0.2519824504852295, 0.150050550699234, -0.15103860199451447, 0.26779085397720337, -0.3836438059806824, -0.4553595185279846, 0.04401956498622894, 0.07246271520853043, -0.35284173488616943, 0.20111888647079468, -0.40660935640335083, -0.038440167903900146, 0.30972471833229065, -0.1824396550655365, 0.10116451978683472, 0.0928386002779007, -0.3887101411819458, -0.24627092480659485, 0.13819415867328644, 0.3473312258720398, -0.1142510324716568, 0.0037162378430366516, -0.3107167184352875, 0.16215571761131287, 0.05258776992559433, 0.4145957827568054, 0.1311628520488739, 0.13864347338676453, -0.42772528529167175, 0.13801008462905884, 0.11270667612552643, -0.33084213733673096, -0.541802704334259, 0.30613037943840027, -0.17185187339782715, 0.2516017258167267, 0.5377889275550842, 0.26144638657569885, -0.016333283856511116, -0.23369163274765015, 0.23278650641441345, 0.2714538276195526, -0.2196914553642273, 0.05634518712759018, -0.3533276915550232, -0.2634563446044922, 0.027872353792190552, 0.061429329216480255, 0.3454008102416992, 0.10856457054615021, 0.010947778820991516, -0.00600283220410347, 0.1818707287311554, 0.05497981607913971, 0.2010059654712677, 0.3193238377571106, 0.3190517723560333, -0.3444592356681824, -0.07386577129364014, 0.021724648773670197, -0.5194780826568604, 0.34916234016418457, 0.19307191669940948, -0.21001507341861725, -0.06464962661266327, -0.44329512119293213, -0.2809632420539856, 0.06220775097608566, 0.24829372763633728, 0.3274295926094055, 0.04864651709794998, -0.0373881570994854, 0.24946697056293488, -0.30693525075912476, -0.05964985862374306, 0.166830375790596, -0.2572425901889801, -0.05789858475327492, 0.10287655889987946, -0.037163328379392624, -0.04239144176244736, -0.14003974199295044, 0.04944819211959839, 0.06461046636104584, 0.06502696126699448, 0.13496817648410797, -0.014334872364997864, 0.4134909212589264, -0.10637493431568146, 0.22477194666862488, -0.09035064280033112, 0.134599968791008, 0.15231360495090485, 0.35126110911369324, 0.002052171155810356, 0.17524008452892303, 0.00694698840379715, -0.16976630687713623, -0.11104390770196915, 0.20959797501564026, -0.0455700121819973, 0.2853600084781647, -0.08265846222639084, 0.06405843049287796, 0.062438443303108215, 0.05603852868080139, 0.123775415122509, -0.05928969755768776, 0.29012995958328247, -0.19665707647800446, 0.4879351854324341, 0.08131764829158783, 0.022846758365631104, -0.014420408755540848, 0.06943930685520172, 0.1592281311750412, 0.2913537323474884, 0.15650692582130432, 0.2970966398715973, -0.03452168405056, -0.0058796703815460205, 0.28174054622650146, 0.26641449332237244, 0.1560027301311493, 0.01530950702726841, -0.17531818151474, 0.04518742859363556, -0.20555856823921204, 0.05281992629170418, -0.0503012053668499, 0.15801885724067688, 0.2922106981277466, 0.006730210036039352, -0.29641708731651306, 0.09604685008525848, -0.3090457320213318, 0.21551191806793213, 0.07729803025722504, -0.2874603569507599, -0.05790742486715317, 0.055779822170734406, 0.18281863629817963, 0.0615936703979969, 0.18895941972732544, -0.4589173197746277, -0.3148480951786041, 0.17463597655296326, 0.6444197297096252, -0.2373899668455124, -0.09524264931678772, -0.37296390533447266, 0.47324106097221375, 0.07805272191762924, -0.42579421401023865, -0.026563234627246857, -0.26854658126831055, -0.10555179417133331, 0.017070885747671127, 0.32546550035476685, -0.2578275799751282, 0.3435429036617279, 0.009413644671440125, 0.07134468853473663, -0.4250701367855072, 0.15812285244464874, -0.16978785395622253, 0.026744358241558075, 0.16048882901668549, -0.1307637244462967, 0.335561603307724, -0.12210814654827118, -0.16110184788703918, 0.16005246341228485, -0.03865186870098114, -0.041747696697711945, 0.00918731838464737, 0.1570615917444229, 0.17532777786254883, -0.32326406240463257, 0.03154080733656883, -0.17938262224197388, -0.549516499042511, 0.17439034581184387, -0.18168386816978455, 0.2716464400291443, 0.10364039242267609, 0.1733865737915039, -0.10494745522737503, 0.709981381893158, -0.1731766015291214, -0.249619260430336, -0.6116569638252258, 0.2382912039756775, -0.08035755157470703, -0.02955164946615696, -0.0471709705889225, 0.029627956449985504, 0.2122027575969696, 0.42421871423721313, -0.47824162244796753, -0.400262713432312, -0.16716602444648743, 0.22946766018867493, -0.24203535914421082, -0.03215686231851578, 0.17910373210906982, -0.148654505610466, -0.07347273826599121, -0.14096423983573914, -0.028164230287075043, 0.05282926931977272, 0.009464923292398453, 0.2762107253074646, 0.2927940785884857, 0.21926237642765045, 0.32078441977500916, 0.70623779296875, -0.15945732593536377, 0.2500559091567993, 0.27551835775375366, 0.18174344301223755, 0.6162169575691223, 0.09052622318267822, -0.0536036342382431, 0.04009981080889702, 0.008074067533016205, -0.6150439381599426, 0.018974848091602325, -0.033270709216594696, 0.13807770609855652, -0.02821049839258194, -0.394974946975708, 0.07973653823137283, -0.269003689289093, 0.3064281940460205, -0.440760999917984, 0.26311492919921875, -0.2624959945678711, 0.0036534667015075684, -0.36617034673690796, -0.08880206942558289, -0.027877990156412125, 0.09572476148605347, 0.5163896083831787, 0.19937074184417725, -0.2578814625740051, -0.26609131693840027, -0.5647941827774048, 0.3253156840801239, -0.00604856014251709, 0.124461330473423, -0.3100079894065857, 0.07452917098999023, -0.08088140934705734, 0.010127313435077667, 0.7869895696640015, -0.09053656458854675, 0.21981732547283173, 0.0822388306260109, 0.025765612721443176, -0.5359349250793457, -0.010849326848983765, 0.1368561089038849, 0.38045814633369446, -0.07197001576423645, 0.4385930001735687, -0.1767694503068924, 0.12497177720069885, -0.43941813707351685, 0.36068961024284363, -0.33069199323654175, -0.24158811569213867, -0.38548025488853455, -0.38147467374801636, -0.4833007752895355, 0.44739046692848206, 0.45651665329933167, 0.25278589129447937, -0.048352550715208054, 0.32991042733192444, -0.1702633500099182, -0.014960646629333496, 0.17365172505378723, -0.007580257952213287, 0.4432085156440735, -0.13666664063930511, 0.04138927906751633, 0.10192039608955383, -0.05657856538891792, 0.42775487899780273, 0.41325846314430237, 0.109696164727211, 0.1532113254070282, 0.2755296230316162, 0.015611797571182251, 0.3339523375034332, 0.3349297046661377, -0.07208283245563507, 0.027241535484790802, 0.11594691872596741, 0.24569731950759888, -0.43921083211898804, -0.06493626534938812, -0.3937532305717468, -0.05341074615716934, -0.09026334434747696, -0.020697027444839478, 0.37267374992370605, 0.35260239243507385, 0.017791271209716797, 0.07021543383598328, 0.3179866671562195, -0.31271567940711975, 0.26070788502693176, -0.026027385145425797, 0.8725858926773071, -0.0851956456899643, 0.019044511020183563, 0.06687156856060028, 0.3008272051811218, 0.34014347195625305, -0.4726661443710327, 0.36130765080451965, 0.04408452659845352, -0.2942005395889282, 0.03258149325847626, -0.012193605303764343, -0.021077364683151245, 0.29593417048454285, -0.16884516179561615, 0.4016994833946228, -0.5068141222000122, 0.012194136157631874, -0.09541503340005875, 0.13655301928520203, -0.6846148371696472, -0.3742956817150116, -0.23896728456020355, 0.12068912386894226, -0.1377953290939331, 0.21030044555664062, -0.24510416388511658, 0.10865618288516998, 0.03371375799179077, -0.3128850758075714, -0.3662669062614441, -0.17015346884727478, 0.026717957109212875, 0.303568959236145, -0.1789853572845459, 0.023643270134925842, -0.08937280625104904, 0.13467755913734436, 0.21527810394763947, 0.30104193091392517, -0.14354650676250458, 0.10248035192489624, -0.15729200839996338, -0.05579765513539314, 0.06480616331100464, 0.0752226784825325, 0.11239765584468842, 0.001625746488571167, -0.309686541557312, 0.15746501088142395, -0.25910380482673645, -0.4899291396141052, 0.029062479734420776, -0.04381408542394638, -0.29428988695144653, -0.03387337177991867, -0.2902980446815491, -0.4566001296043396, -0.005463548004627228, -0.08768345415592194, 0.06650684028863907, 0.01917419396340847, -0.11894825845956802, 0.147635355591774, 0.02352558635175228, -0.20440948009490967, 0.11642178893089294, 0.19072356820106506, 0.17154863476753235, -0.34629976749420166, 0.3859963119029999, -0.37319862842559814, -0.08736807107925415, -0.1736939549446106, -0.1504092514514923, -0.13429835438728333, 0.09508256614208221, 0.34302544593811035, -0.0794040858745575, -0.12857958674430847, -0.24275057017803192, -0.23101280629634857, 0.6502939462661743, 0.4262385070323944, -0.14408305287361145, -0.4783766567707062, -0.3731832802295685, 0.26766467094421387, 0.08030012249946594, 0.238160640001297, -0.06412075459957123, -0.09848777949810028, 0.03060866892337799, 0.1129472553730011, -0.2559908926486969, -0.05578716844320297, -0.44073382019996643, 0.007171424105763435, 0.21178573369979858, 0.12637653946876526, 0.2143028974533081, -0.09470582008361816, -0.0827280655503273, 0.1265944093465805, -0.055757492780685425, -0.11263597756624222, 0.04496206343173981, 0.15062779188156128, 0.04691855236887932, 0.19517198204994202, 0.1735435426235199, -0.45882371068000793, 0.23763632774353027, -0.2655065059661865, 0.1753758192062378, 0.41826897859573364, -0.04548150673508644, -0.34155696630477905, 0.07465746998786926, 0.4974750876426697, -0.17092368006706238, 0.1422317922115326, 0.1285942941904068, 0.15464897453784943, -0.2296801209449768, 0.18428683280944824, 0.12514790892601013, 0.14174030721187592, 0.2366863191127777, -0.11207866668701172, 0.22014380991458893, 0.038522131741046906, -0.15457093715667725, 0.06847136467695236, -0.04480207338929176, 0.24782294034957886, 0.2652955651283264, -0.07904484868049622, -0.029399089515209198, 0.033805690705776215, 0.06988374143838882, 0.21730978786945343, -0.2394903302192688, -0.11724904179573059, 0.23962852358818054, -0.02993895299732685, 0.11975669860839844, 0.5013856291770935, 0.38761427998542786, -0.37487363815307617, 0.0745420753955841, 0.09238050132989883, 0.5648562908172607, -0.26017674803733826, 0.04130974039435387, 0.13369518518447876, 0.050606898963451385, 0.003042123280465603, 0.14900991320610046, -0.06330115348100662, 0.38915467262268066, 0.3070390224456787, -0.17135357856750488, 0.21597212553024292, 0.24081236124038696, -0.12086121737957001, -0.14976312220096588, -0.4051087200641632, 0.08635252714157104, 0.08172877132892609, 0.042583052068948746, 0.1304461508989334, -0.31927669048309326, -0.04760032892227173, -0.364190936088562, -0.19654081761837006, -0.2249184101819992, -0.11324147880077362, -0.41397520899772644, -0.010649479925632477, -0.018117234110832214, -0.0879315733909607, -0.027367331087589264, -0.12374749034643173, 0.35692521929740906, -0.3851689398288727, 0.3071933388710022, 0.009147774428129196, 0.06227520853281021, 0.29900631308555603, -0.2994193434715271, 0.4684782922267914, 0.16412928700447083, -0.3684590458869934, 0.037796273827552795, 0.2732798159122467, -0.25389429926872253, 0.29971322417259216, 0.17128659784793854, 0.6783191561698914, 0.22274662554264069, -0.09189630299806595, 0.0675157755613327, 0.03421495854854584, 0.07634920626878738, -0.3394201695919037, -0.0230131596326828, 0.06691831350326538, -0.13326230645179749, 0.1145666092634201, 0.1374945044517517, -0.09449612349271774, 0.2236461341381073, 0.011741835623979568, 0.2606368660926819, -0.2572071850299835, -0.12003523111343384, -0.17192372679710388, -0.19954951107501984, -0.13376373052597046, 0.09174983203411102, -0.25277918577194214, -0.21109427511692047, 0.35246363282203674, -0.05091577395796776, 0.18315252661705017, 0.19918882846832275, 0.06721256673336029, -0.09606651961803436, 0.27137869596481323, 0.33813104033470154, -0.500652015209198, -0.30738934874534607, 0.08907066285610199, -0.5300477743148804, 0.21790063381195068, -0.2879718244075775, -0.07918890565633774, -0.03162956237792969, 0.2162606418132782, -0.03532462939620018, -0.11000443994998932, 0.0923835039138794, -0.08695517480373383, -0.06845758855342865, -0.154449462890625, -0.2633788585662842, -0.2788788378238678, -0.08781526237726212, -0.2979598641395569, 0.2715916335582733, -0.5973244309425354, -0.047671396285295486, 0.10969916731119156, 0.0626048594713211, 0.08089579641819, -0.006934665143489838, 0.23120225965976715, 0.4421146810054779, 0.32367897033691406, -0.0014012157917022705, 0.45332133769989014, 0.06917798519134521, -0.1578180342912674, -0.35559943318367004, -0.05122726038098335, -0.1567315310239792, 0.05033554881811142, 0.1229817271232605, 0.2397245317697525, -0.6420227885246277, 0.08903694152832031, -0.23719565570354462, 0.24776996672153473, 0.06780709326267242, -0.07973376661539078, 0.09804780781269073, -0.023893598467111588, -0.3431888520717621, 0.19829508662223816, 0.23607468605041504, 0.23017707467079163, -0.06586268544197083, 0.3270433247089386, -0.1933470070362091, -0.15631502866744995, 0.4829872250556946, -0.1396927386522293, -0.3495691418647766, -0.22467713057994843, 0.4760475158691406, 0.057769447565078735, -0.040422506630420685, -0.19705069065093994, -0.08895668387413025, 0.1853538304567337, 0.07910513877868652, 0.06320025026798248, -0.17947520315647125, -0.2648896872997284, -0.2492375373840332, -0.013969480991363525, 0.20918026566505432, -0.3121146559715271, -0.3135882616043091, 0.0350731760263443, -0.20943902432918549 ]
https://github.com/huggingface/datasets/issues/1785
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 ?
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?
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.07774314284324646, -0.4187168776988983, -0.084621861577034, 0.2431601732969284, -0.09701003134250641, 0.15066012740135193, 0.07053473591804504, 0.34012138843536377, 0.39623501896858215, 0.3933160901069641, 0.41839298605918884, -0.13893109560012817, -0.09125030785799026, 0.003891676664352417, -0.17395839095115662, 0.2417321801185608, -0.008229687809944153, -0.06064517796039581, 0.3455672860145569, 0.12748661637306213, -0.40572893619537354, 0.013043941929936409, 0.09445023536682129, -0.37361398339271545, -0.5426242351531982, -0.1880922168493271, -0.16628065705299377, 0.1566854566335678, 0.22696217894554138, -0.22474348545074463, 0.32210642099380493, -0.005494874436408281, -0.10113947093486786, 0.5720781683921814, -0.00011594399984460324, 0.03631226718425751, 0.1715255081653595, -0.18090516328811646, -0.4399377703666687, -0.03869570791721344, 0.2173040807247162, -0.40692245960235596, -0.22335878014564514, -0.3619658946990967, -0.010309278964996338, 0.1603570282459259, -0.05118097364902496, -0.44361239671707153, 0.17652492225170135, -0.06918404251337051, 0.16796931624412537, 0.353005051612854, -0.22030189633369446, -0.09261409938335419, -0.2659411132335663, 0.17672327160835266, -0.04691316932439804, 0.5180590748786926, 0.299262672662735, 0.07531508803367615, -0.2787303626537323, 0.2208094745874405, -0.13332533836364746, 0.16011637449264526, 0.4138146936893463, -0.13599750399589539, -0.0745275616645813, -0.184513658285141, 0.19623760879039764, -0.02686690166592598, 0.4277345538139343, -0.19503232836723328, -0.5273441672325134, -0.5711026191711426, 0.05005272850394249, -0.15977153182029724, 0.43965861201286316, 0.0364261195063591, -0.40968722105026245, 0.12267139554023743, -0.3018592894077301, -0.33726122975349426, -0.20105181634426117, -0.2099776566028595, 0.05320901423692703, 0.16412994265556335, 0.0016835257411003113, 0.08308517932891846, 0.32703283429145813, 0.017501581460237503, -0.025625677779316902, 0.026436083018779755, 0.17296084761619568, 0.2536419928073883, -0.2865466773509979, 0.015176065266132355, -0.09484104812145233, 0.21012353897094727, 0.10111895203590393, 0.21069851517677307, 0.061005692929029465, -0.11254099011421204, 0.07357295602560043, 0.25406700372695923, 0.013657931238412857, 0.246612086892128, -0.2650672197341919, -0.09788823127746582, 0.2030574381351471, -0.003046169877052307, 0.17353901267051697, -0.11331973969936371, 0.048171814531087875, -0.3508071005344391, 0.11620311439037323, -0.018088188022375107, 0.2040129005908966, -0.07148513197898865, -0.38218528032302856, 0.12724778056144714, 0.20500531792640686, 0.3049910068511963, 0.2122819423675537, 0.2848546504974365, 0.08104997128248215, 0.23997880518436432, 0.21884141862392426, 0.19945281744003296, -0.09023421257734299, -0.09682632237672806, -0.1159811019897461, -0.014707387425005436, 0.0885305255651474, 0.16931623220443726, 0.3448054790496826, 0.03677033632993698, 0.2115975022315979, -0.01790434867143631, 0.4590657353401184, -0.1054457575082779, -0.07217598706483841, -0.2352617383003235, -0.1191631555557251, 0.4233517646789551, 0.11977631598711014, 0.011757217347621918, 0.2519824504852295, 0.150050550699234, -0.15103860199451447, 0.26779085397720337, -0.3836438059806824, -0.4553595185279846, 0.04401956498622894, 0.07246271520853043, -0.35284173488616943, 0.20111888647079468, -0.40660935640335083, -0.038440167903900146, 0.30972471833229065, -0.1824396550655365, 0.10116451978683472, 0.0928386002779007, -0.3887101411819458, -0.24627092480659485, 0.13819415867328644, 0.3473312258720398, -0.1142510324716568, 0.0037162378430366516, -0.3107167184352875, 0.16215571761131287, 0.05258776992559433, 0.4145957827568054, 0.1311628520488739, 0.13864347338676453, -0.42772528529167175, 0.13801008462905884, 0.11270667612552643, -0.33084213733673096, -0.541802704334259, 0.30613037943840027, -0.17185187339782715, 0.2516017258167267, 0.5377889275550842, 0.26144638657569885, -0.016333283856511116, -0.23369163274765015, 0.23278650641441345, 0.2714538276195526, -0.2196914553642273, 0.05634518712759018, -0.3533276915550232, -0.2634563446044922, 0.027872353792190552, 0.061429329216480255, 0.3454008102416992, 0.10856457054615021, 0.010947778820991516, -0.00600283220410347, 0.1818707287311554, 0.05497981607913971, 0.2010059654712677, 0.3193238377571106, 0.3190517723560333, -0.3444592356681824, -0.07386577129364014, 0.021724648773670197, -0.5194780826568604, 0.34916234016418457, 0.19307191669940948, -0.21001507341861725, -0.06464962661266327, -0.44329512119293213, -0.2809632420539856, 0.06220775097608566, 0.24829372763633728, 0.3274295926094055, 0.04864651709794998, -0.0373881570994854, 0.24946697056293488, -0.30693525075912476, -0.05964985862374306, 0.166830375790596, -0.2572425901889801, -0.05789858475327492, 0.10287655889987946, -0.037163328379392624, -0.04239144176244736, -0.14003974199295044, 0.04944819211959839, 0.06461046636104584, 0.06502696126699448, 0.13496817648410797, -0.014334872364997864, 0.4134909212589264, -0.10637493431568146, 0.22477194666862488, -0.09035064280033112, 0.134599968791008, 0.15231360495090485, 0.35126110911369324, 0.002052171155810356, 0.17524008452892303, 0.00694698840379715, -0.16976630687713623, -0.11104390770196915, 0.20959797501564026, -0.0455700121819973, 0.2853600084781647, -0.08265846222639084, 0.06405843049287796, 0.062438443303108215, 0.05603852868080139, 0.123775415122509, -0.05928969755768776, 0.29012995958328247, -0.19665707647800446, 0.4879351854324341, 0.08131764829158783, 0.022846758365631104, -0.014420408755540848, 0.06943930685520172, 0.1592281311750412, 0.2913537323474884, 0.15650692582130432, 0.2970966398715973, -0.03452168405056, -0.0058796703815460205, 0.28174054622650146, 0.26641449332237244, 0.1560027301311493, 0.01530950702726841, -0.17531818151474, 0.04518742859363556, -0.20555856823921204, 0.05281992629170418, -0.0503012053668499, 0.15801885724067688, 0.2922106981277466, 0.006730210036039352, -0.29641708731651306, 0.09604685008525848, -0.3090457320213318, 0.21551191806793213, 0.07729803025722504, -0.2874603569507599, -0.05790742486715317, 0.055779822170734406, 0.18281863629817963, 0.0615936703979969, 0.18895941972732544, -0.4589173197746277, -0.3148480951786041, 0.17463597655296326, 0.6444197297096252, -0.2373899668455124, -0.09524264931678772, -0.37296390533447266, 0.47324106097221375, 0.07805272191762924, -0.42579421401023865, -0.026563234627246857, -0.26854658126831055, -0.10555179417133331, 0.017070885747671127, 0.32546550035476685, -0.2578275799751282, 0.3435429036617279, 0.009413644671440125, 0.07134468853473663, -0.4250701367855072, 0.15812285244464874, -0.16978785395622253, 0.026744358241558075, 0.16048882901668549, -0.1307637244462967, 0.335561603307724, -0.12210814654827118, -0.16110184788703918, 0.16005246341228485, -0.03865186870098114, -0.041747696697711945, 0.00918731838464737, 0.1570615917444229, 0.17532777786254883, -0.32326406240463257, 0.03154080733656883, -0.17938262224197388, -0.549516499042511, 0.17439034581184387, -0.18168386816978455, 0.2716464400291443, 0.10364039242267609, 0.1733865737915039, -0.10494745522737503, 0.709981381893158, -0.1731766015291214, -0.249619260430336, -0.6116569638252258, 0.2382912039756775, -0.08035755157470703, -0.02955164946615696, -0.0471709705889225, 0.029627956449985504, 0.2122027575969696, 0.42421871423721313, -0.47824162244796753, -0.400262713432312, -0.16716602444648743, 0.22946766018867493, -0.24203535914421082, -0.03215686231851578, 0.17910373210906982, -0.148654505610466, -0.07347273826599121, -0.14096423983573914, -0.028164230287075043, 0.05282926931977272, 0.009464923292398453, 0.2762107253074646, 0.2927940785884857, 0.21926237642765045, 0.32078441977500916, 0.70623779296875, -0.15945732593536377, 0.2500559091567993, 0.27551835775375366, 0.18174344301223755, 0.6162169575691223, 0.09052622318267822, -0.0536036342382431, 0.04009981080889702, 0.008074067533016205, -0.6150439381599426, 0.018974848091602325, -0.033270709216594696, 0.13807770609855652, -0.02821049839258194, -0.394974946975708, 0.07973653823137283, -0.269003689289093, 0.3064281940460205, -0.440760999917984, 0.26311492919921875, -0.2624959945678711, 0.0036534667015075684, -0.36617034673690796, -0.08880206942558289, -0.027877990156412125, 0.09572476148605347, 0.5163896083831787, 0.19937074184417725, -0.2578814625740051, -0.26609131693840027, -0.5647941827774048, 0.3253156840801239, -0.00604856014251709, 0.124461330473423, -0.3100079894065857, 0.07452917098999023, -0.08088140934705734, 0.010127313435077667, 0.7869895696640015, -0.09053656458854675, 0.21981732547283173, 0.0822388306260109, 0.025765612721443176, -0.5359349250793457, -0.010849326848983765, 0.1368561089038849, 0.38045814633369446, -0.07197001576423645, 0.4385930001735687, -0.1767694503068924, 0.12497177720069885, -0.43941813707351685, 0.36068961024284363, -0.33069199323654175, -0.24158811569213867, -0.38548025488853455, -0.38147467374801636, -0.4833007752895355, 0.44739046692848206, 0.45651665329933167, 0.25278589129447937, -0.048352550715208054, 0.32991042733192444, -0.1702633500099182, -0.014960646629333496, 0.17365172505378723, -0.007580257952213287, 0.4432085156440735, -0.13666664063930511, 0.04138927906751633, 0.10192039608955383, -0.05657856538891792, 0.42775487899780273, 0.41325846314430237, 0.109696164727211, 0.1532113254070282, 0.2755296230316162, 0.015611797571182251, 0.3339523375034332, 0.3349297046661377, -0.07208283245563507, 0.027241535484790802, 0.11594691872596741, 0.24569731950759888, -0.43921083211898804, -0.06493626534938812, -0.3937532305717468, -0.05341074615716934, -0.09026334434747696, -0.020697027444839478, 0.37267374992370605, 0.35260239243507385, 0.017791271209716797, 0.07021543383598328, 0.3179866671562195, -0.31271567940711975, 0.26070788502693176, -0.026027385145425797, 0.8725858926773071, -0.0851956456899643, 0.019044511020183563, 0.06687156856060028, 0.3008272051811218, 0.34014347195625305, -0.4726661443710327, 0.36130765080451965, 0.04408452659845352, -0.2942005395889282, 0.03258149325847626, -0.012193605303764343, -0.021077364683151245, 0.29593417048454285, -0.16884516179561615, 0.4016994833946228, -0.5068141222000122, 0.012194136157631874, -0.09541503340005875, 0.13655301928520203, -0.6846148371696472, -0.3742956817150116, -0.23896728456020355, 0.12068912386894226, -0.1377953290939331, 0.21030044555664062, -0.24510416388511658, 0.10865618288516998, 0.03371375799179077, -0.3128850758075714, -0.3662669062614441, -0.17015346884727478, 0.026717957109212875, 0.303568959236145, -0.1789853572845459, 0.023643270134925842, -0.08937280625104904, 0.13467755913734436, 0.21527810394763947, 0.30104193091392517, -0.14354650676250458, 0.10248035192489624, -0.15729200839996338, -0.05579765513539314, 0.06480616331100464, 0.0752226784825325, 0.11239765584468842, 0.001625746488571167, -0.309686541557312, 0.15746501088142395, -0.25910380482673645, -0.4899291396141052, 0.029062479734420776, -0.04381408542394638, -0.29428988695144653, -0.03387337177991867, -0.2902980446815491, -0.4566001296043396, -0.005463548004627228, -0.08768345415592194, 0.06650684028863907, 0.01917419396340847, -0.11894825845956802, 0.147635355591774, 0.02352558635175228, -0.20440948009490967, 0.11642178893089294, 0.19072356820106506, 0.17154863476753235, -0.34629976749420166, 0.3859963119029999, -0.37319862842559814, -0.08736807107925415, -0.1736939549446106, -0.1504092514514923, -0.13429835438728333, 0.09508256614208221, 0.34302544593811035, -0.0794040858745575, -0.12857958674430847, -0.24275057017803192, -0.23101280629634857, 0.6502939462661743, 0.4262385070323944, -0.14408305287361145, -0.4783766567707062, -0.3731832802295685, 0.26766467094421387, 0.08030012249946594, 0.238160640001297, -0.06412075459957123, -0.09848777949810028, 0.03060866892337799, 0.1129472553730011, -0.2559908926486969, -0.05578716844320297, -0.44073382019996643, 0.007171424105763435, 0.21178573369979858, 0.12637653946876526, 0.2143028974533081, -0.09470582008361816, -0.0827280655503273, 0.1265944093465805, -0.055757492780685425, -0.11263597756624222, 0.04496206343173981, 0.15062779188156128, 0.04691855236887932, 0.19517198204994202, 0.1735435426235199, -0.45882371068000793, 0.23763632774353027, -0.2655065059661865, 0.1753758192062378, 0.41826897859573364, -0.04548150673508644, -0.34155696630477905, 0.07465746998786926, 0.4974750876426697, -0.17092368006706238, 0.1422317922115326, 0.1285942941904068, 0.15464897453784943, -0.2296801209449768, 0.18428683280944824, 0.12514790892601013, 0.14174030721187592, 0.2366863191127777, -0.11207866668701172, 0.22014380991458893, 0.038522131741046906, -0.15457093715667725, 0.06847136467695236, -0.04480207338929176, 0.24782294034957886, 0.2652955651283264, -0.07904484868049622, -0.029399089515209198, 0.033805690705776215, 0.06988374143838882, 0.21730978786945343, -0.2394903302192688, -0.11724904179573059, 0.23962852358818054, -0.02993895299732685, 0.11975669860839844, 0.5013856291770935, 0.38761427998542786, -0.37487363815307617, 0.0745420753955841, 0.09238050132989883, 0.5648562908172607, -0.26017674803733826, 0.04130974039435387, 0.13369518518447876, 0.050606898963451385, 0.003042123280465603, 0.14900991320610046, -0.06330115348100662, 0.38915467262268066, 0.3070390224456787, -0.17135357856750488, 0.21597212553024292, 0.24081236124038696, -0.12086121737957001, -0.14976312220096588, -0.4051087200641632, 0.08635252714157104, 0.08172877132892609, 0.042583052068948746, 0.1304461508989334, -0.31927669048309326, -0.04760032892227173, -0.364190936088562, -0.19654081761837006, -0.2249184101819992, -0.11324147880077362, -0.41397520899772644, -0.010649479925632477, -0.018117234110832214, -0.0879315733909607, -0.027367331087589264, -0.12374749034643173, 0.35692521929740906, -0.3851689398288727, 0.3071933388710022, 0.009147774428129196, 0.06227520853281021, 0.29900631308555603, -0.2994193434715271, 0.4684782922267914, 0.16412928700447083, -0.3684590458869934, 0.037796273827552795, 0.2732798159122467, -0.25389429926872253, 0.29971322417259216, 0.17128659784793854, 0.6783191561698914, 0.22274662554264069, -0.09189630299806595, 0.0675157755613327, 0.03421495854854584, 0.07634920626878738, -0.3394201695919037, -0.0230131596326828, 0.06691831350326538, -0.13326230645179749, 0.1145666092634201, 0.1374945044517517, -0.09449612349271774, 0.2236461341381073, 0.011741835623979568, 0.2606368660926819, -0.2572071850299835, -0.12003523111343384, -0.17192372679710388, -0.19954951107501984, -0.13376373052597046, 0.09174983203411102, -0.25277918577194214, -0.21109427511692047, 0.35246363282203674, -0.05091577395796776, 0.18315252661705017, 0.19918882846832275, 0.06721256673336029, -0.09606651961803436, 0.27137869596481323, 0.33813104033470154, -0.500652015209198, -0.30738934874534607, 0.08907066285610199, -0.5300477743148804, 0.21790063381195068, -0.2879718244075775, -0.07918890565633774, -0.03162956237792969, 0.2162606418132782, -0.03532462939620018, -0.11000443994998932, 0.0923835039138794, -0.08695517480373383, -0.06845758855342865, -0.154449462890625, -0.2633788585662842, -0.2788788378238678, -0.08781526237726212, -0.2979598641395569, 0.2715916335582733, -0.5973244309425354, -0.047671396285295486, 0.10969916731119156, 0.0626048594713211, 0.08089579641819, -0.006934665143489838, 0.23120225965976715, 0.4421146810054779, 0.32367897033691406, -0.0014012157917022705, 0.45332133769989014, 0.06917798519134521, -0.1578180342912674, -0.35559943318367004, -0.05122726038098335, -0.1567315310239792, 0.05033554881811142, 0.1229817271232605, 0.2397245317697525, -0.6420227885246277, 0.08903694152832031, -0.23719565570354462, 0.24776996672153473, 0.06780709326267242, -0.07973376661539078, 0.09804780781269073, -0.023893598467111588, -0.3431888520717621, 0.19829508662223816, 0.23607468605041504, 0.23017707467079163, -0.06586268544197083, 0.3270433247089386, -0.1933470070362091, -0.15631502866744995, 0.4829872250556946, -0.1396927386522293, -0.3495691418647766, -0.22467713057994843, 0.4760475158691406, 0.057769447565078735, -0.040422506630420685, -0.19705069065093994, -0.08895668387413025, 0.1853538304567337, 0.07910513877868652, 0.06320025026798248, -0.17947520315647125, -0.2648896872997284, -0.2492375373840332, -0.013969480991363525, 0.20918026566505432, -0.3121146559715271, -0.3135882616043091, 0.0350731760263443, -0.20943902432918549 ]
https://github.com/huggingface/datasets/issues/1785
I think its an issue on the clusters end (unclear exactly why -- maybe something with docker containers?), will close the issue
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?
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.07774314284324646, -0.4187168776988983, -0.084621861577034, 0.2431601732969284, -0.09701003134250641, 0.15066012740135193, 0.07053473591804504, 0.34012138843536377, 0.39623501896858215, 0.3933160901069641, 0.41839298605918884, -0.13893109560012817, -0.09125030785799026, 0.003891676664352417, -0.17395839095115662, 0.2417321801185608, -0.008229687809944153, -0.06064517796039581, 0.3455672860145569, 0.12748661637306213, -0.40572893619537354, 0.013043941929936409, 0.09445023536682129, -0.37361398339271545, -0.5426242351531982, -0.1880922168493271, -0.16628065705299377, 0.1566854566335678, 0.22696217894554138, -0.22474348545074463, 0.32210642099380493, -0.005494874436408281, -0.10113947093486786, 0.5720781683921814, -0.00011594399984460324, 0.03631226718425751, 0.1715255081653595, -0.18090516328811646, -0.4399377703666687, -0.03869570791721344, 0.2173040807247162, -0.40692245960235596, -0.22335878014564514, -0.3619658946990967, -0.010309278964996338, 0.1603570282459259, -0.05118097364902496, -0.44361239671707153, 0.17652492225170135, -0.06918404251337051, 0.16796931624412537, 0.353005051612854, -0.22030189633369446, -0.09261409938335419, -0.2659411132335663, 0.17672327160835266, -0.04691316932439804, 0.5180590748786926, 0.299262672662735, 0.07531508803367615, -0.2787303626537323, 0.2208094745874405, -0.13332533836364746, 0.16011637449264526, 0.4138146936893463, -0.13599750399589539, -0.0745275616645813, -0.184513658285141, 0.19623760879039764, -0.02686690166592598, 0.4277345538139343, -0.19503232836723328, -0.5273441672325134, -0.5711026191711426, 0.05005272850394249, -0.15977153182029724, 0.43965861201286316, 0.0364261195063591, -0.40968722105026245, 0.12267139554023743, -0.3018592894077301, -0.33726122975349426, -0.20105181634426117, -0.2099776566028595, 0.05320901423692703, 0.16412994265556335, 0.0016835257411003113, 0.08308517932891846, 0.32703283429145813, 0.017501581460237503, -0.025625677779316902, 0.026436083018779755, 0.17296084761619568, 0.2536419928073883, -0.2865466773509979, 0.015176065266132355, -0.09484104812145233, 0.21012353897094727, 0.10111895203590393, 0.21069851517677307, 0.061005692929029465, -0.11254099011421204, 0.07357295602560043, 0.25406700372695923, 0.013657931238412857, 0.246612086892128, -0.2650672197341919, -0.09788823127746582, 0.2030574381351471, -0.003046169877052307, 0.17353901267051697, -0.11331973969936371, 0.048171814531087875, -0.3508071005344391, 0.11620311439037323, -0.018088188022375107, 0.2040129005908966, -0.07148513197898865, -0.38218528032302856, 0.12724778056144714, 0.20500531792640686, 0.3049910068511963, 0.2122819423675537, 0.2848546504974365, 0.08104997128248215, 0.23997880518436432, 0.21884141862392426, 0.19945281744003296, -0.09023421257734299, -0.09682632237672806, -0.1159811019897461, -0.014707387425005436, 0.0885305255651474, 0.16931623220443726, 0.3448054790496826, 0.03677033632993698, 0.2115975022315979, -0.01790434867143631, 0.4590657353401184, -0.1054457575082779, -0.07217598706483841, -0.2352617383003235, -0.1191631555557251, 0.4233517646789551, 0.11977631598711014, 0.011757217347621918, 0.2519824504852295, 0.150050550699234, -0.15103860199451447, 0.26779085397720337, -0.3836438059806824, -0.4553595185279846, 0.04401956498622894, 0.07246271520853043, -0.35284173488616943, 0.20111888647079468, -0.40660935640335083, -0.038440167903900146, 0.30972471833229065, -0.1824396550655365, 0.10116451978683472, 0.0928386002779007, -0.3887101411819458, -0.24627092480659485, 0.13819415867328644, 0.3473312258720398, -0.1142510324716568, 0.0037162378430366516, -0.3107167184352875, 0.16215571761131287, 0.05258776992559433, 0.4145957827568054, 0.1311628520488739, 0.13864347338676453, -0.42772528529167175, 0.13801008462905884, 0.11270667612552643, -0.33084213733673096, -0.541802704334259, 0.30613037943840027, -0.17185187339782715, 0.2516017258167267, 0.5377889275550842, 0.26144638657569885, -0.016333283856511116, -0.23369163274765015, 0.23278650641441345, 0.2714538276195526, -0.2196914553642273, 0.05634518712759018, -0.3533276915550232, -0.2634563446044922, 0.027872353792190552, 0.061429329216480255, 0.3454008102416992, 0.10856457054615021, 0.010947778820991516, -0.00600283220410347, 0.1818707287311554, 0.05497981607913971, 0.2010059654712677, 0.3193238377571106, 0.3190517723560333, -0.3444592356681824, -0.07386577129364014, 0.021724648773670197, -0.5194780826568604, 0.34916234016418457, 0.19307191669940948, -0.21001507341861725, -0.06464962661266327, -0.44329512119293213, -0.2809632420539856, 0.06220775097608566, 0.24829372763633728, 0.3274295926094055, 0.04864651709794998, -0.0373881570994854, 0.24946697056293488, -0.30693525075912476, -0.05964985862374306, 0.166830375790596, -0.2572425901889801, -0.05789858475327492, 0.10287655889987946, -0.037163328379392624, -0.04239144176244736, -0.14003974199295044, 0.04944819211959839, 0.06461046636104584, 0.06502696126699448, 0.13496817648410797, -0.014334872364997864, 0.4134909212589264, -0.10637493431568146, 0.22477194666862488, -0.09035064280033112, 0.134599968791008, 0.15231360495090485, 0.35126110911369324, 0.002052171155810356, 0.17524008452892303, 0.00694698840379715, -0.16976630687713623, -0.11104390770196915, 0.20959797501564026, -0.0455700121819973, 0.2853600084781647, -0.08265846222639084, 0.06405843049287796, 0.062438443303108215, 0.05603852868080139, 0.123775415122509, -0.05928969755768776, 0.29012995958328247, -0.19665707647800446, 0.4879351854324341, 0.08131764829158783, 0.022846758365631104, -0.014420408755540848, 0.06943930685520172, 0.1592281311750412, 0.2913537323474884, 0.15650692582130432, 0.2970966398715973, -0.03452168405056, -0.0058796703815460205, 0.28174054622650146, 0.26641449332237244, 0.1560027301311493, 0.01530950702726841, -0.17531818151474, 0.04518742859363556, -0.20555856823921204, 0.05281992629170418, -0.0503012053668499, 0.15801885724067688, 0.2922106981277466, 0.006730210036039352, -0.29641708731651306, 0.09604685008525848, -0.3090457320213318, 0.21551191806793213, 0.07729803025722504, -0.2874603569507599, -0.05790742486715317, 0.055779822170734406, 0.18281863629817963, 0.0615936703979969, 0.18895941972732544, -0.4589173197746277, -0.3148480951786041, 0.17463597655296326, 0.6444197297096252, -0.2373899668455124, -0.09524264931678772, -0.37296390533447266, 0.47324106097221375, 0.07805272191762924, -0.42579421401023865, -0.026563234627246857, -0.26854658126831055, -0.10555179417133331, 0.017070885747671127, 0.32546550035476685, -0.2578275799751282, 0.3435429036617279, 0.009413644671440125, 0.07134468853473663, -0.4250701367855072, 0.15812285244464874, -0.16978785395622253, 0.026744358241558075, 0.16048882901668549, -0.1307637244462967, 0.335561603307724, -0.12210814654827118, -0.16110184788703918, 0.16005246341228485, -0.03865186870098114, -0.041747696697711945, 0.00918731838464737, 0.1570615917444229, 0.17532777786254883, -0.32326406240463257, 0.03154080733656883, -0.17938262224197388, -0.549516499042511, 0.17439034581184387, -0.18168386816978455, 0.2716464400291443, 0.10364039242267609, 0.1733865737915039, -0.10494745522737503, 0.709981381893158, -0.1731766015291214, -0.249619260430336, -0.6116569638252258, 0.2382912039756775, -0.08035755157470703, -0.02955164946615696, -0.0471709705889225, 0.029627956449985504, 0.2122027575969696, 0.42421871423721313, -0.47824162244796753, -0.400262713432312, -0.16716602444648743, 0.22946766018867493, -0.24203535914421082, -0.03215686231851578, 0.17910373210906982, -0.148654505610466, -0.07347273826599121, -0.14096423983573914, -0.028164230287075043, 0.05282926931977272, 0.009464923292398453, 0.2762107253074646, 0.2927940785884857, 0.21926237642765045, 0.32078441977500916, 0.70623779296875, -0.15945732593536377, 0.2500559091567993, 0.27551835775375366, 0.18174344301223755, 0.6162169575691223, 0.09052622318267822, -0.0536036342382431, 0.04009981080889702, 0.008074067533016205, -0.6150439381599426, 0.018974848091602325, -0.033270709216594696, 0.13807770609855652, -0.02821049839258194, -0.394974946975708, 0.07973653823137283, -0.269003689289093, 0.3064281940460205, -0.440760999917984, 0.26311492919921875, -0.2624959945678711, 0.0036534667015075684, -0.36617034673690796, -0.08880206942558289, -0.027877990156412125, 0.09572476148605347, 0.5163896083831787, 0.19937074184417725, -0.2578814625740051, -0.26609131693840027, -0.5647941827774048, 0.3253156840801239, -0.00604856014251709, 0.124461330473423, -0.3100079894065857, 0.07452917098999023, -0.08088140934705734, 0.010127313435077667, 0.7869895696640015, -0.09053656458854675, 0.21981732547283173, 0.0822388306260109, 0.025765612721443176, -0.5359349250793457, -0.010849326848983765, 0.1368561089038849, 0.38045814633369446, -0.07197001576423645, 0.4385930001735687, -0.1767694503068924, 0.12497177720069885, -0.43941813707351685, 0.36068961024284363, -0.33069199323654175, -0.24158811569213867, -0.38548025488853455, -0.38147467374801636, -0.4833007752895355, 0.44739046692848206, 0.45651665329933167, 0.25278589129447937, -0.048352550715208054, 0.32991042733192444, -0.1702633500099182, -0.014960646629333496, 0.17365172505378723, -0.007580257952213287, 0.4432085156440735, -0.13666664063930511, 0.04138927906751633, 0.10192039608955383, -0.05657856538891792, 0.42775487899780273, 0.41325846314430237, 0.109696164727211, 0.1532113254070282, 0.2755296230316162, 0.015611797571182251, 0.3339523375034332, 0.3349297046661377, -0.07208283245563507, 0.027241535484790802, 0.11594691872596741, 0.24569731950759888, -0.43921083211898804, -0.06493626534938812, -0.3937532305717468, -0.05341074615716934, -0.09026334434747696, -0.020697027444839478, 0.37267374992370605, 0.35260239243507385, 0.017791271209716797, 0.07021543383598328, 0.3179866671562195, -0.31271567940711975, 0.26070788502693176, -0.026027385145425797, 0.8725858926773071, -0.0851956456899643, 0.019044511020183563, 0.06687156856060028, 0.3008272051811218, 0.34014347195625305, -0.4726661443710327, 0.36130765080451965, 0.04408452659845352, -0.2942005395889282, 0.03258149325847626, -0.012193605303764343, -0.021077364683151245, 0.29593417048454285, -0.16884516179561615, 0.4016994833946228, -0.5068141222000122, 0.012194136157631874, -0.09541503340005875, 0.13655301928520203, -0.6846148371696472, -0.3742956817150116, -0.23896728456020355, 0.12068912386894226, -0.1377953290939331, 0.21030044555664062, -0.24510416388511658, 0.10865618288516998, 0.03371375799179077, -0.3128850758075714, -0.3662669062614441, -0.17015346884727478, 0.026717957109212875, 0.303568959236145, -0.1789853572845459, 0.023643270134925842, -0.08937280625104904, 0.13467755913734436, 0.21527810394763947, 0.30104193091392517, -0.14354650676250458, 0.10248035192489624, -0.15729200839996338, -0.05579765513539314, 0.06480616331100464, 0.0752226784825325, 0.11239765584468842, 0.001625746488571167, -0.309686541557312, 0.15746501088142395, -0.25910380482673645, -0.4899291396141052, 0.029062479734420776, -0.04381408542394638, -0.29428988695144653, -0.03387337177991867, -0.2902980446815491, -0.4566001296043396, -0.005463548004627228, -0.08768345415592194, 0.06650684028863907, 0.01917419396340847, -0.11894825845956802, 0.147635355591774, 0.02352558635175228, -0.20440948009490967, 0.11642178893089294, 0.19072356820106506, 0.17154863476753235, -0.34629976749420166, 0.3859963119029999, -0.37319862842559814, -0.08736807107925415, -0.1736939549446106, -0.1504092514514923, -0.13429835438728333, 0.09508256614208221, 0.34302544593811035, -0.0794040858745575, -0.12857958674430847, -0.24275057017803192, -0.23101280629634857, 0.6502939462661743, 0.4262385070323944, -0.14408305287361145, -0.4783766567707062, -0.3731832802295685, 0.26766467094421387, 0.08030012249946594, 0.238160640001297, -0.06412075459957123, -0.09848777949810028, 0.03060866892337799, 0.1129472553730011, -0.2559908926486969, -0.05578716844320297, -0.44073382019996643, 0.007171424105763435, 0.21178573369979858, 0.12637653946876526, 0.2143028974533081, -0.09470582008361816, -0.0827280655503273, 0.1265944093465805, -0.055757492780685425, -0.11263597756624222, 0.04496206343173981, 0.15062779188156128, 0.04691855236887932, 0.19517198204994202, 0.1735435426235199, -0.45882371068000793, 0.23763632774353027, -0.2655065059661865, 0.1753758192062378, 0.41826897859573364, -0.04548150673508644, -0.34155696630477905, 0.07465746998786926, 0.4974750876426697, -0.17092368006706238, 0.1422317922115326, 0.1285942941904068, 0.15464897453784943, -0.2296801209449768, 0.18428683280944824, 0.12514790892601013, 0.14174030721187592, 0.2366863191127777, -0.11207866668701172, 0.22014380991458893, 0.038522131741046906, -0.15457093715667725, 0.06847136467695236, -0.04480207338929176, 0.24782294034957886, 0.2652955651283264, -0.07904484868049622, -0.029399089515209198, 0.033805690705776215, 0.06988374143838882, 0.21730978786945343, -0.2394903302192688, -0.11724904179573059, 0.23962852358818054, -0.02993895299732685, 0.11975669860839844, 0.5013856291770935, 0.38761427998542786, -0.37487363815307617, 0.0745420753955841, 0.09238050132989883, 0.5648562908172607, -0.26017674803733826, 0.04130974039435387, 0.13369518518447876, 0.050606898963451385, 0.003042123280465603, 0.14900991320610046, -0.06330115348100662, 0.38915467262268066, 0.3070390224456787, -0.17135357856750488, 0.21597212553024292, 0.24081236124038696, -0.12086121737957001, -0.14976312220096588, -0.4051087200641632, 0.08635252714157104, 0.08172877132892609, 0.042583052068948746, 0.1304461508989334, -0.31927669048309326, -0.04760032892227173, -0.364190936088562, -0.19654081761837006, -0.2249184101819992, -0.11324147880077362, -0.41397520899772644, -0.010649479925632477, -0.018117234110832214, -0.0879315733909607, -0.027367331087589264, -0.12374749034643173, 0.35692521929740906, -0.3851689398288727, 0.3071933388710022, 0.009147774428129196, 0.06227520853281021, 0.29900631308555603, -0.2994193434715271, 0.4684782922267914, 0.16412928700447083, -0.3684590458869934, 0.037796273827552795, 0.2732798159122467, -0.25389429926872253, 0.29971322417259216, 0.17128659784793854, 0.6783191561698914, 0.22274662554264069, -0.09189630299806595, 0.0675157755613327, 0.03421495854854584, 0.07634920626878738, -0.3394201695919037, -0.0230131596326828, 0.06691831350326538, -0.13326230645179749, 0.1145666092634201, 0.1374945044517517, -0.09449612349271774, 0.2236461341381073, 0.011741835623979568, 0.2606368660926819, -0.2572071850299835, -0.12003523111343384, -0.17192372679710388, -0.19954951107501984, -0.13376373052597046, 0.09174983203411102, -0.25277918577194214, -0.21109427511692047, 0.35246363282203674, -0.05091577395796776, 0.18315252661705017, 0.19918882846832275, 0.06721256673336029, -0.09606651961803436, 0.27137869596481323, 0.33813104033470154, -0.500652015209198, -0.30738934874534607, 0.08907066285610199, -0.5300477743148804, 0.21790063381195068, -0.2879718244075775, -0.07918890565633774, -0.03162956237792969, 0.2162606418132782, -0.03532462939620018, -0.11000443994998932, 0.0923835039138794, -0.08695517480373383, -0.06845758855342865, -0.154449462890625, -0.2633788585662842, -0.2788788378238678, -0.08781526237726212, -0.2979598641395569, 0.2715916335582733, -0.5973244309425354, -0.047671396285295486, 0.10969916731119156, 0.0626048594713211, 0.08089579641819, -0.006934665143489838, 0.23120225965976715, 0.4421146810054779, 0.32367897033691406, -0.0014012157917022705, 0.45332133769989014, 0.06917798519134521, -0.1578180342912674, -0.35559943318367004, -0.05122726038098335, -0.1567315310239792, 0.05033554881811142, 0.1229817271232605, 0.2397245317697525, -0.6420227885246277, 0.08903694152832031, -0.23719565570354462, 0.24776996672153473, 0.06780709326267242, -0.07973376661539078, 0.09804780781269073, -0.023893598467111588, -0.3431888520717621, 0.19829508662223816, 0.23607468605041504, 0.23017707467079163, -0.06586268544197083, 0.3270433247089386, -0.1933470070362091, -0.15631502866744995, 0.4829872250556946, -0.1396927386522293, -0.3495691418647766, -0.22467713057994843, 0.4760475158691406, 0.057769447565078735, -0.040422506630420685, -0.19705069065093994, -0.08895668387413025, 0.1853538304567337, 0.07910513877868652, 0.06320025026798248, -0.17947520315647125, -0.2648896872997284, -0.2492375373840332, -0.013969480991363525, 0.20918026566505432, -0.3121146559715271, -0.3135882616043091, 0.0350731760263443, -0.20943902432918549 ]
https://github.com/huggingface/datasets/issues/1785
@philippnoah I had fixed it with a small hack where I patched `has_sufficient_disk_space` to always return `True`. you can do that with an import without having to modify the `datasets` package
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?
31
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? @philippnoah I had fixed it with a small hack where I patched `has_sufficient_disk_space` to always return `True`. you can do that with an import without having to modify the `datasets` package
[ -0.07774314284324646, -0.4187168776988983, -0.084621861577034, 0.2431601732969284, -0.09701003134250641, 0.15066012740135193, 0.07053473591804504, 0.34012138843536377, 0.39623501896858215, 0.3933160901069641, 0.41839298605918884, -0.13893109560012817, -0.09125030785799026, 0.003891676664352417, -0.17395839095115662, 0.2417321801185608, -0.008229687809944153, -0.06064517796039581, 0.3455672860145569, 0.12748661637306213, -0.40572893619537354, 0.013043941929936409, 0.09445023536682129, -0.37361398339271545, -0.5426242351531982, -0.1880922168493271, -0.16628065705299377, 0.1566854566335678, 0.22696217894554138, -0.22474348545074463, 0.32210642099380493, -0.005494874436408281, -0.10113947093486786, 0.5720781683921814, -0.00011594399984460324, 0.03631226718425751, 0.1715255081653595, -0.18090516328811646, -0.4399377703666687, -0.03869570791721344, 0.2173040807247162, -0.40692245960235596, -0.22335878014564514, -0.3619658946990967, -0.010309278964996338, 0.1603570282459259, -0.05118097364902496, -0.44361239671707153, 0.17652492225170135, -0.06918404251337051, 0.16796931624412537, 0.353005051612854, -0.22030189633369446, -0.09261409938335419, -0.2659411132335663, 0.17672327160835266, -0.04691316932439804, 0.5180590748786926, 0.299262672662735, 0.07531508803367615, -0.2787303626537323, 0.2208094745874405, -0.13332533836364746, 0.16011637449264526, 0.4138146936893463, -0.13599750399589539, -0.0745275616645813, -0.184513658285141, 0.19623760879039764, -0.02686690166592598, 0.4277345538139343, -0.19503232836723328, -0.5273441672325134, -0.5711026191711426, 0.05005272850394249, -0.15977153182029724, 0.43965861201286316, 0.0364261195063591, -0.40968722105026245, 0.12267139554023743, -0.3018592894077301, -0.33726122975349426, -0.20105181634426117, -0.2099776566028595, 0.05320901423692703, 0.16412994265556335, 0.0016835257411003113, 0.08308517932891846, 0.32703283429145813, 0.017501581460237503, -0.025625677779316902, 0.026436083018779755, 0.17296084761619568, 0.2536419928073883, -0.2865466773509979, 0.015176065266132355, -0.09484104812145233, 0.21012353897094727, 0.10111895203590393, 0.21069851517677307, 0.061005692929029465, -0.11254099011421204, 0.07357295602560043, 0.25406700372695923, 0.013657931238412857, 0.246612086892128, -0.2650672197341919, -0.09788823127746582, 0.2030574381351471, -0.003046169877052307, 0.17353901267051697, -0.11331973969936371, 0.048171814531087875, -0.3508071005344391, 0.11620311439037323, -0.018088188022375107, 0.2040129005908966, -0.07148513197898865, -0.38218528032302856, 0.12724778056144714, 0.20500531792640686, 0.3049910068511963, 0.2122819423675537, 0.2848546504974365, 0.08104997128248215, 0.23997880518436432, 0.21884141862392426, 0.19945281744003296, -0.09023421257734299, -0.09682632237672806, -0.1159811019897461, -0.014707387425005436, 0.0885305255651474, 0.16931623220443726, 0.3448054790496826, 0.03677033632993698, 0.2115975022315979, -0.01790434867143631, 0.4590657353401184, -0.1054457575082779, -0.07217598706483841, -0.2352617383003235, -0.1191631555557251, 0.4233517646789551, 0.11977631598711014, 0.011757217347621918, 0.2519824504852295, 0.150050550699234, -0.15103860199451447, 0.26779085397720337, -0.3836438059806824, -0.4553595185279846, 0.04401956498622894, 0.07246271520853043, -0.35284173488616943, 0.20111888647079468, -0.40660935640335083, -0.038440167903900146, 0.30972471833229065, -0.1824396550655365, 0.10116451978683472, 0.0928386002779007, -0.3887101411819458, -0.24627092480659485, 0.13819415867328644, 0.3473312258720398, -0.1142510324716568, 0.0037162378430366516, -0.3107167184352875, 0.16215571761131287, 0.05258776992559433, 0.4145957827568054, 0.1311628520488739, 0.13864347338676453, -0.42772528529167175, 0.13801008462905884, 0.11270667612552643, -0.33084213733673096, -0.541802704334259, 0.30613037943840027, -0.17185187339782715, 0.2516017258167267, 0.5377889275550842, 0.26144638657569885, -0.016333283856511116, -0.23369163274765015, 0.23278650641441345, 0.2714538276195526, -0.2196914553642273, 0.05634518712759018, -0.3533276915550232, -0.2634563446044922, 0.027872353792190552, 0.061429329216480255, 0.3454008102416992, 0.10856457054615021, 0.010947778820991516, -0.00600283220410347, 0.1818707287311554, 0.05497981607913971, 0.2010059654712677, 0.3193238377571106, 0.3190517723560333, -0.3444592356681824, -0.07386577129364014, 0.021724648773670197, -0.5194780826568604, 0.34916234016418457, 0.19307191669940948, -0.21001507341861725, -0.06464962661266327, -0.44329512119293213, -0.2809632420539856, 0.06220775097608566, 0.24829372763633728, 0.3274295926094055, 0.04864651709794998, -0.0373881570994854, 0.24946697056293488, -0.30693525075912476, -0.05964985862374306, 0.166830375790596, -0.2572425901889801, -0.05789858475327492, 0.10287655889987946, -0.037163328379392624, -0.04239144176244736, -0.14003974199295044, 0.04944819211959839, 0.06461046636104584, 0.06502696126699448, 0.13496817648410797, -0.014334872364997864, 0.4134909212589264, -0.10637493431568146, 0.22477194666862488, -0.09035064280033112, 0.134599968791008, 0.15231360495090485, 0.35126110911369324, 0.002052171155810356, 0.17524008452892303, 0.00694698840379715, -0.16976630687713623, -0.11104390770196915, 0.20959797501564026, -0.0455700121819973, 0.2853600084781647, -0.08265846222639084, 0.06405843049287796, 0.062438443303108215, 0.05603852868080139, 0.123775415122509, -0.05928969755768776, 0.29012995958328247, -0.19665707647800446, 0.4879351854324341, 0.08131764829158783, 0.022846758365631104, -0.014420408755540848, 0.06943930685520172, 0.1592281311750412, 0.2913537323474884, 0.15650692582130432, 0.2970966398715973, -0.03452168405056, -0.0058796703815460205, 0.28174054622650146, 0.26641449332237244, 0.1560027301311493, 0.01530950702726841, -0.17531818151474, 0.04518742859363556, -0.20555856823921204, 0.05281992629170418, -0.0503012053668499, 0.15801885724067688, 0.2922106981277466, 0.006730210036039352, -0.29641708731651306, 0.09604685008525848, -0.3090457320213318, 0.21551191806793213, 0.07729803025722504, -0.2874603569507599, -0.05790742486715317, 0.055779822170734406, 0.18281863629817963, 0.0615936703979969, 0.18895941972732544, -0.4589173197746277, -0.3148480951786041, 0.17463597655296326, 0.6444197297096252, -0.2373899668455124, -0.09524264931678772, -0.37296390533447266, 0.47324106097221375, 0.07805272191762924, -0.42579421401023865, -0.026563234627246857, -0.26854658126831055, -0.10555179417133331, 0.017070885747671127, 0.32546550035476685, -0.2578275799751282, 0.3435429036617279, 0.009413644671440125, 0.07134468853473663, -0.4250701367855072, 0.15812285244464874, -0.16978785395622253, 0.026744358241558075, 0.16048882901668549, -0.1307637244462967, 0.335561603307724, -0.12210814654827118, -0.16110184788703918, 0.16005246341228485, -0.03865186870098114, -0.041747696697711945, 0.00918731838464737, 0.1570615917444229, 0.17532777786254883, -0.32326406240463257, 0.03154080733656883, -0.17938262224197388, -0.549516499042511, 0.17439034581184387, -0.18168386816978455, 0.2716464400291443, 0.10364039242267609, 0.1733865737915039, -0.10494745522737503, 0.709981381893158, -0.1731766015291214, -0.249619260430336, -0.6116569638252258, 0.2382912039756775, -0.08035755157470703, -0.02955164946615696, -0.0471709705889225, 0.029627956449985504, 0.2122027575969696, 0.42421871423721313, -0.47824162244796753, -0.400262713432312, -0.16716602444648743, 0.22946766018867493, -0.24203535914421082, -0.03215686231851578, 0.17910373210906982, -0.148654505610466, -0.07347273826599121, -0.14096423983573914, -0.028164230287075043, 0.05282926931977272, 0.009464923292398453, 0.2762107253074646, 0.2927940785884857, 0.21926237642765045, 0.32078441977500916, 0.70623779296875, -0.15945732593536377, 0.2500559091567993, 0.27551835775375366, 0.18174344301223755, 0.6162169575691223, 0.09052622318267822, -0.0536036342382431, 0.04009981080889702, 0.008074067533016205, -0.6150439381599426, 0.018974848091602325, -0.033270709216594696, 0.13807770609855652, -0.02821049839258194, -0.394974946975708, 0.07973653823137283, -0.269003689289093, 0.3064281940460205, -0.440760999917984, 0.26311492919921875, -0.2624959945678711, 0.0036534667015075684, -0.36617034673690796, -0.08880206942558289, -0.027877990156412125, 0.09572476148605347, 0.5163896083831787, 0.19937074184417725, -0.2578814625740051, -0.26609131693840027, -0.5647941827774048, 0.3253156840801239, -0.00604856014251709, 0.124461330473423, -0.3100079894065857, 0.07452917098999023, -0.08088140934705734, 0.010127313435077667, 0.7869895696640015, -0.09053656458854675, 0.21981732547283173, 0.0822388306260109, 0.025765612721443176, -0.5359349250793457, -0.010849326848983765, 0.1368561089038849, 0.38045814633369446, -0.07197001576423645, 0.4385930001735687, -0.1767694503068924, 0.12497177720069885, -0.43941813707351685, 0.36068961024284363, -0.33069199323654175, -0.24158811569213867, -0.38548025488853455, -0.38147467374801636, -0.4833007752895355, 0.44739046692848206, 0.45651665329933167, 0.25278589129447937, -0.048352550715208054, 0.32991042733192444, -0.1702633500099182, -0.014960646629333496, 0.17365172505378723, -0.007580257952213287, 0.4432085156440735, -0.13666664063930511, 0.04138927906751633, 0.10192039608955383, -0.05657856538891792, 0.42775487899780273, 0.41325846314430237, 0.109696164727211, 0.1532113254070282, 0.2755296230316162, 0.015611797571182251, 0.3339523375034332, 0.3349297046661377, -0.07208283245563507, 0.027241535484790802, 0.11594691872596741, 0.24569731950759888, -0.43921083211898804, -0.06493626534938812, -0.3937532305717468, -0.05341074615716934, -0.09026334434747696, -0.020697027444839478, 0.37267374992370605, 0.35260239243507385, 0.017791271209716797, 0.07021543383598328, 0.3179866671562195, -0.31271567940711975, 0.26070788502693176, -0.026027385145425797, 0.8725858926773071, -0.0851956456899643, 0.019044511020183563, 0.06687156856060028, 0.3008272051811218, 0.34014347195625305, -0.4726661443710327, 0.36130765080451965, 0.04408452659845352, -0.2942005395889282, 0.03258149325847626, -0.012193605303764343, -0.021077364683151245, 0.29593417048454285, -0.16884516179561615, 0.4016994833946228, -0.5068141222000122, 0.012194136157631874, -0.09541503340005875, 0.13655301928520203, -0.6846148371696472, -0.3742956817150116, -0.23896728456020355, 0.12068912386894226, -0.1377953290939331, 0.21030044555664062, -0.24510416388511658, 0.10865618288516998, 0.03371375799179077, -0.3128850758075714, -0.3662669062614441, -0.17015346884727478, 0.026717957109212875, 0.303568959236145, -0.1789853572845459, 0.023643270134925842, -0.08937280625104904, 0.13467755913734436, 0.21527810394763947, 0.30104193091392517, -0.14354650676250458, 0.10248035192489624, -0.15729200839996338, -0.05579765513539314, 0.06480616331100464, 0.0752226784825325, 0.11239765584468842, 0.001625746488571167, -0.309686541557312, 0.15746501088142395, -0.25910380482673645, -0.4899291396141052, 0.029062479734420776, -0.04381408542394638, -0.29428988695144653, -0.03387337177991867, -0.2902980446815491, -0.4566001296043396, -0.005463548004627228, -0.08768345415592194, 0.06650684028863907, 0.01917419396340847, -0.11894825845956802, 0.147635355591774, 0.02352558635175228, -0.20440948009490967, 0.11642178893089294, 0.19072356820106506, 0.17154863476753235, -0.34629976749420166, 0.3859963119029999, -0.37319862842559814, -0.08736807107925415, -0.1736939549446106, -0.1504092514514923, -0.13429835438728333, 0.09508256614208221, 0.34302544593811035, -0.0794040858745575, -0.12857958674430847, -0.24275057017803192, -0.23101280629634857, 0.6502939462661743, 0.4262385070323944, -0.14408305287361145, -0.4783766567707062, -0.3731832802295685, 0.26766467094421387, 0.08030012249946594, 0.238160640001297, -0.06412075459957123, -0.09848777949810028, 0.03060866892337799, 0.1129472553730011, -0.2559908926486969, -0.05578716844320297, -0.44073382019996643, 0.007171424105763435, 0.21178573369979858, 0.12637653946876526, 0.2143028974533081, -0.09470582008361816, -0.0827280655503273, 0.1265944093465805, -0.055757492780685425, -0.11263597756624222, 0.04496206343173981, 0.15062779188156128, 0.04691855236887932, 0.19517198204994202, 0.1735435426235199, -0.45882371068000793, 0.23763632774353027, -0.2655065059661865, 0.1753758192062378, 0.41826897859573364, -0.04548150673508644, -0.34155696630477905, 0.07465746998786926, 0.4974750876426697, -0.17092368006706238, 0.1422317922115326, 0.1285942941904068, 0.15464897453784943, -0.2296801209449768, 0.18428683280944824, 0.12514790892601013, 0.14174030721187592, 0.2366863191127777, -0.11207866668701172, 0.22014380991458893, 0.038522131741046906, -0.15457093715667725, 0.06847136467695236, -0.04480207338929176, 0.24782294034957886, 0.2652955651283264, -0.07904484868049622, -0.029399089515209198, 0.033805690705776215, 0.06988374143838882, 0.21730978786945343, -0.2394903302192688, -0.11724904179573059, 0.23962852358818054, -0.02993895299732685, 0.11975669860839844, 0.5013856291770935, 0.38761427998542786, -0.37487363815307617, 0.0745420753955841, 0.09238050132989883, 0.5648562908172607, -0.26017674803733826, 0.04130974039435387, 0.13369518518447876, 0.050606898963451385, 0.003042123280465603, 0.14900991320610046, -0.06330115348100662, 0.38915467262268066, 0.3070390224456787, -0.17135357856750488, 0.21597212553024292, 0.24081236124038696, -0.12086121737957001, -0.14976312220096588, -0.4051087200641632, 0.08635252714157104, 0.08172877132892609, 0.042583052068948746, 0.1304461508989334, -0.31927669048309326, -0.04760032892227173, -0.364190936088562, -0.19654081761837006, -0.2249184101819992, -0.11324147880077362, -0.41397520899772644, -0.010649479925632477, -0.018117234110832214, -0.0879315733909607, -0.027367331087589264, -0.12374749034643173, 0.35692521929740906, -0.3851689398288727, 0.3071933388710022, 0.009147774428129196, 0.06227520853281021, 0.29900631308555603, -0.2994193434715271, 0.4684782922267914, 0.16412928700447083, -0.3684590458869934, 0.037796273827552795, 0.2732798159122467, -0.25389429926872253, 0.29971322417259216, 0.17128659784793854, 0.6783191561698914, 0.22274662554264069, -0.09189630299806595, 0.0675157755613327, 0.03421495854854584, 0.07634920626878738, -0.3394201695919037, -0.0230131596326828, 0.06691831350326538, -0.13326230645179749, 0.1145666092634201, 0.1374945044517517, -0.09449612349271774, 0.2236461341381073, 0.011741835623979568, 0.2606368660926819, -0.2572071850299835, -0.12003523111343384, -0.17192372679710388, -0.19954951107501984, -0.13376373052597046, 0.09174983203411102, -0.25277918577194214, -0.21109427511692047, 0.35246363282203674, -0.05091577395796776, 0.18315252661705017, 0.19918882846832275, 0.06721256673336029, -0.09606651961803436, 0.27137869596481323, 0.33813104033470154, -0.500652015209198, -0.30738934874534607, 0.08907066285610199, -0.5300477743148804, 0.21790063381195068, -0.2879718244075775, -0.07918890565633774, -0.03162956237792969, 0.2162606418132782, -0.03532462939620018, -0.11000443994998932, 0.0923835039138794, -0.08695517480373383, -0.06845758855342865, -0.154449462890625, -0.2633788585662842, -0.2788788378238678, -0.08781526237726212, -0.2979598641395569, 0.2715916335582733, -0.5973244309425354, -0.047671396285295486, 0.10969916731119156, 0.0626048594713211, 0.08089579641819, -0.006934665143489838, 0.23120225965976715, 0.4421146810054779, 0.32367897033691406, -0.0014012157917022705, 0.45332133769989014, 0.06917798519134521, -0.1578180342912674, -0.35559943318367004, -0.05122726038098335, -0.1567315310239792, 0.05033554881811142, 0.1229817271232605, 0.2397245317697525, -0.6420227885246277, 0.08903694152832031, -0.23719565570354462, 0.24776996672153473, 0.06780709326267242, -0.07973376661539078, 0.09804780781269073, -0.023893598467111588, -0.3431888520717621, 0.19829508662223816, 0.23607468605041504, 0.23017707467079163, -0.06586268544197083, 0.3270433247089386, -0.1933470070362091, -0.15631502866744995, 0.4829872250556946, -0.1396927386522293, -0.3495691418647766, -0.22467713057994843, 0.4760475158691406, 0.057769447565078735, -0.040422506630420685, -0.19705069065093994, -0.08895668387413025, 0.1853538304567337, 0.07910513877868652, 0.06320025026798248, -0.17947520315647125, -0.2648896872997284, -0.2492375373840332, -0.013969480991363525, 0.20918026566505432, -0.3121146559715271, -0.3135882616043091, 0.0350731760263443, -0.20943902432918549 ]
https://github.com/huggingface/datasets/issues/1785
@olinguyen Thanks for the suggestion, it works but I had to to edit builder.py in the installed package. Can you please explain how were you able to do this using import?
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?
31
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? @olinguyen Thanks for the suggestion, it works but I had to to edit builder.py in the installed package. Can you please explain how were you able to do this using import?
[ -0.07774314284324646, -0.4187168776988983, -0.084621861577034, 0.2431601732969284, -0.09701003134250641, 0.15066012740135193, 0.07053473591804504, 0.34012138843536377, 0.39623501896858215, 0.3933160901069641, 0.41839298605918884, -0.13893109560012817, -0.09125030785799026, 0.003891676664352417, -0.17395839095115662, 0.2417321801185608, -0.008229687809944153, -0.06064517796039581, 0.3455672860145569, 0.12748661637306213, -0.40572893619537354, 0.013043941929936409, 0.09445023536682129, -0.37361398339271545, -0.5426242351531982, -0.1880922168493271, -0.16628065705299377, 0.1566854566335678, 0.22696217894554138, -0.22474348545074463, 0.32210642099380493, -0.005494874436408281, -0.10113947093486786, 0.5720781683921814, -0.00011594399984460324, 0.03631226718425751, 0.1715255081653595, -0.18090516328811646, -0.4399377703666687, -0.03869570791721344, 0.2173040807247162, -0.40692245960235596, -0.22335878014564514, -0.3619658946990967, -0.010309278964996338, 0.1603570282459259, -0.05118097364902496, -0.44361239671707153, 0.17652492225170135, -0.06918404251337051, 0.16796931624412537, 0.353005051612854, -0.22030189633369446, -0.09261409938335419, -0.2659411132335663, 0.17672327160835266, -0.04691316932439804, 0.5180590748786926, 0.299262672662735, 0.07531508803367615, -0.2787303626537323, 0.2208094745874405, -0.13332533836364746, 0.16011637449264526, 0.4138146936893463, -0.13599750399589539, -0.0745275616645813, -0.184513658285141, 0.19623760879039764, -0.02686690166592598, 0.4277345538139343, -0.19503232836723328, -0.5273441672325134, -0.5711026191711426, 0.05005272850394249, -0.15977153182029724, 0.43965861201286316, 0.0364261195063591, -0.40968722105026245, 0.12267139554023743, -0.3018592894077301, -0.33726122975349426, -0.20105181634426117, -0.2099776566028595, 0.05320901423692703, 0.16412994265556335, 0.0016835257411003113, 0.08308517932891846, 0.32703283429145813, 0.017501581460237503, -0.025625677779316902, 0.026436083018779755, 0.17296084761619568, 0.2536419928073883, -0.2865466773509979, 0.015176065266132355, -0.09484104812145233, 0.21012353897094727, 0.10111895203590393, 0.21069851517677307, 0.061005692929029465, -0.11254099011421204, 0.07357295602560043, 0.25406700372695923, 0.013657931238412857, 0.246612086892128, -0.2650672197341919, -0.09788823127746582, 0.2030574381351471, -0.003046169877052307, 0.17353901267051697, -0.11331973969936371, 0.048171814531087875, -0.3508071005344391, 0.11620311439037323, -0.018088188022375107, 0.2040129005908966, -0.07148513197898865, -0.38218528032302856, 0.12724778056144714, 0.20500531792640686, 0.3049910068511963, 0.2122819423675537, 0.2848546504974365, 0.08104997128248215, 0.23997880518436432, 0.21884141862392426, 0.19945281744003296, -0.09023421257734299, -0.09682632237672806, -0.1159811019897461, -0.014707387425005436, 0.0885305255651474, 0.16931623220443726, 0.3448054790496826, 0.03677033632993698, 0.2115975022315979, -0.01790434867143631, 0.4590657353401184, -0.1054457575082779, -0.07217598706483841, -0.2352617383003235, -0.1191631555557251, 0.4233517646789551, 0.11977631598711014, 0.011757217347621918, 0.2519824504852295, 0.150050550699234, -0.15103860199451447, 0.26779085397720337, -0.3836438059806824, -0.4553595185279846, 0.04401956498622894, 0.07246271520853043, -0.35284173488616943, 0.20111888647079468, -0.40660935640335083, -0.038440167903900146, 0.30972471833229065, -0.1824396550655365, 0.10116451978683472, 0.0928386002779007, -0.3887101411819458, -0.24627092480659485, 0.13819415867328644, 0.3473312258720398, -0.1142510324716568, 0.0037162378430366516, -0.3107167184352875, 0.16215571761131287, 0.05258776992559433, 0.4145957827568054, 0.1311628520488739, 0.13864347338676453, -0.42772528529167175, 0.13801008462905884, 0.11270667612552643, -0.33084213733673096, -0.541802704334259, 0.30613037943840027, -0.17185187339782715, 0.2516017258167267, 0.5377889275550842, 0.26144638657569885, -0.016333283856511116, -0.23369163274765015, 0.23278650641441345, 0.2714538276195526, -0.2196914553642273, 0.05634518712759018, -0.3533276915550232, -0.2634563446044922, 0.027872353792190552, 0.061429329216480255, 0.3454008102416992, 0.10856457054615021, 0.010947778820991516, -0.00600283220410347, 0.1818707287311554, 0.05497981607913971, 0.2010059654712677, 0.3193238377571106, 0.3190517723560333, -0.3444592356681824, -0.07386577129364014, 0.021724648773670197, -0.5194780826568604, 0.34916234016418457, 0.19307191669940948, -0.21001507341861725, -0.06464962661266327, -0.44329512119293213, -0.2809632420539856, 0.06220775097608566, 0.24829372763633728, 0.3274295926094055, 0.04864651709794998, -0.0373881570994854, 0.24946697056293488, -0.30693525075912476, -0.05964985862374306, 0.166830375790596, -0.2572425901889801, -0.05789858475327492, 0.10287655889987946, -0.037163328379392624, -0.04239144176244736, -0.14003974199295044, 0.04944819211959839, 0.06461046636104584, 0.06502696126699448, 0.13496817648410797, -0.014334872364997864, 0.4134909212589264, -0.10637493431568146, 0.22477194666862488, -0.09035064280033112, 0.134599968791008, 0.15231360495090485, 0.35126110911369324, 0.002052171155810356, 0.17524008452892303, 0.00694698840379715, -0.16976630687713623, -0.11104390770196915, 0.20959797501564026, -0.0455700121819973, 0.2853600084781647, -0.08265846222639084, 0.06405843049287796, 0.062438443303108215, 0.05603852868080139, 0.123775415122509, -0.05928969755768776, 0.29012995958328247, -0.19665707647800446, 0.4879351854324341, 0.08131764829158783, 0.022846758365631104, -0.014420408755540848, 0.06943930685520172, 0.1592281311750412, 0.2913537323474884, 0.15650692582130432, 0.2970966398715973, -0.03452168405056, -0.0058796703815460205, 0.28174054622650146, 0.26641449332237244, 0.1560027301311493, 0.01530950702726841, -0.17531818151474, 0.04518742859363556, -0.20555856823921204, 0.05281992629170418, -0.0503012053668499, 0.15801885724067688, 0.2922106981277466, 0.006730210036039352, -0.29641708731651306, 0.09604685008525848, -0.3090457320213318, 0.21551191806793213, 0.07729803025722504, -0.2874603569507599, -0.05790742486715317, 0.055779822170734406, 0.18281863629817963, 0.0615936703979969, 0.18895941972732544, -0.4589173197746277, -0.3148480951786041, 0.17463597655296326, 0.6444197297096252, -0.2373899668455124, -0.09524264931678772, -0.37296390533447266, 0.47324106097221375, 0.07805272191762924, -0.42579421401023865, -0.026563234627246857, -0.26854658126831055, -0.10555179417133331, 0.017070885747671127, 0.32546550035476685, -0.2578275799751282, 0.3435429036617279, 0.009413644671440125, 0.07134468853473663, -0.4250701367855072, 0.15812285244464874, -0.16978785395622253, 0.026744358241558075, 0.16048882901668549, -0.1307637244462967, 0.335561603307724, -0.12210814654827118, -0.16110184788703918, 0.16005246341228485, -0.03865186870098114, -0.041747696697711945, 0.00918731838464737, 0.1570615917444229, 0.17532777786254883, -0.32326406240463257, 0.03154080733656883, -0.17938262224197388, -0.549516499042511, 0.17439034581184387, -0.18168386816978455, 0.2716464400291443, 0.10364039242267609, 0.1733865737915039, -0.10494745522737503, 0.709981381893158, -0.1731766015291214, -0.249619260430336, -0.6116569638252258, 0.2382912039756775, -0.08035755157470703, -0.02955164946615696, -0.0471709705889225, 0.029627956449985504, 0.2122027575969696, 0.42421871423721313, -0.47824162244796753, -0.400262713432312, -0.16716602444648743, 0.22946766018867493, -0.24203535914421082, -0.03215686231851578, 0.17910373210906982, -0.148654505610466, -0.07347273826599121, -0.14096423983573914, -0.028164230287075043, 0.05282926931977272, 0.009464923292398453, 0.2762107253074646, 0.2927940785884857, 0.21926237642765045, 0.32078441977500916, 0.70623779296875, -0.15945732593536377, 0.2500559091567993, 0.27551835775375366, 0.18174344301223755, 0.6162169575691223, 0.09052622318267822, -0.0536036342382431, 0.04009981080889702, 0.008074067533016205, -0.6150439381599426, 0.018974848091602325, -0.033270709216594696, 0.13807770609855652, -0.02821049839258194, -0.394974946975708, 0.07973653823137283, -0.269003689289093, 0.3064281940460205, -0.440760999917984, 0.26311492919921875, -0.2624959945678711, 0.0036534667015075684, -0.36617034673690796, -0.08880206942558289, -0.027877990156412125, 0.09572476148605347, 0.5163896083831787, 0.19937074184417725, -0.2578814625740051, -0.26609131693840027, -0.5647941827774048, 0.3253156840801239, -0.00604856014251709, 0.124461330473423, -0.3100079894065857, 0.07452917098999023, -0.08088140934705734, 0.010127313435077667, 0.7869895696640015, -0.09053656458854675, 0.21981732547283173, 0.0822388306260109, 0.025765612721443176, -0.5359349250793457, -0.010849326848983765, 0.1368561089038849, 0.38045814633369446, -0.07197001576423645, 0.4385930001735687, -0.1767694503068924, 0.12497177720069885, -0.43941813707351685, 0.36068961024284363, -0.33069199323654175, -0.24158811569213867, -0.38548025488853455, -0.38147467374801636, -0.4833007752895355, 0.44739046692848206, 0.45651665329933167, 0.25278589129447937, -0.048352550715208054, 0.32991042733192444, -0.1702633500099182, -0.014960646629333496, 0.17365172505378723, -0.007580257952213287, 0.4432085156440735, -0.13666664063930511, 0.04138927906751633, 0.10192039608955383, -0.05657856538891792, 0.42775487899780273, 0.41325846314430237, 0.109696164727211, 0.1532113254070282, 0.2755296230316162, 0.015611797571182251, 0.3339523375034332, 0.3349297046661377, -0.07208283245563507, 0.027241535484790802, 0.11594691872596741, 0.24569731950759888, -0.43921083211898804, -0.06493626534938812, -0.3937532305717468, -0.05341074615716934, -0.09026334434747696, -0.020697027444839478, 0.37267374992370605, 0.35260239243507385, 0.017791271209716797, 0.07021543383598328, 0.3179866671562195, -0.31271567940711975, 0.26070788502693176, -0.026027385145425797, 0.8725858926773071, -0.0851956456899643, 0.019044511020183563, 0.06687156856060028, 0.3008272051811218, 0.34014347195625305, -0.4726661443710327, 0.36130765080451965, 0.04408452659845352, -0.2942005395889282, 0.03258149325847626, -0.012193605303764343, -0.021077364683151245, 0.29593417048454285, -0.16884516179561615, 0.4016994833946228, -0.5068141222000122, 0.012194136157631874, -0.09541503340005875, 0.13655301928520203, -0.6846148371696472, -0.3742956817150116, -0.23896728456020355, 0.12068912386894226, -0.1377953290939331, 0.21030044555664062, -0.24510416388511658, 0.10865618288516998, 0.03371375799179077, -0.3128850758075714, -0.3662669062614441, -0.17015346884727478, 0.026717957109212875, 0.303568959236145, -0.1789853572845459, 0.023643270134925842, -0.08937280625104904, 0.13467755913734436, 0.21527810394763947, 0.30104193091392517, -0.14354650676250458, 0.10248035192489624, -0.15729200839996338, -0.05579765513539314, 0.06480616331100464, 0.0752226784825325, 0.11239765584468842, 0.001625746488571167, -0.309686541557312, 0.15746501088142395, -0.25910380482673645, -0.4899291396141052, 0.029062479734420776, -0.04381408542394638, -0.29428988695144653, -0.03387337177991867, -0.2902980446815491, -0.4566001296043396, -0.005463548004627228, -0.08768345415592194, 0.06650684028863907, 0.01917419396340847, -0.11894825845956802, 0.147635355591774, 0.02352558635175228, -0.20440948009490967, 0.11642178893089294, 0.19072356820106506, 0.17154863476753235, -0.34629976749420166, 0.3859963119029999, -0.37319862842559814, -0.08736807107925415, -0.1736939549446106, -0.1504092514514923, -0.13429835438728333, 0.09508256614208221, 0.34302544593811035, -0.0794040858745575, -0.12857958674430847, -0.24275057017803192, -0.23101280629634857, 0.6502939462661743, 0.4262385070323944, -0.14408305287361145, -0.4783766567707062, -0.3731832802295685, 0.26766467094421387, 0.08030012249946594, 0.238160640001297, -0.06412075459957123, -0.09848777949810028, 0.03060866892337799, 0.1129472553730011, -0.2559908926486969, -0.05578716844320297, -0.44073382019996643, 0.007171424105763435, 0.21178573369979858, 0.12637653946876526, 0.2143028974533081, -0.09470582008361816, -0.0827280655503273, 0.1265944093465805, -0.055757492780685425, -0.11263597756624222, 0.04496206343173981, 0.15062779188156128, 0.04691855236887932, 0.19517198204994202, 0.1735435426235199, -0.45882371068000793, 0.23763632774353027, -0.2655065059661865, 0.1753758192062378, 0.41826897859573364, -0.04548150673508644, -0.34155696630477905, 0.07465746998786926, 0.4974750876426697, -0.17092368006706238, 0.1422317922115326, 0.1285942941904068, 0.15464897453784943, -0.2296801209449768, 0.18428683280944824, 0.12514790892601013, 0.14174030721187592, 0.2366863191127777, -0.11207866668701172, 0.22014380991458893, 0.038522131741046906, -0.15457093715667725, 0.06847136467695236, -0.04480207338929176, 0.24782294034957886, 0.2652955651283264, -0.07904484868049622, -0.029399089515209198, 0.033805690705776215, 0.06988374143838882, 0.21730978786945343, -0.2394903302192688, -0.11724904179573059, 0.23962852358818054, -0.02993895299732685, 0.11975669860839844, 0.5013856291770935, 0.38761427998542786, -0.37487363815307617, 0.0745420753955841, 0.09238050132989883, 0.5648562908172607, -0.26017674803733826, 0.04130974039435387, 0.13369518518447876, 0.050606898963451385, 0.003042123280465603, 0.14900991320610046, -0.06330115348100662, 0.38915467262268066, 0.3070390224456787, -0.17135357856750488, 0.21597212553024292, 0.24081236124038696, -0.12086121737957001, -0.14976312220096588, -0.4051087200641632, 0.08635252714157104, 0.08172877132892609, 0.042583052068948746, 0.1304461508989334, -0.31927669048309326, -0.04760032892227173, -0.364190936088562, -0.19654081761837006, -0.2249184101819992, -0.11324147880077362, -0.41397520899772644, -0.010649479925632477, -0.018117234110832214, -0.0879315733909607, -0.027367331087589264, -0.12374749034643173, 0.35692521929740906, -0.3851689398288727, 0.3071933388710022, 0.009147774428129196, 0.06227520853281021, 0.29900631308555603, -0.2994193434715271, 0.4684782922267914, 0.16412928700447083, -0.3684590458869934, 0.037796273827552795, 0.2732798159122467, -0.25389429926872253, 0.29971322417259216, 0.17128659784793854, 0.6783191561698914, 0.22274662554264069, -0.09189630299806595, 0.0675157755613327, 0.03421495854854584, 0.07634920626878738, -0.3394201695919037, -0.0230131596326828, 0.06691831350326538, -0.13326230645179749, 0.1145666092634201, 0.1374945044517517, -0.09449612349271774, 0.2236461341381073, 0.011741835623979568, 0.2606368660926819, -0.2572071850299835, -0.12003523111343384, -0.17192372679710388, -0.19954951107501984, -0.13376373052597046, 0.09174983203411102, -0.25277918577194214, -0.21109427511692047, 0.35246363282203674, -0.05091577395796776, 0.18315252661705017, 0.19918882846832275, 0.06721256673336029, -0.09606651961803436, 0.27137869596481323, 0.33813104033470154, -0.500652015209198, -0.30738934874534607, 0.08907066285610199, -0.5300477743148804, 0.21790063381195068, -0.2879718244075775, -0.07918890565633774, -0.03162956237792969, 0.2162606418132782, -0.03532462939620018, -0.11000443994998932, 0.0923835039138794, -0.08695517480373383, -0.06845758855342865, -0.154449462890625, -0.2633788585662842, -0.2788788378238678, -0.08781526237726212, -0.2979598641395569, 0.2715916335582733, -0.5973244309425354, -0.047671396285295486, 0.10969916731119156, 0.0626048594713211, 0.08089579641819, -0.006934665143489838, 0.23120225965976715, 0.4421146810054779, 0.32367897033691406, -0.0014012157917022705, 0.45332133769989014, 0.06917798519134521, -0.1578180342912674, -0.35559943318367004, -0.05122726038098335, -0.1567315310239792, 0.05033554881811142, 0.1229817271232605, 0.2397245317697525, -0.6420227885246277, 0.08903694152832031, -0.23719565570354462, 0.24776996672153473, 0.06780709326267242, -0.07973376661539078, 0.09804780781269073, -0.023893598467111588, -0.3431888520717621, 0.19829508662223816, 0.23607468605041504, 0.23017707467079163, -0.06586268544197083, 0.3270433247089386, -0.1933470070362091, -0.15631502866744995, 0.4829872250556946, -0.1396927386522293, -0.3495691418647766, -0.22467713057994843, 0.4760475158691406, 0.057769447565078735, -0.040422506630420685, -0.19705069065093994, -0.08895668387413025, 0.1853538304567337, 0.07910513877868652, 0.06320025026798248, -0.17947520315647125, -0.2648896872997284, -0.2492375373840332, -0.013969480991363525, 0.20918026566505432, -0.3121146559715271, -0.3135882616043091, 0.0350731760263443, -0.20943902432918549 ]